/* ============================================
   九色鹿 (Nine-Colored Deer) - 主样式表
   设计风格：敦煌壁画/神话传说
   CSS前缀：ncd-
   ============================================ */

/* === Google Fonts 引入 === */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* === CSS变量定义 === */
:root {
  --ncd-primary: #a43c34;
  --ncd-secondary: #f2dcb3;
  --ncd-accent: #5a7a78;
  --ncd-text: #3a3a3a;
  --ncd-link: #c87e4f;
  --ncd-dark: #1a1209;
  --ncd-gold: #d4a853;
  --ncd-cream: #faf3e6;
  --ncd-shadow: rgba(26, 18, 9, 0.3);
  --ncd-font-title: "Ma Shan Zheng", cursive;
  --ncd-font-body: "Noto Serif SC", serif;
}

/* === 干扰标签隐藏 === */
.myth-jammer-block {
  display: none;
}

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

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

body {
  font-family: var(--ncd-font-body);
  color: var(--ncd-text);
  background-color: var(--ncd-cream);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--ncd-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ncd-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ncd-font-title);
  color: var(--ncd-primary);
  line-height: 1.4;
}

/* === 导航栏 === */
#ncd-header {
  background-color: var(--ncd-secondary);
  padding: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 3px solid var(--ncd-primary);
  position: relative;
}

.ncd-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.ncd-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ncd-logo-wrap img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.ncd-logo-text {
  font-family: var(--ncd-font-title);
  font-size: 1.6rem;
  color: var(--ncd-primary);
}

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

.ncd-nav-links li {
  position: relative;
}

.ncd-nav-links li a {
  display: block;
  padding: 12px 20px;
  color: var(--ncd-text);
  font-family: var(--ncd-font-body);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.ncd-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ncd-gold), var(--ncd-primary));
  transition: width 0.4s ease, left 0.4s ease;
}

.ncd-nav-links li a:hover::after {
  width: 80%;
  left: 10%;
}

.ncd-nav-links li a:hover {
  color: var(--ncd-primary);
}

/* 汉堡菜单 */
.ncd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.ncd-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--ncd-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 移动端侧边菜单 */
.ncd-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(242, 220, 179, 0.97), rgba(250, 243, 230, 0.97));
  z-index: 999;
  padding: 60px 24px 24px;
  transition: right 0.35s ease;
  box-shadow: -4px 0 20px var(--ncd-shadow);
  overflow-y: auto;
}

.ncd-mobile-menu.ncd-active {
  right: 0;
}

.ncd-mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--ncd-text);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(164, 60, 52, 0.15);
  font-family: var(--ncd-font-body);
}

.ncd-mobile-menu a:hover {
  color: var(--ncd-primary);
}

.ncd-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ncd-text);
  background: none;
  border: none;
  font-family: var(--ncd-font-body);
}

.ncd-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.ncd-overlay.ncd-active {
  display: block;
}

/* === Hero区域 === */
#ncd-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.ncd-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 18, 9, 0.3), rgba(26, 18, 9, 0.6));
  z-index: 1;
}

.ncd-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ncd-secondary);
  padding: 40px 24px;
}

.ncd-hero-content h1 {
  font-size: 3rem;
  color: var(--ncd-secondary);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}

.ncd-hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 24px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.ncd-hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--ncd-primary), var(--ncd-link));
  color: var(--ncd-secondary);
  font-family: var(--ncd-font-title);
  font-size: 1.2rem;
  border-radius: 4px;
  border: 2px solid var(--ncd-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ncd-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 60, 52, 0.4);
  color: #fff;
}

/* === 通用模块样式 === */
.ncd-section {
  padding: 60px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.ncd-section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
}

.ncd-section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--ncd-accent);
  margin-bottom: 40px;
  font-style: italic;
}

.ncd-section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--ncd-primary), var(--ncd-gold));
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* === 全宽背景模块 === */
.ncd-fullwidth-section {
  width: 100%;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

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

.ncd-fullwidth-section .ncd-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 18, 9, 0.6);
  z-index: 1;
}

.ncd-fullwidth-section .ncd-section-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}

.ncd-fullwidth-section .ncd-section-title,
.ncd-fullwidth-section .ncd-section-subtitle {
  color: var(--ncd-secondary);
}

/* === 卡片网格 === */
.ncd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ncd-card {
  background: var(--ncd-cream);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--ncd-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(164, 60, 52, 0.1);
}

.ncd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(164, 60, 52, 0.25);
}

.ncd-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.ncd-card-body {
  padding: 16px;
}

.ncd-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ncd-card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.ncd-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ncd-primary);
  color: var(--ncd-secondary);
  font-size: 0.75rem;
  border-radius: 3px;
  margin-top: 8px;
}

/* === 封神榜 双阵营 === */
.ncd-faction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ncd-faction {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.ncd-faction-chan {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(164, 60, 52, 0.1));
  border: 2px solid var(--ncd-gold);
}

.ncd-faction-jie {
  background: linear-gradient(135deg, rgba(90, 60, 120, 0.15), rgba(60, 40, 80, 0.1));
  border: 2px solid #6b4c8a;
}

.ncd-faction h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.ncd-faction-jie h3 {
  color: #6b4c8a;
}

.ncd-faction-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === VIP会员 === */
.ncd-vip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ncd-vip-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: var(--ncd-cream);
  border: 2px solid rgba(164, 60, 52, 0.15);
  box-shadow: 0 4px 16px var(--ncd-shadow);
  transition: transform 0.3s ease;
}

.ncd-vip-card:hover {
  transform: translateY(-4px);
}

.ncd-vip-card.ncd-vip-gold {
  border-color: var(--ncd-gold);
  background: linear-gradient(135deg, #faf3e6, #f5e6c8);
}

.ncd-vip-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.ncd-vip-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.ncd-vip-card .ncd-vip-price {
  font-size: 1.8rem;
  color: var(--ncd-primary);
  font-family: var(--ncd-font-title);
  margin-bottom: 16px;
}

.ncd-vip-card ul {
  list-style: none;
  text-align: left;
  padding: 0 10px;
}

.ncd-vip-card ul li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(164, 60, 52, 0.1);
  font-size: 0.9rem;
}

.ncd-vip-card ul li::before {
  content: '✦ ';
  color: var(--ncd-gold);
}

.ncd-vip-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  background: var(--ncd-primary);
  color: var(--ncd-secondary);
  border-radius: 4px;
  font-family: var(--ncd-font-title);
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.ncd-vip-btn:hover {
  background: var(--ncd-link);
  color: #fff;
}

/* === 神器商店 === */
.ncd-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ncd-shop-item {
  background: var(--ncd-cream);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(164, 60, 52, 0.1);
  box-shadow: 0 2px 12px var(--ncd-shadow);
  transition: transform 0.3s ease;
}

.ncd-shop-item:hover {
  transform: translateY(-4px);
}

.ncd-shop-item-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.ncd-shop-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ncd-shop-price {
  color: var(--ncd-gold);
  font-family: var(--ncd-font-title);
  font-size: 1.2rem;
}

/* === 投稿通道 === */
.ncd-submit-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--ncd-cream);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid rgba(164, 60, 52, 0.15);
  box-shadow: 0 4px 20px var(--ncd-shadow);
}

.ncd-form-group {
  margin-bottom: 20px;
}

.ncd-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ncd-text);
}

.ncd-form-group input,
.ncd-form-group textarea,
.ncd-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(164, 60, 52, 0.2);
  border-radius: 6px;
  font-family: var(--ncd-font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.ncd-form-group input:focus,
.ncd-form-group textarea:focus {
  outline: none;
  border-color: var(--ncd-primary);
}

.ncd-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.ncd-submit-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, var(--ncd-primary), var(--ncd-link));
  color: var(--ncd-secondary);
  border: none;
  border-radius: 6px;
  font-family: var(--ncd-font-title);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ncd-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(164, 60, 52, 0.3);
}

/* === APP下载 === */
.ncd-app-section {
  text-align: center;
}

.ncd-app-mockup {
  max-width: 320px;
  margin: 0 auto 30px;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.ncd-app-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ncd-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ncd-dark);
  color: var(--ncd-secondary);
  border-radius: 8px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.ncd-app-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.ncd-app-btn-icon {
  font-size: 1.5rem;
}

/* === 宗门规矩 === */
.ncd-rules-list {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(250, 243, 230, 0.95);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--ncd-gold);
}

.ncd-rules-list ol {
  padding-left: 24px;
}

.ncd-rules-list ol li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(164, 60, 52, 0.15);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* === 页脚 === */
#ncd-footer {
  background: var(--ncd-dark);
  color: var(--ncd-secondary);
  padding: 50px 24px 20px;
}

.ncd-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(242, 220, 179, 0.15);
}

.ncd-footer-col h4 {
  font-family: var(--ncd-font-title);
  font-size: 1.2rem;
  color: var(--ncd-gold);
  margin-bottom: 16px;
}

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

.ncd-footer-col ul li {
  padding: 4px 0;
}

.ncd-footer-col ul li a {
  color: rgba(242, 220, 179, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.ncd-footer-col ul li a:hover {
  color: var(--ncd-gold);
}

.ncd-footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.ncd-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(242, 220, 179, 0.1);
  color: var(--ncd-secondary);
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.ncd-footer-social a:hover {
  background: var(--ncd-primary);
}

.ncd-footer-bottom {
  max-width: 1440px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(242, 220, 179, 0.5);
  line-height: 1.8;
}

.ncd-footer-bottom .ncd-cert {
  margin-bottom: 8px;
  color: rgba(242, 220, 179, 0.6);
}

.ncd-footer-bottom .ncd-age-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ncd-primary);
  color: var(--ncd-secondary);
  border-radius: 3px;
  font-weight: 700;
  margin-right: 6px;
}

/* === 内页样式 === */
.ncd-page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ncd-page-header .ncd-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ncd-page-header .ncd-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 18, 9, 0.55);
}

.ncd-page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ncd-secondary);
  padding: 40px 24px;
}

.ncd-page-header-content h1 {
  font-size: 2.6rem;
  color: var(--ncd-secondary);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.ncd-page-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 24px;
}

.ncd-page-body h2 {
  font-size: 1.6rem;
  margin: 30px 0 12px;
}

.ncd-page-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.ncd-page-body img {
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 16px var(--ncd-shadow);
}

.ncd-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.ncd-content-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin: 0;
}

/* === APP下载页 === */
.ncd-app-page-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ncd-dark);
}

.ncd-app-page-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ncd-secondary);
  padding: 60px 24px;
}

.ncd-app-page-content h1 {
  font-size: 2.8rem;
  color: var(--ncd-gold);
  margin-bottom: 12px;
}

.ncd-app-page-content .ncd-app-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(242, 220, 179, 0.8);
}

.ncd-app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
}

.ncd-app-feature {
  text-align: center;
  padding: 24px;
}

.ncd-app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.ncd-app-feature h3 {
  color: var(--ncd-gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ncd-app-feature p {
  font-size: 0.9rem;
  color: rgba(242, 220, 179, 0.7);
}

/* === 面包屑 === */
.ncd-breadcrumb {
  padding: 12px 24px;
  max-width: 1440px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #999;
}

.ncd-breadcrumb a {
  color: var(--ncd-link);
}

.ncd-breadcrumb span {
  margin: 0 6px;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
  .ncd-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ncd-faction-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ncd-nav-links {
    display: none;
  }
  .ncd-hamburger {
    display: flex;
  }
  .ncd-mobile-menu {
    display: block;
  }
  .ncd-hero-content h1 {
    font-size: 2rem;
  }
  .ncd-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ncd-vip-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ncd-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ncd-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ncd-section {
    padding: 40px 16px;
  }
  .ncd-section-title {
    font-size: 1.8rem;
  }
  .ncd-faction-cards {
    grid-template-columns: 1fr;
  }
  .ncd-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ncd-app-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .ncd-card-grid {
    grid-template-columns: 1fr;
  }
  .ncd-shop-grid {
    grid-template-columns: 1fr;
  }
  .ncd-hero-content h1 {
    font-size: 1.6rem;
  }
}

/* === 金色粉尘动画 === */
@keyframes ncd-gold-dust {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1);
  }
}

/* === 淡入动画 === */
@keyframes ncd-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ncd-animate-in {
  animation: ncd-fade-in 0.6s ease forwards;
}

/* === 滚动显示 === */
.ncd-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ncd-reveal.ncd-visible {
  opacity: 1;
  transform: translateY(0);
}
