/* ============================================
   芒客云官网 - Laravel 版样式
   1:1 还原 WordPress Astra 主题配色
   ============================================ */

/* ===== CSS Variables (Astra Global Colors) ===== */
:root {
  --ast-global-color-0: #FF6B6B;
  --ast-global-color-1: #FFBE0B;
  --ast-global-color-2: #1e293b;
  --ast-global-color-3: #67768e;
  --ast-global-color-4: #FFF8EC;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #FFF4F4;
  --ast-global-color-7: #FFBE0B;
  --ast-global-color-8: #000000;

  --ast-container-width: 1200px;
  --ast-narrow-width: 750px;

  --ast-body-font: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ast-heading-font: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --ast-gradient-hero: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFBE0B 100%);
  --ast-gradient-cta: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 55%, #FFBE0B 100%);
  --ast-gradient-soft: linear-gradient(135deg, rgba(255,107,107,0.08) 0%, rgba(255,190,11,0.08) 100%);

  --ast-radius: 8px;
  --ast-radius-sm: 6px;
  --ast-radius-lg: 16px;
  --ast-transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ast-body-font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ast-global-color-2);
  background: var(--ast-global-color-5);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ast-heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ast-global-color-2);
  margin: 0 0 0.5em;
}

a { color: var(--ast-global-color-0); text-decoration: none; transition: var(--ast-transition); }
a:hover { color: var(--ast-global-color-1); }

img { max-width: 100%; height: auto; }

/* ===== Container ===== */
.ast-container {
  max-width: var(--ast-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.ast-container.narrow {
  max-width: var(--ast-narrow-width);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--ast-radius);
  font-family: var(--ast-heading-font);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ast-transition);
}

.btn-primary {
  background: var(--ast-global-color-0);
  color: #fff;
  border-color: var(--ast-global-color-0);
}
.btn-primary:hover {
  background: var(--ast-global-color-1);
  border-color: var(--ast-global-color-1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ast-global-color-0);
  border-color: var(--ast-global-color-0);
}
.btn-outline:hover {
  background: var(--ast-global-color-0);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: var(--ast-transition);
}

.site-header.scrolled {
  position: fixed;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--ast-heading-font);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-header.scrolled .logo-text { color: var(--ast-global-color-0); }

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.main-navigation a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 16px;
  transition: var(--ast-transition);
}

.site-header.scrolled .main-navigation a { color: var(--ast-global-color-2); }
.main-navigation a:hover { color: var(--ast-global-color-7); }

.header-cta { display: flex; gap: 12px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--ast-transition);
}

.site-header.scrolled .menu-toggle span { background: var(--ast-global-color-2); }

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--ast-gradient-hero);
}

/* 浮动气泡（JS 动态生成，可点击破裂） */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 0 18px rgba(255,255,255,0.25), inset 0 0 12px rgba(255,255,255,0.2);
  will-change: transform, opacity;
  /* 高光点 */
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
.hero-bubble::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 22%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  filter: blur(1px);
}
.hero-bubble:hover {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 28px rgba(255,255,255,0.5), inset 0 0 16px rgba(255,255,255,0.35);
}

/* 气泡破裂动画 */
.hero-bubble.is-burst {
  animation: hero-bubble-burst 0.45s ease-out forwards;
  pointer-events: none;
}
@keyframes hero-bubble-burst {
  0%   { transform: scale(var(--burst-scale, 1)); opacity: 1; }
  60%  { transform: scale(calc(var(--burst-scale, 1) * 1.4)); opacity: 0.6; border-width: 2px; }
  100% { transform: scale(calc(var(--burst-scale, 1) * 1.8)); opacity: 0; border-width: 0; }
}

/* 破裂碎片 */
.hero-bubble-shard {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  pointer-events: none;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bubbles { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-content {
  text-align: left;
}

.hero-media {
  position: relative;
  border-radius: var(--ast-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              filter 0.4s ease;
  will-change: transform;
}
.hero-media:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 24px 48px rgba(255,107,107,0.35));
}
.hero-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.hero-media:hover .hero-media-img {
  transform: scale(1.15);
}
.hero-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 24px;
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--ast-radius-lg);
}
.hero-media-placeholder p { margin: 0; font-size: 0.95rem; }
.hero-media-placeholder svg { opacity: 0.7; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
}

.hero-content-no-media .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
/* 主按钮：金色 #FFC107，避免与红色渐变背景重叠 */
.hero-buttons .btn-primary,
.cta-buttons .btn-primary,
.header-cta .btn-primary {
  background: #FFC107;
  border-color: #FFC107;
  color: #fff;
}
.hero-buttons .btn-primary:hover,
.cta-buttons .btn-primary:hover,
.header-cta .btn-primary:hover {
  background: #FFD24D;
  border-color: #FFD24D;
  color: #fff;
  box-shadow: 0 6px 24px rgba(255,193,7,0.5);
}
/* 顶部立即咨询按钮：镂空金色 */
.header-cta .btn-outline {
  background: transparent;
  border-color: #FFC107;
  color: #FFC107;
}
.header-cta .btn-outline:hover {
  background: #FFC107;
  border-color: #FFC107;
  color: #fff;
}

/* ===== Stats Section ===== */
.stats-section {
  padding: 80px 0;
  background: var(--ast-global-color-5);
}

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

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--ast-radius-lg);
  background: var(--ast-global-color-4);
  transition: var(--ast-transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,107,107,0.15);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ast-gradient-hero);
  color: #fff;
  margin-bottom: 20px;
}

.stat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--ast-global-color-2);
}

.stat-card p {
  color: var(--ast-global-color-3);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ast-global-color-3);
}

/* ===== Features Section ===== */
.features-section {
  padding: 100px 0;
  background: var(--ast-global-color-6);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px;
  background: #fff;
  border-radius: var(--ast-radius-lg);
  transition: var(--ast-transition);
}

.feature-item:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  transform: translateX(4px);
}

.feature-number {
  font-family: var(--ast-heading-font);
  font-weight: 800;
  font-size: 2.5rem;
  background: var(--ast-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 60px;
}

.feature-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-content p {
  color: var(--ast-global-color-3);
  line-height: 1.8;
  margin: 0;
}

/* ===== Advantages Section ===== */
.advantages-section {
  padding: 100px 0;
  background: var(--ast-global-color-5);
}

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

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--ast-radius-lg);
  background: var(--ast-global-color-4);
  transition: var(--ast-transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,190,11,0.18);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.advantage-card p {
  color: var(--ast-global-color-3);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Testimonial Section ===== */
.testimonial-section {
  padding: 80px 0;
  background: var(--ast-global-color-6);
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: #fff;
  border-radius: var(--ast-radius-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 6rem;
  color: var(--ast-global-color-1);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ast-global-color-2);
  margin: 0 0 16px;
  line-height: 1.7;
}

.testimonial-card cite {
  font-weight: 600;
  color: var(--ast-global-color-0);
  font-style: normal;
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: var(--ast-gradient-cta);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: 80px 0;
  background: var(--ast-global-color-5);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--ast-global-color-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--ast-radius-sm);
  font-size: 16px;
  font-family: var(--ast-body-font);
  transition: var(--ast-transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ast-global-color-0);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.form-error {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 4px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--ast-radius);
  margin-bottom: 24px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* ===== Page Header ===== */
.page-header-section {
  padding: 140px 0 60px;
  background: var(--ast-gradient-hero);
  text-align: center;
}

.page-title {
  color: #fff;
  font-size: 2.5rem;
  margin: 0;
}

.page-content-section {
  padding: 60px 0;
}

.page-article {
  line-height: 1.8;
}

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 24px;
}

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

.footer-brand .logo-text { color: #fff; }

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--ast-transition);
}

.footer-col a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #94a3b8;
}

.social-links a {
  display: inline-flex;
  color: #94a3b8;
  margin-top: 8px;
  transition: var(--ast-transition);
}

.social-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-navigation, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .main-navigation.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 80px 24px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-navigation.mobile-open ul {
    flex-direction: column;
    gap: 16px;
  }

  .main-navigation.mobile-open a { color: var(--ast-global-color-2); }

  .hero-title { font-size: 2rem; }
  .hero-section { min-height: 600px; }
  .hero-inner { padding: 100px 0 60px; }
  .hero-buttons { justify-content: center; }

  .section-title { font-size: 1.6rem; }
  .cta-title { font-size: 1.8rem; }

  .feature-item { flex-direction: column; gap: 12px; padding: 24px; }
  .feature-number { font-size: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  .ast-container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons, .cta-buttons { flex-direction: column; }
  .hero-buttons .btn, .cta-buttons .btn { width: 100%; }
}

/* ============================================
   动效（滚动入场）
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: #fff;
  border-radius: var(--ast-radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  font-family: var(--ast-heading-font);
}
.modal-close {
  background: var(--ast-global-color-6);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: var(--ast-global-color-3);
  transition: var(--ast-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal-close:hover {
  background: var(--ast-global-color-0);
  color: #fff;
}
.modal-body { padding: 28px 32px 32px; }

/* 立即试用弹窗 - 二维码双栏 */
.trial-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.trial-qr-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--ast-gradient-soft);
  border-radius: var(--ast-radius-lg);
}
.trial-qr-item h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--ast-global-color-2);
}
.trial-qr-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: var(--ast-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.trial-qr-img img { width: 100%; height: 100%; object-fit: contain; }
.trial-qr-placeholder {
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
}
.trial-qr-item p {
  font-size: 0.85rem;
  color: var(--ast-global-color-3);
  margin: 0;
}

/* 立即咨询弹窗 - 客服 + 表单 */
.consult-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.consult-sidebar {
  text-align: center;
  padding: 24px;
  background: var(--ast-gradient-soft);
  border-radius: var(--ast-radius-lg);
}
.consult-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--ast-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.consult-qr img { width: 100%; height: 100%; object-fit: contain; }
.consult-sidebar h4 { margin-bottom: 8px; }
.consult-sidebar p { font-size: 0.85rem; color: var(--ast-global-color-3); margin-bottom: 16px; }
.consult-online-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--ast-global-color-0);
  color: #fff;
  border-radius: var(--ast-radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--ast-transition);
}
.consult-online-btn:hover {
  background: var(--ast-global-color-1);
  color: #fff;
  transform: translateY(-1px);
}
.consult-form .form-row { grid-template-columns: 1fr 1fr; }
.consult-form h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ast-global-color-4);
}

@media (max-width: 640px) {
  .trial-qr-grid { grid-template-columns: 1fr; }
  .consult-layout { grid-template-columns: 1fr; }
  .modal-dialog { max-width: 100%; }
  .modal-header, .modal-body { padding-left: 20px; padding-right: 20px; }
}

/* ============================================
   下载页样式
   ============================================ */
.download-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--ast-gradient-hero);
}
.download-hero .ast-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.download-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.download-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}
.download-hero .btn-primary {
  background: #07C160;
  border-color: #07C160;
}
.download-hero .btn-primary:hover {
  background: #06AD56;
  border-color: #06AD56;
  box-shadow: 0 6px 20px rgba(7,193,96,0.35);
}
.download-hero-decoration {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -200px;
  right: -150px;
  pointer-events: none;
}
.download-hero-decoration.alt {
  top: auto;
  bottom: -250px;
  left: -200px;
  right: auto;
  width: 400px;
  height: 400px;
}

.download-platforms {
  padding: 100px 0;
  background: var(--ast-global-color-5);
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.platform-card {
  text-align: center;
  padding: 48px 28px;
  background: #fff;
  border-radius: var(--ast-radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: var(--ast-transition);
  border: 2px solid transparent;
}
.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(255,107,107,0.15);
  border-color: var(--ast-global-color-0);
}
.platform-card[data-platform="mini_program"]:hover {
  box-shadow: 0 16px 40px rgba(7,193,96,0.18);
  border-color: #07C160;
}
.platform-card[data-platform="android"]:hover {
  box-shadow: 0 16px 40px rgba(61,220,132,0.18);
  border-color: #3DDC84;
}
.platform-card[data-platform="ios"]:hover {
  box-shadow: 0 16px 40px rgba(29,29,31,0.18);
  border-color: #1D1D1F;
}
.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: var(--ast-gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--ast-transition);
}
/* 各平台按官方品牌风格显示 */
.platform-card[data-platform="mini_program"] .platform-icon {
  background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
  box-shadow: 0 8px 24px rgba(7,193,96,0.25);
}
.platform-card[data-platform="android"] .platform-icon {
  background: linear-gradient(135deg, #3DDC84 0%, #2EBE68 100%);
  box-shadow: 0 8px 24px rgba(61,220,132,0.25);
}
.platform-card[data-platform="ios"] .platform-icon {
  background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
  box-shadow: 0 8px 24px rgba(29,29,31,0.25);
}
.platform-card:hover .platform-icon {
  transform: translateY(-4px) scale(1.04);
}
.platform-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.platform-card .platform-desc {
  color: var(--ast-global-color-3);
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 44px;
}
.platform-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: var(--ast-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.platform-qr img { width: 100%; height: 100%; object-fit: contain; }
.platform-qr-placeholder {
  color: #cbd5e1;
  font-size: 12px;
}
.platform-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #07C160;
  color: #fff;
  border-radius: var(--ast-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--ast-transition);
}
.platform-download-btn:hover {
  background: #06AD56;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,193,96,0.3);
}
/* 下载按钮跟随各平台品牌色 */
.platform-card[data-platform="android"] .platform-download-btn {
  background: #3DDC84;
}
.platform-card[data-platform="android"] .platform-download-btn:hover {
  background: #2EBE68;
  box-shadow: 0 8px 24px rgba(61,220,132,0.3);
}
.platform-card[data-platform="ios"] .platform-download-btn {
  background: #1D1D1F;
}
.platform-card[data-platform="ios"] .platform-download-btn:hover {
  background: #434344;
  box-shadow: 0 8px 24px rgba(29,29,31,0.3);
}
.platform-download-btn.disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}

.download-steps {
  padding: 100px 0;
  background: var(--ast-global-color-6);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--ast-radius-lg);
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ast-gradient-hero);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--ast-global-color-3);
  font-size: 0.9rem;
  margin: 0;
}

.download-faq {
  padding: 100px 0;
  background: var(--ast-global-color-5);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border-radius: var(--ast-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--ast-global-color-0);
  transition: var(--ast-transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--ast-global-color-3);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .platforms-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .download-hero h1 { font-size: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ============================================
   底部二维码展示
   ============================================ */
.footer-qrcodes {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-qr-item {
  text-align: center;
}
.footer-qr-img {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: var(--ast-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-bottom: 6px;
}
.footer-qr-img img { width: 100%; height: 100%; object-fit: contain; }
.footer-qr-placeholder {
  color: #64748b;
  font-size: 11px;
}
.footer-qr-item span {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}
.footer-qr-item a {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}
.footer-qr-item a:hover { color: #fff; }

/* ============================================
   帮助类
   ============================================ */
.text-gradient {
  background: var(--ast-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   图片点击放大预览 Lightbox
   ============================================ */
[data-zoomable] {
  cursor: zoom-in;
  transition: transform 0.3s ease, filter 0.3s ease;
}
[data-zoomable]:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}
/* 弹窗内的二维码图片 hover 不放大（避免双层 modal 干扰），只保留 pointer */
.modal-dialog [data-zoomable]:hover {
  transform: none;
}

.img-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.img-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.img-preview-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-preview-wrapper img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  -webkit-user-drag: none;
  user-select: none;
}
.img-preview-overlay.is-open .img-preview-wrapper img {
  transform: scale(1);
}
.img-preview-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.img-preview-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}
