/* ============================================================
   开云看台 KAIYUN STANDS — /assets/site.css
   共享层：reset / 变量 / 中文排版 / 刊头导航 / 页脚 / 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--blue);
  background-color: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-deep);
}

button {
  font: inherit;
  color: inherit;
}

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色板 */
  --snow: #BFE3E0;
  --mist: #EAF5F3;
  --gold: #D9A441;
  --gold-sand: #F3D9A4;
  --blue: #102A43;
  --ink: #071A2B;
  --orange: #FF6A3D;
  --gold-deep: #8A5A10;
  --gray: #6F8088;
  --sand: #FAF7F0;
  --teal: #2E6F75;

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

  /* 形状 */
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* 容器与节奏 */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --band-y: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- 3. 无障碍基元 ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -160%);
  padding: 0.7rem 1.5rem;
  background: var(--ink);
  color: var(--sand);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  box-shadow: 0 6px 18px rgba(7, 26, 43, 0.35);
  transition: transform 0.22s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--sand);
}

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

.section {
  padding-block: var(--band-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--gold-sand);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.pill--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue);
  color: var(--sand);
  box-shadow: 0 3px 0 var(--ink);
}

.btn--primary:hover {
  background: var(--teal);
  color: var(--sand);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-deep);
}

.btn--gold:hover {
  background: var(--gold-sand);
  color: var(--ink);
}

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

.btn--ghost:hover {
  background: var(--gold-sand);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--on-dark {
  background: transparent;
  border-color: rgba(234, 245, 243, 0.45);
  color: var(--mist);
}

.btn--on-dark:hover {
  background: rgba(234, 245, 243, 0.14);
  border-color: var(--gold);
  color: var(--sand);
}

/* ---------- 6. 阅读进度线 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(7, 26, 43, 0.16);
  z-index: 120;
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 62%, var(--orange) 100%);
  transition: width 0.12s linear;
}

/* ---------- 7. 页头外壳 ---------- */
.stand-header {
  position: relative;
  z-index: 60;
  color: var(--blue);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(217, 164, 65, 0.22), transparent 52%),
    radial-gradient(90% 85% at 94% 4%, rgba(46, 111, 117, 0.20), transparent 58%),
    linear-gradient(180deg, var(--mist) 0%, var(--snow) 100%);
  border-bottom: 1px solid rgba(16, 42, 67, 0.18);
}

/* ---------- 8. 播报横带 ---------- */
.broadcast {
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(217, 164, 65, 0.4);
}

.broadcast__track {
  display: flex;
  width: max-content;
  animation: broadcast-slide 46s linear infinite;
  will-change: transform;
}

.broadcast:hover .broadcast__track,
.broadcast:focus-within .broadcast__track {
  animation-play-state: paused;
}

.broadcast__group {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.6rem);
  padding: 0.5rem clamp(1.1rem, 3vw, 2.6rem);
}

.broadcast__tag {
  flex: none;
  padding: 0.08rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.broadcast__item {
  white-space: nowrap;
  color: rgba(234, 245, 243, 0.92);
}

.broadcast__sep {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

@keyframes broadcast-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 9. 居中刊头 ---------- */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.05rem, 2.4vw, 1.85rem) var(--gutter) clamp(0.85rem, 1.8vw, 1.35rem);
}

.masthead__kicker {
  max-width: 22ch;
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.15rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.masthead__brand:hover {
  color: var(--ink);
}

.masthead__brand-cn {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.masthead__brand-en {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.masthead__action {
  display: flex;
  justify-content: flex-end;
}

.masthead__action .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

/* ---------- 10. 胶囊导航 ---------- */
.stand-nav {
  position: relative;
  border-top: 1px solid rgba(16, 42, 67, 0.1);
}

.stand-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.55rem var(--gutter) clamp(0.85rem, 1.6vw, 1.15rem);
  list-style: none;
}

.stand-nav__item {
  display: block;
}

.stand-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.1rem;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: var(--r-pill);
  background: rgba(250, 247, 240, 0.62);
  color: var(--blue);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.stand-nav__link:hover {
  background: var(--gold-sand);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.stand-nav__link[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
  box-shadow: 0 2px 0 var(--gold);
}

.stand-nav__link[aria-current="page"]:hover {
  background: var(--blue);
  color: var(--sand);
}

.stand-nav__toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.stand-nav__toggle-label {
  letter-spacing: 0.1em;
}

.stand-nav__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 18px;
}

.stand-nav__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.stand-nav[data-open] .stand-nav__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.stand-nav[data-open] .stand-nav__bars span:nth-child(2) {
  opacity: 0;
}

.stand-nav[data-open] .stand-nav__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--snow) 0%, var(--mist) 55%, var(--gold-sand) 100%);
  aspect-ratio: 16 / 9;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

/* ---------- 12. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.crumb__link {
  color: var(--teal);
  text-decoration: none;
}

.crumb__link:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.crumb__sep {
  color: var(--gold);
}

.crumb__current {
  color: var(--blue);
}

/* ---------- 13. 滚动显现协议 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

/* ---------- 14. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
}

.site-foot__arc {
  position: relative;
  height: clamp(26px, 5vw, 54px);
  background: var(--sand);
  border-radius: 0 0 100% 100% / 0 0 100% 100%;
}

.site-foot__arc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 28px);
  opacity: 0.85;
}

.site-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 3rem) var(--gutter) clamp(2rem, 4vw, 2.9rem);
}

.site-foot__lead {
  min-width: 0;
}

.site-foot__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--sand);
}

.site-foot__brand-en {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-foot__summary {
  max-width: 42ch;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(191, 227, 224, 0.86);
}

.site-foot__lead .btn {
  margin-top: 1.3rem;
}

.foot-index,
.foot-contact {
  min-width: 0;
}

.foot-index__title,
.foot-contact__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.foot-index__list {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.foot-index__item {
  display: block;
}

.foot-index__link {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.34rem 0;
  font-size: 0.95rem;
  color: rgba(234, 245, 243, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(191, 227, 224, 0.2);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-index__link:hover {
  color: var(--gold-sand);
  border-color: var(--gold);
}

.foot-index__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(191, 227, 224, 0.55);
}

.foot-contact__list {
  display: grid;
  gap: 0.85rem;
}

.foot-contact__row {
  display: grid;
  gap: 0.1rem;
}

.foot-contact__row dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 227, 224, 0.6);
}

.foot-contact__row dd {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sand);
  overflow-wrap: anywhere;
}

.foot-contact__note {
  margin-top: 0.95rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(191, 227, 224, 0.62);
}

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1rem var(--gutter) 1.7rem;
  font-size: 0.8rem;
  color: rgba(191, 227, 224, 0.62);
  border-top: 1px solid rgba(191, 227, 224, 0.16);
}

.site-foot__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
}

.site-foot__legal-link {
  color: rgba(234, 245, 243, 0.82);
  text-decoration: none;
}

.site-foot__legal-link:hover {
  color: var(--gold-sand);
  text-decoration: underline;
}

/* ---------- 15. 响应式：平板 ---------- */
@media (max-width: 900px) {
  .site-foot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: clamp(1.8rem, 4vw, 2.6rem);
  }

  .site-foot__lead {
    grid-column: 1 / -1;
  }
}

/* ---------- 16. 响应式：移动导航 ---------- */
@media (max-width: 860px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.8rem;
  }

  .masthead__kicker {
    display: none;
  }

  .masthead__brand {
    align-items: flex-start;
    padding-left: 0;
  }

  .masthead__brand-cn {
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }

  .masthead__brand-en {
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .stand-nav__toggle {
    display: flex;
  }

  .stand-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.34s ease, padding-bottom 0.34s ease, visibility 0.34s;
  }

  .stand-nav[data-open] .stand-nav__list {
    max-height: 620px;
    padding-bottom: 1rem;
    visibility: visible;
    border-top: 1px solid rgba(16, 42, 67, 0.12);
  }

  .stand-nav__link {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.4rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--r-sm);
    background: rgba(250, 247, 240, 0.8);
    font-size: 1rem;
  }
}

/* ---------- 17. 响应式：手机 ---------- */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

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

  .site-foot__base {
    flex-direction: column;
    align-items: flex-start;
  }

  .broadcast {
    font-size: 0.76rem;
  }
}

/* ---------- 18. 减少动态偏好 ---------- */
@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;
  }

  .broadcast__track {
    animation: none;
  }

  .js-reveal [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
