/* ===== 全局重置与变量 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8f9fa;
  --text: #1a1a2e;
  --primary: #e94560;
  --secondary: #16213e;
  --accent: #0f3460;
  --card-bg: #fff;
  --glass: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --transition: 0.3s ease;
}

.dark {
  --bg: #0f0f1a;
  --text: #e0e0e0;
  --card-bg: #1a1a2e;
  --glass: rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 头部导航 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.1);
}

nav a.active {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero 区域 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.2), transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero .btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 1s ease 0.4s both;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(233, 69, 96, 0.4);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-stats div {
  text-align: center;
}

.hero-stats .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e94560;
}

.hero-stats .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

/* ===== 通用区块 ===== */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #e94560, #0f3460);
  margin: 10px auto 0;
  border-radius: 2px;
}

.glass-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* ===== 品牌介绍 ===== */
.brand-section {
  background: var(--card-bg);
}

.brand-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.9;
}

.brand-content p {
  margin-bottom: 15px;
}

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

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

.team-member svg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  padding: 5px;
}

.team-member h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.team-member p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== 产品中心 ===== */
.product-card {
  text-align: center;
}

.product-card svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ===== 服务支持 ===== */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-list li::before {
  content: '✓';
  color: #e94560;
  font-weight: 700;
}

/* ===== 案例展示 ===== */
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.case-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.testimonial-card {
  text-align: center;
  padding: 40px 20px;
}

.testimonial-card svg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
  background: #e94560;
  padding: 10px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  opacity: 0.9;
}

.testimonial-card h4 {
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition);
}

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

.faq-answer {
  padding-top: 10px;
  display: none;
  opacity: 0.85;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ===== 新闻资讯 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-card {
  padding: 20px;
}

.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.news-card .date {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.news-card .read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #e94560;
  margin-top: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color var(--transition);
}

.footer a:hover {
  color: #e94560;
}

.footer .copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== 浮动按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all var(--transition);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.dark-toggle {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  color: var(--text);
}

.dark-toggle:hover {
  transform: scale(1.1);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  padding: 20px 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

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

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

/* ===== HowTo 步骤 ===== */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.howto-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.howto-step .step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.howto-step .step-content p {
  opacity: 0.85;
}

/* ===== 合作伙伴 ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.partner-grid svg {
  width: 100px;
  height: 60px;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.partner-grid svg:hover {
  opacity: 1;
}

/* ===== 统计区 ===== */
.stats-section {
  background: linear-gradient(135deg, #16213e, #0f3460);
  color: #fff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stats-grid .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #e94560;
}

.stats-grid .label {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* ===== 关于我们 ===== */
.about-section {
  background: var(--card-bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 15px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.contact-info .item {
  padding: 20px;
}

.contact-info .item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  fill: var(--primary);
}

.contact-info .item h4 {
  margin-bottom: 5px;
}

.contact-info .item p {
  opacity: 0.8;
}

/* ===== 网站地图 ===== */
.sitemap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}

.sitemap h4 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.sitemap a {
  display: block;
  padding: 4px 0;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.9rem;
}

.sitemap a:hover {
  opacity: 1;
  color: var(--primary);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .grid-3,
  .grid-2,
  .team-grid,
  .partner-grid,
  .stats-grid,
  .contact-info,
  .sitemap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 20px;
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}