/* ============================================
   小马拉大车 原创样式表 - 阴阳师风格
   配色：深墨黑 #0D0D1A / 朱砂红 #C41E3A / 金箔 #D4A853 / 月白 #F0EDE5 / 靛蓝 #2D3A6E
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --ink-black: #0D0D1A;
  --cinnabar: #C41E3A;
  --gold-leaf: #D4A853;
  --moon-white: #F0EDE5;
  --indigo: #2D3A6E;
  --deep-purple: #1A1033;
  --sakura-pink: #E8A0BF;
  --spirit-blue: #4A7FB5;
  --shadow-dark: rgba(13,13,26,0.85);
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--ink-black);
  color: var(--moon-white);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--gold-leaf); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--sakura-pink); text-shadow: 0 0 8px rgba(232,160,191,0.5); }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  color: var(--gold-leaf);
  line-height: 1.4;
}

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

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

/* === 顶部导航 === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(13,13,26,0.98) 0%, rgba(26,16,51,0.95) 100%);
  border-bottom: 1px solid rgba(212,168,83,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 42px; width: auto; }
.logo-area .brand-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-leaf) 0%, #F5D78E 50%, var(--gold-leaf) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 4px; font-size: 0.9rem;
  color: var(--moon-white); position: relative; transition: all 0.3s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold-leaf);
  background: rgba(212,168,83,0.1);
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold-leaf); transition: width 0.3s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }

.nav-toggle { display: none; background: none; border: none; color: var(--gold-leaf); font-size: 1.5rem; cursor: pointer; }

/* === 搜索框 === */
.search-bar {
  background: rgba(26,16,51,0.9);
  border-bottom: 1px solid rgba(212,168,83,0.15);
  padding: 12px 0; margin-top: 68px;
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
  display: flex; width: 100%; max-width: 580px;
  border: 1px solid rgba(212,168,83,0.4); border-radius: 30px; overflow: hidden;
  background: rgba(13,13,26,0.6);
}
.search-box input {
  flex: 1; padding: 10px 20px; background: transparent; border: none;
  color: var(--moon-white); font-size: 0.95rem; outline: none;
}
.search-box input::placeholder { color: rgba(240,237,229,0.4); }
.search-box button {
  padding: 10px 24px; background: linear-gradient(135deg, var(--cinnabar), #A01830);
  border: none; color: var(--moon-white); cursor: pointer; font-size: 0.9rem;
  transition: all 0.3s;
}
.search-box button:hover { background: linear-gradient(135deg, #D42A4A, var(--cinnabar)); }

/* === Banner === */
.hero-banner {
  position: relative; min-height: 520px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,26,0.4) 0%, rgba(13,13,26,0.7) 60%, var(--ink-black) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 40px 20px;
}
.hero-content h1 {
  font-size: 2.8rem; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(196,30,58,0.5), 0 0 40px rgba(212,168,83,0.3);
}
.hero-content .subtitle {
  font-size: 1.15rem; color: rgba(240,237,229,0.85);
  margin-bottom: 24px; line-height: 1.8;
}
.hero-content .cta-btn {
  display: inline-block; padding: 12px 36px;
  background: linear-gradient(135deg, var(--cinnabar), #8B0020);
  color: var(--moon-white); border-radius: 30px; font-size: 1rem;
  border: 1px solid rgba(212,168,83,0.4);
  box-shadow: 0 4px 20px rgba(196,30,58,0.4);
  transition: all 0.3s;
}
.hero-content .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.6);
}

/* === 通用板块 === */
.section { padding: 60px 0; }
.section-alt { background: linear-gradient(180deg, rgba(26,16,51,0.5) 0%, rgba(13,13,26,0.8) 100%); }

.section-header {
  text-align: center; margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem; margin-bottom: 10px;
  position: relative; display: inline-block;
}
.section-header h2::before, .section-header h2::after {
  content: '◆'; color: var(--cinnabar); font-size: 0.6em;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.section-header h2::before { left: -30px; }
.section-header h2::after { right: -30px; }
.section-header p { color: rgba(240,237,229,0.6); font-size: 0.95rem; }

/* === 视频卡片网格 === */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.video-card {
  background: rgba(26,16,51,0.6);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 12px; overflow: hidden;
  transition: all 0.4s ease; cursor: pointer;
  position: relative;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,168,83,0.5);
  box-shadow: 0 12px 40px rgba(196,30,58,0.2), 0 0 20px rgba(212,168,83,0.1);
}
.video-card .thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-card .thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s;
}
.video-card:hover .thumb img { transform: scale(1.08); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(196,30,58,0.85); border: 2px solid rgba(212,168,83,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(196,30,58,0.5);
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--moon-white);
  margin-left: 3px;
}
.video-card .card-body { padding: 16px; }
.video-card .card-body h3 {
  font-size: 1rem; margin-bottom: 8px; color: var(--moon-white);
  font-family: 'Noto Sans SC', sans-serif; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card .meta {
  display: flex; gap: 12px; font-size: 0.8rem; color: rgba(240,237,229,0.5);
}
.video-card .tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.75rem;
  background: rgba(196,30,58,0.2); color: var(--cinnabar); margin-top: 8px;
  border: 1px solid rgba(196,30,58,0.3);
}

/* === 栏目模块 === */
.module-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.module-card {
  background: linear-gradient(135deg, rgba(45,58,110,0.3) 0%, rgba(26,16,51,0.5) 100%);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 10px; padding: 28px 20px; text-align: center;
  transition: all 0.4s;
}
.module-card:hover {
  border-color: var(--gold-leaf);
  box-shadow: 0 0 30px rgba(212,168,83,0.15);
  transform: translateY(-4px);
}
.module-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.module-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.module-card p { font-size: 0.85rem; color: rgba(240,237,229,0.6); }

/* === 专家卡片 === */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: rgba(26,16,51,0.5);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 12px; padding: 24px; text-align: center;
  transition: all 0.4s;
}
.expert-card:hover {
  border-color: var(--gold-leaf);
  box-shadow: 0 8px 30px rgba(212,168,83,0.15);
}
.expert-card img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(212,168,83,0.4); margin-bottom: 14px;
}
.expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .role { font-size: 0.85rem; color: var(--cinnabar); margin-bottom: 10px; }
.expert-card p { font-size: 0.82rem; color: rgba(240,237,229,0.6); }
.expert-card .btn-sm {
  display: inline-block; margin-top: 12px; padding: 6px 18px;
  border: 1px solid var(--gold-leaf); border-radius: 20px;
  color: var(--gold-leaf); font-size: 0.82rem; transition: all 0.3s;
}
.expert-card .btn-sm:hover {
  background: var(--gold-leaf); color: var(--ink-black);
}

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 8px; margin-bottom: 12px; overflow: hidden;
  background: rgba(26,16,51,0.4);
}
.faq-question {
  padding: 16px 20px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 500; transition: background 0.3s;
}
.faq-question:hover { background: rgba(212,168,83,0.08); }
.faq-question .arrow { color: var(--gold-leaf); transition: transform 0.3s; font-size: 0.9rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 20px; color: rgba(240,237,229,0.7); font-size: 0.9rem;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* === 用户评论 === */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: rgba(26,16,51,0.5);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 10px; padding: 24px;
}
.review-card .stars { color: var(--gold-leaf); font-size: 0.9rem; margin-bottom: 10px; }
.review-card .text { font-size: 0.9rem; color: rgba(240,237,229,0.75); margin-bottom: 12px; font-style: italic; }
.review-card .author { font-size: 0.82rem; color: var(--gold-leaf); }

/* === 品牌墙 === */
.brand-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
  padding: 20px 0;
}
.brand-wall span {
  padding: 12px 24px;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 8px; font-size: 0.95rem;
  color: rgba(240,237,229,0.6);
  background: rgba(26,16,51,0.4);
}

/* === 标签云 === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
  border: 1px solid rgba(212,168,83,0.25);
  color: rgba(240,237,229,0.7);
  transition: all 0.3s;
}
.tag-cloud a:hover {
  border-color: var(--cinnabar); color: var(--cinnabar);
  background: rgba(196,30,58,0.1);
}

/* === 页脚 === */
.site-footer {
  background: linear-gradient(180deg, var(--ink-black) 0%, #060610 100%);
  border-top: 1px solid rgba(212,168,83,0.2);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem; margin-bottom: 16px; color: var(--gold-leaf);
  padding-bottom: 8px; border-bottom: 1px solid rgba(212,168,83,0.2);
}
.footer-col p, .footer-col a { font-size: 0.85rem; color: rgba(240,237,229,0.6); }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-leaf); }
.footer-col img { max-width: 120px; border-radius: 6px; margin-top: 8px; }

.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(212,168,83,0.1);
  font-size: 0.82rem; color: rgba(240,237,229,0.4);
}
.footer-links { margin-top: 10px; }
.footer-links a { margin: 0 10px; font-size: 0.8rem; color: rgba(240,237,229,0.5); }
.footer-links a:hover { color: var(--gold-leaf); }

/* === 面包屑 === */
.breadcrumb {
  padding: 14px 0; font-size: 0.85rem; color: rgba(240,237,229,0.5);
  margin-top: 68px;
}
.breadcrumb a { color: var(--gold-leaf); }
.breadcrumb span { margin: 0 6px; }

/* === 内页Hero === */
.page-hero {
  padding: 80px 0 40px; text-align: center;
  background: linear-gradient(180deg, rgba(45,58,110,0.2) 0%, transparent 100%);
  margin-top: 68px;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: rgba(240,237,229,0.6); max-width: 600px; margin: 0 auto; }

/* === 内容区 === */
.content-area {
  padding: 40px 0;
}
.content-area h2 { font-size: 1.6rem; margin: 30px 0 16px; }
.content-area h3 { font-size: 1.3rem; margin: 24px 0 12px; color: var(--sakura-pink); }
.content-area p { margin-bottom: 16px; color: rgba(240,237,229,0.8); }

/* === 联系表单 === */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--gold-leaf); font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(26,16,51,0.6);
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 6px; color: var(--moon-white);
  font-size: 0.95rem; outline: none; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-leaf); }
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn {
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--cinnabar), #8B0020);
  border: 1px solid rgba(212,168,83,0.3);
  color: var(--moon-white); border-radius: 6px; cursor: pointer;
  font-size: 1rem; transition: all 0.3s;
}
.submit-btn:hover { box-shadow: 0 4px 20px rgba(196,30,58,0.4); }

/* === 社交分享 === */
.share-bar { display: flex; gap: 12px; justify-content: center; padding: 20px 0; }
.share-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px; font-size: 0.85rem;
  border: 1px solid rgba(212,168,83,0.3); color: var(--moon-white);
}
.share-bar a:hover { background: rgba(212,168,83,0.1); }

/* === 回到顶部 === */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cinnabar), #8B0020);
  border: 1px solid rgba(212,168,83,0.4);
  color: var(--moon-white); font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(196,30,58,0.4);
}
.back-to-top:hover { transform: translateY(-3px); }

/* === 视频弹窗 === */
.video-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  width: 90%; max-width: 800px; background: var(--ink-black);
  border: 1px solid rgba(212,168,83,0.3); border-radius: 12px;
  overflow: hidden; position: relative;
}
.video-modal-inner .close-modal {
  position: absolute; top: 10px; right: 14px; z-index: 10;
  background: rgba(196,30,58,0.8); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem;
}
.video-modal-inner video { width: 100%; display: block; }
.video-modal-inner .modal-info { padding: 16px; }
.video-modal-inner .modal-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.video-modal-inner .modal-info p { font-size: 0.85rem; color: rgba(240,237,229,0.6); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: rgba(13,13,26,0.98);
    border-bottom: 1px solid rgba(212,168,83,0.3); padding: 10px 0;
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 20px; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-banner { min-height: 380px; }
  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header h2::before, .section-header h2::after { display: none; }
}

/* === 懒加载 === */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* === 动画 === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
