/*
Theme Name: HANK
Theme URI: 
Author: HANK
Description: HANK Portfolio — 影院式暗色视觉语言：悬浮胶囊导航、全幅 Hero、无限横条、横向手风琴、GSAP 滚动叙事。青绿单强调色，为 AI 设计师打造。
Version: 3.3.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: hank
*/

/* ==========================================================================
   设计系统 · HANK v3（gpt-taste 体系）
   accent 锁定: #2dd4a7（全页唯一强调色）
   圆角体系:   统一 12px，按钮全圆角
   背景:      #0b0c0e (off-black, 禁纯黑)
   字体:      Satoshi（西文显示）+ Noto Sans SC（中文），Segoe UI 兜底
   ========================================================================== */

:root {
  --bg: #0b0c0e;
  --bg-2: #101114;
  --surface: #15171a;
  --surface-2: #1b1d21;
  --text: #f0f0ee;
  --text-dim: #a0a1a6;
  --accent: #2dd4a7;
  --accent-deep: #1a9c7c;
  --border: rgba(255, 255, 255, .08);
  --radius: 12px;
  --font: "Satoshi", "Noto Sans SC", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --maxw: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 全局网格纹理（fixed + pointer-events-none，不随滚动重绘） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #fff; }
::selection { background: var(--accent); color: #0b0c0e; }

main { overflow-x: hidden; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  padding: 0 20px;
  background: none;
  border: none;
  backdrop-filter: none;
}
.header-inner {
  max-width: 980px; margin: 0 auto;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 12px 0 26px;
  background: rgba(16, 17, 20, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .38);
}
.brand { font-size: 19px; font-weight: 900; letter-spacing: 1.5px; color: var(--text); font-family: var(--font); }
.brand em { font-style: normal; color: var(--accent); }
.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 20px; border-radius: 999px;
  background: var(--accent); color: #0b0c0e;
  font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.nav-cta:hover { background: #5fe3bf; color: #0b0c0e; }
.nav-cta:active { transform: scale(.96); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, .04); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero：影院式居中，全幅背景 + 径向压暗 ---------- */
.hero {
  min-height: 100dvh;
  display: grid; place-items: center;
  text-align: center;
  position: relative;
  max-width: none;
  padding: 150px 24px 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .4;
  filter: saturate(1.08) contrast(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(920px 500px at 50% 26%, rgba(45, 212, 167, .13), transparent 62%),
    linear-gradient(180deg, rgba(11, 12, 14, .62) 0%, rgba(11, 12, 14, .38) 42%, var(--bg) 94%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.hero-copy h1 {
  font-size: clamp(54px, 8.2vw, 116px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -2.5px;
}
.hero-copy h1 .accent { color: var(--accent); }
.hero-copy h1 .line-2 {
  display: block;
  font-size: clamp(19px, 2.5vw, 33px);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .5px;
  margin-top: 26px;
  text-wrap: balance;
}
.hero-copy .sub {
  margin: 24px auto 0;
  max-width: 44ch;
  color: #b9babf;
  font-size: 16.5px;
}
.hero-actions { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 4px;
  color: var(--text-dim); opacity: .7;
}
.hero-scroll::after {
  content: "";
  display: block; width: 1px; height: 34px; margin: 10px auto 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 无限横条 ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 46px;
  white-space: nowrap; padding-right: 46px;
  animation: mq 30s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-size: clamp(17px, 2.2vw, 27px);
  font-weight: 700; letter-spacing: 1px;
  color: #9aa0ab;
}
.marquee-track i {
  width: 7px; height: 7px; flex: none;
  background: var(--accent); opacity: .75;
  transform: rotate(45deg);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 按钮（全圆角体系） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: var(--accent); color: #0b0c0e;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease), color .2s var(--ease);
}
.btn:hover { background: #5fe3bf; color: #0b0c0e; }
.btn:active { transform: scale(.97); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: rgba(255, 255, 255, .2); }

/* ---------- 区块（大留白节奏） ---------- */
.section { padding: 132px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 56px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.5px; }
.head-link { font-size: 14px; color: var(--text-dim); font-family: var(--mono); }
.head-link em { font-style: normal; color: var(--accent); margin-left: 6px; transition: margin .2s var(--ease); }
.head-link:hover { color: var(--text); }
.head-link:hover em { margin-left: 10px; }

/* ---------- 作品：不对称网格，4 项 = 1 全宽 + 2 半宽 + 1 全宽 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.work-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.work-card:hover { transform: translateY(-6px); border-color: rgba(45, 212, 167, .45); box-shadow: 0 26px 60px rgba(0, 0, 0, .4); }
.work-card.span-12 { grid-column: span 2; }
.work-card .thumb { overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; position: relative; }
.work-card.half .thumb { aspect-ratio: 4 / 3; }
.work-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(11, 12, 14, .52));
  opacity: 0; transition: opacity .4s var(--ease);
}
.work-card:hover .thumb::after { opacity: 1; }
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.94) contrast(1.03);
  transition: transform .7s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.055); }
/* 竖版截图类封面：完整居中显示，不裁切 */
.work-card.fit-contain .thumb { background: radial-gradient(120% 130% at 50% 0%, #1c1f24, #101114); }
.work-card.fit-contain .thumb img { object-fit: contain; padding: 20px; }
.work-card.fit-contain:hover .thumb img { transform: scale(1.03); }
.work-card .body { padding: 18px 22px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-card h3 { font-size: 18px; font-weight: 700; }
.work-card .cat { color: var(--accent); font-size: 12px; font-family: var(--mono); white-space: nowrap; }

/* ---------- 擅长什么：横向手风琴切片 ---------- */
.ha { display: flex; gap: 14px; height: 480px; }
.ha-item {
  position: relative; flex: 1; min-width: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; outline: none;
  transition: flex .6s var(--ease), border-color .3s var(--ease);
}
.ha-item:hover, .ha-item:focus-within { flex: 3.4; border-color: rgba(45, 212, 167, .4); }
.ha-num {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.ha-title {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 18px; font-weight: 800; letter-spacing: 3px; color: var(--text);
  white-space: nowrap; z-index: 2;
  transition: opacity .3s var(--ease);
}
.ha-item:hover .ha-title, .ha-item:focus-within .ha-title { opacity: 0; }
.ha-media { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); }
.ha-media img { width: 100%; height: 100%; object-fit: cover; }
.ha-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, .25), rgba(11, 12, 14, .82));
}
.ha-item:hover .ha-media, .ha-item:focus-within .ha-media { opacity: 1; }
.ha-open {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity .45s var(--ease) .12s, transform .45s var(--ease) .12s, visibility 0s .6s;
}
.ha-item:hover .ha-open, .ha-item:focus-within .ha-open { opacity: 1; transform: none; visibility: visible; transition-delay: .12s, .12s, 0s; }
.ha-open h3 { font-size: 23px; font-weight: 800; white-space: nowrap; }
.ha-open p { color: #c7c8cc; font-size: 14px; line-height: 1.7; max-width: 40ch; margin-top: 8px; }

/* ---------- 宣言（文字擦除滚动叙事） ---------- */
.manifesto-section .container { max-width: 980px; }
.manifesto {
  font-size: clamp(32px, 5.4vw, 68px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.32;
  max-width: 16em;
}
.manifesto .ch { opacity: .13; }
.no-js .manifesto, html:not(.js) .manifesto { opacity: 1; }

/* ---------- 页面通用 ---------- */
.page-hero { padding: 160px 0 44px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; letter-spacing: -1px; }
.page-hero .crumbs { color: var(--text-dim); font-size: 13px; font-family: var(--mono); margin-top: 14px; }
.page-content { padding: 16px 0 90px; color: #d6d6d4; max-width: 72ch; }
.page-content h2, .page-content h3 { color: var(--text); margin: 30px 0 12px; }
.page-content p { margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px 22px; }
.page-content figure { margin: 20px 0; }
.page-content figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.page-content video { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: block; margin: 20px 0; }

/* ---------- 博客列表 ---------- */
.post-card {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px; padding: 28px 4px; border-bottom: 1px solid var(--border); align-items: baseline;
}
.post-card .date { color: var(--text-dim); font-size: 13px; font-family: var(--mono); }
.post-card h3 { font-size: 21px; font-weight: 700; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-dim); font-size: 15px; margin-top: 8px; }

/* ---------- 单篇作品详情 ---------- */
.work-cover {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 44px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

/* ---------- 联系表单 ---------- */
.contact-form { max-width: 620px; }
.contact-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; font-family: var(--mono); }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%; padding: 13px 16px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 15px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6d6e73; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 167, .18); }

/* ---------- 可访问性：skip-link（键盘 Tab 聚焦时可见） ---------- */
.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 999;
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  background: var(--accent); color: #0b0c0e;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { margin-top: 16px; font-size: 14px; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #ff8080; }

/* ---------- CTA 收尾 ---------- */
.end-cta { margin-top: 56px; }
.end-cta p { color: var(--text-dim); font-size: 16.5px; }
.end-cta .hero-actions { justify-content: flex-start; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--text-dim); font-size: 13.5px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-logo { font-size: 17px; font-weight: 900; letter-spacing: 1.5px; color: var(--text); }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-tag { font-size: 12.5px; }
.footer-nav ul { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); font-size: 13px; }
.footer-nav a:hover { color: var(--text); }

/* ---------- 滚动入场（无 GSAP 时的兜底，IntersectionObserver 驱动） ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
/* JS 不可用时内容必须可见 */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .hero-scroll::after { animation: none !important; }
  .work-card, .work-card .thumb img, .ha-item, .btn { transition: none !important; }
}

/* 静态模式（?motion=off）：一切动画与过渡关闭，内容直接可见 */
html.motion-off { scroll-behavior: auto; }
html.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.motion-off .marquee-track, html.motion-off .hero-scroll::after { animation: none !important; }
html.motion-off .work-card, html.motion-off .work-card .thumb img,
html.motion-off .ha-item, html.motion-off .ha-media, html.motion-off .ha-open,
html.motion-off .ha-title, html.motion-off .btn { transition: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    display: none;
    background: rgba(13, 14, 17, .99);
    border: 1px solid var(--border); border-radius: 20px;
    backdrop-filter: blur(24px);
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .ha { flex-direction: column; height: auto; }
  .ha-item { min-height: 0; cursor: default; }
  .ha-title, .ha-media { display: none; }
  .ha-open { position: static; opacity: 1; transform: none; visibility: visible; padding: 20px 22px 22px 52px; }
  .ha-open h3 { font-size: 18px; white-space: normal; }
  .ha-open p { font-size: 14px; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 150px 22px 96px; }
  .hero-copy h1 { letter-spacing: -1.5px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card.span-12 { grid-column: span 1; }
  .section { padding: 88px 0; }
  .post-card { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container, .header-inner { padding-left: 18px; padding-right: 18px; }
  .site-header { top: 12px; padding: 0 14px; }
  .header-inner { height: 56px; }
  .hero { padding-top: 130px; }
}

/* ---------- 3D 交互查看器（v3.2.0） ---------- */
.hank-3d { margin-top: 56px; }
.h3d-stage {
  position: relative; aspect-ratio: 4 / 3; max-height: 640px; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, #16201c, #0d1512);
  border: 1px solid var(--border);
}
.h3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.h3d-overlay[hidden], .h3d-progress[hidden], .h3d-tip[hidden], .h3d-launch[hidden] { display: none; }
.h3d-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; background: rgba(13, 21, 18, 0.35);
}
.h3d-title { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; color: var(--text); margin: 0; }
.h3d-hint { font-size: 0.82rem; color: var(--muted); margin: 0; }
.h3d-launch {
  margin-top: 8px; padding: 13px 34px; border-radius: 999px; border: 1px solid rgba(45, 212, 167, 0.5);
  background: rgba(45, 212, 167, 0.12); color: var(--accent);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.h3d-launch:hover { background: rgba(45, 212, 167, 0.24); transform: translateY(-2px); }
.h3d-progress { width: min(320px, 70%); height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.h3d-bar { width: 0; height: 100%; background: var(--accent); transition: width .2s; }
.h3d-fallback { color: var(--muted); font-size: 0.85rem; }
.h3d-tip {
  position: absolute; z-index: 1; left: 50%; bottom: 14px; transform: translateX(-50%);
  margin: 0; padding: 6px 16px; border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted);
  background: rgba(13, 21, 18, 0.6); border: 1px solid var(--border);
}
@media (prefers-reduced-motion: reduce) {
  .h3d-launch { transition: none; }
}

/* ==========================================================================
   v3.3 首页改版：hero 状态徽章/统计条 · 作品编号 · 工作流程 · 工具箱 · 大 CTA
   参考借鉴：编号系统、数据条、流程时间线、工具矩阵、渐变 CTA 卡
   ========================================================================== */

/* ---------- hero 状态徽章 ---------- */
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(21, 23, 26, .55);
  backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--text-dim);
}
.hero-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(45, 212, 167, .5);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 167, .45); }
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); }
}
.hero-copy .hero-status { margin-bottom: 30px; }

/* ---------- hero 底部统计条 ---------- */
.hero-stats {
  position: absolute; z-index: 1;
  left: 24px; right: 24px; bottom: 78px;
  display: flex; justify-content: center;
}
.hero-stats .stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 46px;
  border-left: 1px solid var(--border);
  text-align: center;
}
.hero-stats .stat:last-child { border-left: none; }
.hero-stats strong {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 800;
  letter-spacing: -1px; color: var(--text); line-height: 1.2;
}
.hero-stats span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-dim); white-space: nowrap;
}
@media (max-width: 860px) {
  .hero-stats { display: none; }
}

/* ---------- 作品卡编号徽章 ---------- */
.work-num {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(11, 12, 14, .68); border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

/* ---------- 区块头英文标签 ---------- */
.head-tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 3px;
  color: var(--accent);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 167, .35);
}

/* ---------- 工作流程：纵向时间线 ---------- */
.process {
  list-style: none; max-width: 780px;
  display: flex; flex-direction: column; gap: 0;
}
.process-item {
  position: relative;
  display: grid; grid-template-columns: 74px 1fr; gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.process-item:last-child { border-bottom: none; }
.process-item::before {
  content: "";
  position: absolute; left: 36px; top: 84px; bottom: -30px;
  width: 1px;
  background: linear-gradient(180deg, rgba(45, 212, 167, .5), rgba(255, 255, 255, .06));
}
.process-item:last-child::before { display: none; }
.p-num {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px; color: var(--accent);
  border: 1px solid rgba(45, 212, 167, .4);
  background: radial-gradient(circle at 32% 28%, rgba(45, 212, 167, .16), transparent 68%), var(--surface);
}
.process-item h3 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.process-item p { color: var(--text-dim); font-size: 15px; margin-top: 6px; max-width: 52ch; }

/* ---------- 工具箱矩阵 ---------- */
.toolkit {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
.toolkit .tool {
  padding: 24px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.toolkit .tool::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  background: var(--accent); transform: rotate(45deg);
  opacity: .65;
}
.toolkit .tool:hover {
  border-color: rgba(45, 212, 167, .45);
  transform: translateY(-3px);
  background: var(--surface-2);
}

/* ---------- 渐变大 CTA 卡 ---------- */
.manifesto-section { padding-bottom: 150px; }
.big-cta {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: clamp(52px, 8vw, 96px) clamp(28px, 6vw, 88px);
  background:
    radial-gradient(680px 340px at 86% -10%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(128deg, #15795f 0%, var(--accent-deep) 34%, var(--accent) 100%);
  color: #0b0c0e;
}
.big-cta::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 12, 14, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 14, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000, transparent 76%);
}
.big-cta .bc-en {
  position: relative;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 900; line-height: .98; letter-spacing: -2px;
  color: #0b0c0e;
  text-transform: uppercase;
}
.big-cta .bc-zh {
  position: relative;
  margin-top: 18px;
  font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; letter-spacing: .5px;
}
.big-cta .bc-sub {
  position: relative;
  margin-top: 12px; max-width: 46ch;
  font-size: 15.5px; color: rgba(11, 12, 14, .78);
}
.big-cta .hero-actions { justify-content: flex-start; margin-top: 36px; }
.btn-dark {
  background: #0b0c0e; color: #fff;
}
.btn-dark:hover { background: #1b1d21; color: #fff; transform: translateY(-2px); }

/* ---------- 博客正文页（single.php） ---------- */
.post-full { max-width: 780px; }
.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.5px;
  color: var(--text-dim);
}
.post-meta .p-cat { color: var(--accent); }
.post-full h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.2;
  text-wrap: balance;
}
.post-content { margin-top: 34px; font-size: 16.5px; color: #c9cacf; }
.post-content p { margin: 0 0 20px; }
.post-content h2 {
  margin: 44px 0 16px;
  font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--text);
}
.post-content h3 { margin: 32px 0 12px; font-size: 19px; font-weight: 700; color: var(--text); }
.post-content ul, .post-content ol { margin: 0 0 20px 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { border-bottom: 1px solid rgba(45, 212, 167, .4); }
.post-content blockquote {
  margin: 26px 0; padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text-dim); font-size: 15.5px;
}
.post-content code {
  font-family: var(--mono); font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px;
}
.post-content img { border-radius: var(--radius); margin: 10px 0; }
.post-nav {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px;
}

/* ---------- 关于页增强（内容区结构样式） ---------- */
.about-lead { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.3px; line-height: 1.55; color: var(--text); max-width: 30em; }
.about-lead em { font-style: normal; color: var(--accent); }
.about-now {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 40px 0 8px;
}
.about-now .now-card {
  padding: 24px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-now .now-card .n-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--accent); display: block; margin-bottom: 10px;
}
.about-now .now-card h3 { font-size: 16.5px; font-weight: 800; }
.about-now .now-card p { font-size: 14px; color: var(--text-dim); margin-top: 6px; line-height: 1.65; }
.about-h2 {
  margin: 56px 0 18px;
  font-size: 22px; font-weight: 800; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 12px;
}
.about-h2::before {
  content: "";
  width: 22px; height: 2px; background: var(--accent); flex: none;
}
.cap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.cap-grid div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: #c9cacf;
}
.cap-grid b { color: var(--text); font-weight: 700; margin-right: 10px; }
.about-works { list-style: none; }
.about-works li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.about-works .w-idx { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; }
.about-works a { color: var(--text); font-weight: 700; }
.about-works a:hover { color: var(--accent); }
.about-works .w-desc { color: var(--text-dim); font-size: 13.5px; margin-left: auto; text-align: right; }
@media (max-width: 760px) {
  .about-now { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .about-works .w-desc { display: none; }
}
