/* WinScript 中文官网样式 - 扁平现代专业风 / 浅色明亮主题 */
/* 配色源自品牌 logo（蓝色线条钻石图形）：亮白底 + Windows 蓝强调 */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --panel: #ffffff;
  --panel-2: #f8fafd;
  --border: #e4eaf3;
  --border-strong: #cdd7e6;
  --text: #0f1e33;
  --text-2: #47586f;
  --text-3: #7b8aa1;
  --brand: #2563eb;
  --brand-2: #0284c7;
  --brand-deep: #1d4ed8;
  --success: #059669;
  --warn: #d97706;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 32px rgba(15, 30, 51, 0.08);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
}

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

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-deep); }

ul, ol { list-style: none; }

/* ========== 布局容器 ========== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ========== 头部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand .ver { font-size: 12px; font-weight: 500; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 20px; padding: 1px 9px; margin-left: 4px; background: var(--bg-soft); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: #eef3fa; }
.nav-links a.active { color: var(--brand); background: #e8f0fd; }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-deep) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 30px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }

.btn-lg { font-size: 17px; padding: 15px 36px; }
.btn-sm { font-size: 14px; padding: 9px 18px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ========== 页头 Hero ========== */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.10) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 18px 0 20px;
  color: var(--text);
}
.hero h1 .hl { color: var(--brand); }

.hero-lead { font-size: 18px; color: var(--text-2); margin-bottom: 30px; max-width: 520px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 5px 13px;
}
.badge svg { width: 14px; height: 14px; stroke: var(--brand); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-3); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; stroke: var(--text-3); }

.hero-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

/* ========== 数据统计条 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--text); }
.stat b em { font-style: normal; color: var(--brand); }
.stat span { font-size: 13px; color: var(--text-3); }

/* ========== 区块标题 ========== */
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: 30px; font-weight: 800; line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.sec-head p { color: var(--text-2); font-size: 16px; }

/* ========== 卡片网格 ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-3px); box-shadow: var(--shadow); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #e8f0fd;
  border: 1px solid #cfe0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 23px; height: 23px; stroke: var(--brand); }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-2); font-size: 14.5px; }

.card ul.checks { margin-top: 14px; display: grid; gap: 8px; }
.card ul.checks li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-2);
}
.card ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #e6f6f0;
  border: 1.5px solid var(--success);
}
.card ul.checks li::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 9.5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* ========== 场景横条 ========== */
.scene-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.scene-row:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: var(--shadow); }
.scene-row .num {
  font-size: 22px;
  font-weight: 800;
  color: #9dc3f7;
  font-variant-numeric: tabular-nums;
}
.scene-row h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.scene-row p { color: var(--text-2); font-size: 14.5px; }

/* ========== 使用步骤 ========== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f0fd;
  border: 1px solid #cfe0fb;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-2); font-size: 14px; }

/* ========== 代码块 ========== */
.code-panel {
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-panel .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: #f0f4fa;
}
.code-panel .bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #d4dce8; }
.code-panel .bar span { margin-left: 8px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.code-panel pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: #33465f;
}
.code-panel pre .cm { color: #8195ad; }
.code-panel pre .str { color: var(--brand-2); }
.code-panel pre .kw { color: var(--brand); }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
td { color: var(--text-2); }
td b { color: var(--text); font-weight: 600; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
}
.tag-blue { color: var(--brand); background: #e8f0fd; border: 1px solid #cfe0fb; }
.tag-green { color: var(--success); background: #e6f6f0; border: 1px solid #bfe6d6; }

/* ========== 下载卡片 ========== */
.dl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.dl-card.featured { border-color: rgba(37, 99, 235, 0.45); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), var(--shadow); }
.dl-card .tagline { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.dl-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.dl-card .desc { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.dl-specs { display: grid; gap: 9px; margin-bottom: 22px; }
.dl-specs li { display: flex; justify-content: space-between; font-size: 13.5px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.dl-specs li span { color: var(--text-3); }
.dl-specs li b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 12.5px; }

.hash-box {
  margin-top: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  word-break: break-all;
  line-height: 1.7;
}
.hash-box b { color: var(--text-2); font-weight: 600; }

/* ========== FAQ ========== */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary .chev { flex: none; width: 18px; height: 18px; stroke: var(--text-3); transition: transform 0.25s; }
.faq-item[open] summary .chev { transform: rotate(180deg); stroke: var(--brand); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; }
.faq-item .faq-body p + p { margin-top: 10px; }
.faq-item .faq-body code, .prose code { font-family: var(--mono); font-size: 13px; background: #e8f0fd; border-radius: 5px; padding: 2px 7px; color: var(--brand); }

/* ========== CTA 横幅 ========== */
.cta-band {
  background: linear-gradient(135deg, #e8f0fd 0%, #eef7fb 100%);
  border: 1px solid #cfe0fb;
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.cta-band p { color: var(--text-2); margin-bottom: 28px; }

/* ========== 页脚 ========== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 14px; color: var(--text); }
.footer-brand img { width: 26px; height: 26px; }
.footer-desc { color: var(--text-3); font-size: 13.5px; max-width: 300px; }
.site-footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-3); font-size: 14px; }
.site-footer ul a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 12.5px; }

/* ========== 下载弹窗 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 51, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-mask.show { opacity: 1; visibility: visible; }

.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(15, 30, 51, 0.18);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s;
}
.modal-mask.show .modal { transform: translateY(0) scale(1); }

.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.modal-head h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text); }
.modal-head h3 img { width: 26px; height: 26px; }
.modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.modal-close:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--text-2); }

.modal-body { padding: 20px 26px 26px; }
.modal-body .ver-line { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }
.modal-body .ver-line b { color: var(--brand); font-weight: 600; }

.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.qr-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px 14px;
  text-align: center;
}
.qr-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-item p { font-size: 13px; color: var(--text-2); font-weight: 500; line-height: 1.5; }

.modal-tips { display: grid; gap: 8px; }
.modal-tips li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--text-3); }
.modal-tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ========== 面包屑 ========== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0 0; font-size: 13px; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { width: 14px; height: 14px; stroke: var(--text-3); }
.breadcrumb .cur { color: var(--text-2); }

/* ========== 页面通用 Hero（内页） ========== */
.page-head { padding: 56px 0 10px; }
.page-head h1 { font-size: 34px; font-weight: 800; margin: 14px 0 14px; color: var(--text); }
.page-head .lead { color: var(--text-2); font-size: 17px; max-width: 720px; }

/* ========== 正文段落块 ========== */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 44px 0 16px; color: var(--text); }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.prose p { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }
.prose ul.dots { display: grid; gap: 10px; margin: 14px 0 20px; }
.prose ul.dots li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.prose ul.dots li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}
.prose .note {
  border-left: 3px solid var(--brand);
  background: #f0f6ff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text-2);
  margin: 18px 0;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 33px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-toggle { display: flex; }
  .qr-grid { grid-template-columns: 1fr; }
  .scene-row { grid-template-columns: 40px 1fr; }
  .scene-row .arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
