@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --line: #e3e3e3;
  --dim: #6b6b6b;
  --cn: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --tech: "Orbitron", "Exo 2", var(--cn);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 26px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--cn);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
hr { border: 0; }

/* ---------- 顶部细条 ---------- */
.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.ticker-txt {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.62em;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 0.62em;
}

/* ---------- 页头 ---------- */
.masthead { background: rgba(255, 255, 255, 0.94); }

.dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dock-nav { flex: 1 1 auto; min-width: 0; }

.dock-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-nav ul::-webkit-scrollbar { display: none; }

.dock-nav--r ul { justify-content: flex-end; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dock-nav a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.brand {
  order: -1;
  flex: 1 0 100%;
  text-align: center;
  padding: 4px 0 8px;
  font-family: var(--tech);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  padding-left: 0.22em;
}

/* ---------- 主体 ---------- */
main { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 14px;
  padding: 14px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #eaeaea 0 1px, transparent 1px 13px),
    var(--mist);
}

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

.hero-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.hero-badge a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 4px 10px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--tech);
  font-size: clamp(27px, 5.2vw, 52px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  font-weight: 700;
  word-break: break-word;
}

.hero-rule {
  width: 64px;
  margin: 14px 0;
  border-top: 2px solid var(--ink);
}

.hero-desc {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- 侧栏 + 正文 ---------- */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 14px 16px;
  align-items: start;
}

.rail {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.rail h2 {
  margin: 0 0 10px;
  font-family: var(--tech);
  font-size: 17px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.rail hr {
  margin: 0 0 14px;
  border-top: 2px solid var(--ink);
  width: 40px;
}

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

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 4px;
  border-bottom: 2px solid var(--line);
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rail-nav a:hover {
  border-bottom-color: var(--ink);
  background: var(--mist);
  transform: translateX(2px);
}

.sheet {
  min-width: 0;
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 16px 26px;
  box-shadow: var(--shadow);
}

.sheet div { scroll-margin-top: 18px; padding-bottom: 4px; }

.sheet div + div {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sheet h2 {
  margin: 0 0 10px;
  font-family: var(--tech);
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 1.34;
  font-weight: 700;
  word-break: break-word;
}

.sheet h2 + hr,
.sheet h3 + hr {
  width: 52px;
  margin: 0 0 16px;
  border-top: 2px solid var(--ink);
}

.sheet h3 {
  margin: 24px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--ink);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.sheet p { margin: 0 0 14px; }

.sheet a {
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 31, 31, 0.35);
}

.sheet a:hover { border-bottom-color: var(--ink); background: var(--mist); }

.sheet ul,
.sheet ol { margin: 0 0 16px; padding-left: 1.25em; }

.sheet li { margin-bottom: 6px; }

.sheet blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--mist);
  border-left: 3px solid var(--ink);
  border-radius: 0 4px 4px 0;
  color: #333;
}

.sheet figure { margin: 18px 0; }

.sheet figure img { border-radius: 4px; width: 100%; }

.sheet figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--dim);
}

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

.sheet th,
.sheet td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
}

.sheet th { background: var(--mist); font-weight: 600; }

.sheet strong { font-weight: 700; }

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 14px 22px;
  padding: 20px 18px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sub-form label { font-size: 16px; }

.sub-form input {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  background: #2b2b2b;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}

.sub-form input:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.sub-form button {
  min-height: 40px;
  padding: 8px 20px;
  border: 0;
  border-bottom: 2px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sub-form button:hover { transform: translateY(-1px); }

.foot-meta {
  text-align: center;
  font-size: 15px;
  color: #cfcfcf;
}

.foot-meta p { margin: 0; word-break: break-word; }

/* ---------- 显现动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    min-height: 45vh;
    padding: 16px;
  }
  .hero-copy { text-align: right; padding-right: 10px; }
  .hero-rule { margin-left: auto; }
  .spread { grid-template-columns: 238px minmax(0, 1fr); gap: 18px; }
  .sheet { padding: 26px 28px 30px; }
  footer { grid-template-columns: 1fr auto; align-items: center; }
  .foot-meta { text-align: center; }
}

@media (min-width: 900px) {
  .masthead {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 var(--line);
  }
  .dock { flex-wrap: nowrap; padding: 10px 22px; }
  .brand { order: 0; flex: 0 0 auto; padding: 6px 16px; font-size: 20px; }
  .sheet div { scroll-margin-top: 136px; }
  .rail { position: sticky; top: 132px; }
  .sheet { padding: 32px 40px 36px; }
  .hero { margin: 20px; padding: 18px; }
  .spread { padding: 0 20px 20px; }
  footer { margin: 0 20px 28px; padding: 22px 26px; }
}

@media (min-width: 1180px) {
  .sheet { padding: 36px 52px 42px; }
  .dock-nav a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dock-nav a:hover,
  .rail-nav a:hover,
  .sub-form button:hover { transform: none; }
}

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