/* =========================================================
   肖辅 · UX 设计师个人网站 — 设计系统 (v0.1 static)
   依据 PRD §4 视觉规范 / §5 交互规范
   纯静态，无构建步骤；后续可平滑迁移至 Tailwind/Next
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色 */
  --brand: #009AFF;
  --brand-dark: #0077cc;
  --accent: #FF8803;
  --c-green: #00C483;
  --c-magenta: #FA045A;
  --c-purple: #4C20FA;
  --c-cyan: #2BD2FF;

  /* 文本 */
  --t-title: #333333;
  --t-body: #666666;
  --t-sub: #999999;

  /* 边框 / 背景 */
  --bd: #DDDDDD;
  --bd-light: #EEEEEE;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F7;

  /* 圆角 */
  --r-card: 16px;
  --r-btn: 12px;
  --r-pill: 999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .08);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, .12);

  /* 动效统一缓动 (easeOutQuint 系) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;

  /* 布局 */
  --max-w: 1200px;
  --gutter: 24px;

  /* 字体 */
  --font-cn: "Noto Sans SC", "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-cn);
  color: var(--t-body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.chapter-no {
  font-family: var(--font-en);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bd);
  letter-spacing: .02em;
  opacity: .7;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--t-title);
  letter-spacing: -.01em;
}
.section-sub { color: var(--t-sub); margin-top: 12px; max-width: 560px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--gutter);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav__logo {
  font-family: var(--font-en); font-weight: 800; letter-spacing: .12em;
  font-size: 18px; color: var(--t-title);
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 15px; color: var(--t-body); position: relative; padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width var(--dur) var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--t-title); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__burger span { height: 2px; background: var(--t-title); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-size: 28px; font-weight: 700; color: var(--t-title); }
.drawer a:nth-child(1){ transition-delay:.05s } .drawer a:nth-child(2){ transition-delay:.1s }
.drawer a:nth-child(3){ transition-delay:.15s } .drawer a:nth-child(4){ transition-delay:.2s }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600;
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  z-index: 0;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: currentColor; opacity: 0; transform: translateX(-101%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:hover::before { transform: translateX(0); opacity: .12; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary::before { background: #fff; }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { border: 1.5px solid var(--bd); color: var(--t-title); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__blobs { position: absolute; inset: 0; z-index: 0; filter: blur(60px); opacity: .55; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 26s var(--ease) infinite alternate; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle at 30% 30%, var(--brand), transparent 70%); top: -80px; left: -60px; }
.blob--2 { width: 380px; height: 380px; background: radial-gradient(circle at 70% 40%, var(--accent), transparent 70%); bottom: -60px; right: 8%; animation-delay: -8s; }
.blob--3 { width: 320px; height: 320px; background: radial-gradient(circle at 50% 50%, var(--c-purple), transparent 70%); top: 30%; right: 30%; animation-delay: -16s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1) } 100% { transform: translate(40px,-30px) scale(1.12) } }

.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--t-sub);
  text-transform: uppercase; margin-bottom: 28px;
}
.hero__big {
  font-family: var(--font-en); font-weight: 800; line-height: .92;
  font-size: clamp(72px, 17vw, 200px); letter-spacing: -.03em; color: var(--t-title);
  will-change: transform;
}
.hero__big .outline {
  color: transparent; -webkit-text-stroke: 2px var(--brand);
}
.hero__tagline { font-size: clamp(18px, 2.4vw, 26px); color: var(--t-body); margin-top: 22px; max-width: 620px; }
.hero__tagline b { color: var(--accent); font-weight: 700; }
.hero__cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; color: var(--t-sub);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
  animation: bob 1.8s var(--ease) infinite;
}
.hero__scroll::after { content: ""; width: 1px; height: 32px; background: linear-gradient(var(--t-sub), transparent); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0) } 50% { transform: translate(-50%, 8px) } }

/* ---------- 数据带 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 12px; }
.stat__num { font-family: var(--font-en); font-size: clamp(48px, 8vw, 84px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat__num .unit { font-size: .42em; margin-left: 4px; color: var(--brand); }
.stat__label { margin-top: 10px; color: var(--t-sub); font-size: 15px; }

/* ---------- 精选作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card {
  position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft);
  box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.work-card:nth-child(even) { transform: translateY(36px); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.work-card:nth-child(even):hover { transform: translateY(30px); }
.work-card__cover {
  aspect-ratio: 16/10; display: flex; align-items: flex-end; padding: 22px; color: #fff;
  position: relative; overflow: hidden;
}
.work-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.18));
  transform: translateX(-101%); transition: transform 600ms var(--ease);
}
.work-card:hover .work-card__cover::after { transform: translateX(101%); }
.work-card__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: var(--r-pill);
}
.work-card__body { padding: 22px 24px 26px; }
.work-card__title { font-size: 22px; font-weight: 700; color: var(--t-title); display: flex; align-items: center; gap: 8px; }
.work-card__title .arrow { color: var(--brand); transition: transform var(--dur) var(--ease); }
.work-card:hover .work-card__title .arrow { transform: translateX(6px); }
.work-card__desc { color: var(--t-sub); margin-top: 8px; font-size: 15px; }

/* 渐变封面占位（真实截图涉密，上线前替换） */
.cov-1 { background: linear-gradient(135deg, var(--brand), var(--c-cyan)); }
.cov-2 { background: linear-gradient(135deg, var(--c-purple), var(--c-magenta)); }
.cov-3 { background: linear-gradient(135deg, var(--accent), var(--c-magenta)); }
.cov-4 { background: linear-gradient(135deg, var(--c-green), var(--brand)); }
.cov-5 { background: linear-gradient(135deg, #2b5876, var(--brand)); }
.cov-6 { background: linear-gradient(135deg, var(--c-magenta), var(--accent)); }
.cov-7 { background: linear-gradient(135deg, var(--c-purple), var(--brand)); }

/* ---------- 能力速览 ---------- */
.ability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ability {
  border: 1.5px solid var(--bd-light); border-radius: var(--r-card); padding: 28px 24px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  background: var(--bg);
}
.ability:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ability__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: var(--font-en); font-weight: 800; margin-bottom: 16px; }
.ability__name { font-size: 19px; font-weight: 700; color: var(--t-title); }
.ability__desc { color: var(--t-sub); font-size: 14px; margin-top: 8px; }

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--c-cyan));
  border-radius: 24px; padding: 56px 48px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-band p { opacity: .9; margin: 12px 0 28px; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--bd-light); padding: 48px 0; color: var(--t-sub); font-size: 14px; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer a:hover { color: var(--brand); }
.footer .status { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 rgba(0,196,131,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,196,131,.5) } 70% { box-shadow: 0 0 0 8px rgba(0,196,131,0) } 100% { box-shadow: 0 0 0 0 rgba(0,196,131,0) } }

/* ---------- 关于页 ---------- */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.avatar {
  width: 280px; height: 280px; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--c-purple));
  display: grid; place-items: center; color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 96px;
  box-shadow: var(--shadow-lg);
}
.capsules { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.capsule { border: 1.5px solid var(--brand); color: var(--brand); padding: 6px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.bio { font-size: 17px; color: var(--t-body); margin-top: 12px; }
.meta-line { color: var(--t-sub); margin-top: 10px; }

.timeline { margin-top: 16px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--bd); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--bd); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tl-item.lit::before { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,154,255,.18); }
.tl-date { font-family: var(--font-en); font-size: 13px; letter-spacing: .06em; color: var(--brand); font-weight: 600; }
.tl-role { font-size: 18px; font-weight: 700; color: var(--t-title); margin: 2px 0 4px; }
.tl-company { color: var(--t-sub); font-size: 15px; }

.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 16px; }
.skill-group h4 { color: var(--t-title); margin-bottom: 12px; font-size: 17px; }
.skill-group ul li { padding: 6px 0; border-bottom: 1px dashed var(--bd-light); color: var(--t-body); }

/* ---------- 作品列表 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  padding: 9px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--bd);
  color: var(--t-body); font-size: 14px; font-weight: 600; transition: all var(--dur) var(--ease);
}
.filter.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter:hover:not(.active) { border-color: var(--brand); color: var(--brand); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--r-card); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--bd-light); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
  cursor: pointer;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-card__cover { aspect-ratio: 4/3; display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.case-card__chapter { position: absolute; top: 14px; right: 14px; font-family: var(--font-en); font-weight: 800; font-size: 13px; background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: var(--r-pill); }
.case-card__body { padding: 18px 20px 22px; }
.case-card__title { font-size: 18px; font-weight: 700; color: var(--t-title); }
.case-card__desc { color: var(--t-sub); font-size: 14px; margin-top: 6px; }
.case-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--t-body); }

/* ---------- 案例详情 ---------- */
.case-hero { padding: 140px 0 56px; }
.breadcrumb { color: var(--t-sub); font-size: 14px; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--brand); }
.case-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: var(--t-title); letter-spacing: -.01em; }
.case-hero .en { font-family: var(--font-en); color: var(--brand); letter-spacing: .04em; margin-top: 6px; font-size: 16px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.case-meta div span { display: block; }
.case-meta .k { font-size: 12px; color: var(--t-sub); letter-spacing: .08em; text-transform: uppercase; }
.case-meta .v { font-size: 16px; color: var(--t-title); font-weight: 600; margin-top: 2px; }
.case-cover-big { aspect-ratio: 16/8; border-radius: var(--r-card); margin-top: 36px; box-shadow: var(--shadow-lg); }

.case-body { max-width: 820px; margin: 0 auto; }
.case-block { margin: 56px 0; }
.case-block h2 { font-size: 26px; font-weight: 700; color: var(--t-title); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.case-block h2 .idx { font-family: var(--font-en); color: var(--accent); font-size: 20px; }
.case-block p { color: var(--t-body); margin-bottom: 12px; }
.case-block ul li { padding: 6px 0 6px 22px; position: relative; color: var(--t-body); }
.case-block ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.placeholder-note { background: var(--bg-soft); border: 1px dashed var(--bd); border-radius: 12px; padding: 14px 18px; color: var(--t-sub); font-size: 14px; margin: 14px 0; }
.next-case { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bd-light); padding-top: 32px; margin-top: 64px; }
.next-case a { font-size: 20px; font-weight: 700; color: var(--t-title); display: inline-flex; align-items: center; gap: 8px; }
.next-case a:hover { color: var(--brand); }

/* 案例页侧边进度（桌面） */
.case-progress { position: fixed; top: 50%; right: 24px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 40; }
.case-progress a { width: 10px; height: 10px; border-radius: 50%; background: var(--bd); transition: all var(--dur) var(--ease); }
.case-progress a.active { background: var(--brand); transform: scale(1.4); }

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-mail { font-family: var(--font-en); font-size: clamp(22px, 4vw, 38px); font-weight: 800; color: var(--t-title); word-break: break-all; }
.contact-mail a:hover { color: var(--brand); }
.contact-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.phone-hidden { color: var(--t-sub); border: 1px dashed var(--bd); border-radius: var(--r-btn); padding: 12px 18px; display: inline-flex; align-items: center; gap: 10px; }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.nf h1 { font-family: var(--font-en); font-size: clamp(120px, 24vw, 260px); font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--brand); animation: bob 2.4s var(--ease) infinite; }

/* ---------- 滚动进场 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob, .hero__scroll, .dot-live, .nf h1 { animation: none !important; }
  .hero__big { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ability-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-groups { grid-template-columns: 1fr; }
  .case-progress { display: none; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 64px 0; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { transform: none; }
  .work-card:nth-child(even):hover { transform: translateY(-6px); }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .ability-grid { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .avatar { width: 200px; height: 200px; font-size: 72px; }
  .capsules { justify-content: center; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .ability-grid { grid-template-columns: 1fr; }
}
