@import url("./ai-assistant.css");

@font-face {
  font-family: "Smiley Sans";
  src: url("../fonts/SmileySans-Oblique.woff2") format("woff2");
  font-style: oblique;
  font-weight: 400;
  font-display: swap;
}

a {
  text-decoration: none;
}

:root {
  --ink: #111315;
  --ink-soft: #1b1f20;
  --paper: #fff;
  --paper-tech: #efeee9;
  --metal: #595656;
  --orange: #f08200;
  --green: #007f4e;
  --blue: #2468d8;
  --yellow: #f4c430;
  --red: #d94735;
  --line-dark: #2a2e2f;
  --line-light: #d6dcd7;
  --font-display: "Smiley Sans", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --font-body: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --header-h: 64px;
  /* --gutter: clamp(20px, 4.5vw, 100px); */
  --gutter: 180px;
  --section-pad: clamp(88px, 11vw, 176px);
  --z-sticky: 100;
  --z-modal-backdrop: 200;
  --z-modal: 210;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: normal;
  background: var(--ink);
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

#news-list,
#equipment-list,
#video-list,
#solutions-list,
#showroom-list,
#product-downloads,
.platform-card[id],
.mobile-platform[id],
[data-video-card][id],
.case-card[id],
.download-item[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100%, 1920px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: "Arial Narrow", var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header {
  --header-pad-y: 0px;
  --header-bg: transparent;
  --header-border: transparent;
  --header-shadow: none;
  --header-radius: 0px;
  --header-top: 0px;
  --header-x-pad: var(--gutter);
  --brand-bg: rgba(255, 255, 255, 0);
  --brand-border: 1px solid rgba(255, 255, 255, 0);
  --brand-color: #fff;
  --nav-color: rgba(255, 255, 255, 0.92);
  --nav-color-hover: #fff;
  --nav-bg: transparent;
  --nav-border: 1px solid transparent;
  --nav-active-bg: transparent;
  --nav-active-color: var(--orange);
  --actions-color: rgba(255, 255, 255, 0.92);
  --actions-divider: rgba(255, 255, 255, 0.32);
  --search-bg: rgba(255, 255, 255, 0.1);
  --search-border: 1px solid rgba(255, 255, 255, 0.32);
  --search-color: #fff;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: max(env(safe-area-inset-top), 0px);
  pointer-events: none;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 340ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 340ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 340ms cubic-bezier(0.25, 1, 0.5, 1),
    backdrop-filter 340ms cubic-bezier(0.25, 1, 0.5, 1),
    -webkit-backdrop-filter 340ms cubic-bezier(0.25, 1, 0.5, 1),
    padding 340ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 1920px);
  margin-inline: auto;
  height: 80px;
  padding-inline: var(--header-x-pad);
  pointer-events: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: height 340ms cubic-bezier(0.25, 1, 0.5, 1), padding 340ms cubic-bezier(0.25, 1, 0.5, 1);
  padding-inline: var(--header-x-pad);
  pointer-events: auto;
  transition: gap 240ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 56px;
  padding: 0 14px;
  border: var(--brand-border);
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-color);
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, filter 240ms ease;
}

.brand__logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
  filter: none;
  transition: filter 240ms ease;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__eyebrow,
.primary-nav__texture {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .9vw, 18px);
  padding: 0;
  margin: 0;
}

.nav-item {
  flex: 0 0 auto;
  position: relative;
}

.nav-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 clamp(10px, .9vw, 18px);
  border: 0;
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--nav-color);
  font-size: clamp(13px, .92vw, 15px);
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.nav-button:hover,
.nav-button[aria-current="page"],
.nav-button.is-active {
  background: var(--nav-active-bg, rgba(255, 255, 255, 0.12));
  color: var(--nav-active-color, var(--orange));

}

.nav-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* === Header actions (login / register / search) === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--actions-divider);
  transition: border-color 240ms ease;
}

.header-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--actions-color);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}

.header-action:hover {
  color: var(--orange);
}

.header-action__divider {
  display: none;
}

.header-login__icon {
  display: none;
}

.header-search {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: var(--search-border);
  border-radius: 999px;
  background: var(--search-bg);
  color: var(--search-color);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.header-search:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.header-search:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.header-search__icon {
  width: 18px;
  height: 18px;
}

/* === Global search overlay === */
.site-search {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(6, 8, 9, 0.82);
  color: var(--paper);
  overflow: hidden;
}

.site-search::backdrop {
  background: transparent;
}

.site-search[open] {
  display: block;
}

.site-search__panel {
  width: min(calc(100% - 32px), 1320px);
  max-height: calc(100dvh - clamp(72px, 10vh, 120px) - 24px);
  margin: clamp(72px, 10vh, 120px) auto 0;
  overflow: auto;
}

.site-search__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.site-search__title {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-search__close {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-search__close svg {
  width: 18px;
  height: 18px;
}

.site-search__form {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

.site-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 74px;
  padding: 0 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 clamp(17px, 1.4vw, 21px)/1 var(--font-body);
}

.site-search__input::placeholder {
  color: #626765;
  opacity: 1;
}

.site-search__submit {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-search__submit svg {
  width: 24px;
  height: 24px;
}

.site-search__hint {
  min-height: 22px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.site-search__results {
  margin-top: 18px;
  padding: 12px 12px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.site-search__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-search__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 21, .1);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.site-search__item:hover,
.site-search__item:focus-visible {
  background: rgba(240, 130, 0, .06);
  border-color: rgba(240, 130, 0, .55);
  outline: none;
}

.site-search__thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #eceeed;
}

.site-search__thumb--empty {
  display: block;
}

.site-search__item-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-search__item-type {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-search__item-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.site-search__item-summary {
  color: #5f6663;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.search-open {
  overflow: hidden;
}

.site-search-target {
  outline: 2px solid var(--orange);
  outline-offset: 8px;
}

@media (min-width: 1201px) {
  .site-header__inner {
    gap: 0px;
  }

  .primary-nav {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .nav-list {
    justify-content: flex-end;
    gap: clamp(0px, .35vw, 8px);
  }

  .nav-button {
    padding-inline: clamp(8px, .65vw, 14px);
  }

  .header-actions {
    min-height: 38px;
    margin-left: clamp(12px, 1.4vw, 26px);
    padding-left: clamp(14px, 1.3vw, 24px);
  }
}

/* === Scroll state: Full width top bar (fills left, right, top) === */
.site-header {
  transition: background-color 340ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 340ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 340ms cubic-bezier(0.25, 1, 0.5, 1),
    backdrop-filter 340ms cubic-bezier(0.25, 1, 0.5, 1),
    -webkit-backdrop-filter 340ms cubic-bezier(0.25, 1, 0.5, 1),
    padding 340ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header__inner {
  transition: height 340ms cubic-bezier(0.25, 1, 0.5, 1), padding 340ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header.is-scrolled {
  --header-pad-y: 0px;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-shadow: 0 4px 24px rgba(17, 19, 21, 0.08);
  --header-radius: 0px;
  --header-top: 0px;
  --header-x-pad: var(--gutter);
  --brand-bg: transparent;
  --brand-border: 0;
  --brand-color: var(--ink);
  --nav-color: #3a3e40;
  --nav-color-hover: var(--ink);
  --nav-active-color: var(--orange);
  --actions-color: #3a3e40;
  --actions-divider: rgba(17, 19, 21, 0.12);
  --search-bg: rgba(17, 19, 21, 0.05);
  --search-border: 1px solid rgba(17, 19, 21, 0.12);
  --search-color: var(--ink);
  top: 0;
  padding-top: max(env(safe-area-inset-top), 0px);
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.site-header.is-scrolled .site-header__inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 80px !important;
  padding-inline: var(--header-x-pad);
  gap: 0px;
}

.site-header.is-scrolled .brand__logo {
  filter: none;
}

.site-header.is-scrolled .nav-button:hover {
  background: rgba(240, 130, 0, 0.08);
  color: var(--orange);
}

.site-header.is-scrolled .header-action:hover {
  background: rgba(240, 130, 0, 0.08);
}

/* keep for legacy pages — hidden on light bg fallback if used */
.nav-dropdown,
.nav-roll,
.nav-roll__track,
.nav-roll__line,
.nav-chevron,
.nav-scrim {
  display: none !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-width: 92px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: color 180ms ease;
}

.menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-toggle__menu-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.menu-toggle__vi {
  display: none;
  width: 29px;
  height: 23px;
}

/* ── Redesigned Site Footer (Matching Reference Image 1) ── */
.site-footer {
  position: relative;
  z-index: 2;
  background: #353535;
  color: #595656;
  padding: clamp(60px, 7vw, 96px) 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* 底部 footer-bg.jpeg 背景图层：靠右对齐、不拉伸、左侧渐变蒙版透明、右侧最高透明度 0.2 */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url('../imgs/footer-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 1) 100%);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 3fr);
  gap: clamp(40px, 4vw, 100px);
  align-items: start;
  padding-bottom: clamp(48px, 6vh, 72px);
}

/* 左侧品牌 + 联系列表 + 社交组 */
.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__brand {
  margin-bottom: 4px;
}

.brand__logo-svg {
  width: min(240px, 65vw);
  height: auto;
  display: block;
}

/* 联系方式列表 */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999999;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-contact-list li svg {
  color: var(--orange, #f08200);
  flex-shrink: 0;
}

/* 社交组 Follow Us */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.social-label {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a,
.social-icons button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #161819;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.social-icons a:hover,
.social-icons button:hover,
.social-icons button:focus-visible {
  transform: translateY(-2px) scale(1.08);
}

.social-icons .social-icon--wx:hover,
.social-icons .social-icon--dy:hover,
.social-icons .social-icon--wx:focus-visible,
.social-icons .social-icon--dy:focus-visible {
  background: var(--orange, #f08200);
  color: #ffffff;
}

body.social-qr-open {
  overflow: hidden;
}

.social-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.social-qr-modal[open],
.social-qr-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.social-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.social-qr-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 380px);
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  text-align: center;
  transform: scale(0.92) translateY(10px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.social-qr-modal[open] .social-qr-modal__panel,
.social-qr-modal.is-active .social-qr-modal__panel {
  transform: scale(1) translateY(0);
}

.social-qr-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f3;
  color: #666;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.social-qr-modal__close:hover {
  background: #e4e7e6;
  color: #111;
  transform: rotate(90deg);
}

.social-qr-modal__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(240, 130, 0, 0.1);
  color: var(--orange, #f08200);
  font: 700 11px/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.social-qr-modal__title {
  margin: 0 0 20px;
  color: #111415;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.social-qr-modal__qr-wrap {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #e8ece9;
  border-radius: 16px;
  background: #fafbfa;
}

.social-qr-modal__qrcode {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.social-qr-modal__hint {
  margin: 0;
  color: #111415;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 右侧导航网格 (对标图 2 的 7 大栏目) */
.site-footer__nav-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 28px clamp(24px, 2.6vw, 52px);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}

.footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links a {
  color: #999999;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav-links a:hover {
  color: var(--orange);
}

/* 底部版权与 Link 栏 */
.site-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #999999;
  font-size: 12px;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  align-items: center;
}

.footer-bottom-left {
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 64px);
  min-width: 0;
}

.footer-bottom-right {
  justify-content: flex-end;
  gap: clamp(22px, 2.4vw, 44px);
  white-space: nowrap;
}

.copyright-text {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a {
  color: #8c9391;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-bottom-links a:hover {
  color: var(--orange);
}

.footer-bottom-links .sep {
  color: #3e4442;
}

.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;

  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.back-top-btn:hover {
  background: var(--orange, #f08200);
  border-color: var(--orange, #f08200);
  color: #ffffff;
}

.cursor-orbit {
  display: none !important;
}

.cursor-orbit span {
  display: none;
}

@media (max-width: 1200px) {
  .site-footer__nav-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px clamp(24px, 4vw, 48px);
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-bottom-left {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .footer-bottom-right {
    justify-content: space-between;
    width: 100%;
  }

  .site-header {
    padding-top: max(env(safe-area-inset-top), 0px);
    top: 0;
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(17, 19, 21, 0.08);
    top: 0;
    padding-top: max(env(safe-area-inset-top), 10px);
  }

  .site-header__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 56px;
    justify-content: space-between;
  }

  .site-header.is-scrolled .site-header__inner {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .brand {
    flex: 0 0 auto;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand__logo {
    height: 32px;
  }

  .primary-nav {
    position: fixed;
    z-index: 95;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    visibility: hidden;
    padding: calc(env(safe-area-inset-top) + 90px) var(--gutter) max(22px, env(safe-area-inset-bottom));
    background: var(--orange);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .primary-nav__texture {
    position: absolute;
    display: block;
    opacity: .25;
    pointer-events: none;
    border: min(18vw, 76px) solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: min(86vw, 620px);
    height: min(86vw, 620px);
    top: -26vw;
    right: -35vw;
  }

  .primary-nav>*:not(.primary-nav__texture) {
    position: relative;
  }

  .primary-nav__eyebrow {
    display: block;
    color: #fff;
  }

  .nav-list {
    display: block;
    align-self: center;
    width: 100%;
    padding-block: 20px;
  }

  .nav-item {
    flex: 0 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
  }

  .nav-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }

  .nav-button {
    justify-content: space-between;
    min-height: clamp(48px, 7.2vh, 66px);
    height: auto;
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: 26px;
    font-weight: 400;
    text-align: left;
  }

  .nav-button:hover {
    background: transparent;
  }

  .nav-button[aria-current="page"] {
    background: transparent;
    color: #fff;
  }

  /* Compact mobile actions stay beside the menu toggle. */
  .header-actions {
    position: fixed;
    z-index: 109;
    top: calc(env(safe-area-inset-top) + 16px);
    right: calc(var(--gutter) + 54px);
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.menu-open .header-actions {
    display: none;
  }

  .header-action--login,
  .header-search {
    display: inline-grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--actions-color);
  }

  .header-login__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header-login__icon {
    display: block;
    width: 19px;
    height: 19px;
  }

  .header-search__icon {
    width: 19px;
    height: 19px;
  }

  .menu-toggle {
    position: fixed;
    z-index: 110;
    top: calc(env(safe-area-inset-top) + 12px);
    right: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: color 180ms ease;
  }

  body.menu-open .menu-toggle {
    /* justify-content: space-between; */
    width: 94px;
    min-width: 94px;
    color: #fff;
  }

  body.menu-open .menu-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  body.menu-open .menu-toggle__menu-icon {
    display: none;
  }

  body.menu-open .menu-toggle__vi {
    display: block;
  }

  .site-header.is-scrolled .menu-toggle {
    color: var(--ink);
  }

}

@media (max-width: 767px) {
  :root {
    --header-h: 56px;
    --gutter: 18px;
  }

  .menu-toggle .menu-toggle__label {
    color: #ffffff;
  }

  .site-header {
    padding-top: max(env(safe-area-inset-top), 10px);
  }

  .site-header__inner {
    height: 56px;
  }

  .site-header.is-scrolled .site-header__inner {
    height: 56px !important;
  }

  .brand {
    height: 56px;
  }

  .brand__logo {
    height: 28px;
  }

  .header-actions {
    gap: 4px;
    padding: 0;
  }

  .header-action--login,
  .header-search {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .header-login__icon,
  .header-search__icon {
    width: 20px;
    height: 20px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer__nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .site-footer__bottom {
    gap: 14px;
  }

  .footer-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (pointer: fine) and (hover: hover) {
  .cursor-orbit {
    display: grid;
  }

  body:not(.menu-open) .menu-toggle:hover {
    color: var(--orange);
  }

  .nav-button:hover,
  .nav-button[aria-current="page"],
  .nav-button.is-active {
    background: rgba(240, 130, 0, 0.15);
    color: var(--orange);
  }

  .site-footer__nav button:hover {
    color: var(--orange);
  }

  .site-footer__bottom button:hover {
    color: var(--paper);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(12, 14, 15, 0.92);
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .cursor-orbit {
    display: none !important;
  }
}


/* =========================================================
   Auth Modal — 点击弹出登录 / 注册 全局弹窗样式
   ========================================================= */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal[open],
.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 黑色半透明背景遮罩 */
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 居中弹窗主体卡片 */
.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 36px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: scale(0.92) translateY(12px);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
}

.auth-modal[open] .auth-modal__dialog,
.auth-modal.is-open .auth-modal__dialog {
  transform: scale(1) translateY(0);
}

/* 关闭按钮 ✕ */
.auth-modal__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f1;
  color: #555a58;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  z-index: 2;
}

.auth-modal__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-modal__close:hover {
  background: #e2e6e4;
  color: #111315;
  transform: scale(1.08);
}

/* 表单结构 */
.auth-account {
  min-width: 0;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
}

.auth-tab {
  appearance: none;
  position: relative;
  min-height: 42px;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #656a68;
  font: 600 17px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  transition: color 180ms ease;
}

.auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--orange, #f08200);
  transition: right 260ms cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-tab[aria-selected="true"] {
  color: var(--ink, #111315);
}

.auth-tab[aria-selected="true"]::after {
  right: 0;
}

.auth-form[hidden] {
  display: none;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #303533;
  font-size: 13px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
}

.auth-field input:not([type="checkbox"]) {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 14px;
  border: 1px solid #c2c7c4;
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: #111315;
  font: 500 14px/1 var(--font-body, system-ui, sans-serif);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-field input:not([type="checkbox"])::placeholder {
  color: #8c928f;
  opacity: 1;
}

.auth-field input:not([type="checkbox"]):focus {
  border-color: var(--orange, #f08200);
  box-shadow: 0 0 0 3px rgba(240, 130, 0, 0.12);
}

.auth-password-toggle {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #6c726f;
  font-size: 12px;
  cursor: pointer;
}

.auth-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: stretch;
}

.auth-captcha-image {
  appearance: none;
  position: relative;
  width: 140px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c2c7c4;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.auth-captcha-image canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-captcha-hint {
  margin-top: 6px;
  color: #7d8380;
  font-size: 12px;
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 16px 20px;
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #4a504d;
  line-height: 1.6;
  cursor: pointer;
}

.auth-check input {
  accent-color: var(--orange, #f08200);
  width: 15px;
  height: 15px;
}

.auth-check a {
  color: var(--orange, #f08200);
  font-weight: 600;
  text-decoration: none;
}

.auth-check a:hover {
  text-decoration: underline;
}

.auth-hint {
  color: #656a68;
  font-size: 13px;
}

.auth-link {
  color: var(--orange, #f08200);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--orange, #f08200);
  color: #ffffff;
  font: 600 16px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;

}

.auth-submit:hover {
  background: #e07900;
  box-shadow: 0 6px 18px rgba(240, 130, 0, 0.38);
}

.auth-status {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.auth-status.is-error {
  color: #d32f2f;
}

.auth-status.is-success {
  color: #007f4d;
}

@media (max-width: 480px) {
  .auth-modal__dialog {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }
}

/* =========================================================
   Site Notice — 与登录弹窗同风格的轻量提示框
   ========================================================= */
.site-notice {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-notice[open],
.site-notice.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 36px 32px 28px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-notice[open] .site-notice__dialog,
.site-notice.is-open .site-notice__dialog {
  transform: scale(1) translateY(0);
}

.site-notice__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f1;
  color: #555a58;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-notice__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-notice__close:hover {
  background: #e2e6e4;
  color: #111315;
  transform: scale(1.08);
}

.site-notice__title {
  margin: 0 0 12px;
  color: var(--ink, #111315);
  font: 600 18px/1.3 var(--font-body, system-ui, sans-serif);
}

.site-notice__text {
  margin: 0 0 24px;
  color: #4a504d;
  font: 14px/1.6 var(--font-body, system-ui, sans-serif);
}

.site-notice__action {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--orange, #f08200);
  color: #ffffff;
  font: 600 16px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-notice__action:hover {
  background: #e07900;
  box-shadow: 0 6px 18px rgba(240, 130, 0, 0.38);
}

.site-notice--success .site-notice__dialog {
  padding-top: 40px;
}

.site-notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(240, 130, 0, 0.12);
  color: var(--orange, #f08200);
}

.site-notice__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.site-notice__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--orange, #f08200);
  font: 700 11px/1 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-notice__kicker::before {
  content: "";
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 14px;
  background: url("../imgs/vi-logo.svg") no-repeat center / contain;
}

.site-notice--success .site-notice__title {
  margin-bottom: 14px;
  font: 400 clamp(28px, 6vw, 36px)/1.05 var(--font-display, "Smiley Sans", sans-serif);
}

.site-notice--success .site-notice__text {
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: 28px;
  color: #5f6663;
  line-height: 1.75;
}

.site-notice--success .site-notice__action {
  height: 52px;
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .site-notice__dialog {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }
}

/* =========================================================
   Legal Modal — 隐私政策 / 服务条款
   ========================================================= */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal::backdrop {
  background: transparent;
}

.legal-modal[open],
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-height: min(88vh, 840px);
  padding: 36px 32px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: scale(0.96) translateY(16px);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal[open] .legal-modal__dialog,
.legal-modal.is-open .legal-modal__dialog {
  transform: scale(1) translateY(0);
}

.legal-modal__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f1;
  color: #555a58;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.legal-modal__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.legal-modal__close:hover {
  background: #e2e6e4;
  color: #111315;
  transform: scale(1.08);
}

.legal-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--orange, #f08200);
  font: 600 12px/1.4 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-modal__title {
  margin: 0 28px 8px 0;
  color: var(--ink, #111315);
  font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--font-display, var(--font-body, system-ui, sans-serif));
}

.legal-modal__updated {
  margin: 0 0 16px;
  color: #8c9391;
  font: 12px/1.4 var(--font-body, system-ui, sans-serif);
}

.legal-modal__body {
  min-height: 120px;
  margin: 0 -8px 20px;
  padding: 4px 8px 8px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #4a504d;
  font: 15px/1.8 var(--font-body, system-ui, sans-serif);
}

.legal-modal__body > :first-child {
  margin-top: 0;
}

.legal-modal__body > :last-child {
  margin-bottom: 0;
}

.legal-modal__body p {
  margin: 0 0 14px;
}

.legal-modal__body h2 {
  margin: 22px 0 10px;
  color: var(--ink, #111315);
  font: 600 16px/1.4 var(--font-body, system-ui, sans-serif);
}

.legal-modal__body h3 {
  margin: 18px 0 8px;
  color: var(--ink, #111315);
  font: 600 15px/1.4 var(--font-body, system-ui, sans-serif);
}

.legal-modal__body ul,
.legal-modal__body ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.legal-modal__body li {
  margin: 0 0 6px;
}

.legal-modal__body a {
  color: var(--orange, #f08200);
}

.legal-modal__body img {
  max-width: 100%;
  height: auto;
}

.legal-modal__action {
  appearance: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--orange, #f08200);
  color: #ffffff;
  font: 600 16px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.legal-modal__action:hover {
  background: #e07900;
  box-shadow: 0 6px 18px rgba(240, 130, 0, 0.38);
}

@media (max-width: 480px) {
  .legal-modal {
    padding: 12px;
  }
  .legal-modal__dialog {
    padding: 28px 18px 18px;
    border-radius: 12px;
    max-height: 92vh;
  }
}