/* ========================================
   main.css - 全局样式与基础变量
   ======================================== */

/* CSS Variables */
:root {
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --blue-600: #1e88e5;
  --blue-50: #e3f2fd;
  --green-600: #10a37f;
  --green-50: #e6faf4;
  --amber-500: #f59e0b;
  --amber-50: #fefce8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 32px rgba(0,0,0,.08);
  --shadow-red: 0 8px 24px rgba(220,38,38,.15);
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  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", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Common - 紧凑版 */
section {
  padding: 40px 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-label-line {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-600), var(--red-500));
  border-radius: 2px;
}

.section-label-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading-with-underline {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.section-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-600);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
  margin-top: 6px;
}

.section-title-sm {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 13px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section Backgrounds */
.dashboard-section {
  background: linear-gradient(180deg, #faf5f5 0%, #fff 50%, #faf5f5 100%);
}

.pricing-section {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 30%, #fdf2f8 50%, #ffffff 70%, #fef2f2 100%);
}

.network-section {
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 50%, #ffffff 100%);
}

.faq-section {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 30%, #fef2f2 100%);
}

.partners-section {
  background: #fff;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-500) 100%);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(220,38,38,.25);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220,38,38,.35);
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 2px solid var(--red-600);
  color: var(--red-600);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--red-50);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 28px 0;
  }
  .section-title {
    font-size: 18px;
  }
  .section-subtitle {
    font-size: 12px;
  }
  .section-container {
    padding: 0 16px;
  }
}
