/* ===========================================================
   WinRAR 中文下载站 - 全站样式
   品牌主色: #133C8A (WinRAR 蓝)
   =========================================================== */

:root {
  --brand: #133c8a;
  --brand-dark: #0d2a63;
  --brand-light: #2a59c0;
  --accent: #ffb300;
  --rar-red: #c0392b;
  --rar-purple: #7d3c98;
  --rar-green: #1e8449;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(19, 60, 138, 0.08);
  --shadow-lg: 0 16px 48px rgba(19, 60, 138, 0.14);
  --max: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-light); }

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: #e8eefb;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; padding: 13px 28px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(19,60,138,.28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #2a2300; box-shadow: 0 8px 20px rgba(255,179,0,.32); }
.btn--accent:hover { background: #ffc333; color: #2a2300; }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: 16px 36px; }

/* ---------- Top notice bar ---------- */
.topbar {
  background: var(--brand-dark); color: #dbe6ff; font-size: .85rem;
  text-align: center; padding: 7px 16px;
}
.topbar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--brand); }
.brand img { height: 36px; width: auto; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav__links a:hover { color: var(--brand); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--brand); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, #e8eefb 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 60px 0 56px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 18px 28px; color: var(--muted); font-size: .92rem; }
.hero__meta b { color: var(--ink); }
.hero__visual { position: relative; }
.hero__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; text-align: center;
}
.hero__card img { margin: 0 auto 14px; width: 96px; }
.hero__version { font-size: .85rem; color: var(--muted); }
.hero__badges { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--brand);
  background: #e8eefb; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- Download cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dl-card__os { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.dl-card__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #e8eefb; color: var(--brand);
}
.dl-card__icon svg { width: 22px; height: 22px; }
.feat__icon svg { width: 28px; height: 28px; }
.feat__icon svg, .dl-card__icon svg { stroke-width: 1.8; }
.dl-card ul { list-style: none; padding: 0; margin: 16px 0 20px; color: var(--muted); font-size: .92rem; }
.dl-card li { padding: 4px 0; display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); }
.dl-card li:last-child { border-bottom: 0; }
.dl-card .btn { margin-top: auto; justify-content: center; }
.dl-card--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.dl-card--featured::before {
  content: "推荐"; position: absolute; top: -12px; right: 20px; background: var(--accent);
  color: #2a2300; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.feat__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
  background: linear-gradient(135deg, #e8eefb, #d7e2fa); color: var(--brand);
}
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Formats ---------- */
.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.format-tag {
  font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--brand); color: #fff; font-weight: 700; }
table.cmp tbody tr:nth-child(even) { background: var(--bg-soft); }
table.cmp td.yes { color: var(--rar-green); font-weight: 700; }
table.cmp td.no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; text-align: center; border-radius: 20px; padding: 50px 24px; margin: 0 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6ff; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Article / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--ink); }
.prose li { margin: .4em 0; }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-soft);
  margin: 1.4em 0; padding: 12px 20px; color: var(--muted); border-radius: 0 10px 10px 0;
}
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 24px; margin-bottom: 32px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ul { margin: 0; padding-left: 1.2em; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1830; color: #aab4c8; padding: 54px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #aab4c8; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid #1f2c4a; margin-top: 36px; padding-top: 22px;
  font-size: .84rem; color: #7e8aa3; text-align: center; line-height: 1.9;
}
.footer-bottom a { color: #9fb0cf; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 360px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px;
  }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0; border-radius: 16px; }
}
