/* ============================================================
   云学小伴官网 - 共享样式
   设计系统：青绿儿童科技风
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色 - Teal 青绿松石 */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  /* 辅助色 */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --sky-400: #38bdf8;

  /* 灰度 */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* 字体 */
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 30px rgba(15,23,42,0.10);
  --shadow-xl: 0 12px 40px rgba(15,23,42,0.12);

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* 布局 */
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--teal-700); }

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

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--gray-600);
  font-size: 1rem;
}

.section-label {
  display: inline-block;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-600);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border: none; }
.mobile-nav a.active { color: var(--teal-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20,184,166,0.35);
}
.btn-primary:hover {
  background: var(--teal-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20,184,166,0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--teal-400);
  color: var(--teal-600);
  background: var(--teal-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-ghost:hover { color: var(--teal-600); }

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  min-height: 52px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 50%, var(--teal-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal-200) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--amber-400) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--teal-100);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--gray-900);
}

.hero h1 span {
  color: var(--teal-600);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* section-header 内的按钮组强制居中 */
.section-header .hero-actions {
  justify-content: center;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-inner {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.hero-visual-inner img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(15,23,42,0.12));
}

/* decorative circles */
.hero-deco {
  position: absolute;
  border-radius: 50%;
}
.deco-1 {
  width: 60px; height: 60px;
  background: var(--teal-300);
  opacity: 0.35;
  top: 30px; left: -20px;
}
.deco-2 {
  width: 40px; height: 40px;
  background: var(--amber-400);
  opacity: 0.3;
  bottom: 50px; right: -10px;
}
.deco-3 {
  width: 24px; height: 24px;
  background: var(--sky-400);
  opacity: 0.25;
  top: 80px; right: 40px;
}

/* ---------- Stats / Numbers ---------- */
.stats-bar {
  background: var(--gray-900);
  padding: var(--space-2xl) 0;
}
.stats-bar .grid-4 {
  align-items: center;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-300);
  line-height: 1;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-top: var(--space-sm);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: #fff;
  text-align: center;
  padding: var(--space-4xl) 0;
  border-radius: var(--radius-2xl);
  margin: 0 var(--space-lg);
}
.cta-section h2 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}
.cta-section p {
  color: var(--teal-100);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}
.cta-section .btn-secondary {
  background: #fff;
  color: var(--teal-700);
  border: none;
}
.cta-section .btn-secondary:hover {
  background: var(--teal-50);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  align-items: start;
}
.footer-grid > :first-child {
  max-width: 280px;
}

.footer-brand {
  max-width: 280px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  margin-top: 0;
}
.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--teal-300);
}
.footer-col p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ---------- Feature section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---------- Scene cards ---------- */
.scene-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  background: var(--gray-100);
}
.scene-card-content {
  position: relative;
  z-index: 1;
}
.scene-card h3 {
  color: #fff;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.scene-card p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.scene-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.team-card {
  text-align: center;
}
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-200), var(--teal-400));
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.team-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}
.team-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px var(--teal-50);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 24px;
  height: 24px;
}
.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}
.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .hero-visual-inner { width: 340px; height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: var(--space-3xl) 0; }

  .nav-links, .nav-actions .btn-ghost { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { min-height: auto; padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl); }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto var(--space-xl); }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: var(--space-xl); }
  .hero-visual-inner { width: 280px; height: 280px; }
  .hero-visual-inner img { width: 180px; height: 180px; }

  .features-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-section { margin: 0; border-radius: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   新增组件：产品橱窗 / 定价卡 / 指标带（基于真实资料升级）
   ============================================================ */

/* 产品橱窗卡 */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.product-showcase .card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.product-visual {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-visual img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
  position: relative;
  z-index: 1;
}
.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,0.35), transparent 65%);
}
.product-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 12px;
}
.product-price {
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--gray-500);
}
.product-price strong {
  color: var(--teal-600);
  font-size: 1.25rem;
  margin-right: 4px;
}

/* 硬件定价卡 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border: 2px solid var(--teal-500);
  position: relative;
}
.pricing-card .pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--teal-500);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
.pricing-card .pricing-size {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: var(--space-md);
}
.pricing-card .pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.pricing-card .pricing-price small {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 400;
}
.pricing-card .pricing-pos {
  font-size: 0.8125rem;
  color: var(--teal-600);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--gray-200);
}
.pricing-card ul {
  text-align: left;
  margin-bottom: var(--space-lg);
}
.pricing-card ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: 700;
}

/* 会员卡（4列）*/
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.member-grid .pricing-card { padding: var(--space-lg); }

/* 技术指标带 */
.metric-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.metric-chip {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.metric-chip .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-600);
  line-height: 1.2;
}
.metric-chip .metric-name {
  font-size: 0.9375rem;
  color: var(--gray-700);
  font-weight: 600;
  margin-top: 4px;
}
.metric-chip .metric-sub {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: 2px;
}

/* 合作伙伴条 */
.partner-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}
.partner-bar .partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9375rem;
}
.partner-bar .partner-item svg { color: var(--teal-500); }

/* 专利卡 */
.patent-card {
  border-left: 4px solid var(--teal-500);
}

@media (max-width: 1024px) {
  .product-showcase { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .member-grid { grid-template-columns: 1fr; }
  .metric-chips { grid-template-columns: 1fr; }
}

/* ============================================================
   新页面类名兼容层（修复：页面重写后样式失效问题）
   说明：页面 HTML 已升级为 header-inner/nav/hero-title/
   feature-grid/btn-light 等新类名，此处补齐对应样式。
   ============================================================ */

/* ---------- Header 新结构 ---------- */
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.logo {
  justify-self: start;
}

.nav {
  justify-self: center;
}

.menu-toggle {
  justify-self: end;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.22s ease;
  min-height: 40px;
}
.nav-link:hover {
  color: var(--teal-600);
  background: var(--teal-50);
  transform: translateY(-1px);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}
.nav-link.active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
}

/* ---------- Hero 新结构 ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, var(--teal-200) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, var(--amber-400) 0%, transparent 30%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 30%; left: 82%; animation-delay: 1.2s; width: 12px; height: 12px; }
.hero-particles span:nth-child(3) { top: 65%; left: 12%; animation-delay: 2.4s; }
.hero-particles span:nth-child(4) { top: 78%; left: 75%; animation-delay: 0.6s; width: 10px; height: 10px; background: var(--amber-400); }
.hero-particles span:nth-child(5) { top: 12%; left: 45%; animation-delay: 3s; background: var(--sky-400); }
.hero-particles span:nth-child(6) { top: 52%; left: 90%; animation-delay: 1.8s; }
.hero-particles span:nth-child(7) { top: 85%; left: 40%; animation-delay: 2.8s; background: var(--sky-400); }
.hero-particles span:nth-child(8) { top: 42%; left: 4%; animation-delay: 3.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-24px) scale(1.15); opacity: 0.55; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--gray-900);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  line-height: 1.7;
}

/* 单列居中 Hero（内页：解决方案/关于我们/联系我们） */
.hero-center .container {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero-center .hero-content {
  margin: 0 auto;
}
.hero-center .hero-subtitle,
.hero-center .hero-content p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature 卡片新结构 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}
.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- 白色/透明按钮（CTA 深色背景用） ---------- */
.btn-light {
  background: #fff;
  color: var(--teal-700);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-light:hover {
  background: var(--teal-50);
  color: var(--teal-800);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.85);
}
.btn-ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.28);
}

/* ---------- 数据表格（产品参数） ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-100);
}
.data-table th {
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.875rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td { color: var(--gray-600); }

/* ---------- Footer 深色背景下的 logo 适配 ---------- */
.footer .logo {
  color: #fff;
}
.footer .logo img {
  background: #fff;
  padding: 2px;
}

/* ---------- 移动端适配补充 ---------- */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.0625rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 0.8125rem; }
  .data-table th,
  .data-table td { padding: 10px 12px; }
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.75rem; }
}

/* ============================================================
   中秋主题装饰（Festival Theme）
   ============================================================ */

/* --- Hero 圆月 + 玉兔 --- */
.fest-moon {
  position: absolute;
  top: 44px;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffdf2, #ffeeb0 55%, #fcd34d 100%);
  box-shadow: 0 0 40px 12px rgba(252, 211, 77, 0.45), 0 0 120px 40px rgba(252, 211, 77, 0.18);
  z-index: 1;
  pointer-events: none;
  animation: fest-float 8s ease-in-out infinite;
}
.fest-moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 62%, rgba(217, 168, 60, 0.28) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 40%, rgba(217, 168, 60, 0.22) 0 6%, transparent 7%),
    radial-gradient(circle at 58% 74%, rgba(217, 168, 60, 0.18) 0 5%, transparent 6%);
}
.fest-moon .fest-rabbit {
  position: absolute;
  left: 30%;
  top: 4px;
  bottom: auto;
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(146, 64, 14, 0.3));
  transform: rotate(-8deg);
}
@keyframes fest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- 流云 --- */
.fest-cloud {
  position: absolute;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(1px);
  pointer-events: none;
  z-index: 1;
  animation: fest-drift 32s linear infinite;
}
.fest-cloud::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 22%;
  width: 45%;
  height: 130%;
  border-radius: 50%;
  background: inherit;
}
.fest-cloud::after {
  content: '';
  position: absolute;
  top: -35%;
  right: 18%;
  width: 32%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}
.fest-cloud.c1 { top: 88px; width: 130px; opacity: 0.75; }
.fest-cloud.c2 { top: 168px; width: 90px; opacity: 0.55; animation-duration: 44s; animation-delay: -18s; }
@keyframes fest-drift {
  from { transform: translateX(110vw); }
  to { transform: translateX(-30vw); }
}

/* --- 灯笼（挂在导航下方两角） --- */
.fest-lanterns {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.lantern {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: fest-sway 4.5s ease-in-out infinite;
}
.lantern .l-string { width: 2px; background: linear-gradient(rgba(153, 27, 27, 0.65), rgba(153, 27, 27, 0.35)); }
.lantern .l-cap, .lantern .l-base { width: 22px; height: 6px; border-radius: 3px; background: linear-gradient(135deg, #fcd34d, #d97706); }
.lantern .l-body {
  width: 58px;
  height: 46px;
  border-radius: 50% / 55%;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(120, 12, 12, 0.18) 10px 12px),
    radial-gradient(ellipse at 50% 38%, #ff7a6b, #e03428 62%, #b91c1c 100%);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.18), 0 10px 24px rgba(224, 52, 40, 0.35);
  position: relative;
}
.lantern .l-body::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(120, 12, 12, 0.5);
}
.lantern .l-tassel { width: 3px; height: 24px; border-radius: 2px; background: linear-gradient(#fbbf24, #e03428); }
.lantern.lg1 { left: 5%; }
.lantern.lg1 .l-string { height: 14px; }
.lantern.lg2 { right: 5%; animation-delay: -2.2s; }
.lantern.lg2 .l-string { height: 84px; }
.lantern.lg2 .l-body { width: 48px; height: 38px; }
@keyframes fest-sway {
  0%, 100% { transform: rotate(3.5deg); }
  50% { transform: rotate(-3.5deg); }
}

/* --- 节日徽章 --- */
.fest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.96), rgba(255, 231, 168, 0.96));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #92400e;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
  margin-bottom: 16px;
  animation: fest-glow 3s ease-in-out infinite;
}
@keyframes fest-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28); }
  50% { box-shadow: 0 4px 26px rgba(245, 158, 11, 0.55); }
}

/* --- 深色 CTA 区星空 + 弯月 --- */
.cta-section { position: relative; overflow: hidden; }
html.fest-on .cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 12% 22%, rgba(255,255,255,0.9) 98%, transparent),
    radial-gradient(circle 1.5px at 28% 68%, rgba(255,255,255,0.7) 98%, transparent),
    radial-gradient(circle 2px at 45% 30%, rgba(255,255,255,0.8) 98%, transparent),
    radial-gradient(circle 1.5px at 62% 76%, rgba(255,255,255,0.6) 98%, transparent),
    radial-gradient(circle 2px at 78% 24%, rgba(255,255,255,0.85) 98%, transparent),
    radial-gradient(circle 1.5px at 90% 60%, rgba(255,255,255,0.7) 98%, transparent),
    radial-gradient(circle 1.5px at 8% 82%, rgba(255,255,255,0.6) 98%, transparent),
    radial-gradient(circle 2px at 55% 12%, rgba(255,255,255,0.75) 98%, transparent);
  animation: fest-twinkle 4s ease-in-out infinite alternate;
}
html.fest-on .cta-section::after {
  content: '☾';
  position: absolute;
  top: 24px;
  right: 7%;
  font-size: 52px;
  color: rgba(255, 240, 190, 0.9);
  text-shadow: 0 0 30px rgba(252, 211, 77, 0.65);
  pointer-events: none;
  transform: rotate(-18deg);
}
@keyframes fest-twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* --- 移动端收敛 --- */
@media (max-width: 768px) {
  .fest-moon { width: 84px; height: 84px; top: 30px; right: 6%; }
  .fest-moon .fest-rabbit { font-size: 22px; }
  .lantern.lg1 { left: 2%; }
  .lantern.lg2 { right: 2%; }
  .fest-cloud.c1 { top: 70px; }
}

/* ============================================================
   中秋主题 · 加强版
   ============================================================ */

/* --- 顶部祝福横幅（挂在导航正下方） --- */
.fest-banner {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.fest-banner span {
  pointer-events: auto;
  padding: 9px 32px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(135deg, #e03428 0%, #ef6c3a 55%, #f59e0b 100%);
  color: #fff8e7;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(224, 52, 40, 0.3);
  animation: fest-banner-in 0.8s ease both;
}
@keyframes fest-banner-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- 灯笼加倍（4 个错落） --- */
.lantern.lg3 { left: 13%; animation-delay: -1.2s; }
.lantern.lg3 .l-string { height: 6px; }
.lantern.lg3 .l-body { width: 40px; height: 32px; }
.lantern.lg3 .l-body::after { font-size: 13px; }
.lantern.lg3 .l-tassel { height: 16px; }
.lantern.lg4 { right: 10%; animation-delay: -3.4s; }
.lantern.lg4 .l-string { height: 110px; }
.lantern.lg4 .l-body { width: 44px; height: 35px; }
.lantern.lg4 .l-body::after { font-size: 14px; }

/* --- 月亮加大 + 光晕呼吸 --- */
.fest-moon { width: 152px; height: 152px; top: 88px; right: 16%; animation: fest-float 8s ease-in-out infinite, fest-halo 5s ease-in-out infinite; }
.fest-moon .fest-rabbit { font-size: 38px; }
@keyframes fest-halo {
  0%, 100% { box-shadow: 0 0 44px 14px rgba(252, 211, 77, 0.45), 0 0 130px 44px rgba(252, 211, 77, 0.18); }
  50% { box-shadow: 0 0 60px 20px rgba(252, 211, 77, 0.6), 0 0 160px 60px rgba(252, 211, 77, 0.26); }
}

/* --- 金桂花瓣雨 --- */
.fest-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.fest-petals i {
  position: absolute;
  top: -24px;
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b);
  border-radius: 80% 0 80% 0;
  opacity: 0.85;
  animation: fest-fall linear infinite;
}
.fest-petals i:nth-child(1) { left: 6%;  animation-duration: 9s;  animation-delay: 0s;   }
.fest-petals i:nth-child(2) { left: 16%; animation-duration: 12s; animation-delay: -3s; width: 8px; height: 8px; }
.fest-petals i:nth-child(3) { left: 27%; animation-duration: 10s; animation-delay: -6s; }
.fest-petals i:nth-child(4) { left: 38%; animation-duration: 13s; animation-delay: -1.5s; width: 13px; height: 13px; }
.fest-petals i:nth-child(5) { left: 49%; animation-duration: 9.5s; animation-delay: -4.5s; width: 8px; height: 8px; }
.fest-petals i:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: -8s; }
.fest-petals i:nth-child(7) { left: 71%; animation-duration: 12.5s; animation-delay: -2s; width: 13px; height: 13px; }
.fest-petals i:nth-child(8) { left: 82%; animation-duration: 10.5s; animation-delay: -5.5s; }
.fest-petals i:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: -7s; width: 9px; height: 9px; }
.fest-petals i:nth-child(10){ left: 96%; animation-duration: 11.5s; animation-delay: -9.5s; }
@keyframes fest-fall {
  0%   { transform: translateY(-24px) rotate(0deg) translateX(0); }
  25%  { transform: translateY(28vh) rotate(90deg) translateX(24px); }
  50%  { transform: translateY(56vh) rotate(200deg) translateX(-18px); }
  75%  { transform: translateY(84vh) rotate(280deg) translateX(20px); }
  100% { transform: translateY(112vh) rotate(360deg) translateX(0); }
}

/* --- 玉兔蹦跳 --- */
.fest-moon .fest-rabbit { animation: fest-jump 3.2s ease-in-out infinite; }
@keyframes fest-jump {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  40% { transform: rotate(-14deg) translateY(-9px); }
  60% { transform: rotate(-5deg) translateY(0); }
}

/* --- 移动端收敛 --- */
@media (max-width: 768px) {
  .fest-banner span { font-size: 0.78rem; padding: 7px 18px; }
  .lantern.lg3, .lantern.lg4 { display: none; }
  .fest-petals i:nth-child(n+7) { display: none; }
}

/* ============ 中秋 v17：星空 + 流星 + 孔明灯 + 流云c3 + 页脚金线 ============ */

/* --- 夜空星星 --- */
.fest-stars {
  position: absolute;
  inset: 0 0 auto 0;
  height: 400px;
  pointer-events: none;
  z-index: 1;
}
.fest-stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fbbf24;
  opacity: 0.7;
  box-shadow: 0 0 7px 2px rgba(251, 191, 36, 0.75);
  animation: fest-twinkle 3.5s ease-in-out infinite alternate;
}
.fest-stars i:nth-child(1)  { left: 6%;  top: 60px;  }
.fest-stars i:nth-child(2)  { left: 14%; top: 150px; animation-delay: -1.2s; width: 2px; height: 2px; }
.fest-stars i:nth-child(3)  { left: 22%; top: 90px;  animation-delay: -2.4s; }
.fest-stars i:nth-child(4)  { left: 31%; top: 40px;  animation-delay: -0.6s; width: 4px; height: 4px; }
.fest-stars i:nth-child(5)  { left: 40%; top: 190px; animation-delay: -3s;   width: 2px; height: 2px; }
.fest-stars i:nth-child(6)  { left: 48%; top: 70px;  animation-delay: -1.8s; }
.fest-stars i:nth-child(7)  { left: 57%; top: 130px; animation-delay: -2.9s; width: 2px; height: 2px; }
.fest-stars i:nth-child(8)  { left: 65%; top: 30px;  animation-delay: -0.9s; width: 4px; height: 4px; }
.fest-stars i:nth-child(9)  { left: 74%; top: 100px; animation-delay: -2.1s; }
.fest-stars i:nth-child(10) { left: 83%; top: 55px;  animation-delay: -1.4s; width: 2px; height: 2px; }
.fest-stars i:nth-child(11) { left: 91%; top: 170px; animation-delay: -0.3s; }
.fest-stars i:nth-child(12) { left: 96%; top: 110px; animation-delay: -2.6s; width: 2px; height: 2px; }

/* --- 流星（每 9 秒划过一次） --- */
.fest-meteor {
  position: absolute;
  top: 70px;
  left: -10%;
  width: 150px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0), rgba(245, 158, 11, 0.95));
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.85));
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: fest-meteor 9s ease-in 3s infinite;
}
@keyframes fest-meteor {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-18deg); }
  3%   { opacity: 1; }
  11%  { opacity: 0; transform: translate(620px, 200px) rotate(-18deg); }
  100% { opacity: 0; transform: translate(620px, 200px) rotate(-18deg); }
}

/* --- 孔明灯（缓缓升空） --- */
.fest-sky-lanterns {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.fest-sky-lanterns i {
  position: absolute;
  width: 22px;
  height: 28px;
  border-radius: 45% 45% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #ffd54a, #ff9d2e 65%, #e07b1f);
  box-shadow: 0 0 18px 6px rgba(255, 170, 60, 0.4);
  opacity: 0;
  bottom: -40px;
}
.fest-sky-lanterns i::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  border-radius: 0 0 4px 4px;
  background: #b3541e;
}
.fest-sky-lanterns i:nth-child(1) { left: 12%; animation: fest-rise 26s linear 2s infinite; }
.fest-sky-lanterns i:nth-child(2) { left: 56%; width: 18px; height: 23px; animation: fest-rise 32s linear 13s infinite; }
.fest-sky-lanterns i:nth-child(3) { left: 80%; animation: fest-rise 29s linear 24s infinite; }
@keyframes fest-rise {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.8); }
  6%   { opacity: 0.95; }
  70%  { opacity: 0.8; }
  100% { opacity: 0;   transform: translate(130px, -580px) scale(1.05); }
}

/* --- 第三朵流云 --- */
.fest-cloud.c3 { top: 236px; width: 110px; opacity: 0.45; animation-duration: 52s; animation-delay: -30s; }

/* --- 页脚中秋金线 + 月饼点缀 --- */
.footer { position: relative; overflow: visible; }
html.fest-on .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f6c453 20%, #e8622c 50%, #f6c453 80%, transparent);
}
html.fest-on .footer::after {
  content: '🥮';
  position: absolute;
  top: -15px;
  right: 6%;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(146, 64, 14, 0.35));
  animation: fest-float 6s ease-in-out infinite;
}

/* --- 移动端收敛 --- */
@media (max-width: 768px) {
  .fest-stars { height: 260px; }
  .fest-stars i:nth-child(n+9) { display: none; }
  .fest-sky-lanterns i:nth-child(3) { display: none; }
  html.fest-on .footer::after { font-size: 19px; top: -11px; }
}


/* ============ 中秋主题总开关（默认隐藏，.fest-on 才显示） ============ */
/* 说明：有效期内由 assets/js/festival.js 给 <html> 加上 .fest-on 类，
   到期后不会加，中秋元素自动隐藏，页面恢复原版。 */

.fest-lanterns,
.fest-moon,
.fest-cloud,
.fest-banner,
.fest-petals,
.fest-stars,
.fest-meteor,
.fest-sky-lanterns,
.fest-badge {
  display: none !important;
}

html.fest-on .fest-lanterns,
html.fest-on .fest-moon,
html.fest-on .fest-cloud,
html.fest-on .fest-petals,
html.fest-on .fest-stars,
html.fest-on .fest-meteor,
html.fest-on .fest-sky-lanterns {
  display: block !important;
}

/* 横幅必须是 flex 才能居中 */
html.fest-on .fest-banner {
  display: flex !important;
}

html.fest-on .fest-badge {
  display: inline-flex !important;
}
