/* 快连 VPN 官网响应式样式 */
:root {
  --gradient: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
  --blue: #2980FE;
  --blue-dark: #1768E8;
  --text: #1f2937;
  --muted: #667085;
  --light: #f5f7fb;
  --soft-blue: #eef5ff;
  --border: #e5eaf3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 234, 243, 0.9);
}

.header-inner,
.footer-inner,
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(41, 128, 254, 0.18);
}

.brand-text {
  font-size: 22px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 0;
  cursor: pointer;
  background: var(--white);
}

.nav-toggle-label span {
  width: 18px;
  height: 2px;
  background: #344054;
  border-radius: 999px;
  display: block;
  margin: 2px 0;
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 76px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-nav a {
  padding: 11px 12px;
  color: #475467;
  border-radius: 12px;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: #eef5ff;
}

.nav-toggle:checked ~ .site-nav {
  display: grid;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(41, 128, 254, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(23, 104, 232, 0.32);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.section {
  padding: 58px 0;
}

.section.soft {
  background: var(--light);
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow,
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  color: #111827;
}

h1 {
  font-size: clamp(34px, 9vw, 64px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(26px, 5.5vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lead {
  font-size: 18px;
  color: #eef4ff;
  max-width: 620px;
}

.muted {
  color: var(--muted);
}

.vpn-network-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--gradient);
  isolation: isolate;
}

.vpn-network-hero::before,
.vpn-network-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.vpn-network-hero::before {
  width: 520px;
  height: 520px;
  left: -160px;
  bottom: -220px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(4px);
}

.vpn-network-hero::after {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 60px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(6px);
}

.hero-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 70px 0 84px;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1,
.hero-copy h2 {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 28px 0 22px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.status-card,
.network-label {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 26%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.2), transparent 24%),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 28px 70px rgba(19, 32, 74, 0.28);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.6;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(15, 23, 42, 0.28));
}

.status-card {
  position: absolute;
  z-index: 3;
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.status-card.one {
  left: 18px;
  top: 24px;
}

.status-card.two {
  right: 20px;
  top: 76px;
}

.status-card.three {
  left: 28px;
  bottom: 42px;
}

.status-card.four {
  right: 26px;
  bottom: 22px;
}

.node-overview {
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.node-overview-grid {
  display: grid;
  gap: 16px;
}

.node-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.policy-card,
.protocol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.05);
}

.node-card .tag {
  display: inline-block;
  color: var(--blue);
  background: #eef5ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.split-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.feature-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.feature-panel img {
  border-radius: 22px;
  margin: 0 auto;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.feature-list li {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  list-style: none;
  color: #344054;
}

.vpn-connection-section,
.global-nodes-section,
.high-speed-section,
.privacy-protection-section,
.no-log-policy-section,
.multi-device-section,
.encryption-protocol-section {
  position: relative;
}

.global-nodes-section .map-panel {
  background:
    radial-gradient(circle at 20% 25%, rgba(41,128,254,0.18), transparent 26%),
    radial-gradient(circle at 80% 50%, rgba(123,78,241,0.16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.map-dots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.map-dots span {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  color: #344054;
}

.speed-lines {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.speed-line {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.speed-line b {
  color: #111827;
}

.speed-bar {
  height: 8px;
  border-radius: 999px;
  background: #e7eefc;
  margin-top: 10px;
  overflow: hidden;
}

.speed-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--blue);
  border-radius: inherit;
}

.privacy-board {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.privacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.privacy-tags span {
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
}

.policy-grid,
.protocol-grid,
.risk-grid,
.faq-grid,
.article-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.policy-card,
.protocol-card,
.risk-card {
  position: relative;
}

.risk-card {
  border-left: 4px solid var(--blue);
}

.risk-card strong {
  display: block;
  color: #111827;
  margin-bottom: 6px;
}

.device-stack {
  display: grid;
  gap: 14px;
}

.device-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.protocol-card .code-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 10px;
  color: #344054;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.process-steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 70px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.faq-item h3 {
  font-size: 18px;
}

.cta-section {
  padding: 70px 0;
  background: var(--gradient);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  left: -180px;
  bottom: -240px;
}

.cta-inner {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  color: #ffffff;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  padding: 64px 0 42px;
  background:
    radial-gradient(circle at 20% 0%, rgba(41,128,254,0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f5f8ff);
}

.page-hero .container {
  max-width: 960px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
}

.content-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.article-grid {
  grid-template-columns: 1fr;
}

.article-main {
  display: grid;
  gap: 20px;
}

.article-main section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
}

.article-main section h2 {
  font-size: 24px;
}

.article-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.check-list li {
  list-style: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid var(--border);
}

.note-box {
  padding: 18px;
  background: #eef5ff;
  border: 1px solid #d8e8ff;
  border-radius: 20px;
  color: #344054;
}

.download-page-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.download-steps {
  display: grid;
  gap: 14px;
  text-align: left;
  margin-top: 26px;
}

.download-steps li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
}

.site-footer {
  background: #101828;
  color: #d0d5dd;
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 360px;
  color: #98a2b3;
}

.footer-links {
  display: grid;
  gap: 22px;
}

.footer-links h3 {
  color: #ffffff;
  font-size: 16px;
}

.footer-links a {
  display: block;
  color: #d0d5dd;
  margin: 8px 0;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 16px;
  text-align: center;
  color: #98a2b3;
}

@media (min-width: 640px) {
  .node-overview-grid,
  .policy-grid,
  .protocol-grid,
  .risk-grid,
  .faq-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    padding: 92px 0 112px;
  }

  .node-overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-layout {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
  }

  .split-layout.reverse .feature-panel {
    order: -1;
  }

  .policy-grid,
  .protocol-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .risk-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1.35fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(6, 1fr);
  }

  .step-card {
    padding-left: 22px;
    padding-top: 66px;
  }

  .step-card::before {
    left: 22px;
    top: 20px;
  }
}
