/* =========================================================
   Proxifier 官网 - 样式
   低调、克制、注重排版的界面
   ========================================================= */

:root {
  --ink: #1b1e24;
  --ink-soft: #3a3f47;
  --muted: #6b7280;
  --paper: #f6f5f1;
  --paper-deep: #edece6;
  --card: #ffffff;
  --line: #e3e1da;
  --line-soft: #eeece6;
  --accent: #1f6f6b;
  --accent-deep: #175752;
  --accent-soft: #e4efed;
  --gold: #9a7b4f;
  --footer: #14171c;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .04);
  --shadow: 0 12px 34px -18px rgba(20, 23, 28, .22);
  --radius: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(246, 245, 241, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #22444f, #142a31);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfe6e2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.brand .word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand .cn { font-size: 12px; color: var(--muted); letter-spacing: .18em; display: block; font-family: var(--sans); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  position: relative;
  padding: 26px 0;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a.active { color: var(--accent-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #eef1f4;
  background: #10161c;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(16,22,28,.96) 12%, rgba(16,22,28,.78) 45%, rgba(16,22,28,.35) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 104px;
  padding-bottom: 120px;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9cc5bf;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: #9cc5bf; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  color: #f3f5f7;
  margin: 0 0 22px;
  letter-spacing: .01em;
}
.hero h1 .thin { font-weight: 400; color: #cfd7dc; }
.hero .lead {
  font-size: 18px;
  color: #c4cdd4;
  max-width: 620px;
  margin: 0 0 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 0 0 36px;
  color: #aeb9c2;
  font-size: 14px;
}
.hero-meta b { color: #e8edf0; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(31,111,107,.7); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-plain { background: rgba(255,255,255,.08); color: #e8edf0; border-color: rgba(255,255,255,.32); }
.btn-plain:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-invert { background: #10161c; color: #c9d2d8; }
.section-invert h2, .section-invert h3 { color: #f0f3f5; }

.sec-head { max-width: 700px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .kicker {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 16px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { padding: 26px 12px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 34px; color: var(--accent-deep); font-weight: 600; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d8d5cc; }
.feature .ficon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature .ficon svg { width: 26px; height: 26px; stroke: var(--accent-deep); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 19px; margin: 0 0 10px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 双栏展示 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split h3 { font-size: 26px; margin: 0 0 16px; }
.split p { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.split ul.ticks { list-style: none; margin: 6px 0 0; padding: 0; }
.split ul.ticks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); font-size: 15px; }
.split ul.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 18px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 界面窗口示意图 */
.appshot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.appshot .bar {
  display: flex; align-items: center;
  gap: 8px; padding: 11px 14px;
  background: #f1f0ec;
  border-bottom: 1px solid var(--line-soft);
}
.appshot .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.appshot .bar .r { background: #e08b7a; } .appshot .bar .y { background: #e0c37a; } .appshot .bar .g { background: #9cc7a3; }
.appshot .bar .t { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--sans); }
.appshot table { width: 100%; border-collapse: collapse; font-size: 13px; }
.appshot th, .appshot td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.appshot th { color: var(--muted); font-weight: 600; font-size: 12px; background: #faf9f6; }
.appshot td { color: var(--ink-soft); font-family: var(--sans); }
.appshot td .st { font-size: 11px; color: var(--accent-deep); font-weight: 600; }

/* ---------- 版本 / 下载 ---------- */
.ver-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ver-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ver-card .os { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ver-card h3 { font-size: 22px; margin: 0 0 6px; }
.ver-card .ver { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.ver-card .size { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ver-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.ver-card ul li { padding: 5px 0 5px 24px; position: relative; color: var(--ink-soft); font-size: 14px; }
.ver-card ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 14px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ver-card .note { font-size: 12px; color: var(--gold); display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; line-height: 1.6; }
.ver-card .note .w { color: var(--gold); font-weight: 700; }

/* ---------- 下载面板 ---------- */
.dl-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.dl-panel h3 { font-size: 24px; margin: 0 0 8px; }
.dl-panel .dl-sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.dl-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-option {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 26px;
  background: #fbfaf7;
}
.dl-option .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-option .head .logo {
  width: 42px; height: 42px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  font-family: var(--sans);
}
.dl-option.quark .logo { background: linear-gradient(145deg, #2b9bd1, #176ea5); }
.dl-option.baidu .logo { background: linear-gradient(145deg, #3b78e0, #2560c4); }
.dl-option h4 { margin: 0; font-size: 18px; font-family: var(--sans); font-weight: 600; }
.dl-option .head .sub { font-size: 12px; color: var(--muted); }
.dl-option .desc { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.dl-option .btns { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 26px; position: relative; }
.step .n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 16px;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; margin: 0 0 8px; font-family: var(--serif); }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faqs { max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line-soft); }
.faq details { padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 4px;
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--accent); font-family: var(--sans); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 40px 24px 4px; color: var(--muted); font-size: 15.5px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- 新闻 / 文章列表 ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post .thumb { height: 168px; background-size: cover; background-position: center; }
.post .body { padding: 22px 24px 24px; }
.post .date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.post h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.4; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--accent-deep); }
.post p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 底部 ---------- */
.site-footer { background: var(--footer); color: #9aa3ad; padding: 64px 0 36px; font-size: 14px; }
.site-footer .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer h4 { color: #e6eaee; font-size: 15px; margin: 0 0 16px; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9aa3ad; }
.site-footer a:hover { color: #dfe6ec; }
.site-footer .fnote { color: #7b838d; font-size: 13px; }
.site-footer .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #2a2f37;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #7b838d;
  font-size: 12.5px;
}

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--ink-soft); }

.page-hero { background: #10161c; color: #e8edf0; padding: 70px 0 64px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); color: #f3f5f7; margin: 0 0 14px; }
.page-hero p { color: #c2ccd3; font-size: 17px; max-width: 720px; margin: 0; }

/* ---------- 二维码弹出窗 ---------- */
.dl-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 15, 18, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .22s ease;
}
.dl-overlay.show { opacity: 1; }
.dl-overlay.closing { opacity: 0; }
.dl-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  padding: 34px 34px 30px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.45);
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
}
.dl-overlay.show .dl-box { transform: none; }
.dl-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 26px;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.dl-close:hover { color: var(--ink); }
.dl-head { text-align: center; margin-bottom: 22px; }
.dl-brand { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dl-head h3 { font-size: 22px; margin: 0 0 4px; }
.dl-sub { color: var(--muted); font-size: 14px; margin: 0; }
.dl-body { text-align: center; }

/* 呼吸边框的二维码 */
.qrcode-wrap {
  position: relative;
  display: inline-flex;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 18px;
  animation: breathe 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(31, 111, 107, 0);
}
.qrcode {
  width: 210px; height: 210px;
  border-radius: 8px;
  display: block;
  background: #fff;
}
@keyframes breathe {
  0%, 100%   { box-shadow: 0 0 0 1px rgba(31,111,107,.14), 0 0 0 0 rgba(31,111,107,0); }
  50%        { box-shadow: 0 0 0 4px rgba(31,111,107,.08), 0 0 18px 2px rgba(31,111,107,.16); }
}
.dl-scan-tip { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.dl-scan-tip strong { color: var(--accent-deep); }
.dl-timelimit {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left;
  background: #faf6ec;
  border: 1px solid #ecdcc0;
  border-radius: 8px;
  padding: 12px 14px;
  color: #7a5f2d;
  font-size: 13.5px;
  line-height: 1.6;
}
.dl-tl-ico {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}
.dl-timelimit strong { color: #6a5320; }

/* ---------- 提示横幅 ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: #faf6ec; border: 1px solid #ecdcc0;
  border-radius: 8px; padding: 16px 18px;
  color: #7a5f2d; font-size: 14px; line-height: 1.7;
}
.alert.alert-teal { background: var(--accent-soft); border-color: #cfe0dc; color: var(--accent-deep); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(140deg, #16222b, #1f3a40);
  border-radius: 14px;
  padding: 52px 44px;
  color: #e8edf0;
  text-align: center;
}
.cta-band h2 { color: #f3f5f7; font-size: 28px; margin: 0 0 14px; }
.cta-band p { color: #bcc7cf; font-size: 16px; margin: 0 0 26px; }
.cta-band .cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- 文章正文 ---------- */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body h3 { font-size: 24px; margin: 40px 0 14px; }
.article-body h4 { font-size: 19px; margin: 30px 0 10px; }
.article-body p { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }
.article-body ul { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }
.article-body ul li { margin-bottom: 8px; }
.article-body .quoted {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 22px;
  color: var(--ink-soft);
}
.article-body .note {
  background: #faf6ec; border: 1px solid #ecdcc0;
  border-radius: 8px; padding: 14px 18px; color: #7a5f2d; font-size: 15px; margin: 0 0 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid, .ver-list, .post-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(246,245,241,.98);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin: 12px 24px; padding: 11px; text-align: center; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .dl-options { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid, .ver-list, .post-list, .steps { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .qrcode { width: 180px; height: 180px; }
  .cta-band { padding: 40px 24px; }
}

/* 轻滚动显现（增强细腻感，不影响可访问性） */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .qrcode-wrap { animation: none; }
}
