/* WPS 落地站第1套：官方企业红官网 */
:root {
  --bg: #f7f4f2;
  --card: #ffffff;
  --text: #1f1a17;
  --muted: #5c534c;
  --brand: #c41e3a;
  --brand-dark: #9a1830;
  --line: #e8e0d8;
  --footer: #2a2420;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(42, 36, 32, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand:hover { color: var(--text); }

.brand svg { width: 32px; height: 32px; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px 10px;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--brand); }

.main-nav a.active {
  color: var(--brand);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transition: background 0.2s ease;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.22);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: #fdecef;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 17px;
}

.btn-block { width: 100%; }

/* ========== Hero ========== */
.hero {
  background: var(--bg);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-kicker svg { width: 16px; height: 16px; }

.hero h1 {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero .lead,
.hero p {
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

.capability-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.capability-head {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 18px 22px;
}

.capability-head h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.capability-head p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
  color: #fff;
}

.capability-list { list-style: none; }

.capability-list li {
  display: flex;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.capability-list li:last-child { border-bottom: 0; }

.capability-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fdecef;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capability-icon svg { width: 18px; height: 18px; }

.capability-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.capability-list span {
  font-size: 13px;
  color: var(--muted);
}

/* ========== Sections ========== */
.section {
  padding: 72px 0;
}

.section-white { background: var(--card); }
.section-warm { background: var(--bg); }

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-head p { color: var(--muted); margin-bottom: 10px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.section-white .card {
  background: var(--bg);
}

.card h3 {
  font-size: 18px;
  margin: 12px 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fdecef;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 22px; height: 22px; }

/* ========== Platform / download cards ========== */
.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-card h3 { font-size: 18px; }

.platform-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.platform-meta {
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* ========== Deep features ========== */
.deep-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}

.deep-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.deep-item p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* ========== Stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.stat .num {
  font-size: 28px;
  font-weight: 750;
  color: var(--brand);
  line-height: 1.2;
}

.stat .lbl {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ========== Table ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #faf7f5;
  font-weight: 700;
  color: var(--text);
}

td { color: var(--muted); }

tr:last-child td { border-bottom: 0; }

td.ok { color: var(--brand-dark); font-weight: 600; }

/* ========== Quotes ========== */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.quote p {
  color: var(--muted);
  margin-bottom: 16px;
}

.quote footer {
  background: transparent;
  color: var(--text);
  padding: 0;
}

.quote .name { font-weight: 700; font-size: 15px; }
.quote .role { font-size: 13px; color: var(--muted); }

/* ========== FAQ ========== */
.faq-list { display: grid; gap: 12px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.section-white details { background: var(--bg); }

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  float: right;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }

details p {
  color: var(--muted);
  padding-bottom: 14px;
}

/* ========== Steps ========== */
.steps { display: grid; gap: 16px; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); margin-bottom: 8px; }

/* ========== Download hero ========== */
.download-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 36px;
  box-shadow: var(--shadow);
}

.download-hero h2 { font-size: 26px; margin-bottom: 12px; }
.download-hero p { color: var(--muted); margin-bottom: 12px; }
.download-hero .hero-actions { margin-top: 20px; }

.req-table + p,
.update-block p { color: var(--muted); margin-bottom: 12px; }

.update-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}

.update-block h3 { margin-bottom: 10px; }

/* ========== Article (zh-cn) ========== */
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 44px 36px;
  box-shadow: var(--shadow);
}

.article h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article .lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 22px;
}

.article h2 {
  font-size: 24px;
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.article h2:first-of-type { border-top: 0; padding-top: 0; }

.article h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.article p {
  color: var(--muted);
  margin-bottom: 14px;
}

.article ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

.article li { margin-bottom: 8px; }

.cta-bar {
  margin-top: 28px;
  padding: 22px;
  background: #fdecef;
  border: 1px solid #f3c8d0;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cta-bar p {
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer);
  color: #d8cfc6;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 224, 216, 0.16);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  font-size: 14px;
  line-height: 1.7;
}

.site-footer ul { list-style: none; }

.site-footer a { color: #e8d4d7; }
.site-footer a:hover { color: #fff; }

.footer-safe {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.footer-safe svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #f0b8c0;
}

.copyright {
  padding-top: 20px;
  font-size: 13px;
  color: #a89b92;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 { font-size: 32px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .main-nav a { padding: 8px 8px 10px; font-size: 14px; }
  .main-nav a.active::after { left: 8px; right: 8px; }

  .hero { padding: 40px 0 36px; }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 28px; }
  .section { padding: 48px 0; }
  .article { padding: 26px 20px; }
  .download-hero { padding: 24px 20px; }
}
