/* 一枝红杏网络加速器 - 极简工业风 CSS 样式表 (style.css) */

:root {
  /* Industrial Color Palette */
  --bg-primary: #09090b;
  --bg-surface: #121215;
  --bg-card: #18181c;
  --bg-card-hover: #222227;
  --bg-code: #0d0d10;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-accent: #f97316;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --accent-orange: #f97316;
  --accent-purple: #9333ea;
  --accent-purple-glow: rgba(147, 51, 234, 0.25);
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;

  --font-mono: "Fira Code", "Courier New", Courier, monospace;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Industrial Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
}

.brand-logo .brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

.btn-nav-promo {
  background: var(--accent-orange);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent-orange);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
  transition: var(--transition);
}

.btn-nav-promo:hover {
  background: #fb923c;
  color: #000;
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border-light);
}

/* Industrial Section Tag */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

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

/* Hero Section */
.hero-section {
  padding: 100px 0 120px;
  overflow: hidden;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .title-accent {
  color: var(--accent-purple);
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Promo Buttons */
.btn-primary-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px var(--accent-purple-glow);
  transition: var(--transition);
}

.btn-primary-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
  color: #ffffff;
}

.btn-secondary-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-secondary-promo:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Hero Industrial Graphic Box */
.hero-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.server-node {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag {
  font-size: 1.2rem;
}

.node-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent-purple);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.service-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border: 2px solid var(--accent-purple);
  box-shadow: 0 10px 40px var(--accent-purple-glow);
}

.featured-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.plan-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-purple);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Code Container & Terminal Block (代码块极简工业风美化) */
.code-block-wrapper {
  background: var(--bg-code);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.code-block-header {
  background: #16161b;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-copy-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.code-copy-btn.copied {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}

pre {
  background: transparent;
  padding: 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e4e4e7;
  overflow-x: auto;
  white-space: pre;
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-orange);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Footer */
.site-footer {
  background: #050507;
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--accent-orange);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Floating Chapter Navigation Arrows */
.chapter-nav-arrows {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  background: rgba(24, 24, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arrow-btn:hover:not(:disabled) {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  transform: scale(1.08);
}

.arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .chapter-nav-arrows {
    right: 12px;
  }

  .arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    gap: 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary-promo, .btn-secondary-promo {
    width: 100%;
  }

  .chapter-nav-arrows {
    right: 8px;
    bottom: 20px;
    top: auto;
    transform: none;
    flex-direction: row;
  }
}
