/* ============================================================
   Spatial Portfolio · Aurora + Glassmorphism
   ============================================================ */

:root{
  --ink-950:#05060A;
  --ink-900:#0A0B12;
  --ink-800:#10131C;
  --ink-700:#181C28;
  --aurora-cyan:#5EEAD4;
  --aurora-violet:#A78BFA;
  --aurora-fuchsia:#F0ABFC;
  --aurora-blue:#60A5FA;
  --aurora-rose:#FB7185;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
}

*{ -webkit-tap-highlight-color: transparent; }
html{ scroll-behavior: smooth; }
body{ background:var(--ink-950); }

/* ============ Aurora Background ============ */
.aurora-bg{ position: fixed; inset:0; z-index: 0; pointer-events:none; overflow:hidden; }
.aurora-blob{
  position:absolute; width:60vmax; height:60vmax;
  border-radius:50%; filter: blur(120px); opacity:.55;
  mix-blend-mode: screen;
  animation: blobFloat 22s ease-in-out infinite alternate;
}
.aurora-blob--cyan{ background: radial-gradient(circle, #2DD4BF 0%, rgba(45,212,191,0) 60%); top:-20vmax; left:-15vmax; }
.aurora-blob--violet{ background: radial-gradient(circle, #8B5CF6 0%, rgba(139,92,246,0) 60%); top:30vmax; right:-20vmax; animation-duration: 28s; animation-delay:-6s; }
.aurora-blob--fuchsia{ background: radial-gradient(circle, #E879F9 0%, rgba(232,121,249,0) 60%); bottom:-25vmax; left:10vmax; animation-duration: 32s; animation-delay:-12s; }
@keyframes blobFloat{
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(8vmax,-6vmax) scale(1.15); }
  100% { transform: translate(-6vmax,4vmax) scale(.95); }
}
.aurora-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity:.5;
}
.aurora-noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity:.5;
}
section, header, footer{ position: relative; z-index: 1; }

/* ============ Glass Nav ============ */
.glass-nav{
  background: rgba(10,11,18,.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.logo-mark{
  width:22px;height:22px;border-radius:7px;
  background: conic-gradient(from 180deg, var(--aurora-cyan), var(--aurora-violet), var(--aurora-fuchsia), var(--aurora-cyan));
  box-shadow: 0 0 16px rgba(167,139,250,.5);
  animation: spin 12s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }
.nav-link{ padding:6px 12px; border-radius:9px; transition: color .25s, background .25s; cursor:pointer; }
.nav-link:hover{ color:#fff; background: rgba(255,255,255,.06); }
.cta-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(94,234,212,.08);
  border:1px solid rgba(94,234,212,.25);
  color: var(--aurora-cyan);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .04em; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.cta-pill:hover{ background: rgba(94,234,212,.16); border-color: rgba(94,234,212,.45); }
.cta-pill-dot{
  width:6px;height:6px;border-radius:50%; background: var(--aurora-cyan);
  box-shadow: 0 0 8px var(--aurora-cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1)} 50%{ opacity:.5; transform:scale(.85)} }

/* ============ Aurora Text ============ */
.aurora-text{
  background: linear-gradient(110deg, #5EEAD4 0%, #A78BFA 35%, #F0ABFC 65%, #60A5FA 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: auroraShift 9s ease-in-out infinite;
}
@keyframes auroraShift{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

/* ============ Status / Buttons ============ */
.status-dot{
  width:8px;height:8px;border-radius:50%;
  background: #34D399; box-shadow: 0 0 12px #34D399;
  animation: pulse 1.8s infinite;
}
.btn-primary{
  display:inline-flex;align-items:center;gap:10px;
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(94,234,212,.18), rgba(167,139,250,.18));
  border:1px solid rgba(255,255,255,.18);
  color:#fff; font-family: 'Space Grotesk', sans-serif;
  font-size:14px; letter-spacing:.02em; cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: 0 8px 32px -8px rgba(167,139,250,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover{
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 12px 40px -8px rgba(167,139,250,.7), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-ghost{
  display:inline-flex;align-items:center;gap:10px;
  padding: 13px 22px; border-radius:999px;
  border:1px solid var(--line-strong);
  color: rgba(255,255,255,.85);
  font-family: 'Space Grotesk', sans-serif; font-size:14px; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }

/* ============ Scroll Indicator ============ */
.scroll-indicator{
  width:1px; height:48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6), transparent);
  position: relative; overflow:hidden;
}
.scroll-indicator::after{
  content:""; position:absolute; left:0; top:0; width:100%; height:30%;
  background: var(--aurora-cyan);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{ transform: translateY(-100%);} 100%{ transform: translateY(220%);} }

/* ============ Section Header ============ */
.section-header{ display:flex; flex-direction:column; gap:8px; }
.section-tag{
  display:inline-block; font-family:'Space Grotesk',sans-serif;
  font-size:11px; letter-spacing:.32em; text-transform:uppercase;
  color: var(--aurora-cyan); width: max-content;
  padding: 5px 12px; border-radius:999px;
  background: rgba(94,234,212,.08); border:1px solid rgba(94,234,212,.18);
}
.section-title{
  font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing:-.02em; line-height:1.05;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.65) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.section-sub{ color: rgba(255,255,255,.5); font-size:15px; }

/* ============ Bento Card ============ */
.bento-card{
  position: relative; border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.015) 100%),
    rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border:1px solid var(--line);
  box-shadow:
    0 24px 60px -28px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden;
  transform-style: preserve-3d;
  transition: border-color .5s, box-shadow .5s;
  will-change: transform;
}
.bento-card::before{
  content:""; position:absolute; inset:-1px; border-radius: inherit;
  padding:1px;
  background: linear-gradient(135deg,
    rgba(94,234,212,.0) 0%,
    rgba(94,234,212,.4) 25%,
    rgba(167,139,250,.4) 50%,
    rgba(240,171,252,.4) 75%,
    rgba(94,234,212,.0) 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.0; transition: opacity .6s;
  animation: breathe 6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes breathe{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.bento-card:hover::before{ opacity:1; }
.bento-card::after{
  content:""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,-100%),
    rgba(167,139,250,.18), transparent 40%);
  opacity:0; transition: opacity .4s; pointer-events:none;
}
.bento-card:hover::after{ opacity:1; }

/* ============ Avatar ============ */
.avatar-ring{
  width:64px;height:64px;border-radius:18px;padding:2px;
  background: conic-gradient(from 0deg, var(--aurora-cyan), var(--aurora-violet), var(--aurora-fuchsia), var(--aurora-cyan));
  animation: spin 8s linear infinite;
}
.avatar-inner{
  width:100%;height:100%;border-radius:16px;
  background: radial-gradient(circle at 30% 30%, #1a1d29, #0a0b12);
  display:flex;align-items:center;justify-content:center;
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:20px;
  color:#fff;letter-spacing:.05em;
}
.info-pill{
  display:flex; flex-direction:column; gap:2px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border:1px solid var(--line);
}
.info-pill-label{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; color: rgba(255,255,255,.4); font-family:'Space Grotesk',sans-serif; }
.info-pill-value{ color: rgba(255,255,255,.92); font-size:13px; font-weight:500; }

/* ============ Bento Icon ============ */
.bento-icon{
  width:36px;height:36px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line); background: rgba(255,255,255,.03);
}
.bento-icon--cyan{ color: var(--aurora-cyan); border-color: rgba(94,234,212,.3); background: rgba(94,234,212,.08); }
.bento-icon--violet{ color: var(--aurora-violet); border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }

/* ============ Progress Bar ============ */
.progress-bar{ height:6px; border-radius:999px; background: rgba(255,255,255,.06); overflow:hidden; }
.progress-fill{
  height:100%; width:0;
  background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-violet), var(--aurora-fuchsia));
  border-radius:inherit;
  transition: width 1.6s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 12px rgba(167,139,250,.5);
}
.dot-stack{
  width:24px;height:24px;border-radius:50%;border:2px solid var(--ink-900);
  display:inline-block; box-shadow: 0 0 12px currentColor;
}
.dot{ width:8px;height:8px;border-radius:50%; display:inline-block; box-shadow: 0 0 8px currentColor; }

/* ============ Skill Chip ============ */
.skill-chip{
  display:inline-flex; align-items:center;
  padding: 7px 13px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: rgba(255,255,255,.78);
  transition: background .3s, color .3s, border-color .3s;
  cursor: default;
}
.skill-chip:hover{ background: rgba(255,255,255,.08); color:#fff; border-color: var(--line-strong); }
.skill-chip--cyan{ background: rgba(94,234,212,.08); border-color: rgba(94,234,212,.25); color: #A7F3D0;}
.skill-chip--violet{ background: rgba(167,139,250,.08); border-color: rgba(167,139,250,.25); color: #DDD6FE;}
.skill-chip--fuchsia{ background: rgba(240,171,252,.08); border-color: rgba(240,171,252,.25); color: #FAE8FF;}

/* ============ About Modules ============ */
.career-card{
  min-height: 210px;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(94,234,212,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(16,19,28,.55);
}
.career-role-main{
  max-width: 10em;
  font-family:'Space Grotesk','Noto Sans SC',sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
  background: linear-gradient(110deg, #fff 0%, #5EEAD4 45%, #A78BFA 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.career-role-sub{
  margin-top: 14px;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.58);
}
.editor-meter-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 14px;
  color: rgba(255,255,255,.78);
}
.editor-meter-grid li{
  padding: 10px 0 2px;
  border-top: 1px solid rgba(255,255,255,.055);
}
.production-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.production-chip{
  position: relative;
  min-height: 72px;
  padding: 13px 14px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(94,234,212,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.075);
  transition: border-color .3s, background .3s, transform .3s;
}
.production-chip:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(167,139,250,.18), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.production-chip span{
  display: block;
  font-family:'Space Grotesk',sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.production-chip b{
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.25;
}
.genre-experience-card{
  min-height: 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(94,234,212,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(16,19,28,.55);
}
.genre-score{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family:'Space Grotesk',sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--aurora-cyan);
  background: rgba(94,234,212,.08);
  border: 1px solid rgba(94,234,212,.22);
}
.genre-experience-progress{
  height: 6px;
  margin-top: 2px;
  background: rgba(255,255,255,.06);
}
.genre-experience-progress .progress-fill{
  background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-violet), var(--aurora-fuchsia));
  box-shadow: 0 0 12px rgba(167,139,250,.5);
}
.genre-experience-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.genre-experience-chips span{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  transition: background .3s, border-color .3s, color .3s;
}
.genre-experience-chips span:hover{
  color: #fff;
  background: rgba(255,255,255,.075);
  border-color: var(--line-strong);
}
.game-story-card{
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(167,139,250,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(16,19,28,.55);
}
.game-story-layout{
  display: grid;
  grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.game-story-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.game-story-text{
  max-width: 76ch;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.85;
  padding-left: 26px;
  border-left: 1px solid rgba(255,255,255,.09);
}

/* ============ Project Card ============ */
.project-card{
  position:relative; border-radius: 28px;
  min-height: 280px; overflow: hidden; cursor: pointer;
  background: rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border:1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d;
  transition: border-color .5s, box-shadow .5s;
  will-change: transform;
}
.project-card::after{
  content:""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(700px circle at var(--mx,50%) var(--my,-100%),
    rgba(255,255,255,.08), transparent 40%);
  opacity:0; transition: opacity .4s; pointer-events:none;
}
.project-card:hover::after{ opacity:1; }
.project-card:hover{ border-color: var(--line-strong); }
.project-bg{
  position:absolute; inset:0; opacity:.55;
  pointer-events:none; transition: opacity .6s, transform .6s;
}
.project-card:hover .project-bg{ opacity:.75; transform: scale(1.05); }
.project-bg--cyan{
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(94,234,212,.4), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(167,139,250,.35), transparent 60%);
}
.project-bg--violet{
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(167,139,250,.45), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(96,165,250,.3), transparent 60%);
}
.project-bg--fuchsia{
  background:
    radial-gradient(80% 60% at 100% 100%, rgba(240,171,252,.4), transparent 60%),
    radial-gradient(60% 60% at 0% 0%, rgba(251,113,133,.3), transparent 60%);
}
.project-bg--blue{
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(96,165,250,.4), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(94,234,212,.3), transparent 60%);
}
.project-content{
  position: relative; z-index: 2;
  padding: 28px; height: 100%;
  display: flex; flex-direction: column;
}
.project-badge{
  display:inline-block; padding: 4px 10px; border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: .25em;
  background: linear-gradient(90deg, rgba(94,234,212,.18), rgba(167,139,250,.18));
  border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.project-title{
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.project-desc{
  margin-top: 12px; color: rgba(255,255,255,.65);
  font-size: 14px; line-height: 1.65; max-width: 50ch;
}
.project-chip{
  display:inline-flex; align-items:center;
  padding: 5px 11px; border-radius:999px;
  font-size: 11.5px;
  background: rgba(255,255,255,.06); border:1px solid var(--line);
  color: rgba(255,255,255,.8);
}
.project-cta{
  margin-top: auto; padding-top: 20px;
  display:inline-flex; align-items:center; gap: 8px;
  font-family:'Space Grotesk',sans-serif;
  font-size: 13px; letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  transition: color .3s, gap .3s;
}
.project-card:hover .project-cta{ color: var(--aurora-cyan); gap: 12px; }

/* ============ Bar Chart ============ */
.bar{ height: 10px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar-fill{
  height: 100%; width: 0; border-radius: inherit;
  transition: width 1.8s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 14px currentColor;
}
.bar-fill--cyan{ background: linear-gradient(90deg,#5EEAD4, #2DD4BF); color: rgba(94,234,212,.6); }
.bar-fill--violet{ background: linear-gradient(90deg,#A78BFA, #8B5CF6); color: rgba(167,139,250,.6); }
.bar-fill--fuchsia{ background: linear-gradient(90deg,#F0ABFC, #E879F9); color: rgba(240,171,252,.6); }
.bar-fill--blue{ background: linear-gradient(90deg,#60A5FA, #3B82F6); color: rgba(96,165,250,.6); }
.bar-fill--rose{ background: linear-gradient(90deg,#FB7185, #F43F5E); color: rgba(251,113,133,.6); }

/* ============ Genre Chip ============ */
.genre-chip{
  display:flex; flex-direction:column; gap:4px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s;
}
.genre-chip:hover{ background: rgba(255,255,255,.06); border-color: var(--line-strong); }
.genre-chip span{ font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); font-family:'Space Grotesk',sans-serif;}
.genre-chip b{ font-size: 14px; color: rgba(255,255,255,.92); font-weight: 600; }

/* ============ Timeline ============ */
.timeline{ position:relative; padding-left: 32px; }
.timeline::before{
  content:""; position:absolute; left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.18), transparent);
}
.t-item{ position:relative; margin-bottom: 18px; }
.t-dot{
  position:absolute; left: -27px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink-950);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 16px currentColor;
}
.t-dot--cyan{ background: var(--aurora-cyan); color: var(--aurora-cyan); }
.t-dot--violet{ background: var(--aurora-violet); color: var(--aurora-violet); }
.t-dot--fuchsia{ background: var(--aurora-fuchsia); color: var(--aurora-fuchsia); }
.t-dot--blue{ background: var(--aurora-blue); color: var(--aurora-blue); }
.t-card{
  position: relative;
  padding: 22px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.012) 100%),
    rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border:1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  transform-style: preserve-3d;
  transition: border-color .4s;
}
.t-item:hover .t-card{ border-color: var(--line-strong); }
.t-period{ font-family:'Space Grotesk',sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--aurora-cyan); }
.t-loc{ font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .15em; text-transform: uppercase; font-family:'Space Grotesk',sans-serif;}
.t-title{ margin-top: 6px; font-size: 17px; font-weight: 600; color: #fff; }
.t-role{ margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.55); }
.t-desc{ margin-top: 12px; padding-left: 18px; list-style: disc; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.75; }
.t-desc::marker{ color: rgba(94,234,212,.5); }

@media (min-width: 1024px){
  .timeline{
    padding-left: 0;
    max-width: 1080px;
    margin: 0 auto;
  }
  .timeline::before{
    left: 50%;
    top: 18px;
    bottom: 18px;
    background: linear-gradient(to bottom, transparent, rgba(94,234,212,.22), rgba(167,139,250,.22), transparent);
  }
  .t-item{
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 26px;
  }
  .t-item:nth-child(odd){
    padding-right: 48px;
    text-align: left;
  }
  .t-item:nth-child(even){
    margin-left: 50%;
    padding-left: 48px;
  }
  .t-item:nth-child(odd) .t-dot{
    left: auto;
    right: -7px;
  }
  .t-item:nth-child(even) .t-dot{
    left: -7px;
  }
  .t-item:nth-child(odd) .t-card{
    transform-origin: right center;
  }
  .t-item:nth-child(even) .t-card{
    transform-origin: left center;
  }
  .t-card::before{
    content: '';
    position: absolute;
    top: 30px;
    width: 48px;
    height: 1px;
    pointer-events: none;
  }
  .t-item:nth-child(odd) .t-card::before{
    right: -48px;
    background: linear-gradient(90deg, rgba(94,234,212,.32), rgba(94,234,212,.08), transparent);
  }
  .t-item:nth-child(even) .t-card::before{
    left: -48px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,.08), rgba(167,139,250,.32));
  }

}

/* ============ Contact ============ */
.contact-card{
  position: relative; padding: 80px 32px;
  border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%),
    rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border:1px solid var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
.contact-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(94,234,212,.18), transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(167,139,250,.22), transparent 60%),
    radial-gradient(40% 50% at 50% 50%, rgba(240,171,252,.15), transparent 70%);
  pointer-events: none;
  animation: contactPulse 8s ease-in-out infinite alternate;
}
@keyframes contactPulse{
  0%{ transform: scale(1); opacity:.9; }
  100%{ transform: scale(1.08); opacity:1; }
}

/* ============ Modal ============ */
.modal{
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal.is-open{ display: flex; }
.modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(5,6,10,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn .4s ease;
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
.modal-panel{
  position: relative;
  width: min(960px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.012) 100%),
    rgba(10,11,18,.85);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
  animation: modalIn .5s cubic-bezier(.22,1,.36,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(94,234,212,.62) rgba(255,255,255,.045);
  scrollbar-gutter: stable;
}
.modal-panel::-webkit-scrollbar{ width: 10px; }
.modal-panel::-webkit-scrollbar-track{
  margin: 22px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.045);
}
.modal-panel::-webkit-scrollbar-thumb{
  border: 2px solid rgba(10,11,18,.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(94,234,212,.86), rgba(167,139,250,.78));
  box-shadow:
    0 0 18px rgba(94,234,212,.18),
    inset 0 1px 0 rgba(255,255,255,.24);
}
.modal-panel::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(180deg, rgba(94,234,212,.98), rgba(240,171,252,.82));
}
.modal-panel::-webkit-scrollbar-corner{ background: transparent; }

@keyframes modalIn{
  from{ opacity:0; transform: scale(.92) translateY(20px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}
.modal-close{
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-strong);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.modal-close:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.modal-content{ padding: 56px 40px 48px; }

/* Modal interior */
.mc-tag{
  display:inline-block; padding: 5px 12px; border-radius:999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  background: rgba(94,234,212,.08); border: 1px solid rgba(94,234,212,.2);
  color: var(--aurora-cyan);
}
.mc-title{
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -.02em; line-height: 1.05;
}
.mc-sub{ margin-top: 10px; color: rgba(255,255,255,.55); font-size: 14px; }
.mc-hero{
  margin-top: 32px; padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(94,234,212,.12), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(167,139,250,.18), transparent 60%),
    rgba(16,19,28,.6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mc-stat-label{ font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); font-family:'Space Grotesk',sans-serif; }
.mc-stat-value{ margin-top: 6px; font-family: 'Space Grotesk',sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.mc-section{ margin-top: 28px; }
.mc-section h4{
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.mc-section p{ margin-top: 10px; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.85; }
.mc-tags{ margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ Reveal animation ============ */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* ============ Responsive ============ */
.hero-scroll-cue{
  transform: translateX(-50%);
}
.hero-scroll-cue.reveal{
  transform: translateX(-50%) translateY(28px);
}
.hero-scroll-cue.reveal.is-visible{
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px){
  .hero-scroll-cue,
  .hero-scroll-cue.reveal.is-visible{
    bottom: 1rem;
    transform: translateX(-50%) scale(.86);
    transform-origin: center bottom;
    opacity: .78;
  }
  .hero-scroll-cue.reveal{
    transform: translateX(-50%) translateY(28px) scale(.86);
  }
  .hero-scroll-cue .scroll-indicator{ height: 38px; }
  .modal-content{ padding: 48px 24px 32px; }
  .mc-hero{ grid-template-columns: 1fr; gap: 16px; }
  [data-tilt]{ transform: none !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Hero · 打字机副标题
   ============================================================ */
.hero-typewriter{
  margin-top: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.82);
  min-height: 1.4em; /* 防止开始为空时塌陷 */
}
.hero-typewriter-text{
  white-space: pre;
  background: linear-gradient(110deg, #5EEAD4 0%, #A78BFA 50%, #F0ABFC 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tyAuroraShift 6s ease-in-out infinite;
}
.hero-typewriter-caret{
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: linear-gradient(180deg, #5EEAD4, #A78BFA);
  border-radius: 2px;
  transform: translateY(.15em);
  animation: tyCaret 0.95s steps(2, end) infinite;
  box-shadow: 0 0 8px rgba(167,139,250,.6);
}
@keyframes tyCaret{
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes tyAuroraShift{
  0%,100%{ background-position: 0% 50%; }
  50%   { background-position: 100% 50%; }
}

/* ============================================================
   Hero · 左右两栏布局（左文字 + 右图标星簇）
   ============================================================ */
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px){
  .hero-grid{
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
    gap: 64px;
  }
}
.hero-left{ min-width: 0; }
.hero-right{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* ============================================================
   Hero · 浮动玻璃图标星簇
   ============================================================ */
.hero-icons{
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 460px;
  perspective: 900px;
  transform-style: preserve-3d;
  pointer-events: none; /* 子项单独开启 */
}
.hero-icon{
  position: absolute;
  width: 104px; height: 104px;
  border-radius: 26px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: center;
  transition:
    transform .55s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .55s ease,
    border-color .4s ease;
  animation:
    heroIconIn .9s cubic-bezier(.34,1.56,.64,1) both,
    heroIconFloat 7s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 110ms),
    calc(var(--i, 0) * 600ms + 900ms);
  will-change: transform;
}
/* 错落布局：右侧"星座"分布 */
.hero-icon:nth-child(1){ top:  2%;  left:  2%; }    /* 元梦 (L) */
.hero-icon:nth-child(2){ top: 22%;  left: 60%; }    /* Roblox (M) */
.hero-icon:nth-child(3){ top: 48%;  left: 12%; }    /* Free Fire (XL) */
.hero-icon:nth-child(4){ top: 74%;  left: 66%; }    /* Lua (S) */

/* 尺寸档位 */
.hero-icon--sm { width: 84px;  height: 84px;  border-radius: 22px; }
.hero-icon--lg { width: 116px; height: 116px; border-radius: 30px; }
.hero-icon--xl { width: 132px; height: 132px; border-radius: 34px; }

/* 图标内容：图片优先，SVG 兜底
   填满徽章：图片几乎贴边，仅留极小内边距让玻璃感保留 */
.hero-icon-img,
.hero-icon-svg{
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
/* SVG 用线性图标本身就有 viewBox 内边距，给得稍小一些让线条更醒目 */
.hero-icon-svg{
  inset: 18%;
  width: 64%;
  height: 64%;
}

/* 当图片存在时，盖住 SVG */
.hero-icon-img{ z-index: 2; opacity: 1; }
.hero-icon-svg{ z-index: 1; opacity: .92; }
.hero-icon-img + .hero-icon-svg{ display: none; } /* 图片存在 -> 隐藏 SVG */
/* 图片 onerror 后会被移除，SVG 自动显示 */

/* 极光描边 */
.hero-icon::before{
  content:''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 90%, transparent) 0%,
    rgba(255,255,255,.05) 50%,
    transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
  transition: opacity .4s;
  z-index: 3;
}
/* 内层底光晕（在图标后面） */
.hero-icon::after{
  content:''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  opacity: .35; z-index: 0;
  pointer-events: none;
  animation: heroIconGlowInner 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 700ms + 800ms);
  transition: opacity .4s;
}

.hero-icon--cyan    { --accent: #5EEAD4; }
.hero-icon--violet  { --accent: #A78BFA; }
.hero-icon--fuchsia { --accent: #F0ABFC; }
.hero-icon--blue    { --accent: #60A5FA; }

/* hover：自身放大 + 外发光 + 边框点亮 */
.hero-icon:hover{
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) translateY(-6px) scale(1.12) rotateZ(-4deg);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    0 24px 60px -12px var(--accent),
    0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
  z-index: 5;
}
.hero-icon:hover::after{ opacity: .65; }
.hero-icon:hover::before{ opacity: 1; }
.hero-icon:hover .hero-icon-img,
.hero-icon:hover .hero-icon-svg{ filter: drop-shadow(0 6px 16px var(--accent)); }

/* 静态图标：保留呼吸/视差/出场，但禁用 hover 放大与点击交互 */
.hero-icon--static{ cursor: default; }
.hero-icon--static:hover{
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  border-color: rgba(255,255,255,.10);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-icon--static:hover::after{ opacity: .35; }
.hero-icon--static:hover::before{ opacity: .55; }
.hero-icon--static:hover .hero-icon-img,
.hero-icon--static:hover .hero-icon-svg{ filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

/* 出场 / 呼吸 / 光晕 关键帧 */
@keyframes heroIconIn{
  from{ opacity: 0; transform: translateY(28px) scale(.55); filter: blur(10px); }
  to  { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
}
@keyframes heroIconFloat{
  0%,100%{ transform: translate3d(var(--mx, 0), var(--my, 0), 0) translateY(0); }
  50%    { transform: translate3d(var(--mx, 0), var(--my, 0), 0) translateY(-7px); }
}
@keyframes heroIconGlowInner{
  0%,100%{ opacity: .25; }
  50%    { opacity: .55; }
}

/* Tooltip */
.hero-icon-tooltip{
  position: absolute;
  top: 0; left: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  background: rgba(10,11,18,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, left .35s cubic-bezier(.22,1,.36,1), top .35s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
  z-index: 10;
}
.hero-icon-tooltip.is-visible{ opacity: 1; }

/* 中等屏幕（平板）：星簇缩小一点放在文字下方 */
@media (max-width: 1023px){
  .hero-icons{
    margin-top: 48px;
    height: 380px;
    max-width: 560px;
  }
  .hero-icon       { width: 92px;  height: 92px;  border-radius: 24px; }
  .hero-icon--sm   { width: 76px;  height: 76px;  border-radius: 20px; }
  .hero-icon--lg   { width: 104px; height: 104px; border-radius: 28px; }
  .hero-icon--xl   { width: 120px; height: 120px; border-radius: 32px; }
}

/* 移动端：降级为整齐 4 列 */
@media (max-width: 768px){
  .hero-icons{
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 100%;
    margin-top: 36px;
  }
  .hero-icon, .hero-icon--lg, .hero-icon--sm, .hero-icon--xl{
    position: static !important;
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }
  .hero-icon-tooltip{ display: none; }
}

/* ============================================================
   项目区 · Tab Pills
   ============================================================ */
.category-tabs{
  position: sticky;
  top: 84px;  /* 留出顶部导航高度 */
  z-index: 30;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10,11,18,.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  width: max-content;
  max-width: 100%;
}
.cat-tab{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.65);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .35s, background .35s, border-color .35s, transform .35s;
}
.cat-tab:hover{ color: #fff; background: rgba(255,255,255,.04); }
.cat-tab.is-active{
  color: #fff;
  background: linear-gradient(135deg, rgba(94,234,212,.16), rgba(167,139,250,.16));
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.cat-tab-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  box-shadow: 0 0 8px currentColor;
}
.cat-tab-dot--cyan   { background: var(--aurora-cyan);    color: var(--aurora-cyan); }
.cat-tab-dot--violet { background: var(--aurora-violet);  color: var(--aurora-violet); }
.cat-tab-dot--fuchsia{ background: var(--aurora-fuchsia); color: var(--aurora-fuchsia); }
.cat-tab-count{
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-family: 'Space Grotesk', sans-serif;
}
.cat-tab.is-active .cat-tab-count{
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}

/* 移动端：分类栏使用紧凑 2×2 网格，保证四个分类都可见 */
@media (max-width: 768px){
  .category-tabs{
    top: 72px;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 6px;
    gap: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
    overflow: visible;
  }
  .cat-tab{
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .cat-tab-dot{ width: 6px; height: 6px; }
  .cat-tab-count{
    font-size: 10.5px;
    padding: 1px 7px;
  }
}

/* ============================================================
   分类柱 · Pillar
   ============================================================ */
.categories-root{ display: flex; flex-direction: column; gap: 64px; }
.pillar{
  scroll-margin-top: 140px; /* 锚点跳转预留导航 + Tab 高度 */
}
.pillar-header{
  position: relative;
  width: 100%;
  text-align: left;
  padding: 32px 32px 26px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.012) 100%),
    rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  margin-bottom: 18px;
  /* 作为按钮 */
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .5s;
  -webkit-appearance: none;
  appearance: none;
}
.pillar-header:hover{
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong));
  box-shadow:
    0 30px 80px -24px rgba(0,0,0,.75),
    0 0 40px -12px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,.10);
  transform: translateY(-2px);
}
.pillar-header:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, transparent);
  outline-offset: 4px;
}
.pillar-header::before{
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 100% at 0% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.pillar-header::after{
  /* 大字水印 */
  content: attr(data-watermark);
  position: absolute;
  right: -10px; bottom: -28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 14vw, 180px);
  letter-spacing: -.03em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.pillar-header-inner{ position: relative; z-index: 2; }
.pillar-header-top{
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.pillar-icon{
  position: relative;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
  box-shadow: 0 0 24px -4px color-mix(in srgb, var(--accent) 50%, transparent);
  overflow: hidden;
  flex-shrink: 0;
}
/* 图片优先 + SVG 兜底（与 Hero 图标一致的逻辑） */
.pillar-icon-img,
.pillar-icon-svg{
  position: absolute;
  inset: 8%;
  width: 84%; height: 84%;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.pillar-icon-img{ object-fit: contain; z-index: 2; }
.pillar-icon-svg{
  /* 线性 SVG 需要更多呼吸空间 */
  inset: 22%;
  width: 56%; height: 56%;
  z-index: 1;
  display: grid; place-items: center;
}
.pillar-icon-svg svg{ width: 100%; height: 100%; }
/* 图片存在则隐藏 SVG */
.pillar-icon-img + .pillar-icon-svg{ display: none; }
.pillar-eyebrow{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.pillar-title{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
  margin-top: 4px;
}
.pillar-tagline{
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-size: 13.5px;
}
.pillar-period{
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  letter-spacing: .08em;
}
.pillar-summary{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pillar-stat{
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.pillar-stat-k{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.pillar-stat-v{
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.pillar-stat-v--accent{ color: var(--accent); }

/* ---- Pillar header titles 区（让标题区可被推开，让 period/toggle 靠右） ---- */
.pillar-header-titles{ flex: 1; min-width: 0; }

/* ---- Toggle 按钮（加号 ↔ 减号） ---- */
.pillar-toggle-btn{
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  box-shadow:
    0 0 24px -6px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .5s cubic-bezier(.22,1,.36,1), background .4s, box-shadow .4s, border-color .4s;
  margin-left: 4px;
  /* 呼吸光效 */
  animation: pillarToggleBreathe 2.6s ease-in-out infinite;
}
.pillar-header:hover .pillar-toggle-btn{
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow:
    0 0 32px -4px color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 1px 0 rgba(255,255,255,.12);
  transform: scale(1.06);
}
.pillar-toggle-btn svg{ transition: transform .5s cubic-bezier(.22,1,.36,1); }
/* 横线 + 竖线，组成"+"；展开后竖线 scaleY(0)，变成"-" */
.pillar-toggle-h, .pillar-toggle-v{
  transform-origin: center;
  transform-box: fill-box;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.pillar.is-expanded .pillar-toggle-v{ transform: scaleY(0); }
.pillar.is-expanded .pillar-toggle-btn{ transform: rotate(180deg); }
.pillar.is-expanded .pillar-header:hover .pillar-toggle-btn{ transform: rotate(180deg) scale(1.06); }
@keyframes pillarToggleBreathe{
  0%,100%{ box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.06); }
  50%    { box-shadow: 0 0 36px -2px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
}
/* 展开后，气息减弱、不抢戏 */
.pillar.is-expanded .pillar-toggle-btn{ animation: none; }

/* ---- 底部"点击展开 N 个作品"提示条 ---- */
.pillar-hint{
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; letter-spacing: .14em;
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
  transition: opacity .4s, transform .5s cubic-bezier(.22,1,.36,1), margin-top .4s;
  position: relative;
  overflow: hidden;
}
.pillar-hint-line{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
  position: relative;
  overflow: hidden;
}
.pillar-hint-line::after{
  /* 滑动光带 */
  content: '';
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 95%, white), transparent);
  filter: blur(.5px);
  animation: pillarHintShine 2.6s linear infinite;
}
.pillar-hint-line:last-child::after{ animation-delay: 1.3s; }
@keyframes pillarHintShine{
  0%   { left: -30%; }
  100% { left: 130%; }
}
.pillar-hint-text{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  white-space: nowrap;
  /* 上下浮动呼吸 */
  animation: pillarHintBob 2.4s ease-in-out infinite;
}
.pillar-hint-text svg{
  transition: transform .4s ease;
  animation: pillarHintArrow 1.8s ease-in-out infinite;
}
@keyframes pillarHintBob{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(2px); }
}
@keyframes pillarHintArrow{
  0%,100%{ transform: translateY(-1px); opacity: .7; }
  50%    { transform: translateY(2px);  opacity: 1; }
}
.pillar-header:hover .pillar-hint-text{
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
/* 展开后：提示条收起（淡出 + 高度坍缩） */
.pillar.is-expanded .pillar-hint{
  opacity: 0;
  margin-top: 0;
  height: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

/* ---- 网格展开/收起过渡 ---- */
.pillar-grid{
  /* 默认（收起态）：折叠 */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height .55s cubic-bezier(.22,1,.36,1),
    opacity   .35s ease,
    margin-top .4s ease;
  margin-top: 0;
}
.pillar.is-expanded .pillar-grid{
  /* 展开态：足够大的 max-height 容下任意数量卡片 */
  max-height: 4000px;
  opacity: 1;
  margin-top: 0;
}
/* hidden 属性用于卸载非可见 DOM 的语义；CSS 不依赖它 */
.pillar-grid[hidden]{ display: grid; } /* 强制覆盖：靠 max-height 控制视觉，hidden 仅作 a11y 标记切换 */

/* 子卡片 stagger 入场（展开时触发） */
.work-card{ opacity: 0; transform: translateY(16px) scale(.98); }
.pillar.is-expanded .work-card{ opacity: 1; transform: none; }
.work-card.is-revealing{
  animation: workCardReveal .65s cubic-bezier(.22,1,.36,1) both;
}
.pillar-grid > .work-card.is-revealing:nth-child(1){ animation-delay: .04s; }
.pillar-grid > .work-card.is-revealing:nth-child(2){ animation-delay: .12s; }
.pillar-grid > .work-card.is-revealing:nth-child(3){ animation-delay: .20s; }
.pillar-grid > .work-card.is-revealing:nth-child(4){ animation-delay: .28s; }
.pillar-grid > .work-card.is-revealing:nth-child(5){ animation-delay: .36s; }
.pillar-grid > .work-card.is-revealing:nth-child(6){ animation-delay: .44s; }
@keyframes workCardReveal{
  from{ opacity: 0; transform: translateY(20px) scale(.96); filter: blur(4px); }
  to  { opacity: 1; transform: translateY(0)    scale(1);   filter: blur(0); }
}

/* 收起态：头部底部圆角恢复（视觉不被 grid 撑开） */
.pillar.is-collapsed .pillar-header{ margin-bottom: 0; }

/* 颜色变量注入 */
.pillar--cyan    { --accent: var(--aurora-cyan); }
.pillar--violet  { --accent: var(--aurora-violet); }
.pillar--fuchsia { --accent: var(--aurora-fuchsia); }

/* ============================================================
   子卡片网格 + L/M/S 三档
   ============================================================ */
.pillar-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.work-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(16,19,28,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  transform-style: preserve-3d;
  transition: border-color .5s, box-shadow .5s, transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
  display: flex; flex-direction: column;
  min-height: 260px;
}
.work-card:hover{
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px -28px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08);
}
/* L / M / S 占位 */
.work-card--L{ grid-column: span 12; min-height: 380px; }
.work-card--M{ grid-column: span 12; min-height: 320px; }
.work-card--S{ grid-column: span 12; min-height: 280px; }

@media (min-width: 768px){
  /* 平板：仍保留纵向卡片，但压低精选卡高度，减少单卡占屏 */
  .work-card--L{ grid-column: span 12; min-height: 360px; }
  .work-card--M{ grid-column: span 6;  min-height: 320px; }
  .work-card--S{ grid-column: span 6;  min-height: 260px; }
}
@media (min-width: 1024px){
  /* 桌面：精选卡改为横向 editorial card，保留主视觉但显著降低纵向占比 */
  .pillar-grid{ gap: 14px; }
  .work-card--L{
    grid-column: span 12;
    min-height: 300px;
    flex-direction: row;
  }
  .work-card--M{ grid-column: span 6;  min-height: 330px; }
  .work-card--S{ grid-column: span 4;  min-height: 270px; }
  .work-card--L .work-media{
    flex: 0 0 56%;
    width: 56%;
    min-height: 300px;
    aspect-ratio: auto;
  }
  .work-card--L .work-info{
    padding: 24px 26px;
    justify-content: center;
  }
  .work-card--L .work-title{ font-size: 23px; }
  .work-card--L .work-desc{ -webkit-line-clamp: 4; font-size: 13px; }
}
@media (min-width: 1280px){
  .work-card--L{ min-height: 320px; }
  .work-card--L .work-media{ min-height: 320px; }
}

/* 同行内的卡片自动拉齐高度 */
.pillar-grid{ align-items: stretch; }
.work-card{ height: 100%; }

/* 媒体区 */
.work-media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  flex-shrink: 0;
}
.work-card--S .work-media{ aspect-ratio: 4 / 3; }
.work-media-img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1), opacity .4s;
  display: block;
}
.work-card:hover .work-media-img{ transform: scale(1.06); }
.work-media-mask{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,6,10,.72) 100%);
  pointer-events: none;
}
.work-media-tag{
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(10,11,18,.7);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.work-media-star{
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,11,18,.6);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}
.work-media-play{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,11,18,.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  opacity: 0;
  transition: opacity .35s, transform .35s;
}
.work-card:hover .work-media-play{ opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

/* 信息区 */
.work-info{
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.work-card--L .work-info{ padding: 24px 28px 28px; }
.work-card--S .work-info{ padding: 14px 16px 16px; gap: 6px; }
.work-period{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.work-title{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.2;
}
.work-card--L .work-title{ font-size: 26px; }
.work-card--S .work-title{ font-size: 15px; }
.work-genre{
  font-size: 12px;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
}
.work-desc{
  font-size: 13px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card--L .work-desc{ -webkit-line-clamp: 3; font-size: 13.5px; }
.work-card--S .work-desc{ display: none; }
.work-tags{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.work-tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: rgba(255,255,255,.7);
}
.work-card--S .work-tags{ display: none; }

@media (min-width: 1024px){
  .work-card--L .work-info{
    position: relative;
    padding: 34px 32px 32px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  .work-card--L .work-info::before{
    content: '';
    position: absolute;
    left: 22px;
    top: 36px;
    bottom: 36px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: .38;
  }
  .work-card--L .work-period{
    margin: 0;
    font-size: 10px;
    color: color-mix(in srgb, var(--accent) 72%, rgba(255,255,255,.48));
  }
  .work-card--L .work-title{
    max-width: 13em;
    margin: 0 0 26px;
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: -.025em;
  }
  .work-card--L .work-desc{
    max-width: 34em;
    margin: 0;
    -webkit-line-clamp: 4;
    font-size: 13px;
    line-height: 1.72;
    color: rgba(255,255,255,.66);
  }
  .work-card--L .work-tags{
    margin-top: 12px;
    padding-top: 0;
    gap: 7px;
  }
  .work-card--L .work-tag{
    padding: 4px 9px;
    font-size: 10.5px;
    background: color-mix(in srgb, var(--accent) 8%, rgba(255,255,255,.035));
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  }
}
@media (min-width: 1280px){
  .work-card--L .work-title{ margin-bottom: 30px; }
  .work-card--L .work-tags{ margin-top: 14px; }
}

/* 占位封面（CSS 极光生成） */
.work-media--placeholder{
  display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 30% 20%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%),
    radial-gradient(60% 80% at 80% 90%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(135deg, #0d1018, #181c28);
}
.work-media--placeholder::after{
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: .8;
}
.work-media-letter{
  position: relative; z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, white), color-mix(in srgb, var(--accent) 50%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.work-card--S .work-media-letter{ font-size: 44px; }
.work-card--L .work-media-letter{ font-size: 84px; }

/* 过滤动画 */
.work-card.is-filtering-out{
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}
.pillar.is-hidden{
  display: none;
}

/* ============================================================
   Modal 媒体轮播（在原 modal 内部新增）
   ============================================================ */
.mc-media{
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
}

.mc-media-stage-wrap{
  position: relative;
  width: 100%;
}
.mc-media-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(70% 80% at 25% 20%, color-mix(in srgb, var(--accent, #5EEAD4) 18%, transparent), transparent 62%),
    radial-gradient(70% 80% at 80% 85%, rgba(167,139,250,.16), transparent 62%),
    #000;
  overflow: hidden;
}
.mc-media-stage > img,
.mc-media-stage > iframe,
.mc-media-stage > video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.mc-media-stage > img{
  opacity: 0;
  transition: opacity .5s ease;
}
.mc-media-stage > img.is-active{ opacity: 1; }
.mc-media-stage.is-loading::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.08) 45%, transparent 70%),
    radial-gradient(60% 80% at 30% 20%, color-mix(in srgb, var(--accent, #5EEAD4) 24%, transparent), transparent 62%);
  background-size: 220% 100%, 100% 100%;
  animation: mediaLoadingShimmer 1.35s ease-in-out infinite;
}
.mc-media-stage.is-loading::after{
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--accent, var(--aurora-cyan));
  pointer-events: none;
  animation: mediaLoadingSpin .9s linear infinite;
}
.mc-media-loading-text,
.mc-media-status{
  position: absolute;
  left: 50%;
  top: calc(50% + 34px);
  z-index: 4;
  transform: translateX(-50%);
  font-family: 'Space Grotesk','Noto Sans SC',sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.62);
  pointer-events: none;
  white-space: nowrap;
}
.mc-media-status{ top: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.72); }
@keyframes mediaLoadingShimmer{
  0%{ background-position: 120% 0, 0 0; }
  100%{ background-position: -120% 0, 0 0; }
}
@keyframes mediaLoadingSpin{ to{ transform: rotate(360deg); } }
.mc-media-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,11,18,.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: background .3s, transform .3s;
  z-index: 5;
}
.mc-media-arrow:hover{ background: rgba(10,11,18,.85); transform: translateY(-50%) scale(1.06); }
.mc-media-arrow--prev{ left: 12px; }
.mc-media-arrow--next{ right: 12px; }
.mc-media-thumbs{
  display: flex; gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: rgba(0,0,0,.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,.56) rgba(255,255,255,.04);
}
.mc-media-thumbs::-webkit-scrollbar{ height: 8px; }
.mc-media-thumbs::-webkit-scrollbar-track{
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.mc-media-thumbs::-webkit-scrollbar-thumb{
  border: 2px solid rgba(0,0,0,.48);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94,234,212,.72), rgba(167,139,250,.74));
}
.mc-media-thumbs::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(90deg, rgba(94,234,212,.9), rgba(240,171,252,.78));
}

.mc-media-thumb{
  flex-shrink: 0;
  width: 88px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.mc-media-thumb:hover{ transform: scale(1.04); }
.mc-media-thumb.is-active{ border-color: var(--aurora-cyan); }
.mc-media-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-media-thumb--image.is-loading::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.10) 45%, transparent 70%),
    rgba(255,255,255,.045);
  background-size: 220% 100%, 100% 100%;
  animation: mediaLoadingShimmer 1.35s ease-in-out infinite;
}
.mc-media-thumb--image.is-error::before{
  content: '加载失败';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.045);
}
.mc-media-thumb--video{
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(135deg, rgba(94,234,212,.18), rgba(167,139,250,.14)),
    rgba(255,255,255,.04);
}
.mc-media-thumb--video::after{
  content:''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.38)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center/18px no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}

/* 移动端 */
@media (max-width: 768px){
  .pillar-header{ padding: 22px 22px 18px; }
  .pillar-header-top{
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    grid-template-areas:
      "icon titles toggle"
      "period period period";
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    margin-bottom: 16px;
  }
  .pillar-icon{ grid-area: icon; }
  .pillar-header-titles{ grid-area: titles; min-width: 0; }
  .pillar-toggle-btn{ grid-area: toggle; margin-left: 0; }
  .pillar-period{ grid-area: period; margin-left: 0; width: max-content; max-width: 100%; }
  .pillar-title{
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.08;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .pillar-tagline{
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.55;
  }
  .pillar-summary{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pillar-stat:first-child{ grid-column: span 2; }
  .pillar-stat{ padding: 11px 12px; min-width: 0; }
  .pillar-stat-k{ font-size: 9.5px; letter-spacing: .12em; }
  .pillar-stat-v{ font-size: 16px; margin-top: 4px; word-break: normal; overflow-wrap: break-word; }
  .pillar-toggle-btn{ width: 38px; height: 38px; border-radius: 12px; }
  .pillar-hint{ margin-top: 16px; font-size: 11px; gap: 10px; letter-spacing: .1em; }
  .pillar-hint-text{ padding: 3px 10px; font-size: 11px; }
  .career-card{ min-height: 0; }
  .editor-meter-grid{ grid-template-columns: 1fr; row-gap: 12px; }
  .production-grid{ gap: 8px; }
  .production-chip{ min-height: 66px; padding: 12px; }
  .genre-experience-card{ min-height: 0; padding: 22px; }
  .genre-score{ min-width: 48px; height: 28px; }
  .genre-experience-progress{ margin-top: 0; }
  .genre-experience-chips{ gap: 8px; margin-top: 18px; }
  .genre-experience-chips span{ min-height: 32px; padding: 0 11px; font-size: 12px; }
  .game-story-layout{ grid-template-columns: 1fr; gap: 16px; }
  .game-story-text{ padding-left: 0; border-left: 0; max-width: none; }
  .mc-media-arrow{ width: 36px; height: 36px; }
  .mc-media-arrow--prev{ left: 8px; }
  .mc-media-arrow--next{ right: 8px; }
  .pillar-grid{ gap: 12px; }
  .work-card--L, .work-card--M, .work-card--S{ grid-column: span 12; min-height: 0; }
  .work-card--S{ min-height: 0; }
  .work-card--S .work-media{ aspect-ratio: 16 / 9; }
}

