/* ===== Variables ===== */
:root {
  --bg-deep: #0a0a0c;
  --bg-elevated: #111114;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b919d;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.45);
  --cyan: #22d3ee;
  --header-h: 72px;
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  /* 行业官网右侧预览区：固定高度（改这里即可全局生效） */
  --category-industry-preview-height: 585px;
  /* 小程序预览手机框最大宽度（内嵌页多为 375 逻辑宽，放大外框便于阅读） */
  --miniapp-phone-max-width: 352px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ===== Animated gradient + grid ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(59, 130, 246, 0.15), transparent 50%),
    var(--bg-deep);
  animation: gradientShift 18s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    filter: hue-rotate(0deg) brightness(1);
    transform: scale(1);
  }
  100% {
    filter: hue-rotate(12deg) brightness(1.05);
    transform: scale(1.02);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    background-position: 48px 48px, 48px 48px;
    opacity: 0.55;
  }
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
main {
  padding-top: var(--header-h);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  box-sizing: border-box;
  padding-right: clamp(0px, 2vw, 16px);
}

/* 介绍页：公司简介区块在上、首屏 hero 在下时的分隔 */
.section.home-intro + .hero {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 56px;
  margin-top: 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 16px;
}

.hero-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.35rem;
}

.hero-title__ssai {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-prose {
  margin: 0;
  max-width: 36rem;
}

.hero-prose p {
  margin: 0 0 1.15em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.hero-prose p:last-child {
  margin-bottom: 0;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

/* Card glow shell + particle canvas */
.card-glow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59, 130, 246, 0.12),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
}

.card-glow:hover::before {
  opacity: 1;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  height: 100%;
  padding: 20px;
  perspective: 1000px;
  box-sizing: border-box;
}

.hero-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.hero-card-inner--carousel {
  flex: 1;
  min-height: 0;
  justify-content: center;
  min-height: 200px;
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 14px;
  min-height: min(34vh, 280px);
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.48s ease;
  will-change: transform;
}

.hero-carousel__slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 8px;
  min-height: 200px;
}

.hero-carousel__slide--media {
  padding: 4px 0 8px;
  justify-content: center;
  align-items: center;
  min-height: min(34vh, 280px);
}

.hero-carousel__figure {
  margin: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(34vh, 300px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #f8fafc;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.hero-carousel-links {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-carousel-links__a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.hero-carousel-links__a:hover {
  text-decoration: underline;
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot:hover {
  background: rgba(148, 163, 184, 0.75);
}

.hero-carousel__dot[aria-selected="true"] {
  background: var(--cyan);
  transform: scale(1.15);
}

.hero-promo {
  margin: 0;
  padding: 16px 18px;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.6;
  color: #e2e8f0;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-promo--plain {
  text-align: left;
}

.hero-promo strong {
  color: #fdba74;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-promo__download {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 12px;
  font-weight: 800;
  color: #0f172a !important;
  text-decoration: none;
  background: linear-gradient(135deg, #fb923c, #f97316);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-promo__download:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.55);
}

.hero-promo__cta {
  margin: 12px 0 0;
  text-align: center;
}

.hero-promo__link {
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.hero-promo__link:hover {
  text-decoration: underline;
}

/* ===== Sections ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.section-head {
  margin-bottom: 40px;
}

.categories-intro {
  margin-bottom: 40px;
}

.categories-intro .section-head {
  margin-bottom: 0;
  text-align: center;
}

.categories-intro .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* 源码页：源码商城 — 纵向分区 + 发光外壳 + 网格展台 */
.source-mall-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.source-mall {
  position: relative;
}

.source-mall__shell {
  position: relative;
  border-radius: 22px;
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% -20%, rgba(148, 163, 184, 0.12), transparent 55%), rgba(6, 8, 12, 0.92);
}

.source-mall--cyan .source-mall__shell {
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 0 56px rgba(34, 211, 238, 0.14),
    0 20px 60px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(34, 211, 238, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 40% at 100% 80%, rgba(34, 211, 238, 0.06), transparent 45%),
    rgba(6, 10, 14, 0.94);
}

.source-mall--blue .source-mall__shell {
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1) inset,
    0 0 52px rgba(59, 130, 246, 0.14),
    0 20px 60px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(ellipse 65% 48% at 88% 8%, rgba(59, 130, 246, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 36% at 0% 100%, rgba(59, 130, 246, 0.07), transparent 45%),
    rgba(6, 10, 16, 0.94);
}

.source-mall--violet .source-mall__shell {
  border: 1px solid rgba(168, 85, 247, 0.52);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.11) inset,
    0 0 56px rgba(168, 85, 247, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(168, 85, 247, 0.16), transparent 48%),
    radial-gradient(ellipse 50% 40% at 12% 12%, rgba(168, 85, 247, 0.1), transparent 50%),
    rgba(8, 6, 16, 0.94);
}

.source-mall__head {
  margin-bottom: clamp(14px, 2vw, 18px);
}

.source-mall__head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.source-mall__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.source-mall--cyan .source-mall__badge {
  border-color: rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.source-mall--blue .source-mall__badge {
  border-color: rgba(59, 130, 246, 0.38);
  color: #bfdbfe;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.source-mall--violet .source-mall__badge {
  border-color: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.12);
}

.source-mall__count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.95);
}

.source-mall--cyan .source-mall__count {
  color: #7dd3fc;
}

.source-mall--blue .source-mall__count {
  color: #93c5fd;
}

.source-mall--violet .source-mall__count {
  color: #d8b4fe;
}

.source-mall__head-main {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 18px);
}

.source-mall__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 2px;
}

.source-mall__icon svg {
  width: 100%;
  height: 100%;
}

.source-mall--cyan .source-mall__icon {
  color: #22d3ee;
}

.source-mall--blue .source-mall__icon {
  color: #60a5fa;
}

.source-mall--violet .source-mall__icon {
  color: #c084fc;
}

.source-mall__head-text {
  min-width: 0;
}

.source-mall__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.source-mall__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 72ch;
}

.source-mall__lead strong {
  color: #fde68a;
  font-weight: 800;
}

.source-mall__body {
  border-radius: 16px;
  padding: clamp(12px, 1.8vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-color: rgba(0, 0, 0, 0.42);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center top;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.source-mall__preview.category-preview {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
}

/* 展台内：列表 + 预览区与背景网格区分开，避免「空一块」观感 */
.source-mall__body .miniapp-preview {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 18, 0.78);
}

.source-mall__body .industry-preview__aside {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 18, 0.72);
}

.category-promo {
  margin: 0;
  padding: 14px 18px;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.55;
  color: #e2e8f0;
  text-align: right;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.25);
}

.category-promo strong {
  color: #fdba74;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.category-promo__download {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 10px;
  font-weight: 800;
  color: #0f172a !important;
  text-decoration: none;
  background: linear-gradient(135deg, #fb923c, #f97316);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-promo__download:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.55);
}

.category-promo__download:active {
  transform: scale(0.98);
}

@media (max-width: 900px) {
  .category-promo {
    text-align: left;
  }
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.section-sub {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section-sub__link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.section-sub__link:hover {
  color: #7dd3fc;
}

.section-sub__glow-yellow {
  color: #fde047;
  text-shadow:
    0 0 10px rgba(250, 204, 21, 0.95),
    0 0 22px rgba(234, 179, 8, 0.65),
    0 0 36px rgba(202, 138, 4, 0.4);
}

/* 介绍页：分区导航 + 公司简介 / 团队 / 项目 / 产品 */
.home-chips,
.home-intro,
.home-block {
  scroll-margin-top: 80px;
}

.home-chips {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-chip:hover {
  color: #e2e8f0;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.home-intro {
  margin-top: 20px;
  padding-top: 4px;
  padding-bottom: 40px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 0;
}

.home-intro-visual {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.55);
}

.home-intro-visual__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 18px;
}

.home-intro-logo {
  display: block;
  margin: 0 auto 12px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.home-intro-visual__name {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
}

.home-intro-visual__tag {
  margin: 0;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.home-intro-copy .section-title {
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}

.home-intro-lead {
  max-width: none;
  margin-bottom: 16px;
}

.home-bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.home-bullets li + li {
  margin-top: 8px;
}

.home-block {
  padding-top: 32px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-block--tech {
  padding-bottom: 48px;
}

.home-block--tech .section-head {
  margin-bottom: 22px;
}

.home-block--tech .home-tech-prose {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.85;
  color: #cbd5e1;
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 600px) {
  .home-block--tech .home-tech-prose {
    text-align: start;
  }
}

.home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
}

.home-timeline > li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-timeline > li:last-child {
  border-bottom: 0;
}

.home-timeline__year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 3px;
}

.home-timeline__h {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f1f5f9;
}

.home-timeline__body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card {
  margin: 0;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.45);
}

.home-card--accent {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.05);
}

.home-card__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f1f5f9;
}

.home-card__desc {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .home-intro-grid {
    grid-template-columns: 1fr;
  }

  .home-intro-visual {
    min-height: 180px;
  }

  .home-timeline > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-card-grid,
  .home-card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Categories — 主从布局：左列分类 + 右侧详情容器 */
.category-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 0;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

/* Grid 子项：允许在 max-height 内收缩，避免整行被长列表撑破 */
.category-layout > .category-preview {
  min-height: 0;
}

/* 行业官网 / 小程序 / 游戏：定死展示框高度（像素），内部滚动 */
.source-mall__preview.category-preview[data-active-category="industry"],
.source-mall__preview.category-preview[data-active-category="miniapp"],
.source-mall__preview.category-preview[data-active-category="game"] {
  height: var(--category-industry-preview-height);
  max-height: var(--category-industry-preview-height);
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
  width: 100%;
}

.category-preview-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Generic category panels (AI / miniapp / game) */
.category-preview-inner--panel {
  align-items: flex-start;
  justify-content: center;
  padding: 28px 32px 32px;
}

.cat-panel {
  max-width: 42rem;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(12px);
}

.cat-panel__tag {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.cat-panel__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cat-panel__lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.cat-panel__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.cat-panel__prose {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  max-height: min(58vh, 480px);
  overflow-y: auto;
  padding-right: 4px;
}

.cat-panel--ai {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}

.cat-panel--miniapp {
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.08);
}

.cat-panel--game {
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.1);
}

.category-preview-placeholder {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 32ch;
  line-height: 1.65;
}

/* Industry: style directory only */
.category-preview-inner--industry {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  flex: 1;
  /* 避免与 .category-preview-inner 的 min-height 冲突撑破父级 */
  max-height: 100%;
}

/* 小程序：左侧名称列表 + 右侧手机框内嵌预览 */
.category-preview-inner--miniapp {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  flex: 1;
  max-height: 100%;
}

.miniapp-preview {
  display: grid;
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  flex: 1;
  padding: 14px 16px 18px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.18);
}

.miniapp-preview__list-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  flex: 1;
}

.miniapp-preview__scroll-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.miniapp-preview__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.miniapp-preview__list {
  list-style: none;
  margin: 0;
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.miniapp-preview__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 小程序列表底部：可向下滚动提示 */
.miniapp-preview__more-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  pointer-events: none;
  color: rgba(148, 163, 184, 0.95);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transform: translateX(-50%);
  animation: miniapp-more-nudge 1.35s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.miniapp-preview__more-hint svg {
  width: 22px;
  height: 22px;
}

.miniapp-preview__more-hint.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes miniapp-more-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .miniapp-preview__more-hint {
    animation: none;
  }
}

.miniapp-preview__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

button.miniapp-preview__item {
  appearance: none;
  -webkit-appearance: none;
}

.miniapp-preview__item .particle-canvas {
  z-index: 1;
}

.miniapp-preview__name {
  position: relative;
  z-index: 2;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.miniapp-preview__summary {
  position: relative;
  z-index: 2;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.miniapp-preview__item.is-active {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.preview-card-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.preview-card-wrap .miniapp-preview__item {
  padding: 12px 76px 26px 14px;
}

.preview-pay-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.preview-pay-badge:hover {
  color: #7dd3fc;
}

.miniapp-preview__phone-col {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 4px 0 8px;
}

/* 游戏 APK 说明 + 下载：在手机框外侧（与 iframe 同级，不在手机内） */
.miniapp-preview__phone-col--with-rail {
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.miniapp-preview__phone-col--with-rail > .miniapp-phone {
  flex: 0 1 auto;
  min-width: 0;
}

.m3-apk-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  gap: 14px;
  max-height: min(78vh, 520px);
  padding: 12px 8px 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.m3-apk-rail[hidden] {
  display: none !important;
}

.m3-apk-rail__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #1e293b;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  max-height: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m3-apk-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #2d8cff 0%, #1a6fd9 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(26, 111, 217, 0.35);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m3-apk-rail__btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(26, 111, 217, 0.45);
}

.m3-apk-rail__btn:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .miniapp-preview__phone-col--with-rail {
    flex-direction: column;
    align-items: center;
  }
}

.miniapp-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  flex: 1;
}

.miniapp-phone__notch {
  width: min(38%, 132px);
  height: 28px;
  background: #0c0c0f;
  border-radius: 0 0 16px 16px;
  margin-bottom: -1px;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* 注意：不要与 aspect-ratio + max-height 同时用来「限高」，否则宽度会被压成很窄 */
.miniapp-phone__frame {
  position: relative;
  width: min(100%, var(--miniapp-phone-max-width));
  height: min(
    calc(var(--category-industry-preview-height) - 64px),
    82vh
  );
  min-height: 220px;
  border-radius: 28px;
  border: 3px solid #2a2a30;
  background: #0e0e12;
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 游戏分类：未点列表前不加载 iframe，仅显示提示层 */
.miniapp-phone__pick {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  background: rgba(12, 12, 16, 0.97);
  border-radius: 22px;
  pointer-events: none;
}

.miniapp-phone__frame.has-game .miniapp-phone__pick {
  display: none;
}

.miniapp-phone__pick-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.miniapp-phone__pick-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 22ch;
}

.miniapp-phone__iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1a1a;
}

#categories .miniapp-preview__item.card-glow:not(.is-active) {
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(59, 130, 246, 0.09), transparent 50%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 18px rgba(59, 130, 246, 0.05);
}

#categories .miniapp-preview__item.card-glow.is-active {
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(59, 130, 246, 0.16), transparent 50%),
    rgba(59, 130, 246, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 28px rgba(59, 130, 246, 0.16);
}

.industry-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.industry-preview__aside {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.industry-preview__scroll-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.industry-preview__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 隐藏滚动条，保留滚轮/触控滚动 */
.industry-preview__items {
  list-style: none;
  margin: 0;
  padding: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.industry-preview__items::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 展示框下缘：提示可向下浏览（无滚动条时） */
.industry-preview__more-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  pointer-events: none;
  color: rgba(148, 163, 184, 0.95);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transform: translateX(-50%);
  animation: industry-more-nudge 1.35s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.industry-preview__more-hint svg {
  width: 22px;
  height: 22px;
}

.industry-preview__more-hint.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes industry-more-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-preview__more-hint {
    animation: none;
  }
}

.industry-preview__items > li {
  display: flex;
  min-width: 0;
}

.preview-card-wrap .industry-preview__link {
  padding: 14px 76px 28px 14px;
}

.industry-preview__link {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.industry-preview__link .particle-canvas {
  z-index: 1;
}

.industry-preview__title,
.industry-preview__summary {
  position: relative;
  z-index: 2;
}

.industry-preview__link:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.industry-preview__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.industry-preview__summary {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  color: var(--text);
}

button.category-item {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

#categories .category-item.is-active {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 36px rgba(59, 130, 246, 0.14);
  background:
    radial-gradient(ellipse 100% 70% at 50% -8%, rgba(59, 130, 246, 0.16), transparent 50%),
    rgba(59, 130, 246, 0.08);
}

.category-item.is-active .category-icon {
  color: var(--cyan);
}

.category-item .particle-canvas {
  z-index: 1;
}

.category-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  color: var(--accent);
  transition: color 0.25s, transform 0.25s;
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-text {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: 1rem;
}

.category-item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

/* 展示区：分类按钮 / 行业卡片 / 热门卡片 — 默认微弱背景蓝光 */
#categories .category-item.card-glow:not(.is-active) {
  background:
    radial-gradient(ellipse 100% 70% at 50% -8%, rgba(59, 130, 246, 0.09), transparent 50%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 22px rgba(59, 130, 246, 0.06);
}

#categories .category-item.card-glow:hover:not(.is-active) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 40px rgba(59, 130, 246, 0.12);
}

#categories .industry-preview__link.card-glow {
  background:
    radial-gradient(ellipse 100% 75% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 18px rgba(59, 130, 246, 0.06);
}

#categories .industry-preview__link.card-glow:hover {
  background:
    radial-gradient(ellipse 100% 75% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 50%),
    rgba(59, 130, 246, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 26px rgba(59, 130, 246, 0.12);
}

.category-item:hover .category-icon {
  color: var(--cyan);
  transform: scale(1.08);
}

/* Products 3D */
.section--featured {
  padding-top: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 100% 70% at 50% -8%, rgba(59, 130, 246, 0.08), transparent 52%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 20px rgba(59, 130, 246, 0.05);
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(59, 130, 246, 0.1);
}

.product-card-inner {
  position: relative;
  transform-style: preserve-3d;
}

.product-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a22, #0d0d12);
}

.product-cover-device {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-cover-device {
  transform: scale(1.05);
}

/* 叠在笔记本屏幕区域（与 Unsplash 1551288049 构图大致对齐，可按需微调百分比） */
.product-cover-screen {
  position: absolute;
  pointer-events: none;
  inset: 13% 11% 24% 11%;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(6, 8, 14, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 20px rgba(0, 0, 0, 0.45);
}

.product-code-stream {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 5px 7px;
  overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: clamp(6px, 0.55vw + 5px, 10px);
  line-height: 1.32;
  color: #a5f3fc;
  text-align: left;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.product-code-line {
  flex-shrink: 0;
  white-space: pre-wrap;
  word-break: break-all;
  animation: product-code-line-in 0.38s ease forwards;
}

@keyframes product-code-line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.product-info {
  padding: 18px 20px 22px;
  position: relative;
  transform: translateZ(24px);
}

.product-name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--cyan);
  transition: color 0.28s ease;
}

.product-price-currency {
  font-weight: 700;
}

.product-price-value {
  font-variant-numeric: tabular-nums;
  min-width: 2.25ch;
}

.product-hot-label {
  margin-right: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-rating .star {
  color: #fbbf24;
}

/* CTA */
.cta-strip {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.cta-inner {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(17, 17, 20, 0.9));
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cta-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 0.9375rem;
}

.cta-buy-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.stock-badge {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  letter-spacing: 0.02em;
  z-index: 2;
}

.btn-gradient {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4);
  background-size: 200% 200%;
  animation: btnGradientMove 6s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 32px rgba(59, 130, 246, 0.35),
    0 0 48px rgba(59, 130, 246, 0.15);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

@keyframes btnGradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-gradient:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 40px rgba(59, 130, 246, 0.45),
    0 0 60px rgba(34, 211, 238, 0.2);
}

.btn-gradient:active {
  transform: translateY(-1px);
}

.btn-gradient-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

/* CTA：悬停显示微信二维码小图 */
.cta-qr-anchor {
  position: relative;
  display: inline-block;
}

.cta-qr-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  z-index: 30;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}

.cta-qr-popover img {
  display: block;
  width: 132px;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}

.cta-qr-anchor:hover .cta-qr-popover,
.cta-qr-anchor:focus-within .cta-qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: none) {
  .cta-qr-popover {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 0;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row--empty {
  min-height: 0;
  min-width: 0;
}

/* 主行下方的通用底部区：导航 + 备案等说明 */
.footer-bottom {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 22px 24px 28px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom-meta {
  margin: 0;
  max-width: 720px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.85);
}

.footer-bottom-meta a {
  margin-left: 0.35em;
  color: rgba(148, 163, 184, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom-meta a:hover {
  color: var(--cyan);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    color 0.25s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    box-shadow 0.25s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.15);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal {
  position: fixed;
  z-index: 201;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 800px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #0f0f12;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.08);
  opacity: 0;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal--qr {
  width: min(380px, calc(100vw - 32px));
  max-height: none;
  padding: 0;
  overflow: visible;
}

.qr-modal-inner {
  padding: 32px 28px 28px;
  text-align: center;
}

.qr-modal-img {
  width: min(280px, 72vw);
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.qr-modal-caption {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  max-height: min(88vh, 800px);
}

.modal-media {
  background: #08080a;
  min-height: 200px;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.modal-body {
  padding: 28px 28px 24px;
  overflow-y: auto;
  max-height: min(88vh, 800px);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  padding-right: 36px;
}

.modal-meta {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-panel {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.demo-label,
.code-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.demo-tab.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text);
  background: rgba(59, 130, 246, 0.12);
}

.demo-pane {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.demo-pane p {
  margin: 0 0 12px;
}

.demo-action {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
  color: var(--cyan);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.demo-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.demo-pane.is-pulse {
  animation: demoPulse 0.6s ease;
}

@keyframes demoPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
  }
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8125rem;
}

.metric-row span:first-child {
  width: 88px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.metric-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.6s ease;
}

.code-block-wrap pre {
  margin: 0;
  border-radius: 12px;
  font-size: 0.75rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
}

/* Prism overrides */
.code-block-wrap .token.comment {
  opacity: 0.7;
}

body.modal-open {
  overflow: hidden;
}

/* ===== Auth modal (login / register) ===== */
#authModalBackdrop {
  z-index: 220;
}

#authModal.modal {
  z-index: 221;
  width: min(440px, calc(100vw - 32px));
  /* 限高靠内层 max-height + overflow-y，避免外层 flex+flex:1 在部分浏览器把内层算成 0 高导致无法点击 */
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: hidden;
}

#accountModalBackdrop {
  z-index: 222;
}

#accountModal.modal--account {
  z-index: 223;
  width: min(440px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  padding: 0;
  overflow: hidden;
}

.auth-tabs--wrap {
  flex-wrap: wrap;
}

.auth-tabs--wrap .auth-tab {
  flex: 1 1 auto;
  min-width: 72px;
  padding: 8px 10px;
  font-size: 0.8125rem;
}

.auth-tab[hidden] {
  display: none !important;
}

.auth-extra {
  margin: 10px 0 0;
  text-align: center;
}

.auth-extra--left {
  margin: 0 0 4px;
  text-align: left;
}

.auth-text-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.auth-text-link:hover {
  color: var(--text);
}

.auth-hint {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.auth-modal-inner {
  padding: 28px 28px 28px;
  padding-top: 36px;
}

#authModal .auth-modal-inner {
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 32px;
  /* 隐藏滚动条，仍可用滚轮 / 触控滑动 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#authModal .auth-modal-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#accountModal .auth-modal-inner {
  max-height: min(90vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#accountModal .auth-modal-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.auth-modal-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.auth-tab.is-active {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--text);
  background: rgba(59, 130, 246, 0.12);
}

.auth-msg {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.auth-msg--error {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}

.auth-msg--compact {
  margin-top: 12px;
  margin-bottom: 0;
}

.auth-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.4;
  min-height: 1.05em;
}

.auth-field-hint--err {
  color: #fca5a5;
}

.auth-field-hint--ok {
  color: #86efac;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* [hidden] 默认 display:none 会被上面的 flex 覆盖，必须显式隐藏 */
.auth-form[hidden] {
  display: none !important;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth-label--grow {
  flex: 1;
  min-width: 0;
}

.auth-label input {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-label input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-label input::placeholder {
  color: rgba(139, 145, 157, 0.55);
}

/* 登录/注册/账户弹窗：自动填充不要亮白底；年龄 number 去掉微调箭头 */
#authModal .auth-label input:-webkit-autofill,
#authModal .auth-label input:-webkit-autofill:hover,
#authModal .auth-label input:-webkit-autofill:focus,
#accountModal .auth-label input:-webkit-autofill,
#accountModal .auth-label input:-webkit-autofill:hover,
#accountModal .auth-label input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #141418 inset;
  -webkit-box-shadow: 0 0 0 1000px #141418 inset;
  transition: background-color 99999s ease-out;
}

#authModal .auth-label input[type="number"]::-webkit-inner-spin-button,
#authModal .auth-label input[type="number"]::-webkit-outer-spin-button,
#accountModal .auth-label input[type="number"]::-webkit-inner-spin-button,
#accountModal .auth-label input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#authModal .auth-label input[type="number"],
#accountModal .auth-label input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

#captchaModal .auth-captcha-math__input:-webkit-autofill,
#captchaModal .auth-captcha-math__input:-webkit-autofill:hover,
#captchaModal .auth-captcha-math__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #141418 inset;
  -webkit-box-shadow: 0 0 0 1000px #141418 inset;
  transition: background-color 99999s ease-out;
}

.auth-label select {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.auth-label select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 注册「所在行业」：自定义下拉，避免原生 select + color-scheme 在部分浏览器强制白底 */
.reg-industry-wrap {
  position: relative;
  width: 100%;
}

.reg-industry-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  padding-right: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reg-industry-btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.reg-industry-btn:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reg-industry-btn.is-open {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reg-industry-btn__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-industry-btn__text--ph {
  color: rgba(139, 145, 157, 0.75);
  font-weight: 500;
}

.reg-industry-btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.reg-industry-btn.is-open::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.reg-industry-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: min(240px, 42vh);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #141418;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.reg-industry-list__item {
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}

.reg-industry-list__item:hover,
.reg-industry-list__item:focus {
  outline: none;
  background: rgba(59, 130, 246, 0.15);
}

.reg-industry-list__item.is-selected {
  background: rgba(59, 130, 246, 0.22);
}

.auth-sms-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.auth-sms-btn {
  flex-shrink: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.auth-sms-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.auth-sms-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-submit {
  margin-top: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.32);
}

.nav-auth-wrap {
  display: flex;
  align-items: center;
  list-style: none;
}

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

.nav-auth-user {
  display: flex;
  align-items: flex-start;
}

/* [hidden] 会被上面的 flex 覆盖，未登录时仍会占位，必须显式隐藏 */
.nav-auth-user[hidden] {
  display: none !important;
}

.nav-auth-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-auth-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-auth-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.nav-auth-btn--ghost {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.nav-user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  max-width: 100%;
}

.nav-auth-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 18px 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-auth-trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.nav-auth-trigger[aria-expanded="true"] {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.nav-auth-trigger .nav-auth-name {
  color: var(--text);
}

.nav-user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 220;
  min-width: 280px;
  max-width: min(320px, calc(100vw - 28px));
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 18, 28, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.nav-user-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 12px;
  font-size: 0.8125rem;
  align-items: center;
}

.nav-user-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-user-dl dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.nav-user-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.nav-user-panel:not(.nav-user-panel--profile-edit) .nav-user-inline-editor {
  display: none;
}

.nav-user-inline-editor {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-user-panel--profile-edit .nav-user-line > span {
  display: none;
}

.nav-user-panel--profile-edit .nav-user-inline-editor {
  display: flex;
}

.nav-user-profile-toolbar-outer {
  display: flex;
  justify-content: stretch;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-user-profile-toolbar-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-user-nick-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.nav-user-msg-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
  flex-shrink: 0;
}

.nav-user-msg-badge--nav {
  position: absolute;
  top: 5px;
  right: 8px;
  box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.95);
}

.nav-user-mail-btn {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-user-mail-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.92);
  pointer-events: none;
}

.nav-user-mail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-user-mail-btn__icon {
  width: 22px;
  height: 22px;
  display: block;
}

#inboxModalBackdrop {
  z-index: 226;
}

#inboxModal.modal--inbox {
  z-index: 227;
  width: min(440px, calc(100vw - 32px));
  max-height: min(88vh, 640px);
  padding: 0;
  overflow: hidden;
}

.inbox-modal-inner {
  max-height: min(88vh, 640px);
  overflow-y: auto;
}

.inbox-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-modal-loading,
.inbox-modal-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.inbox-modal-err {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #fecaca;
}

.inbox-msg {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  padding: 0;
  overflow: hidden;
}

.inbox-msg--unread {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}

.inbox-msg__toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}

.inbox-msg__toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

.inbox-msg__toggle-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.inbox-msg__chev {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-right: 2px solid rgba(148, 163, 184, 0.85);
  border-bottom: 2px solid rgba(148, 163, 184, 0.85);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.inbox-msg--open .inbox-msg__chev {
  transform: rotate(45deg);
  margin-top: 0.45rem;
}

.inbox-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.inbox-msg__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inbox-msg__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.inbox-msg__spec {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.inbox-msg__time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inbox-msg__expand {
  padding: 0 14px 12px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inbox-msg__expand[hidden] {
  display: none !important;
}

.inbox-msg__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
  padding-top: 10px;
}

.inbox-msg__actions {
  margin-top: 10px;
}

.inbox-msg__del {
  margin: 0;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-family: inherit;
}

.inbox-msg__del:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
}

.nav-user-unified-btn {
  margin: 0;
  padding: 6px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(59, 130, 246, 0.35);
  color: #e2e8f0;
}

.nav-user-unified-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.5);
}

.nav-user-unified-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.nav-user-inline-input {
  flex: 1;
  min-width: 0;
  max-width: 160px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
}

.nav-user-inline-input--num {
  max-width: 88px;
}

.nav-user-dd--balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-user-dd--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-user-edit-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.nav-user-edit-link:hover {
  text-decoration: underline;
}

.nav-user-recharge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.nav-user-recharge:hover {
  text-decoration: underline;
}

.nav-user-select {
  width: 100%;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
}

.nav-user-select.nav-user-select--err {
  border-color: rgba(248, 113, 113, 0.55);
}

.nav-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-user-actions .nav-auth-btn {
  width: 100%;
  justify-content: center;
}

.modal.modal--captcha {
  z-index: 233;
  width: min(380px, calc(100vw - 32px));
  max-height: none;
  padding: 0;
}

.auth-captcha-backdrop {
  z-index: 232;
}

.auth-captcha-inner {
  padding-bottom: 28px;
}

.auth-captcha-hint {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-captcha-target {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.auth-captcha-math {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.auth-captcha-math__label {
  flex: 0 0 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-captcha-math__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-captcha-math__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-captcha-math__btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.15);
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.auth-captcha-math__btn:hover {
  transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  :root {
    --category-industry-preview-height: 505px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-content {
    min-height: 0;
    justify-content: flex-start;
    padding-right: 0;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
    height: auto;
  }

  .category-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
  }

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

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

  .modal-media img {
    min-height: 200px;
    max-height: 220px;
  }

  .industry-preview__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .miniapp-preview {
    grid-template-columns: minmax(160px, 196px) minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --category-industry-preview-height: 425px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
  }

  .nav-auth-wrap {
    padding: 14px 8px;
  }

  .nav-auth {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-auth-user {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-user-menu-wrap {
    width: 100%;
  }

  .nav-auth-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-user-panel {
    position: static;
    right: auto;
    top: auto;
    margin-top: 10px;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .nav-auth-btn:not(.nav-auth-btn--ghost) {
    width: 100%;
    justify-content: center;
  }

  .category-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-preview {
    min-height: 260px;
  }

  .category-preview-inner {
    padding: 24px 20px;
    min-height: 220px;
  }

  .category-preview-inner--industry {
    padding: 0;
    min-height: 0;
  }

  .miniapp-preview {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px 16px;
  }

  .miniapp-preview__list {
    flex: 0 1 auto;
    max-height: 160px;
    overflow-y: auto;
  }

  .miniapp-phone__frame {
    height: min(54vh, 380px);
    width: min(100%, var(--miniapp-phone-max-width));
  }

  .industry-preview__aside {
    padding: 12px 14px 16px;
  }

  .industry-preview__items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .cta-inner {
    padding: 28px 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buy-wrap {
    align-items: stretch;
  }

  .btn-gradient {
    width: 100%;
    justify-content: center;
  }

  .stock-badge {
    right: 8px;
    top: -8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 法律文档（服务条款 / 隐私政策） */
.site-header--simple .nav-inner {
  justify-content: space-between;
}

.legal-doc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--cyan);
}

.legal-doc-wrap h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-doc-meta {
  margin: 0 0 32px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-doc-wrap h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-doc-wrap h2:first-of-type {
  margin-top: 0;
}

.legal-doc-wrap p,
.legal-doc-wrap li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.92);
  margin: 0 0 12px;
}

.legal-doc-wrap ul {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.legal-doc-wrap li {
  margin-bottom: 8px;
}

.legal-doc-wrap a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc-wrap a:hover {
  color: #bae6fd;
}

.legal-doc-wrap code {
  font-size: 0.875em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

/* 联系留言（POST 至 api/contact-submit.php，经 SMTP 发至企业邮箱） */
.contact-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.contact-page h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  margin-top: 8px;
  align-self: flex-start;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4);
  background-size: 200% 200%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 28px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 12px 36px rgba(59, 130, 246, 0.45);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-thanks {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-error {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

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