/* ========================================
   清珞未来 — Shared Styles
   ======================================== */

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

:root {
  --bg-primary: #0d0028;
  --bg-secondary: rgba(255,255,255,0.02);
  --bg-card: rgba(255,255,255,0.02);
  --text-primary: #f0ecf5;
  --text-secondary: rgba(240,236,245,0.55);
  --text-muted: rgba(240,236,245,0.35);
  --border-color: rgba(255,255,255,0.06);
  --nav-bg: rgba(15,5,40,0.92);
  --section-alt-bg: linear-gradient(180deg, rgba(117,73,255,0.035) 0%, transparent 50%);
  --glow-color: rgba(112,0,255,0.08);
}

body.light {
  --bg-primary: #f5f0ff;
  --bg-secondary: rgba(0,0,0,0.02);
  --bg-card: #ffffff;
  --text-primary: #1a1035;
  --text-secondary: rgba(26,16,53,0.55);
  --text-muted: rgba(26,16,53,0.35);
  --border-color: rgba(112,0,255,0.1);
  --nav-bg: rgba(255,255,255,0.92);
  --section-alt-bg: linear-gradient(180deg, rgba(117,73,255,0.05) 0%, transparent 50%);
  --glow-color: rgba(112,0,255,0.06);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background .3s ease, color .3s ease
}

a {
  text-decoration: none;
  color: inherit
}

::selection {
  color: #fff;
  background: #7000FF
}

::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: #0d0028
}

::-webkit-scrollbar-thumb {
  background: #7000FF;
  border-radius: 3px
}

/* ===== Nav ===== */
.nav-wrapper {
  position: fixed;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  gap: 12px
}

.nav-logo {
  position: absolute;
  left: 50px;
  top: -8px;
  bottom: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease
}
.nav-logo:hover {
  opacity: 0.8
}
.nav-logo img {
  width: 40px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1)
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.15)
}

.nav-pill a {
  padding: 5px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 20px
}

.nav-pill a:hover,
.nav-pill a.active {
  color: var(--text-primary);
  background: rgba(112, 0, 255, 0.25)
}

/* ===== Toggle Buttons ===== */
.toggle-group {
  position: absolute;
  right: 50px;
  display: flex;
  gap: 4px;
  pointer-events: auto;
  align-items: center;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 6px 8px
}
.toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1
}
.toggle-btn:hover {
  background: rgba(112, 0, 255, 0.15);
  color: var(--text-primary)
}
.toggle-btn.active {
  background: rgba(112, 0, 255, 0.2);
  color: #7000FF
}

/* ===== Page Animation ===== */
.page {
  animation: fadeIn 0.4s ease both
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ===== Reveal on Scroll ===== */
.ql-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.25, .1, .25, 1), transform .7s cubic-bezier(.25, .1, .25, 1)
}

.ql-reveal.show {
  opacity: 1;
  transform: translateY(0)
}

.ql-d1 {
  transition-delay: .1s
}

.ql-d2 {
  transition-delay: .2s
}

.ql-d3 {
  transition-delay: .3s
}

.ql-d4 {
  transition-delay: .4s
}

.ql-d5 {
  transition-delay: .5s
}

.ql-d6 {
  transition-delay: .6s
}

.ql-d7 {
  transition-delay: .7s
}

/* ===== Reveal: Slide from Left ===== */
.ql-slide {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .6s cubic-bezier(.25, .1, .25, 1), transform .6s cubic-bezier(.25, .1, .25, 1)
}
.ql-slide.show {
  opacity: 1;
  transform: translateX(0)
}

/* ===== Reveal: Scale In ===== */
.ql-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .5s cubic-bezier(.25, .1, .25, 1), transform .5s cubic-bezier(.25, .1, .25, 1)
}
.ql-scale.show {
  opacity: 1;
  transform: scale(1)
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.section {
  padding: 80px 0;
  position: relative
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(112, 0, 255, 0.15), transparent);
  pointer-events: none
}

.section-alt {
  background: linear-gradient(180deg, rgba(117, 73, 255, 0.035) 0%, transparent 50%)
}

.section-glow {
  background: linear-gradient(180deg, rgba(133, 102, 255, 0.06) 0%, transparent 50%)
}

.section-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(112, 0, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0
}

.section-glow>.container {
  position: relative;
  z-index: 1
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 40px;
  letter-spacing: 1px
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 1px
}

.btn-primary {
  background: linear-gradient(135deg, #7000FF, #a855f7);
  color: #fff;
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.3)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(112, 0, 255, 0.45)
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8)
}

.btn-outline:hover {
  border-color: #7000FF;
  color: #fff;
  background: rgba(112, 0, 255, 0.1)
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  position: relative
}

.cta-wrapper {
  position: relative;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(112, 0, 255, 0.05) 0%, transparent 70%);
  border-radius: 24px;
  padding: 40px
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  font-size: 15px
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(112, 0, 255, 0.08);
  padding: 48px 0 24px;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(112, 0, 255, 0.03) 50%, rgba(15, 5, 40, 0.4) 100%)
}

.footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(112, 0, 255, 0.02));
  pointer-events: none
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px
}
.footer-brand .footer-logo {
  flex-shrink: 0
}
.footer-brand-text {
  display: flex;
  flex-direction: column
}
.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1)
}
.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.5px
}

.footer-brand p {
  color: #d4ccf0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 280px;
  letter-spacing: 0.3px
}

.footer h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #F4F0FF
}

.footer a {
  display: block;
  color: #9B96B0;
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.3s ease
}

.footer a:hover {
  color: #b2a0ff
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

.footer-bottom p {
  color: #6B6680;
  font-size: 12px
}

.footer-contact {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap
}

.footer-contact span {
  color: #9B96B0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px
}

.footer .contact-info {
  display: block;
  color: #9B96B0;
  font-size: 13px;
  padding: 3px 0
}

/* ===== Tech & Utility Classes ===== */
.sop-step {
  text-align: center;
  padding: 12px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 12px
}

.sop-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(112,0,255,0.2);
  color: #7000FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  font-size: 11px
}

body.light .sop-step {
  background: rgba(255,255,255,0.8);
  border-color: rgba(112,0,255,0.1)
}

body.light .sop-num {
  background: rgba(112,0,255,0.1)
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease
}

.back-to-top.show {
  opacity: 1;
  visibility: visible
}

.back-to-top button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7000FF, #a855f7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.4);
  transition: all 0.3s ease;
  color: #fff;
  font-size: 22px;
  line-height: 1
}

.back-to-top button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(112, 0, 255, 0.5)
}

/* ===== Stats ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px
}

.stat-item {
  text-align: center
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #7549ff, #b2a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.stat-label {
  color: rgba(155, 150, 176, 0.6);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 1px
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr) }
  .solution-grid { grid-template-columns: repeat(2, 1fr) }
  .playout { grid-template-columns: 1fr; gap: 28px }
  .pfeatures { grid-template-columns: 1fr }
  .footer-inner { grid-template-columns: repeat(3, 1fr) }
  .stats-row { gap: 24px }
  .hero h1 { font-size: 36px }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .nav-pill { gap: 8px; padding: 6px 12px; flex-wrap: wrap; justify-content: center }
  .nav-pill a { font-size: 11px; padding: 3px 6px }
  .nav-logo { left: 16px }
  .toggle-group { right: 16px; padding: 4px 6px }
  .toggle-btn { width: 28px; height: 28px; font-size: 13px }

  .section { padding: 40px 0 }
  .section-title { font-size: 24px }
  .section-subtitle { font-size: 14px; margin-bottom: 28px }

  .hero { min-height: auto; padding-top: 64px; padding-bottom: 40px }
  .hero h1 { font-size: 28px; letter-spacing: 1px }
  .hero p { font-size: 14px }
  .hero-tag { font-size: 12px; margin-bottom: 14px }

  .features-grid { grid-template-columns: 1fr; gap: 16px }
  .solution-grid { grid-template-columns: 1fr; gap: 12px }
  .qc-grid { grid-template-columns: 1fr; gap: 16px }
  .stats-row { flex-wrap: wrap; gap: 16px }
  .stat-item { flex: 1 1 45% }
  .stat-num { font-size: 28px }

  .footer-inner { grid-template-columns: 1fr; gap: 24px }
  .footer-brand p { max-width: 100% }
  .footer .contact-info { font-size: 12px }

  .platform-header h2 { font-size: 28px }
  .pfeatures { gap: 12px }
  .pfeature { padding: 14px }
  .feature-card { padding: 24px 16px }

  .hero-cta { flex-direction: column; align-items: center }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center }

  .sop-step { font-size: 11px; padding: 8px 4px }

  .blog-grid { grid-template-columns: 1fr; gap: 16px }
  .cta-banner { padding: 32px 20px }
  .cta-banner h2 { font-size: 22px }
  .cta-banner p { font-size: 13px }
  .back-to-top { bottom: 16px; right: 16px }
  .back-to-top button { width: 40px; height: 40px; font-size: 18px }

  .platform-visual img { max-height: 250px; object-fit: cover }

  body { overflow-x: hidden }
  .page { overflow-x: hidden }
}

/* ===== Light Mode (high specificity to override inline CSS) ===== */
html body.light,
html body.light .page { background: #f5f0ff; color: #1a1035 }
html body.light .section-title { color: #1a1035 }
html body.light .section-subtitle { color: rgba(26,16,53,0.6) }
html body.light .feature-card p,
html body.light .solution-item p,
html body.light .qc-card p { color: rgba(26,16,53,0.7) }
html body.light .feature-card { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .feature-card h3 { color: #1a1035 }
html body.light .feature-sub { color: rgba(26,16,53,0.5) !important }
html body.light .qc-card { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .qc-card h4 { color: #1a1035 }
html body.light .footer { background: linear-gradient(180deg, transparent 0%, rgba(112,0,255,0.02) 50%, #f0e8ff 100%) }
html body.light .footer h4 { color: #1a1035 }
html body.light .footer a { color: rgba(26,16,53,0.6) }
html body.light .footer a:hover { color: #7000FF }
html body.light .nav-logo img { filter: brightness(0) }
html body.light .footer-logo img { filter: brightness(0) }
html body.light .footer-brand p { color: rgba(60,30,120,0.85); font-weight: 500 }
html body.light .footer .contact-info { color: rgba(26,16,53,0.6) }
html body.light .footer-contact span { color: rgba(26,16,53,0.5) }
html body.light .footer-bottom p { color: rgba(26,16,53,0.4) }
html body.light .section-alt { background: linear-gradient(180deg, rgba(117,73,255,0.04) 0%, transparent 50%) }
html body.light .nav-pill { background: rgba(255,255,255,0.9); border-color: rgba(112,0,255,0.1) }
html body.light .nav-pill a { color: rgba(26,16,53,0.7) }
html body.light .nav-pill a:hover,
html body.light .nav-pill a.active { color: #fff; background: rgba(112,0,255,0.2) }
html body.light .cta-banner h2 { color: #1a1035 }
html body.light .cta-banner p { color: rgba(26,16,53,0.6) }
html body.light .hero p { color: rgba(26,16,53,0.6) }
html body.light .hero-tag { color: #7000FF; border-color: rgba(112,0,255,0.2); background: rgba(112,0,255,0.08) }
html body.light .stat-label { color: rgba(26,16,53,0.5) }
html body.light ::-webkit-scrollbar-track { background: #f5f0ff }
html body.light .tag { color: #7000FF }
html body.light .pfeature { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .pfeature h4 { color: #1a1035 }
html body.light .pfeature p { color: rgba(26,16,53,0.65) }
html body.light .pfeature:hover { background: rgba(112,0,255,0.03) }
html body.light .platform-header p { color: rgba(26,16,53,0.6) }
html body.light .blog-card { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .blog-card h4 { color: #1a1035 }
html body.light .blog-meta { color: rgba(26,16,53,0.5); border-top-color: rgba(112,0,255,0.08) }
html body.light .blog-tag { color: #7000FF }
html body.light .solution-item { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .solution-item h4 { color: #1a1035 }
html body.light .solution-icon { color: #1a1035 }
html body.light .team-card { background: #fff; border-color: rgba(112,0,255,0.08) }
html body.light .team-card h4 { color: #1a1035 }
html body.light .team-card p { color: rgba(26,16,53,0.65) }
html body.light .feature-icon { background: rgba(112,0,255,0.08) }
html body.light .pfeature-icon { background: rgba(112,0,255,0.08) }
html body.light .hero h1 .gradient-text { background: linear-gradient(180deg, #1a1035 23%, rgba(26,16,53,0.7) 95%) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important }
html body.light .gradient-accent { background: linear-gradient(135deg, #7000FF, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text }
html body.light .back-to-top button { color: #fff }
html body.light p, html body.light li, html body.light span:not(.logo-text):not(.base-city) { color: inherit }
html body.light .btn-outline { border-color: rgba(112,0,255,0.3); color: #7000FF }
html body.light .btn-outline:hover { background: rgba(112,0,255,0.1); border-color: #7000FF; color: #7000FF }
html body.light .btn-primary { color: #fff } html body.light .btn-primary:hover { color: #fff }
html body.light .team-avatar { color: #7000FF }
html body.light .hero-tag { color: #7000FF }
html body.light .section::before { background: linear-gradient(to right, transparent, rgba(112,0,255,0.1), transparent) }