/* ==========================================================================
   1. 全局变量与基础重置 (Variables & CSS Reset)
   ========================================================================== */
:root {
  --bg-color: #0f1217;
  --card-bg: #161a23;
  --card-inner-bg: #11141b;
  --text-color: #e1e1e6;
  --text-sub: #a0a5b5;
  --accent-gold: #d4af37;
  --accent-gold-hover: #f1c40f;
  --border-color: #272d3b;
  --header-bg: #12151c;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ==========================================================================
   2. 布局容器与通用网格 (Container & Grids)
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 30px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.content-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.card {
  background: var(--card-inner-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; margin:20px 0;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================================
   3. 全局 H2 / H3 标题排版优化 (Heading Styles - Deluxe Glow)
   ========================================================================== */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-left: 15px;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, #a88414);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* 重重点优化：H3 标题高质感光泽与微交互 */
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  /* 浅金到强光的梯度文字效果 */
  color:var(--accent-gold);
  display: inline-block;
  transition: all 0.3s ease;
}

/* 卡片以及内容区悬停时的 H3 位移与金色提亮 */
.card:hover h3,
.content-box h3:hover {
  transform: translateX(4px);
  color:var(--accent-gold);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.3));
}

/* ==========================================================================
   4. 文章/内容区域 UL 列表优化 (Content Lists)
   ========================================================================== */
/* 仅作用于内容框和卡片内的 UL 列表，不影响 Header/Footer 菜单 */
.content-box ul,
.card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-box ul li,
.card ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-color);
  font-size: 0.98rem;
  line-height: 1.6;
  transition: all 0.25s ease;
}

/* 使用金色菱形 (✦) 作为高质感列表图标 */
.content-box ul li::before,
.card ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-gold);
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 列表 Hover 交互效果 */
.content-box ul li:hover,
.card ul li:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.content-box ul li:hover::before,
.card ul li:hover::before {
  color: var(--accent-gold-hover);
  transform: scale(1.2) rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
}

/* ==========================================================================
   5. Header 导航栏 (Header Navigation)
   ========================================================================== */
.header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}
.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* 按钮通用样式 */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #000;
}

/* ==========================================================================
   6. Hero 头部区域 (Hero Banner)
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 18, 23, 0) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 30px 0;
}

.hero-title {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 15px;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  color: var(--text-sub);
  max-width: 850px;
  margin: 0 auto 25px;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. 博客/新闻专用模块 (Hot Article, Tags, Pagination)
   ========================================================================== */
.news-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-bottom: 10px;
  font-weight: bold;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.hot-article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--card-inner-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .hot-article-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background-color: var(--card-inner-bg);
}

.page-link:hover,
.page-link.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* ==========================================================================
   8. 首页 FAQ 问答模块专属样式 (Accordion FAQ)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-inner-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.faq-item[open] {
  border-color: var(--accent-gold);
  background: #141822;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-title {
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-title::-webkit-details-marker {
  display: none;
}

.faq-title::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-gold);
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-title::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--accent-gold-hover);
}

.faq-item[open] .faq-title {
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content {
  padding: 18px 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  background-color: rgba(0, 0, 0, 0.15);
}

.faq-content strong {
  color: #fff;
}

/* ==========================================================================
   9. Footer 页脚 (Footer)
   ========================================================================== */
.footer {
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 0.85rem;
}
.age-restriction{
  display: inline-block;
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 4px;
}
.article-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
    }
    @media (min-width: 992px) {
      .article-layout {
        grid-template-columns: 2.8fr 1.2fr;
      }
    }
    .breadcrumb {
      font-size: 0.88rem;
      color: var(--text-sub);
      margin: 20px 0;
    }
    .breadcrumb a:hover {
      color: var(--accent-gold);
    }
    .article-header {
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 20px;
      margin-bottom: 25px;
    }
    .article-title {
      font-size: 1.8rem;
      color: #fff;
      line-height: 1.4;
      margin: 10px 0 15px;
    }
    .article-meta {
      display: flex;
      gap: 20px;
      font-size: 0.85rem;
      color: var(--text-sub);
      flex-wrap: wrap;
    }
    .article-body {
      color: var(--text-color);
      line-height: 1.8;
      font-size: 1.02rem;
    }
    .article-body p {
      margin-bottom: 18px;
      color: #d1d5db;
    }
    .article-body strong {
      color: #fff;
    }
    .highlight-box {
      background: rgba(212, 175, 55, 0.08);
      border-left: 4px solid var(--accent-gold);
      padding: 15px 20px;
      margin: 20px 0;
      border-radius: 0 6px 6px 0;
    }
    .sidebar-widget {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 25px;
    }
    .popular-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 15px;
    }
    .popular-item {
      display: flex;
      flex-direction: column;
      gap: 5px;
      border-bottom: 1px dashed var(--border-color);
      padding-bottom: 12px;
    }
    .popular-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .popular-item a {
      font-size: 0.95rem;
      font-weight: 600;
      color: #f0f0f5;
    }
    .popular-item a:hover {
      color: var(--accent-gold);
    }