/* ============================================================
   OpenSpeedy 中文官网  www.openspeedy.com.cn
   配色来源：官方 Logo（火焰 S）—— 火焰红橙渐变 + 深炭黑
   ============================================================ */
:root {
  --brand-red: #E6332B;
  --brand-orange: #FF8A00;
  --brand-gradient: linear-gradient(135deg, #E6332B 0%, #FF6A00 55%, #FF8A00 100%);
  --ink: #15151C;
  --ink-2: #1E1E28;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #5F6470;
  --line: #E6E8EC;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(21, 21, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(21, 21, 28, 0.12);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-red); text-decoration: none; }
a:hover { color: var(--brand-orange); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 21, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand span em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  color: #C9CCD6;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-menu a.active { color: #fff; background: rgba(230, 51, 43, 0.25); }
.nav-cta {
  display: inline-block;
  background: var(--brand-gradient);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: 8px;
}
.nav-cta:hover { opacity: .9; background: var(--brand-gradient) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 106, 0, 0.28), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(230, 51, 43, 0.22), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 92px 20px 100px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #FFC9A8;
  border: 1px solid rgba(255, 138, 0, 0.4);
  background: rgba(230, 51, 43, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  max-width: 680px;
  margin: 0 auto 36px;
  color: #B9BDCB;
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 51, 43, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; opacity: .94; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span { color: #9AA0AF; font-size: 0.88rem; }

/* ---------- 通用布局 ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 76px 20px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.section-head p { color: var(--text-2); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 51, 43, 0.35);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230, 51, 43, 0.1), rgba(255, 138, 0, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--brand-red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- 深色横幅版块 ---------- */
.band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 106, 0, 0.2), transparent 60%),
    var(--ink);
  color: #fff;
}
.band .section-head h2 { color: #fff; }
.band .section-head p { color: #B9BDCB; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- 表格 ---------- */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #FBF3EE; color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td code {
  background: #F2EDEA;
  color: var(--brand-red);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: Consolas, "Courier New", monospace;
}

/* ---------- 警告/提示框 ---------- */
.notice {
  border-left: 4px solid var(--brand-red);
  background: #FDF1EF;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.notice.warn { border-color: #E6A23C; background: #FDF6EC; }
.notice h4 { color: var(--ink); margin-bottom: 8px; font-size: 1rem; }
.notice ul { margin-left: 20px; color: var(--text-2); font-size: 0.95rem; }
.notice li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  transform: rotate(45deg);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-2); font-size: 0.96rem; }

/* ---------- 下载页 ---------- */
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  text-align: center;
}
.dl-card .ver {
  display: inline-block;
  background: linear-gradient(135deg, rgba(230, 51, 43, 0.1), rgba(255, 138, 0, 0.14));
  color: var(--brand-red);
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.dl-meta { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 16px 0 24px; color: var(--text-2); font-size: 0.9rem; }
.dl-meta b { color: var(--ink); }

.code-block {
  background: var(--ink);
  color: #E8EAF0;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  text-align: left;
  margin: 12px 0;
}
.code-block .cmt { color: #8A90A2; }

/* ---------- 下载弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21, 21, 28, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: pop .25s ease;
  overflow: hidden;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.1rem; color: var(--ink); }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: #F2F3F5; }
.modal-close svg { width: 16px; height: 16px; stroke: var(--text-2); stroke-width: 2.4; }
.modal-body { padding: 28px 26px 32px; }
.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qr-box { text-align: center; }
.qr-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  margin-bottom: 12px;
}
.qr-box p { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.qr-box p span { display: block; font-weight: 400; color: var(--text-2); font-size: 0.82rem; margin-top: 2px; }
.modal-foot { padding: 0 26px 24px; color: var(--text-2); font-size: 0.84rem; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #9AA0AF;
  padding: 56px 20px 30px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-inner h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { color: #9AA0AF; font-size: 0.9rem; }
.footer-inner a:hover { color: #FF8A00; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-inner p.desc { font-size: 0.88rem; line-height: 1.7; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 0.88rem;
  color: var(--text-2);
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .sep { margin: 0 8px; color: #C3C7D0; }

.page-title { background: var(--ink); color: #fff; padding: 64px 20px; text-align: center; }
.page-title h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-title h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-title p { color: #B9BDCB; max-width: 640px; margin: 0 auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink-2);
    flex-direction: column;
    padding: 14px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .qr-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 20px; }
  .hero { padding: 64px 20px 72px; }
  .hero-stats { gap: 32px; }
  .step { flex-direction: column; }
}
