:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-strong: #eef4ff;
  --text: #172033;
  --text-soft: #4f5d78;
  --text-muted: #6d7a92;
  --brand: #0c5fd7;
  --brand-dark: #0948a4;
  --brand-soft: #eaf2ff;
  --accent: #ff9b42;
  --accent-dark: #f18828;
  --line: #e2e8f2;
  --line-strong: #d4ddec;
  --success: #0f766e;
  --danger: #b91c1c;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container: min(1200px, 92%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.cookie-modal-open,
body.modal-open {
  overflow: hidden;
}

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

img {
  border: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.2rem;
}

::selection {
  background: rgba(12, 95, 215, 0.18);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  color: #0c1230;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 16px;
}

/* =========================
   双语切换
========================= */

.lang-en {
  display: inline;
}

.lang-cn {
  display: none;
}

html.lang-zh .lang-en {
  display: none !important;
}

html.lang-zh .lang-cn {
  display: inline !important;
}

html.lang-en .lang-cn {
  display: none !important;
}

/* =========================
   顶部导航
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 242, 0.92);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.navbar .container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}

.logo {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  color: #32425e;
  font-size: 1rem;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
  min-height: 40px;
  justify-content: center;
  padding: 2px 4px;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-links .lang-cn,
.nav-links .lang-en {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
}

.lang-toggle {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #15213b;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--brand-soft);
  border-color: #bcd0fb;
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1b2742;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* =========================
   按钮
========================= */

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}

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

.btn-primary {
  background: var(--accent);
  color: #1a1f2b;
  box-shadow: 0 10px 24px rgba(255, 155, 66, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffae64;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: #b8caf0;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brand-soft);
  border-color: #93b1ef;
  color: var(--brand-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f3f7ff;
}

.hero .btn-outline,
.page-hero .btn-outline,
.banner-note .btn-outline,
.cta-box .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.banner-note .btn-outline:hover,
.cta-box .btn-outline:hover,
.hero .btn-outline:focus-visible,
.page-hero .btn-outline:focus-visible,
.banner-note .btn-outline:focus-visible,
.cta-box .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(7, 37, 98, 0.92), rgba(11, 82, 190, 0.88)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  padding: 92px 0 108px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  max-width: none;
}

.hero h1 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 980px;
}

.hero h2 {
  max-width: 920px;
  font-size: 1.08rem;
  font-weight: 500;
  color: #d9e7ff;
}

.hero p {
  max-width: 860px;
  font-size: 1rem;
  color: #e7efff;
}

.hero-media {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-media video {
  width: 100%;
  border-radius: 18px;
  background: #09142e;
}

.banner-note {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(7, 15, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.banner-note strong {
  font-size: 1rem;
}

/* =========================
   内页页头
========================= */

.page-hero {
  background: linear-gradient(130deg, #0e1b43, #163680);
  color: #fff;
  padding: 72px 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 760px;
  color: #dbe6ff;
  font-size: 1rem;
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

/* =========================
   区块通用
========================= */

.section {
  padding: 78px 0;
}

.section.light {
  background: #fff;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
}

.section-title h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-title p {
  max-width: 780px;
  color: var(--text-soft);
}

/* =========================
   卡片 / 网格
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 24px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d7e1f1;
}

.card img {
  width: 100%;
  height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #edf2f9;
  background: #f7f9fc;
}

.line-card {
  overflow: hidden;
}

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

.card-carousel__viewport {
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  border: 1px solid #edf2f9;
  background: #f7f9fc;
}

.card-carousel__track {
  position: relative;
  min-height: 220px;
}

.card-carousel__slide {
  display: none;
  width: 100%;
  margin: 0;
}

.card-carousel__slide.is-active {
  display: block;
}

.card-carousel__slide img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f7f9fc;
  border: none;
  border-radius: 0;
}

.card-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 32, 61, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
}

.card-carousel__btn--prev {
  left: 10px;
}

.card-carousel__btn--next {
  right: 10px;
}

.card-carousel__btn:hover,
.card-carousel__btn:focus-visible {
  background: #ffffff;
  border-color: #bcd0fb;
}

.card-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.card-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d3ddeb;
}

.card-carousel__dot.is-active {
  background: var(--brand);
}

.card-carousel.is-single .card-carousel__btn,
.card-carousel.is-single .card-carousel__dots {
  display: none;
}

.card h4 {
  font-size: 1.18rem;
  line-height: 1.3;
  color: #12203d;
}

.card h5 {
  font-size: 1rem;
  color: #1f2f54;
}

.card p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.card .card-link,
.card .btn {
  margin-top: auto;
}

.card .card-link {
  font-weight: 700;
  color: var(--brand);
}

.badge,
.card .badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 95, 215, 0.10);
  border: 1px solid rgba(12, 95, 215, 0.12);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.highlight {
  background: rgba(255, 155, 66, 0.12);
  border: 1px solid rgba(255, 155, 66, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  color: #6c4a1b;
}

.notice {
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--success);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.94rem;
}

.cta-box {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0c5fd7, #132b6a);
  box-shadow: var(--shadow-lg);
}

.cta-box h4 {
  font-size: 1.45rem;
  line-height: 1.25;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-box .btn-primary {
  background: #fff;
  color: #0d1a39;
  box-shadow: none;
}

.cta-box .btn-primary:hover {
  background: #f5f7ff;
}

/* =========================
   数据块 / 信任块 / 标签
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 16px;
}

.stat-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
}

.trust-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-item,
.application-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.trust-item h5 {
  font-size: 1.04rem;
  margin-bottom: 8px;
  color: #13203f;
}

.trust-item p,
.application-card {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 95, 215, 0.08);
  border: 1px solid rgba(12, 95, 215, 0.10);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-pill-soft {
  background: #f5f7fd;
  border-color: #e2e7f2;
  color: #5b6780;
}

/* =========================
   表格
========================= */

.table,
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td,
.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th,
.spec-table th {
  background: #f5f8fe;
  color: #28427f;
  font-weight: 700;
}

.spec-table-wrap {
  overflow-x: auto;
}

/* =========================
   表单
========================= */

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

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #223252;
}

input,
select,
textarea {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.96rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #98a4ba;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8eaef1;
  box-shadow: 0 0 0 4px rgba(12, 95, 215, 0.10);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

form button[type="submit"],
.modal button[type="submit"] {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

form button[type="submit"]:hover,
.modal button[type="submit"]:hover {
  background: var(--brand-dark);
}

form button[type="submit"]:disabled,
.modal button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

form small,
.form-card small {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================
   Footer
========================= */

.footer {
  background: linear-gradient(180deg, #0c1230 0%, #0b163a 100%);
  color: #e4ecff;
  padding: 56px 0 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer h5 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #fff;
}

.footer p,
.footer label,
.footer a,
.footer small {
  color: #cbd7f4;
  font-size: 0.94rem;
}

.footer a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
  opacity: 1;
}

.footer form {
  display: grid;
  gap: 12px;
}

/* 页脚中的通用按钮（保留给其他场景） */
.footer .btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.9rem;
  box-shadow: none;
}

.footer .btn.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(203, 215, 244, 0.34);
}

.footer .btn.btn-secondary:hover,
.footer .btn.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* Cookie Settings 文字按钮：看起来像页脚链接，而不是胶囊按钮 */
.footer button[data-open-cookie-settings] {
  padding: 0;
  margin: 0;
  min-height: auto;
  border: none;
  border-radius: 0;
  background: none;
  color: #cbd7f4;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.65;
  box-shadow: none;
  text-align: left;
  display: inline;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer button[data-open-cookie-settings]:hover,
.footer button[data-open-cookie-settings]:focus-visible {
  color: #ffffff;
  opacity: 1;
  background: none;
  box-shadow: none;
  transform: none;
}

.footer button[data-open-cookie-settings]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.newsletter-note,
.hint-text {
  color: #aebee9;
  font-size: 0.84rem;
}

/* =========================
   弹窗
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: min(560px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content small {
  color: var(--text-soft);
  line-height: 1.6;
}

.modal form {
  margin-top: 4px;
}

.modal label {
  margin-top: 4px;
}

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

.modal-header h4 {
  font-size: 1.34rem;
  line-height: 1.25;
}

.close-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #f2f5fb;
  color: #18223b;
  font-size: 1.35rem;
  line-height: 1;
}

.close-btn:hover {
  background: #e9eef8;
}

/* =========================
   Cookie 横幅 / 偏好弹窗
========================= */

.cookie-banner {
  position: fixed !important;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2600;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.cookie-banner__text {
  display: grid;
  gap: 8px;
}

.cookie-banner__text strong {
  font-size: 1rem;
  color: #12203d;
}

.cookie-banner__text p {
  color: var(--text-soft);
  font-size: 0.94rem;
  max-width: none;
}

.cookie-banner__text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner__actions .btn {
  min-width: 168px;
}

.cookie-modal {
  position: fixed !important;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-modal__content {
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-modal.active .cookie-modal__content {
  transform: translateY(0) scale(1);
}

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

.cookie-modal__header h4 {
  font-size: 1.34rem;
  line-height: 1.25;
}

.cookie-modal__content small {
  color: var(--text-soft);
  line-height: 1.6;
}

.cookie-preference-list {
  display: grid;
  gap: 14px;
}

.cookie-preference-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.cookie-preference-item strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #12203d;
}

.cookie-preference-item p {
  color: var(--text-soft);
  font-size: 0.94rem;
  max-width: none;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  color: #23314f;
}

.cookie-switch input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

/* =========================
   固定 CTA
========================= */

.fixed-cta {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.fixed-cta span {
  font-size: 0.92rem;
  color: #23314f;
}

.fixed-cta button {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1f2b;
  padding: 9px 14px;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.fixed-cta button:hover,
.fixed-cta button:focus-visible {
  background: #ffae64;
  transform: translateY(-1px);
}

/* =========================
   动画
========================= */

@media (prefers-reduced-motion: no-preference) {
  .navbar,
  .card,
  .form-card,
  .application-card,
  .trust-item,
  .btn,
  .nav-links a,
  .lang-toggle,
  .fixed-cta,
  .modal-content,
  .cookie-banner,
  .cookie-modal__content {
    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease,
      background-color 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease;
  }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: saturate(0.96);
    will-change: transform, opacity;
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================
   兼容旧页面的保底样式
========================= */

.product-picker-panel,
.product-detail-card,
.product-detail-empty,
.admin-auth-card,
.admin-password-module,
.admin-panel-top,
.admin-preview-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.product-picker-panel,
.product-detail-card,
.product-detail-empty,
.admin-auth-card,
.admin-password-module,
.admin-preview-content {
  padding: 22px;
}

.product-detail-empty {
  min-height: 200px;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--text-soft);
  text-align: center;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.product-info-box,
.product-title-row,
.product-picker-head,
.admin-preview-panel,
.admin-preview-meta,
.admin-auth-form,
.admin-password-form {
  display: grid;
  gap: 10px;
}

.detail-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.detail-block-wide {
  grid-column: 1 / -1;
}

.admin-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-preview-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.admin-preview-image-wrap {
  width: 120px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f7fd;
}

.admin-preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand-soft);
  border: 1px solid #d7e4ff;
}

.admin-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #dbe7ff;
}

/* =========================
   当前导航高亮 / 通用可访问性
========================= */

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 800;
  position: relative;
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(255, 155, 66, 0.35);
}

.nav-links a.is-active .lang-cn,
.nav-links a.is-active .lang-en,
.nav-links a[aria-current="page"] .lang-cn,
.nav-links a[aria-current="page"] .lang-en {
  opacity: 1;
}

.nav-links .btn.btn-primary {
  min-width: 128px;
  font-size: 0.95rem;
  font-weight: 800;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(12, 95, 215, 0.18);
  outline-offset: 2px;
}

section:target,
.section:target,
.card:target,
.cta-box:target {
  scroll-margin-top: 110px;
  animation: anchorFlash 1s ease;
}

@keyframes anchorFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(12, 95, 215, 0);
    background-color: transparent;
  }
  30% {
    box-shadow: 0 0 0 6px rgba(12, 95, 215, 0.08);
    background-color: rgba(12, 95, 215, 0.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(12, 95, 215, 0);
    background-color: transparent;
  }
}

/* 联系页左图右表单时，图片卡片更贴合 */
.split-grid > .card img,
.split-grid .card img {
  width: 100%;
  object-fit: cover;
}

/* =========================
   响应式
========================= */

@media (max-width: 1080px) {
  .navbar .container {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .logo {
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    margin-left: 0;
  }

  .hero {
    padding: 78px 0 92px;
  }
}

@media (max-width: 900px) {
  .split-grid,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 210px;
  }

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

  .cookie-banner__content {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .card-carousel__slide img {
    height: 180px;
  }

  .card-carousel__btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1200px, 94%);
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding: 68px 0 82px;
  }

  .hero h1 {
    font-size: 1.72rem;
  }

  .hero h2,
  .hero p,
  .page-hero p {
    font-size: 0.95rem;
  }

  .navbar {
    position: sticky;
  }

  .navbar .container {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .logo {
    text-align: left;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 1200;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
  }

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

  .nav-links a {
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f9fd;
  }

  .nav-links a .lang-cn,
  .nav-links a .lang-en {
    font-size: 0.74rem;
  }

  .nav-links a.is-active::after,
  .nav-links a[aria-current="page"]::after {
    width: 20px;
    height: 2px;
  }

  .lang-toggle {
    width: 100%;
    order: 98;
  }

  .nav-links .btn.btn-primary {
    width: 100%;
    min-width: 100%;
    order: 99;
  }

  .button-group .btn {
    width: 100%;
  }

  .card,
  .form-card,
  .application-card,
  .trust-item,
  .cta-box,
  .modal-content,
  .cookie-modal__content {
    padding: 20px;
  }

  .card img {
    height: 200px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 18px;
  }

  .cookie-banner__content {
    padding: 16px;
    gap: 14px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    min-width: 100%;
  }

  .cookie-preference-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .cookie-switch {
    width: 100%;
    justify-content: space-between;
  }

  .fixed-cta {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 18px;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .fixed-cta span {
    max-width: 58%;
    line-height: 1.3;
    font-size: 0.84rem;
  }

  .fixed-cta button {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

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

  .admin-preview-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .admin-panel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    border-radius: 18px;
    padding: 20px;
  }

  .page-hero {
    padding: 56px 0;
  }

  .page-hero .container,
  .hero-content,
  .section-title {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .page-hero h1 {
    font-size: 1.56rem;
  }

  .section-title h3,
  .cta-box h4,
  .form-card h3,
  .modal-header h4,
  .cookie-modal__header h4 {
    font-size: 1.28rem;
  }

  .card-grid,
  .stats-grid,
  .trust-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .fixed-cta span {
    max-width: 54%;
  }

  .cookie-banner__text p,
  .cookie-preference-item p {
    font-size: 0.9rem;
  }
}

/* =========================
   Horizontal scroll galleries
========================= */

.gallery-section {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

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

.gallery-head small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-track-wrap {
  position: relative;
}

.scroll-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  margin: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c9d7ef transparent;
}

.scroll-gallery::-webkit-scrollbar {
  height: 10px;
}

.scroll-gallery::-webkit-scrollbar-thumb {
  background: #c9d7ef;
  border-radius: 999px;
}

.scroll-gallery__item {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.scroll-gallery__item img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  background: #f7f9fc;
}

.gallery-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: var(--brand-soft);
  border-color: #bcd0fb;
}

@media (max-width: 1080px) {
  .scroll-gallery__item {
    flex-basis: 250px;
    min-width: 250px;
    max-width: 250px;
  }
}

@media (max-width: 760px) {
  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-controls {
    align-self: flex-end;
  }

  .scroll-gallery {
    gap: 12px;
    padding-bottom: 10px;
  }

  .scroll-gallery__item {
    flex-basis: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .scroll-gallery__item img {
    height: 160px;
  }
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.form-status .lang-en,
.form-status .lang-cn {
  display: block;
}

.form-status.is-success {
  color: #0f8a4b;
}

.form-status.is-error {
  color: #c0392b;
}
