@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

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

:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --paper: #f2fdf8;
  --white: #ffffff;
  --line: 3px solid var(--ink);
  --pill: 999px;
  --card: 28px;
  --cast: 6px 6px 0 rgba(23, 38, 32, 0.88);
  --cast-sm: 3px 3px 0 rgba(23, 38, 32, 0.85);
  --clay: inset -3px -3px 0 rgba(23, 38, 32, 0.1), inset 3px 3px 0 rgba(255, 255, 255, 0.75);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Noto Sans SC', monospace;
  --display: 'Orbitron', 'JetBrains Mono', ui-sans-serif, system-ui, 'Noto Sans SC', sans-serif;
  --soft: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 92% -8%, #d8fdf0 0%, transparent 62%),
    radial-gradient(720px 380px at 2% 6%, #e3f5fd 0%, transparent 64%),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 38, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 38, 32, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, rgba(0, 0, 0, 0.4) 100%);
}

.ticker,
.bar,
.hero,
.shell,
.foot { position: relative; z-index: 1; }

:focus-visible {
  outline: 3px solid #0b5b46;
  outline-offset: 3px;
}

/* ---------- 顶部细条 ---------- */

.ticker {
  background: var(--ink);
  color: var(--mint);
  border-bottom: var(--line);
  overflow: hidden;
}

.ticker-run {
  display: flex;
  gap: 36px;
  width: max-content;
  margin: 0;
  padding: 6px 0;
  font-size: 16px;
  letter-spacing: 0.3em;
  animation: slide 22s linear infinite;
}

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

/* ---------- 页头 ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px clamp(14px, 4vw, 34px);
  background: linear-gradient(118deg, var(--mint) 0%, #cff7f1 46%, var(--blue) 100%);
  border-bottom: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 18px 7px 9px;
  border: var(--line);
  border-radius: var(--pill);
  background: var(--white);
  box-shadow: var(--clay), var(--cast-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease-out;
}

.brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--clay), 6px 6px 0 rgba(23, 38, 32, 0.9);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--blue);
  object-fit: cover;
}

.brand-txt {
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.menu { position: relative; }

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  list-style: none;
  cursor: pointer;
  border: var(--line);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--mint);
  font-size: 16px;
  letter-spacing: 0.14em;
  box-shadow: var(--cast-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

.menu summary::-webkit-details-marker { display: none; }

.menu summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease-out;
}

.menu[open] summary {
  background: var(--mint);
  color: var(--ink);
}

.menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  min-width: min(78vw, 268px);
  margin: 0;
  padding: 12px;
  list-style: none;
  display: grid;
  gap: 6px;
  background: var(--white);
  border: var(--line);
  border-radius: 26px;
  box-shadow: var(--clay), var(--cast);
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--mint);
  border-color: var(--ink);
  transform: translateX(3px);
}

.menu[open] .menu-list li {
  animation: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--i) * 38ms);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  overflow: hidden;
  padding: clamp(28px, 6vw, 60px) 20px clamp(96px, 13vw, 150px);
  text-align: center;
  background:
    radial-gradient(circle at 80% 14%, #ecfffb 0%, transparent 46%),
    linear-gradient(165deg, var(--mint) 0%, #d6f8ec 44%, var(--blue) 100%);
  border-bottom: var(--line);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 820px;
}

.hero-art {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--clay), var(--cast);
  transform: rotate(-6deg);
  animation: bob 5.2s ease-in-out infinite;
}

.hero-art-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
}

.hero-art-fallback {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--mint), var(--blue));
}

@keyframes bob {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-7px); }
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  max-width: 56ch;
  font-family: var(--soft);
  font-size: 17px;
  line-height: 1.65;
}

.band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 34px;
  z-index: 1;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  transform: rotate(-2.6deg);
  box-shadow: 0 0 0 3px rgba(180, 253, 225, 0.55);
}

/* ---------- 版心 ---------- */

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 32px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(14px, 3.5vw, 30px);
}

.rail {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: var(--line);
  border-radius: var(--card);
  background: linear-gradient(180deg, #ffffff 0%, #f4fffb 100%);
  box-shadow: var(--clay), var(--cast-sm);
}

.rail-h {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.24em;
  color: #2b4a3d;
}

.rail .subtitle {
  margin: 4px 0 14px;
  font-family: var(--soft);
  font-size: 16px;
  color: #436458;
}

.rail-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid rgba(23, 38, 32, 0.18);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.18s ease-out, background 0.18s ease-out, border-color 0.18s ease-out;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--mint);
  border-color: var(--ink);
  transform: translateX(3px);
}

/* ---------- 正文 ---------- */

.doc { min-width: 0; }

.doc section {
  position: relative;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  padding: clamp(20px, 3vw, 34px);
  border: var(--line);
  border-radius: var(--card);
  background: var(--white);
  box-shadow: var(--clay), var(--cast-sm);
  scroll-margin-top: 96px;
}

.doc section::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.doc section > :last-child { margin-bottom: 0; }

.doc h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 18px;
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.25;
}

.doc h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.24em;
  bottom: 0.24em;
  width: 8px;
  border-radius: 6px;
  background: var(--ink);
}

.doc h3 {
  margin: 24px 0 10px;
  font-family: var(--soft);
  font-size: 19px;
  line-height: 1.4;
}

.doc p {
  margin: 0 0 14px;
  font-family: var(--soft);
  font-size: 17px;
  line-height: 1.78;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
  font-family: var(--soft);
  font-size: 17px;
  line-height: 1.75;
}

.doc li { margin: 6px 0; }

.doc a {
  color: #0b5b46;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc a:hover { color: var(--ink); background: var(--mint); }

.doc strong {
  background: linear-gradient(transparent 62%, var(--mint) 62%);
  font-weight: 500;
}

.doc img {
  max-width: 100%;
  height: auto;
  border: var(--line);
  border-radius: 20px;
}

.doc blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border: var(--line);
  border-radius: 18px;
  background: #f6fffb;
  font-family: var(--soft);
}

.doc blockquote p:last-child { margin-bottom: 0; }

.doc table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: 8px 10px;
  border: 2px solid rgba(23, 38, 32, 0.24);
  text-align: left;
}

.doc time {
  font-size: 16px;
  color: #416156;
}

.doc .subtitle {
  margin: 0 0 14px;
  color: #416156;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 4vw, 40px);
  padding: 22px clamp(14px, 4vw, 34px);
  background: var(--ink);
  color: #cdfbe8;
  border-top: var(--line);
}

.foot p {
  margin: 0;
  font-size: 16px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid rgba(180, 253, 225, 0.5);
  border-radius: var(--pill);
  color: var(--mint);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}

.foot small {
  justify-self: end;
  font-size: 16px;
  color: #9fe3c9;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .doc { order: 1; }

  .rail {
    order: 2;
    position: static;
    padding: 16px;
  }

  .rail-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }

  .hero { padding-bottom: clamp(92px, 24vw, 130px); }

  .band { bottom: 26px; height: 38px; }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 10px;
  }

  .foot-links { justify-content: flex-start; }

  .foot small { justify-self: start; }

  .doc section { border-radius: 24px; }
}

@media (max-width: 420px) {
  .brand-txt { font-size: 16px; }
  .menu-list { min-width: 0; width: min(84vw, 300px); }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
