/* ==========================================================================
   聚盟云 JUMENG CLOUD - 便当盒网格风格 (Bento Grid) 原生样式表
   配色：温暖奶油背景 #FAF6EE、墨色文字 #1A1523
   卡片粉彩：薄荷绿 #D7F1DF、薰衣草紫 #E6E1FF、蜜桃橙 #FFE3D3、天空蓝 #DBEAFE、阳光黄 #FFF0B3
   ========================================================================== */

:root {
  --bg-cream: #FAF6EE;
  --text-ink: #1A1523;
  --text-muted: #5C5468;
  --border-card: #E9E2D6;
  --mint-green: #D7F1DF;
  --lavender-purple: #E6E1FF;
  --peach-orange: #FFE3D3;
  --sky-blue: #DBEAFE;
  --sun-yellow: #FFF0B3;
  --pure-white: #FFFFFF;
  --radius-card: 24px;
  --radius-btn: 9999px;
  --shadow-card: 0 10px 24px -6px rgba(26, 21, 35, 0.05), 0 3px 0 #E9E2D6;
  --font-heading: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-ink);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 导航栏 */
.header-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  box-shadow: var(--shadow-card);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-ink);
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-ink);
}

.nav-btn-cta {
  background-color: var(--text-ink);
  color: #FFFFFF !important;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.nav-btn-cta:hover {
  background-color: #000000 !important;
  transform: translateY(-2px);
}

/* 页面容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
}

/* 主视觉 Hero 区域 */
.hero-section {
  text-align: center;
  padding: 50px 0 40px 0;
}

.hero-tag {
  display: inline-block;
  background-color: var(--sun-yellow);
  border: 1.5px solid var(--border-card);
  padding: 6px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.2vw, 4.0rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 20px;
}

.highlight-yellow {
  background: var(--sun-yellow);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-card);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--text-ink);
  color: #FFFFFF;
  padding: 15px 34px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1.5px solid var(--text-ink);
  box-shadow: 0 4px 0 #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pure-white);
  color: var(--text-ink);
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1.5px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #F3EEE3;
  transform: translateY(-2px);
}

/* 便当盒网格 Bento Grid 区域 */
.bento-section {
  padding: 20px 0 60px 0;
  perspective: 800px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* 2x2 状态卡 - 薄荷绿 */
.card-status {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--mint-green);
  min-height: 380px;
  transition: filter 0.3s ease, background-color 0.3s ease;
}

.card-status.disconnected {
  filter: grayscale(0.85);
  background: #E5E7EB;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--border-card);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.disconnected .pulse-dot {
  background-color: #9CA3AF;
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.floating-globe {
  font-size: 4rem;
  margin: 24px 0 10px 0;
  display: inline-block;
  animation: floatGlobe 3s ease-in-out infinite;
}

@keyframes floatGlobe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.status-body h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-ink);
}

.status-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toggle-switch-wrapper {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.switch-btn {
  width: 64px;
  height: 34px;
  background: #10B981;
  border-radius: 34px;
  padding: 3px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.switch-thumb {
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translateX(30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.disconnected .switch-btn {
  background: #9CA3AF;
}

.disconnected .switch-thumb {
  transform: translateX(0px);
}

/* 薰衣草紫速度卡 (跨 2 列) */
.card-speed {
  grid-column: span 2;
  background: var(--lavender-purple);
}

.speed-metric {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 4px 0;
}

.chart-svg-container {
  width: 100%;
  height: 60px;
  margin-top: 10px;
}

.speed-wave-path {
  fill: none;
  stroke: #6366F1;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2.5s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* 两张小卡 */
.card-city {
  background: var(--sky-blue);
}

.card-device {
  background: var(--sun-yellow);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

/* 蜜桃橙流媒体卡 */
.card-stream {
  grid-column: span 2;
  background: var(--peach-orange);
}

.stream-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  user-select: none;
}

.badge-item:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  background: #FFFFFF;
}

/* 隐私卡带摇晃锁 */
.card-privacy {
  grid-column: span 2;
  background: #FFFFFF;
}

.lock-emoji {
  font-size: 2.4rem;
  display: inline-block;
  animation: shakeLock 2.5s infinite;
  transform-origin: center bottom;
}

@keyframes shakeLock {
  0%, 70%, 100% { transform: rotate(0deg); }
  75% { transform: rotate(-12deg); }
  80% { transform: rotate(12deg); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(0deg); }
}

/* 核心优势板块 */
.features-section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 1.5px solid var(--border-card);
}

.feature-card:nth-child(1) .feature-icon-box { background: var(--mint-green); }
.feature-card:nth-child(2) .feature-icon-box { background: var(--lavender-purple); }
.feature-card:nth-child(3) .feature-icon-box { background: var(--sun-yellow); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 流媒体与 AI 支持大图卡 */
.support-media-section {
  padding: 30px 0 60px 0;
}

.support-banner-card {
  background: linear-gradient(135deg, #FFE3D3 0%, #E6E1FF 100%);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.support-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.support-banner-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.support-chips-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.support-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 0 #E9E2D6;
}

/* 定价套餐板块 */
.pricing-section {
  padding: 60px 0;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.toggle-pill {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  padding: 6px;
  border-radius: var(--radius-btn);
  display: flex;
  gap: 6px;
  box-shadow: 0 2px 0 #E9E2D6;
}

.pill-option {
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pill-option.active {
  background: var(--text-ink);
  color: #FFFFFF;
}

.save-tag {
  background: var(--sun-yellow);
  border: 1px solid var(--border-card);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-btn);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease;
}

.pricing-card.featured {
  border-color: var(--text-ink);
  box-shadow: 0 12px 28px -6px rgba(26, 21, 35, 0.12), 0 4px 0 var(--text-ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sun-yellow);
  border: 1.5px solid var(--border-card);
  padding: 4px 16px;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 0.8rem;
}

.plan-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.currency {
  font-size: 1.5rem;
  font-weight: 800;
}

.amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.amount.bounce {
  animation: priceBounce 0.35s ease;
}

@keyframes priceBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  border-top: 1px dashed var(--border-card);
  padding-top: 20px;
}

.plan-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-ink);
}

.check-icon {
  color: #10B981;
  font-weight: 800;
}

.btn-buy {
  display: block;
  text-align: center;
  background: var(--bg-cream);
  color: var(--text-ink);
  border: 1.5px solid var(--border-card);
  padding: 14px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 0 #E9E2D6;
}

.pricing-card.featured .btn-buy {
  background: var(--text-ink);
  color: #FFFFFF;
  border-color: var(--text-ink);
  box-shadow: 0 3px 0 #000;
}

.btn-buy:hover {
  transform: translateY(-2px);
  background: var(--sun-yellow);
  color: var(--text-ink);
}

.pricing-card.featured .btn-buy:hover {
  background: #000000;
  color: #FFFFFF;
}

/* 用户评价板块 */
.reviews-section {
  padding: 60px 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-ink);
  line-height: 1.6;
  margin-bottom: 20px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lavender-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1.5px solid var(--border-card);
}

.reviewer-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.reviewer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 常见问题 FAQ 手风琴 */
.faq-section {
  padding: 60px 0;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--pure-white);
  border: 1.5px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-ink);
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #FCFAF6;
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* 页脚 Footer */
.footer-wrap {
  border-top: 1.5px solid var(--border-card);
  background: var(--pure-white);
  padding: 50px 20px 40px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
}

.footer-links-grid {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links-grid a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links-grid a:hover {
  color: var(--text-ink);
  text-decoration: underline;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 响应式媒体查询 */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-status {
    grid-column: span 2;
  }
  .card-speed {
    grid-column: span 2;
  }
  .feature-cards-grid,
  .pricing-cards-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .card-status, .card-speed, .card-stream, .card-privacy, .card-city, .card-device {
    grid-column: span 1;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .footer-links-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
