/* ============================================================
   视觉文化 · VISUAL CULTURE
   个人作品展示站  —  样式表
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg:          #0A0A0D;
  --bg-elev:     #101017;
  --surface:     #15151D;
  --surface-2:   #1B1B25;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text:        #ECECF2;
  --text-soft:   #B6B6C2;
  --muted:       #8A8A99;

  --accent:      #E0A45E;
  --accent-soft: rgba(224, 164, 94, 0.14);
  --accent-2:    #7C6CF0;
  --accent-3:    #35B9A6;

  --ff-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
             "Source Han Sans SC", sans-serif;
  --ff-serif: Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #17130C; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #17130C; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 13, 0.9); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, #C97F3A 55%, var(--accent-2) 130%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px -8px rgba(224, 164, 94, 0.7);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 3px;
  border: 1.5px solid rgba(23, 19, 12, 0.75);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; letter-spacing: 0.06em; }
.brand-text i {
  font-style: normal; font-family: var(--ff-serif); font-size: 9.5px;
  letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--text-soft);
  border-radius: 8px; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; padding: 10px; }
.nav-toggle span {
  display: block; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 通用排版块 ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 16.5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #17130C; }
.btn--primary:hover { background: #EDB673; transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(224, 164, 94, 0.95); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 112px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 58% at 22% 18%, rgba(224, 164, 94, 0.20) 0%, transparent 62%),
    radial-gradient(40% 52% at 78% 8%,  rgba(124, 108, 240, 0.16) 0%, transparent 66%),
    radial-gradient(34% 44% at 58% 62%, rgba(53, 185, 166, 0.10) 0%, transparent 70%);
  filter: blur(6px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 62% at 50% 34%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 34%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.7rem);
  letter-spacing: -0.02em; line-height: 1.18; max-width: 15em;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(100deg, var(--accent) 0%, #F0C48C 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 26px; max-width: 40em; font-size: 17px; color: var(--text-soft); }
.hero .btn-row { margin-top: 38px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 68px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line);
}
.hero-stats > div { background: var(--bg-elev); padding: 24px 26px; }
.hero-stats b { display: block; font-size: 1.75rem; letter-spacing: -0.02em; color: var(--accent); }
.hero-stats span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- 能力 / 服务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 14.8px; }
.card ul { margin-top: 16px; display: grid; gap: 7px; }
.card li { position: relative; padding-left: 17px; font-size: 14px; color: var(--muted); }
.card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

/* ---------- 作品卡片 / 抽象视觉占位 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.work-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.work-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2);
  isolation: isolate;
}
.work-thumb .art { position: absolute; inset: 0; }
.work-grid--wide .work-thumb { aspect-ratio: 16 / 9; }

.work-badge {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  font-size: 11.5px; letter-spacing: 0.06em; padding: 5px 11px; border-radius: 100px;
  background: rgba(10, 10, 13, 0.62); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F2F2F6; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.work-meta { padding: 20px 20px 22px; }
.work-meta h3 { font-size: 16.5px; }
.work-meta p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.work-meta .work-year { display: inline-block; margin-top: 12px; font-family: var(--ff-serif); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }

/* 抽象视觉（占位作品图）——纯 CSS 生成，可整体替换为真实作品图 */
.art {
  background-color: var(--surface-2);
  background-repeat: no-repeat;
  background-size: cover;
}
.art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}
.art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.55;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 8, 11, 0.72) 100%);
}

.art--1 { background-image: linear-gradient(135deg, #2A2338 0%, #4B3560 45%, #8A6A9E 100%); }
.art--2 { background-image: linear-gradient(160deg, #10222B 0%, #14485A 48%, #35B9A6 100%); }
.art--3 { background-image: linear-gradient(200deg, #2B1F14 0%, #6B4322 46%, #E0A45E 100%); }
.art--4 { background-image: linear-gradient(120deg, #1A1B33 0%, #33356B 50%, #7C6CF0 100%); }
.art--5 { background-image: linear-gradient(150deg, #2B1420 0%, #6B2740 52%, #D9658A 100%); }
.art--6 { background-image: linear-gradient(210deg, #12251C 0%, #1F4C36 48%, #6FB98A 100%); }
.art--7 { background-image: linear-gradient(135deg, #241A2E 0%, #4A3055 40%, #C98AC0 100%); }
.art--8 { background-image: linear-gradient(165deg, #1C1E22 0%, #3A4048 50%, #9AA6B5 100%); }

/* 作品集筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-soft);
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--text); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #17130C; font-weight: 600; }

.notice-bar {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 18px; margin-bottom: 40px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid rgba(224, 164, 94, 0.28);
  font-size: 14.2px; color: #E8CFA8;
}
.notice-bar svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }

.work-card[hidden] { display: none; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--ff-serif); font-size: 13px; letter-spacing: 0.1em; color: var(--accent);
  position: absolute; top: -1px; left: 0; background: var(--bg); padding-right: 10px;
  transform: translateY(-50%);
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 关于页 ---------- */
.about-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.prose > p + p { margin-top: 18px; }
.prose p { color: var(--text-soft); font-size: 16.3px; }
.prose h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: 22px; }
.prose h3 { font-size: 18px; margin: 40px 0 14px; color: var(--text); }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 20px; color: var(--text-soft); font-size: 15.6px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.75; }

.fact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: sticky; top: 96px;
}
.fact-card h3 { font-size: 15px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 20px; }
.fact-list { display: grid; gap: 16px; }
.fact-list dt { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.fact-list dd { margin: 3px 0 0; font-size: 15px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.contact-card p { font-size: 14.2px; color: var(--muted); }
.contact-card a.mail {
  display: inline-block; margin-top: 14px; font-size: 17px; color: var(--accent);
  border-bottom: 1px solid rgba(224, 164, 94, 0.4); padding-bottom: 2px;
  word-break: break-all;
}
.contact-card a.mail:hover { border-bottom-color: var(--accent); }

.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--bg-elev); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 24px 22px; font-size: 14.8px; color: var(--text-soft); }

/* ---------- CTA 条 ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 52px 44px;
  background:
    radial-gradient(58% 130% at 12% 0%, rgba(224, 164, 94, 0.14) 0%, transparent 62%),
    radial-gradient(52% 120% at 92% 100%, rgba(124, 108, 240, 0.14) 0%, transparent 62%),
    var(--bg-elev);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin-top: 10px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-elev); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap;
  padding: 56px 24px 44px;
}
.footer-logo { font-size: 15.5px; font-weight: 700; letter-spacing: 0.04em; }
.footer-desc { margin-top: 8px; font-size: 13.8px; color: var(--muted); }
.footer-contact { text-align: right; }
.footer-contact p { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.footer-contact a { display: inline-block; margin-top: 6px; font-size: 15px; color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }

.footer-beian { border-top: 1px solid var(--line); padding: 20px 0; }
.beian-links {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 22px; font-size: 12.6px; color: var(--muted);
}
.beian-links a {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted);
  transition: color 0.18s var(--ease);
}
.beian-links a:hover { color: var(--accent); }
.beian-links .sep { color: rgba(255, 255, 255, 0.14); }
.beian-links img { display: inline-block; vertical-align: middle; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- 页内锚点偏移 ---------- */
[id] { scroll-margin-top: 92px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .section { padding: 76px 0; }
  .grid-3, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .fact-card { position: static; }
  .hero-stats > div { padding: 20px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 10px 18px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 12px; font-size: 15.5px; }
  .site-nav a.is-active::after { display: none; }

  .hero { padding: 76px 0 68px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .work-grid, .work-grid--wide, .contact-grid, .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 38px; }
  .cta-band { padding: 38px 26px; }
  .footer-inner { flex-direction: column; gap: 26px; padding: 40px 18px 32px; }
  .footer-contact { text-align: left; }
  .beian-links { flex-direction: column; gap: 8px; }
  .beian-links .sep { display: none; }
}
