/* ==========================================================================
   绿叶VPN LinkCube - 全球加速网络 纯原生极简样式表
   零外部依赖 | 移动端优先深度适配 | 秒开级加载性能
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(5, 150, 105, 0.15);
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-gold: #f59e0b;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --max-width: 1200px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================================
   Header & Navigation (Mobile First)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Button styles (Touch friendly min 40px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
  min-height: 42px;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.825rem;
  min-height: 34px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 36px 0 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.09) 0%, rgba(248, 250, 252, 0) 75%);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  max-width: 100%;
  line-height: 1.4;
  word-break: break-word;
}

.hero-title {
  font-size: clamp(1.75rem, 6.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.hero-title span {
  color: var(--primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.65;
  padding: 0 4px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
  max-width: 320px;
}

.hero-guarantee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Section Layout Styles
   ========================================================================== */
.section {
  padding: 48px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 0 8px;
}

.section-eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Core Advantages (3 Cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Streaming & AI Support Cards
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.support-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.support-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  line-height: 1.3;
}

.tag-item:hover, .tag-item:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(5, 150, 105, 0.3);
}

.tag-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Pricing Section (Responsive: Stack on Mobile, Row on Desktop)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 3px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.plan-price {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  vertical-align: super;
}

.price-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.price-unit {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.plan-features {
  margin-bottom: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 700;
}

/* ==========================================================================
   User Reviews & Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  gap: 8px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.author-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Section (Accordion: Pure HTML details/summary)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
  line-height: 1.4;
  gap: 10px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--primary);
}

.faq-item[open] {
  border-color: rgba(5, 150, 105, 0.4);
}

.faq-answer {
  padding: 0 18px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Articles Section (SEO hub)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-tag {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 7px;
  border-radius: 4px;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-main);
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Sub-pages & Article Content Layout (Mobile Optimized)
   ========================================================================== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.content-page-wrapper {
  max-width: 860px;
  margin: 16px auto 48px;
  background: #ffffff;
  padding: 22px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.article-full-title {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
  word-break: break-word;
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prose {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #1e293b;
  word-break: break-word;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-main);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.prose p {
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.prose ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.prose ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: normal;
  color: #064e3b;
  font-size: 0.92rem;
}

/* Responsive Table Wrapper (Swipeable on Mobile) */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.prose th, .prose td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.article-cta-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  margin: 32px 0 16px;
}

.article-cta-box h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #065f46;
}

.article-cta-box p {
  font-size: 0.88rem;
  color: #047857;
  margin-bottom: 16px;
}

.article-cta-box .btn {
  width: 100%;
  max-width: 280px;
}

/* ==========================================================================
   Footer (Strictly 4 links with thumb-friendly layout)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 0 28px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
  width: 100%;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 0.825rem;
  max-width: 500px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.2s ease;
}

.footer-nav a:hover, .footer-nav a:active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.footer-disclosure {
  padding-top: 20px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-disclosure strong {
  color: #94a3b8;
}

.footer-bottom {
  margin-top: 18px;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Responsive Breakpoints: Tablets & Desktops
   ========================================================================== */
@media (min-width: 480px) {
  .nav-wrapper {
    height: 64px;
  }
  .brand-logo {
    font-size: 1.2rem;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .hero-actions .btn {
    width: auto;
  }
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: auto;
  }
  .footer-nav a {
    background: transparent;
    border: none;
    padding: 4px 8px;
  }
  .content-page-wrapper {
    padding: 36px 28px;
    margin: 28px auto 56px;
  }
  .prose table {
    display: table;
    white-space: normal;
  }
}

@media (min-width: 768px) {
  .site-header {
    height: 68px;
  }
  .nav-wrapper {
    height: 68px;
  }
  .nav-links {
    display: flex;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .content-page-wrapper {
    padding: 44px 36px;
  }
}

@media (min-width: 1024px) {
  /* Pricing cards in the exact same row on desktop */
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .plan-desc {
    min-height: 44px;
  }
}
