/* ===== Design Tokens — 迎光社暗金萤火虫主题 ===== */
:root {
  --bg-page: #0d1528;
  --bg-page-rgb: 13, 21, 40;
  --bg-card: rgba(20, 32, 62, 0.78);
  --bg-card-solid: #14203e;
  --bg-subtle: rgba(248, 232, 184, 0.06);
  --text-primary: #f8e8b8;
  --text-secondary: rgba(248, 232, 184, 0.68);
  --text-muted: rgba(248, 232, 184, 0.42);
  --accent: #e8c46a;
  --accent-light: rgba(232, 196, 106, 0.14);
  --accent-border: rgba(232, 196, 106, 0.38);
  --border: rgba(248, 232, 184, 0.1);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.38);
  --shadow-elevated: 0 24px 70px rgba(0, 0, 0, 0.48);

  --radius-card: 24px;
  --radius-button: 13px;
  --radius-sm: 10px;

  --font-sans: 'Inter', 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 196, 106, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(12, 139, 121, 0.06) 0%, transparent 30%),
    var(--bg-page);
  background-attachment: fixed;
}

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

img, svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 21, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* 顶栏用三列网格：logo 左 / 导航正中 / 按钮右。
   导航与按钮来自 nav.html，经 [data-nav="desktop"] 挂载点注入，
   因此用 display:contents 让它们直接成为 .nav-inner 的网格项，
   导航才能真正处于中间（flex + justify-content 只能靠边对齐）。 */
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 70px;
  gap: var(--space-lg);
}

.nav-inner > .logo {
  grid-column: 1;
  justify-self: start;
}

.nav-mount[data-nav="desktop"] {
  display: contents;
}

.nav-mount[data-nav="mobile"] {
  display: block;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(232, 196, 106, 0.25), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  grid-column: 2;
  justify-self: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}

/* ===== 产品下拉菜单（智谱风格 mega menu） ===== */
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-expanded="true"],
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  opacity: 0.7;
}

.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  margin: 0 auto;
  /* 宽度自适应内容，但不超过视口；配合左右 auto 居中，永不溢出 */
  width: max-content;
  max-width: calc(100vw - 48px);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 透明桥接：避免鼠标从导航移到面板中途出现空隙导致收起 */
.nav-item.is-open::after,
.nav-item:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.mega-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
}

.mega-col {
  min-width: 232px;
}

.mega-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--accent-border);
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.mega-link:hover {
  background-color: var(--bg-subtle);
  transform: translateX(2px);
}

.mega-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  overflow: hidden;
}

/* 图标为 SVG 文件：铺满内框并保持自身宽高比 */
.mega-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.mega-link:hover .mega-desc {
  color: var(--text-secondary);
}

/* 移动端：下拉改为手风琴 */
.mobile-menu .nav-item {
  width: 100%;
}

.mobile-menu .nav-link {
  width: 100%;
  justify-content: space-between;
}

.mobile-menu .mega-menu {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin-top: 0.4rem;
  display: none;
}

.mobile-menu .nav-item.is-open .mega-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu .mega-grid {
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu .mega-col {
  min-width: 0;
}

.mobile-menu .mega-col-title {
  font-size: 0.72rem;
}

.mobile-menu .mega-desc {
  font-size: 0.78rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #0d1528;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 196, 106, 0.28);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: rgba(248, 232, 184, 0.06);
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  /* 窄屏下 .main-nav / .nav-actions 被隐藏，汉堡按钮需自己贴到最右 */
  grid-column: 3;
  justify-self: end;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-card-solid);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-card);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

/* ===== Sections ===== */
.pricing-section {
  padding: var(--space-4xl) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-heading h1,
.section-heading h2,
.promise-intro h2,
#faq-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

/* ===== Plan Grid ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.625rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(232, 196, 106, 0.2);
}

.plan-card-featured {
  border: 1.5px solid var(--accent-border);
  background: rgba(20, 32, 62, 0.92);
  box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.06), var(--shadow-elevated);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 1.25rem;
  background: var(--accent);
  color: #0d1528;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(232, 196, 106, 0.2);
}

.plan-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 780;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 3em;
  margin-bottom: var(--space-lg);
}

.price-row {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: var(--space-sm);
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.25rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.priceunit {
  align-self: flex-end;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary, #6b7280);
}

.credit-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  /* 预留 4 行高度，保证各卡片按钮在同一水平线上 */
  min-height: 5.25rem;
  margin-bottom: var(--space-lg);
}

.credit-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-xl);
  background: var(--text-primary);
  color: #0d1528;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-button);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.plan-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248, 232, 184, 0.18);
}

.plan-action-featured {
  background: var(--accent);
  color: #0d1528;
}

.plan-action-featured:hover {
  box-shadow: 0 6px 24px rgba(232, 196, 106, 0.28);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.feature-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.plan-disclaimer {
  max-width: 720px;
  margin: var(--space-3xl) auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Promise Section ===== */
.promise-section {
  padding: var(--space-4xl) 0;
  background: rgba(11, 18, 36, 0.65);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.promise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(232, 196, 106, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.promise-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.promise-intro {
  position: sticky;
  top: 100px;
}

.promise-intro h2 {
  margin-bottom: var(--space-md);
}

.promise-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.promise-card {
  background: rgba(20, 32, 62, 0.55);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(232, 196, 106, 0.2);
}

.promise-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(248, 232, 184, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(232, 196, 106, 0.12), 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: var(--space-md);
}

.promise-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.promise-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: var(--space-4xl) 0;
}

.faq-container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.faq-item {
  background: rgba(20, 32, 62, 0.55);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '›';
  font-size: 1.4rem;
  color: var(--text-muted);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-90deg);
  color: var(--accent);
}

.faq-item p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: #0a1020;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* 页脚中部横幅（扫码添加微信） */
.footer-banner {
  flex: 1 1 300px;
  max-width: 520px;
  min-width: 240px;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: contain;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.copyright {
  width: 100%;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-layout {
    grid-template-columns: 1fr;
  }

  .promise-intro {
    position: static;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-banner {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .section-heading h1,
  .section-heading h2,
  .promise-intro h2,
  #faq-title {
    font-size: 2rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .plan-card {
    padding: 1.5rem;
  }
}

/* ===== AI Studio 首屏嵌入 ===== */
button.btn {
  font-family: inherit;
  cursor: pointer;
}

.studio-section {
  background: #0b1224;
  border-bottom: 1px solid var(--border);
}

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem var(--space-md) 0.75rem;
}

.studio-bar-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.studio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 196, 106, 0.65);
}

.studio-open {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.studio-open:hover {
  color: var(--accent);
}

/* 首屏视觉：静态配图全幅铺满（原为 iframe 嵌入工作台）。
   图片按原比例 1758×636 呈现，object-fit: cover 兜底避免变形。 */
.studio-frame-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.studio-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1758 / 636;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #0b1224;
  box-shadow: none;
}

/* —— 叠加在图上的主标题 —— */
.studio-slogan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 var(--space-lg);
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.studio-slogan-text {
  display: inline-block;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff8e6;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(0, 0, 0, 0.45);
}

/* 延迟入场：图片解码完成后再加 .is-visible，比图片晚约 0.5s 淡入 */
.studio-slogan {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s ease, transform 0.85s ease;
  transition-delay: 0.5s;
  will-change: opacity, transform;
}

.studio-slogan.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 无障碍：用户偏好减少动效时直接显示，不做延迟 */
@media (prefers-reduced-motion: reduce) {
  .studio-slogan {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 联系我们弹窗 ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.contact-modal[hidden] {
  display: none;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-dialog {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-card-solid);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  background: rgba(248, 232, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-close:hover {
  color: var(--text-primary);
  background: rgba(248, 232, 184, 0.12);
}

.contact-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.qr-card {
  background: rgba(248, 232, 184, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.qr-frame {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  max-width: 240px;
  margin: 0 auto var(--space-md);
}

.qr-frame img {
  width: 100%;
  border-radius: 8px;
}

.qr-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.qr-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 关于页面 ===== */
.article-section {
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero {
  text-align: center;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.article-hero .lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-meta {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  margin: var(--space-3xl) 0 var(--space-md);
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-border);
}

.article p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.article p.quote {
  color: var(--text-primary);
  font-size: 1.05rem;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent-light);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.article-tags span {
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.article-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--space-3xl) 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.article-divider::before,
.article-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.article-cta {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: rgba(20, 32, 62, 0.72);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.article-cta h2 {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
}

.article-cta p {
  max-width: 460px;
  margin: 0 auto var(--space-lg);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ===== 关于页面 · 左侧目录 ===== */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: var(--space-lg);
  background: rgba(20, 32, 62, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.toc-nav {
  display: flex;
  flex-direction: column;
}

.toc-nav a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 0.45rem 0 0.45rem 0.75rem;
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.toc-nav a[hidden] {
  display: none;
}

.toc-nav a:hover {
  color: var(--text-primary);
}

.toc-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-light), transparent 70%);
}

/* 二级目录（案例步骤） */
.toc-nav a.toc-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.32rem 0 0.32rem 1.5rem;
  border-left-color: transparent;
}

.toc-nav a.toc-sub:hover {
  color: var(--text-secondary);
  border-left-color: var(--border);
}

.toc-nav a.toc-sub.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-light), transparent 70%);
}

.article h2 {
  scroll-margin-top: 96px;
}

@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .article-toc {
    position: static;
  }

  .toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .toc-nav a {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
  }

  .toc-nav a.active {
    border-color: var(--accent-border);
    background: var(--accent-light);
  }

  /* 窄屏下二级目录不占空间，只保留一级条目 */
  .toc-nav a.toc-sub {
    display: none;
  }
}

@media (max-width: 768px) {
  .studio-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .studio-frame-wrap {
    padding: 0;
  }

  .studio-slogan-text {
    font-size: clamp(1.35rem, 6.4vw, 2.2rem);
    text-shadow:
      0 1px 12px rgba(0, 0, 0, 0.8),
      0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .contact-dialog {
    padding: var(--space-xl) var(--space-md);
  }
}

/* ===== 案例页 ===== */
.cases-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: rgba(11, 18, 36, 0.65);
  border-bottom: 1px solid var(--border);
}

.cases-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.cases-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cases-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

/* 分类切换 */
.case-tabs {
  position: sticky;
  top: 76px;
  z-index: 90;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  padding: var(--space-sm);
  background: rgba(13, 21, 40, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  scrollbar-width: none;
}

.case-tabs::-webkit-scrollbar {
  display: none;
}

.case-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.case-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.case-tab.active {
  color: #0d1528;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(232, 196, 106, 0.25);
}

.case-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* 案例章节 */
.case-content {
  max-width: 960px;
  margin: 0 auto;
}

.article-layout-single {
  grid-template-columns: 1fr;
}

.case-section {
  scroll-margin-top: 170px;
  margin-bottom: var(--space-3xl);
}

/* 目录跳转锚点：案例步骤 */
.case-steps li[id] {
  scroll-margin-top: 190px;
}

/* 大方块：把步骤块包成一个整体 */
.case-block {
  background: rgba(11, 18, 36, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  scroll-margin-top: 170px;
}

.case-block .case-head {
  margin-bottom: var(--space-xl);
}

/* 案例占位 */
.case-placeholder {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(248, 232, 184, 0.03);
}

/* 左侧目录（案例页） */
.case-toc {
  top: 170px;
}

@media (max-width: 1080px) {
  .case-tabs {
    top: 70px;
    justify-content: flex-start;
  }

  .case-toc {
    position: static;
  }

  .case-section {
    scroll-margin-top: 140px;
  }
}

/* 面板内二级切换 */
.case-subtabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.case-subtab {
  padding: 0.45rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.case-subtab:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.case-subtab.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.case-empty-sub {
  max-width: 720px;
}

.case-head {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.case-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: var(--space-md);
}

.case-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.case-head p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 步骤流 */
.case-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-2xl);
}

.case-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-xl);
  align-items: center;
  background: rgba(20, 32, 62, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.case-step-reverse {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.case-step-reverse .case-step-text {
  order: 2;
}

.case-step-reverse .case-figure {
  order: 1;
}

.case-step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.case-step-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.case-step-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.case-figure {
  margin: 0;
  background: rgba(11, 18, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.case-figure img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* 步骤图统一高度：图片过高时缩小（完整显示、居中），保证各步骤块高度一致 */
.case-steps .case-figure img {
  max-height: 340px;
  object-fit: contain;
}

.case-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--border);
}

.case-step-full {
  display: block;
}

.case-step-full .case-step-text {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* 成品图集 */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

/* 单张成品图：居中、限制宽度 */
.case-gallery-1 {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

/* 单图高度与多图画廊的小图保持一致，避免该步骤把整块撑高 */
.case-gallery-1 .case-shot img {
  max-height: 200px;
  object-fit: contain;
}

.case-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.case-shot {
  margin: 0;
  background: rgba(11, 18, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-border);
}

.case-shot img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.case-shot figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-top: 1px solid var(--border);
}

.case-cta-row {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* 更多真实生成案例 */
.case-more {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  scroll-margin-top: 170px;
}

.case-more-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.case-more-head h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.case-more-head p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.case-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.case-more-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: rgba(11, 18, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-more-shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--accent-border);
}

.case-more-shot img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
}

.case-more-shot figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

/* 占位面板 */
.case-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  background: rgba(20, 32, 62, 0.55);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-card);
}

.case-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  background: rgba(248, 232, 184, 0.06);
  border-radius: 18px;
  margin-bottom: var(--space-lg);
}

.case-empty h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.case-empty p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.case-tags span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(248, 232, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

/* 图片放大查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-body {
  position: relative;
  margin: 0;
  max-width: min(920px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevated);
}

.lightbox-body figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-primary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.lightbox-close:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .case-step,
  .case-step-reverse {
    grid-template-columns: 1fr;
  }

  .case-step-reverse .case-step-text {
    order: 1;
  }

  .case-step-reverse .case-figure {
    order: 2;
  }

  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-more-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ===== 新闻模块 =====
   复用既有 token 与卡片风格，新增类统一以 .news- 前缀
   ============================================================= */

/* --- 列表页头部 --- */
.news-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: rgba(11, 18, 36, 0.65);
  border-bottom: 1px solid var(--border);
}

.news-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.news-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.news-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

/* --- 栏目条 + 搜索 --- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding: var(--space-sm);
  background: rgba(13, 21, 40, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 90px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}

.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.news-tab:hover {
  color: var(--text-primary);
  background: rgba(248, 232, 184, 0.05);
}

.news-tab.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.news-tab-icon {
  font-size: 0.9rem;
}

.news-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 260px;
  min-width: 180px;
}

.news-search input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(248, 232, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.news-search input::placeholder {
  color: var(--text-muted);
}

.news-search input:focus {
  border-color: var(--accent-border);
  background: rgba(248, 232, 184, 0.09);
}

.news-search button {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d1528;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.news-search button:hover {
  opacity: 0.88;
}

/* --- 卡片网格 --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(232, 196, 106, 0.22);
}

.news-card-cover {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.news-card-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-flag {
  font-weight: 700;
  color: #0d1528;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.news-cat {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.news-card-title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title a {
  color: var(--accent);
}

.news-card-summary {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-card-tags span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(248, 232, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.news-card-more {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* 无封面卡：靠左侧竖线做视觉区分，避免整片平铺 */
.news-card-plain {
  background: rgba(11, 18, 36, 0.5);
}

.news-card-plain .news-card-body {
  border-left: 3px solid var(--accent-border);
  padding-left: 1.1rem;
}

/* --- 骨架屏 --- */
.news-card-skeleton {
  pointer-events: none;
}

.news-card-skeleton:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.sk-cover {
  aspect-ratio: 16 / 9;
  background: rgba(248, 232, 184, 0.05);
}

.sk-line {
  height: 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(248, 232, 184, 0.05) 0%,
    rgba(248, 232, 184, 0.12) 50%,
    rgba(248, 232, 184, 0.05) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}

.sk-w40 { width: 40%; }
.sk-w70 { width: 70%; }
.sk-w90 { width: 90%; }

@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 分页 --- */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
}

.pager-btn {
  min-width: 38px;
  padding: 0.42rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(20, 32, 62, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pager-btn:hover:not([disabled]) {
  color: var(--text-primary);
  border-color: var(--accent-border);
}

.pager-btn.active {
  color: #0d1528;
  background: var(--accent);
  border-color: var(--accent);
}

.pager-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager-total {
  margin-left: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- 空状态 --- */
.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-card);
  background: rgba(248, 232, 184, 0.03);
}

.empty-icon {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- 详情页 --- */
.news-detail-hero {
  padding: var(--space-3xl) 0 0;
}

.news-detail-layout {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-detail-cover {
  margin: var(--space-2xl) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.news-detail-cover img {
  width: 100%;
  height: auto;
}

.news-content {
  margin-top: var(--space-xl);
}

.news-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-border);
  scroll-margin-top: 96px;
}

.news-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text-primary);
}

.news-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.news-content ul,
.news-content ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.4rem;
  list-style: revert;
  color: var(--text-secondary);
  line-height: 1.9;
}

.news-content li {
  margin-bottom: var(--space-xs);
}

.news-content img {
  width: 100%;
  height: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.news-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
}

.news-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--accent-light);
  background: rgba(248, 232, 184, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-content blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.news-content table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.news-content th,
.news-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}

.news-content th {
  color: var(--text-primary);
  background: rgba(248, 232, 184, 0.05);
  font-weight: 600;
}

.news-content pre {
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  overflow-x: auto;
  background: rgba(11, 18, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.7;
}

.news-content code {
  font-size: 0.88em;
  color: var(--accent);
}

.news-content pre code {
  color: var(--text-secondary);
}

.news-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  word-break: break-all;
}

/* --- 上一篇 / 下一篇 --- */
.news-neighbors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.neighbor {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-md) var(--space-lg);
  background: rgba(20, 32, 62, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.neighbor:not(.neighbor-empty):hover {
  border-color: var(--accent-border);
  background: rgba(20, 32, 62, 0.8);
}

.neighbor-next {
  text-align: right;
}

.neighbor-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.neighbor-title {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.neighbor-empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.4;
}

/* --- 侧栏（详情页右侧/左侧目录） --- */
.news-toc {
  position: sticky;
  top: 96px;
  padding: var(--space-lg);
  background: rgba(20, 32, 62, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-toc[hidden] {
  display: none;
}

/* --- 面包屑与返回 --- */
.news-article-wrap {
  min-width: 0;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.news-breadcrumb a:hover {
  color: var(--accent);
}

.news-back {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* --- 首页新闻预览区 --- */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.home-news-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* --- 响应式 --- */
@media (max-width: 1080px) {
  .news-grid,
  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}@media (max-width: 768px) {
  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-card);
    padding: var(--space-md);
  }

  .news-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  .news-search {
    flex: 1 1 auto;
  }

  .news-neighbors {
    grid-template-columns: 1fr;
  }

  .neighbor-next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .news-grid,
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ===== 收银台（充值支付）=====
   类名统一 .checkout- 前缀，浮层结构复用 .contact-modal 的质感
   ============================================================= */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.checkout-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 2 * var(--space-lg));
  overflow-y: auto;
  padding: var(--space-2xl);
  background: linear-gradient(160deg, #131e39 0%, #0f1830 60%, #0d1528 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
}

.checkout-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.checkout-close:hover {
  color: var(--accent);
  background: rgba(248, 232, 184, 0.06);
}

.checkout-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

/* --- 双列布局 --- */
.checkout-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-2xl);
}

.checkout-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* --- 商品卡 --- */
.checkout-goods {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.05);
}

.checkout-goods-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d1528;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(232, 196, 106, 0.3);
}

.checkout-goods-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.checkout-goods-price {
  color: var(--accent);
  font-size: 1rem;
}

.checkout-goods-price strong {
  font-size: 1.7rem;
  font-weight: 700;
}

.checkout-goods-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.checkout-goods-credit {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* --- 订单明细 --- */
.checkout-detail {
  padding: var(--space-md) var(--space-lg);
  background: rgba(11, 18, 36, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkout-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.checkout-detail-row:last-child {
  border-bottom: none;
}

.checkout-detail-total {
  padding-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.checkout-amount {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

/* --- 支付方式 --- */
.checkout-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkout-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0.8rem var(--space-md);
  text-align: left;
  font-family: inherit;
  background: rgba(20, 32, 62, 0.5);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-method:hover:not(.disabled) {
  border-color: var(--accent-border);
}

.checkout-method.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.checkout-method.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-method-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
}

.checkout-method-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-method-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checkout-method-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.checkout-method-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-method.active .checkout-method-radio {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 40%, transparent 45%);
}

/* --- 确认按钮 --- */
.checkout-confirm {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

.checkout-confirm:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkout-confirm-amount {
  font-weight: 700;
}

.checkout-tip {
  margin-top: var(--space-md);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.checkout-tip a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
}

/* --- 扫码视图 --- */
.checkout-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
}

.checkout-qr-amount {
  color: var(--accent);
  font-size: 1.1rem;
}

.checkout-qr-amount strong {
  font-size: 2.2rem;
  font-weight: 700;
}

.checkout-qr-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: var(--space-sm) 0 var(--space-lg);
}

.checkout-qr-frame {
  position: relative;
  padding: 14px;
  background: #f8f5ec;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1.5px var(--accent-border), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.checkout-qr-frame img {
  display: block;
}

/* 支付方式官方品牌图标（内联 SVG） */
.checkout-method-icon svg {
  display: block;
}
.checkout-method.disabled .checkout-method-icon svg {
  opacity: 0.55;
}

.checkout-qr-expired {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(13, 21, 40, 0.92);
  border-radius: var(--radius-sm);
}

/* hidden 属性必须能压过上面的 display:flex */
.checkout-qr-expired[hidden] {
  display: none;
}

.checkout-qr-expired p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkout-countdown {
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkout-countdown strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.checkout-order-no {
  margin-top: var(--space-xs);
  font-size: 0.76rem;
  color: var(--text-muted);
  word-break: break-all;
}

.checkout-back-link {
  margin-top: var(--space-lg);
  padding: 0.3rem 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkout-back-link:hover {
  color: var(--accent);
}

/* --- 成功 / 出错视图 --- */
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0d1528;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(232, 196, 106, 0.15), 0 10px 30px rgba(232, 196, 106, 0.25);
  margin-bottom: var(--space-lg);
}

.checkout-error-icon {
  background: #e06a5a;
  box-shadow: 0 0 0 6px rgba(224, 106, 90, 0.12), 0 10px 30px rgba(224, 106, 90, 0.2);
}

.checkout-success-text {
  max-width: 380px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.checkout-success-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* --- 响应式 --- */
@media (max-width: 820px) {
  .checkout-dialog {
    padding: var(--space-xl) var(--space-md);
  }

  .checkout-cols {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
 * 使用教程页（tutorial.html）
 * ============================================================= */
.tut-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tut-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
}

.tut-hero-sub {
  margin-top: var(--space-md);
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.tut-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.tut-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.tut-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tut-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

.tut-thumb {
  position: relative;
  background: #0b1224;
  border-bottom: 1px solid var(--border);
  /* aspect-ratio 由 JS 按每篇教程图片的实际比例注入 */
  aspect-ratio: 1843 / 909;
  overflow: hidden;
}

.tut-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.tut-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d1528;
  background: var(--accent);
  border-radius: 999px;
}

.tut-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  flex: 1;
}

.tut-body h3 {
  font-size: 1.15rem;
}

.tut-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex: 1;
}

.tut-body .btn {
  align-self: flex-start;
}

.tut-card.is-done .tut-count {
  background: rgba(120, 200, 150, 0.9);
}

/* =============================================================
 * 分步操作指引层（spotlight 聚光灯）
 * ============================================================= */
.tguide {
  position: fixed;
  inset: 0;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.tguide.is-open {
  opacity: 1;
}

.tguide-mask {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* 舞台：承载截图与镂空，定位坐标系原点在它左上角 */
.tguide-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 1rem 1rem;
}

.tguide-shot {
  max-width: 100%;
  max-height: calc(100vh - 4.2rem);
  width: auto;
  height: auto;
  border-radius: 10px;
  /* 截图本身是浅色 UI，加一点边框与阴影与暗色页面区分 */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}

/* 镂空框：box-shadow 大扩散形成遮罩，自身透明露出截图 */
.tguide-hole {
  position: absolute;
  border-radius: 10px;
  pointer-events: none;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(6, 10, 22, 0.74);
  transition: left 0.32s ease, top 0.32s ease,
              width 0.32s ease, height 0.32s ease;
}

/* 提示面板 */
.tguide-panel {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 2rem));
  background: var(--bg-card-solid);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-lg);
}

.tguide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.tguide-stepno {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tguide-x {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}

.tguide-x:hover {
  color: var(--text-primary);
}

.tguide-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.tguide-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tguide-dots {
  display: flex;
  gap: 0.4rem;
  margin: var(--space-lg) 0 var(--space-md);
}

.tguide-dot {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(248, 232, 184, 0.2);
  transition: background-color 0.2s ease;
}

.tguide-dot.is-past {
  background: rgba(232, 196, 106, 0.5);
}

.tguide-dot.is-active {
  background: var(--accent);
}

.tguide-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.tguide-actions .btn {
  min-width: 108px;
}

.tguide-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 移动端：面板放底部，截图上移 */
@media (max-width: 768px) {
  .tguide-stage {
    padding: 1rem 0.75rem 14.5rem;
  }

  .tguide-shot {
    max-height: 46vh;
  }

  .tguide-panel {
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    width: auto;
    max-height: 13.5rem;
    overflow-y: auto;
    padding: var(--space-md);
  }

  .tguide-title {
    font-size: 1.08rem;
  }

  .tguide-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .tguide-dots {
    margin: var(--space-md) 0 var(--space-sm);
  }

  .tguide-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* 无障碍：减少动效时不做过渡与位移动画 */
@media (prefers-reduced-motion: reduce) {
  .tguide,
  .tguide-hole {
    transition: none;
  }
}


