/* ProtonVPN 品牌官网样式 - 深紫科技主题 */
:root{
  --primary:#6d4aff;
  --primary-dark:#4f31c9;
  --primary-light:#9b7bff;
  --accent:#00d1a8;
  --bg-dark:#120e26;
  --bg-deep:#0b0820;
  --surface:#ffffff;
  --surface-alt:#f6f4ff;
  --text:#191527;
  --text-muted:#5a5470;
  --text-inverse:#f4f2ff;
  --border:#e6e2f5;
  --shadow:0 10px 30px rgba(109,74,255,.12);
  --radius:16px;
  --grad:linear-gradient(135deg,#6d4aff 0%,#9b5cff 55%,#b35cff 100%);
  --grad-accent:linear-gradient(135deg,#00c9a0 0%,#00d1a8 100%);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"PingFang SC","Microsoft YaHei","Segoe UI",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;color:var(--text);background:var(--surface);line-height:1.7;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none;transition:color .2s}
a:hover{color:var(--primary-dark)}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== 顶部导航 ===== */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:var(--primary-dark)}
.nav-brand img{width:34px;height:34px;border-radius:8px}
.nav-links{display:flex;align-items:center;gap:28px;list-style:none}
.nav-links a{color:var(--text);font-weight:600;font-size:15px;position:relative}
.nav-links a:hover{color:var(--primary)}
.nav-actions{display:flex;align-items:center;gap:14px}
.lang-switch{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid var(--border);border-radius:999px;font-size:13px;font-weight:700;color:var(--text)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 26px;border-radius:999px;font-weight:700;font-size:15px;cursor:pointer;border:none;transition:transform .2s,box-shadow .2s}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 8px 22px rgba(109,74,255,.35)}
.btn-primary:hover{color:#fff;box-shadow:0 12px 28px rgba(109,74,255,.5)}
.btn-ghost{background:transparent;color:var(--primary);border:1.5px solid var(--primary)}
.btn-sm{padding:9px 18px;font-size:14px}
.btn-lg{padding:15px 34px;font-size:17px}

/* ===== Hero ===== */
.hero{background:radial-gradient(1200px 600px at 80% -10%,rgba(155,124,255,.35),transparent),var(--bg-dark);color:var(--text-inverse);overflow:hidden;position:relative}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:72px 0 88px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(109,74,255,.18);border:1px solid rgba(155,124,255,.4);color:#d8ccff;padding:7px 16px;border-radius:999px;font-size:13px;font-weight:600;margin-bottom:22px}
.hero h1{font-size:52px;line-height:1.15;font-weight:800;margin-bottom:22px;letter-spacing:-.5px}
.hero h1 .grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-sub{font-size:18px;color:#c9c1e8;margin-bottom:34px;max-width:540px}
.hero-cta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:30px}
.hero-meta{display:flex;gap:28px;flex-wrap:wrap;color:#a99fd6;font-size:14px}
.hero-meta span{display:inline-flex;align-items:center;gap:7px}
.hero-meta b{color:#fff;font-weight:700}

/* ===== 客户端模拟器 ===== */
.mockup{position:relative}
.mockup-window{background:rgba(255,255,255,.06);border:1px solid rgba(155,124,255,.25);border-radius:18px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.45)}
.mockup-bar{display:flex;align-items:center;gap:8px;padding:14px 18px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(155,124,255,.2)}
.mockup-dot{width:12px;height:12px;border-radius:50%}
.mockup-dot.r{background:#ff5f57}.mockup-dot.y{background:#febc2e}.mockup-dot.g{background:#28c840}
.mockup-title{margin-left:12px;font-size:13px;color:#a99fd6;font-weight:600}
.mockup-body{padding:24px}
.mock-status{display:flex;align-items:center;justify-content:space-between;background:rgba(109,74,255,.16);border:1px solid rgba(155,124,255,.3);border-radius:12px;padding:16px 18px;margin-bottom:18px}
.mock-status .conn{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px}
.mock-pulse{width:10px;height:10px;background:var(--accent);border-radius:50%;box-shadow:0 0 0 0 rgba(0,209,168,.6);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(0,209,168,.55)}70%{box-shadow:0 0 0 12px rgba(0,209,168,0)}100%{box-shadow:0 0 0 0 rgba(0,209,168,0)}}
.mock-location{font-size:13px;color:#c9c1e8}
.mock-location b{color:#fff}
.mock-map{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.mock-server{background:rgba(255,255,255,.05);border:1px solid rgba(155,124,255,.18);border-radius:10px;padding:12px;font-size:13px;color:#c9c1e8;text-align:center;transition:.2s}
.mock-server.active{background:rgba(0,209,168,.14);border-color:var(--accent);color:#fff}
.mock-server b{display:block;color:#fff;font-weight:700}
.mock-speed{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}
.mock-speed .metric{flex:1;background:rgba(255,255,255,.04);border-radius:10px;padding:12px;text-align:center}
.mock-speed .metric b{display:block;font-size:18px;color:#fff}
.mock-speed .metric span{font-size:12px;color:#a99fd6}
.mock-connect{width:100%;background:var(--grad);color:#fff;border:none;border-radius:12px;padding:14px;font-size:16px;font-weight:800;cursor:pointer}
.mock-connect:hover{box-shadow:0 10px 24px rgba(109,74,255,.4)}

/* ===== 通用 section ===== */
.section{padding:84px 0}
.section-alt{background:var(--surface-alt)}
.section-head{text-align:center;max-width:720px;margin:0 auto 54px}
.section-head .kicker{display:inline-block;color:var(--primary);font-weight:700;font-size:14px;letter-spacing:1px;text-transform:uppercase;margin-bottom:12px}
.section-head h2{font-size:36px;font-weight:800;line-height:1.25;margin-bottom:16px}
.section-head p{color:var(--text-muted);font-size:17px}

/* ===== 核心功能 6 项 ===== */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.feature-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:34px 30px;transition:transform .25s,box-shadow .25s}
.feature-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.feature-icon{width:56px;height:56px;border-radius:14px;background:var(--grad);display:flex;align-items:center;justify-content:center;margin-bottom:20px;font-size:26px}
.feature-card h3{font-size:20px;font-weight:700;margin-bottom:12px}
.feature-card p{color:var(--text-muted);font-size:15px}

/* ===== 公告区 ===== */
.announce{background:var(--grad);color:#fff;border-radius:var(--radius);padding:30px 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.announce h3{font-size:20px;font-weight:800;margin-bottom:6px}
.announce p{font-size:15px;opacity:.95}
.announce .btn{background:#fff;color:var(--primary)}

/* ===== 信任背书 ===== */
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.trust-item{text-align:center;padding:28px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.trust-item b{display:block;font-size:34px;font-weight:800;color:var(--primary);margin-bottom:6px}
.trust-item span{color:var(--text-muted);font-size:14px}
.logo-row{display:flex;justify-content:center;align-items:center;gap:40px;flex-wrap:wrap;margin-top:48px;opacity:.75}

/* ===== 应用场景 ===== */
.scene-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.scene-card{border-radius:var(--radius);overflow:hidden;background:var(--surface);border:1px solid var(--border)}
.scene-card .scene-img{height:170px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:52px}
.scene-card .scene-body{padding:24px}
.scene-card h3{font-size:19px;font-weight:700;margin-bottom:10px}
.scene-card p{color:var(--text-muted);font-size:15px}

/* ===== 对比表 ===== */
.compare-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.compare-table{width:100%;border-collapse:collapse;min-width:680px}
.compare-table th,.compare-table td{padding:18px 22px;text-align:left;border-bottom:1px solid var(--border);font-size:15px}
.compare-table thead th{background:var(--bg-dark);color:#fff;font-weight:700}
.compare-table thead th.hl{background:var(--grad)}
.compare-table tbody tr:hover{background:var(--surface-alt)}
.compare-table .yes{color:var(--accent);font-weight:700}
.compare-table .no{color:#e05d5d}
.compare-table .brand{font-weight:700;color:var(--primary)}

/* ===== 新闻 Tab ===== */
.tabs{display:flex;gap:10px;justify-content:center;margin-bottom:36px;flex-wrap:wrap}
.tab{display:inline-flex;padding:10px 22px;border-radius:999px;border:1px solid var(--border);font-weight:600;font-size:14px;color:var(--text);cursor:pointer}
.tab.active{background:var(--grad);color:#fff;border-color:transparent}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.news-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:.25s}
.news-card:hover{box-shadow:var(--shadow);transform:translateY(-4px)}
.news-card .news-img{height:170px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:46px}
.news-card .news-body{padding:22px}
.news-card .news-tag{font-size:12px;color:var(--primary);font-weight:700;margin-bottom:8px;display:inline-block}
.news-card h3{font-size:17px;font-weight:700;line-height:1.4;margin-bottom:10px}
.news-card h3 a{color:var(--text)}
.news-card h3 a:hover{color:var(--primary)}
.news-card .news-date{font-size:13px;color:var(--text-muted)}

/* ===== 用户评论 ===== */
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.review-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px}
.review-stars{color:#ffb400;font-size:16px;margin-bottom:14px;letter-spacing:2px}
.review-card p{font-size:15px;color:var(--text);margin-bottom:18px}
.review-user{display:flex;align-items:center;gap:12px}
.review-avatar{width:42px;height:42px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.review-user b{display:block;font-size:14px}
.review-user span{font-size:12px;color:var(--text-muted)}

/* ===== 下载区 ===== */
.download-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.download-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px 18px;text-align:center;transition:.25s}
.download-card:hover{box-shadow:var(--shadow);transform:translateY(-4px)}
.download-icon{font-size:40px;margin-bottom:14px}
.download-card b{display:block;font-size:16px;margin-bottom:14px}
.download-card .btn{width:100%;font-size:13px;padding:10px 8px}

/* ===== FAQ ===== */
.faq-list{max-width:860px;margin:0 auto}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px;overflow:hidden}
.faq-q{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;font-weight:700;font-size:17px;color:var(--text);cursor:pointer}
.faq-q:hover{color:var(--primary)}
.faq-q .arrow{color:var(--primary);font-size:20px}
.faq-a{padding:0 26px 24px;color:var(--text-muted);font-size:15px}
.faq-a ol,.faq-a ul{padding-left:20px;margin:10px 0}
.faq-a li{margin-bottom:8px}

/* ===== CTA + 页脚 ===== */
.cta{background:radial-gradient(800px 400px at 50% -10%,rgba(155,124,255,.4),transparent),var(--bg-dark);color:var(--text-inverse);text-align:center;padding:80px 0}
.cta h2{font-size:36px;font-weight:800;margin-bottom:16px}
.cta p{color:#c9c1e8;margin-bottom:32px;font-size:17px}
.site-footer{background:var(--bg-deep);color:#a99fd6;padding:60px 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:44px}
.footer-brand img{width:34px;height:34px;border-radius:8px;margin-bottom:14px}
.footer-brand p{font-size:14px;margin-top:10px}
.footer-col h4{color:#fff;font-size:15px;font-weight:700;margin-bottom:18px}
.footer-col a{display:block;color:#a99fd6;font-size:14px;margin-bottom:10px}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:22px 0;text-align:center;font-size:13px;color:#6f6890}

/* ===== 面包屑 ===== */
.breadcrumb{background:var(--surface-alt);border-bottom:1px solid var(--border);padding:16px 0}
.breadcrumb ol{display:flex;align-items:center;gap:8px;list-style:none;font-size:14px}
.breadcrumb li+li::before{content:"/";margin-right:8px;color:#b8b2d0}
.breadcrumb a{color:var(--text-muted)}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb li:last-child{color:var(--primary);font-weight:600}

/* ===== 页面 hero ===== */
.page-hero{background:var(--bg-dark);color:var(--text-inverse);text-align:center;padding:70px 0}
.page-hero h1{font-size:44px;font-weight:800;margin-bottom:14px}
.page-hero p{color:#c9c1e8;font-size:17px;max-width:680px;margin:0 auto}

/* ===== 新闻详情页 ===== */
.article-layout{display:grid;grid-template-columns:1fr 320px;gap:48px;padding:56px 0}
.article-body h1{font-size:34px;font-weight:800;line-height:1.3;margin-bottom:18px}
.article-meta{display:flex;gap:20px;flex-wrap:wrap;color:var(--text-muted);font-size:14px;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.article-meta .cat{color:var(--primary);font-weight:700}
.article-body .lead{font-size:18px;color:#3a3550;background:var(--surface-alt);border-left:4px solid var(--primary);padding:18px 22px;border-radius:8px;margin-bottom:28px}
.article-body h2{font-size:26px;font-weight:800;margin:36px 0 16px}
.article-body p{margin-bottom:18px;color:#2c2740;font-size:16px}
.article-body img{border-radius:12px;margin:24px 0}
.article-body table{width:100%;border-collapse:collapse;margin:24px 0;font-size:14px}
.article-body table th,.article-body table td{padding:12px 14px;border:1px solid var(--border);text-align:left}
.article-body table thead th{background:var(--bg-dark);color:#fff}
.article-body blockquote{border-left:4px solid var(--accent);background:var(--surface-alt);padding:16px 20px;border-radius:8px;margin:24px 0;font-style:italic}
.article-pager{display:flex;justify-content:space-between;gap:20px;margin:44px 0;flex-wrap:wrap}
.article-pager a{flex:1;min-width:200px;border:1px solid var(--border);border-radius:12px;padding:18px 20px;display:block}
.article-pager a:hover{border-color:var(--primary);box-shadow:var(--shadow)}
.article-pager span{display:block;font-size:12px;color:var(--text-muted);margin-bottom:6px}
.sidebar{position:sticky;top:90px}
.sidebar-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:24px}
.sidebar-box h3{font-size:17px;font-weight:700;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.sidebar-box .hot-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.sidebar-box .hot-item:last-child{border-bottom:none}
.sidebar-box .hot-item a{font-size:14px;color:var(--text);font-weight:600;line-height:1.4}
.sidebar-box .hot-item a:hover{color:var(--primary)}
.sidebar-box .hot-num{font-size:22px;font-weight:800;color:var(--primary-light)}
.sidebar-box .cat-link{display:block;padding:8px 0;color:var(--text-muted);font-size:14px;border-bottom:1px dashed var(--border)}
.sidebar-box .cat-link:hover{color:var(--primary)}

/* ===== 相关阅读 ===== */
.related{background:var(--surface-alt);padding:60px 0}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

/* ===== 分页/列表 ===== */
.news-list{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:48px}
.pagination a{padding:10px 16px;border:1px solid var(--border);border-radius:8px;font-weight:600}
.pagination a.active{background:var(--grad);color:#fff;border-color:transparent}

/* ===== 404 ===== */
.notfound{text-align:center;padding:120px 0;background:var(--bg-dark);color:var(--text-inverse)}
.notfound h1{font-size:120px;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1}
.notfound p{color:#c9c1e8;font-size:18px;margin:24px 0 34px}

/* ===== 新闻分组锚点 ===== */
.news-group{margin-top:8px}
.news-group-title{font-size:20px;font-weight:800;color:var(--primary-dark);margin-bottom:18px;padding-left:14px;border-left:4px solid var(--primary)}

/* ===== 评论计数徽章 ===== */
.rating-badge{display:inline-flex;align-items:center;gap:6px;background:var(--surface-alt);border:1px solid var(--border);border-radius:999px;padding:5px 14px;font-size:13px;color:var(--text-muted)}

/* ===== 响应式 ===== */
@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:44px}
  .feature-grid,.scene-grid,.news-grid,.review-grid{grid-template-columns:repeat(2,1fr)}
  .download-grid{grid-template-columns:repeat(3,1fr)}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .article-layout{grid-template-columns:1fr}
  .sidebar{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .nav-links{display:none}
  .hero h1{font-size:34px}
  .section-head h2{font-size:28px}
  .feature-grid,.scene-grid,.news-grid,.review-grid,.download-grid,.related-grid{grid-template-columns:1fr}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
}
