/* ==========================================================================
   奇异果赛事 · 共享样式 /assets/site.css
   深色连续画布 + 果籽星图母题 + 居中刊头
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --ink: #170E33;
  --panel: #2A1B57;
  --amber: #FFE45E;
  --green: #7CE23C;
  --green-deep: #3E9A16;
  --cyan: #2FD6C4;
  --coral: #FF7A59;
  --mist: #F1F4EE;
  --seed: #0B0714;
  --peel: #6B563E;
  --slate: #A6A8BE;

  --line: rgba(166, 168, 190, .18);
  --line-soft: rgba(166, 168, 190, .1);

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono CJK SC", "Courier New", monospace;

  --maxw: 1240px;
  --radius-pod: 32px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .7, .3, 1);
  --shadow-pod: 0 18px 44px -26px rgba(0, 0, 0, .95);
}

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; }

::selection { background: var(--amber); color: var(--seed); }

/* ---------- 页面底层 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 58vw at 84% -14%, rgba(124, 226, 60, .16), transparent 68%),
    radial-gradient(50vw 50vw at 2% 4%, rgba(47, 214, 196, .13), transparent 70%),
    radial-gradient(44vw 44vw at 56% 104%, rgba(255, 122, 89, .08), transparent 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 排版 ---------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.06;
}

h1, .h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3, .h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.01em; }
h4, .h4 { font-size: 1.05rem; line-height: 1.4; letter-spacing: 0; }

p { text-wrap: pretty; }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.05em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; list-style: disc; }
.prose li { margin: .35em 0; }

.lede {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.72;
  color: rgba(241, 244, 238, .86);
}

.muted { color: var(--slate); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(124, 226, 60, .16);
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.4rem); }

.section--paper {
  background: var(--mist);
  color: var(--seed);
  border-radius: clamp(20px, 3vw, 36px);
}
.section--paper .lede { color: #33304A; }
.section--paper .muted { color: #5C5E75; }
.section--paper .eyebrow { color: var(--green-deep); }
.section--paper .eyebrow::before { box-shadow: 0 0 0 4px rgba(62, 154, 22, .14); }
.section--paper .pod { background: #FFFFFF; border-color: rgba(11, 7, 20, .1); color: var(--seed); }
.section--paper .aside-note { color: #5C5E75; border-left-color: var(--green-deep); }
.section--paper .btn--ghost { border-color: rgba(11, 7, 20, .28); color: var(--seed); }
.section--paper .btn--ghost:hover { border-color: var(--green-deep); color: var(--green-deep); }

/* 12 栏非对称网格 */
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
}
.g12 > .c3 { grid-column: span 3; }
.g12 > .c4 { grid-column: span 4; }
.g12 > .c5 { grid-column: span 5; }
.g12 > .c7 { grid-column: span 7; }
.g12 > .c8 { grid-column: span 8; }
.g12 > .c9 { grid-column: span 9; }
.g12 > .c12 { grid-column: 1 / -1; }

.aside-note {
  padding-left: .95rem;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease);
}
.btn--primary {
  background: var(--amber);
  color: var(--seed);
  box-shadow: 0 12px 30px -16px rgba(255, 228, 94, .7);
}
.btn--primary:hover { background: #FFF08A; }
.btn--ghost {
  border-color: rgba(166, 168, 190, .42);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- 悬浮舱 / 标签 ---------- */
.pod {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border-radius: var(--radius-pod);
  background: rgba(42, 27, 87, .78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pod);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pod--interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px -24px rgba(0, 0, 0, .96);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .26rem .72rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.6;
}
.tag--live { color: var(--coral); }
.tag--new { color: var(--green); }
.tag--archive {
  background: var(--peel);
  border-color: transparent;
  color: var(--mist);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--slate);
}
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin-right: .45rem;
  opacity: .5;
}
.crumbs a { color: var(--slate); text-decoration: none; transition: color .18s var(--ease); }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current="page"] { color: var(--amber); }

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-pod);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(124, 226, 60, .22), transparent 70%),
    radial-gradient(70% 80% at 80% 90%, rgba(47, 214, 196, .18), transparent 72%),
    linear-gradient(150deg, #2A1B57, #170E33);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(11, 7, 20, .45) 100%);
}
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

/* ---------- 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, -130%);
  padding: .7rem 1.4rem;
  border-radius: 0 0 16px 16px;
  background: var(--amber);
  color: var(--seed);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--cyan) 50%, var(--amber));
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(23, 14, 51, .98), rgba(23, 14, 51, .9));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background-color .25s var(--ease);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.4rem);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.6vw, 2rem) clamp(1rem, 3vw, 2rem) .55rem;
  transition: padding .25s var(--ease);
}

/* 果籽环形徽记 */
.seed-ring {
  justify-self: start;
  position: relative;
  width: calc(var(--r, 23px) * 2 + var(--dot, 6px) * 2);
  height: calc(var(--r, 23px) * 2 + var(--dot, 6px) * 2);
  --r: 23px;
  --dot: 6px;
  flex: none;
}
.seed-ring i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--dot);
  height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%;
  background: var(--green);
  transform: rotate(var(--a, 0deg)) translateY(calc(var(--r) * -1));
  animation: seedPop .55s var(--ease) both;
}
.seed-ring i:nth-child(1) { --a: 0deg; animation-delay: 0ms; }
.seed-ring i:nth-child(2) { --a: 30deg; animation-delay: 40ms; }
.seed-ring i:nth-child(3) { --a: 60deg; animation-delay: 80ms; }
.seed-ring i:nth-child(4) { --a: 90deg; animation-delay: 120ms; }
.seed-ring i:nth-child(5) { --a: 120deg; animation-delay: 160ms; }
.seed-ring i:nth-child(6) { --a: 150deg; animation-delay: 200ms; }
.seed-ring i:nth-child(7) { --a: 180deg; animation-delay: 240ms; }
.seed-ring i:nth-child(8) { --a: 210deg; animation-delay: 280ms; }
.seed-ring i:nth-child(9) { --a: 240deg; animation-delay: 320ms; }
.seed-ring i:nth-child(10) { --a: 270deg; animation-delay: 360ms; }
.seed-ring i:nth-child(11) { --a: 300deg; animation-delay: 400ms; }
.seed-ring i:nth-child(12) { --a: 330deg; animation-delay: 440ms; }
.seed-ring i:nth-child(2n) { background: var(--amber); }

@keyframes seedPop {
  from { opacity: .08; transform: rotate(var(--a, 0deg)) translateY(calc(var(--r) * -1)) scale(.3); }
  to   { opacity: 1;   transform: rotate(var(--a, 0deg)) translateY(calc(var(--r) * -1)) scale(1); }
}

/* 报头品牌 */
.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .28rem;
  text-align: center;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--mist);
  transition: font-size .25s var(--ease);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--cyan);
  transition: opacity .25s var(--ease);
}
.brand:hover .brand-name { color: var(--amber); }

/* 右角功能 */
.masthead-rail {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.rail-link {
  padding: .42rem .85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(166, 168, 190, .28);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.rail-link:hover { border-color: var(--green); color: var(--green); }
.rail-link--search { border-color: rgba(255, 228, 94, .45); color: var(--amber); }
.rail-link--search:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 228, 94, .1); }

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(166, 168, 190, .35);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--green); color: var(--green); }
.nav-toggle-text { line-height: 1; }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .18s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), top .18s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 栏目行 */
.site-nav {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 clamp(1rem, 3vw, 2rem) .95rem;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem clamp(.9rem, 2.4vw, 2rem);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .2rem;
  color: var(--slate);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(166, 168, 190, .65);
  background: transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-link:hover { color: var(--mist); }
.nav-link:hover::before { background: var(--green); border-color: var(--green); }
.nav-link[aria-current="page"] { color: var(--amber); }
.nav-link[aria-current="page"]::before {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 228, 94, .16);
}

/* 滚动后收窄 */
.site-header[data-scrolled] .masthead { padding-top: .65rem; padding-bottom: .35rem; }
.site-header[data-scrolled] .brand-name { font-size: clamp(1.15rem, 2.1vw, 1.65rem); }
.site-header[data-scrolled] .brand-tagline { opacity: 0; }
.site-header[data-scrolled] .seed-ring { --r: 17px; --dot: 5px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 8rem);
  background: var(--panel);
  background-image:
    radial-gradient(50vw 30vw at 12% 0%, rgba(124, 226, 60, .12), transparent 70%),
    radial-gradient(40vw 30vw at 92% 100%, rgba(47, 214, 196, .1), transparent 70%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan) 38%, var(--amber) 74%, var(--coral));
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 4.2rem) clamp(1rem, 3vw, 2rem) 2rem;
}

.footer-block--hub { grid-column: span 5; }
.footer-block--service { grid-column: span 4; }
.footer-block--links { grid-column: span 3; }

.hub-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--mist);
  font-size: 1rem;
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.hub-link::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(124, 226, 60, .14);
}
.hub-link:hover { color: var(--green); padding-left: .35rem; }

.svc-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .9rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: .92rem;
  line-height: 1.7;
}
.svc-key {
  min-width: 5.2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--slate);
  align-self: center;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
}
.footer-link-list a {
  font-size: .92rem;
  color: var(--slate);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-link-list a:hover { color: var(--amber); }

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--slate);
}
.footer-legal p { margin: 0; }
.footer-note {
  flex-basis: 100%;
  max-width: 68ch;
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(166, 168, 190, .88);
}

/* ==========================================================================
   焦点与无障碍
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-block--hub { grid-column: span 6; }
  .footer-block--service { grid-column: span 6; }
  .footer-block--links { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .g12 > .c3,
  .g12 > .c4,
  .g12 > .c5,
  .g12 > .c7,
  .g12 > .c8,
  .g12 > .c9 { grid-column: 1 / -1; }

  .seed-ring { --r: 18px; --dot: 5px; }
  .brand-tagline { letter-spacing: .14em; font-size: .66rem; }
}

@media (max-width: 820px) {
  .rail-link { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; padding-bottom: 1.1rem; }
  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: .92rem;
  }
  .nav-link {
    justify-content: flex-start;
    padding: .78rem .2rem;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 7rem; }
  body { font-size: 16px; }
  .masthead { padding-top: .95rem; }
  .brand-name { font-size: clamp(1.35rem, 6.4vw, 1.85rem); }
  .seed-ring { --r: 15px; --dot: 4px; }
  .footer-block--hub,
  .footer-block--service,
  .footer-block--links { grid-column: 1 / -1; }
  .svc-key { min-width: 100%; }
}

/* ==========================================================================
   减弱动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .seed-ring i { opacity: 1; }

  .reveal { opacity: 1; transform: none; }

  .pod--interactive:hover { transform: none; }
}
