:root {
  --mist-pink: #fadbd8;
  --soft-pink: #fff3f5;
  --hot-pink: #ff4081;
  --deep-pink: #c2185b;
  --ice-blue: #e6f7ff;
  --ink: #21151e;
  --muted: #6f5b67;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 64, 129, 0.28);
  --shadow: 0 22px 70px rgba(194, 24, 91, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px 100%),
    var(--mist-pink);
  background-size: 34px 34px, 34px 34px, auto;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(250, 219, 216, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  background: var(--hot-pink);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(255, 64, 129, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #3e2a36;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep-pink);
  background: rgba(255, 255, 255, 0.68);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--deep-pink);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--hot-pink);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 64, 129, 0.26);
}

.button.secondary {
  background: var(--ink);
  color: var(--ice-blue);
  box-shadow: none;
}

.button.ghost {
  background: #fff;
  color: var(--deep-pink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 42px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.86) 0 47%, rgba(33, 21, 30, 0.78) 47% 100%),
    linear-gradient(135deg, transparent 0 65%, rgba(230, 247, 255, 0.62) 65% 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--deep-pink);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--hot-pink);
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 8vw, 92px);
  max-width: 8em;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  color: #4f3e49;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.terminal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.terminal-strip span {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #5d4654;
  font-size: 13px;
  font-weight: 700;
}

.countdown {
  margin-top: 22px;
  padding: 14px 16px;
  width: fit-content;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ice-blue);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.countdown strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #120b10;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.monitor-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(230, 247, 255, 0.48);
  color: var(--ice-blue);
  background: rgba(33, 21, 30, 0.7);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: 70px 0;
  scroll-margin-top: 92px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.45);
}

.section.dark {
  background: #21151e;
  color: #fff;
}

.section.dark p,
.section.dark .muted {
  color: #f9dce7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p,
.narrow {
  max-width: 760px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.info-panel,
.faq-item,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(194, 24, 91, 0.08);
}

.card {
  padding: 20px;
}

.card h3 {
  color: var(--deep-pink);
  margin-bottom: 8px;
}

.card p,
.timeline-item p,
.faq-item p,
.article-body p,
.article-body li {
  color: #5e4a56;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card div {
  padding: 18px;
}

.content-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.content-scene {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #21151e;
  box-shadow: var(--shadow);
}

.content-scene img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.content-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(33, 21, 30, 0.84));
  pointer-events: none;
}

.content-scene figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}

.content-scene figcaption strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.content-scene figcaption span {
  max-width: 310px;
  color: var(--ice-blue);
  font-weight: 800;
  text-align: right;
}

.content-brief {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 36px rgba(194, 24, 91, 0.08);
}

.brief-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ice-blue);
  font-size: 12px;
  font-weight: 900;
}

.content-brief h3 {
  color: var(--deep-pink);
  font-size: clamp(24px, 3vw, 34px);
}

.content-brief p {
  color: #5e4a56;
}

.content-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-points li {
  padding: 13px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 64, 129, 0.18);
}

.content-points b {
  display: block;
  color: var(--deep-pink);
}

.content-points span {
  display: block;
  margin-top: 3px;
  color: #5e4a56;
  font-size: 14px;
}

.content-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.content-mini-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(194, 24, 91, 0.08);
}

.content-mini-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-mini-grid div {
  padding: 14px;
}

.content-mini-grid h3 {
  margin-bottom: 6px;
  color: var(--deep-pink);
  font-size: 18px;
}

.content-mini-grid p {
  color: #5e4a56;
  font-size: 14px;
  line-height: 1.58;
}

.info-panel {
  padding: 22px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 64, 129, 0.18);
}

.fact b {
  display: block;
  color: var(--deep-pink);
  font-size: 13px;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: #3c2b35;
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 62px;
  border-left: 4px solid var(--hot-pink);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--hot-pink);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 18px;
}

.timeline-item time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--deep-pink);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 17px 18px;
  font-weight: 900;
  color: #3b2633;
}

.faq-item p {
  padding: 0 18px 18px;
}

.index-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-links a {
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #3c2b35;
  font-weight: 900;
}

.index-links span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: #513744;
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(250, 219, 216, 0.62)),
    var(--mist-pink);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body ul,
.article-body ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.updated {
  margin-top: 18px;
  color: #6a5360;
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 36px 0;
  background: #21151e;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.site-footer p,
.site-footer a {
  color: #f7dce8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(230, 247, 255, 0.24);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-inner,
  .grid.two,
  .grid.three,
  .content-showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(33, 21, 30, 0.28));
  }

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

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

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

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand span:last-child {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav.is-open,
  .terminal-strip,
  .facts,
  .content-mini-grid,
  .index-links {
    grid-template-columns: 1fr;
  }

  .content-scene,
  .content-scene img {
    min-height: 300px;
  }

  .content-scene figcaption {
    display: block;
  }

  .content-scene figcaption span {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .hero-actions,
  .section-actions {
    width: 100%;
  }

  .button,
  button.button {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }
}

/* Protocol-only additions for generated news and managed download confirmation. */
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 18px; background: rgba(33,21,30,.64); backdrop-filter: blur(8px); }
.download-confirm-panel { width: min(460px,100%); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff8fb; color: var(--ink); box-shadow: var(--shadow); }
.download-confirm-panel h2 { margin: 0 0 10px; line-height: 1.2; }
.download-confirm-panel p { margin: 0; color: var(--muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.download-confirm-cancel, .download-confirm-continue { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 800; cursor: pointer; }
.download-confirm-cancel { background: #fff; color: var(--ink); }
.download-confirm-continue { border-color: var(--hot-pink); background: var(--hot-pink); color: #fff; }
body.my-news-page { background: var(--soft-pink); }
.my-news-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 72px; }
.my-news-back { display: inline-flex; margin-bottom: 28px; color: var(--deep-pink); font-weight: 800; }
.my-news-header { margin-bottom: 30px; }
.my-news-header h1 { margin: 0 0 8px; }
.my-news-header p, .my-news-meta { color: var(--muted); }
.my-news-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.my-home-news { scroll-margin-top: 92px; }
.my-news-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.my-news-heading > div { flex: 1 1 280px; min-width: 0; }
.my-news-heading > a { flex: 0 0 auto; }
.my-news-heading h2 { margin: 0 0 12px; }
.my-news-heading p { margin: 0; }
.my-home-news .my-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.my-news-grid > *, .my-news-article, .my-news-header { min-width: 0; overflow-wrap: anywhere; }
.my-news-empty { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); text-align: center; }
.my-news-grid:has(.my-news-card) + .my-news-empty { display: none; }
.my-news-header h1, .my-news-article h1 { max-width: none; font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
@media (max-width: 920px) { .my-home-news .my-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .my-home-news .my-news-grid { grid-template-columns: minmax(0, 1fr); } .my-news-heading > a { width: 100%; } }
.my-news-card, .my-news-article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.my-news-card h2, .my-news-card h3, .my-news-article h1 { margin-top: 0; }
.my-news-card time { display: block; color: var(--muted); font-size: .9rem; }
.my-news-card p, .my-news-content { color: var(--muted); }
.my-news-card a, .my-news-nav a { color: var(--deep-pink); font-weight: 800; }
.my-news-summary { color: var(--ink); font-weight: 700; }
.my-news-content { margin-top: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-news-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
@media (max-width: 520px) { .my-news-shell { width: min(100% - 24px, 900px); padding: 36px 0 56px; } .download-confirm-actions { justify-content: stretch; } .download-confirm-cancel, .download-confirm-continue { flex: 1 1 120px; } }
