/* ==========================================================================
   Shadowrocket PC - Cyber Obsidian & Aurora Theme (旗舰深曜极光风格)
   Designed for Bing SEO Excellence & Distinctive Visual Identity
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Theme Palette - Dark Obsidian with Neon Accents */
  --bg-dark-base: #0a0f1d;
  --bg-dark-surface: #111827;
  --bg-dark-card: #1e293b;
  --bg-dark-card-hover: #243248;
  --bg-dark-subtle: #0f172a;

  --color-primary: #10b981;        /* Emerald 500 */
  --color-primary-glow: #059669;   /* Emerald 600 */
  --color-primary-light: rgba(16, 185, 129, 0.12);

  --color-accent: #06b6d4;         /* Cyan 500 */
  --color-accent-light: rgba(6, 182, 212, 0.12);

  --color-warning: #f59e0b;
  --color-danger: #f43f5e;
  --color-info: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-color: #334155;
  --border-glow: rgba(16, 185, 129, 0.35);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 24px rgba(16, 185, 129, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1240px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-dark-base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark-base);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #34d399;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Top Banner */
.top-notice-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.825rem;
  color: var(--text-muted);
  text-align: center;
}

.top-notice-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0f1d;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #0a0f1d;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #0a0f1d;
}

.btn-secondary {
  background: var(--bg-dark-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-dark-card-hover);
  border-color: #475569;
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-title .glow-text {
  background: linear-gradient(135deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.5rem;
  color: #ffffff;
  font-family: var(--font-mono);
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Hero Terminal Box */
.terminal-card {
  background: #0d1322;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.terminal-header {
  background: #151d2f;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.w-red { background: #f43f5e; }
.w-yellow { background: #f59e0b; }
.w-green { background: #10b981; }

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.console-line {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.console-prompt {
  color: var(--color-accent);
}

.console-output {
  color: #e2e8f0;
}

.node-status-bar {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-dark-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}

.section-badge {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.cyber-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cyber-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cyber-card:hover {
  transform: translateY(-4px);
  border-color: #475569;
  box-shadow: var(--shadow-md);
}

.cyber-card:hover::before {
  opacity: 1;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Table */
.data-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-dark-card);
  margin: 32px 0;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.cyber-table th {
  background: #151d2f;
  padding: 16px 22px;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.cyber-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.cyber-table tr:last-child td {
  border-bottom: none;
}

.cyber-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.chip-online {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chip-idle {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Step Flow */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--border-color);
}

.process-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-badge {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.step-details h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.code-snippet-box {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Callout */
.alert-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
  background: var(--bg-dark-card);
}

.alert-emerald {
  border-color: var(--color-primary);
  background: rgba(16, 185, 129, 0.05);
}

.alert-amber {
  border-color: var(--color-warning);
  background: rgba(245, 158, 11, 0.05);
}

.alert-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #ffffff;
}

/* FAQ */
.faq-wrapper {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: #475569;
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-trigger:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-icon-arrow {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

.faq-card.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-card.active .faq-body {
  max-height: 1000px;
  transition: max-height 0.3s ease-in-out;
  padding: 0 24px 22px;
}

/* Footer */
.site-footer {
  background: #060a14;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-statement {
  background: #0f172a;
  border: 1px solid var(--border-color);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  font-size: 0.825rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-nav-list a:hover {
  color: var(--color-primary);
}

.footer-bottom-row {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #0a0f1d;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step-badge {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
