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

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #0f0f1a;
  color: #e0e0e0;
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

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

.logo span {
  background: linear-gradient(45deg, #e94560, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
  background: #e94560;
  color: white;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

#darkModeToggle {
  background: none;
  border: 2px solid #e94560;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

#darkModeToggle:hover {
  background: #e94560;
}

#searchInput {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  width: 160px;
  transition: 0.3s;
}

#searchInput::placeholder {
  color: #aaa;
}

#searchInput:focus {
  outline: none;
  background: rgba(255,255,255,0.3);
  width: 200px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a2e;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
  }
  nav ul.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }
}

/* 面包屑 */
.breadcrumb {
  background: #fff;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
  color: #e94560;
  text-decoration: none;
}

.breadcrumb span {
  color: #666;
}

body.dark-mode .breadcrumb {
  background: #1a1a2e;
  border-bottom-color: #333;
}

body.dark-mode .breadcrumb span {
  color: #aaa;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #e94560, #ff6b6b, #fca311);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero .btn {
  background: #e94560;
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 0 8px 25px rgba(233,69,96,0.4);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(233,69,96,0.6);
}

.hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
}

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

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

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

/* 卡片 */
.card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

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

body.dark-mode .card {
  background: #1e1e2f;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 25px;
}

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Banner 轮播 */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #1a1a2e;
  min-height: 300px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.banner-slide.active {
  opacity: 1;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.3s;
}

.banner-dots span.active {
  background: #e94560;
  transform: scale(1.2);
}

/* 图片占位 */
.img-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #e94560, #0f3460);
}

.img-placeholder svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 17px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s;
  padding-top: 10px;
  color: #555;
}

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

body.dark-mode .faq-answer {
  color: #bbb;
}

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

/* 数字动画 */
.number-animate {
  font-size: 42px;
  font-weight: 700;
  color: #e94560;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 20px;
}

.footer a {
  color: #e94560;
  text-decoration: none;
}

.footer .grid-4 {
  gap: 30px;
}

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

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #e94560;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
}

/* 滚动动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 文章卡片 */
.article-card {
  margin-bottom: 30px;
}

.article-card .img-placeholder {
  height: 180px;
}

.article-card h3 {
  font-size: 20px;
  margin: 10px 0;
}

.article-card .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.read-more {
  color: #e94560;
  font-weight: 600;
  text-decoration: none;
}

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

body.dark-mode .howto-step {
  background: #25253a;
}

.howto-step h4 {
  color: #e94560;
}

/* 联系信息 */
.contact-info p {
  margin: 6px 0;
}

/* 二维码占位 */
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

body.dark-mode .qr-placeholder {
  background: #333;
  color: #aaa;
}

/* 标签 */
.tag {
  display: inline-block;
  background: #e94560;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin: 3px;
}

/* 新闻列表 */
.news-list {
  list-style: none;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

body.dark-mode .news-list li {
  border-color: #333;
}

.news-list li a {
  color: inherit;
  text-decoration: none;
}

.news-list li a:hover {
  color: #e94560;
}

/* 作者框 */
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f0f0f5;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}

body.dark-mode .author-box {
  background: #1e1e2f;
}

.author-box .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
}

/* 团队网格 */
.team-grid .card {
  text-align: center;
}

.team-grid .card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

/* 客户评价 */
.testimonial {
  font-style: italic;
  padding: 20px;
  border-left: 4px solid #e94560;
  margin: 15px 0;
  background: rgba(233,69,96,0.05);
  border-radius: 0 12px 12px 0;
}

body.dark-mode .testimonial {
  background: rgba(233,69,96,0.1);
}

/* 暗色模式下的其他细节调整 */
body.dark-mode .breadcrumb a {
  color: #ff6b6b;
}

body.dark-mode .article-card .meta {
  color: #aaa;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e, #16213e);
}

body.dark-mode .back-to-top {
  box-shadow: 0 4px 15px rgba(233,69,96,0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .logo {
    font-size: 20px;
  }
  .logo svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 0;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero .btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  .card {
    padding: 20px;
  }
  .grid-2, .grid-3, .grid-4 {
    gap: 20px;
  }
}