:root {
  --bg: #121416;
  --bg-2: #1a1e22;
  --ink: #f3f1ec;
  --muted: #a8a59c;
  --accent: #ff434f;
  --accent-2: #3d8b7a;
  --line: rgba(243, 241, 236, 0.12);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(18, 20, 22, 0.92), rgba(18, 20, 22, 0));
  backdrop-filter: blur(6px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(100px, 14vh, 140px) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 80px);
  overflow: hidden;
}
.hero.has-carousel {
  display: block;
  padding: 0;
  min-height: min(720px, 92vh);
}
.hero-default {
  display: contents;
}
.hero-default[hidden] {
  display: none !important;
}

/* ---- 首页滚动栏（图片 / HTML） ---- */
.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(720px, 92vh);
  overflow: hidden;
}
.hero-carousel[hidden] { display: none !important; }
.hc-track {
  display: flex;
  height: 100%;
  min-height: inherit;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hc-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: inherit;
  position: relative;
  display: block;
  color: inherit;
  overflow: hidden;
}
.hc-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
.hc-img-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px clamp(20px, 4vw, 48px) 56px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}
.hc-html {
  min-height: inherit;
  height: 100%;
}
.hc-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hc-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(243, 241, 236, 0.35);
}
.hc-dot.on { background: var(--accent); transform: scale(1.2); }
.hc-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(18, 20, 22, 0.45);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hc-nav:hover { background: rgba(255, 255, 255, 0.08); }
.hc-nav.prev { left: 16px; }
.hc-nav.next { right: 16px; }

/* HTML 幻灯片组件（管理后台示例共用类名） */
.hb-slide {
  min-height: min(720px, 92vh);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(110px, 16vh, 140px) clamp(48px, 8vw, 96px) clamp(56px, 8vh, 80px);
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(160deg, #0e1012 0%, #1a2228 45%, #121416 100%);
}
.hb-slide-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 80% 15%, rgba(255, 67, 79, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 85%, rgba(61, 139, 122, 0.22), transparent 50%);
}
.hb-theme-teal .hb-slide-glow {
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(61, 139, 122, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 67, 79, 0.15), transparent 50%);
}
.hb-theme-slate .hb-slide-glow {
  background:
    radial-gradient(ellipse 70% 55% at 70% 10%, rgba(120, 140, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(255, 67, 79, 0.18), transparent 50%);
}
.hb-theme-amber .hb-slide-glow {
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(245, 166, 35, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 12% 85%, rgba(255, 67, 79, 0.16), transparent 50%);
}
.hb-theme-violet .hb-slide-glow {
  background:
    radial-gradient(ellipse 70% 55% at 72% 16%, rgba(120, 100, 200, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 18% 88%, rgba(61, 139, 122, 0.2), transparent 50%);
}
.hb-slide-body,
.hb-aside {
  position: relative;
  z-index: 1;
}
.hb-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-weight: 600;
}
.hb-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 12em;
}
.hb-desc {
  color: var(--muted);
  max-width: 32em;
  font-size: 1.02rem;
  margin-bottom: 22px;
}
.hb-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hb-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(243, 241, 236, 0.88);
  background: rgba(255, 255, 255, 0.04);
}
.hb-aside { display: flex; justify-content: flex-end; }
.hb-card,
.hb-price-card,
.hb-qr-block {
  width: min(300px, 100%);
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
}
.hb-card-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.hb-card strong,
.hb-price-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 18px;
}
.hb-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hb-steps i {
  font-style: normal;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.hb-steps i.on {
  background: rgba(255, 67, 79, 0.18);
  color: #ffb4b8;
}
.hb-qr-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hb-qr {
  width: 96px;
  height: 96px;
  background:
    linear-gradient(#f3f1ec 0 0) 0 0 / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 100% 0 / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 0 100% / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 100% 100% / 28% 28%,
    repeating-conic-gradient(#f3f1ec 0% 25%, transparent 0% 50%) 50% 50% / 16px 16px;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.hb-qr-block span { font-size: 0.88rem; color: var(--muted); }
.hb-bind {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.hb-node {
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}
.hb-node.accent {
  border-color: rgba(255, 67, 79, 0.45);
  background: rgba(255, 67, 79, 0.12);
}
.hb-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hb-price-card span { color: var(--muted); font-size: 0.9rem; }
.hb-price-card strong {
  font-size: 2rem;
  margin: 8px 0 6px;
  color: #ffd38a;
}
.hb-price-card em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
.hb-stack {
  display: grid;
  gap: 10px;
  width: min(280px, 100%);
}
.hb-stack span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.95rem;
}
.hb-stack span:nth-child(1) { border-color: rgba(255, 67, 79, 0.35); }
.hb-stack span:nth-child(2) { transform: translateX(12px); }
.hb-stack span:nth-child(3) { transform: translateX(24px); }

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 139, 122, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(255, 67, 79, 0.22), transparent 50%),
    linear-gradient(160deg, #0e1012 0%, #1a2228 45%, #121416 100%);
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(243, 241, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  animation: mesh-drift 28s linear infinite;
}

@keyframes mesh-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.hero-inner,
.hero-visual {
  position: relative;
  z-index: 1;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(18px);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 16em;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.lead {
  color: var(--muted);
  max-width: 28em;
  font-size: 1.02rem;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: #e83742; }

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  border-color: rgba(243, 241, 236, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: rise-scale 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

@keyframes rise-scale {
  to { opacity: 1; transform: none; }
}

.viz-panel {
  width: min(340px, 100%);
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  position: relative;
}

.viz-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.viz-panel strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 22px;
}

.viz-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.viz-bars i {
  display: block;
  height: 6px;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: bar-pulse 2.8s ease-in-out infinite;
}

.viz-bars i:nth-child(2) { animation-delay: 0.35s; }
.viz-bars i:nth-child(3) { animation-delay: 0.7s; }

@keyframes bar-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.viz-qr {
  width: 72px;
  height: 72px;
  margin-left: auto;
  background:
    linear-gradient(#f3f1ec 0 0) 0 0 / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 100% 0 / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 0 100% / 40% 40%,
    linear-gradient(#f3f1ec 0 0) 100% 100% / 28% 28%,
    repeating-conic-gradient(#f3f1ec 0% 25%, transparent 0% 50%) 50% 50% / 16px 16px;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.section {
  padding: clamp(64px, 10vh, 96px) clamp(20px, 4vw, 48px);
}

.section.alt {
  background: var(--bg-2);
}

.wrap { max-width: 1080px; margin: 0 auto; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 36px;
  font-size: 1.02rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.feature-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-list span { color: var(--muted); font-size: 0.95rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  padding: 20px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.steps em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.steps span { font-weight: 500; }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.entry:hover {
  border-color: rgba(255, 67, 79, 0.55);
  background: rgba(255, 67, 79, 0.06);
  transform: translateY(-3px);
}

.entry-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.entry strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.entry > span:nth-of-type(2) {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.entry-go {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 48px) 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.foot strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a:hover { color: var(--ink); }

.site-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .sf-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer a:hover { color: var(--ink); }
.site-footer img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 110px;
  }
  .hero.has-carousel {
    padding: 0;
    min-height: auto;
  }
  .hero-carousel,
  .hb-slide {
    min-height: auto;
  }
  .hb-slide {
    grid-template-columns: 1fr;
    padding: 110px 24px 72px;
  }
  .hb-aside { justify-content: flex-start; }
  .hb-stack span:nth-child(2),
  .hb-stack span:nth-child(3) { transform: none; }
  .hero-visual { justify-content: flex-start; }
  .feature-list,
  .entry-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hc-nav { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
