/* ============================================================
   K-Lite Codec Pack 官网 - 全局样式
   深色低调风格，避免模板化观感
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-soft: #0f151d;
  --surface: #131b25;
  --surface-2: #182230;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7edf3;
  --text-2: #a7b3c0;
  --text-3: #6f7d8c;
  --accent: #5b8def;
  --accent-2: #3f6fd8;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --green: #3ecf8e;
  --amber: #e8b04b;
  --red: #e05d5d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #8fb4ff; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-cta {
  margin-left: 10px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 9px 18px !important;
  border-radius: 9px;
}
.nav-cta:hover { background: var(--accent-2); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 80px;
}
.footer-inner {
  padding: 48px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: var(--text); letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--text-3); font-size: 13.5px; margin-top: 12px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-head h2 { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: .2px; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,20,.96) 0%, rgba(11,15,20,.82) 42%, rgba(11,15,20,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 90px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(91,141,239,.3);
  color: #9db9f5;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: .3px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--text-2); font-size: 17px; margin-top: 20px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,141,239,.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats .num { font-size: 26px; font-weight: 700; color: var(--text); }
.hero-stats .lbl { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 21px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 图片横幅 ---------- */
.media-band { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.media-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,15,20,.9), rgba(11,15,20,.15) 60%); }
.media-band .cap { position: relative; z-index: 1; padding: 30px; max-width: 560px; }
.media-band .cap h3 { font-size: 22px; margin-bottom: 8px; }
.media-band .cap p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 双栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 28px; margin-bottom: 16px; line-height: 1.35; }
.split p { color: var(--text-2); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 8px; }
.check-list li { padding: 7px 0 7px 30px; position: relative; color: var(--text-2); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--green);
  font-weight: 700;
}

/* ---------- 下载区块 ---------- */
.download-panel {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.download-panel h3 { font-size: 22px; margin-bottom: 18px; }
.dl-list { list-style: none; }
.dl-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; color: var(--text-2); font-size: 14.5px; }
.dl-list li i { color: var(--green); margin-top: 4px; }
.dl-qr { text-align: center; }
.dl-qr .qr-box {
  width: 168px; height: 168px;
  margin: 0 auto 16px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}
.dl-qr .qr-box img { width: 100%; height: 100%; }
.dl-qr p { color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.dl-btns { display: flex; flex-direction: column; gap: 12px; }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all .22s;
  font-family: inherit;
  width: 100%;
}
.dl-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.dl-btn .tag { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dl-btn.quark:hover { border-color: #5b8def; color: #8fb4ff; }
.dl-btn.baidu:hover { border-color: #3ecf8e; color: #6fe0ab; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
thead th {
  text-align: left;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-q .arrow { color: var(--text-3); transition: transform .25s; font-size: 13px; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; color: var(--text-2); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: "";
  position: absolute; left: -30px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-item .ver { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.tl-item h3 { font-size: 17px; margin: 4px 0 8px; }
.tl-item .date { font-size: 12.5px; color: var(--text-3); }
.tl-item ul { margin-top: 8px; padding-left: 18px; }
.tl-item li { color: var(--text-2); font-size: 14px; margin-bottom: 5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.step-card .step-num {
  counter-increment: step;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}
.step-card .step-num::before { content: "0" counter(step) " / "; }
.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 提示框 ---------- */
.notice {
  display: flex; gap: 14px;
  background: rgba(232,176,75,.08);
  border: 1px solid rgba(232,176,75,.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: #e8c98a;
  font-size: 14.5px;
  margin: 20px 0;
}
.notice i { margin-top: 3px; }
.notice.green { background: rgba(62,207,142,.07); border-color: rgba(62,207,142,.25); color: #8fe0b8; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,8,12,.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 34px 34px 30px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalIn .28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-3); font-size: 22px;
  cursor: pointer; line-height: 1;
  padding: 6px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .sub { color: var(--text-3); font-size: 13.5px; margin-bottom: 22px; }
.modal-body { display: flex; gap: 26px; align-items: center; }
.modal-qr { text-align: center; flex-shrink: 0; }
.modal-qr .qr-box {
  width: 176px; height: 176px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}
.modal-qr .qr-box img { width: 100%; height: 100%; }
.modal-qr .qr-tip { font-size: 13px; color: var(--text-2); }
.modal-info { flex: 1; }
.modal-info ul { list-style: none; }
.modal-info li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; color: var(--text-2); font-size: 14px; }
.modal-info li i { color: var(--green); margin-top: 3px; }
.modal-warn {
  margin-top: 20px;
  background: rgba(232,176,75,.08);
  border: 1px solid rgba(232,176,75,.22);
  border-radius: 10px;
  padding: 13px 16px;
  color: #e8c98a;
  font-size: 13.5px;
  display: flex; gap: 10px;
}
.modal-warn i { margin-top: 2px; }

/* 二维码呼吸边框 */
.qr-breathe {
  position: relative;
  border-radius: 12px;
  animation: qrBreathe 3s ease-in-out infinite;
}
@keyframes qrBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(91,141,239,.35), 0 0 6px rgba(91,141,239,.18); }
  50% { box-shadow: 0 0 0 3px rgba(91,141,239,.55), 0 0 18px rgba(91,141,239,.32); }
}

/* ---------- 面包屑 ---------- */
.crumbs { padding: 26px 0 0; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; color: var(--text-3); opacity: .6; }

/* ---------- 页头 ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: .3px; }
.page-head p { color: var(--text-2); margin-top: 14px; max-width: 720px; font-size: 16px; }

/* ---------- 徽章/标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}
.tag.green { background: rgba(62,207,142,.1); color: var(--green); }
.tag.amber { background: rgba(232,176,75,.1); color: var(--amber); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .download-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .modal-body { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-head h1 { font-size: 28px; }
}
