/* ===== 全局重置与基础 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-dark: #0f3460;
  --accent: #ffd700;
  --accent-dark: #ffaa00;
  --white: #ffffff;
  --text: #333333;
  --text-light: #555555;
  --text-muted: #888888;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --shadow: 0 5px 20px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 20px;
  --radius-sm: 10px;
  --radius-lg: 30px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 暗色模式 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #0f0f1a;
    --primary-light: #1a1a2e;
    --primary-dark: #0a0a15;
    --white: #121212;
    --text: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #777;
    --bg-light: #1a1a2e;
    --bg-card: #1e1e2e;
    --shadow: 0 5px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.5);
  }
  body {
    background: var(--white);
  }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* ===== 通用动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ===== 滚动触发动画 ===== */
section {
  animation: fadeInUp 0.8s ease both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1.0s; }
section:nth-child(11) { animation-delay: 1.1s; }

/* ===== 头部导航 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: background var(--transition);
}

header.scrolled {
  background: rgba(26,26,46,0.98);
}

/* ===== 导航链接 ===== */
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* ===== 按钮通用 ===== */
.btn {
  display: inline-block;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  padding: 16px 50px;
  font-size: 1.2rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 14px 50px;
  font-size: 1.2rem;
}

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

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%);
  border-radius: 50%;
  animation: pulse 6s infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15,52,96,0.3), transparent 70%);
  border-radius: 50%;
  animation: pulse 8s infinite;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin: 0 0 15px;
  line-height: 1.6;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin: 0 0 40px;
}

/* ===== 通用卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* ===== 毛玻璃效果 ===== */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.grid-auto-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ===== 表单 ===== */
.form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

.form-textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 10px 0;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform var(--transition);
  display: inline-block;
}

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

.faq-answer.open {
  max-height: 300px;
  padding: 10px 0;
}

/* ===== 步骤指南 ===== */
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
  background: var(--bg-card);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.step-item:hover {
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== 用户评价 ===== */
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  top: 10px;
  right: 20px;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
}

/* ===== 页脚 ===== */
footer {
  background: var(--primary);
  color: #e0e0e0;
  padding: 60px 20px 30px;
}

footer a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: #888;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  header nav ul {
    display: none;
  }
  #mobileMenuBtn {
    display: block !important;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-auto, .grid-auto-sm, .grid-auto-lg {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-primary, .btn-outline {
    padding: 14px 35px;
    font-size: 1rem;
  }
  section {
    padding: 60px 15px !important;
  }
  h2 {
    font-size: 2rem !important;
  }
  .step-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 80px 15px 60px !important;
  }
  section {
    padding: 40px 10px !important;
  }
  h2 {
    font-size: 1.6rem !important;
  }
  .card {
    padding: 20px;
  }
  .testimonial {
    padding: 20px;
  }
}

/* ===== 辅助类 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-accent {
  color: var(--accent);
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* ===== 渐变Banner装饰 ===== */
.gradient-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.gradient-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,0.1), transparent 70%);
  border-radius: 50%;
  animation: pulse 8s infinite;
}

.gradient-banner::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15,52,96,0.2), transparent 70%);
  border-radius: 50%;
  animation: pulse 10s infinite;
}

/* ===== 特色卡片悬停增强 ===== */
.feature-card {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border-radius: 15px;
  background: var(--bg-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

/* ===== 案例卡片 ===== */
.case-card {
  background: linear-gradient(135deg, #f0f4ff, #e6eeff);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--transition);
}

.case-card:hover {
  transform: translateY(-5px);
}

/* ===== 资讯文章 ===== */
.article-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
}

/* ===== 联系信息项 ===== */
.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== 团队列表 ===== */
.team-item {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 15px;
  align-items: center;
}

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

.team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== 品牌故事卡片 ===== */
.story-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.story-card:hover {
  transform: translateY(-10px);
}

.story-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

/* ===== 登录按钮特殊效果 ===== */
.login-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 25px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255,215,0,0.5);
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* ===== 暗色模式下的卡片背景 ===== */
@media (prefers-color-scheme: dark) {
  .card,
  .testimonial,
  .story-card,
  .article-card,
  .step-item,
  .case-card {
    background: #1e1e2e;
  }
  .feature-card {
    background: #2a2a3e;
  }
  .form-input,
  .form-textarea {
    background: #2a2a3e;
    border-color: #444;
    color: #e0e0e0;
  }
  .faq-item {
    border-color: #333;
  }
  .team-item {
    border-color: #333;
  }
  .contact-item .contact-icon {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
  }
  .case-card {
    background: linear-gradient(135deg, #2a2a3e, #1e1e2e);
  }
  .gradient-banner {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0a0a15 100%);
  }
}