/* ===== 第翼官网 - 公共样式 ===== */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  --max-width: 1280px;
}

* { 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", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-lang="en"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 语言切换器 ===== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--brand-50);
  border-radius: 999px;
  padding: 3px;
  margin-right: 12px;
  font-size: 13px;
}
.lang-switcher-btn {
  border: none;
  background: transparent;
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-switcher-btn:hover { color: var(--brand); }
.lang-switcher-btn.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 4px rgba(37,99,235,0.25);
}
@media (max-width: 768px) {
  .lang-switcher { margin-right: 4px; font-size: 12px; }
  .lang-switcher-btn { padding: 3px 8px; }
}


/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 10px;
  font-size: 18px;
  color: white;
}

.logo-image {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.icon-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Icon containers with images */
.product-icon .icon-image { max-width: 32px; max-height: 32px; }
.product-section-feature-icon .icon-image { max-width: 32px; max-height: 32px; }
.api-list-icon .icon-image { max-width: 36px; max-height: 36px; }
.advantage-icon .icon-image { max-width: 32px; max-height: 32px; }
.product-banner-icon .icon-image { max-width: 56px; max-height: 56px; margin: 0 auto; }
.feature-item-icon .icon-image { max-width: 24px; max-height: 24px; }
.solution-icon .icon-image { max-width: 40px; max-height: 40px; margin: 0 auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-dropdown a:hover {
  background: var(--brand-50);
  color: var(--brand);
}

/* ===== Mega Menu ===== */
.nav-item.has-mega {
  position: relative;
}

.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 720px;
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1100;
  padding-top: 8px;
}

.nav-item.has-mega:hover .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nav-mega-column {
  display: flex;
  flex-direction: column;
}

.nav-mega-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.nav-mega-category .nav-mega-item-icon {
  width: 28px;
  height: 28px;
  font-size: 16px;
  background: var(--brand-50);
}

.nav-mega-category .nav-mega-item-icon.emoji {
  font-size: 16px;
}

.nav-mega-category .nav-mega-item-icon img {
  width: 20px;
  height: 20px;
}

.nav-mega-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.15s;
  text-decoration: none;
}

.nav-mega-item:hover {
  background: var(--brand-50);
}

.nav-mega-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--brand-50);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-mega-item-icon.emoji {
  background: var(--brand-50);
}

.nav-mega-item-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-mega-item-content {
  flex: 1;
  min-width: 0;
}

.nav-mega-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.nav-mega-item:hover .nav-mega-item-name {
  color: var(--brand);
}

.nav-mega-item-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-50) 0%, white 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--brand-100);
  color: var(--brand-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
}

/* Dashboard Preview */
.hero-dashboard {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.dashboard-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dashboard-title {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 8px;
}

.dashboard-body {
  padding: 20px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-stat {
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.dashboard-stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.dashboard-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.dashboard-stat-change {
  font-size: 12px;
  color: #10b981;
  margin-left: 4px;
}

.dashboard-chart {
  height: 120px;
  position: relative;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
}

/* ===== Product Grid ===== */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.product-tab {
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
}

.product-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--brand-50);
  border-radius: 12px;
  margin-bottom: 16px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-link {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  gap: 8px;
}

/* ===== Solutions ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solution-card {
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.solution-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.solution-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.solution-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.solution-pain {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.solution-plan {
  font-size: 13px;
  color: var(--brand);
  padding: 8px 12px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.solution-link {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}

/* ===== Feature Showcase ===== */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.feature-tab {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.feature-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.feature-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-info p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: start;
}

.feature-item-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--brand-50);
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-item-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* Demo Box */
.demo-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-body {
  padding: 20px;
}

/* SMS Demo */
.sms-message {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.sms-label {
  font-size: 12px;
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.sms-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sms-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #10b981;
}

.sms-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.sms-metric {
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: var(--radius-sm);
}

.sms-metric-value {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sms-metric-label {
  font-size: 12px;
  color: var(--text-light);
}

/* 5G Demo */
.demo-5g-banner {
  background: var(--gradient);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: white;
  margin-bottom: 16px;
}

.demo-5g-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-5g-btn {
  padding: 6px 16px;
  background: white;
  color: var(--brand);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
}

.demo-5g-btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
}

.demo-5g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-5g-tag {
  padding: 4px 12px;
  background: var(--brand-100);
  color: var(--brand-dark);
  border-radius: 12px;
  font-size: 12px;
}

/* Code Demo */
.code-block {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.code-list {
  margin-top: 16px;
}

.code-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}

.code-list-item .check {
  color: #10b981;
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.advantage-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--gradient);
  border-radius: 14px;
  margin-bottom: 20px;
}

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

.advantage-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.advantage-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: var(--gradient);
  border-radius: var(--radius);
  color: white;
}

.advantage-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-cta p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.advantage-cta .btn {
  background: white;
  color: var(--brand);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

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

.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--brand);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
}

.mobile-nav-children {
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-nav-child-link {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  padding: 6px 0;
}

.mobile-nav-mega-group {
  margin-bottom: 12px;
}

.mobile-nav-mega-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.mobile-menu-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu-actions .btn {
  flex: 1;
}

.mobile-menu .lang-switcher {
  justify-content: center;
  margin: 12px 0;
}

/* ===== Auth Modal (登录/注册) ===== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: authFadeIn 0.2s ease;
}

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

.auth-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: authSlideUp 0.3s ease;
}

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

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-close:hover {
  background: var(--border);
  color: var(--text);
}

.auth-header {
  text-align: center;
  padding: 32px 32px 20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

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

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

.auth-form {
  padding: 0 32px;
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
  color: var(--text);
  box-sizing: border-box;
}

.auth-form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.auth-code-row {
  display: flex;
  gap: 8px;
}

.auth-code-row .auth-form-input {
  flex: 1;
}

.auth-code-btn {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--brand);
  background: white;
  color: var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.auth-code-btn:hover:not(:disabled) {
  background: var(--brand-50);
}

.auth-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
}

.auth-checkbox input {
  accent-color: var(--brand);
}

.auth-agree {
  margin-bottom: 20px;
  font-size: 13px;
}

.auth-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.auth-footer {
  text-align: center;
  padding: 0 32px 32px;
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Frontend Toast ===== */
.fe-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.fe-toast.show {
  transform: translateX(0);
}

.fe-toast-success {
  background: #10b981;
  color: white;
}

.fe-toast-error {
  background: #ef4444;
  color: white;
}

/* ===== Product Banner ===== */
.product-banner {
  padding: 100px 0 60px;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.product-banner .container {
  position: relative;
  z-index: 1;
}

.product-banner-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.product-banner-label {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-banner-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-banner-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Product Section ===== */
.product-section {
  padding: 64px 0;
}

.product-section:nth-child(even) {
  background: var(--bg-soft);
}

.product-section-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.product-section-feature {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.product-section-feature:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-section-feature.has-tags {
  display: flex;
  gap: 16px;
}

.product-section-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.has-tags .product-section-feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

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

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

.product-section-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-tag {
  padding: 2px 10px;
  background: var(--brand-50);
  color: var(--brand-dark);
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}

.product-section-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
  align-items: start;
}

.product-section-demo {
  min-width: 0;
}

.product-specs {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-label {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 35%;
  vertical-align: top;
}

.specs-value {
  padding: 10px 0 10px 16px;
  font-size: 13px;
  color: var(--text-light);
}

.product-section-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Product Comparison */
.product-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.comparison-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: white;
  transition: all 0.3s;
}

.comparison-card.advanced {
  border-color: var(--brand);
  background: var(--brand-50);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(37,99,235,0.15);
}

.comparison-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.advanced .comparison-card-title {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-light);
}

.comparison-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-features li {
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.comparison-features li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--text-lighter);
}

.advanced .comparison-features li::before {
  color: var(--brand);
  content: '✓';
}

/* ===== API List Section ===== */
.api-list-section {
  padding: 48px 0;
}

.api-list-section:nth-child(even) {
  background: var(--bg-soft);
}

.api-list-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.api-list-icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  border-radius: 14px;
}

.api-list-info {
  flex: 1;
}

.api-list-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.api-list-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.api-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.api-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.api-item:hover {
  border-color: var(--brand-light);
  background: var(--brand-50);
  transform: translateX(4px);
}

.api-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.api-tag {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-\热门 {
  background: #fee2e2;
  color: #dc2626;
}

.tag-\常用 {
  background: #dbeafe;
  color: #2563eb;
}

.tag-\精选 {
  background: #fef3c7;
  color: #d97706;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-content { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-section-body { grid-template-columns: 1fr; }
  .nav-mega { min-width: 600px; }
  .nav-mega-inner { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions .lang-switcher { font-size: 12px; margin-right: 4px; }
  .header-actions .lang-switcher-btn { padding: 3px 8px; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 32px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .cta-actions { flex-direction: column; }
  .product-banner { padding: 80px 0 40px; }
  .product-banner-title { font-size: 28px; }
  .product-banner-subtitle { font-size: 15px; }
  .product-section-features { grid-template-columns: 1fr; }
  .product-comparison { grid-template-columns: 1fr; }
  .comparison-card.advanced { transform: none; }
  .api-list-header { flex-direction: column; }
  .api-items-grid { grid-template-columns: 1fr; }
  .product-section-links { flex-direction: column; }
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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

/* Chart bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  padding-bottom: 20px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  transition: height 0.6s ease;
  opacity: 0.8;
}

.chart-bar:hover {
  opacity: 1;
}

.chart-bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-lighter);
}
