/* ==========================================================================
   众赢安卓版 · 共享样式表  /assets/site.css
   设计基因：堆叠画板 / 左右分置 / 暖纸深墨 / 展览标签 / 前强后稳
   ========================================================================== */

/* ------------------------------------------------------------ 1. Reset --- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dd, figure, blockquote {
  margin: 0;
}

ul[class],
ol[class] { list-style: none; padding: 0; }

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

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

button { background: none; border: 0; }

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

table { border-collapse: collapse; width: 100%; }

/* --------------------------------------------------------- 2. 变量 ------- */
:root {
  /* 品牌色 */
  --zy-blue: #0A4C8C;
  --zy-ink: #062F57;
  --zy-orange: #FF7A00;
  --zy-teal: #00B4A0;
  --zy-paper: #F7F4EE;
  --zy-glass: #E6EAF0;
  --zy-graphite: #1C2430;
  --zy-signal: #F5C542;
  --zy-line: #BFE7E2;

  /* 派生色 */
  --zy-white: #FFFFFF;
  --zy-blue-08: rgba(10, 76, 140, 0.08);
  --zy-blue-16: rgba(10, 76, 140, 0.16);
  --zy-blue-32: rgba(10, 76, 140, 0.32);
  --zy-text-soft: #4D5A68;
  --zy-text-body: #26313F;

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
                Menlo, Consolas, "Courier New", monospace;

  /* 节奏与形状 */
  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --panel-radius: 4px;
  --shadow-panel: 0 26px 60px -46px rgba(6, 47, 87, 0.85);
  --shadow-header: 0 16px 34px -26px rgba(6, 47, 87, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------- 3. 基础与排版 ------- */
body {
  min-height: 100vh;
  background-color: var(--zy-paper);
  background-image:
    radial-gradient(1200px 620px at 6% -8%, rgba(0, 180, 160, 0.10), transparent 62%),
    radial-gradient(1020px 540px at 98% 2%, rgba(255, 122, 0, 0.09), transparent 58%);
  background-repeat: no-repeat;
  color: var(--zy-graphite);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5 {
  color: var(--zy-ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; font-weight: 700; }

p { text-wrap: pretty; }

::selection {
  background: var(--zy-signal);
  color: var(--zy-ink);
}

:focus-visible {
  outline: 3px solid var(--zy-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.mono { font-family: var(--font-mono); }

/* ----------------------------------------------------- 4. 容器与布局 ----- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section { padding-block: clamp(40px, 7vw, 88px); }

.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }

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

.grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

.stack { display: grid; gap: clamp(18px, 2.6vw, 34px); }

@media (min-width: 961px) {
  .stack--overlap { gap: clamp(20px, 2.4vw, 30px); }
  .stack--overlap > *:nth-child(even) { margin-inline-start: clamp(16px, 4vw, 64px); }
}

/* --------------------------------------------------------- 5. 页头 ------- */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--zy-signal);
  color: var(--zy-ink);
  font-size: 15px;
  font-weight: 700;
  border-radius: 0 0 var(--panel-radius) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--zy-blue);
  color: #FFFFFF;
  border-bottom: 2px solid var(--zy-ink);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px var(--gutter);
  min-height: 76px;
}

/* 品牌署名 */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #FFFFFF;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--zy-orange);
  color: #22160A;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--zy-teal);
  border-bottom: 2px solid var(--zy-teal);
}

.brand:hover .brand__mark { transform: translateY(-2px); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.brand__tagline {
  color: rgba(219, 231, 243, 0.74);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 231, 226, 0.42);
  border-radius: 3px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--zy-orange);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--zy-orange);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 桌面导航：横向栏目索引 */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 20px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 6px;
  color: rgba(233, 242, 250, 0.82);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  background: var(--zy-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: #FFFFFF; }

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--zy-signal);
}

.site-nav__label { display: inline-block; }

.site-nav__link[aria-current="page"] { color: #FFFFFF; }

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--zy-signal);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--zy-orange); }

/* 滚动进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--zy-orange), var(--zy-signal));
  pointer-events: none;
  transition: width 0.12s linear;
}

/* --------------------------------------------------------- 6. 页脚 ------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 34px);
  background: var(--zy-ink);
  background-image: linear-gradient(180deg, rgba(10, 76, 140, 0.55) 0%, rgba(6, 47, 87, 0) 42%);
  color: #C9DCEE;
  border-top: 3px solid var(--zy-orange);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  background: var(--zy-teal);
  color: #04262B;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
}

.footer-brand__name {
  margin-bottom: 6px;
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand__tag {
  margin-bottom: 20px;
  color: #8FB6D8;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.footer-contact {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(191, 231, 226, 0.2);
  font-size: 14px;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  line-height: 1.6;
}

.footer-contact__key {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #6FD8CB;
}

.footer-contact__val {
  color: #C9DCEE;
  word-break: break-word;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.footer-col__title {
  margin-bottom: 14px;
  color: #7FA9CD;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  color: #DBE7F3;
  font-size: 15px;
  transition: color 0.22s ease, padding-left 0.22s var(--ease);
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--zy-orange);
  transform: translateY(-50%);
  transition: width 0.22s var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  padding-left: 16px;
  color: var(--zy-orange);
}

.footer-col__link:hover::before,
.footer-col__link:focus-visible::before { width: 10px; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(191, 231, 226, 0.18);
}

.footer-legal__copy {
  color: #A8C0D6;
  font-size: 13px;
}

.footer-legal__note {
  max-width: 68ch;
  color: #8AA6BF;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ----------------------------------------------------- 7. 通用组件 ------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(230, 234, 240, 0.72);
  border: 1px solid var(--zy-line);
  border-radius: 2px;
  color: var(--zy-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zy-orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--zy-blue-32);
  border-radius: 2px;
  color: var(--zy-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tag--orange {
  background: rgba(255, 122, 0, 0.1);
  border-color: rgba(255, 122, 0, 0.45);
  color: #B85600;
}

.tag--teal {
  background: rgba(0, 180, 160, 0.1);
  border-color: rgba(0, 180, 160, 0.45);
  color: #007A6D;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.section-head__title { margin: 0; }

.section-head__lead {
  max-width: 62ch;
  color: var(--zy-text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.lead {
  max-width: 62ch;
  color: var(--zy-text-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
}

.rule {
  height: 1px;
  margin: clamp(20px, 3vw, 36px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--zy-blue-32), rgba(10, 76, 140, 0));
}

.prose {
  max-width: 68ch;
  color: var(--zy-text-body);
  font-size: 17px;
  line-height: 1.78;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 {
  margin-top: 1.4em;
  font-size: clamp(19px, 2vw, 23px);
}

.prose ul,
.prose ol { padding-left: 1.35em; }

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--zy-ink); font-weight: 700; }

.prose a,
.link-underline {
  color: var(--zy-blue);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.28s var(--ease), color 0.2s ease;
}

.prose a:hover,
.link-underline:hover {
  color: var(--zy-orange);
  background-size: 100% 1px;
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: #FFFFFF;
  border: 1px solid var(--zy-blue-16);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: var(--zy-line);
  box-shadow: 0 30px 64px -44px rgba(6, 47, 87, 0.9);
}

.panel--glass {
  background: rgba(230, 234, 240, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(191, 231, 226, 0.95);
  box-shadow: none;
}

.panel--ink {
  background: var(--zy-ink);
  border-color: rgba(191, 231, 226, 0.2);
  color: #D9E7F4;
}

.panel--ink h2,
.panel--ink h3,
.panel--ink h4 { color: #FFFFFF; }

.panel--blue {
  background: var(--zy-blue);
  border-color: rgba(255, 255, 255, 0.16);
  color: #E3EEFB;
}

.panel--blue h2,
.panel--blue h3,
.panel--blue h4 { color: #FFFFFF; }

.panel--accent { border-left: 4px solid var(--zy-orange); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--zy-orange);
  color: #22160A;
}

.btn--primary:hover { background: #FF8F26; }

.btn--blue {
  background: var(--zy-blue);
  color: #FFFFFF;
}

.btn--blue:hover { background: #0C5CA8; }

.btn--ink {
  background: var(--zy-ink);
  color: #FFFFFF;
}

.btn--ink:hover { background: #0A4176; }

.btn--ghost {
  background: transparent;
  border-color: var(--zy-blue-32);
  color: var(--zy-blue);
}

.btn--ghost:hover {
  border-color: var(--zy-orange);
  color: var(--zy-orange);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
  color: #5A6572;
  font-size: 13.5px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--zy-blue-32);
}

.breadcrumb a {
  color: var(--zy-blue);
  border-bottom: 1px solid var(--zy-blue-32);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--zy-orange);
  border-color: var(--zy-orange);
}

/* 图片容器基础规则（页面阶段放置图片或占位块） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(10, 76, 140, 0.12), rgba(0, 180, 160, 0.12));
  border: 1px solid var(--zy-blue-16);
  border-radius: 3px;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame img,
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(6, 47, 87, 0.84);
  color: #E9F2FA;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------- 8. 显现与状态 ----- */
[data-reveal] { opacity: 1; transform: none; }

html.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

html.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------- 9. 响应式 --------- */
@media (max-width: 1000px) {
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .grid--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(84vw, 340px);
    padding: 100px 24px 40px;
    background: var(--zy-ink);
    background-image: linear-gradient(168deg, rgba(10, 76, 140, 0.96) 0%, rgba(6, 47, 87, 0.99) 62%);
    border-left: 1px solid rgba(191, 231, 226, 0.22);
    box-shadow: -28px 0 70px -34px rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    transform: translateX(103%);
    transition: transform 0.36s var(--ease);
  }

  .site-nav[data-open] { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item { border-bottom: 1px solid rgba(191, 231, 226, 0.16); }
  .site-nav__item:first-child { border-top: 1px solid rgba(191, 231, 226, 0.16); }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    padding: 16px 4px;
    font-size: 17px;
  }

  .site-nav__link::after { display: none; }
  .site-nav__index { font-size: 12px; }

  body[data-nav-open]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(6, 47, 87, 0.5);
  }
}

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--trio { grid-template-columns: minmax(0, 1fr); }
  .brand__tagline { display: none; }
  .brand__mark { width: 38px; height: 38px; font-size: 17px; }
  .brand__name { font-size: 17px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------- 10. 动效可访问性 ------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .panel:hover { transform: none; }
  .btn:hover { transform: none; }
}
