/* 杏运娱乐 Site Kit — 全站共享样式 /assets/site.css */
/* ============ Design Tokens ============ */
:root {
  --navy: #0B1B3A;
  --violet: #7B2FBE;
  --orange: #FF6B35;
  --wine: #A52A2A;
  --indigo: #4B0082;
  --bg-light: #F5F7FA;
  --text: #2D3436;
  --border: #E0E0E0;
  --glass: rgba(255,255,255,0.08);
  --font-head: 'PingFang SC','Microsoft YaHei',sans-serif;
  --font-body: 'Noto Sans SC','Helvetica Neue',Arial,sans-serif;
  --rail-w: 288px;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.4rem;
  --shadow-1: 0 6px 24px rgba(11,27,58,0.08);
  --shadow-2: 0 16px 40px rgba(11,27,58,0.18);
  --grad-rail: linear-gradient(160deg,#0B1B3A 0%,#16264d 55%,#4B0082 130%);
  --grad-accent: linear-gradient(135deg,#7B2FBE 0%,#FF6B35 120%);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============ Reset ============ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  min-height: 100vh;
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ============ Typography ============ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem,5vw,3.375rem); }
h2 { font-size: clamp(1.5rem,3vw,2.5rem); }
h3 { font-size: clamp(1.25rem,2vw,1.75rem); }
p { margin-bottom: 1rem; }

/* ============ Layout ============ */
#main-content {
  margin-left: var(--rail-w);
  min-height: calc(100vh - 5rem);
  position: relative;
}
.page-shell {
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(1.5rem,4vw,3rem);
}
.container {
  width: min(100% - clamp(1.25rem,4vw,3rem),84rem);
  margin-inline: auto;
}

/* ============ Skip Link ============ */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  padding: 0.75rem 1.25rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============ Site Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--grad-rail);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.4rem 1.4rem;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 10px 0 36px rgba(11,27,58,0.22);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(123,47,190,0.4), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(255,107,53,0.14), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.brand-zone, .nav-zone, .rail-status { position: relative; z-index: 1; }

.brand-zone {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-glyph {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  border-radius: 0.6rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 10px 24px rgba(255,107,53,0.28);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
}
.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
}
.brand-roll {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--orange);
  border: 1px solid rgba(255,107,53,0.45);
  border-radius: 0.25rem;
  padding: 0.35rem 0.2rem;
  margin-left: 0.2rem;
}
.brand-slogan {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  background: var(--glass);
  border-left: 3px solid var(--orange);
  padding: 0.45rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.brand-slogan-flag {
  color: var(--orange);
  font-weight: 800;
}

/* ============ Main Nav ============ */
.nav-zone { margin-top: 1.8rem; flex: 1; }
.nav-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.8rem;
}
.nav-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.12);
}
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.primary-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.5rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.primary-nav-link::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--orange);
  opacity: 0;
  transition: opacity 0.25s;
}
.primary-nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  transform: translateX(4px);
}
.primary-nav-link:hover::before { opacity: 1; }
.primary-nav-link[aria-current="page"] {
  background: linear-gradient(90deg,rgba(123,47,190,0.55),rgba(123,47,190,0.12));
  color: #fff;
  border-left: 3px solid var(--orange);
  font-weight: 700;
}

/* ============ Rail Status ============ */
.rail-status {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rail-progress {
  height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.rail-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,var(--orange),var(--violet));
  border-radius: 99px;
  clip-path: polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%);
  transition: width 0.12s linear;
}
.rail-status-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.22);
}

/* ============ Menu Button ============ */
.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--grad-accent);
  border-radius: 0.7rem;
  box-shadow: 0 6px 16px rgba(255,107,53,0.3);
  z-index: 21;
}
.menu-button-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ Site Footer ============ */
.site-footer {
  margin-left: var(--rail-w);
  background: linear-gradient(165deg,#081126 0%,#0B1B3A 55%,#1a0b2e 120%);
  color: rgba(255,255,255,0.82);
  border-top: 1px solid rgba(123,47,190,0.35);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(123,47,190,0.2), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(255,107,53,0.08), transparent 40%);
  pointer-events: none;
}
.footer-inner {
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(2rem,5vw,4rem) clamp(1.5rem,4vw,3rem) 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.9fr;
  gap: 2.5rem;
}
.footer-brandname {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.footer-trust {
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
}
.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
}
.footer-heading::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: rgba(255,255,255,0.18);
}
.footer-contact, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact li, .footer-links li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
}
.footer-contact-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.18rem;
}
.footer-note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin: 1rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255,107,53,0.5);
}
.footer-links a {
  position: relative;
  padding-left: 1.1rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 1.4rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal p { margin: 0; }

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 0.875rem;
  padding: 0 0 1.75rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #6c757d;
}
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.45rem;
  color: #a6aab0;
}
.breadcrumb-item a:hover { color: var(--violet); }
.breadcrumb-item[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123,47,190,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,107,53,0.3);
}
.btn-ghost {
  background: rgba(123,47,190,0.08);
  color: var(--navy);
  border: 1px solid rgba(123,47,190,0.25);
}
.btn-ghost:hover {
  background: rgba(123,47,190,0.14);
  border-color: rgba(123,47,190,0.45);
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 1.25rem;
}
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 1.25rem 0.4rem 1.25rem 0.4rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.glass-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.glass-card-text {
  font-size: 0.875rem;
  color: #54636f;
}

/* ============ Research Board ============ */
.research-board {
  background: linear-gradient(135deg,var(--navy) 0%,var(--indigo) 70%,var(--violet) 130%);
  color: rgba(255,255,255,0.85);
  border-radius: 1.5rem 0.4rem 1.5rem 0.4rem;
  padding: clamp(1.25rem,3vw,2rem);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.research-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255,107,53,0.2), transparent 50%);
  pointer-events: none;
}
.research-board-header {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.research-board-label {
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--orange);
  background: rgba(255,255,255,0.07);
  padding: 0.5rem 0.3rem;
  border-radius: 0.3rem;
}
.research-summary { font-size: 1rem; line-height: 1.8; }
.research-evidence {
  border-left: 3px solid var(--orange);
  background: rgba(255,255,255,0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.research-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}
.research-term {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 99px;
}
.research-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.research-links a { color: var(--orange); font-size: 0.875rem; }
.research-links a:hover { text-decoration: underline; }

/* ============ Image Frame ============ */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem 0.4rem 1.5rem 0.4rem;
  background: linear-gradient(135deg,var(--navy) 0%,var(--indigo) 60%,var(--violet) 130%);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 70% 25%, rgba(255,107,53,0.28), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(123,47,190,0.38), transparent 50%);
}
.image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ Badge ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(165,42,42,0.1);
  color: var(--wine);
  border: 1px solid rgba(165,42,42,0.2);
}
.badge-hot {
  background: rgba(255,107,53,0.12);
  color: var(--orange);
  border-color: rgba(255,107,53,0.3);
}

/* ============ Scroll Reveal ============ */
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].reveal-ready.revealed {
  opacity: 1;
  transform: none;
}

/* ============ Tablet ============ */
@media (min-width: 768px) and (max-width: 1100px) {
  :root { --rail-w: 240px; }
  .site-header { padding: 1.4rem 1rem 1rem; }
  .brand-glyph { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
  .brand-text strong { font-size: 1.3rem; }
  .brand-text small { font-size: 0.65rem; letter-spacing: 0.1em; }
  .brand-roll { display: none; }
  .brand-slogan { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
  .nav-zone { margin-top: 1.2rem; }
  .primary-nav-link { font-size: 0.85rem; padding: 0.6rem 0.65rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
}

/* ============ Narrow Tablet ============ */
@media (max-width: 960px) {
  .brand-slogan { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============ Mobile ============ */
@media (max-width: 767px) {
  :root { --rail-w: 0px; }
  #main-content { margin-left: 0; min-height: auto; }
  .page-shell { padding: 1.25rem 1rem 2rem; }
  .site-header {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(11,27,58,0.18);
  }
  .site-header::before { border-radius: 0 0 1.2rem 0; }
  .brand-zone { flex: 1; padding: 0; border-bottom: none; }
  .brand-mark { gap: 0.6rem; }
  .brand-glyph { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .brand-text strong { font-size: 1.35rem; }
  .brand-text small { font-size: 0.65rem; }
  .brand-roll { display: none; }
  .brand-slogan { display: none; }
  .menu-button { display: flex; position: relative; }
  .nav-zone {
    display: none;
    flex: 0 0 100%;
    order: 3;
    margin: 0.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-header[data-open] .nav-zone { display: block; }
  .rail-status {
    display: none;
    flex: 0 0 100%;
    order: 4;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-header[data-open] .rail-status { display: block; }
  .site-header[data-open] .menu-button-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header[data-open] .menu-button-bar:nth-child(2) { opacity: 0; }
  .site-header[data-open] .menu-button-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-footer { margin-left: 0; }
  .footer-legal { flex-direction: column; gap: 0.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal].reveal-ready,
  [data-reveal].reveal-ready.revealed {
    opacity: 1;
    transform: none;
  }
  .rail-progress-bar,
  .menu-button-bar { transition: none; }
}
