/* ============================================
   快连VPN – Terracotta Earth Storytelling Theme
   Warm earth tones: terracotta, sand, sage, cream
   Split hero, zigzag features, vertical timeline,
   accordion platforms, masonry reviews
   ============================================ */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes orbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --terra: #c0582a;
  --terra-light: #d4724a;
  --terra-dark: #9e4420;
  --sage: #6b9458;
  --sage-light: #85ad73;
  --sage-dark: #567845;
  --sand: #c9a87e;
  --sand-light: #dcc4a4;
  --sand-dark: #b08f64;
  --cream: #faf6f0;
  --cream-dark: #f0e8da;
  --brown-900: #2c1810;
  --brown-800: #3d2317;
  --brown-700: #4e2e1e;
  --brown-600: #5f3a25;
  --white: #ffffff;
  --text-dark: #2c1810;
  --text-body: #4a3728;
  --text-muted: #8a7565;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top Strip ---------- */
.topstrip {
  background: var(--brown-900);
  color: var(--sand-light);
  text-align: center;
  font-size: .8rem;
  padding: 8px 16px;
  letter-spacing: .3px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,240,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192,88,42,.1);
}
.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}
.logo-icon { width: 36px; height: 36px; display: block; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { letter-spacing: -.3px; }

.navlinks {
  list-style: none;
  display: flex;
  gap: 6px;
}
.navlinks a {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all .2s;
}
.navlinks a:hover { background: rgba(192,88,42,.08); color: var(--terra); }
.navlinks a.current {
  background: var(--terra);
  color: var(--white);
}

.mob-toggle {
  display: none;
  background: none;
  width: 36px;
  height: 36px;
  color: var(--text-dark);
}
.mob-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero Banner (compact angled) ---------- */
.hero-banner {
  background: var(--brown-900);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
  padding: 44px 0 64px;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-logo-side {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  animation: floatUp 4s ease-in-out infinite;
}
.hero-logo-side svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(192,88,42,.3)); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(192,88,42,.2);
  border: 1px solid rgba(192,88,42,.3);
  color: var(--sand-light);
  padding: 4px 14px;
  border-radius: 40px;
  font-size: .78rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--terra-light), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: .92rem;
  color: var(--sand-light);
  line-height: 1.7;
  margin-bottom: 18px;
  opacity: .88;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .25s;
  line-height: 1.3;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-lg svg { width: 20px; height: 20px; }

.btn-terra {
  background: var(--terra);
  color: var(--white);
}
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,88,42,.3); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250,246,240,.3);
}
.btn-outline:hover { border-color: var(--cream); background: rgba(250,246,240,.08); }

.btn-dark {
  background: var(--brown-900);
  color: var(--cream);
}
.btn-dark:hover { background: var(--brown-800); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,24,16,.3); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Marquee Stats ---------- */
.marquee-bar {
  background: var(--terra);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  white-space: nowrap;
}
.marquee-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.marquee-label {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
.sec-sand { background: var(--cream-dark); }
.sec-cream { background: var(--cream); }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terra);
  margin-bottom: 12px;
}
.sec-eyebrow svg { width: 18px; height: 18px; }
.sec-h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.sec-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Zigzag Features ---------- */
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-row.reverse .zigzag-visual { order: 2; }
.zigzag-row.reverse .zigzag-content { order: 1; }

.zigzag-icon-box {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.zigzag-icon-box svg { width: 48px; height: 48px; stroke: var(--white); }
.terra-bg { background: var(--terra); }
.sage-bg { background: var(--sage); }
.sand-bg { background: var(--sand-dark); }

.zigzag-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.zigzag-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ---------- Vertical Timeline ---------- */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--terra), var(--sage), var(--sand));
}
.tl-item {
  position: relative;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--cream);
}
.tl-dot-1 { background: var(--terra); }
.tl-dot-2 { background: var(--sage); }
.tl-dot-3 { background: var(--sand-dark); }

.tl-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.tl-item p {
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Platform Accordion ---------- */
.plat-stack { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.plat-acc {
  border: 1px solid rgba(192,88,42,.12);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .3s;
}
.plat-acc:hover { box-shadow: 0 4px 16px rgba(192,88,42,.08); }

.plat-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
}
.plat-acc-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plat-acc-ico svg { width: 22px; height: 22px; }
.plat-acc-ico-terra { background: rgba(192,88,42,.1); color: var(--terra); }
.plat-acc-ico-sage { background: rgba(107,148,88,.1); color: var(--sage); }
.plat-acc-title { flex: 1; }
.plat-acc-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform .3s;
}
.plat-acc.open .plat-acc-chevron { transform: rotate(180deg); }

.plat-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.plat-acc.open .plat-acc-body { max-height: 300px; }
.plat-acc-content { padding: 0 24px 24px; }
.plat-acc-content p { margin-bottom: 16px; color: var(--text-body); font-size: .95rem; }

.plat-acc-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.plat-acc-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--cream-dark);
  padding: 4px 10px;
  border-radius: 6px;
}
.plat-acc-tags svg { width: 14px; height: 14px; }

/* ---------- Download Grid (download.html) ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dl-card {
  background: var(--white);
  border: 1px solid rgba(192,88,42,.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(192,88,42,.1);
}
.dl-card-featured {
  border-color: var(--terra);
  box-shadow: 0 4px 20px rgba(192,88,42,.12);
}
.dl-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}
.dl-card-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.dl-card-ico svg { width: 28px; height: 28px; color: var(--white); }
.dl-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.dl-card-ver {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.dl-card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}
.dl-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-body);
  padding: 5px 0;
}
.dl-card-features svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }

/* ---------- Reviews Masonry ---------- */
.reviews-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.rev-card {
  background: var(--white);
  border: 1px solid rgba(192,88,42,.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s;
}
.rev-card:hover { transform: translateY(-3px); }

.rev-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.rev-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--sand-dark);
}

.rev-text {
  font-size: .93rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.rev-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rev-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rev-name { font-size: .88rem; font-weight: 600; color: var(--text-dark); }
.rev-meta { font-size: .78rem; color: var(--text-muted); }

/* ---------- Windows Featured Hero Card (download.html) ---------- */
.dl-win-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--terra);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 6px 28px rgba(192,88,42,.12);
}
.dl-win-left {
  background: var(--brown-900);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-win-left h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 8px;
}
.dl-win-left .dl-win-ver {
  font-size: .88rem;
  color: var(--sand-light);
  margin-bottom: 16px;
  opacity: .85;
}
.dl-win-left .dl-win-desc {
  font-size: .92rem;
  color: var(--sand-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.dl-win-left .btn-terra { align-self: flex-start; }
.dl-win-right {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-win-right h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.dl-win-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.dl-win-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.5;
}
.dl-win-features svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }

.dl-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- FAQ Accordion ---------- */
.faq-box { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(192,88,42,.1);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding-bottom: 20px;
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- CTA Ribbon ---------- */
.cta-ribbon {
  background: var(--terra);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-ribbon h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-safe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-light);
  font-size: .88rem;
  margin-bottom: 14px;
}
.footer-safe svg { width: 18px; height: 18px; }
.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dl-grid { grid-template-columns: repeat(2,1fr); }
  .dl-other-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  .mob-toggle { display: flex; align-items: center; justify-content: center; }
  .navlinks {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(192,88,42,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .navlinks.open { display: flex; }

  .hero-banner { padding: 36px 0 56px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%); }
  .hero-inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero-logo-side { width: 60px; height: 60px; order: -1; }
  .hero-h1 { font-size: 1.5rem; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }

  .zigzag-row { grid-template-columns: 1fr; gap: 24px; }
  .zigzag-row.reverse .zigzag-visual { order: 0; }
  .zigzag-row.reverse .zigzag-content { order: 0; }
  .zigzag-icon-box { width: 80px; height: 80px; border-radius: 18px; }
  .zigzag-icon-box svg { width: 32px; height: 32px; }

  .sec-h2 { font-size: 1.6rem; }
  .sec { padding: 56px 0; }

  .dl-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .dl-win-hero { grid-template-columns: 1fr; }
  .dl-win-left { padding: 28px 24px; }
  .dl-win-right { padding: 24px; }
  .dl-win-features { grid-template-columns: 1fr; }
  .dl-other-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .reviews-masonry { grid-template-columns: 1fr; }

  .cta-ribbon { padding: 40px 24px; }
  .cta-ribbon h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.35rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .plat-acc-head { padding: 14px 16px; font-size: .95rem; }
}
