/* WPS Supervisor — Corporate Navy + Gold */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1F3A;
  --navy-deep: #061428;
  --navy-mid: #132d52;
  --navy-soft: #1a3a66;
  --gold: #C9A227;
  --gold-light: #e0c04a;
  --gold-dark: #a6851c;
  --cream: #f7f4eb;
  --ink: #1c2430;
  --muted: #5a6574;
  --line: #d9d2c0;
  --white: #ffffff;
  --max-w: 1100px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-dark); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 31, 58, 0.96);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--gold-light); }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1.3;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.12);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover:not(:disabled) {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ——— Hero ——— */
.hero {
  position: relative;
  background:
    linear-gradient(145deg, #061428 0%, #0B1F3A 42%, #163a6b 78%, #0f2a4d 100%);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23C9A227' stroke-opacity='0.18' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='28' fill='none' stroke='%23C9A227' stroke-opacity='0.12' stroke-width='1'/%3E%3Cpath d='M20 20h20v20H20zM80 80h20v20H80z' fill='none' stroke='%23ffffff' stroke-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-brand {
  display: inline-block;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  max-width: 680px;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Sections ——— */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #efe9d8;
}

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}
.section-navy h2,
.section-navy h3 { color: var(--white); }
.section-navy .section-desc { color: rgba(255, 255, 255, 0.75); }

.section-header {
  margin-bottom: 40px;
  max-width: 760px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--muted);
  font-size: 1.02rem;
}

.section p + p { margin-top: 14px; }

.prose p {
  margin-bottom: 16px;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.55rem;
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--navy-soft);
}

.prose ul, .prose ol {
  margin: 12px 0 18px 1.4em;
  color: var(--ink);
}

.prose li { margin-bottom: 8px; }

/* ——— Numbered capability bands ——— */
.band-list { display: flex; flex-direction: column; gap: 0; }

.band {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.band:first-child { border-top: 1px solid var(--line); }

.band-num {
  font-family: "Noto Serif SC", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.band h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.band p { color: var(--muted); }

.band-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--gold-dark);
}
.band-icon svg { width: 22px; height: 22px; }

/* ——— Feature deep dive ——— */
.deep-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.deep-item {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}

.deep-item:last-child { border-bottom: none; padding-bottom: 0; }

.deep-item h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deep-item h3 svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}

.deep-item p { color: var(--muted); }

/* ——— Stats / endorsement ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0 28px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  border-top: 2px solid var(--gold);
}

.stat-value {
  font-family: "Noto Serif SC", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.endorse-text { max-width: 820px; }

/* ——— Platform entries ——— */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.platform-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.platform-row:first-child { border-top: 1px solid var(--line); }

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: rgba(11, 31, 58, 0.06);
  border-radius: 6px;
}
.platform-icon svg { width: 28px; height: 28px; }

.platform-row h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.platform-row p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ——— Comparison ——— */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-family: "Noto Serif SC", serif;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.compare-table thead th:first-child { border-radius: 4px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 4px 0 0; }

.compare-table tbody tr:nth-child(even) { background: rgba(11, 31, 58, 0.03); }

.compare-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.compare-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Testimonials as quote strips ——— */
.quote-strip {
  padding: 28px 0 28px 28px;
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.quote-strip:last-child { border-bottom: none; }

.quote-strip blockquote {
  font-family: "Noto Serif SC", serif;
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 12px;
  quotes: "「" "」";
}

.quote-strip blockquote::before { content: open-quote; color: var(--gold); }
.quote-strip blockquote::after { content: close-quote; color: var(--gold); }

.quote-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— FAQ definition list ——— */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-list dt {
  font-family: "Noto Serif SC", serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
}

.faq-list dt:first-child { border-top: none; padding-top: 0; }

.faq-list dd {
  color: var(--muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ——— CTA band ——— */
.cta-band {
  background:
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23C9A227' stroke-opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ——— Download page ——— */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L100 50L50 100L0 50z' fill='none' stroke='%23C9A227' stroke-opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
}

.download-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.download-spotlight h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.download-spotlight .lead { color: var(--muted); margin-bottom: 22px; }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.req-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.req-block ul {
  list-style: none;
  margin-top: 8px;
}

.req-block li {
  padding: 8px 0 8px 18px;
  position: relative;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}

.req-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 1px;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Noto Serif SC", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p { color: var(--muted); }

.changelog {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.changelog-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-item:first-child { border-top: 1px solid var(--line); }

.changelog-ver {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.changelog-item p { color: var(--muted); }

/* ——— Article page ——— */
.article-hero {
  background: linear-gradient(160deg, #efe9d8 0%, #f7f4eb 50%, #e8e0cc 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  max-width: 800px;
  margin-bottom: 16px;
}

.article-hero .lead {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
}

.article-body {
  padding: 48px 0 72px;
}

.article-cta {
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.article-cta p {
  flex: 1 1 280px;
  color: var(--muted);
  margin: 0;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 32px;
  font-size: 0.9rem;
}

.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--gold-light); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-security {
  color: rgba(255, 255, 255, 0.88);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.footer-security strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-copy { line-height: 1.7; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

/* ——— Spin (required for download.js loader) ——— */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .download-spotlight { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .platform-row {
    grid-template-columns: 48px 1fr;
  }
  .platform-row .btn {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .compare-table { display: block; overflow-x: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 240px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .main-nav a.active {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }

  .band { grid-template-columns: 56px 1fr; gap: 16px; }
  .band-num { font-size: 1.8rem; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 56px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .platform-row .btn { width: 100%; }
}
