/* ===================================================================
   一只红杏 (1zhxvpn.lol) - 航天战术与机械工控工程设计系统 (Aerospace Blueprint)
   视觉基调：钛金哑光黑灰 + 航空安全烈焰橙 + 战术天青标线 + 十字准星 + 坚固切角
   =================================================================== */

:root {
  --bg-canvas: #090e17;
  --bg-surface: #101a28;
  --bg-panel: #162438;
  --bg-panel-hover: #1d2e47;
  --bg-hud: rgba(16, 26, 40, 0.9);

  --brand-flame: #f97316;
  --brand-flame-hover: #ea580c;
  --brand-flame-glow: rgba(249, 115, 22, 0.35);
  --brand-steel: #94a3b8;
  --brand-radar: #06b6d4;
  --brand-radar-glow: rgba(6, 182, 212, 0.25);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #64748b;
  --text-inverse: #090e17;

  --border-blueprint: #243852;
  --border-active: #f97316;
  --border-radar: #06b6d4;

  --font-system: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;

  --shadow-tactical: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--border-blueprint);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(36, 56, 82, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 56, 82, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 14, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-blueprint);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-blueprint);
  color: var(--brand-flame);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-flame);
}

.nav-btn {
  background: var(--brand-flame);
  color: #090e17;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fb923c;
  box-shadow: 0 0 15px var(--brand-flame-glow);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--brand-flame-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 72px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--brand-flame);
  border-radius: var(--radius-xs);
  color: var(--brand-flame);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 22px;
}

.hero-title-accent {
  color: var(--brand-flame);
  text-shadow: 0 0 20px var(--brand-flame-glow);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #090e17;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  border: 1px solid #fdba74;
  box-shadow: 0 0 25px var(--brand-flame-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.55);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-blueprint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-secondary:hover {
  border-color: var(--brand-radar);
  color: var(--brand-radar);
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-blueprint);
  padding-top: 24px;
}

.telem-item {
  display: flex;
  flex-direction: column;
}

.telem-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-flame);
}

.telem-lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Radar Telemetry Matrix Card */
.radar-matrix-card {
  background: var(--bg-hud);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-tactical);
  position: relative;
}

.radar-matrix-card::before {
  content: "+";
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--brand-flame);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.radar-matrix-card::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--brand-flame);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-blueprint);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.radar-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-flame);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.radar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.radar-table th {
  text-align: left;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-blueprint);
}

.radar-table td {
  padding: 10px 6px;
  border-bottom: 1px dashed var(--border-blueprint);
  color: var(--text-muted);
}

.radar-table tr:hover td {
  background: rgba(249, 115, 22, 0.05);
  color: var(--text-main);
}

.ping-chip {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10b981;
}

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  color: var(--brand-flame);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  position: relative;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--brand-flame);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.feature-marker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-flame);
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.case-sys-tag {
  align-self: flex-start;
  padding: 3px 10px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--brand-flame);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.case-device {
  font-size: 0.84rem;
  color: var(--brand-radar);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.case-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--brand-flame);
  box-shadow: 0 0 35px var(--brand-flame-glow);
}

.featured-tactical {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--brand-flame);
  color: #090e17;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plan-price {
  margin-bottom: 24px;
}

.price-num {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--brand-flame);
  font-family: var(--font-mono);
}

.price-unit {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "[√]";
  color: var(--brand-flame);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-xs);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.1rem;
  color: var(--brand-flame);
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Final CTA */
.final-cta-section {
  padding: 80px 24px;
  background: var(--bg-surface);
  border-top: 2px solid var(--border-blueprint);
  text-align: center;
}

.final-cta-card {
  max-width: 860px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #060a10;
  border-top: 1px solid var(--border-blueprint);
  padding: 50px 24px 30px;
  color: var(--text-dim);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-flame);
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
  max-width: 950px;
  margin: 0 auto 20px;
  color: #64748b;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* Legal Pages & Articles */
.legal-container, .article-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.legal-card, .article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-blueprint);
  border-radius: var(--radius-sm);
  padding: 48px;
  box-shadow: var(--shadow-tactical);
}

.page-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--brand-flame);
}

.update-time {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-blueprint);
  padding-bottom: 14px;
  font-family: var(--font-mono);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2, .article-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-main);
  border-left: 3px solid var(--brand-flame);
  padding-left: 12px;
}

.legal-section p, .article-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul, .article-card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-section li, .article-card li {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Article specific */
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 26px;
  font-family: var(--font-mono);
}

.article-lead {
  font-size: 1.08rem !important;
  color: var(--text-main) !important;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid var(--border-blueprint);
  padding: 18px 22px;
  border-radius: var(--radius-xs);
  margin-bottom: 28px;
}

.article-cta {
  background: var(--bg-panel);
  border: 1px solid var(--brand-flame);
  border-radius: var(--radius-xs);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.article-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-flame);
}

.article-crosslinks {
  border-top: 1px solid var(--border-blueprint);
  padding-top: 24px;
  margin-top: 36px;
}

.article-crosslinks h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.crosslink-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crosslink-list a {
  color: var(--brand-radar);
  font-size: 0.95rem;
}

.crosslink-list a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-telemetry {
    justify-content: center;
  }
  .features-grid, .cases-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .legal-card, .article-card {
    padding: 28px 20px;
  }
}
