* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 克制背景微光（透明度 <= 7%，防止抢夺内容重心） */
.ambient-glow {
  position: fixed;
  top: -220px;
  right: -140px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, rgba(9, 9, 11, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-right: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* 首屏 Hero */
.hero {
  padding: 52px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #09090B;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn-dark:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* 右侧 StarsAlign 真实 3D 塔罗交互舞台 */
.tarot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.tarot-card-3d {
  width: 286px;
  height: 416px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
  cursor: pointer;
}

.tarot-card-3d.is-flipped {
  transform: rotateY(180deg) !important;
  transition: transform 0.7s var(--ease);
}

.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: #0D0D12;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(243, 229, 171, 0.22);
}

.tarot-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(243, 229, 171, 0.18), transparent 56%);
  pointer-events: none;
  z-index: 3;
}

.tarot-face-back {
  transform: rotateY(180deg);
}

.tarot-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarot-overlay-badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.8);
  border: 1px solid var(--border-gold-soft);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-light);
}

.tarot-controls {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 310px;
}

.tarot-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.tarot-btn-row {
  display: flex;
  gap: 8px;
}

.tarot-mini-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tarot-mini-btn:hover,
.tarot-mini-btn.active {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: var(--gold-soft);
}

/* 通用板块 */
.section {
  padding: 28px 0 48px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* 筛选胶囊 */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-pill:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.filter-pill.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-light);
}

/* Bento 网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-gold);
  background: var(--surface-hover);
}

.bento-card.is-hidden {
  display: none;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

/* KPI 指标卡 */
.kpi-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 6px;
}

.kpi-val span {
  color: var(--gold);
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Case Study 卡片 */
.case-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.case-period {
  color: var(--text-dim);
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 10px;
}

.case-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Polygia 真实像素级 Before/After 拖动对比滑块 */
.compare-module {
  display: grid;
  grid-template-columns: 1.92fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.compare-box {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-gold-soft);
  background: #0D0D10;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  pointer-events: none;
  transform: translateX(-50%);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.compare-badge {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(9, 9, 11, 0.82);
  border: 1px solid var(--border);
  color: var(--text);
  pointer-events: none;
}

.compare-badge-left { left: 10px; }
.compare-badge-right { right: 10px; border-color: var(--border-gold-soft); color: var(--gold-light); }

.gallery-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0D0D10;
}

/* Case 02 StarsAlign 架构亮点内嵌面板（均衡左右卡高度） */
.spec-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.82rem;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-light);
}

.spec-v {
  color: var(--text-muted);
  text-align: right;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(9, 9, 11, 0.8);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.case-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: all 0.2s var(--ease);
}

a.tech-pill:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-detail {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-gold-soft);
  background: var(--gold-soft);
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-detail:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.16);
}

/* 能力矩阵与时间轴 */
.cap-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 155px 1.2fr 1.2fr 1.4fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}

.tl-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.tl-org { font-weight: 600; }
.tl-role { color: var(--text-muted); }
.tl-note { color: var(--text-dim); font-size: 0.83rem; }

/* 页脚 CTA */
.footer {
  padding: 20px 0 64px;
}

.footer-box {
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(17, 17, 21, 0.96));
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-box h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.footer-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Case Study 抽屉弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.modal-section {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.modal-section h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.modal-section p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #09090B;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.24s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 仅打印视图可见的深度复盘容器 */
.print-details-block {
  display: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #D4D4D8;
  font-size: 0.82rem;
  color: #3F3F46;
}

@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .brand-name { font-size: 0.88rem; white-space: nowrap; }
  .btn-ghost { padding: 6px 9px; font-size: 0.7rem; }
  .status-pill { font-size: 0.68rem; padding: 5px 11px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .span-3, .span-4, .span-5, .span-6, .span-7 { grid-column: span 12; }
  .compare-module { grid-template-columns: 1fr; }
  .gallery-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .nav-links, .brand-sub { display: none; }
}

/* 省墨白底智能打印视图（兼容 BOSS / 国聘网 PDF 案例附件） */
@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #141413 !important;
    line-height: 1.5;
  }
  .ambient-glow,
  .topbar,
  .hero-actions,
  .tarot-stage,
  .filter-pills,
  .compare-module,
  .btn-detail,
  .footer-actions,
  .modal-backdrop,
  .toast {
    display: none !important;
  }
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  .hero { padding: 12px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title, .hero-title span, .kpi-val, .kpi-val span, .case-kicker, .tl-period {
    color: #141413 !important;
  }
  .hero-desc, .kpi-label, .case-summary, .tl-role, .tl-note {
    color: #3F3F46 !important;
  }
  .bento-card, .timeline-row, .footer-box {
    background: #FFFFFF !important;
    border: 1px solid #D4D4D8 !important;
    break-inside: avoid;
  }
  .print-details-block {
    display: block !important;
  }
}
