/* 防止内容溢出 */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* 修正flex容器 */
.container {
  width: 100%;
  min-width: 0; /* 修复flex溢出 */
}

:root {
  --bg-1: linear-gradient(180deg,#0f1724 0%, #071226 60%);
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --glass: rgba(255,255,255,0.06);
  --muted: rgba(255,255,255,0.6);
  --card: rgba(255,255,255,0.03);
  --radius: 14px;
  color-scheme: dark;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body, #app {
  height: 100%;
}
body {
  font-family: 'Inter', system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  background: var(--bg-1);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding: 32px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 30px rgba(96, 165, 250, 0.12);
  font-weight: 800;
  font-size: 20px;
  color: #021023;
  letter-spacing: 0.6px;
}
.brand h1 {
  font-size: 18px;
  font-weight: 700;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.cta {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 10px 18px;
  border-radius: 12px;
  color: #012;
  box-shadow: 0 8px 30px rgba(6, 182, 167, 0.12);
  font-weight: 700;
}

/* Hero */
.hero {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 34px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
h2 {
  font-size: 40px;
  line-height: 1.03;
  margin-bottom: 12px;
}
p.lead {
  color: var(--muted);
  margin-bottom: 22px;
}
.features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.feature {
  background: var(--card);
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
}

/* Right panel */
.card-stats {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
}
.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.stat-big {
  font-size: 22px;
  font-weight: 800;
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #021226;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card-small {
  background: var(--glass);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
}
.card-small h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.card-small p {
  color: var(--muted);
  font-size: 13px;
}

/* Pricing */
.pricing {
  margin-top: 36px;
  display: flex;
  gap: 18px;
}
.plan {
  flex: 1;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.03);
}
.plan .price {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 28px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.04));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  color: var(--muted);
}
.site-footer .site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .site-copyright {
  font-size: 14px;
  color: var(--muted);
}
.site-footer .site-copyright strong {
  color: var(--accent);
  font-weight: 700;
}
.site-footer .footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .18s ease, transform .12s ease;
}
.site-footer .footer-links a:hover {
  color: var(--accent-2);
  transform: translateY(-2px);
}

/* ===== 移动端优化部分 ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px !important;
  }
  
  header {
    flex-wrap: wrap;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  
  nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    gap: 12px;
  }
  nav.active {
    display: flex;
  }
  
  .hero-card, .card-stats {
    padding: 20px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .pricing {
    flex-direction: column;
  }
  
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 36, 0.95);
    padding: 12px 16px;
    justify-content: space-around;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    text-align: center;
  }
  .mobile-nav .icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .features {
    justify-content: center;
  }
  
  .btn {
    padding: 14px 16px !important;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .feature {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* 动画效果 */
.logo {
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}
.logo:hover {
  transform: translateY(-6px);
}

@keyframes pulse {
  0% { box-shadow: 0 8px 30px rgba(96,165,250,0.06) }
  50% { box-shadow: 0 20px 50px rgba(96,165,250,0.12) }
  100% { box-shadow: 0 8px 30px rgba(96,165,250,0.06) }
}

/* 小屏幕垂直堆叠 footer */
@media (max-width: 720px) {
  .site-footer .site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .site-footer .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* 新增的显示控制 */
.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  /* 移动端显示这些元素 */
  .mobile-menu-toggle,
  .mobile-nav {
    display: flex;
  }
  
  /* 隐藏PC导航（如果尚未设置） */
  nav {
    display: none !important;
  }
  nav.active {
    display: flex !important;
  }
}

/* 社群福利卡片样式 */
.card-stats {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-big {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* 新用户促销卡片 */
.promotion-card {
  background: linear-gradient(135deg, rgba(110,231,183,0.1), rgba(96,165,250,0.1));
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(110,231,183,0.2);
  margin-top: 20px;
}

.promotion-card h4 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 18px;
}

.promotion-card p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.promotion-card small {
  color: var(--muted);
  font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .card-stats {
    margin-top: 20px;
  }
  
  .btn-row {
    flex-direction: column;
  }
}