/* ========================================
   4008233020.com 公共样式表
   AI时代营销站点 - 2026重构版
   ======================================== */

/* CSS变量定义 */
:root {
  /* 品牌色 - 科技蓝（与Logo统一） */
  --primary: #003DA5;
  --primary-dark: #002B5C;
  --primary-light: #1E5AA8;

  /* 辅助色 - 浅蓝强调 */
  --secondary: #1a1a1a;
  --accent: #00A0E9;
  
  /* 中性色 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* 文字色 */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  
  /* 背景色 */
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  
  /* 边框 */
  --border-light: #e5e7eb;
  --border-dark: #d1d5db;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* 容器宽度 */
  --container-max: 1200px;
  --container-padding: 20px;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* 网格系统 */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex工具 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* 文字工具 */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* 间距工具 */
.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.py-6 { padding-top: 64px; padding-bottom: 64px; }
.px-1 { padding-left: 8px; padding-right: 8px; }
.px-2 { padding-left: 16px; padding-right: 16px; }
.px-3 { padding-left: 24px; padding-right: 24px; }
.px-4 { padding-left: 32px; padding-right: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

/* Section通用样式 */
.section {
  padding: 64px 0;
}

.section-gray {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--secondary);
  color: var(--text-white);
}

/* 标题样式 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* 卡片样式 */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* 价格标签 */
.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* 特色标签 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: rgba(230, 0, 18, 0.1);
  color: var(--primary);
}

.badge-hot {
  background-color: #fff3cd;
  color: #856404;
}

.badge-new {
  background-color: #d4edda;
  color: #155724;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--gray-300);
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination-item:hover {
  background-color: var(--gray-100);
}

.pagination-item.active {
  background-color: var(--primary);
  color: var(--text-white);
}

/* 响应式断点 */
/* 手机: < 640px */
/* 平板: 640px - 1024px */
/* 桌面: > 1024px */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 16px;
  }
  
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .text-4xl { font-size: 1.875rem; }
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }
  
  .card {
    padding: 16px;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease;
}

.animate-slideUp {
  animation: slideUp 0.5s ease;
}

/* 辅助类 */
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 纯展示占位 - 内容来自旧站 */
.placeholder-content {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-align: center;
}

.placeholder-content h2 {
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Schema结构化数据专用样式 */
[data-scheme="LocalBusiness"] .business-name {
  font-weight: 700;
  font-size: 1.25rem;
}

[data-scheme="FAQPage"] details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 16px;
}

[data-scheme="FAQPage"] summary {
  font-weight: 600;
  cursor: pointer;
}

[data-scheme="FAQPage"] .faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ========================================
   头部样式
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #003DA5;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 导航 */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #003DA5;
  background-color: #f0f5ff;
}

.nav-arrow {
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 8px;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #4b5563;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background-color: #f0f5ff;
  color: #003DA5;
}

/* 电话 */
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #003DA5 0%, #1E5AA8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-tel:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* ========================================
   底部样式
   ======================================== */
.site-footer {
  background-color: #1a1a1a;
  color: #d1d5db;
  margin-top: 80px;
}

/* CTA区域 */
.footer-cta {
  background: linear-gradient(135deg, #003DA5 0%, #002B5C 100%);
  padding: 48px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.footer-cta .btn-outline {
  border-color: #fff;
  color: #fff;
}

.footer-cta .btn-outline:hover {
  background-color: #fff;
  color: #003DA5;
}

/* 底部主内容 */
.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
}

/* 品牌 */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

/* 微信客服二维码 */
.footer-wechat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-wechat img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.footer-wechat span {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.logo-icon {
  font-size: 1.5rem;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #d1d5db;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: #003DA5;
  color: #fff;
}

/* 链接组 */
.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #003DA5;
}

/* 联系信息 */
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.9375rem;
  color: #d1d5db;
  font-weight: 500;
}

/* 底部版权 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #6b7280;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #d1d5db;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #003DA5;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 61, 165, 0.4);
}


