/* ==========================================================================
   悠兔机场 (utoovpn.lol) - 官方网站设计系统
   融合复古怀旧风格 (Vintage Retro) 与现代极简极速科技质感
   ========================================================================== */

:root {
  /* Vintage Color Palette */
  --bg-primary: #F7F3EB;
  --bg-secondary: #EFE8DC;
  --bg-card: #FAF7F2;
  --text-main: #2C221E;
  --text-muted: #6B5B52;
  --text-light: #948377;
  
  --border-vintage: #6A452C;
  --border-light: #DDD2C4;
  --accent-gold: #C88A49;
  --accent-brown: #4A2E1B;
  --accent-dark: #2A170B;
  --accent-red: #D94E48;
  
  /* Package Dark Card Colors (Image 2 style) */
  --pkg-bg: #121826;
  --pkg-bg-pop: #1E1A34;
  --pkg-border: #2D3748;
  --pkg-border-pop: #7C3AED;
  --pkg-text: #F3F4F6;
  --pkg-muted: #9CA3AF;
  --pkg-accent-purple: #8B5CF6;
  --pkg-accent-glow: rgba(139, 92, 246, 0.35);

  /* Fonts */
  --font-serif: "Georgia", "Times New Roman", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Layout Radius & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-vintage: 0 10px 25px -5px rgba(42, 23, 11, 0.08), 0 8px 10px -6px rgba(42, 23, 11, 0.04);
  --shadow-hover: 0 20px 35px -5px rgba(42, 23, 11, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Vintage Particle Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--accent-dark);
}

a {
  color: var(--border-vintage);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-gold);
}

/* retro frame box (Image 1 Style) */
.retro-box {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-vintage);
  padding: 40px;
  box-shadow: var(--shadow-vintage);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.retro-box::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid var(--border-vintage);
  pointer-events: none;
  opacity: 0.6;
}

/* Corner Brackets (┌ ┐ └ ┘) */
.corner-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--border-vintage);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.corner-top-left {
  top: 14px;
  left: 14px;
  border-width: 3px 0 0 3px;
}

.corner-top-right {
  top: 14px;
  right: 14px;
  border-width: 3px 3px 0 0;
}

.corner-bottom-left {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 3px 3px;
}

.corner-bottom-right {
  bottom: 14px;
  right: 14px;
  border-width: 0 3px 3px 0;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--accent-brown);
  color: #F7F3EB;
  font-size: 0.875rem;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 101;
  letter-spacing: 0.5px;
}

.top-bar a {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 8px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-vintage);
  z-index: 100;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--accent-brown);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-brown);
  color: #FFF !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-vintage);
  box-shadow: 0 4px 12px rgba(74, 46, 27, 0.25);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 138, 73, 0.35);
}

.btn-glow {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-glow:hover {
  background: linear-gradient(135deg, #9F67FF 0%, #7C3AED 100%);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-dark);
  cursor: pointer;
}

/* Hero Section (Image 1 Retro Vibe) */
.hero-section {
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-vintage-card {
  text-align: center;
  padding: 50px 30px;
}

.vintage-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-light);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--accent-brown);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Live Speed & Status Ticker Widget */
.hero-widget {
  background: #1E1B18;
  color: #E2D9CE;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 2px solid var(--border-vintage);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #332C26;
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag {
  font-size: 1.1rem;
}

.ping-badge {
  color: #10B981;
  font-weight: 600;
  font-family: monospace;
}

/* Section Title Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--accent-dark);
}

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

/* Features / Advantages Grid */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-vintage);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-vintage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  color: var(--accent-brown);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* Pricing Section (Image 2 Style) */
.pricing-section {
  padding: 80px 0;
  background: #0B0F19; /* Dark contrast container for packages */
  color: #fff;
  border-top: 3px solid var(--border-vintage);
  border-bottom: 3px solid var(--border-vintage);
  position: relative;
}

.pricing-section .section-title {
  color: #fff;
}

.pricing-section .section-desc {
  color: #9CA3AF;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pkg-card {
  background: var(--pkg-bg);
  border: 1px solid var(--pkg-border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pkg-card:hover {
  transform: translateY(-6px);
  border-color: var(--pkg-accent-purple);
  box-shadow: 0 12px 30px var(--pkg-accent-glow);
}

.pkg-card.popular {
  background: var(--pkg-bg-pop);
  border: 2px solid var(--pkg-border-pop);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8B5CF6, #D946EF);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.pkg-header {
  margin-bottom: 24px;
}

.pkg-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.pkg-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.pkg-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pkg-unit {
  color: var(--pkg-muted);
  font-size: 0.95rem;
}

.pkg-subtitle {
  color: var(--pkg-muted);
  font-size: 0.875rem;
  min-height: 42px;
}

.pkg-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pkg-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #D1D5DB;
}

.pkg-features li svg {
  color: #10B981;
  flex-shrink: 0;
}

.btn-pkg {
  display: block;
  text-align: center;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.btn-pkg:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.pkg-card.popular .btn-pkg {
  background: var(--pkg-accent-purple);
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pkg-card.popular .btn-pkg:hover {
  background: #7C3AED;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* SEO Keyword Cloud Bar */
.seo-keywords-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  overflow: hidden;
}

.keywords-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.keyword-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-vintage);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-brown);
  font-weight: 500;
  transition: all 0.2s ease;
}

.keyword-pill:hover {
  background: var(--accent-brown);
  color: #fff;
}

/* Articles Section */
.articles-section {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-vintage);
  box-shadow: var(--shadow-hover);
}

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

.article-tag {
  background: rgba(200, 138, 73, 0.15);
  color: var(--accent-brown);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.article-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-title a {
  color: var(--accent-dark);
}

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

.article-excerpt {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Single Article Full View Page Styling */
.article-page {
  padding: 60px 0 100px;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 auto 30px;
  max-width: 800px;
}

.article-content {
  background: var(--bg-card);
  border: 2px solid var(--border-vintage);
  padding: 48px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  box-shadow: var(--shadow-vintage);
  border-radius: var(--radius-sm);
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  color: var(--accent-dark);
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 28px 0 14px;
  color: var(--accent-brown);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-cta-box {
  background: linear-gradient(135deg, #2A170B 0%, #4A2E1B 100%);
  color: #FFF;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta-box h3 {
  color: var(--accent-gold);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.article-cta-box p {
  color: #EFE8DC;
  margin-bottom: 20px;
}

/* Article FAQ Accordion */
.article-faq {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px dashed var(--border-vintage);
}

.article-faq h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-vintage);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  background: var(--bg-card);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 16px 24px 24px;
  border-top: 1px dashed var(--border-light);
}

/* Related Articles Grid */
.related-articles {
  margin-top: 60px;
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: #D5C7B7;
  padding: 60px 0 30px;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #B0A090;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #948377;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--border-vintage);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav-menu.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .article-content {
    padding: 24px;
  }
}
