/* ===== 1. RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #0B1B3F;
  --c-green: #00E88F;
  --c-orange: #FF6B35;
  --c-gray: #1A2333;
  --c-light: #E5E7EB;
  --c-white: #FFFFFF;
  --c-blue: #4D7CFE;
  --c-violet: #9B5CF5;
  --c-border: #2D3748;
  --c-overlay: rgba(255, 255, 255, 0.1);

  --brand-accent: var(--c-green);

  --font-head: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --w-rail: 280px;
  --w-container: 1200px;
  --d-full: 2px solid var(--c-border);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-mid: 0.35s var(--ease);

  --shadow-lg: 12px 12px 0 0 rgba(0, 0, 0, 0.35);
  --shadow-sm: 4px 4px 0 0 rgba(0, 0, 0, 0.35);

  --z-skip: 10000;
  --z-scroll: 9999;
  --z-nav-toggle: 1200;
  --z-version: 1100;
  --z-header: 1000;
  --z-top: 900;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--c-light);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(77, 124, 254, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(155, 92, 245, 0.13), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-attachment: fixed, fixed, fixed, fixed;
  min-height: 100vh;
  padding-left: var(--w-rail);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-orange); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--c-white); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

.page-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--c-white);
  transform: skewX(-5deg);
  transform-origin: left bottom;
  padding-right: 0.2em;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--c-white);
  transform: skewX(-5deg);
  transform-origin: left bottom;
  padding-right: 0.15em;
}

::selection { background: var(--c-green); color: var(--c-bg); }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; z-index: 5; }

/* ===== 2. ACCESSIBILITY UTILITIES ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--c-white);
  transition: top var(--t-fast);
}
.skip-link:focus-visible { top: 16px; color: var(--c-white); }

/* ===== 3. SCROLL PROGRESS & BACK TO TOP ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  box-shadow: 0 0 8px rgba(0, 232, 143, 0.6);
  z-index: var(--z-scroll);
  pointer-events: none;
  transition: width 0.1s linear;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-top);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gray);
  border: var(--d-full);
  color: var(--c-light);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--t-mid), transform var(--t-mid), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-white); }
.back-to-top:focus-visible { outline: 3px solid var(--c-white); outline-offset: 2px; }

/* ===== 4. SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-header);
  width: var(--w-rail);
  background-color: var(--c-bg);
  border-right: var(--d-full);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.site-header__rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 20px 22px;
  border-bottom: var(--d-full);
}
.brand-mark__symbol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-mark__symbol > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--c-gray);
  border: 1px solid var(--c-border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-accent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.brand-mark:hover .brand-mark__symbol > span {
  border-color: var(--brand-accent);
  box-shadow: 0 0 14px rgba(0, 232, 143, 0.25);
}
.brand-mark__copy { display: flex; flex-direction: column; }
.brand-mark__cn { font-size: 18px; font-weight: 800; color: var(--c-white); letter-spacing: 2px; }
.brand-mark__en {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-light);
  opacity: 0.55;
  transform: skewX(-5deg);
}

/* Navigation */
.site-nav { flex: 1; padding: 20px 0 24px; }
.site-nav__list { display: flex; flex-direction: column; gap: 2px; }
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-left: 3px solid transparent;
  color: var(--c-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  position: relative;
}
.site-nav__link:hover {
  background: var(--c-overlay);
  border-left-color: var(--c-orange);
  color: var(--c-white);
}
.site-nav__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.16), transparent);
  border-left-color: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
}
.site-nav__index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-border);
  font-variant-numeric: tabular-nums;
  width: 20px;
  flex-shrink: 0;
}
.site-nav__link:hover .site-nav__index,
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--c-orange); }
.site-nav__label { flex: 1; }
.site-nav__status {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.site-nav__link:hover .site-nav__status { background: var(--c-orange); }
.site-nav__link[aria-current="page"] .site-nav__status {
  background: var(--brand-accent);
  box-shadow: 0 0 10px var(--brand-accent);
}

/* Header slogan */
.site-header__slogan {
  padding: 18px 20px;
  border-top: 1px solid var(--c-border);
}
.site-header__slogan-en {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1.8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-light);
  opacity: 0.5;
}
.site-header__slogan-cn {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--brand-accent);
  transform: skewX(-5deg);
}

/* Rail status */
.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: var(--d-full);
  background: rgba(255, 255, 255, 0.02);
}
.rail-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 8px var(--brand-accent);
  animation: rail-pulse 2.2s ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.rail-status__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-accent);
}
.rail-status__icp {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--c-border);
  white-space: nowrap;
}

/* Version switch */
.site-version {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: var(--z-version);
  display: flex;
  align-items: stretch;
  border: var(--d-full);
  background: var(--c-gray);
  box-shadow: var(--shadow-sm);
}
.site-version__tag {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c-violet);
  border-right: 1px solid var(--c-border);
}
.site-version__btn {
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--c-light);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-version__btn + .site-version__btn { border-left: 1px solid var(--c-border); }
.site-version__btn:hover { background: var(--c-overlay); color: var(--c-white); }
.site-version__btn[aria-pressed="true"] {
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
}
.site-version__btn[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--c-orange);
}
.site-version__btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: -2px;
  z-index: 2;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.nav-toggle__icon {
  width: 26px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--t-fast);
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-mid);
}
.nav-toggle__icon::before { top: -9px; }
.nav-toggle__icon::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-9px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--c-white); outline-offset: 2px; }

/* ===== 5. SITE MAIN ===== */
.site-main {
  min-height: 80vh;
  position: relative;
}

.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

#main-content:focus { outline: none; }

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* ===== 6. SITE FOOTER ===== */
.site-footer {
  position: relative;
  background: var(--c-gray);
  border-top: var(--d-full);
  overflow: hidden;
}
.site-footer__skew {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange) 25%, var(--c-green) 25%, var(--c-green) 50%, var(--c-blue) 50%, var(--c-blue) 75%, var(--c-violet) 75%);
  transform: skewX(-45deg);
  transform-origin: left top;
}
.site-footer__inner {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer__brand .footer-brand { display: inline-flex; }
.footer-brand__symbol { display: flex; gap: 2px; }
.footer-brand__symbol span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-accent);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.footer-brand:hover .footer-brand__symbol span {
  border-color: var(--brand-accent);
}
.site-footer__slogan {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-white);
  transform: skewX(-5deg);
  letter-spacing: 0.08em;
}
.site-footer__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-light);
  opacity: 0.6;
}
.site-footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a {
  color: var(--c-light);
  font-size: 14px;
  opacity: 0.78;
  transition: color var(--t-fast), opacity var(--t-fast), padding-left var(--t-fast);
}
.site-footer__links a:hover {
  color: var(--c-orange);
  opacity: 1;
  padding-left: 6px;
}
.site-footer__links--plain li {
  color: var(--c-light);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.78;
}
.site-footer__time {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--c-green);
  letter-spacing: 0.5px;
}
.site-footer__trust {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-light);
  opacity: 0.55;
}
.site-footer__bottom {
  border-top: var(--d-full);
  margin-top: 8px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--c-light);
  opacity: 0.75;
}
.site-footer__legal { display: flex; align-items: center; gap: 10px; }
.site-footer__legal a { color: var(--c-light); opacity: 0.85; font-size: 13px; }
.site-footer__legal a:hover { color: var(--c-orange); opacity: 1; }
.site-footer__icp { white-space: nowrap; }
.site-footer__note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-border);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--c-light);
  opacity: 0.5;
}

/* ===== 7. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--c-white);
  background: var(--c-gray);
  border: 2px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm), 6px 6px 0 rgba(0, 0, 0, 0.2); }
.btn--primary { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-white); }
.btn--primary:hover { background: transparent; color: var(--c-orange); }
.btn--outline { background: transparent; border-color: var(--c-green); color: var(--c-green); }
.btn--outline:hover { background: var(--c-green); color: var(--c-bg); }

/* ===== 8. LABELS & TAGS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-violet);
  padding: 5px 14px;
  border: 1px solid var(--c-violet);
  background: rgba(155, 92, 245, 0.08);
  transform: skewX(-10deg);
}
.section-label > * { transform: skewX(10deg); }
.section-label--green { color: var(--c-green); border-color: var(--c-green); background: rgba(0, 232, 143, 0.08); }
.section-label--orange { color: var(--c-orange); border-color: var(--c-orange); background: rgba(255, 107, 53, 0.08); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--c-light);
  background: var(--c-gray);
  border: 1px solid var(--c-border);
  border-radius: 2px;
}
.tag--green { color: var(--c-green); border-color: rgba(0, 232, 143, 0.5); }
.tag--orange { color: var(--c-orange); border-color: rgba(255, 107, 53, 0.5); }
.tag--violet { color: var(--c-violet); border-color: rgba(155, 92, 245, 0.5); }

/* ===== 9. CARDS ===== */
.card {
  background: var(--c-gray);
  border: var(--d-full);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.card--highlight {
  border-color: var(--c-green);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(0, 232, 143, 0.12);
}

/* ===== 10. BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--c-light);
  opacity: 0.65;
  margin-bottom: 28px;
  padding-top: 8px;
}
.breadcrumbs a { color: var(--c-blue); }
.breadcrumbs a:hover { color: var(--c-orange); }
.breadcrumbs__sep { color: var(--c-border); }

/* ===== 11. GRIDS ===== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== 12. IMAGE FRAME ===== */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--c-gray);
  border: var(--d-full);
  overflow: hidden;
}
.img-frame__ratio { display: block; width: 100%; padding-bottom: 62.5%; }
.img-frame--portrait .img-frame__ratio { padding-bottom: 125%; }
.img-frame--square .img-frame__ratio { padding-bottom: 100%; }
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--c-overlay) 12px 24px);
  color: var(--c-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.7;
}
.img-placeholder::before {
  content: 'PHOTO';
  font-size: 11px;
  letter-spacing: 4px;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-light);
}

/* ===== 13. STAT, VERTICAL TEXT, DIVIDER ===== */
.stat {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat--green { color: var(--c-green); }
.stat--orange { color: var(--c-orange); }

.text-vertical {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-light);
  opacity: 0.45;
}

.divider-skew {
  display: block;
  width: 140px;
  height: 5px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--c-orange), var(--c-green) 60%, var(--c-blue));
  transform: skewX(-30deg);
  border: none;
}

/* ===== 14. ACCORDION ===== */
.accordion {
  background: var(--c-gray);
  border: var(--d-full);
  box-shadow: var(--shadow-sm);
}
.accordion + .accordion { border-top: none; }
.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.accordion__header:hover { background: var(--c-overlay); }
.accordion__title { flex: 1; }
.accordion__indicator {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-green);
  border: 1px solid var(--c-border);
  transition: transform var(--t-mid), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.accordion__header:hover .accordion__indicator { border-color: var(--c-green); }
.accordion__header[aria-expanded="true"] .accordion__indicator {
  background: var(--c-green);
  color: var(--c-bg);
  border-color: var(--c-green);
  transform: rotate(45deg);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion__inner {
  padding: 16px 20px 20px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-light);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== 15. VERSION THEME ===== */
html[data-version="iphone"] { --brand-accent: var(--c-blue); }
html[data-version="iphone"] .brand-mark__symbol > span {
  background: rgba(77, 124, 254, 0.08);
  border-color: rgba(77, 124, 254, 0.45);
}
html[data-version="iphone"] .brand-mark:hover .brand-mark__symbol > span {
  box-shadow: 0 0 14px rgba(77, 124, 254, 0.35);
}
html[data-version="iphone"] .site-version {
  border-color: rgba(77, 124, 254, 0.45);
}
html[data-version="iphone"] .rail-status__dot {
  animation-duration: 1.4s;
}

/* ===== 16. REVEAL ===== */
html.js [data-reveal] {
  animation: reveal-up 0.75s var(--ease) both;
  animation-play-state: paused;
}
html.js [data-reveal][data-revealed] {
  animation-play-state: running;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 17. RESPONSIVE ===== */
@media (max-width: 1240px) {
  .site-version { top: 14px; right: 16px; }
  .site-version__tag { display: none; }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: 64px;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
    border-right: none;
    border-bottom: var(--d-full);
    flex-direction: row;
    align-items: center;
    padding: 0 12px;
    overflow: visible;
  }

  .site-header__rail {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 0;
  }

  .brand-mark {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-bottom: none;
  }
  .brand-mark__symbol { flex-direction: row; gap: 2px; }
  .brand-mark__symbol > span {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .brand-mark__copy { margin-left: 10px; }
  .brand-mark__en { font-size: 9px; letter-spacing: 1.5px; margin-top: 2px; }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--c-bg);
    border-bottom: var(--d-full);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
    display: none;
    padding: 10px 0 18px;
  }
  .site-nav[data-open] { display: block; }
  .site-nav__link { padding: 15px 24px; font-size: 16px; }

  .site-header__slogan,
  .rail-status { display: none; }

  .site-version {
    top: 12px;
    right: 118px;
    box-shadow: var(--shadow-sm);
  }
  .site-version__btn { padding: 6px 12px; font-size: 12px; }

  .nav-toggle {
    display: flex;
    margin-left: 12px;
    flex-shrink: 0;
  }

  .content-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__bottom { justify-content: flex-start; }
  .site-footer__legal { order: 3; }
  .site-footer__icp { margin-left: auto; }
}

@media (max-width: 767px) {
  .brand-mark__copy { display: none; }
  .site-version { top: 12px; right: 62px; }
  .site-version__btn { padding: 6px 10px; font-size: 12px; }
  .nav-toggle { padding: 10px; }
  .nav-toggle__text { display: none; }

  .site-nav__link { padding: 14px 20px; }
  .site-nav__index { width: 18px; }
}

@media (max-width: 640px) {
  .container { padding: 32px 16px 48px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__icp { margin-left: 0; }
  .site-footer__legal { flex-wrap: wrap; justify-content: center; }
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}

/* ===== 18. REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rail-status__dot { animation: none; }
  html.js [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .accordion__body { transition: none; }
  .scroll-progress { transition: none; }
}
