/* ============================================================
   小马拉大车 (TanHua) - 主样式文件
   品牌色：深红 #B5121B | 金色 #D4A017 | 深色背景 #0D0D0D
   ============================================================ */

:root {
  --brand-red: #B5121B;
  --brand-gold: #D4A017;
  --brand-dark: #0D0D0D;
  --brand-dark2: #1A1A1A;
  --brand-dark3: #242424;
  --brand-gray: #888;
  --brand-light: #F5F0E8;
  --brand-white: #FFFFFF;
  --text-main: #E8E0D0;
  --text-sub: #B0A898;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--brand-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--brand-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-red); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-white);
}

/* ---- 容器 ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  background: rgba(13,13,13,0.97);
  border-bottom: 2px solid var(--brand-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.site-logo .brand-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(212,160,23,0.4);
}

.site-logo .brand-sub {
  font-size: 0.7rem;
  color: var(--text-sub);
  display: block;
  letter-spacing: 1px;
}

/* 主导航 */
.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-gold);
  background: rgba(212,160,23,0.1);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- 搜索框 ---- */
.search-bar {
  background: var(--brand-dark2);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 10px 20px;
}

.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--brand-dark3);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 24px;
  padding: 6px 16px;
  gap: 8px;
  max-width: 600px;
}

.search-input-wrap svg { color: var(--brand-gray); flex-shrink: 0; }

.search-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100%;
  font-family: inherit;
}

.search-input-wrap input::placeholder { color: var(--brand-gray); }

.search-btn {
  background: var(--brand-red);
  color: var(--brand-white);
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.search-btn:hover { background: #8B0D14; }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--brand-gold); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   Hero Banner
   ============================================================ */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0D0D0D 0%, #1A0505 50%, #0D0D0D 100%);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner-hero.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.3) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-tag {
  display: inline-block;
  background: var(--brand-red);
  color: var(--brand-white);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--brand-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content h1 em {
  color: var(--brand-gold);
  font-style: normal;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--brand-red);
  color: var(--brand-white);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: #8B0D14; color: var(--brand-white); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover { background: var(--brand-gold); color: var(--brand-dark); }

/* ============================================================
   区块通用样式
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--brand-dark2); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .section-tag {
  display: inline-block;
  color: var(--brand-gold);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-header h2 em {
  color: var(--brand-gold);
  font-style: normal;
}

.section-header p {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   视频卡片
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212,160,23,0.3);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-play-btn { opacity: 1; }

.video-play-btn .play-icon {
  width: 56px;
  height: 56px;
  background: rgba(181,18,27,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.video-card:hover .play-icon { transform: scale(1); }

.play-icon svg { width: 22px; height: 22px; fill: white; margin-left: 3px; }

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
}

.video-info { padding: 14px; }

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-white);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   特色模块卡片
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--brand-dark3);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-3px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-red), #8B0D14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-sub); }

/* ============================================================
   专家展示
   ============================================================ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.expert-card {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.expert-photo {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.expert-photo img { width: 100%; height: 100%; object-fit: cover; }

.expert-info { padding: 16px; }
.expert-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.expert-title { font-size: 0.8rem; color: var(--brand-gold); margin-bottom: 8px; }
.expert-desc { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 12px; }

.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  background: rgba(181,18,27,0.15);
  border: 1px solid rgba(181,18,27,0.4);
  color: #E07070;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.expert-btns { display: flex; gap: 8px; }
.btn-sm {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  font-family: inherit;
}
.btn-sm:hover { background: var(--brand-gold); color: var(--brand-dark); }

/* ============================================================
   合作品牌Logo墙
   ============================================================ */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.partner-item {
  background: var(--brand-dark3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-sub);
  transition: var(--transition);
  text-align: center;
  min-width: 120px;
}

.partner-item:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ============================================================
   用户评价
   ============================================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 4rem;
  color: rgba(212,160,23,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-stars { color: var(--brand-gold); font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 14px; line-height: 1.6; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.review-name { font-size: 0.9rem; font-weight: 600; }
.review-date { font-size: 0.75rem; color: var(--text-sub); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--brand-white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover { color: var(--brand-gold); }

.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-gold);
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 18px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   联系/社区入口
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-card:hover { border-color: var(--brand-gold); }

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(181,18,27,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { font-size: 0.85rem; color: var(--text-sub); }

/* ============================================================
   社交分享
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-label { font-size: 0.9rem; color: var(--text-sub); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.share-btn:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ============================================================
   QR码区域
   ============================================================ */
.qr-section {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-item { text-align: center; }

.qr-item img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 2px solid rgba(212,160,23,0.3);
  margin: 0 auto 10px;
}

.qr-item p { font-size: 0.85rem; color: var(--text-sub); }

/* ============================================================
   统计数字
   ============================================================ */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--brand-dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-gold);
  display: block;
}

.stat-label { font-size: 0.85rem; color: var(--text-sub); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: #080808;
  border-top: 2px solid var(--brand-red);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-gold);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--brand-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,160,23,0.3);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-sub); }
.footer-col ul li a:hover { color: var(--brand-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.footer-bottom a { color: var(--text-sub); }
.footer-bottom a:hover { color: var(--brand-gold); }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  background: linear-gradient(135deg, #1A0505 0%, #0D0D0D 100%);
  border-bottom: 1px solid rgba(181,18,27,0.3);
  padding: 40px 0;
}

.inner-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.inner-banner p { color: var(--text-sub); font-size: 0.95rem; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: white;
}

/* ============================================================
   弹幕样式
   ============================================================ */
.danmu-wrap {
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius);
  padding: 12px 16px;
  height: 80px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}

.danmu-item {
  position: absolute;
  white-space: nowrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  animation: danmuMove 8s linear infinite;
}

@keyframes danmuMove {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ============================================================
   How-To 步骤
   ============================================================ */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step-counter;
}

.step-item {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  counter-increment: step-counter;
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--brand-red);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.step-item p { font-size: 0.85rem; color: var(--text-sub); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.98);
    padding: 16px;
    border-bottom: 2px solid var(--brand-red);
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; width: 100%; }

  .nav-toggle { display: flex; }

  .header-inner { position: relative; }

  .hero-banner { min-height: 380px; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   懒加载占位
   ============================================================ */
img[loading="lazy"] {
  background: var(--brand-dark3);
}

/* ============================================================
   滚动条美化
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb { background: var(--brand-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-gold); }

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ============================================================
   内页通用
   ============================================================ */
.page-intro {
  background: var(--brand-dark2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  border-left: 4px solid var(--brand-red);
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.8;
}
