/* ============================================
   色虎 - 原创样式表
   品牌色系：品牌粉红 #E8456B / 深紫 #2D1B69 / 暖橙 #FF8C42
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0F0A1E;
  color: #F0E6FF;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: #E8456B; text-decoration: none; transition: color .3s; }
a:hover { color: #FF8C42; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: #F0E6FF; }

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(15,10,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,69,107,.15);
  transition: background .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 68px;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo img { height: 40px; width: auto; }
.site-logo span { font-size: 1.25rem; font-weight: 700; color: #E8456B; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem;
  color: #A89BC7; transition: all .3s;
}
.main-nav a:hover, .main-nav a.active { color: #F0E6FF; background: rgba(232,69,107,.15); }
.nav-toggle { display: none; background: none; border: none; color: #F0E6FF; font-size: 1.5rem; cursor: pointer; }

/* --- Search Bar --- */
.search-bar {
  background: rgba(26,18,48,.8); border-bottom: 1px solid rgba(232,69,107,.1);
  padding: 12px 0;
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
  display: flex; max-width: 560px; width: 100%;
  background: rgba(45,27,105,.5); border: 1px solid rgba(232,69,107,.25);
  border-radius: 30px; overflow: hidden;
}
.search-box input {
  flex: 1; padding: 10px 20px; background: transparent; border: none;
  color: #F0E6FF; font-size: .95rem; outline: none;
}
.search-box input::placeholder { color: #6B5B8D; }
.search-box button {
  padding: 10px 24px; background: linear-gradient(135deg, #E8456B, #FF8C42);
  border: none; color: #fff; font-size: .9rem; cursor: pointer; transition: opacity .3s;
}
.search-box button:hover { opacity: .85; }

/* --- Banner / Hero --- */
.hero-banner {
  position: relative; min-height: 520px; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  margin-top: 68px;
}
.hero-banner .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.45);
}
.hero-banner .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,10,30,.3) 0%, rgba(15,10,30,.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 60px 20px; }
.hero-content h1 { font-size: 2.6rem; margin-bottom: 16px; }
.hero-content h1 .brand { color: #E8456B; }
.hero-content p { font-size: 1.1rem; color: #A89BC7; margin-bottom: 28px; }
.hero-btn {
  display: inline-block; padding: 14px 36px; border-radius: 30px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  color: #fff; font-size: 1rem; font-weight: 600; transition: transform .3s, box-shadow .3s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,69,107,.4); color: #fff; }

/* --- Section Common --- */
.section { padding: 70px 0; }
.section-title {
  text-align: center; font-size: 2rem; margin-bottom: 12px;
}
.section-title .brand { color: #E8456B; }
.section-desc {
  text-align: center; color: #A89BC7; font-size: 1rem; margin-bottom: 48px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.section-alt { background: rgba(26,18,48,.5); }

/* --- Video Card Grid --- */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #1A1230; transition: transform .3s, box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(232,69,107,.2); }
.video-card .thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-card .thumb img,
.video-card .thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.video-card:hover .thumb img,
.video-card:hover .thumb video { transform: scale(1.05); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(232,69,107,.9); display: flex; align-items: center; justify-content: center;
  transition: transform .3s; pointer-events: none;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-card .card-body { padding: 16px; }
.video-card .card-title { font-size: 1rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-meta { display: flex; gap: 16px; font-size: .8rem; color: #6B5B8D; }
.video-card .card-meta span { display: flex; align-items: center; gap: 4px; }
.video-card .card-date {
  font-size: .75rem; color: #8B7BA8; margin-top: 6px; margin-bottom: 4px;
}
.video-card .tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem;
  background: rgba(232,69,107,.15); color: #E8456B; margin-top: 8px;
}

/* --- Expert Grid --- */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.expert-card {
  background: #1A1230; border-radius: 12px; overflow: hidden;
  text-align: center; padding-bottom: 24px; transition: transform .3s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card .avatar { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.expert-card h4 { margin: 16px 0 4px; font-size: 1.1rem; }
.expert-card .role { color: #E8456B; font-size: .85rem; margin-bottom: 8px; }
.expert-card p { font-size: .85rem; color: #A89BC7; padding: 0 16px; }
.expert-card .expert-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.expert-card .expert-btns a {
  padding: 6px 16px; border-radius: 20px; font-size: .8rem;
  border: 1px solid rgba(232,69,107,.4); color: #E8456B; transition: all .3s;
}
.expert-card .expert-btns a:hover { background: #E8456B; color: #fff; }

/* --- FAQ Section --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #1A1230; border-radius: 10px; margin-bottom: 12px;
  border: 1px solid rgba(232,69,107,.1); overflow: hidden;
}
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; transition: background .3s;
}
.faq-question:hover { background: rgba(232,69,107,.05); }
.faq-question .arrow { transition: transform .3s; color: #E8456B; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 24px; color: #A89BC7; font-size: .9rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }

/* --- Reviews --- */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: #1A1230; border-radius: 12px; padding: 24px;
  border: 1px solid rgba(232,69,107,.1); transition: transform .3s;
}
.review-card:hover { transform: translateY(-3px); }
.review-card .stars { color: #FF8C42; margin-bottom: 12px; font-size: 1rem; }
.review-card .review-text { font-size: .9rem; color: #A89BC7; margin-bottom: 14px; line-height: 1.7; }
.review-card .reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 700;
}
.reviewer-info .name { font-size: .85rem; font-weight: 600; }
.reviewer-info .date { font-size: .75rem; color: #6B5B8D; }

/* --- Module Cards (AI / Community etc.) --- */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.module-card {
  background: #1A1230; border-radius: 14px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(232,69,107,.15); }
.module-card .module-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.module-card .module-body { padding: 20px; }
.module-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.module-card p { font-size: .9rem; color: #A89BC7; }

/* --- How-To Guide --- */
.howto-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.howto-step {
  text-align: center; padding: 28px 20px;
  background: #1A1230; border-radius: 12px; border: 1px solid rgba(232,69,107,.1);
}
.howto-step .step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
}
.howto-step h4 { margin-bottom: 8px; font-size: 1rem; }
.howto-step p { font-size: .85rem; color: #A89BC7; }

/* --- Contact Info --- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #1A1230; border-radius: 12px; padding: 28px; text-align: center;
  border: 1px solid rgba(232,69,107,.1);
}
.contact-card h4 { color: #E8456B; margin-bottom: 12px; }
.contact-card p { font-size: .9rem; color: #A89BC7; }
.contact-card img { max-width: 180px; margin: 12px auto 0; border-radius: 8px; }

/* --- Share Buttons --- */
.share-bar {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 20px 0;
}
.share-btn {
  padding: 8px 20px; border-radius: 20px; font-size: .85rem;
  border: 1px solid rgba(232,69,107,.3); color: #E8456B; transition: all .3s;
  cursor: pointer; background: transparent;
}
.share-btn:hover { background: #E8456B; color: #fff; border-color: #E8456B; }

/* --- Footer --- */
.site-footer {
  background: #0A0716; border-top: 1px solid rgba(232,69,107,.1);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h5 { color: #E8456B; margin-bottom: 14px; font-size: 1rem; }
.footer-col p, .footer-col a { font-size: .85rem; color: #6B5B8D; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #E8456B; }
.footer-col img { max-width: 140px; border-radius: 6px; margin-top: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo img { height: 32px; }
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: #E8456B; }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(232,69,107,.08);
  font-size: .8rem; color: #4A3D6B;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0; font-size: .85rem; color: #6B5B8D;
  margin-top: 68px;
}
.breadcrumb a { color: #A89BC7; }
.breadcrumb a:hover { color: #E8456B; }
.breadcrumb span { margin: 0 6px; }

/* --- Inner Page Hero --- */
.inner-hero {
  padding: 80px 0 40px; text-align: center; margin-top: 68px;
  background: linear-gradient(180deg, rgba(45,27,105,.3) 0%, rgba(15,10,30,1) 100%);
}
.inner-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.inner-hero p { color: #A89BC7; max-width: 600px; margin: 0 auto; }

/* --- Article Content --- */
.article-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.article-content h2 { font-size: 1.5rem; margin: 32px 0 14px; color: #E8456B; }
.article-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; color: #A89BC7; }
.article-content img { border-radius: 10px; margin: 20px 0; }

/* --- Lazy Load --- */
.lazy { opacity: 0; transition: opacity .6s; }
.lazy.loaded { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .site-logo img { height: 32px; }
  .main-nav { 
    display: none; position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(15,10,30,.98); flex-direction: column;
    padding: 20px; gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-banner { min-height: 400px; margin-top: 56px; }
  .hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .breadcrumb { margin-top: 56px; }
  .inner-hero { margin-top: 56px; padding: 60px 0 30px; }
  .search-box { max-width: 100%; }
}

@media (max-width: 480px) {
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}
