/* ============================================================
   太阳集团游戏 · 共享样式 /assets/site.css
   城市坐标点亮体系：深夜蓝黑 + 太阳橙金 + 电光青
   ============================================================ */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(img, svg, video) { display: block; max-width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --cl-night: #0B1020;
  --cl-panel: #151D33;
  --cl-ink: #F4F7FB;
  --cl-sun: #FFB43A;
  --cl-cyan: #4EEDE7;
  --cl-violet: #B47CFF;
  --cl-green: #52E08A;
  --cl-warm-gray: #A8B1C2;
  --cl-line: #2A3550;
  --cl-cream: #FFE7B8;

  --cl-shell: 1240px;
  --cl-header-h: 88px;

  --cl-radius-lg: 26px;
  --cl-radius-md: 20px;
  --cl-radius-pill: 999px;

  --cl-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --cl-font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --cl-font-mono: "IBM Plex Mono", "Sora", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --cl-ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--cl-night);
  color: var(--cl-ink);
  font-family: var(--cl-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 84% -8%, rgba(255, 180, 58, .16), transparent 70%),
    radial-gradient(560px 400px at 6% 2%, rgba(78, 237, 231, .12), transparent 72%),
    radial-gradient(900px 700px at 48% 118%, rgba(180, 124, 255, .12), transparent 74%);
}

#main-content {
  display: block;
  padding-top: calc(var(--cl-header-h) + 8px);
  scroll-margin-top: calc(var(--cl-header-h) + 16px);
}

::selection {
  background: rgba(255, 180, 58, .85);
  color: var(--cl-night);
}

:focus-visible {
  outline: 2px solid var(--cl-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.cl-mono {
  font-family: var(--cl-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ---------- 4. 跳转链接 ---------- */
.cl-skip {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 400;
  padding: 10px 20px;
  border-radius: var(--cl-radius-pill);
  background: var(--cl-sun);
  color: var(--cl-night);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .24s var(--cl-ease);
}

.cl-skip:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 5. 悬浮胶囊页头 ---------- */
.cl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 16px clamp(14px, 4vw, 40px) 0;
  pointer-events: none;
}

.cl-header__inner {
  position: relative;
  max-width: var(--cl-shell);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cl-brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 11px;
  border-radius: var(--cl-radius-pill);
  background: rgba(21, 29, 51, .78);
  border: 1px solid var(--cl-line);
  box-shadow: 0 14px 36px rgba(4, 7, 16, .5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s var(--cl-ease), border-color .3s var(--cl-ease), transform .3s var(--cl-ease);
}

.cl-brand:hover {
  border-color: rgba(255, 180, 58, .5);
  transform: translateY(-1px);
}

.cl-brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 58, .45);
  background: linear-gradient(150deg, rgba(255, 180, 58, .24), rgba(78, 237, 231, .16));
}

.cl-brand__mark::before,
.cl-brand__mark::after {
  content: "";
  position: absolute;
  background: rgba(244, 247, 251, .3);
}

.cl-brand__mark::before { width: 1px; height: 16px; top: 9px; left: 50%; }
.cl-brand__mark::after { height: 1px; width: 16px; left: 9px; top: 50%; }

.cl-brand__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cl-sun);
  box-shadow: 0 0 0 4px rgba(255, 180, 58, .16), 0 0 16px rgba(255, 180, 58, .9);
  animation: cl-pulse 3.6s ease-in-out infinite;
}

@keyframes cl-pulse {
  0%, 100% { transform: scale(.86); opacity: .7; }
  50% { transform: scale(1.14); opacity: 1; }
}

.cl-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.cl-brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--cl-ink);
}

.cl-brand__sub {
  font-family: var(--cl-font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--cl-warm-gray);
}

.cl-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border-radius: var(--cl-radius-pill);
  background: rgba(21, 29, 51, .78);
  border: 1px solid var(--cl-line);
  box-shadow: 0 14px 36px rgba(4, 7, 16, .5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s var(--cl-ease), border-color .3s var(--cl-ease);
}

.cl-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cl-nav__item { display: block; }

.cl-nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--cl-radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--cl-warm-gray);
  transition: color .24s var(--cl-ease), background .24s var(--cl-ease);
}

.cl-nav__link:hover { color: var(--cl-ink); background: rgba(78, 237, 231, .1); }

.cl-nav__link[aria-current="page"] {
  color: var(--cl-night);
  font-weight: 700;
  background: var(--cl-sun);
  box-shadow: 0 0 0 4px rgba(255, 180, 58, .14);
}

.cl-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 9px 18px;
  border-radius: var(--cl-radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--cl-night);
  background: linear-gradient(120deg, var(--cl-sun), #FFD27A);
  box-shadow: 0 8px 22px rgba(255, 180, 58, .28);
  transition: transform .24s var(--cl-ease), box-shadow .24s var(--cl-ease);
}

.cl-nav__cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cl-night);
  opacity: .78;
}

.cl-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 180, 58, .42);
}

.cl-header[data-scrolled] .cl-brand,
.cl-header[data-scrolled] .cl-nav {
  background: rgba(11, 16, 32, .84);
  border-color: rgba(42, 53, 80, 1);
}

.cl-header[data-scrolled] .cl-nav__link {
  padding: 7px 12px;
  font-size: 13.5px;
}

.cl-nav-toggle {
  pointer-events: auto;
  display: none;
  flex: none;
  width: 52px;
  height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--cl-radius-pill);
  background: rgba(21, 29, 51, .82);
  border: 1px solid var(--cl-line);
  box-shadow: 0 14px 36px rgba(4, 7, 16, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cl-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--cl-ink);
  transition: transform .26s var(--cl-ease), opacity .2s linear;
}

.cl-header[data-open] .cl-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cl-header[data-open] .cl-nav-toggle__bar:nth-child(2) { opacity: 0; }
.cl-header[data-open] .cl-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.cl-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 40px) 28px;
  border-top: 1px solid var(--cl-line);
  background: linear-gradient(180deg, rgba(21, 29, 51, .4), rgba(11, 16, 32, .96) 44%);
  overflow: hidden;
}

.cl-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%, rgba(255, 180, 58, .18), transparent 72%);
}

.cl-footer::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  opacity: .4;
  background-image: radial-gradient(circle, rgba(78, 237, 231, .38) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 68% 68%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 68% 68%, #000, transparent 72%);
}

.cl-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--cl-shell);
  margin: 0 auto;
}

.cl-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 1.55fr minmax(250px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.cl-footer__brand { min-width: 0; }

.cl-footer__wordmark {
  font-family: var(--cl-font-serif);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cl-ink);
}

.cl-footer__slogan {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--cl-warm-gray);
}

.cl-footer__signal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.cl-footer__signal-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cl-green);
  box-shadow: 0 0 12px rgba(82, 224, 138, .85);
}

.cl-footer__signal-line {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 224, 138, .65), rgba(42, 53, 80, 0));
}

.cl-footer__signal-text {
  flex: none;
  font-family: var(--cl-font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--cl-warm-gray);
  white-space: nowrap;
}

.cl-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cl-footer__col { min-width: 0; }

.cl-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--cl-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--cl-cyan);
}

.cl-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-footer__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--cl-warm-gray);
  transition: color .2s var(--cl-ease), transform .2s var(--cl-ease);
}

.cl-footer__link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--cl-sun);
  opacity: .6;
  transition: width .2s var(--cl-ease), opacity .2s var(--cl-ease);
}

.cl-footer__link:hover { color: var(--cl-ink); transform: translateX(3px); }
.cl-footer__link:hover::before { width: 13px; opacity: 1; }

.cl-footer__contact {
  min-width: 0;
  padding-left: clamp(16px, 2.4vw, 30px);
  border-left: 1px solid var(--cl-line);
}

.cl-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-footer__contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(42, 53, 80, .95);
}

.cl-footer__contact-label {
  grid-column: 1 / -1;
  font-family: var(--cl-font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--cl-warm-gray);
}

.cl-footer__contact-value {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cl-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cl-copy {
  align-self: start;
  padding: 3px 11px;
  border-radius: var(--cl-radius-pill);
  border: 1px solid rgba(78, 237, 231, .42);
  color: var(--cl-cyan);
  font-size: 11px;
  letter-spacing: .1em;
  transition: background .2s var(--cl-ease), color .2s var(--cl-ease), border-color .2s var(--cl-ease);
}

.cl-copy:hover { background: rgba(78, 237, 231, .15); }

.cl-copy.is-copied {
  color: var(--cl-night);
  background: var(--cl-green);
  border-color: var(--cl-green);
}

.cl-footer__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--cl-warm-gray);
}

.cl-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--cl-line);
  font-family: var(--cl-font-mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  color: var(--cl-warm-gray);
}

.cl-footer__legal { color: var(--cl-warm-gray); }
.cl-footer__copy { color: rgba(168, 177, 194, .8); }

/* ---------- 7. 布局与章节 ---------- */
.cl-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.cl-section { margin-block: clamp(48px, 7vw, 96px); }

.cl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--cl-font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--cl-cyan);
}

.cl-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cl-cyan);
}

.cl-title {
  font-family: var(--cl-font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: .03em;
  color: var(--cl-ink);
}

.cl-lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--cl-warm-gray);
}

.cl-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.cl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cl-divider {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, transparent, var(--cl-line), transparent);
}

.cl-dotgrid {
  height: 120px;
  background-image: radial-gradient(circle, rgba(78, 237, 231, .28) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

/* ---------- 8. 按钮 / 标签 ---------- */
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--cl-radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .05em;
  border: 1px solid transparent;
  transition: transform .24s var(--cl-ease), box-shadow .24s var(--cl-ease), background .24s var(--cl-ease), color .24s var(--cl-ease), border-color .24s var(--cl-ease);
}

.cl-btn--sun {
  background: var(--cl-sun);
  color: var(--cl-night);
  box-shadow: 0 12px 28px rgba(255, 180, 58, .28);
}

.cl-btn--sun:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 180, 58, .4);
}

.cl-btn--ghost {
  background: rgba(21, 29, 51, .62);
  color: var(--cl-ink);
  border-color: var(--cl-line);
}

.cl-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--cl-cyan);
  color: var(--cl-cyan);
}

.cl-btn--cyan {
  background: rgba(78, 237, 231, .14);
  color: var(--cl-cyan);
  border-color: rgba(78, 237, 231, .45);
}

.cl-btn--cyan:hover {
  transform: translateY(-2px);
  background: rgba(78, 237, 231, .22);
}

.cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--cl-radius-pill);
  font-family: var(--cl-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cl-cyan);
  border: 1px solid rgba(78, 237, 231, .35);
  background: rgba(78, 237, 231, .08);
}

.cl-chip--sun {
  color: var(--cl-sun);
  border-color: rgba(255, 180, 58, .42);
  background: rgba(255, 180, 58, .1);
}

.cl-chip--violet {
  color: var(--cl-violet);
  border-color: rgba(180, 124, 255, .42);
  background: rgba(180, 124, 255, .1);
}

.cl-chip--green {
  color: var(--cl-green);
  border-color: rgba(82, 224, 138, .42);
  background: rgba(82, 224, 138, .1);
}

/* ---------- 9. 卡片 / 坐标 ---------- */
.cl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--cl-radius-md);
  border: 1px solid var(--cl-line);
  background: linear-gradient(165deg, rgba(21, 29, 51, .9), rgba(11, 16, 32, .72));
  transition: border-color .28s var(--cl-ease), transform .28s var(--cl-ease), box-shadow .28s var(--cl-ease);
}

.cl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 237, 231, .45);
  box-shadow: 0 22px 42px -26px rgba(78, 237, 231, .6);
}

.cl-card__meta {
  font-family: var(--cl-font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cl-warm-gray);
}

.cl-coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cl-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cl-cyan);
}

.cl-coord::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cl-cyan);
  box-shadow: 0 0 10px var(--cl-cyan);
}

/* ---------- 10. 框景窗口 ---------- */
.cl-frame {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--cl-radius-lg);
  border: 1px solid var(--cl-line);
  background: linear-gradient(160deg, rgba(21, 29, 51, .92), rgba(11, 16, 32, .78));
  overflow: hidden;
}

.cl-frame::before,
.cl-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-style: solid;
  border-color: var(--cl-sun);
  opacity: .85;
  pointer-events: none;
}

.cl-frame::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
  border-radius: 6px 0 0 0;
}

.cl-frame::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 6px 0;
}

.cl-frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(42, 53, 80, .95);
  font-family: var(--cl-font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cl-warm-gray);
}

.cl-frame__tick {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
}

.cl-frame__tick span {
  display: block;
  width: 2px;
  height: 9px;
  border-radius: 1px;
  background: rgba(78, 237, 231, .6);
}

/* ---------- 11. 图像容器 ---------- */
.cl-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--cl-radius-md);
  border: 1px solid var(--cl-line);
  background:
    radial-gradient(circle at 26% 22%, rgba(78, 237, 231, .16), transparent 60%),
    linear-gradient(150deg, rgba(21, 29, 51, .96), rgba(11, 16, 32, .74));
  aspect-ratio: 16 / 10;
}

.cl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(42, 53, 80, .5) 1px, transparent 1px),
    linear-gradient(0deg, rgba(42, 53, 80, .5) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
}

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

/* ---------- 12. 面包屑 / 目录 / 长文 ---------- */
.cl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--cl-font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--cl-warm-gray);
}

.cl-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.cl-breadcrumb__link {
  color: var(--cl-warm-gray);
  transition: color .2s var(--cl-ease);
}

.cl-breadcrumb__link:hover { color: var(--cl-cyan); }

.cl-breadcrumb__sep {
  color: rgba(168, 177, 194, .45);
}

.cl-breadcrumb__item:last-child { color: var(--cl-sun); }

.cl-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}

.cl-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cl-toc__link {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--cl-line);
  color: var(--cl-warm-gray);
  transition: color .22s var(--cl-ease), border-color .22s var(--cl-ease), padding-left .22s var(--cl-ease);
}

.cl-toc__link:hover { color: var(--cl-ink); padding-left: 20px; }

.cl-toc__link[aria-current] {
  color: var(--cl-sun);
  border-left-color: var(--cl-sun);
  padding-left: 20px;
}

.cl-prose {
  max-width: 70ch;
  font-size: 16px;
}

.cl-prose p {
  margin-block: 0 1.15em;
  color: var(--cl-warm-gray);
  line-height: 1.85;
}

.cl-prose h2,
.cl-prose h3 {
  margin-block: 1.6em .6em;
  font-family: var(--cl-font-serif);
  color: var(--cl-ink);
  line-height: 1.35;
}

.cl-prose h2 { font-size: clamp(22px, 2.6vw, 28px); }
.cl-prose h3 { font-size: clamp(18px, 2vw, 21px); }

.cl-prose ul,
.cl-prose ol {
  margin-block: 0 1.2em;
  padding-left: 1.2em;
  color: var(--cl-warm-gray);
}

.cl-prose li { margin-block: .35em; }
.cl-prose ul li { list-style: disc; }
.cl-prose ol li { list-style: decimal; }
.cl-prose a { color: var(--cl-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. 滚动进度 / 返回顶部 / 显现 ---------- */
.cl-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
}

.cl-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cl-sun), var(--cl-cyan));
  box-shadow: 0 0 14px rgba(78, 237, 231, .7);
  transition: width .12s linear;
}

.cl-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 250;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--cl-cyan);
  background: rgba(21, 29, 51, .88);
  border: 1px solid rgba(78, 237, 231, .42);
  box-shadow: 0 14px 30px rgba(4, 7, 16, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.9);
  transition: opacity .3s var(--cl-ease), transform .3s var(--cl-ease), visibility .3s linear, background .24s var(--cl-ease);
}

.cl-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.cl-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cl-top:hover { background: rgba(78, 237, 231, .18); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--cl-ease), transform .62s var(--cl-ease);
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .cl-header { padding-top: 14px; }
  .cl-header__inner { align-items: center; }

  .cl-nav-toggle { display: flex; }

  .cl-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: var(--cl-radius-lg);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .26s var(--cl-ease), transform .26s var(--cl-ease), visibility .26s linear;
  }

  .cl-header[data-open] .cl-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .cl-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .cl-nav__link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 14px;
    color: var(--cl-ink);
  }

  .cl-nav__cta {
    margin: 10px 0 0;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  .cl-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .cl-footer__brand { grid-column: 1 / -1; }

  .cl-footer__contact {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--cl-line);
  }

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

@media (max-width: 900px) {
  .cl-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cl-grid--3 { grid-template-columns: 1fr; }

  .cl-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cl-footer__link { font-size: 14px; }
}

@media (max-width: 560px) {
  :root { --cl-header-h: 76px; }

  .cl-header { padding-top: 12px; }
  .cl-brand { gap: 10px; padding: 8px 16px 8px 9px; }
  .cl-brand__mark { width: 30px; height: 30px; border-radius: 10px; }
  .cl-brand__mark::before { height: 14px; top: 8px; }
  .cl-brand__mark::after { width: 14px; left: 8px; }
  .cl-brand__name { font-size: 15px; }
  .cl-brand__sub { display: none; }
  .cl-nav-toggle { width: 46px; height: 46px; }

  .cl-footer { padding-bottom: 24px; }
  .cl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .cl-footer__bottom { flex-direction: column; align-items: flex-start; }
  .cl-top { width: 44px; height: 44px; }
}

/* ---------- 15. 无障碍偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
