/* ==========================================================================
   Kopia 官网样式 — www.kopia.cn
   扁平 / 现代 / 专业 · 浅色主题 · 品牌蓝 #2f80ff
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --brand: #2f80ff;
  --brand-dark: #1a5fd0;
  --brand-deep: #174ea6;
  --brand-light: #eaf2ff;
  --brand-soft: #f4f8ff;

  --ink: #16233a;
  --ink-soft: #4a5873;
  --ink-mute: #7c8aa0;
  --line: #e5ebf3;
  --line-strong: #d5deea;

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-alt: #eef4ff;

  --ok: #12a06b;
  --warn: #f0a020;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;

  --shadow-sm: 0 2px 10px rgba(23, 78, 166, .06);
  --shadow: 0 10px 30px rgba(23, 78, 166, .10);
  --shadow-lg: 0 24px 60px rgba(23, 78, 166, .16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --header-h: 68px;
  --content-w: 1180px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(47, 128, 255, .5); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(47, 128, 255, .18); }

/* 无障碍：跳转链接 */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-dark); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- 布局工具 ---------- */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--alt { background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-dark);
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand);
}
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-title { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 16px; letter-spacing: -.01em; }
.sec-desc { color: var(--ink-soft); font-size: 17px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
.brand .logo { width: 38px; height: 24px; }
.brand .brand-name { font-size: 20px; letter-spacing: -.01em; }
.brand .brand-name span { color: var(--brand); }
.brand small { display: block; font-size: 11px; color: var(--ink-mute); font-weight: 500; line-height: 1; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px;
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-light); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(47, 128, 255, .28);
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: .2s;
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 28px; border-radius: 12px; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 28px rgba(47, 128, 255, .32); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.btn-lg { padding: 17px 32px; font-size: 17px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(47, 128, 255, .14), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(47, 128, 255, .08), transparent 55%),
    #fff;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.02em; margin: 18px 0 20px; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; color: var(--ink-mute); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.hero-visual {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero-visual .window-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.hero-visual .window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.hero-visual .window-bar i:nth-child(1) { background: #ff5f57; }
.hero-visual .window-bar i:nth-child(2) { background: #febc2e; }
.hero-visual .window-bar i:nth-child(3) { background: #28c840; }
.hv-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hv-sub { font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 22px; color: var(--brand-dark); }
.stat span { font-size: 12px; color: var(--ink-mute); }
.code-block {
  background: #0f1b2d; color: #dbe7f5; border-radius: var(--radius-sm);
  padding: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.7;
  overflow-x: auto;
}
.code-block .c { color: #5b7ba6; }
.code-block .k { color: #7fb3ff; }
.code-block .p { color: #5fd08a; }

/* ---------- 徽章 / 标签 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 13px; font-weight: 600;
}
.badge svg { width: 15px; height: 15px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand-dark); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* 特性行（图标 + 文本） */
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row .icon { flex: 0 0 auto; width: 44px; height: 44px; margin: 0; }

/* 列表勾选项 */
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; color: var(--ink-soft); font-size: 15.5px;
}
.check-list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  background: var(--brand-light); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231a5fd0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* ---------- 使用场景 ---------- */
.scenario {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.scenario .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.scenario h3 { font-size: 18px; margin-bottom: 8px; }
.scenario p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.compare th, table.compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--ok); font-weight: 700; }
table.compare td.no { color: var(--ink-mute); }
table.compare th:first-child, table.compare td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 下载中心 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: transform .18s, box-shadow .18s;
  position: relative;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-card .os {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.dl-card .os svg { width: 32px; height: 32px; }
.dl-card h3 { font-size: 20px; margin-bottom: 4px; }
.dl-card .ver { color: var(--ink-mute); font-size: 14px; margin-bottom: 18px; }
.dl-card .arch { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
.tag-recommend {
  position: absolute; top: 16px; right: 16px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- 弹窗（下载） ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 27, 45, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto;  left: 0;
  right: 0;
  top: 0;
  bottom: 0; }
button { outline: none } 
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(14px); transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { padding: 26px 30px 0; display: flex; align-items: flex-start; gap: 14px; }
.modal-head h2 { font-size: 22px; }
.modal-head p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
.modal-close {
  margin-left: auto; flex: 0 0 auto; width: 36px; height: 36px; border: 0; background: transparent;
  border-radius: 9px; color: var(--ink-mute); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-body { padding: 24px 30px 8px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px;
  text-align: center; background: var(--bg-soft);
}
.qr-card .qr-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.qr-card .qr-hint { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 12px; }
.qr-card img { width: 140px; height: 140px; margin: 0 auto; border-radius: 8px; border: 6px solid #fff; box-shadow: var(--shadow-sm); }
.modal-body .note { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 14px; }
.modal-foot {
  padding: 14px 30px 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: center;
}
.modal-foot .divider { width: 100%; text-align: center; color: var(--ink-mute); font-size: 13px; position: relative; }
.modal-foot .divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line);
}
.modal-foot .divider span { position: relative; background: #fff; padding: 0 12px; }

/* ---------- 关于 / FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 14px; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; color: var(--brand); font-weight: 400; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1b2d; color: #a9b8cc; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: #a9b8cc; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: #7c8aa0;
}
.footer-bottom a { color: #a9b8cc; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.footer-logo .logo { width: 34px; height: 22px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 14px; color: var(--ink-mute); margin-bottom: 8px; }
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--brand-dark); }
.crumb .sep { margin: 0 6px; }

/* 页面顶部通用横幅 */
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; letter-spacing: -.01em; }
.page-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 760px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 6px 0 0; justify-content: center; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
