/* ── 基础 ───────────────────────────────────────────── */
:root {
  --bg: #08090b;
  --bg-soft: #0d0f12;
  --panel: #111418;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f2f4;
  --muted: #9198a3;
  --muted-dim: #6b7280;
  --accent: #ff9f5a;
  --accent-soft: rgba(255, 159, 90, 0.14);
  --accent-line: rgba(255, 159, 90, 0.32);
  --radius: 18px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #16120c; }

/* ── 背景光晕 / 颗粒 ─────────────────────────────────── */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  will-change: transform;
}
.glow-a {
  width: 620px; height: 620px;
  top: -260px; left: -120px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.34), transparent 66%);
}
.glow-b {
  width: 560px; height: 560px;
  top: 240px; right: -220px;
  background: radial-gradient(circle, rgba(96, 112, 255, 0.24), transparent 66%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 导航 ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, #ffb27a, #e8702a);
  color: #1a1108;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 18px rgba(232, 112, 42, 0.32);
}
.brand-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ── 版心 ───────────────────────────────────────────── */
main { position: relative; z-index: 2; }
.hero, .works, .about, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-top: 84px; padding-bottom: 100px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(40px, 5.3vw, 66px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.grad {
  background: linear-gradient(100deg, #ffce9e 0%, var(--accent) 42%, #ff7a4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--muted);
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
    border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.btn-primary {
  background: linear-gradient(160deg, #ffb47c, #ef7a33);
  color: #1c1207;
  box-shadow: 0 10px 30px -8px rgba(239, 122, 51, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(239, 122, 51, 0.65);
}
.btn-primary .arr { transition: transform 0.24s var(--ease); }
.btn-primary:hover .arr { transform: translateY(2px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* 快捷直达列表 */
.quick {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.quick-label {
  margin-bottom: 14px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.quick-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 13px 10px 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  transition: padding-left 0.3s var(--ease);
}
.quick-row:last-child { border-bottom: 0; }
.quick-row::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease);
}
.quick-row:hover { padding-left: 8px; }
.quick-row:hover::before { height: 26px; }
.q-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
}
.q-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.q-name {
  font-size: 14.5px;
  font-weight: 550;
  color: #e7e9ed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-meta { font-size: 11.8px; color: var(--muted-dim); }
.q-go {
  font-size: 13px;
  color: var(--muted-dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.quick-row:hover .q-go { color: var(--accent); transform: translate(2px, -2px); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats span { font-size: 12.5px; color: var(--muted-dim); letter-spacing: 0.06em; }

/* ── 区块标题 ────────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.sec-head h2 { font-size: 26px; letter-spacing: -0.03em; }
.sec-head p { font-size: 14px; color: var(--muted-dim); }

/* ── 作品卡片 ────────────────────────────────────────── */
.works { padding-bottom: 110px; scroll-margin-top: 80px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 159, 90, 0.5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 159, 90, 0.16);
}
.card:hover::after { opacity: 1; }

/* 缩略图 */
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050608;
  border-bottom: 1px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .thumb img { transform: scale(1.04); }
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 9, 11, 0.72) 100%);
  pointer-events: none;
}
.thumb-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 11, 14, 0.6);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #d9dde3;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
  flex: 1;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title-row h3 { font-size: 18.5px; letter-spacing: -0.02em; }
.go {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover .go {
  transform: translate(2px, -2px);
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.card-desc {
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #b8bec8;
  letter-spacing: 0.02em;
}
.card-url {
  font-size: 11.5px;
  color: var(--muted-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* ── 关于 ───────────────────────────────────────────── */
.about { padding-bottom: 110px; scroll-margin-top: 80px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-lead {
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.6;
  letter-spacing: -0.025em;
  color: #e6e8ec;
}
.about-text p { font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.about-text p + p { margin-top: 16px; }

/* ── 联系 ───────────────────────────────────────────── */
.contact { padding-bottom: 100px; scroll-margin-top: 80px; }
.contact-inner {
  position: relative;
  padding: 56px clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 159, 90, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.contact-inner h2 { font-size: clamp(24px, 3.4vw, 34px); }
.contact-inner p {
  margin-top: 14px;
  max-width: 34em;
  font-size: 15px;
  color: var(--muted);
}
.contact-inner .btn { margin-top: 30px; }

/* ── 页脚 ───────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 34px 28px 44px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-dim);
  letter-spacing: 0.03em;
}
.foot-sep { opacity: 0.5; }

/* ── 进场动画 ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .quick { padding-left: 0; border-left: 0; padding-top: 6px; border-top: 1px solid var(--line); }
  .quick-row::before { left: 0; }
  .quick-label { margin-top: 18px; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 56px; padding-bottom: 76px; }
  .stats { gap: 28px; margin-top: 52px; }
  .works, .about { padding-bottom: 84px; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 13px; }
  .hero, .works, .about, .contact { padding-left: 18px; padding-right: 18px; }
  .brand-text { display: none; }
  .br-m { display: none; }
  .card-desc { font-size: 13.5px; }
  .sec-head { margin-bottom: 24px; gap: 4px; }
  .contact-inner { padding: 38px 22px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
