/* ============================================
   PG电子·江湖论剑 - 武侠江湖论剑风主样式表
   竹简卷轴纵向布局 (Bamboo Scroll Layout)
   ============================================ */

/* --- CSS变量定义 --- */
:root {
  --xuantie-hei: #1A1A2E;
  --jianqi-yin: #C0C0C0;
  --xuese-hong: #8B0000;
  --yueguang-bai: #F5F5F5;
  --zhujian-huang: #F5DEB3;
  --xuantie-hei-light: #2A2A4E;
  --xuantie-hei-dark: #0E0E1A;
  --jianqi-yin-light: #E0E0E0;
  --xuese-hong-light: #B22222;
  --gold-accent: #D4A017;
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--xuantie-hei);
  color: var(--zhujian-huang);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- 字体定义（本地内嵌） --- */
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/mashanzheng/v10/NaPecZTRCLxvwo41b4gvzkXaRMTpDQ.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_EnYxNbPzS5HE.119.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_EnYxNbPzS5HE.119.woff2') format('woff2');
}

/* --- 竹简卷轴纵向布局 --- */
.bamboo-scroll-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.bamboo-scroll-wrapper::before,
.bamboo-scroll-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-accent), #8B6914, var(--gold-accent));
  z-index: 100;
  opacity: 0.3;
}

.bamboo-scroll-wrapper::before { left: 0; }
.bamboo-scroll-wrapper::after { right: 0; }

/* --- 竹简模块样式 --- */
.bamboo-section {
  background: linear-gradient(135deg, rgba(26,26,46,0.95), rgba(42,42,78,0.9));
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 4px;
  margin: 30px 0;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.bamboo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--jianqi-yin), transparent);
}

.bamboo-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--xuese-hong), transparent);
}

/* --- 导航栏 --- */
.jianghu-nav {
  background: linear-gradient(180deg, var(--xuantie-hei-dark), rgba(26,26,46,0.95));
  border-bottom: 2px solid var(--xuese-hong);
  padding: 12px 0;
  position: relative;
  z-index: 999;
}

.jianghu-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jianghu-nav .nav-logo img {
  height: 50px;
  width: auto;
}

.jianghu-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.jianghu-nav .nav-links li a {
  color: var(--zhujian-huang);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.3s, text-shadow 0.3s;
  display: block;
  white-space: nowrap;
}

.jianghu-nav .nav-links li a:hover,
.jianghu-nav .nav-links li a.active {
  color: var(--jianqi-yin);
  text-shadow: 0 0 10px rgba(192,192,192,0.5);
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--jianqi-yin);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* --- 标题样式 --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--jianqi-yin);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }
h3 { font-size: 1.8rem; margin-bottom: 15px; }
h4 { font-size: 1.5rem; margin-bottom: 12px; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

/* 水墨晕染文字效果 */
.ink-wave {
  position: relative;
  display: inline-block;
}

.ink-wave::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--jianqi-yin), transparent);
  animation: inkSpread 3s ease-in-out infinite;
}

@keyframes inkSpread {
  0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* --- 段落和文本 --- */
p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--zhujian-huang);
}

a {
  color: var(--jianqi-yin);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--yueguang-bai);
}

/* --- Hero区域 --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,26,46,0.3), rgba(26,26,46,0.8));
  z-index: 2;
}

.hero-section .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 20px;
}

.hero-section .hero-content h1 {
  font-size: 3.5rem;
  color: var(--jianqi-yin);
  text-shadow: 0 0 30px rgba(192,192,192,0.5), 0 4px 8px rgba(0,0,0,0.8);
  margin-bottom: 20px;
}

.hero-section .hero-content .hero-slogan {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.6rem;
  color: var(--zhujian-huang);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- CTA按钮 --- */
.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--xuese-hong), var(--xuese-hong-light));
  color: var(--yueguang-bai);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.3rem;
  border: 2px solid var(--jianqi-yin);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(192,192,192,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--xuese-hong-light), #CC0000);
  box-shadow: 0 0 20px rgba(192,192,192,0.3), 0 0 40px rgba(139,0,0,0.3);
  transform: translateY(-2px);
  color: var(--yueguang-bai);
}

.cta-btn:hover::before {
  opacity: 1;
  animation: swordAura 1.5s ease-in-out infinite;
}

@keyframes swordAura {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- 六大门派卡片 --- */
.gates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.gate-card {
  background: linear-gradient(180deg, rgba(42,42,78,0.8), rgba(26,26,46,0.95));
  border: 1px solid rgba(192,192,192,0.2);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xuese-hong), var(--jianqi-yin), var(--xuese-hong));
}

.gate-card:hover {
  transform: translateY(-8px);
  border-color: var(--jianqi-yin);
  box-shadow: 0 10px 30px rgba(192,192,192,0.15);
}

.gate-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.gate-card h3 {
  color: var(--jianqi-yin);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.gate-card p {
  font-size: 14px;
  color: var(--zhujian-huang);
  opacity: 0.9;
}

/* --- 武林排行榜 --- */
.ranking-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ranking-list th {
  background: rgba(139,0,0,0.4);
  color: var(--jianqi-yin);
  padding: 12px 15px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.1rem;
  text-align: left;
  border-bottom: 2px solid var(--xuese-hong);
}

.ranking-list td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(192,192,192,0.1);
  color: var(--zhujian-huang);
}

.ranking-list tr:hover td {
  background: rgba(192,192,192,0.05);
}

.ranking-list .rank-num {
  color: var(--gold-accent);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.3rem;
}

.ranking-list .rank-amount {
  color: var(--yueguang-bai);
  font-weight: 700;
}

/* --- 面包屑导航 --- */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--jianqi-yin);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  color: var(--zhujian-huang);
  margin: 0 8px;
  opacity: 0.5;
}

/* --- 内页Hero --- */
.inner-hero {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inner-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.inner-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,26,46,0.4), rgba(26,26,46,0.85));
  z-index: 2;
}

.inner-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 20px;
}

.inner-hero .hero-content h1 {
  font-size: 3rem;
  text-shadow: 0 0 20px rgba(192,192,192,0.5);
}

/* --- 内容区域 --- */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

.content-area h2 {
  border-left: 4px solid var(--xuese-hong);
  padding-left: 15px;
  margin: 35px 0 20px;
}

.content-area h3 {
  color: var(--jianqi-yin-light);
  margin: 25px 0 15px;
}

.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
  border: 1px solid rgba(192,192,192,0.15);
}

/* --- FAQ模块 --- */
.faq-item {
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  background: rgba(42,42,78,0.6);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.2rem;
  color: var(--jianqi-yin);
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(42,42,78,0.9);
}

.faq-question::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 500px;
}

/* --- 页脚 --- */
.jianghu-footer {
  background: linear-gradient(180deg, var(--xuantie-hei), var(--xuantie-hei-dark));
  border-top: 2px solid var(--xuese-hong);
  padding: 50px 0 30px;
  margin-top: 50px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--jianqi-yin);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(192,192,192,0.2);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--zhujian-huang);
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--jianqi-yin);
}

.footer-col p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(192,192,192,0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.6;
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid rgba(192,192,192,0.3);
  border-radius: 4px;
  font-size: 13px;
  color: var(--jianqi-yin);
  opacity: 0.7;
}

.age-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--xuese-hong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.2rem;
  color: var(--xuese-hong);
  font-weight: 700;
}

/* --- 社交图标 --- */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(192,192,192,0.3);
  border-radius: 50%;
  color: var(--jianqi-yin);
  font-size: 14px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--xuese-hong);
  border-color: var(--xuese-hong);
}

/* --- 加载动画 --- */
.sword-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--xuantie-hei);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.sword-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.sword-loader svg {
  width: 80px;
  height: 80px;
  animation: swordGlow 1.5s ease-in-out infinite;
}

@keyframes swordGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(192,192,192,0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(192,192,192,0.8)); transform: scale(1.1); }
}

/* --- 干扰标签区块 --- */
.jammer-block {
  opacity: 0.01;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -9999px;
}

/* --- 内页攻略卡片 --- */
.strategy-card {
  background: linear-gradient(135deg, rgba(139,0,0,0.15), rgba(42,42,78,0.5));
  border: 1px solid rgba(192,192,192,0.2);
  border-left: 4px solid var(--xuese-hong);
  border-radius: 4px;
  padding: 25px;
  margin: 25px 0;
}

.strategy-card h4 {
  color: var(--gold-accent);
}

/* --- 时间线 --- */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--xuese-hong), var(--jianqi-yin), var(--xuese-hong));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--xuese-hong);
  border: 2px solid var(--jianqi-yin);
  border-radius: 50%;
}

.timeline-year {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.3rem;
  color: var(--gold-accent);
  margin-bottom: 5px;
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
  .gates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 2.2rem; }
  .hero-section .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }

  .nav-toggle {
    display: flex;
  }

  .jianghu-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--xuantie-hei-dark);
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 2px solid var(--xuese-hong);
  }

  .jianghu-nav .nav-links.active {
    display: flex;
  }

  .jianghu-nav .nav-links li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(192,192,192,0.1);
  }

  .jianghu-nav .nav-inner {
    flex-wrap: wrap;
    position: relative;
  }

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

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

  .hero-section {
    min-height: 50vh;
  }

  .hero-section .hero-content h1 {
    font-size: 2rem;
  }

  .hero-section .hero-content .hero-slogan {
    font-size: 1.2rem;
  }

  .bamboo-section {
    padding: 25px 15px;
    margin: 20px 0;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }

  p { font-size: 14px; }

  .inner-hero {
    min-height: 35vh;
  }

  .inner-hero .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-content h1 {
    font-size: 1.6rem;
  }
  .cta-btn {
    padding: 10px 25px;
    font-size: 1.1rem;
  }
}

/* --- 辅助类 --- */
.text-center { text-align: center; }
.text-silver { color: var(--jianqi-yin); }
.text-red { color: var(--xuese-hong); }
.text-gold { color: var(--gold-accent); }
.text-white { color: var(--yueguang-bai); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* --- 图片响应式 --- */
img {
  max-width: 100%;
  height: auto;
}

/* --- 选择器样式 --- */
::selection {
  background: var(--xuese-hong);
  color: var(--yueguang-bai);
}

/* --- 滚动条样式 --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--xuantie-hei-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--xuese-hong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--xuese-hong-light);
}
