/* Radmin VPN 站点样式表 */

:root {
  --brand: #0b6bcb;
  --brand-dark: #054a91;
  --brand-light: #e8f2fd;
  --ink: #16202b;
  --ink-soft: #4a5764;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --ok: #12805c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 32, 48, .07);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  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: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #d7ecff 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.3px; }
.hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 720px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 15.5px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 107, 203, .25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid #cddff2; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--ink-soft); }
.hero-meta span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* ---------- 官网原图背景（H1 区域） ---------- */
.hero.has-bg,
.page-head.has-bg {
  background-image: linear-gradient(180deg, rgba(6, 20, 38, .80) 0%, rgba(6, 20, 38, .62) 100%), url("img/hero-bg.jpg");
  background-size: cover;
  /* 支持 WebP 的浏览器使用压缩率更高的版本（77KB，原图 137KB） */
  background-image: linear-gradient(180deg, rgba(6, 20, 38, .80) 0%, rgba(6, 20, 38, .62) 100%), url("img/hero-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 0;
}
.hero.has-bg h1,
.page-head.has-bg h1 { color: #fff; }
.hero.has-bg .lead,
.page-head.has-bg p { color: #dce7f2; }
.hero.has-bg .hero-meta { color: #cfdcea; }
.hero.has-bg .hero-meta span::before { color: #4ade9f; }
.hero.has-bg .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}
.hero.has-bg .btn-ghost:hover { background: rgba(255, 255, 255, .24); }

/* ---------- 通用区块 ---------- */
section { padding: 60px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 780px; color: var(--ink-soft); margin: 0 0 28px; }
h2 { font-size: 25px; line-height: 1.4; margin: 0 0 14px; letter-spacing: -.2px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 14px; }

/* ---------- 功能网格 ---------- */
.grid { display: grid; gap: 18px; }
.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; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #c9dcf2; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-light);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 19px;
}
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- 对比表 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
thead th { background: #f0f6fc; font-weight: 600; color: var(--ink); white-space: nowrap; }
thead th.self { background: var(--brand); color: #fff; }
tbody td.self { background: #f4faff; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfe; }
tbody tr:hover td.self { background: #eaf5ff; }

/* ---------- 评价 ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 20px 22px; }
.quote p { margin: 0 0 10px; font-size: 15.5px; }
.quote footer { font-size: 14px; color: var(--ink-soft); }

/* ---------- 认证背书 ---------- */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.badge strong { display: block; font-size: 22px; color: var(--brand-dark); margin-bottom: 4px; }
.badge span { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: #f8fbff; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 平台选择 ---------- */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.platform {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center;
  position: relative;
}
.platform.official { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 203, .1); }
.platform .p-ico { font-size: 26px; margin-bottom: 8px; }
.platform h3 { margin-bottom: 6px; font-size: 16px; }
.platform p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.platform .btn { margin-top: 14px; padding: 8px 18px; font-size: 14px; }
.btn-disabled {
  background: #eef2f6; color: #8a95a1; border: 1px solid var(--line);
  cursor: not-allowed; pointer-events: none;
}
.tag {
  display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 20px; margin-bottom: 10px; font-weight: 600;
}
.tag.on { background: var(--brand); color: #fff; }
.tag.off { background: #eef2f6; color: #6b7785; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.step .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 规格表 ---------- */
.spec { max-width: 820px; }

/* ---------- 资讯页 ---------- */
.page-head { background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-head h1 { font-size: 30px; margin: 0 0 12px; }
.page-head p { color: var(--ink-soft); max-width: 760px; margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab {
  padding: 8px 18px; border-radius: 22px; border: 1px solid var(--line); background: #fff;
  font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.posts { display: grid; gap: 18px; }
.post {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.post .thumb {
  height: 100%; min-height: 150px;
  background: linear-gradient(135deg, #dbeafe, #eef6ff);
  display: grid; place-items: center; font-size: 30px; color: var(--brand);
}
.post .body { padding: 20px 22px; }
.post h3 { font-size: 17.5px; margin: 6px 0 8px; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand); text-decoration: none; }
.post p { color: var(--ink-soft); font-size: 15px; margin: 0 0 10px; }
.post .meta { font-size: 13.5px; color: #77828e; display: flex; gap: 14px; flex-wrap: wrap; }
.post.hide { display: none; }

.sidebar { position: sticky; top: 84px; display: grid; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: 16.5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hot { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.hot li { counter-increment: h; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; display: flex; gap: 10px; }
.hot li:last-child { border-bottom: 0; }
.hot li::before { content: counter(h); color: #fff; background: var(--brand); width: 21px; height: 21px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 21px; margin-top: 4px; }
.hot li a { color: var(--ink); }
.hot li a:hover { color: var(--brand); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1a25; color: #9fb0c0; padding: 44px 0 30px; font-size: 14.5px; }
.site-footer a { color: #cfe0ef; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { border-top: 1px solid #23303d; padding-top: 18px; font-size: 13.5px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13.5px; color: var(--ink-soft); padding: 14px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: #aab6c2; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current="page"] { color: var(--ink); }
.has-bg .breadcrumb, .has-bg .breadcrumb a { color: #c6d5e4; }
.has-bg .breadcrumb li[aria-current="page"] { color: #fff; }

/* ---------- TL;DR 结论块 / 定义句 ---------- */
.tldr {
  background: #fff; border: 1px solid #cfe1f5; border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 20px 24px; margin: 0 0 28px;
}
.tldr h2 { font-size: 17px; margin: 0 0 10px; color: var(--brand-dark); }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 6px; font-size: 15.5px; }
.tldr li:last-child { margin-bottom: 0; }
.definition {
  font-size: 16.5px; color: var(--ink); background: var(--bg-soft);
  border-radius: 10px; padding: 16px 20px; margin: 0 0 24px;
}
.has-bg .definition { background: rgba(255, 255, 255, .12); color: #eaf2fa; }

/* ---------- 文章正文 ---------- */
.article { max-width: 780px; }
.article h2 { margin-top: 38px; }
.article h3 { margin-top: 24px; }
.article img { border-radius: 10px; margin: 18px 0; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0 0 26px;
}
.related { display: grid; gap: 12px; }
.related a { font-size: 15px; }
.notice {
  background: #fff8e6; border: 1px solid #f0dca8; border-radius: 10px;
  padding: 14px 18px; font-size: 14.5px; color: #6b5417; margin: 0 0 24px;
}

/* ---------- 404 ---------- */
.notfound { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 30px; margin: 0 0 12px; }
.notfound p { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3, .badges, .platforms { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .grid-2, .grid-3, .badges, .platforms { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .thumb { min-height: 110px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .nav-toggle {
    display: inline-block; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; padding: 7px 12px; font-size: 14px; cursor: pointer; color: var(--ink);
  }
}

/* ================= 官网形态组件（对齐 radmin-vpn.com） ================= */

/* 品牌大字 LOGO */
.brand-logo {
  font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px;
  margin: 0 0 26px;
}
.brand-logo .b1 { color: #3498db; }
.brand-logo .b2 { color: #ffffff; }

/* 官网风格 Hero */
.hero-official {
  padding: 76px 0 64px; text-align: center;
}
.hero-official .hero-inner {
  display: table; width: 100%; min-height: 300px;
}
.hero-official .hero-cell {
  display: table-cell; vertical-align: middle;
}
.hero-official h1 {
  color: #fff; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.25;
  margin: 0 0 16px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.hero-official .tagline {
  color: #dbe8f5; font-size: clamp(15px, 2vw, 19px); margin: 0 0 34px;
}

/* 主下载按钮 */
.download-cta {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .3px;
  padding: 15px 44px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(11, 107, 203, .34);
  transition: background .18s ease, transform .18s ease;
}
.download-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.download-cta:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 3px; }
.download-cta .small { display: block; font-size: 12.5px; font-weight: 400; opacity: .85; margin-top: 3px; }

.compat-note { color: #cfdcea; font-size: 14.5px; margin: 18px 0 0; }
.eula-note { color: #a9bccd; font-size: 12.5px; margin: 10px 0 0; }
.eula-note a { color: #c9dcee; text-decoration: underline; }

/* 产品截图 */
.shots { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: center; }
.shots img { border-radius: 10px; box-shadow: var(--shadow); background: #0f1720; }
.shots .main-shot { max-width: 308px; width: 100%; height: auto; }
.shots .sub-shot { max-width: 90px; width: 100%; height: auto; }
.about-flex { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about-flex .txt { flex: 1 1 420px; }
.about-flex .shots { flex: 0 1 auto; }

/* 五大卖点 */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px;
}
.why-item { text-align: center; }
.why-item .w-ico { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.why-item h3 { font-size: 17px; margin: 0 0 8px; }
.why-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* 三大场景 */
.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px; }
.usecase { text-align: left; }
.usecase img { width: 100%; max-width: 250px; height: auto; border-radius: 10px; margin-bottom: 14px; }
.usecase h3 { font-size: 18px; margin: 0 0 8px; }
.usecase p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* 底部下载区 */
.bottom-cta {
  background: #33414f; color: #eaf1f8; text-align: center; padding: 52px 0;
}
.bottom-cta h2 { color: #fff; margin: 0 0 8px; }
.bottom-cta p { color: #c3d2e0; margin: 0 0 26px; font-size: 15px; }
.bottom-cta .eula-note { color: #93a7b9; }
.bottom-cta .eula-note a { color: #b6cadb; }

@media (max-width: 700px) {
  .hero-official { padding: 48px 0 42px; }
  .hero-official .hero-inner { min-height: 220px; }
  .brand-logo { font-size: 30px; margin-bottom: 18px; }
  .download-cta { padding: 14px 32px; font-size: 16px; }
}

/* 站内搜索与来源声明 */
.search-form { display: flex; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.search-form input[type="search"] {
  flex: 1 1 260px; min-width: 220px; padding: 11px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.search-form .btn { padding: 11px 20px; }
.search-result { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.source-note { font-size: 14.5px; color: #6b7785; border-left: 3px solid var(--line); padding-left: 12px; margin: 16px 0 0; }