/* ==========================================================================
   PuLiu (谱流) — Next-Gen Modern UI Design System
   Inspired by Apple, Linear, Raycast, and Vercel Modern Light Aesthetics
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Premium Light Canvas */
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Brand Accents */
  --brand-blue: #0071e3;
  --brand-blue-hover: #0077ed;
  --brand-blue-glow: rgba(0, 113, 227, 0.15);
  --brand-cyan: #0284c7;
  --brand-emerald: #10b981;
  --brand-purple: #8b5cf6;
  --brand-rose: #f43f5e;

  /* Glass & Borders */
  --border-hairline: rgba(0, 0, 0, 0.06);
  --border-light: #e2e8f0;
  --border-focus: #0071e3;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 20px 60px -10px rgba(0, 113, 227, 0.12);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --nav-height: 58px;
  --transition-base: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.04) 0%, transparent 60%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar (Linear/Apple Hybrid Frosted Navbar)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--brand-blue);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0, 113, 227, 0.15);
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-cta {
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 980px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
  transition: var(--transition-base);
}

.nav-cta:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
}

/* ==========================================================================
   Hero Section (Top-Tier SaaS Visual with Live Mockup)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: 980px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.hero-pill:hover {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.08);
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: #090e17;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0071e3 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.3vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 980px;
  font-size: 1.02rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
  transition: var(--transition-base);
}

.btn-primary-hero:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 13px 28px;
  border-radius: 980px;
  font-size: 1.02rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.btn-secondary-hero:hover {
  background: var(--bg-tertiary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-item svg {
  color: var(--brand-blue);
}

/* ==========================================================================
   Interactive Hero Mockup (Simulated Studio Workstation)
   ========================================================================== */
.studio-mockup-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 30px 90px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  text-align: left;
}

/* Studio Window Titlebar */
.studio-titlebar {
  height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.studio-traffic-lights {
  display: flex;
  gap: 8px;
}

.studio-traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-red { background: #ff5f56; }
.traffic-yellow { background: #ffbd2e; }
.traffic-green { background: #27c93f; }

.studio-title-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-titlebar-right {
  font-size: 0.78rem;
  color: var(--brand-emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Studio Toolbar Controls */
.studio-toolbar {
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.studio-tool-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-pill-tag {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.studio-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Score Canvas Area */
.studio-canvas {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  height: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Moving Glowing Playhead */
.studio-playhead-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0071e3;
  box-shadow: 0 0 12px #0071e3;
  z-index: 10;
  left: 42%;
  animation: playheadSweep 8s infinite linear;
}

@keyframes playheadSweep {
  0% { left: 10%; }
  100% { left: 90%; }
}

.studio-score-sheet {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Bento Grid: 4 Modern Product Pillars
   ========================================================================== */
.section-bento {
  padding: 96px 0;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--brand-blue-glow);
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0f172a;
}

.bento-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border-light);
  background: #ffffff;
}

/* ==========================================================================
   Interactive ProRes Alpha Comparison Showcase
   ========================================================================== */
.alpha-comparison-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 60px 0;
  box-shadow: var(--shadow-md);
}

.alpha-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .alpha-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .alpha-comparison-box {
    padding: 32px 20px;
  }
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   Comparison Table (传统方案 vs 谱流智能方案)
   ========================================================================== */
.section-comparison {
  padding: 80px 0;
}

.comp-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.comp-table th {
  padding: 18px 24px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
}

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

.comp-highlight {
  background: rgba(0, 113, 227, 0.03);
  font-weight: 600;
  color: var(--brand-blue);
}

/* ==========================================================================
   Creator Testimonials Grid (真实音乐人好评)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-blue);
}

.author-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Pricing & Checkout
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.pricing-card-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 50px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 800px) {
  .pricing-card-wrapper {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0;
}

.price-symbol {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.price-unit {
  font-size: 1rem;
  color: var(--text-muted);
}

.qr-box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.qr-box-inner img {
  width: 250px;
  height: 290px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.apple-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 56px 0 32px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

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

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

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */
.admin-body {
  background-color: #f8fafc;
  color: #1e293b;
}

.admin-header {
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

.admin-container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  border-radius: 3px;
  transition: var(--transition-base);
}

.admin-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.admin-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.issue-area {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .issue-area {
    flex-direction: column;
  }
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #1e293b;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn-copy {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.issue-result {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

.issue-result.active {
  display: block;
}

.sn-display {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #047857;
  letter-spacing: 0.05em;
  margin: 12px 0 16px;
  user-select: all;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.page-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.page-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.toast.show {
  display: block;
}

.toast.success {
  background: #047857;
}

.toast.error {
  background: #b91c1c;
}

/* ==========================================================================
   2026-10 界面同步：与软件新界面（puliu-ui-redesign 设计稿）统一的视觉规范
   颜色、圆角、阴影、字体都取自软件界面本身。
   ========================================================================== */
:root {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --bg-main: #ffffff;
  --bg-secondary: #F4F6FA;
  --bg-tertiary: #EFF3F9;
  --text-primary: #1A2233;
  --text-secondary: #4A5568;
  --text-muted: #8491A5;
  --brand-blue: #2F6BFF;
  --brand-blue-hover: #1F55E0;
  --brand-blue-glow: rgba(47, 107, 255, 0.18);
  --brand-purple: #7A5CFF;
  --brand-emerald: #14A267;
  --border-light: #E1E7F0;
  --border-focus: #2F6BFF;
  --pl-line: #E1E7F0;
  --pl-line-2: #CFD8E6;
  --pl-ink: #1A2233;
  --pl-ink-2: #4A5568;
  --pl-ink-3: #8491A5;
  --pl-primary: #2F6BFF;
  --pl-primary-soft: #E9F0FF;
  --pl-primary-line: #BFD2FF;
  --pl-violet: #7A5CFF;
  --pl-violet-soft: #F0ECFF;
  --pl-ok: #14A267;
  --pl-ok-soft: #E3F6EC;
  --pl-warn: #D9900B;
  --pl-warn-soft: #FFF4DA;
  --pl-warn-line: #F5D58A;
  --pl-shadow-1: 0 1px 2px rgba(22,40,80,.06), 0 2px 8px rgba(22,40,80,.05);
  --pl-shadow-2: 0 2px 6px rgba(22,40,80,.07), 0 12px 32px rgba(22,40,80,.09);
  --pl-shadow-3: 0 4px 12px rgba(22,40,80,.08), 0 30px 70px -20px rgba(22,40,80,.28);
}

body { font-family: var(--font-sans); color: var(--pl-ink); }
.nav-brand-badge { background: var(--pl-primary-soft); color: var(--pl-primary); }
.nav-cta { background: var(--pl-primary); box-shadow: 0 2px 8px rgba(47,107,255,.28); }
.nav-cta:hover { background: #1F55E0; }
.nav-link.nav-demo { color: var(--pl-primary); font-weight: 600; }
.btn-primary-hero { background: var(--pl-primary); box-shadow: 0 4px 14px rgba(47,107,255,.32); border-radius: 12px; }
.btn-primary-hero:hover { background: #1F55E0; }
.btn-secondary-hero { border-radius: 12px; border: 1px solid var(--pl-line-2); }
.hero-title .gradient-text { background: linear-gradient(120deg, #2F6BFF 0%, #7A5CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-box { background: linear-gradient(135deg, #2F6BFF 0%, #5B4BFF 60%, #7A5CFF 100%); border-radius: 20px; }

/* ---------- 通用版块 ---------- */
.pl-section { padding: 88px 0; }
.pl-section.alt { background: var(--bg-secondary); }
.pl-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.pl-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 14px 0 12px; color: var(--pl-ink); }
.pl-head p { color: var(--pl-ink-2); font-size: 1.02rem; line-height: 1.7; }

/* 识别条同款标签 */
.pl-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--pl-line); background: #fff; color: var(--pl-ink-2); white-space: nowrap; }
.pl-chip b { color: var(--pl-ink); font-weight: 600; }
.pl-chip.ai { background: var(--pl-violet-soft); border-color: #DCCFFF; color: #4B32B8; }
.pl-chip.ai b { color: #4B32B8; }
.pl-chip.ok:before, .pl-chip.warn:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pl-ok); }
.pl-chip.warn { background: var(--pl-warn-soft); border-color: var(--pl-warn-line); color: #8A5A00; }
.pl-chip.warn:before { background: var(--pl-warn); }
.pl-chip.blue { background: var(--pl-primary-soft); border-color: var(--pl-primary-line); color: #1F55E0; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- 软件窗口外框 ---------- */
.ui-window { position: relative; background: #fff; border: 1px solid var(--pl-line); border-radius: 16px; box-shadow: var(--pl-shadow-3); overflow: hidden; }
.ui-window img { display: block; width: 100%; height: auto; }
.ui-window.soft { box-shadow: var(--pl-shadow-2); border-radius: 14px; }

/* ---------- 首页在线体验 ---------- */
.live-demo { max-width: 1240px; margin: 44px auto 0; }
.live-demo .ui-window { aspect-ratio: 1440 / 900; }
.live-demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #F4F6FA; }
.live-demo .live-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; background: linear-gradient(180deg, rgba(244,246,250,0) 55%, rgba(26,34,51,.28) 100%); cursor: pointer; border: 0; width: 100%; }
.live-demo .live-cover span { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--pl-primary); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(47,107,255,.4); }
.live-demo.on .live-cover { display: none; }
.live-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; margin-top: 16px; font-size: 13px; color: var(--pl-ink-3); }
.live-meta a { color: var(--pl-primary); font-weight: 600; }
.demo-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; background: var(--pl-warn-soft); border: 1px solid var(--pl-warn-line); color: #8A5A00; }

/* ---------- 功能行 ---------- */
.feature-row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.rev { grid-template-columns: 7fr 5fr; }
.feature-row.rev .fr-text { order: 2; }
.fr-text .pl-chip { margin-bottom: 14px; }
.fr-text h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 14px; color: var(--pl-ink); }
.fr-text p { color: var(--pl-ink-2); line-height: 1.75; margin-bottom: 18px; }
.fr-list { list-style: none; display: grid; gap: 10px; }
.fr-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--pl-ink-2); font-size: .95rem; line-height: 1.6; }
.fr-list li:before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--pl-primary-soft); color: var(--pl-primary); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.fr-list b { color: var(--pl-ink); font-weight: 600; }
.fr-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--pl-primary); font-weight: 600; font-size: .95rem; }

/* ---------- 风格预设画廊 ---------- */
.style-gallery { max-width: 1180px; margin: 0 auto; }
.style-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.style-tabs button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; padding: 10px 8px 9px; border-radius: 12px; border: 1px solid var(--pl-line); background: #fff; cursor: pointer; font: inherit; color: var(--pl-ink-2); font-size: 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s, transform .15s; }
.style-tabs button:hover { transform: translateY(-1px); border-color: var(--pl-line-2); }
.style-tabs button.on { border-color: var(--pl-primary); box-shadow: 0 0 0 3px rgba(47,107,255,.14); color: var(--pl-ink); }
.style-tabs .sw { width: 100%; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 600 15px "Songti SC", "STSong", serif; letter-spacing: .12em; }
.sw-clean { background: #F7F9FC; color: #1A2233; }
.sw-ink { background: linear-gradient(90deg, #7a4a22 0 5px, #F2E9D6 5px calc(100% - 5px), #7a4a22 0); color: #B23A2E; }
.sw-neon { background: #0D1626; color: #3DF5FF; text-shadow: 0 0 8px #3DF5FF; }
.sw-kara { background: #FFF2F6; color: #E8186A; }
.sw-cine { background: #1A2233; color: #FFE2A8; font-size: 17px !important; }
.style-caption { text-align: center; margin-top: 14px; color: var(--pl-ink-2); font-size: .95rem; }

/* ---------- 卡片网格 ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.pl-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.pl-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 14px; padding: 22px; box-shadow: var(--pl-shadow-1); transition: box-shadow .2s, transform .2s; }
.pl-card:hover { box-shadow: var(--pl-shadow-2); transform: translateY(-2px); }
.pl-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--pl-primary-soft); color: var(--pl-primary); margin-bottom: 14px; }
.pl-card .ic svg { width: 20px; height: 20px; }
.pl-card .ic.v { background: var(--pl-violet-soft); color: var(--pl-violet); }
.pl-card .ic.g { background: var(--pl-ok-soft); color: var(--pl-ok); }
.pl-card .ic.y { background: var(--pl-warn-soft); color: var(--pl-warn); }
.pl-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--pl-ink); }
.pl-card p { font-size: .9rem; color: var(--pl-ink-2); line-height: 1.65; }

/* 格式标签 */
.fmt-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.fmt-row span { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--pl-line); font-size: 13px; color: var(--pl-ink-2); }

/* ---------- 教程步骤 ---------- */
.step-list { max-width: 1180px; margin: 0 auto; display: grid; gap: 80px; }
.step { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: center; }
.step:nth-child(even) { grid-template-columns: 7fr 4fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pl-primary); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(47,107,255,.3); }
.step-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; color: var(--pl-ink); }
.step-text p { color: var(--pl-ink-2); line-height: 1.75; margin-bottom: 12px; }
kbd.k { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--pl-line-2); border-bottom-width: 2px; background: #fff; font: 600 12px/1.6 Consolas, "SF Mono", monospace; color: var(--pl-ink); text-align: center; }

/* ---------- 在线体验页 ---------- */
.demo-page-head { padding: calc(var(--nav-height) + 36px) 0 18px; text-align: center; }
.demo-page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 10px; }
.demo-page-head p { color: var(--pl-ink-2); max-width: 720px; margin: 0 auto; line-height: 1.7; }
.demo-tour { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 1100px; }
.demo-tour button { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--pl-line); background: #fff; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--pl-ink-2); cursor: pointer; transition: all .15s; }
.demo-tour button:hover { border-color: var(--pl-primary-line); color: var(--pl-primary); }
.demo-tour button.on { background: var(--pl-primary); border-color: var(--pl-primary); color: #fff; }
.demo-frame-wrap { max-width: 1480px; margin: 22px auto 0; padding: 0 16px; }
.demo-frame-wrap .ui-window { height: min(940px, calc(100vh - 120px)); min-height: 640px; }
.demo-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #F4F6FA; }

/* 移动端顶栏与全屏 */
.demo-mobile-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--surface-2, #F7F9FC); border: 1px solid var(--border-light, #E1E7F0); border-bottom: 0; border-radius: 14px 14px 0 0; font-size: 12.5px; }
.dmt-left { display: flex; align-items: center; gap: 7px; color: var(--pl-ok, #14A267); font-weight: 600; font-size: 12px; }
.dmt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-ok, #14A267); box-shadow: 0 0 6px rgba(20, 162, 103, 0.5); }
.dmt-right { display: flex; align-items: center; gap: 10px; }
.dmt-hint { color: var(--text-muted, #8491A5); font-size: 12px; }
.btn-fullscreen-toggle { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-light, #E1E7F0); background: #ffffff; color: var(--pl-primary, #2F6BFF); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-fullscreen-toggle:hover { background: var(--pl-primary-soft, #E9F0FF); border-color: var(--pl-primary-line, #BFD2FF); }

/* 倒计时呼吸红点动画 */
@keyframes pulseRed { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.25); } }
.pulse-dot-red { animation: pulseRed 1.6s infinite ease-in-out; }

@media (max-width: 960px) {
  .feature-row, .feature-row.rev, .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .feature-row.rev .fr-text, .step:nth-child(even) .step-text { order: 0; }
  .pl-grid, .pl-grid.g4 { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Mobile Immersive Demo Mode (<= 768px: 100% 满屏交互工作台)
   ========================================================================== */
.mobile-demo-app-container {
  display: none !important;
}

@media (max-width: 768px), ((orientation: landscape) and (max-height: 520px) and (max-width: 960px)) {
  body.demo-page {
    overflow: hidden !important;
    height: 100dvh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.demo-page .navbar,
  body.demo-page .apple-footer {
    display: none !important;
  }
  .desktop-demo-wrap {
    display: none !important;
  }

  .mobile-demo-app-container {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    background: #0f172a !important;
    overflow: hidden !important;
  }

  .mobile-demo-header {
    height: 42px !important;
    flex: none !important;
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    color: #fff !important;
  }

  .mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
  .mobile-back-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .mobile-demo-brand {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
  }
  .mobile-demo-brand img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
  }

  .mobile-demo-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .btn-mobile-tip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    background: rgba(47, 107, 255, 0.25) !important;
    border: 1px solid rgba(47, 107, 255, 0.5) !important;
    color: #60a5fa !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }

  .btn-mobile-fs {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .mobile-demo-body {
    flex: 1 1 auto !important;
    width: 100vw !important;
    height: calc(100dvh - 42px) !important;
    overflow: hidden !important;
    position: relative !important;
    background: #0f172a !important;
  }
  .mobile-demo-body iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    background: #F4F6FA !important;
  }

  .mobile-landscape-banner {
    position: absolute !important;
    bottom: 8px !important;
    left: 10px !important;
    right: 10px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(47, 107, 255, 0.4) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #e2e8f0 !important;
    font-size: 11.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 60 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  }
  .mobile-landscape-banner button {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    padding: 0 4px !important;
    cursor: pointer !important;
  }

  @media (orientation: landscape) and (max-height: 500px) {
    .mobile-demo-header {
      height: 32px !important;
      padding: 0 12px !important;
    }
    .mobile-demo-body {
      height: calc(100dvh - 32px) !important;
    }
    .mobile-landscape-banner {
      display: none !important;
    }
  }
}

@media (max-width: 600px) {
  .pl-grid, .pl-grid.g4 { grid-template-columns: 1fr; }
  .pl-section { padding: 64px 0; }
  .style-tabs button { width: calc(50% - 4px); }
}

/* ==========================================================================
   Hero 3D Opening Animation & Full-Instrument Showcase
   ========================================================================== */
.hero-3d {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  isolation: isolate;
}
.hero-3d .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(122,92,255,.16), transparent 70%),
    radial-gradient(50% 45% at 18% 20%, rgba(47,107,255,.12), transparent 70%),
    radial-gradient(40% 40% at 60% 95%, rgba(232,90,168,.10), transparent 70%),
    #F6F8FC;
}
.hero-3d .grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(47,107,255,.13) 1.2px, transparent 1.2px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent);
}

body.home-page.intro-off .navbar {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
body.home-page.ready .navbar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity .5s cubic-bezier(.2,.8,.2,1) .2s, transform .5s cubic-bezier(.2,.8,.2,1) .2s;
}

.hero-3d .wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 28px;
  min-height: calc(90vh - 64px);
  padding: 24px 0 32px;
}
.hero-3d .copy {
  position: relative;
  z-index: 3;
}
.hero-3d .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1F55E0;
  background: rgba(255,255,255,.8);
  border: 1px solid #CFDCFF;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.hero-3d .badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14A267;
  box-shadow: 0 0 0 4px rgba(20,162,103,.15);
}
.hero-3d h1 {
  margin-top: 20px;
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .01em;
  color: #141B2D;
}
.hero-3d h1 .l {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}
.hero-3d h1 .c {
  display: inline-block;
  opacity: 0;
  transform: translateY(70%) rotateX(-60deg);
  filter: blur(6px);
  transform-origin: 50% 100%;
}
body.ready .hero-3d h1 .c {
  opacity: 1;
  transform: none;
  filter: none;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s;
  transition-delay: calc(0.08s + var(--i) * 28ms);
}
.hero-3d .gl .c {
  background: linear-gradient(92deg, #2F6BFF 0%, #7A5CFF 55%, #E85AA8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #2F6BFF;
}
.hero-3d .sub {
  margin-top: 20px;
  max-width: 32em;
  font-size: 15.5px;
  line-height: 1.85;
  color: #4A5568;
}
.hero-3d .sub b {
  color: #141B2D;
  font-weight: 600;
}
.hero-3d .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-3d .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}
.hero-3d .btn.pri {
  color: #fff;
  background: linear-gradient(135deg, #2F6BFF, #7A5CFF);
  box-shadow: 0 14px 34px rgba(79,96,255,.38);
}
.hero-3d .btn.pri:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(79,96,255,.46);
}
.hero-3d .btn.sec {
  background: #fff;
  color: #141B2D;
  border: 1px solid #E1E7F0;
  box-shadow: 0 6px 18px rgba(22,40,80,.06);
}
.hero-3d .btn.sec:hover {
  transform: translateY(-2px);
}
.hero-3d .proof {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #8491A5;
}
.hero-3d .proof b {
  display: block;
  font-size: 20px;
  color: #141B2D;
  font-weight: 700;
}
.hero-3d .fade {
  opacity: 0;
  transform: translateY(18px);
}
body.ready .hero-3d .fade {
  opacity: 1;
  transform: none;
  transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d);
}

/* 3D Stage */
.hero-3d .stage {
  position: relative;
  height: 600px;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
.hero-3d .scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 420px;
  margin: -210px 0 0 -320px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -20deg)) scale(.86);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
body.intro-off .hero-3d .scene {
  transform: rotateX(30deg) rotateY(-40deg) translateZ(-900px);
  opacity: 0;
}
.hero-3d .scene {
  opacity: 1;
}
body.ready .hero-3d .scene {
  transition: transform 1.6s cubic-bezier(.2,.8,.2,1), opacity .8s;
}

/* Depth stacked rows */
.hero-3d .rows {
  position: absolute;
  inset: -140px -160px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.hero-3d .row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 64px;
  margin-top: -32px;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  font: 500 28px/1 "Noto Sans SC", sans-serif;
  color: #3B4A7A;
  white-space: nowrap;
  will-change: transform, opacity;
}
.hero-3d .row .bar {
  width: 2px;
  height: 46px;
  background: currentColor;
  opacity: .7;
}

/* App window in 3D scene */
.hero-3d .win {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 80px rgba(36,48,110,.22), 0 12px 30px rgba(36,48,110,.12), 0 0 0 1px rgba(22,40,80,.08);
}
.hero-3d .tb {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid #E1E7F0;
  font-size: 12px;
  color: #4A5568;
}
.hero-3d .tb img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.hero-3d .tb b {
  color: #141B2D;
  font-weight: 700;
}
.hero-3d .tb .dots {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.hero-3d .tb .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E3E8F1;
}
.hero-3d .chipsrow {
  display: flex;
  gap: 6px;
  padding: 9px 14px 0;
}
.hero-3d .chip {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #F2F5FB;
  border: 1px solid #E1E7F0;
  color: #4A5568;
  white-space: nowrap;
}
.hero-3d .chip.ai {
  color: #1F55E0;
  background: #E9F0FF;
  border-color: #BFD2FF;
}
.hero-3d .chip.v {
  color: #5B3FE0;
  background: #F0ECFF;
  border-color: #D8CEFF;
}
.hero-3d .canvas {
  position: relative;
  margin: 9px 14px 0;
  height: 232px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E1E7F0;
  background-color: #fff;
  background-image: linear-gradient(45deg,#EEF1F6 25%,transparent 25%),linear-gradient(-45deg,#EEF1F6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#EEF1F6 75%),linear-gradient(-45deg,transparent 75%,#EEF1F6 75%);
  background-size: 18px 18px;
  background-position: 0 0,0 9px,9px -9px,-9px 0;
}
.hero-3d .clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px) saturate(1.2);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .7s cubic-bezier(.2,.8,.2,1);
}
.hero-3d .clip.on {
  opacity: 1;
  transform: none;
  filter: none;
}
.hero-3d .clip.out {
  opacity: 0;
  transform: scale(.96) translateX(-4%);
  filter: blur(6px);
}
.hero-3d .canvas .tag {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 2;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid #E1E7F0;
  color: #8491A5;
}
.hero-3d .canvas .sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(122,92,255,.18) 48%, rgba(255,255,255,.75) 50%, rgba(47,107,255,.18) 52%, transparent 70%);
}
.hero-3d .canvas .sweep.go {
  animation: sweep .8s cubic-bezier(.2,.8,.2,1);
}
@keyframes sweep {
  to { transform: translateX(120%); }
}
.hero-3d .count {
  font-variant-numeric: tabular-nums;
  color: #8491A5;
}
.hero-3d .count b {
  color: #141B2D;
}
.hero-3d .inst {
  font-size: 13px;
  color: #141B2D;
  min-width: 64px;
}
.hero-3d .tabs {
  display: flex;
  gap: 5px;
}
.hero-3d .tabs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DCE3EE;
  transition: all .3s;
}
.hero-3d .tabs i.on {
  width: 20px;
  border-radius: 4px;
  background: #2F6BFF;
}
.hero-3d .more {
  margin: 0 14px;
  padding-top: 8px;
  border-top: 1px dashed #E1E7F0;
  font-size: 11.5px;
  color: #8491A5;
}
.hero-3d .more b {
  color: #1F55E0;
  font-weight: 500;
}
.hero-3d .transport {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 11px;
  color: #4A5568;
}
.hero-3d .play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2F6BFF;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(47,107,255,.35);
}
.hero-3d .play i {
  width: 8px;
  height: 10px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.hero-3d .tl {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #E9EEF6;
  overflow: hidden;
}
.hero-3d .tl b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #2F6BFF, #7A5CFF);
}

/* Floating 3D chips */
.hero-3d .float {
  position: absolute;
  transform-style: preserve-3d;
}
.hero-3d .card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(36,48,110,.18), 0 0 0 1px rgba(22,40,80,.06);
  font-size: 13px;
  color: #4A5568;
  white-space: nowrap;
  animation: bob 5.5s ease-in-out infinite;
  animation-delay: var(--b, 0s);
}
.hero-3d .card b {
  color: #141B2D;
  font-size: 15px;
}
.hero-3d .card .ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
@keyframes bob {
  50% { transform: translateY(-12px); }
}
.hero-3d .f1 {
  left: -20px;
  top: 35px;
  transform: translateZ(170px);
}
.hero-3d .f2 {
  right: -10px;
  top: -45px;
  transform: translateZ(230px);
}
.hero-3d .f3 {
  right: -15px;
  bottom: -68px;
  transform: translateZ(150px);
}
.hero-3d .f4 {
  left: 140px;
  bottom: -72px;
  transform: translateZ(240px);
}
.hero-3d .float {
  opacity: 0;
}
body.ready .hero-3d .float {
  opacity: 1;
  transition: opacity .8s;
  transition-delay: var(--d);
}

/* Floor shadow */
.hero-3d .floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -150px;
  height: 120px;
  border-radius: 50%;
  transform: rotateX(90deg) translateZ(-80px);
  background: radial-gradient(closest-side, rgba(47,70,160,.28), transparent);
  filter: blur(8px);
}

/* Intro animation */
.hero-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #F6F8FC;
  pointer-events: none;
  transition: opacity .7s .2s, transform 1s cubic-bezier(.2,.8,.2,1);
}
.hero-intro svg {
  width: min(720px, 86vw);
  overflow: visible;
}
.hero-intro path {
  fill: none;
  stroke: #2B3350;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw .75s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-intro path:nth-child(2) { animation-delay: .07s; }
.hero-intro path:nth-child(3) { animation-delay: .14s; }
.hero-intro path:nth-child(4) { animation-delay: .21s; }
.hero-intro path:nth-child(5) { animation-delay: .28s; }
.hero-intro .head {
  fill: #E5484D;
  transform-origin: 360px 70px;
  transform: translateY(-160px);
  opacity: 0;
  animation: drop .45s cubic-bezier(.5,0,.7,1.4) .62s forwards;
}
.hero-intro .stem {
  stroke: #E5484D;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw .4s ease-out .7s forwards;
}
.hero-intro .flash {
  fill: none;
  stroke: #2F6BFF;
  stroke-width: 2;
  opacity: 0;
  transform-origin: 360px 110px;
  animation: flash .8s cubic-bezier(.2,.8,.2,1) 1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { to { transform: none; opacity: 1; } }
@keyframes flash {
  0% { opacity: .9; transform: scale(.2); }
  100% { opacity: 0; transform: scale(4); }
}
body.ready .hero-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.6) perspective(800px) rotateX(35deg);
  transition: opacity .5s .1s, transform .7s cubic-bezier(.2,.8,.2,1), visibility 0s .8s;
}

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 3;
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(22,40,80,.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  background: rgba(255,255,255,0.4);
}
.hero-marquee div {
  display: flex;
  gap: 46px;
  white-space: nowrap;
  font-size: 15px;
  color: #8491A5;
  animation: marqslide 38s linear infinite;
  padding-left: 46px;
}
.hero-marquee span::before {
  content: "♪";
  margin-right: 10px;
  color: #7A5CFF;
}
@keyframes marqslide {
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-3d .wrap {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 12px;
  }
  .hero-3d .stage {
    height: 440px;
    margin: 0 -16px;
  }
  .hero-3d .scene {
    transform: scale(.62) rotateX(var(--rx, 10deg)) rotateY(var(--ry, -16deg));
  }
  .hero-3d .f3, .hero-3d .f4 {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero-3d .stage {
    height: 360px;
  }
  .hero-3d .scene {
    transform: scale(.5) rotateX(8deg) rotateY(-12deg);
  }
  .hero-3d .f1 {
    left: -30px;
  }
  .hero-3d .f2 {
    right: -30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-intro {
    display: none;
  }
}
