/* ===== 尊龙凯时 - 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.dark {
  background: #0d1117;
  color: #c9d1d9;
}

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

ul {
  list-style: none;
}

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

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

/* ===== 毛玻璃效果 ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dark .glass {
  background: rgba(13, 17, 23, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

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

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.dark .section-sub {
  color: #8b949e;
}

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

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

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

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dark .card {
  background: #161b22;
  border-color: rgba(255, 255, 255, 0.06);
}

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

/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Banner ===== */
.banner {
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.banner .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.8), rgba(233, 69, 96, 0.5));
  z-index: 1;
}

.banner .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.banner h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

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

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

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

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.dark .navbar.scrolled {
  background: rgba(13, 17, 23, 0.9);
}

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

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

.navbar .nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.navbar .nav-links a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: 100%;
}

.navbar .nav-links a:hover {
  color: #e94560;
}

.navbar .dark-toggle,
.navbar .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: inherit;
  padding: 5px;
}

.navbar .menu-toggle {
  display: none;
}

/* ===== 移动菜单 ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.4rem;
  transition: opacity 0.3s;
}

.dark .mobile-menu {
  background: rgba(13, 17, 23, 0.98);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 998;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ===== 统计数据 ===== */
.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item .label {
  color: #666;
  margin-top: 8px;
  font-size: 1.1rem;
}

.dark .stat-item .label {
  color: #8b949e;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 0;
  cursor: pointer;
}

.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}

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

.faq-item .question .icon {
  transition: transform 0.3s;
  font-size: 1.3rem;
}

.faq-item.open .question .icon {
  transform: rotate(45deg);
}

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

.dark .faq-item .answer {
  color: #8b949e;
}

.faq-item.open .answer {
  max-height: 300px;
  padding-top: 12px;
}

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

.howto-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

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

/* ===== 文章卡片 ===== */
.article-card .date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.dark .article-card .date {
  color: #6e7681;
}

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

.article-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.dark .article-card p {
  color: #8b949e;
}

/* ===== 页脚 ===== */
.footer {
  background: #0d1117;
  color: #c9d1d9;
  padding: 60px 0 30px;
}

.footer a {
  color: #8b949e;
  transition: color 0.3s;
}

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

.footer .grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer .copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  font-size: 0.9rem;
  color: #6e7681;
}

.footer .qr-code {
  width: 100px;
  height: 100px;
  margin: 10px auto;
  background: linear-gradient(135deg, #e94560, #0f3460);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.dark .search-box input {
  background: rgba(13, 17, 23, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #c9d1d9;
}

.search-box input:focus {
  border-color: #e94560;
}

.search-box button {
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-results {
  max-width: 600px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  display: none;
}

.dark .search-results {
  background: rgba(13, 17, 23, 0.9);
}

.search-results.show {
  display: block;
}

.search-results .result-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .search-results .result-item {
  border-color: rgba(255, 255, 255, 0.06);
}

/* ===== Newsletter ===== */
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #8b949e;
}

.newsletter-form button {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: #e94560;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }

  .navbar .menu-toggle {
    display: block;
  }

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

  .banner p {
    font-size: 1rem;
  }

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .banner {
    height: 60vh;
    min-height: 400px;
  }

  .stat-item .number {
    font-size: 2.2rem;
  }

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

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

  .section {
    padding: 50px 0;
  }

  .container {
    padding: 0 15px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}