/* =========================================================
   CMS1.0 · 前台主题样式
   ========================================================= */

:root {
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(15, 23, 42, 0.55);
  --max-width: 1180px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-strong);
}

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

.container {
  width: min(var(--max-width), 92vw);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #4338ca);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 25px -12px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgba(79, 70, 229, 0.95);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--ink-soft);
  border-color: transparent;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  border-radius: 12px;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, 0.8);
}

.brand-text span {
  color: var(--primary);
}

.brand-light {
  color: #fff;
}

.brand-light:hover {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--ink);
  background: #f1f5f9;
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}

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

.dashboard-link {
  padding-inline: 10px;
}

/* 语言切换 */
.lang-switch {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-trigger:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px -6px rgba(79, 70, 229, 0.4);
}

.lang-short {
  display: none;
  font-weight: 700;
}

.lang-trigger .chevron {
  transition: transform 0.2s ease;
}

.lang-trigger .chevron.up {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  z-index: 60;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: popIn 0.16s ease-out;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}

.lang-option:hover {
  background: #f8fafc;
}

.lang-option.selected {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.lang-option.selected .lang-code {
  background: #e0e7ff;
  color: var(--primary-strong);
}

.lang-check {
  margin-inline-start: auto;
}

.mobile-auth {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  color: #e2e8f0;
  background: radial-gradient(1100px 620px at 88% -12%, rgba(99, 102, 241, 0.55), transparent 62%),
    radial-gradient(900px 540px at 4% 112%, rgba(6, 182, 212, 0.34), transparent 58%), #0b1120;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 55% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #a5b4fc;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero .gradient-text {
  background: linear-gradient(120deg, #a5b4fc 10%, #67e8f9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 30em;
  margin-bottom: 30px;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat span {
  color: #94a3b8;
  font-size: 13px;
}

/* Hero 右侧产品模拟面板 */
.hero-visual {
  position: relative;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.hero-panel {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #111a2f, #0d1526);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 50px 100px -40px rgba(2, 6, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.panel-dot.red {
  background: #f87171;
}

.panel-dot.amber {
  background: #fbbf24;
}

.panel-dot.green {
  background: #34d399;
}

.panel-url {
  margin-inline-start: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.panel-body {
  padding: 24px 24px 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-head p {
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pill-up {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.panel-stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.panel-stat span {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 10px;
}

.panel-stat strong {
  color: #e2e8f0;
  font-size: 17px;
  font-weight: 700;
}

.panel-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 116px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.panel-bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
  opacity: 0.85;
  animation: grow 0.9s ease both;
  transform-origin: bottom;
}

.panel-bar:nth-child(2n) {
  background: linear-gradient(180deg, #67e8f9, #0891b2);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}

.floating-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 16px;
}

.floating-badge.seo {
  inset-block-start: -22px;
  inset-inline-end: 18px;
}

.floating-badge.langs {
  inset-block-end: -20px;
  inset-inline-start: -14px;
  animation-delay: 1.4s;
}

.floating-badge small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-block: 1px solid rgba(226, 232, 240, 0.8);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.section-link:hover {
  gap: 10px;
}

/* ---------- 特性 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: 0 26px 50px -28px rgba(79, 70, 229, 0.45);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  font-size: 24px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 卡片网格（产品 / 新闻） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card,
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: 0 32px 60px -34px rgba(15, 23, 42, 0.4);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2ff;
}

.news-card .card-media {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-media img,
.news-card:hover .card-media img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.card-body h3 a {
  color: var(--ink);
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 16px;
  border-top: 1px dashed var(--line);
}

.price {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 56px;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(700px 380px at 88% -30%, rgba(103, 232, 249, 0.45), transparent 60%),
    linear-gradient(120deg, #312e81, #4338ca 55%, #0e7490);
  box-shadow: var(--shadow-lg);
}

.cta-band::after {
  content: '';
  position: absolute;
  inset-block-start: -60px;
  inset-inline-end: -40px;
  width: 240px;
  height: 240px;
  border: 28px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.cta-band h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: #c7d2fe;
  font-size: 15px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.45);
}

.cta-band .btn-primary:hover {
  background: #f8fafc;
  color: var(--primary-strong);
}

/* ---------- 内页头部 ---------- */
.page-head {
  padding: 64px 0 56px;
  background: radial-gradient(900px 400px at 90% -20%, #e0e7ff, transparent 60%),
    linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 13px;
}

.breadcrumb a {
  color: #64748b;
}

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

.page-head h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head p {
  max-width: 52em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- 产品列表 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-label {
  margin-inline-end: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter-pill {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: #c7d2fe;
  color: var(--primary);
}

.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.result-count {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 产品详情 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  padding: 64px 0 24px;
}

.detail-gallery .main-image {
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eef2ff;
}

.detail-gallery .main-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.thumb-row img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-row img:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.detail-info h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-price {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 34px;
  font-weight: 800;
}

.detail-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.detail-desc {
  margin-bottom: 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.85;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-badges span {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.detail-section {
  padding: 56px 0 0;
}

.detail-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 800;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  width: 34%;
  background: #f8fafc;
  color: var(--muted);
}

/* ---------- 新闻 ---------- */
.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.news-feature .feature-media {
  min-height: 320px;
}

.news-feature .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature .feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 44px;
}

.news-feature h2 {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.news-feature h2 a {
  color: var(--ink);
}

.news-feature h2 a:hover {
  color: var(--primary);
}

.news-feature p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.article {
  padding: 56px 0 0;
}

.article-head {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.article-head .card-meta {
  justify-content: center;
}

.article-head h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.article-cover {
  max-width: 960px;
  margin: 0 auto 36px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-inline-start: 4px solid var(--primary);
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-size: 15px;
}

/* ---------- 关于我们 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-intro h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-intro p {
  color: #475569;
  line-height: 1.9;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.about-badge strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.about-badge span {
  color: var(--muted);
  font-size: 12px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.stat-tile {
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-tile strong {
  display: block;
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-strong);
}

.stat-tile span {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-inline-start: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(180deg, #c7d2fe, #a5f3fc);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset-block-start: 5px;
  inset-inline-start: -27px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px #eef2ff;
}

.timeline-year {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.timeline-event {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-member {
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.team-member img {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #eef2ff;
}

.team-member h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.team-member p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.cert-item {
  padding: 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cert-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.cert-item p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 联系我们 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 800;
}

.form-card > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f87171;
  background: #fef2f2;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.invalid-feedback {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
}

.error-message {
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.success-message {
  padding: 16px 18px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 19px;
}

.info-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.map-card {
  position: relative;
  flex: 1;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: #eef2ff;
  background-image: linear-gradient(rgba(79, 70, 229, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-pin {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
}

.map-pin .pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2);
  animation: pulse 2.4s infinite;
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.auth-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 46px 40px;
  color: #e2e8f0;
  background: radial-gradient(600px 400px at 100% 0%, rgba(6, 182, 212, 0.4), transparent 60%),
    linear-gradient(160deg, #1e1b4b, #312e81 55%, #0f172a);
}

.auth-aside::after {
  content: '';
  position: absolute;
  inset-block-end: -80px;
  inset-inline-start: -60px;
  width: 220px;
  height: 220px;
  border: 26px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.auth-aside h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-aside > p {
  margin-bottom: 28px;
  color: #c7d2fe;
  font-size: 14px;
  line-height: 1.8;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.auth-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-benefit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #a5f3fc;
  font-size: 14px;
}

.auth-benefit strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.auth-benefit small {
  color: #a5b4fc;
  font-size: 12px;
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-proof strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-proof span {
  color: #a5b4fc;
  font-size: 11px;
}

.auth-form {
  padding: 46px 48px;
}

.auth-form h1 {
  margin-bottom: 6px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 6px;
}

.form-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form-footer a {
  font-weight: 600;
}

.form-footer p {
  margin: 8px 0 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #475569;
  font-size: 13px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.demo-hint {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.demo-hint code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
}

/* ---------- 会员中心 ---------- */
.dashboard {
  padding: 52px 0 80px;
  background: linear-gradient(180deg, #f8fafc, #fff 260px);
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.user-chip .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-weight: 700;
}

.user-chip strong {
  display: block;
  font-size: 14px;
}

.user-chip small {
  color: var(--muted);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  font-size: 24px;
}

.stat-content h3 {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat-content p {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
}

.panel-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-card h2 {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #eef2ff;
  flex-shrink: 0;
}

.activity-time {
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

.activity-content p {
  margin: 0 0 3px;
  color: #334155;
  font-size: 14px;
}

.activity-content span {
  color: #94a3b8;
  font-size: 12px;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-card:hover {
  border-color: #c7d2fe;
  background: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateX(3px);
}

.action-icon {
  font-size: 18px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  padding: 64px 0 0;
  color: #94a3b8;
  background: #0b1120;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p {
  max-width: 30em;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  padding: 5px 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 11px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h4 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-column a,
.footer-column span {
  color: #94a3b8;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
}

/* ---------- 加载态 ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  color: var(--muted);
  font-size: 14px;
}

.loading::before {
  content: '';
  width: 22px;
  height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- 动画 ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

@keyframes grow {
  from {
    transform: scaleY(0.2);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 0.85;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-panel {
    transform: none;
  }

  .hero-visual {
    max-width: 560px;
  }

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

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

  .dash-grid,
  .contact-layout,
  .about-intro,
  .detail-layout,
  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature .feature-media {
    min-height: 260px;
  }

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

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    inset-block-start: var(--header-height);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px 4vw 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.5);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-inline-start: 0;
  }

  .header-actions {
    order: 2;
    margin-inline-start: auto;
  }

  .header-actions .auth-actions {
    display: none;
  }

  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .mobile-auth .nav-link {
    justify-content: flex-start;
  }

  .mobile-logout {
    width: 100%;
    text-align: start;
    color: #dc2626;
  }

  .mobile-logout:hover {
    color: #b91c1c;
    background: #fef2f2;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    padding: 34px 32px;
  }

  .auth-form {
    padding: 36px 32px;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-section .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .lang-name {
    display: none;
  }

  .lang-short {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
  }

  .lang-trigger {
    gap: 6px;
    padding: 8px 10px;
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    padding: 64px 0 76px;
  }

  .hero-stats {
    gap: 22px;
  }

  .feature-grid,
  .card-grid,
  .cert-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-section .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-card {
    padding: 26px 22px;
  }

  .page-head {
    padding: 44px 0 40px;
  }

  .btn-lg {
    padding: 13px 22px;
    font-size: 15px;
  }

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

/* ---------- RTL 适配 ---------- */
[dir='rtl'] .chevron {
  transform: scaleX(-1);
}

[dir='rtl'] .chevron.up {
  transform: scaleX(-1) rotate(180deg);
}

[dir='rtl'] .action-card:hover {
  transform: translateX(-3px);
}

[dir='rtl'] .article-body blockquote {
  border-radius: 12px 0 0 12px;
}

/* WhatsApp 快捷联系按钮（共用） */
.wa-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-inline:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(37, 211, 102, .3); }
.wa-inline svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.wa-inline span { color: #fff; }