/* ============================================================
   杏运平台 /assets/site.css
   共享样式：Reset、变量、头部、页脚、按钮、面包屑、网格、基础组件
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #2D2A26;
  background-color: #F7F2EB;
  background-image: radial-gradient(rgba(45, 42, 38, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #1B8A9A;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: #0F5C66; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #2D2A26;
}

ul, ol {
  list-style: none;
}

p { margin-bottom: 1rem; }

/* ---------- CSS Variables ---------- */
:root {
  --apricot: #E86A33;
  --apricot-dark: #C94A1F;
  --apricot-light: #FCE3D4;
  --teal: #1B8A9A;
  --teal-dark: #0F5C66;
  --warm-bg: #F7F2EB;
  --cream: #FFFDF8;
  --ink: #2D2A26;
  --gray: #6B6560;
  --line: rgba(45, 42, 38, 0.14);
  --line-light: rgba(45, 42, 38, 0.08);
  --font-head: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  --container-w: 1280px;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 42, 38, 0.12);
}

/* ---------- Focus & Accessibility ---------- */
:focus-visible {
  outline: 2px solid #1B8A9A;
  outline-offset: 2px;
}

.backdrop:focus,
.dropdown:focus,
.modelbox:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 0;
  z-index: 2000;
  background: #2D2A26;
  color: #FFFDF8;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  color: #FFFDF8;
  background: #2D2A26;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Layout Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  min-height: 60vh;
}

.content-area {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.content-area p { margin-bottom: 1.2rem; }

.content-area h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.content-area h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.content-area ul,
.content-area ol {
  margin: 0 0 1.2rem 1.5rem;
}

.content-area ul { list-style: square; }
.content-area li { margin-bottom: 0.4rem; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--apricot);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 1500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.55rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--apricot);
  color: #FFFDF8;
}

.btn--primary:hover {
  background: var(--apricot-dark);
  color: #FFFDF8;
}

.btn--ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn--ghost:hover {
  background: var(--teal);
  color: #FFFDF8;
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  background: var(--apricot-light);
  color: var(--apricot-dark);
  border: 1px solid var(--apricot);
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Vertical Label ---------- */
.vert-label {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gray);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.06);
}

.header-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.32rem 1.5rem;
  background: var(--ink);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 253, 248, 0.75);
}

.header-topline__icp {
  color: var(--apricot);
  font-weight: 600;
}

.header-topline__trust {
  color: rgba(255, 253, 248, 0.65);
}

.header-topline__version {
  color: var(--apricot);
  font-weight: 700;
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}

.header-main::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--apricot) 0, var(--apricot) 120px, var(--teal) 120px, var(--teal) 142px, var(--ink) 142px, var(--ink) 162px, transparent 162px);
  opacity: 0.85;
}

/* Brand */
.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--apricot);
  color: #FFFDF8;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: 50% 50% 16px 50%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand__tag {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.55rem 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--warm-bg);
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: var(--apricot-light);
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 20px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item { list-style: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-bottom: 3px solid transparent;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  background: var(--apricot-light);
  color: var(--apricot-dark);
}

.nav-link[aria-current="page"] {
  background: var(--apricot-light);
  color: var(--apricot-dark);
  border-bottom-color: var(--apricot);
  font-weight: 700;
}

.nav-legacy {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  padding: 0.32rem 0.7rem;
  margin-left: 0.4rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-legacy:hover {
  background: var(--teal);
  color: #FFFDF8;
}

/* Mobile Nav */
@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-bottom: 1rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--line-light);
    padding: 0.55rem 0.5rem;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--apricot);
    background: var(--apricot-light);
  }

  .nav-legacy {
    display: inline-block;
    margin-left: 0;
  }

  .header-topline__trust {
    display: none;
  }
}

/* Desktop Nav */
@media (min-width: 961px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
  }

  .nav-list {
    margin-left: auto;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 4rem;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 5px solid var(--apricot);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.footer-col { min-width: 0; }

.brand--footer {
  margin-bottom: 1rem;
}

.brand--footer .brand__glyph {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.brand--footer .brand__name {
  color: var(--cream);
}

.brand--footer .brand__tag {
  color: rgba(255, 253, 248, 0.5);
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 253, 248, 0.82);
  line-height: 1.8;
  max-width: 34ch;
  margin-bottom: 1rem;
}

.footer-addr {
  font-size: 0.8rem;
  color: rgba(255, 253, 248, 0.55);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apricot);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  padding-bottom: 0.55rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.875rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--apricot);
  padding-left: 0.2rem;
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 253, 248, 0.8);
  margin-bottom: 1rem;
}

.footer-contact li {
  padding-left: 0.65rem;
  border-left: 2px solid var(--apricot);
  margin-bottom: 0.25rem;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255, 253, 248, 0.6);
  line-height: 1.7;
  max-width: 30ch;
}

.footer-bottom {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__copy {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 248, 0.55);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-bottom__links a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: rgba(255, 253, 248, 0.6);
  transition: color 0.15s ease;
}

.footer-bottom__links a:hover {
  color: var(--apricot);
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2,
.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* ---------- Card ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--apricot);
  border-radius: 2px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* ---------- Media Frame ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--apricot-light) 0%, var(--warm-bg) 100%);
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(232, 106, 51, 0.4);
  pointer-events: none;
}

.media-frame::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50% 50% 18px 50%;
  background: var(--apricot);
  opacity: 0.12;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(15deg);
  pointer-events: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--teal);
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
}

.breadcrumbs__sep {
  color: var(--line);
  padding: 0 0.2rem;
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 1.5rem;
  margin-bottom: 3rem;
}

.page-hero__inner {
  max-width: var(--container-w);
  margin: 0 auto;
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.page-hero__lead {
  max-width: 42ch;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.page-hero__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
