/* ============================================================
 * goport 门户首页样式
 * 浅色主题 + 渐变背景 + 卡片式布局 + 滚动动画
 * ============================================================ */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}
.btn-outline {
  background: transparent;
  color: #3b82f6;
  border: 1.5px solid #3b82f6;
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #475569;
}
.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-light { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-light:hover { background: rgba(255,255,255,0.15); }

/* ===== 导航栏 ===== */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.logo-text {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: #3b82f6; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #3b82f6;
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 50%, #fff 100%);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.glow-1 {
  width: 500px; height: 500px;
  background: #93c5fd;
  top: -150px; left: -100px;
  animation: float 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: #c4b5fd;
  bottom: -100px; right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #3b82f6;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.trust-item svg {
  width: 16px; height: 16px;
  color: #3b82f6;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}
.stat-item { text-align: left; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  display: inline;
}
.stat-unit {
  font-size: 18px;
  font-weight: 700;
  color: #3b82f6;
}
.stat-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Hero 可视化卡片 */
.hero-visual { position: relative; }
.visual-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.float-anim { animation: floatCard 6s ease-in-out infinite; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.visual-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.visual-title {
  margin-left: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.visual-badge {
  margin-left: auto;
  font-size: 11px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.visual-body { padding: 18px; }
.tunnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.tunnel-row:hover { background: #f8fafc; }
.tunnel-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tunnel-icon.tcp { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.tunnel-icon.udp { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.tunnel-icon.http { background: linear-gradient(135deg, #10b981, #34d399); }
.tunnel-info { flex: 1; min-width: 0; }
.tunnel-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.tunnel-addr {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'SF Mono', Monaco, monospace;
  margin-top: 2px;
}
.tunnel-status { font-size: 12px; font-weight: 500; }
.tunnel-status.online { color: #22c55e; }
.traffic-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.traffic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}
.traffic-value {
  font-family: 'SF Mono', Monaco, monospace;
  color: #3b82f6;
  font-weight: 600;
}
.traffic-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #3b82f6, #93c5fd);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  animation: barGrow 1s ease-out;
}
@keyframes barGrow { from { height: 0 !important; } }

/* 浮动卡片 */
.floating-card {
  position: absolute;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
}
.card-1 {
  top: 20%; left: -30px;
  animation: floatCard 5s ease-in-out infinite;
}
.card-2 {
  bottom: 15%; right: -20px;
  animation: floatCard 7s ease-in-out infinite reverse;
}
.fc-icon { font-size: 20px; }
.fc-title { font-size: 11px; color: #94a3b8; }
.fc-value { font-size: 15px; font-weight: 700; color: #0f172a; }

/* ===== 合作伙伴 ===== */
.partners-section {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.partners-label {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  font-weight: 500;
}
.partners-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logo {
  font-size: 18px;
  font-weight: 700;
  color: #cbd5e1;
  transition: color 0.3s;
  letter-spacing: -0.5px;
}
.partner-logo:hover { color: #64748b; }

/* ===== 通用 Section ===== */
.section { padding: 100px 0; }
.section-alt { background: #f8fafc; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.section-desc {
  font-size: 16px;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 功能特点 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrap svg {
  width: 26px; height: 26px;
  color: #3b82f6;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== 使用流程 ===== */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.step-card {
  flex: 1;
  max-width: 300px;
  background: #fff;
  padding: 36px 28px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.step-number {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 36px;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.1);
}
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}
.step-arrow {
  font-size: 24px;
  color: #cbd5e1;
  font-weight: 700;
}

/* ===== 价格套餐 ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 30px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}
.pricing-card.featured {
  border: 2px solid #3b82f6;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.pricing-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  min-height: 36px;
}
.pricing-price { margin-bottom: 24px; }
.pricing-amount {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
}
.pricing-unit {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '\2713';
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
}
.pricing-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.pricing-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}
.pricing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.pricing-btn.outline {
  background: transparent;
  color: #3b82f6;
  border: 1.5px solid #3b82f6;
}
.pricing-btn.outline:hover { background: rgba(59, 130, 246, 0.08); }
.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}
.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== 使用场景 ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scenario-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.scenario-icon { font-size: 36px; margin-bottom: 16px; }
.scenario-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.scenario-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== 用户评价 ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.author-role {
  font-size: 12px;
  color: #94a3b8;
}

/* ===== 常见问题 ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-item.open {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}
.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
}
.faq-arrow {
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.3s ease;
  font-weight: 400;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  color: #3b82f6;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== CTA 区域 ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #4f46e5, #7c3aed);
}
.cta-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ===== 页脚 ===== */
.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo-mark {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
.footer-brand .logo-mark + span {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.social-icon:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}
.social-icon svg {
  width: 18px; height: 18px;
  color: #cbd5e1;
}
.social-icon:hover svg { color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 20px; height: 20px;
  color: #475569;
}
.back-to-top:hover svg { color: #fff; }

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 登录/注册弹窗 ===== */
.auth-modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  position: relative;
  width: 420px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  padding: 36px 32px 28px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.auth-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.auth-logo .logo-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.auth-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.auth-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}
.auth-form .form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s;
  box-sizing: border-box;
}
.auth-form .form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 44px !important; }
.toggle-password {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.toggle-password:hover { opacity: 1; }
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.auth-options .chk {
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-form .btn-primary {
  width: 100%;
  height: 42px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.auth-form .btn-primary:active { transform: translateY(0); }
.auth-form .btn-primary.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.auth-form .btn-primary.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-err {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  font-size: 12px;
  display: none;
}
.auth-err.show { display: block; }
.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
}
.auth-footer a {
  color: #3b82f6;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }
.input-hint {
  font-size: 11px;
  margin-top: 5px;
  min-height: 16px;
  color: #94a3b8;
}
.input-hint.error { color: #dc2626; }
.input-hint.success { color: #16a34a; }
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  background: #dc2626;
  transition: width 0.3s, background 0.3s;
  border-radius: 2px;
}
.strength-fill.weak { background: #dc2626; width: 33%; }
.strength-fill.medium { background: #f59e0b; width: 66%; }
.strength-fill.strong { background: #16a34a; width: 100%; }
.strength-text {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .features-grid,
  .scenarios-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero { padding: 110px 0 70px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .features-grid,
  .scenarios-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .cta-title { font-size: 28px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .floating-card { display: none; }
  .partners-grid { gap: 28px; }
}
