/* 蓝山压缩官网样式。配色取自产品 Logo 与五套皮肤（project/LanShanZip/windows/ui/main/palettes.xml）。 */
:root {
  --accent-light: #439CFF;
  --accent: #1778ED;
  --accent-deep: #1551BC;
  --iris: #8173F0;
  --jade: #20BFAD;
  --navy: #202F50;
  --ink: #1B2638;
  --ink-soft: #4A5870;
  --muted: #6B7A90;
  --line: #DCE5F0;
  --surface: #FFFFFF;
  --surface-soft: #F4F8FD;
  --tint: #EAF3FF;
  --tbd-bg: #FFF6D6;
  --tbd-line: #E6B800;
  --tbd-ink: #7A5A00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 50, 95, .08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 4px; }

/* 中英文切换：带 .en / .zh 的元素按 html.lang-en 显示其一 */
html:not(.lang-en) .en, html.lang-en .zh { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }

/* 待定占位 */
.tbd {
  display: inline-block;
  background: var(--tbd-bg);
  border: 1px dashed var(--tbd-line);
  color: var(--tbd-ink);
  border-radius: 6px;
  padding: 0 .4em;
  font-weight: 600;
  font-size: .95em;
  line-height: 1.6;
}
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); vertical-align: middle; }
.badge.soon { background: #EEF0F4; color: var(--muted); }
.badge.planned { background: #F1EEFF; color: #574CC0; }

/* 页头 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--accent-deep); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent-light); color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; border-radius: 8px; color: var(--navy); }
.menu-toggle svg { display: block; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-deep)); box-shadow: 0 8px 20px rgba(23, 120, 237, .25); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(23, 120, 237, .32); }
.btn-ghost { color: var(--accent-deep); background: var(--surface); border-color: #C9D8EC; }
.btn-ghost:hover { border-color: var(--accent-light); }
.btn small { font-weight: 400; opacity: .85; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 首页主视觉 */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(32, 191, 173, .16), transparent 70%),
    radial-gradient(700px 400px at 10% 0%, rgba(129, 115, 240, .14), transparent 70%),
    linear-gradient(180deg, #F2F8FF, #FFFFFF);
  padding: 80px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.promise { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.promise li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }
.promise li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* 截图占位 */
.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: linear-gradient(135deg, #E9F3FF, #F3F0FF 55%, #E7FAF6);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; overflow: hidden;
}
.shot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  background: linear-gradient(90deg, rgba(67, 156, 255, .35), rgba(32, 191, 173, .3));
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}
.shot .tbd { position: relative; }
.shot.small { aspect-ratio: 4 / 3; }

/* 皮肤演示 */
.skins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.skin {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink-soft);
}
.skin span.dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.skin[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-deep); font-weight: 600; box-shadow: 0 0 0 3px var(--tint); }

/* 卡片网格 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p, .card li { color: var(--ink-soft); font-size: 15px; }
.card ul { margin: .4em 0 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
}
.icon.iris { background: linear-gradient(135deg, #A596FF, #574CC0); }
.icon.jade { background: linear-gradient(135deg, #54E3D0, #088879); }
.icon.navy { background: linear-gradient(135deg, #344C72, #172B47); }

/* 功能明细 */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row ul li { margin-bottom: 6px; color: var(--ink-soft); }
.platform-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-soft); color: var(--navy); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.yes { color: #088879; font-weight: 600; }

/* 下载 */
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.dl-card .os { display: flex; align-items: center; gap: 12px; }
.dl-card .os svg { width: 36px; height: 36px; color: var(--navy); }
.dl-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.dl-card dt { color: var(--muted); }
.dl-card dd { margin: 0; color: var(--ink); }

/* 价格 */
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .price { font-size: 26px; font-weight: 700; color: var(--navy); margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }

/* 常见问题 */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; color: var(--ink-soft); }

/* 更新日志 */
.release { border-left: 3px solid var(--accent-light); padding: 4px 0 4px 22px; margin-bottom: 36px; }
.release h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* 文章（隐私、协议） */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.notice { border: 1px dashed var(--tbd-line); background: var(--tbd-bg); color: var(--tbd-ink); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; }

.page-hero { padding: 56px 0 28px; background: linear-gradient(180deg, #F2F8FF, #FFFFFF); }
.page-hero p { color: var(--ink-soft); font-size: 18px; max-width: 720px; }

.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* 页脚 */
.site-footer { background: var(--navy); color: #C3CFE2; padding: 48px 0 28px; font-size: 14px; }
.site-footer a { color: #DDE7F6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer .tbd { background: rgba(255, 246, 214, .12); color: #FFE08A; border-color: rgba(230, 184, 0, .6); }

/* 平板 */
@media (max-width: 960px) {
  .hero-grid, .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 手机 */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .dl-card dl { grid-template-columns: 1fr; gap: 2px; }
  .dl-card dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
