/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  color: #222;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

body.dark {
  background: #121212;
  color: #e0e0e0;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

/* 头部 */
header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dark-toggle {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background: #1a1a2e;
    padding: 10px 0;
    border-radius: 12px;
  }

  nav ul.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* 面包屑 */
.breadcrumb {
  background: #f1f3f5;
  padding: 12px 0;
  font-size: 0.9rem;
  transition: background 0.3s;
}

body.dark .breadcrumb {
  background: #1e1e1e;
}

.breadcrumb a {
  color: #007bff;
}

body.dark .breadcrumb a {
  color: #4da3ff;
}

.breadcrumb span {
  margin: 0 6px;
}

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #0f3460, #533483, #e94560);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero .btn {
  background: #e94560;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

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

/* 通用section */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #e94560;
  margin: 12px auto 0;
  border-radius: 4px;
}

/* 卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.85);
}

body.dark .card {
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.card img {
  border-radius: 12px;
  margin-bottom: 16px;
}

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

.card p {
  color: #555;
}

body.dark .card p {
  color: #bbb;
}

/* 品牌介绍 */
.brand-intro {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

body.dark .brand-intro {
  background: #1a1a1a;
}

.brand-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-content .text {
  flex: 1;
  min-width: 280px;
}

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

.brand-content .image {
  flex: 1;
  min-width: 280px;
}

/* 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

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

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  background: #ddd;
}

/* 成功案例轮播 */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 0 10px;
}

.carousel-item img {
  width: 100%;
  border-radius: 16px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
  cursor: pointer;
}

body.dark .faq-item {
  border-color: #333;
}

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

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

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 16px;
}

/* HowTo */
.howto-step {
  background: #f1f3f5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

body.dark .howto-step {
  background: #2a2a2a;
}

/* 底部 */
footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0;
}

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

.footer-grid h4 {
  color: #fff;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 数字增长 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e94560;
}

/* 返回顶部 */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #e94560;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  border: none;
  z-index: 999;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

/* 搜索 */
.search-box {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 20px auto;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.search-box button {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  background: #e94560;
  color: #fff;
  cursor: pointer;
}

/* 响应式 */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* 暗黑模式兼容 */
body.dark .card {
  background: #1e1e1e;
}

body.dark .breadcrumb {
  background: #1e1e1e;
}

body.dark .brand-intro {
  background: #1a1a1a;
}

body.dark .howto-step {
  background: #2a2a2a;
}