/* ==========================================================================
   可达机场 (Kedajichang) - High-End Dark Gold Streaming Theme
   ========================================================================== */

:root {
  --bg-dark: #07080a;
  --bg-card: rgba(18, 20, 28, 0.7);
  --bg-card-hover: rgba(28, 32, 45, 0.85);
  --border-color: rgba(230, 185, 128, 0.15);
  --border-hover: rgba(230, 185, 128, 0.4);
  
  --accent-gold: #e6b980;
  --accent-gold-glow: rgba(230, 185, 128, 0.3);
  --accent-cyan: #00f2fe;
  --accent-red: #e50914; /* Netflix Red Accent */
  --accent-purple: #7928ca;

  --text-main: #f0f2f5;
  --text-muted: #9aa0b4;
  --text-gold: #f8d7a6;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

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

.bg-ambient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(229, 9, 20, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(230, 185, 128, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Top Announcement Ticker Bar */
.announcement-bar {
  background: linear-gradient(90deg, #b81414, #e6b980, #7928ca);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.announcement-badge {
  background: rgba(0,0,0,0.4);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  margin-left: 6px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(7, 8, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #000;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  color: var(--accent-gold);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49553 100%);
  color: #0e1017 !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
  transition: var(--transition-normal) !important;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 185, 128, 0.5);
}

/* Hero Section */
.hero {
  padding: 90px 5% 70px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(230, 185, 128, 0.1);
  border: 1px solid var(--border-hover);
  color: var(--accent-gold);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #d2d6e3 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 55px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49553 100%);
  color: #07080a;
  padding: 16px 36px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(230, 185, 128, 0.35);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(230, 185, 128, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

/* Streaming Platforms Grid Showcase */
.platform-badges-container {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-badges-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.platform-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.platform-chip:hover {
  background: rgba(230, 185, 128, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.platform-chip svg {
  width: 18px;
  height: 18px;
}

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

.section-subtitle {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
}

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

/* Section 3: Latency & Node Status Board */
.status-section {
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.node-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.node-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

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

.node-flag {
  font-size: 22px;
}

.node-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
}

.node-type-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(230, 185, 128, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 185, 128, 0.3);
  font-weight: 600;
}

.node-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ping-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #00e676;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Section 4: Core Advantages */
.advantages-section {
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.adv-card:hover::before {
  opacity: 1;
}

.adv-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(230, 185, 128, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  border: 1px solid rgba(230, 185, 128, 0.2);
}

.adv-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.adv-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Section 4: Subscription Pricing */
.pricing-section {
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(230, 185, 128, 0.08) 0%, rgba(18, 20, 28, 0.85) 100%);
  box-shadow: 0 10px 40px rgba(230, 185, 128, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-gold), #c49553);
  color: #07080a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price span {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-main);
}

.plan-features li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Section 5: FAQ */
.faq-section {
  padding: 80px 5%;
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question svg {
  transition: transform var(--transition-fast);
  color: var(--accent-gold);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Section 6: User Reviews */
.reviews-section {
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 14px;
}

.review-text {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.review-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

.review-role {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Section 5 & 8: Separate Dedicated Knowledge Base Section / Modal Page */
.docs-view-container {
  display: none;
  padding: 50px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.docs-view-container.active {
  display: block;
}

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

.docs-search-bar {
  max-width: 600px;
  margin: 25px auto 0;
  position: relative;
}

.docs-search-input {
  width: 100%;
  background: rgba(18, 20, 28, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 14px 24px 14px 50px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.docs-search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

.docs-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.docs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.docs-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-cat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.docs-article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-article-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.docs-article-item:hover, .docs-article-item.active {
  background: rgba(230, 185, 128, 0.1);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.docs-article-item.active {
  font-weight: 700;
  color: var(--accent-gold);
}

.docs-content-area {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px;
  backdrop-filter: blur(16px);
  min-height: 600px;
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 14px;
}

.article-body {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 35px 0 16px;
  color: var(--text-gold);
  border-left: 4px solid var(--accent-gold);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 25px 0 12px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-body pre {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-body code {
  font-family: "Fira Code", Monaco, Consolas, monospace;
  font-size: 14px;
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  background: rgba(5, 6, 8, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 5% 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 40px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: relative; top: 0; max-height: 300px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Mobile Menu Toggle can be added */
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .docs-content-area { padding: 25px; }
}
