/* ==========================================================================
   青玄 QXuanAI · 官方声学与音乐工作站 宣传网站样式表
   Design Language: Studio Acoustic Engineering · Dark Titanium & Cyan Glow
   ========================================================================== */

:root {
  --bg-deep: #060911;
  --bg-surface: #0b1120;
  --bg-card: rgba(13, 20, 36, 0.85);
  --bg-card-hover: rgba(18, 28, 50, 0.95);
  --border-subtle: #18243c;
  --border-medium: #223555;
  --border-cyan: #00cfe8;
  --cyan-glow: #00f2fe;
  --cyan-sub: #38bdf8;
  --cyan-dim: rgba(0, 207, 232, 0.12);
  --amber-meter: #f59e0b;
  --green-live: #10b981;
  --red-alert: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --shadow-glow: 0 0 30px rgba(0, 207, 232, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: 
    radial-gradient(circle at 50% 0%, #0e1e3d 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 207, 232, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(0, 114, 255, 0.05) 0%, transparent 40%),
    var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Subtle Studio Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.grid-laser-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

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

/* Top Navbar */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 17, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(0, 207, 232, 0.35);
  border: 1px solid rgba(0, 207, 232, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan-sub) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green-live);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  margin-left: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 8px var(--green-live);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--cyan-sub);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--border-cyan) 0%, #0072ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 207, 232, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 207, 232, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #111a2e;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--border-cyan);
  color: var(--cyan-sub);
  background: #15223c;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cyan-sub);
  background: rgba(0, 207, 232, 0.08);
  border: 1px solid rgba(0, 207, 232, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #0072ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interactive Studio Console Deck */
.console-deck-wrapper {
  margin-top: 50px;
  background: linear-gradient(180deg, #10192d 0%, #090e1c 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 207, 232, 0.08);
  overflow: hidden;
  position: relative;
}

.deck-chrome {
  background: #090e1a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deck-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
}
.deck-dot.red { background: #ef4444; }
.deck-dot.amber { background: #f59e0b; }
.deck-dot.green { background: #10b981; }

.deck-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-live-tag {
  color: var(--cyan-sub);
  background: rgba(0, 207, 232, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.deck-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .deck-body {
    grid-template-columns: 1fr;
  }
}

/* Canvas Oscilloscope View */
.oscilloscope-box {
  background: #050811;
  border: 1px solid #16243d;
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.scope-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scope-stats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.scope-canvas-wrap {
  width: 100%;
  height: 160px;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0a1324 0%, #050811 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 207, 232, 0.15);
}

#scopeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.oscilloscope-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.meter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-bar-bg {
  width: 120px;
  height: 8px;
  background: #111a2e;
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 70%, #ef4444 100%);
  border-radius: 4px;
  transition: width 0.1s ease;
}

/* Mixer & Mode Controls */
.mixer-controls {
  background: #090f1d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mixer-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* 4-Way Hardware Mode Switcher */
.mode-switch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.mode-btn {
  background: #101a2f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  background: #15223e;
  border-color: var(--border-medium);
}

.mode-btn.active {
  background: rgba(0, 207, 232, 0.12);
  border-color: var(--border-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 207, 232, 0.15);
}

.mode-btn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mode-btn-title {
  font-size: 13px;
  font-weight: 700;
}

.mode-btn-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan-sub);
  background: rgba(0, 207, 232, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
}

.mode-btn-desc {
  font-size: 11px;
  color: var(--text-dim);
}

.mode-btn.active .mode-btn-desc {
  color: var(--text-muted);
}

/* Hardware Fader & Knobs */
.fader-control-row {
  margin-bottom: 18px;
}

.fader-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fader-val {
  font-family: var(--font-mono);
  color: var(--cyan-sub);
  font-weight: 700;
}

.fader-slider {
  width: 100%;
  height: 6px;
  background: #17243d;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.fader-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan-sub);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  cursor: pointer;
  border: 2px solid #ffffff;
}

/* Audio Player Interactive Row */
.audio-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.play-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--border-cyan) 0%, #0072ff 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 207, 232, 0.35);
  transition: transform 0.2s ease;
}

.play-toggle-btn:hover {
  transform: scale(1.05);
}

.track-info {
  flex: 1;
}

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

.track-status {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Section Title Standards */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

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

/* Pillars Cards (4 Core Acoustic Engineering Pillars) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

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

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 207, 232, 0.08);
  border: 1px solid rgba(0, 207, 232, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--cyan-sub);
}

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pillar-spec-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-sub);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-spec-list li::before {
  content: "▹ ";
  color: var(--text-dim);
}

/* Hardware Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  position: relative;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.showcase-media:hover .showcase-img {
  transform: scale(1.02);
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-sub);
  background: rgba(0, 207, 232, 0.08);
  border: 1px solid rgba(0, 207, 232, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Specs Table */
.specs-table-wrap {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.specs-table th, .specs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  background: #090e1a;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.param-name {
  font-weight: 700;
  color: #ffffff;
}

.param-qxuan {
  color: var(--cyan-sub);
  font-weight: 600;
  font-family: var(--font-mono);
}

.param-traditional {
  color: var(--text-dim);
}

/* Ecosystem / Download Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 207, 232, 0.12);
}

.card-top {
  margin-bottom: 24px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--cyan-sub);
  background: rgba(0, 207, 232, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.platform-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

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

.card-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-col-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col-links a:hover {
  color: var(--cyan-sub);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions .btn-outline {
    display: none;
  }
}
