/* =========================================================
   Sub-pages: pricing.html / what-is-vpn.html / download.html
   (reuses base classes from style.css)
   ========================================================= */

.subhero {
  position: relative;
  padding: 92px 0 52px;
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(124, 92, 255, 0.26), transparent 60%),
    linear-gradient(180deg, #0c0c1f, var(--bg) 75%);
}
.subhero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.subhero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 18px auto 0; }

.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan--featured {
  border-color: var(--violet);
  box-shadow: 0 24px 60px -28px rgba(124, 92, 255, 0.75);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), var(--surface));
}
.plan__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.plan__name { font-size: 22px; font-weight: 700; }
.plan__price { margin: 12px 0 4px; font-size: 40px; font-weight: 800; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan__desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan__features { margin: 0 0 26px; display: grid; gap: 12px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e7e7f5; }
.plan__features li::before { content: "✓"; color: var(--violet); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ---------- Plan compare ---------- */
.plan-compare { max-width: 900px; margin: 56px auto 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.plan-compare table { width: 100%; border-collapse: collapse; }
.plan-compare th, .plan-compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-compare thead th { background: var(--surface-2); font-size: 15px; }
.plan-compare tbody th { text-align: left; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.faq__item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.faq__item p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step__num { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--grad); margin-bottom: 14px; }
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Platform download page ---------- */
.dl-hero { max-width: 720px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; }
.dl-hero__ico { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.dl-hero h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.dl-hero p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.dl-hero__req { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.dl-hero__req strong { color: #e7e7f5; font-weight: 600; }
@media (max-width: 560px) { .dl-hero { padding: 32px 20px; } }

/* ---------- Why grid ---------- */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why__item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.why__item .ico { font-size: 26px; flex: none; line-height: 1; }
.why__item h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: 14px; }

/* ---------- Platforms ---------- */
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.platform { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: 0.22s; }
.platform:hover { border-color: var(--violet); background: rgba(155, 123, 255, 0.12); transform: translateY(-3px); }
.platform .ico { font-size: 34px; line-height: 1; }
.platform strong { font-size: 15px; }
.platform span { font-size: 13px; color: var(--muted); }

/* ---------- DL features ---------- */
.dl-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl-feature { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dl-feature img { width: 100%; height: auto; border-radius: 12px; background: var(--grad-soft); padding: 10px; display: block; }
.dl-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dl-feature p { color: var(--muted); font-size: 14px; }

/* ---------- Media row ---------- */
.media { display: flex; gap: 34px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: 0.85; }
.media img { height: 34px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why__grid, .dl-features { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Login ---------- */
.login-wrap {
  max-width: 440px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 34px;
}
.login-wrap h2 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-wrap .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: #fff; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--violet); }
.login-wrap .btn { width: 100%; margin-top: 6px; }
.login-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.login-alt a { color: var(--violet); font-weight: 600; }

/* ---------- Support ---------- */
.support-search { max-width: 560px; margin: 0 auto 44px; }
.support-search input {
  width: 100%; padding: 15px 22px; border-radius: 999px; font-size: 16px;
  background: var(--surface); border: 1px solid var(--border); color: #fff;
}
.support-search input:focus { outline: none; border-color: var(--violet); }
.support-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.support-cat {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: 0.22s;
}
.support-cat:hover { border-color: var(--violet); transform: translateY(-3px); }
.support-cat .ico { font-size: 26px; flex: none; line-height: 1; }
.support-cat h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.support-cat p { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .support-cats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .support-cats { grid-template-columns: 1fr; }
  .login-wrap { padding: 28px 22px; }
}

/* ---------- Prose (legal / info pages) ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose .prose__updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 38px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.prose p { color: #d7d7ea; font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.prose ul { color: #d7d7ea; font-size: 16px; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--violet); font-weight: 600; }
.prose .prose__callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--violet); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; color: var(--muted); font-size: 15px;
}

/* ---------- Generic cards (blog / press / careers) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: 0.22s;
}
a.card:hover { border-color: var(--violet); transform: translateY(-3px); }
.card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700;
  color: var(--violet); background: rgba(124, 92, 255, 0.14);
  padding: 3px 10px; border-radius: 999px;
}
.card__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.card__text { color: var(--muted); font-size: 14px; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.card__more { color: var(--violet); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; text-align: left; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }
.contact-options { margin-top: 48px; }

/* === 完善新增：博客/状态/透明度/招聘/媒体 === */
.blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 38px; text-decoration: none; color: inherit; }
.blog-featured img { width: 100%; border-radius: var(--radius); }
.blog-featured__tag { color: var(--violet); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.blog-featured h2 { font-size: 25px; font-weight: 800; margin: 10px 0 12px; }
.blog-featured p { color: var(--muted); margin-bottom: 16px; }

.status-board { max-width: 860px; margin: 8px auto 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; }
.status-row__name { font-weight: 600; }
.status-row__sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.status-dot { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.status-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #46d17a; box-shadow: 0 0 0 4px rgba(70,209,122,.18); }
.status-dot.is-warn::before { background: #f5b544; box-shadow: 0 0 0 4px rgba(245,181,68,.18); }
.status-dot.is-down::before { background: #f06a6a; box-shadow: 0 0 0 4px rgba(240,106,106,.18); }

.gov-table { max-width: 860px; width: 100%; border-collapse: collapse; margin: 16px auto 6px; }
.gov-table th, .gov-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.gov-table th { color: var(--muted); font-weight: 600; }
.gov-table tbody tr:hover { background: rgba(255,255,255,.03); }

.jobs { max-width: 920px; margin: 0 auto; }
.job { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); }
.job__title { font-weight: 700; font-size: 17px; }
.job__meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.job__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job__tag { background: rgba(139,108,255,.14); color: #c9bcff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }

.press-kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 38px; }
.press-kit .card { text-align: center; }

.contact-banner { max-width: 760px; margin: 0 auto 30px; }

@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured img { order: -1; }
  .status-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Proton 生态系统展示区 */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.eco-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.eco-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.eco-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}


/* ---------- 内联样式外置（铁律：禁止内联 style） ---------- */
.dl-any-device { max-width: min(520px, 100%); margin: 0 auto 28px; border-radius: var(--radius-lg); }
.dl-lead { color: var(--muted); max-width: 560px; margin: 0 auto; }
.ta-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-42 { margin-top: 42px; }
.callout-center { max-width: 860px; margin: 0 auto 28px; }
.link-violet { color: var(--violet); }
