:root {
  --bg: #e0e5ec;
  --ink: #15171a;
  --muted: #5e6670;
  --panel: rgba(255, 255, 255, .78);
  --panel-strong: rgba(248, 250, 252, .94);
  --line: rgba(22, 26, 30, .14);
  --yellow: #ffcc00;
  --yellow-dark: #c99a00;
  --red: #8b0000;
  --red-soft: #b52b2b;
  --green: #2e7d62;
  --shadow: 0 14px 34px rgba(12, 18, 24, .12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.68;
  background:
    linear-gradient(90deg, rgba(139, 0, 0, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 23, 26, .045) 1px, transparent 1px),
    radial-gradient(circle at 14% 8%, rgba(255, 204, 0, .12), transparent 24%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, .22) 1px, transparent 1px, transparent 4px);
}

a {
  color: inherit;
}

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

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--yellow);
  color: #141414;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  background: rgba(224, 229, 236, .92);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: url("../favicon.ico") center / contain no-repeat;
  border: 0;
  clip-path: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.site-nav a,
.nav-download {
  min-height: 40px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  color: #242424;
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 204, 0, .35);
}

.nav-download {
  margin-left: 8px;
  background: var(--yellow);
  border: 1px solid rgba(0, 0, 0, .28);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .16);
}

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

.hero {
  min-height: auto;
  padding: 50px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 34px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2a2f35;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 9px;
  background: var(--yellow);
  border: 1px solid rgba(0, 0, 0, .25);
}

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

h1 {
  font-size: clamp(38px, 6vw, 66px);
  max-width: 760px;
  font-weight: 950;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 950;
}

h3 {
  font-size: 20px;
  font-weight: 900;
}

.subtitle {
  margin: 16px 0 0;
  font-size: clamp(18px, 2.2vw, 25px);
  color: #30363d;
  font-weight: 800;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #343b43;
  font-size: 17px;
}

.hero-actions,
.section-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #171717;
  background: var(--yellow);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .18);
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--panel-strong);
  box-shadow: none;
}

.hero-meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-chip {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
}

.meta-chip b {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.meta-chip span {
  display: block;
  margin-top: 2px;
  font-weight: 900;
}

.hero-media {
  position: relative;
  min-height: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "ARCHIVE VIEW";
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  color: #141414;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(.9);
}

.hero-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.scan-card {
  position: static;
  width: 100%;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .26);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, .92);
  box-shadow: var(--shadow);
}

.scan-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.scan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 62px 0;
}

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

.section-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.band {
  position: relative;
  background: rgba(255, 255, 255, .38);
  border-block: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, .38);
  clip-path: inset(0 -100vmax);
}

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

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

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

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

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

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(16, 20, 24, .08);
  height: 100%;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 4px solid rgba(255, 204, 0, .74);
}

.card p,
.card li {
  color: #3d454e;
}

.card p {
  margin: 10px 0 0;
}

.card ul,
.plain-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 20px;
  align-items: stretch;
}

.screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: var(--radius);
  background: #101114;
}

.screen picture {
  display: block;
}

.screen img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.caption {
  margin-top: auto;
  padding: 10px 12px;
  color: #e8edf2;
  background: #17191d;
  font-size: 13px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .68);
}

.timeline-item time,
.tag {
  color: #181818;
  font-weight: 950;
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(0, 0, 0, .24);
  border-radius: 999px;
  background: rgba(255, 204, 0, .72);
  font-size: 13px;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #3d454e;
}

.index-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.index-card a {
  margin-top: 16px;
  color: var(--red);
  font-weight: 950;
  text-decoration: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #30363d;
  text-decoration: none;
  font-weight: 800;
}

.page-hero {
  padding: 70px 0 44px;
}

.page-hero .lead {
  max-width: 850px;
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.info-table th,
.info-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  color: #2f363d;
  background: rgba(255, 204, 0, .24);
}

.notice {
  padding: 16px 18px;
  border: 1px solid rgba(139, 0, 0, .26);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.site-footer {
  padding: 40px 0;
  color: #dfe5eb;
  background: #15171a;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.site-footer p {
  margin: 6px 0 0;
  color: #aeb7c2;
}

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

.footer-links a {
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 800;
}

.friend-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.friend-links h3 {
  margin-bottom: 10px;
  color: #f5f7fa;
  font-size: 15px;
}

.friend-links .link-row a {
  color: #dfe5eb;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248, 250, 252, .98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .nav-download {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
  }

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

  .media-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section,
  .hero,
  .footer-inner {
    width: min(100% - 22px, var(--max));
  }

  .hero {
    padding-top: 34px;
    gap: 24px;
  }

  .hero-meta,
  .grid-4,
  .grid-5,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
}

/* Protocol-only components: isolated from the original page selectors. */
.my-seo-home,
.my-news-page {
  color: var(--ink, #18212b);
}

.my-seo-home {
  width: min(100% - 32px, var(--max, 1120px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.my-seo-home-inner,
.my-news-shell {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line, rgba(17, 24, 39, .16));
  border-radius: var(--radius, 8px);
  background: var(--panel, var(--paper, #ffffff));
  box-shadow: var(--shadow, 0 12px 30px rgba(0, 0, 0, .12));
}

.my-seo-home-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.my-seo-home-heading p,
.my-news-meta,
.my-news-empty {
  margin: 0;
  color: var(--muted, #5b6672);
}

.my-seo-home-heading h2,
.my-news-title {
  margin: 0;
}

.my-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.my-news-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, rgba(17, 24, 39, .16));
  border-radius: var(--radius, 8px);
  background: var(--panel-strong, var(--paper, #ffffff));
}

.my-news-card h2,
.my-news-card h3,
.my-news-card p {
  margin-top: 0;
}

.my-news-card time,
.my-news-card p {
  color: var(--muted, #5b6672);
}

.my-news-card a,
.my-news-more,
.my-news-nav a {
  font-weight: 800;
  text-decoration: none;
}

.my-news-more {
  display: inline-block;
  margin-top: 20px;
}

.my-news-page {
  min-height: 100vh;
  background: var(--page, var(--bg, var(--paper, #f6f7f9)));
}

.my-news-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.my-news-header,
.my-news-footer {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 24px 0;
}

.my-news-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.my-news-article h1 {
  margin: 14px 0 8px;
}

.my-news-summary,
.my-news-content {
  margin: 20px 0 0;
}

.my-friend-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.my-friend-links,
.friendly-links .my-friend-link,
.link-row .my-friend-link,
.grid .my-friend-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.my-friend-link {
  color: inherit;
  text-decoration: none;
}

.grid .my-friend-link {
  display: block;
  padding: 16px;
  border: 1px solid var(--line, rgba(17, 24, 39, .16));
  border-radius: var(--radius, 8px);
  background: var(--panel-strong, var(--paper, #ffffff));
  font-weight: 800;
}

a.exit-sign {
  display: grid;
  place-content: center;
  text-align: center;
  text-decoration: none;
}

.download-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
}

.download-confirm-overlay.is-open {
  display: grid;
}

.download-confirm-dialog {
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid var(--line, rgba(255, 255, 255, .24));
  border-radius: var(--radius, 8px);
  color: var(--ink, #172033);
  background: var(--panel-solid, var(--panel-strong, var(--paper, #ffffff)));
  box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, .42));
}

.download-confirm-dialog h2,
.download-confirm-dialog p {
  margin: 0;
}

.download-confirm-dialog p {
  margin-top: 10px;
  color: var(--muted, #5b6672);
}

.download-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.download-confirm-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line, rgba(17, 24, 39, .18));
  border-radius: 6px;
  color: inherit;
  background: var(--panel-strong, var(--paper, #ffffff));
  cursor: pointer;
}

.download-confirm-actions [data-download-confirm] {
  font-weight: 800;
}

body.download-confirm-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .my-news-grid {
    grid-template-columns: 1fr;
  }
  .my-seo-home-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}