:root {
  --accent: #EF476F;
  --accent-light: #FFF0F3;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --border: #E5E5E7;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --radius: 16px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(229,229,231,0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFF5F7 0%, #FAFAFA 60%, #F5F5F7 100%);
}
.hero-clouds {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}
.hero-clouds::before, .hero-clouds::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: blur(40px);
}
.hero-clouds::before { width: 300px; height: 120px; top: 10%; right: 10%; }
.hero-clouds::after { width: 260px; height: 100px; bottom: 20%; left: 5%; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}
.hero-tagline {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 40px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}
.hero-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px rgba(239,71,111,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(239,71,111,0.35); }
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-book {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/10;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 32px 64px rgba(239,71,111,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-book::before {
  content: '';
  position: absolute;
  width: 86%;
  height: 74%;
  border: 3px solid rgba(0,0,0,0.85);
}
.hero-book-text {
  text-align: center;
  color: rgba(0,0,0,0.85);
}
.hero-book-text .book-ux {
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1;
}
.hero-book-text .book-cn {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-top: 12px;
}
.hero-book small {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 13px;
  opacity: 0.8;
}
.hero-sled {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 100px;
  height: 80px;
}

/* Sections */
.section { padding: 100px 0; }
.section-header {
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
}

/* About / Experience */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.about-intro {
  position: sticky;
  top: 100px;
}
.about-intro p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.about-intro strong { color: var(--text); }
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tag {
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* Case Cards */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.case-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .case-card-image img { transform: scale(1.03); }
.case-card-body { padding: 28px; }
.case-card-category {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.case-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.case-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-card-tag {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Case Page */
.case-hero {
  padding: 80px 0 48px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
}
.case-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.case-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.case-meta-item dt { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.case-meta-item dd { font-size: 16px; font-weight: 700; margin-top: 4px; }
.case-hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.case-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.case-nav a {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.case-nav a.active { background: var(--accent); color: white; border-color: var(--accent); }

.case-section {
  padding: 80px 0;
}
.case-section.alt { background: white; }
.case-section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.case-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.case-section-header p {
  font-size: 17px;
  color: var(--text-secondary);
}

.page-gallery {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.page-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.page-item img {
  width: 100%;
  height: auto;
}
.page-item-caption {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
}
.page-item-caption h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-item-caption p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 64px 0;
  background: var(--text);
  color: white;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { font-size: 20px; font-weight: 700; }
.footer-brand span { color: var(--accent); }
.footer-contact { text-align: right; }
.footer-contact a { color: white; font-weight: 600; font-size: 18px; }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 4px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .case-hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cases-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { text-align: center; justify-content: center; }
  .footer-contact { text-align: center; }
}
