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

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.7;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ========== 头部导航 ========== */
.header {
  background: #1a1a2e;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  background: rgba(26, 26, 46, 0.95);
}

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

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #f0c27f;
  letter-spacing: 1px;
}

.logo span {
  color: #e94560;
}

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

.nav a {
  color: #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: #f0c27f;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.search-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.3s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
}

.search-box button {
  background: #e94560;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

.search-box button:hover {
  background: #c23152;
  transform: scale(1.02);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.breadcrumb a {
  color: #1a73e8;
}

/* ========== Banner 渐变 ========== */
.banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15), transparent 60%);
  pointer-events: none;
}

.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease;
}

.banner h1 span {
  color: #e94560;
}

.banner p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.banner .btn {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.banner .btn:hover {
  background: #c23152;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

/* ========== 通用 Section ========== */
.section {
  padding: 60px 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.9);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card svg {
  display: block;
  margin: 0 auto 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1a1a2e;
}

.card p {
  color: #555;
  line-height: 1.8;
}

/* ========== 品牌介绍 ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: #444;
}

.about-text .info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  background: #f0f4f8;
  padding: 20px;
  border-radius: 12px;
  transition: background-color 0.4s ease;
}

.about-text .info div {
  font-size: 14px;
}

.about-text .info strong {
  display: block;
  color: #1a1a2e;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.faq-item h4 {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.faq-item h4 span {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
  color: #555;
  padding-top: 0;
}

.faq-item.active p {
  max-height: 500px;
  padding-top: 10px;
}

.faq-item.active h4 span {
  transform: rotate(45deg);
}

/* ========== HowTo ========== */
.howto-steps {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: background-color 0.4s ease;
}

.howto-steps ol {
  padding-left: 20px;
  counter-reset: step;
}

.howto-steps ol li {
  counter-increment: step;
  margin-bottom: 20px;
  padding-left: 10px;
  position: relative;
  font-size: 16px;
  color: #333;
}

.howto-steps ol li::marker {
  font-weight: 700;
  color: #e94560;
}

/* ========== 新闻卡片 ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.news-card .date {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.news-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.news-card .read-more {
  color: #e94560;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.news-card .read-more:hover {
  color: #c23152;
  transform: translateX(4px);
}

/* ========== 联系我们 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.contact-info .detail {
  background: #f0f4f8;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  transition: background-color 0.4s ease;
}

.contact-info .detail div {
  margin-bottom: 8px;
}

/* ========== 页脚 ========== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0;
  font-size: 14px;
}

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

.footer h4 {
  color: #f0c27f;
  margin-bottom: 15px;
}

.footer a {
  color: #bbb;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

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

/* ========== 返回顶部 & 暗黑切换 ========== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #e94560;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  border: none;
  z-index: 999;
  backdrop-filter: blur(4px);
}

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

.back-to-top:hover {
  background: #c23152;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.dark-mode-toggle {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background: #1a1a2e;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  z-index: 999;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.dark-mode-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== 暗黑模式 ========== */
.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

.dark-mode .card,
.dark-mode .howto-steps,
.dark-mode .news-card,
.dark-mode .about-text .info {
  background: #1e1e1e;
  color: #ccc;
}

.dark-mode .breadcrumb {
  background: #1e1e1e;
  border-color: #333;
}

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

.dark-mode .faq-item h4 {
  color: #e0e0e0;
}

.dark-mode .card h3,
.dark-mode .news-card h4 {
  color: #f0c27f;
}

.dark-mode .about-text p,
.dark-mode .card p,
.dark-mode .news-card p,
.dark-mode .contact-info p {
  color: #bbb;
}

.dark-mode .about-text .info div {
  color: #ccc;
}

.dark-mode .contact-info .detail {
  background: #2a2a2a;
}

.dark-mode .search-box input {
  background: #2a2a2a;
  color: #e0e0e0;
}

.dark-mode .search-box input::placeholder {
  color: #888;
}

.dark-mode .banner {
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e, #0f3460);
}

.dark-mode .header {
  background: rgba(15, 15, 26, 0.95);
}

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

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: center;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner p {
    font-size: 16px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .dark-mode-toggle {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .howto-steps {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .footer .container {
    grid-template-columns: 1fr;
  }

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

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

  .banner {
    padding: 50px 0;
  }

  .banner h1 {
    font-size: 26px;
  }

  .section {
    padding: 40px 0;
  }
}