/* ==========================================================
   Proton VPN 站点模板 - 全局样式
   Bing GEO 2026 规范：语义化结构 / 可读性优先 / 移动友好
   ========================================================== */

:root {
  --brand: #6d4aff;
  --brand-dark: #4b2bd6;
  --brand-soft: #efeaff;
  --ink: #14142b;
  --ink-2: #2c2c4a;
  --muted: #5b5b7b;
  --bg: #f7f7fb;
  --card: #ffffff;
  --line: #e6e6f0;
  --ok: #1a9c6b;
  --radius: 18px;          /* 对齐官网 rounded-3xl 体系的小卡圆角 */
  --radius-lg: 24px;       /* 官网 rounded-3xl = 24px */
  --gap: 32px;             /* 官网 gap-8 = 32px */
  --shadow: 0 8px 28px rgba(20, 20, 43, .07);
  --max: 1280px;           /* 官网内容区 dtc-max-w-8xl + px-16 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.3px; text-wrap: balance; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 700; }

/* 官网水平留白：px-4 / md:px-8 / xl:px-16 */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 64px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.4px; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink-2); font-size: .96rem; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--brand-dark); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(109, 74, 255, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 480px at 12% -10%, #ded4ff 0%, rgba(222, 212, 255, 0) 60%),
              radial-gradient(900px 420px at 90% 0%, #d6ecff 0%, rgba(214, 236, 255, 0) 55%),
              var(--bg);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.kicker {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}
.stat-card h2 { font-size: 1rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.stat-list li:last-child { border-bottom: 0; }
.stat-list b { font-size: 1.05rem; color: var(--brand-dark); }
.stat-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Sections ---------- */
/* 官网纵向节奏：pt-16 / md:pt-20 / xl:pt-24，pb-12 */
.section { padding: 64px 0 48px; }
@media (min-width: 768px) { .section { padding: 80px 0 48px; } }
@media (min-width: 1280px) { .section { padding: 96px 0 48px; } }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 32px; }  /* 官网 dtc-max-w-3xl = 768px */
.section-head .summary { font-size: 1.02rem; color: var(--ink-2); }
.eyebrow { color: var(--brand-dark); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #cfc4ff; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 0; }
.card .metric { display: block; font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 1.2rem;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
caption { caption-side: top; text-align: left; padding: 16px 18px; font-size: .88rem; color: var(--muted); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f3f1fd; font-size: .88rem; letter-spacing: .02em; color: var(--ink); }
thead th:first-child { border-top-left-radius: var(--radius); }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--brand-dark); }
.yes::before { content: "● "; color: var(--ok); }
.no::before { content: "○ "; color: #b3b3c6; }

/* ---------- Reviews ---------- */
.quote { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 14px; font-size: .98rem; color: var(--ink-2); }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote .who { display: block; font-weight: 700; color: var(--ink); }
.stars { color: #f0a92e; letter-spacing: 2px; font-size: .9rem; }

/* ---------- Badges / 背书 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.badges li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: .92rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.badges li b { color: var(--brand-dark); }

/* ---------- FAQ (details) ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow); }
.faq details[open] { border-color: #cfc4ff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); font-size: .97rem; border-top: 1px dashed var(--line); padding-top: 14px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 70ch; }
.cta-band .btn-ghost { color: var(--brand-dark); }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }

/* ---------- Platform tabs ---------- */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.platform {
  display: flex; flex-direction: column; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 20px 24px; box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.platform:hover { border-color: var(--brand); box-shadow: 0 16px 36px rgba(109, 74, 255, .16); }
.platform-info { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; color: var(--ink); font-weight: 700; }
.platform .ico {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px;
  font-size: 1.9rem; line-height: 1;
  background: linear-gradient(180deg, #f4f0ff 0%, #e7dfff 100%);
  border: 1px solid #e0d7ff; border-radius: 50%;
  transition: background .18s ease;
}
.platform:hover .ico { background: linear-gradient(180deg, #efe8ff 0%, #ddd2ff 100%); }
.platform .pname { display: block; font-size: 1.08rem; letter-spacing: -.2px; }
.platform .os { display: block; font-size: .84rem; font-weight: 500; color: var(--muted); margin-top: 8px; }
.platform-btn { margin-top: 22px; width: 100%; padding: 13px 16px; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 68px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 14px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #c3c3d4; }
.crumbs a { color: var(--muted); }

/* ---------- News ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post .thumb { height: 132px; background: linear-gradient(135deg, #d9d1ff, #cfe6ff); display: grid; place-items: center; font-size: 1.9rem; }
.post .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post h3 { font-size: 1.05rem; margin: 0; }
.post h3 a { color: var(--ink); }
.post p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.post .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post .more { margin-top: auto; font-weight: 700; font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.tags a { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; color: var(--ink-2); }
.tags a:hover { border-color: var(--brand); text-decoration: none; }
.tags a[aria-current="page"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.side-card h2 { font-size: 1.02rem; }
.hot { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.hot li { counter-increment: h; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hot li:last-child { border-bottom: 0; }
.hot li::before { content: counter(h); font-weight: 800; color: var(--brand); min-width: 20px; }
.hot a { color: var(--ink-2); font-size: .94rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9dc; padding: 48px 0 28px; margin-top: 0; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #c9c9dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.footer-grid li { margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9a9ab4; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .grid-2, .grid-3, .grid-4, .platforms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

@media print {
  .site-header, .cta-band, .site-footer { display: none; }
}

/* ---------- 图片资源（取自 protonvpn.com 官方素材） ---------- */
img { max-width: 100%; height: auto; }
.logo-img { height: 30px; width: auto; display: block; }
/* 官网 Hero 图：840×840 方形、object-contain 居中，不裁切 */
.hero-media img {
  width: 100%; max-height: 440px; object-fit: contain; object-position: center;
  border-radius: var(--radius-lg); display: block;
  box-shadow: 0 18px 44px rgba(20, 20, 43, .18);
}
/* Hero 桌面图为宽幅(1200x614)，与 img 属性(移动图 700x700)比例不同，
   不锁定比例会在加载完成后发生高度跳变(CLS)，故按实际图源固定宽高比 */
@media (min-width: 768px) {
  .hero-media[data-hero="index"] img { aspect-ratio: 1200 / 614; max-height: none; }
}
/* 官网卡片图：容器 relative overflow-hidden rounded-3xl + 图 absolute inset-0 object-cover object-center */
.card-media {
  margin: -24px -24px 18px;
  aspect-ratio: 4 / 5;                 /* 官网原图为 776×1120 竖版，等比收敛 */
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f1edfe;
}
.card-media img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
}
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
}
.stat-box b { display: block; font-size: 1.35rem; color: var(--brand-dark); line-height: 1.3; }
.stat-box span { font-size: .85rem; color: var(--muted); }
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.trust-strip img { height: 32px; width: auto; opacity: .9; }
.trust-strip .press { height: 26px; }
.trust-strip .award { height: 46px; }
.trust-strip .label { font-size: .88rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.post .thumb-img { width: 100%; height: 168px; object-fit: cover; object-position: center top; display: block; }
.side-media img { width: 100%; border-radius: 10px; display: block; margin-bottom: 12px; }
.footer-brand img.mark { height: 30px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); }
@media (max-width: 820px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
