/* =========================================================
   XCSEO 源码资源站 · 站点样式
   深空黑 + 琥珀光 | 与品牌橙黄蓝渐变保持一致
   ========================================================= */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --bg: #07090f;
  --bg-soft: #0a0d15;
  --surface: #0d1119;
  --surface-2: #121824;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --fg: #eef2f9;
  --muted: #98a4b7;
  --dim: #6b7689;
  --orange: #ff7a1a;
  --amber: #ffc247;
  --blue: #4b8cf7;
  --grad: linear-gradient(115deg, #ff7a1a 0%, #ffc247 52%, #4b8cf7 100%);
  --radius: 20px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 194, 71, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 194, 71, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2. 布局与通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--amber);
  color: #1a1206;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: linear-gradient(120deg, #ff8a2b, #ffc247);
  color: #1a1206;
  box-shadow: 0 16px 34px -16px rgba(255, 150, 50, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -18px rgba(255, 160, 60, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-2);
  color: var(--fg);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}

.link-more:hover {
  color: var(--amber);
  gap: 12px;
}

/* ---------- 3. 顶栏 / 导航 ---------- */
.topbar {
  background: #05070b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--dim);
  font-size: 12px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
  letter-spacing: 0.02em;
}

.topbar b {
  color: var(--muted);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 9, 15, 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 15, 0.94);
  box-shadow: 0 18px 40px -30px #000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f97316, #facc15 55%, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 26px -12px rgba(249, 115, 22, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex: none;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
}

.header-cta {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 11px;
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  padding: 22px;
  background: #0a0d15;
  border-left: 1px solid var(--line-2);
  overflow-y: auto;
  animation: drawer-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes drawer-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.drawer-links {
  display: grid;
  gap: 4px;
}

.drawer-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.drawer-links a:hover,
.drawer-links a[aria-current="page"] {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.drawer-sub {
  margin: 22px 0 10px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.drawer-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* ---------- 4. 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 420px at 18% -10%, rgba(255, 122, 26, 0.16), transparent 65%),
    radial-gradient(760px 420px at 92% 8%, rgba(59, 130, 246, 0.16), transparent 62%),
    linear-gradient(180deg, #080b13, #07090f 72%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 12%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 12%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-lead {
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.stat b {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stat b em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  margin-left: 2px;
}

.stat span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--dim);
}

/* Hero 右侧封面堆叠 */
.hero-visual {
  position: relative;
  height: 452px;
}

.hero-aura {
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, rgba(255, 140, 40, 0.35), transparent 58%),
    radial-gradient(circle at 28% 74%, rgba(59, 130, 246, 0.3), transparent 60%);
  filter: blur(52px);
  opacity: 0.85;
}

.stack-pos {
  position: absolute;
  transform: rotate(var(--r, 0deg));
  animation: float-y 7s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.stack {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
}

.stack img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stack-pos.p1 {
  width: 56%;
  left: 0;
  top: 54px;
  --r: -7deg;
  z-index: 2;
}

.stack-pos.p2 {
  width: 46%;
  right: 0;
  top: 0;
  --r: 6deg;
  z-index: 1;
  --d: -2.4s;
}

.stack-pos.p3 {
  width: 42%;
  right: 3%;
  bottom: 2%;
  --r: 12deg;
  z-index: 3;
  --d: -4.6s;
}

@keyframes float-y {
  from {
    margin-top: -5px;
  }
  to {
    margin-top: 7px;
  }
}

.float-badge {
  position: absolute;
  left: -6px;
  bottom: 24px;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(9, 12, 19, 0.86);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -22px #000;
}

.float-badge b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.float-badge span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* 跑马灯 */
.ticker {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #06080d;
  overflow: hidden;
  padding: 13px 0;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, #06080d, transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, #06080d, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.ticker-set {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.ticker-set span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93a0b5;
  white-space: nowrap;
}

.ticker-set span::after {
  content: "✦";
  color: rgba(255, 194, 71, 0.5);
  font-size: 10px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 5. 区块 ---------- */
.section {
  position: relative;
  padding: 92px 0;
}

.section--tight {
  padding-top: 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 800;
}

.section-head p {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
}

/* 分类卡 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 30px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 100% 0%, var(--cat-glow), transparent 70%);
  opacity: 0.45;
  transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-num {
  position: absolute;
  top: 0;
  right: 18px;
  font-family: var(--font);
  font-size: 104px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cat-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cat);
}

.cat-card h3 {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cat-card p {
  position: relative;
  margin: 8px 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.cat-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.cat-tags .tag {
  background: rgba(255, 255, 255, 0.04);
}

.cat-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.cat-foot svg {
  transition: transform 0.25s;
}

.cat-card:hover .cat-foot svg {
  transform: translateX(4px);
  color: var(--amber);
}

/* ---------- 6. 程序卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 160, 70, 0.32);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 160, 70, 0.06);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0e16;
}

.card-media .media-blur {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.15);
  opacity: 0.42;
  transform: scale(1.04);
}

.card-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .card-media img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge-ver {
  left: 12px;
  top: 12px;
  color: #22160a;
  background: linear-gradient(120deg, #ffd583, #ffb23c);
  box-shadow: 0 8px 18px -10px rgba(255, 170, 50, 0.9);
}

.badge-cat {
  right: 12px;
  top: 12px;
  color: #fff;
  background: rgba(6, 8, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 18px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.product-card:hover .card-title a {
  color: var(--amber);
}

.card-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.tag {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.card-arrow {
  margin-left: auto;
  color: var(--dim);
  transition: transform 0.25s, color 0.25s;
}

.product-card:hover .card-arrow {
  color: var(--amber);
  transform: translateX(3px);
}

/* ---------- 7. 为什么选择 / 服务 ---------- */
.why {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #080b12, #07090f);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 64px;
  align-items: start;
}

.why-intro h2 {
  margin: 16px 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.why-intro p {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
}

.why-intro .btn {
  margin-top: 28px;
}

.why-list {
  display: grid;
}

.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 1px solid var(--line);
}

.why-num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.why-item h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.why-item p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 8. 联系 ---------- */
.contact-panel {
  position: relative;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 150, 60, 0.55), rgba(255, 255, 255, 0.08) 42%, rgba(70, 130, 255, 0.45));
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 52px;
  border-radius: 29px;
  background: radial-gradient(640px 320px at 88% 0%, rgba(255, 140, 40, 0.16), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(59, 130, 246, 0.14), transparent 60%), #0a0e16;
}

.contact-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.contact-copy p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 40ch;
}

.contact-note {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

.contact-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--amber);
}

.contact-cards {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

button.contact-card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.contact-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}

.contact-card[data-type="qq"] .contact-ico {
  color: #60a5fa;
}

.contact-card[data-type="telegram"] .contact-ico {
  color: #38bdf8;
}

.contact-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.contact-value {
  display: block;
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: #1a1206;
  background: var(--amber);
  border-color: transparent;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  padding-top: 68px;
  border-top: 1px solid var(--line);
  background: #05070b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--dim);
}

.footer-col h4 {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col li {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}

.footer-contact span {
  color: var(--dim);
  font-family: var(--font);
  font-size: 12.5px;
}

.footer-contact button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 11px;
}

.footer-contact button:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}

.footer-bottom .sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ---------- 10. 列表页 / 分类页 ---------- */
.page-head {
  position: relative;
  padding: 64px 0 8px;
  overflow: hidden;
  background: radial-gradient(760px 300px at 12% -30%, rgba(255, 122, 26, 0.14), transparent 62%),
    radial-gradient(600px 280px at 88% -20%, rgba(59, 130, 246, 0.12), transparent 60%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--dim);
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb .sep {
  opacity: 0.45;
}

.page-head h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.page-head .lead {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 34px 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.chip:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.chip[aria-pressed="true"],
.chip[aria-current="page"] {
  background: linear-gradient(120deg, #ff8a2b, #ffc247);
  border-color: transparent;
  color: #1a1206;
  box-shadow: 0 10px 22px -14px rgba(255, 160, 50, 0.9);
}

.chip em {
  font-style: normal;
  opacity: 0.68;
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.search {
  position: relative;
  margin-left: auto;
}

.search input {
  width: 268px;
  height: 40px;
  padding: 0 38px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #080b12;
  color: var(--fg);
  font-size: 13.5px;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input::placeholder {
  color: var(--dim);
}

.search input:focus {
  outline: none;
  border-color: rgba(255, 194, 71, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 194, 71, 0.12);
}

.search svg {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}

.result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--dim);
}

.result-bar b {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
}

.empty {
  display: none;
  padding: 64px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty.is-on {
  display: block;
}

.empty b {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-size: 16px;
}

.empty button {
  margin-top: 18px;
}

/* ---------- 11. 详情页 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

.pill--cat {
  color: var(--amber);
  border-color: rgba(255, 194, 71, 0.24);
  background: rgba(255, 194, 71, 0.08);
}

.pill--ver {
  font-family: var(--mono);
  color: #1a1206;
  background: linear-gradient(120deg, #ffd583, #ffb23c);
  border-color: transparent;
  font-weight: 700;
}

.prose {
  font-size: 15px;
  line-height: 1.95;
  color: #c2cbd9;
  overflow-wrap: anywhere;
}

.prose p {
  margin-bottom: 17px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose b,
.prose strong {
  color: var(--fg);
  font-weight: 700;
}

.prose h3,
.prose h4 {
  margin: 28px 0 12px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 700;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.prose .shot {
  display: block;
  margin: 18px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0e16;
  cursor: zoom-in;
  transition: border-color 0.2s;
}

.prose .shot:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.prose .shot img {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.prose table {
  display: block;
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 13.5px;
}

.prose td,
.prose th {
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 0.9em;
  color: #ffd28a;
}

.prose pre {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #070a11;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 7px;
}

.spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.spec span {
  color: var(--dim);
}

.spec b {
  font-weight: 600;
  color: var(--fg);
  text-align: right;
}

/* ---------- 12. 联系页 ---------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.contact-tile {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.contact-tile .contact-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 20px;
}

.contact-tile h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.contact-tile .big {
  margin: 6px 0 14px;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-tile p {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.7;
}

.contact-tile .copy-btn {
  margin: 18px 0 0;
  width: 100%;
  height: 38px;
  justify-content: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.step h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.step p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 13. 页尾 CTA / 404 / Toast / 回到顶部 ---------- */
.cta-band {
  position: relative;
  padding: 56px 48px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(600px 260px at 84% 0%, rgba(255, 140, 40, 0.18), transparent 62%),
    radial-gradient(520px 260px at 0% 100%, rgba(59, 130, 246, 0.16), transparent 60%), #0b0f18;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 194, 71, 0.35);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: 0 22px 50px -22px #000;
  font-size: 13.5px;
  color: var(--fg);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  color: var(--amber);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(12, 16, 24, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, color 0.2s, visibility 0.25s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- 14. 进场动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav a {
    padding: 9px 10px;
    font-size: 14px;
  }

  .header-inner {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .nav,
  .header-actions .icon-btn {
    display: none;
  }

  .header-actions .menu-toggle {
    display: grid;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 520px;
    height: 360px;
    margin: 0 auto;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 38px;
  }

  .contact-page-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    padding-inline: 18px;
  }

  .topbar .wrap {
    justify-content: center;
  }

  .topbar .wrap > span:last-child {
    display: none;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    margin-top: 32px;
    gap: 18px 0;
  }

  .stat {
    flex: 1 0 40%;
    padding-right: 16px;
    margin-right: 16px;
  }

  .stat:nth-child(2n) {
    border-right: 0;
    margin-right: 0;
  }

  .stat b {
    font-size: 23px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .cat-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cat-card {
    min-height: 0;
  }

  .card-media {
    aspect-ratio: 16 / 10;
  }

  .contact-panel,
  .contact-inner {
    border-radius: 22px;
  }

  .contact-inner {
    padding: 26px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }

  .page-head {
    padding-top: 40px;
  }

  .toolbar {
    padding: 12px;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }

  .search input {
    width: 100%;
  }

  .detail-layout {
    padding-bottom: 64px;
  }

  .article {
    padding: 22px 20px 26px;
  }

  .prose {
    font-size: 14.5px;
  }

  .cta-band {
    padding: 34px 24px;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

/* ---------- 16. 程序详情弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: absolute;
  inset: 28px;
  margin: auto;
  max-width: 980px;
  max-height: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: #0b0f17;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px #000;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 16, 0.72);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-cover {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  background: #080b12;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.modal-cover-blur {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(38px) saturate(1.15);
  opacity: 0.5;
}

.modal-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.modal .prose {
  padding: 26px 32px 40px;
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #080b12;
}

.modal-foot-text {
  display: grid;
  line-height: 1.35;
  margin-right: auto;
}

.modal-foot-text b {
  font-size: 13.5px;
}

.modal-foot-text span {
  font-size: 11.5px;
  color: var(--dim);
}

.modal-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .modal-panel {
    inset: 0;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .modal-cover {
    height: 230px;
  }

  .modal-head {
    padding: 20px 18px 16px;
  }

  .modal-head h2 {
    font-size: 20px;
  }

  .modal .prose {
    padding: 20px 18px 30px;
    font-size: 14.5px;
  }

  .modal-foot {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .modal-foot-text {
    display: none;
  }

  .modal-foot-actions {
    width: 100%;
  }

  .modal-foot-actions .btn {
    flex: 1 1 auto;
  }
}
