/* ==========================================================================
   Nice加速专线机场 (nicejs.homes) - Matrix Lime & Cyberpunk Obsidian
   ========================================================================== */

:root {
  --bg-main: #050807;
  --bg-card: rgba(10, 24, 16, 0.82);
  --bg-card-hover: rgba(16, 36, 24, 0.92);
  
  --primary: #84cc16;
  --secondary: #10b981;
  --accent: #4ade80;
  
  --text-main: #ffffff;
  --text-muted: #86efac;
  
  --border-subtle: rgba(132, 204, 22, 0.24);
  --border-focus: rgba(74, 222, 128, 0.55);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  background: radial-gradient(circle at 50% 0%, #0e2417 0%, #050807 65%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header & Nav */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--border-focus);
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--btn-grad);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #84cc16 0%, #10b981 60%, #eab308 100%);
  color: #0a1f0d;
  box-shadow: 0 4px 20px var(--border-focus);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--border-focus);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Hero */
.hero-section {
  padding: 160px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #84cc16 0%, #10b981 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.hl-item {
  display: flex;
  flex-direction: column;
}

.hl-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}

.hl-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Live Speed Card */
.hero-visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.card-title-sm {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.speed-meter-box {
  text-align: center;
  padding: 20px 0;
}

.speed-num {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #84cc16 0%, #10b981 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

.latency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.latency-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.latency-region {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.latency-ms {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

/* Bento Grid */
.features-section {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing */
.plans-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.price-card.featured {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #84cc16 0%, #10b981 60%, #eab308 100%);
  color: #0a1f0d;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 20px;
}

.plan-header {
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-price-wrap {
  margin: 18px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.plan-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-icon {
  color: var(--accent);
  font-weight: bold;
}

/* Nodes Table */
.nodes-section {
  padding: 100px 0;
}

.nodes-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.nodes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.nodes-table th, .nodes-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.nodes-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nodes-table td {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.nodes-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ */
.faq-section {
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0 100px;
}

.cta-banner h2 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.footer-main {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Subpage articles */
.subpage-container {
  max-width: 900px;
  margin: 140px auto 80px;
  padding: 0 24px;
}

.subpage-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
  margin-bottom: 40px;
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.subpage-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-content {
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content h3 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.callout-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-highlights { justify-content: center; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2.2rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}