/* ===== 基础样式重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CSS变量定义 ===== */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --border-color: #e5e7eb;
  --bg-gray: #f9fafb;
  --bg-dark: #111827;
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ===== 页面容器 ===== */
.page-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
}

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ===== 头部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 桌面端导航 */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 20px 16px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link-active {
  color: var(--primary-color);
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
  width: 0;
  transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
  width: 75%;
}

.nav-underline-active {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 移动端导航 */
.nav-mobile {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.nav-mobile-link:hover {
  color: var(--primary-color);
  background: #eff6ff;
}

.nav-mobile-link-active {
  background: #eff6ff;
  color: var(--primary-color);
  font-weight: 500;
}

/* ===== 英雄区域 ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light), #60a5fa);
  color: white;
  padding: 80px 16px 128px;
}

@media (min-width: 768px) {
  .hero {
    padding: 128px 24px 160px;
  }
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 24px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-hero {
  background: white;
  color: var(--primary-color);
  padding: 20px 32px;
  font-size: 18px;
  box-shadow: var(--shadow-xl);
}

.btn-primary-hero:hover {
  background: #f0f9ff;
}

.btn-secondary-hero {
  background: var(--secondary-color);
  color: white;
  padding: 20px 32px;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
}

.btn-secondary-hero:hover {
  background: #1e3a8a;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-dark {
  background: #1f2937;
  color: white;
}

.btn-dark:hover {
  background: #111827;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background: var(--bg-gray);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--primary-color);
  padding: 8px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-flex {
  flex: 1;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-icon-sm {
  width: 16px;
  height: 16px;
}

/* 统计数据 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-value {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 40px;
  }
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(to top, #eff6ff, transparent);
}

/* ===== 区域通用样式 ===== */
.section {
  padding: 64px 16px;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 24px;
  }
}

.section-white {
  background: white;
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

.section-desc {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 18px;
  }
}

.section-footer {
  text-align: center;
  margin-top: 32px;
}

/* ===== 选号区域 ===== */
.phone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .phone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .phone-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.phone-card {
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.phone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.phone-card-selected {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.phone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  color: white;
}

.badge-special {
  background: #ef4444;
}

.badge-hot {
  background: #f97316;
}

.badge-premium {
  background: #a855f7;
}

.badge-normal {
  background: #22c55e;
}

.zap-icon {
  font-size: 20px;
}

.phone-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.phone-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--error);
}

.price-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 功能介绍区域 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== 套餐区域 ===== */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  position: relative;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.plan-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-lg);
}

.plan-card-active {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #3b82f6, #8b5cf6, #3b82f6) border-box;
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.3),
              0 0 0 1px rgba(59, 130, 246, 0.1),
              0 0 30px rgba(59, 130, 246, 0.15);
  transform: scale(1.03) translateY(-4px);
  animation: planCardGlow 3s ease-in-out infinite;
  padding: 46px 24px;
}

@keyframes planCardGlow {
  0%, 100% {
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.3),
                0 0 0 1px rgba(59, 130, 246, 0.1),
                0 0 30px rgba(59, 130, 246, 0.15);
  }
  50% {
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.4),
                0 0 0 1px rgba(59, 130, 246, 0.15),
                0 0 40px rgba(59, 130, 246, 0.25);
  }
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}

.plan-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
}

.plan-card-active .plan-icon {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.plan-price {
  text-align: center;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
}

.price-period {
  font-size: 14px;
  color: var(--text-gray);
}

.plan-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 底部信息 ===== */
.footer {
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 64px 16px 32px;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-white {
  width: 24px;
  height: 24px;
  color: white;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.footer-desc {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .footer-desc {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .footer-contact li {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .footer-links a {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .footer-bottom {
    font-size: 12px;
    text-align: center;
  }
  
  .footer-links-bottom {
    gap: 12px;
  }
  
  .footer-links-bottom a {
    font-size: 12px;
  }
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #1f2937;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
}

.arrow {
  color: var(--primary-light);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-divider {
  height: 1px;
  background: #374151;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #9ca3af;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-links-bottom {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links-bottom {
    justify-content: flex-end;
  }
}

.footer-links-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
  color: white;
}

/* ===== 弹窗样式 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

.modal-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

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

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* 订单信息 */
.order-info {
  background: #eff6ff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-info-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-phone {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.order-info-right {
  text-align: right;
}

.order-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--error);
}

.order-price-label {
  font-size: 14px;
  color: var(--text-gray);
}

/* 表单样式 */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.required {
  color: var(--error);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-error {
  border-color: var(--error);
}

.form-error {
  font-size: 12px;
  color: var(--error);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.form-row-input {
  display: flex;
  gap: 8px;
}

.form-input-flex {
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 16px;
}

/* 选项卡样式 */
.tabs-header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: var(--bg-gray);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-gray);
  transition: var(--transition);
}

.tab-btn-active {
  background: white;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 支付弹窗 */
.modal-payment {
  text-align: center;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.qr-code {
  width: 192px;
  height: 192px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px;
}

.qr-cell {
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 1px;
}

/* ===== 精致登录弹窗样式 ===== */
.modal-login {
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.modal-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  animation: loginIconBounce 2s ease-in-out infinite;
}

@keyframes loginIconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.login-icon .icon {
  width: 36px;
  height: 36px;
  color: white;
  stroke-width: 2;
}

.modal-title-center {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.modal-desc-center {
  color: var(--text-gray);
  font-size: 14px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 2;
  margin-top: 10px;
}

.form-label-icon {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
}

.password-input-wrapper {
  position: relative;
}

.password-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--primary-color);
}

.password-toggle .icon {
  width: 20px;
  height: 20px;
}

.login-options {
  margin-bottom: 4px;
}

.checkbox-text {
  font-size: 14px;
}

.forgot-password-link {
  font-size: 14px;
  transition: var(--transition);
}

.forgot-password-link:hover {
  color: var(--primary-color);
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
  transform: translateX(4px);
}

.login-footer {
  margin-top: 24px;
}

.login-divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-divider-text {
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-gray);
}

.login-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
}

/* 输入框聚焦效果增强 */
.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 移动端优化 */
@media (max-width: 480px) {
  .modal-login {
    margin: 16px;
    max-width: none;
  }
  
  .login-icon {
    width: 64px;
    height: 64px;
  }
  
  .login-icon .icon {
    width: 32px;
    height: 32px;
  }
  
  .modal-title-center {
    font-size: 22px;
  }
}

.qr-cell-black {
  background: #1f2937;
}

/* ===== 底部社交链接样式 ===== */
.social-link {
  transition: var(--transition);
  color: white;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link-phone:hover {
  color: #10b981;
}

.social-link-wechat:hover {
  color: #07c160;
}

/* ===== 微信二维码弹窗样式 ===== */
.modal-wechat {
  max-width: 380px;
  text-align: center;
}

.wechat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wechat-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.3);
}

.wechat-icon .icon {
  width: 32px;
  height: 32px;
  color: white;
}

.wechat-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.wechat-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.wechat-qr-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.wechat-qr-code {
  width: 200px;
  height: 200px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wechat-qr-code .qr-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 12px;
}

.wechat-qr-code .qr-cell {
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 2px;
}

.wechat-qr-code .qr-cell-black {
  background: #1f2937;
}

.wechat-tip {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .modal-wechat {
    margin: 16px;
    max-width: none;
  }
  
  .wechat-qr-code {
    width: 180px;
    height: 180px;
  }
  
  .qr-tip {
    font-size: 14px;
    color: var(--text-gray);
  }
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ===== 新闻详情 ===== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-header {
  margin-bottom: 32px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-detail-date {
  font-size: 14px;
  color: var(--text-gray);
}

.news-detail-category {
  font-size: 14px;
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.news-detail-views {
  font-size: 14px;
  color: var(--text-gray);
}

.news-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 20px;
}

.news-detail-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-size: 14px;
  color: var(--text-gray);
}

.share-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.share-link:hover {
  background: var(--primary-color);
}

.share-icon {
  width: 18px;
  height: 18px;
  color: var(--text-gray);
}

.share-link:hover .share-icon {
  color: white;
}

.news-detail-image {
  width: 100%;
  margin-bottom: 32px;
}

.news-detail-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-detail-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 16px;
}

.news-detail-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.news-detail-content ul,
.news-detail-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.news-detail-content li {
  margin-bottom: 12px;
}

.news-detail-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-gray);
}

.news-detail-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.news-detail-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 14px;
  color: var(--text-gray);
}

.tag {
  font-size: 14px;
  color: var(--text-gray);
  background: var(--bg-gray);
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

.news-detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-detail-nav-prev,
.news-detail-nav-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.news-detail-nav-prev:hover,
.news-detail-nav-next:hover {
  background: #e0e7ff;
}

.news-detail-nav-prev {
  text-align: left;
}

.news-detail-nav-next {
  text-align: right;
}

.nav-label {
  font-size: 14px;
  color: var(--text-gray);
}

.nav-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 24px;
  }
  
  .news-detail-image-placeholder {
    height: 250px;
    font-size: 48px;
  }
  
  .news-detail-nav {
    grid-template-columns: 1fr;
  }
}

.payment-info {
  width: 100%;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 16px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-label {
  font-size: 14px;
  color: var(--text-gray);
}

.payment-value {
  font-weight: 600;
  color: var(--text-dark);
}

.payment-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.payment-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--error);
}

.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 16px;
}

.security-icon {
  width: 16px;
  height: 16px;
}

/* ===== 新闻资讯区域 ===== */
.news-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .news-container {
    grid-template-columns: 1fr 1fr;
  }
}

.news-left {
  display: flex;
  flex-direction: column;
}

.news-main {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-main:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-main-image {
  width: 100%;
  height: 256px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-main-placeholder {
  font-size: 64px;
}

.news-main-content {
  padding: 24px;
}

.news-date {
  display: inline-block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.news-main-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-main-desc {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.news-right {
  display: flex;
  flex-direction: column;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.news-main {
  display: block;
  text-decoration: none;
}

.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.news-item-date {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
  color: var(--primary-color);
}

/* ===== 帮助中心区域 ===== */
.help-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .help-container {
    grid-template-columns: 300px 1fr;
  }
}

.help-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1023px) {
  .help-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.help-category {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

@media (max-width: 1023px) {
  .help-category {
    flex: 1;
    min-width: 140px;
  }
}

.help-category:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.help-category-active {
  background: #eff6ff;
  border-color: var(--primary-color);
}

.help-category-icon {
  font-size: 32px;
  margin-bottom: 8px;
  text-align: center;
}

.help-category-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.help-category-active .help-category-title {
  color: var(--primary-color);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #bfdbfe;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  background: var(--bg-gray);
  transition: var(--transition);
}

.faq-question:hover {
  background: #eff6ff;
}

.faq-question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  padding-top: 12px;
}

/* ===== 响应式调整 ===== */
@media (max-width: 639px) {
  .hero-actions .btn {
    width: 100%;
  }
}
