/* ============================================
   成人小说 - 影视传媒公司+传媒社区 原创样式表
   品牌色系：樱花粉红 × 深紫 × 暖橙
   ============================================ */

/* --- CSS变量 --- */
:root {
  --xh-primary: #E8456B;
  --xh-primary-light: #FF6B8A;
  --xh-secondary: #2D1B69;
  --xh-accent: #FF8C42;
  --xh-bg-light: #FFF5F7;
  --xh-bg-dark: #1A0E2E;
  --xh-text: #2C2C2C;
  --xh-text-light: #F8F0FF;
  --xh-gray: #6B7280;
  --xh-border: #E5E7EB;
  --xh-card-shadow: 0 4px 24px rgba(45,27,105,0.08);
  --xh-radius: 12px;
  --xh-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* --- 全局重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
  color: var(--xh-text);
  background: var(--xh-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--xh-primary); text-decoration: none; transition: var(--xh-transition); }
a:hover { color: var(--xh-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 头部导航 --- */
.site-header {
  background: linear-gradient(135deg, var(--xh-secondary) 0%, #3D2A7A 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(26,14,46,0.3);
}
.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: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--xh-primary-light), var(--xh-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.85); padding: 8px 16px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500; transition: var(--xh-transition);
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(232,69,107,0.2); color: #fff;
}
.mobile-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* --- 搜索栏 --- */
.search-bar {
  background: linear-gradient(90deg, var(--xh-secondary), #3D2A7A);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
  display: flex; max-width: 600px; width: 100%;
  background: rgba(255,255,255,0.12); border-radius: 30px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.15);
}
.search-box input {
  flex: 1; border: none; background: transparent; padding: 10px 20px;
  color: #fff; font-size: 0.95rem; outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box button {
  background: var(--xh-primary); border: none; color: #fff;
  padding: 10px 24px; cursor: pointer; font-size: 0.95rem;
  transition: var(--xh-transition);
}
.search-box button:hover { background: var(--xh-primary-light); }

/* --- Hero Banner --- */
.hero-section {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,14,46,0.75) 0%, rgba(232,69,107,0.4) 100%);
}
.hero-content {
  position: relative; z-index: 1; max-width: 1200px;
  margin: 0 auto; padding: 80px 20px; text-align: center; color: #fff;
}
.hero-content h1 {
  font-size: 2.8rem; font-weight: 800; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--xh-primary-light), var(--xh-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.15rem; max-width: 680px; margin: 0 auto 30px;
  opacity: 0.92; line-height: 1.8;
}
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tags span {
  background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; backdrop-filter: blur(4px);
}
.hero-btn {
  display: inline-block; padding: 14px 36px; border-radius: 30px;
  font-size: 1.05rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  box-shadow: 0 4px 20px rgba(232,69,107,0.4);
  transition: var(--xh-transition);
}
.hero-btn:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 30px rgba(232,69,107,0.5);
}

/* --- 通用段落标题 --- */
.section-title {
  text-align: center; margin-bottom: 48px; padding-top: 20px;
}
.section-title h2 {
  font-size: 2rem; font-weight: 700; color: var(--xh-secondary);
  margin-bottom: 12px; position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--xh-primary), var(--xh-accent));
}
.section-title p { color: var(--xh-gray); font-size: 1rem; margin-top: 16px; }

/* --- 段落通用 --- */
.section-padding { padding: 72px 0; }
.section-dark {
  background: linear-gradient(135deg, var(--xh-bg-dark) 0%, #2A1555 100%);
  color: var(--xh-text-light);
}
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: rgba(248,240,255,0.7); }

/* --- 视频卡片网格 --- */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff; border-radius: var(--xh-radius); overflow: hidden;
  box-shadow: var(--xh-card-shadow); transition: var(--xh-transition);
  cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(45,27,105,0.15); }
.video-card .thumb {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.video-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8);
  width: 60px; height: 60px; background: rgba(232,69,107,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--xh-transition);
}
.video-card:hover .play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card .thumb .duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7); color: #fff; padding: 2px 8px;
  border-radius: 4px; font-size: 0.8rem;
}
.video-card .card-body { padding: 16px; }
.video-card .card-body h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card .card-meta {
  display: flex; gap: 12px; color: var(--xh-gray); font-size: 0.82rem;
}
.video-card .card-meta span { display: flex; align-items: center; gap: 4px; }
.video-card .card-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-card .card-tags span {
  background: var(--xh-bg-light); color: var(--xh-primary);
  padding: 2px 10px; border-radius: 12px; font-size: 0.75rem;
}

/* --- 功能模块网格 --- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff; border-radius: var(--xh-radius); padding: 32px 24px;
  text-align: center; box-shadow: var(--xh-card-shadow);
  transition: var(--xh-transition); border: 1px solid transparent;
}
.feature-card:hover {
  border-color: var(--xh-primary); transform: translateY(-4px);
}
.section-dark .feature-card {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-dark .feature-card:hover {
  border-color: var(--xh-primary);
  background: rgba(255,255,255,0.1);
}
.section-dark .feature-card h3 { color: #fff; }
.section-dark .feature-card p { color: rgba(248,240,255,0.7); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(232,69,107,0.1), rgba(255,140,66,0.1));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--xh-secondary); }
.feature-card p { color: var(--xh-gray); font-size: 0.9rem; line-height: 1.6; }

/* --- 专家展示 --- */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.expert-card {
  background: #fff; border-radius: var(--xh-radius); overflow: hidden;
  box-shadow: var(--xh-card-shadow); text-align: center;
  transition: var(--xh-transition);
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card .avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 28px auto 16px;
  overflow: hidden; border: 3px solid var(--xh-primary);
}
.expert-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--xh-secondary); }
.expert-card .role { color: var(--xh-primary); font-size: 0.85rem; margin: 4px 0 12px; }
.expert-card p { color: var(--xh-gray); font-size: 0.88rem; padding: 0 20px 20px; line-height: 1.6; }
.expert-card .expert-btns { display: flex; gap: 8px; padding: 0 20px 24px; justify-content: center; }
.expert-card .expert-btns a {
  padding: 8px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
}
.btn-primary {
  background: var(--xh-primary); color: #fff;
}
.btn-primary:hover { background: var(--xh-primary-light); color: #fff; }
.btn-outline {
  border: 1px solid var(--xh-primary); color: var(--xh-primary);
}
.btn-outline:hover { background: var(--xh-primary); color: #fff; }

/* --- 合作品牌 --- */
.brand-wall {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; align-items: center;
}
.brand-wall .brand-item {
  background: #fff; padding: 16px 28px; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); font-size: 1rem;
  font-weight: 600; color: var(--xh-secondary); transition: var(--xh-transition);
}
.brand-wall .brand-item:hover { box-shadow: 0 4px 20px rgba(232,69,107,0.15); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: var(--xh-radius); margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04); overflow: hidden;
}
.section-dark .faq-item {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.faq-question {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--xh-transition);
}
.faq-question:hover { color: var(--xh-primary); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--xh-primary); transition: var(--xh-transition); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 24px; color: var(--xh-gray); line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.section-dark .faq-answer { color: rgba(248,240,255,0.6); }

/* --- 用户评论 --- */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff; border-radius: var(--xh-radius); padding: 24px;
  box-shadow: var(--xh-card-shadow);
}
.review-card .stars { color: var(--xh-accent); font-size: 1rem; margin-bottom: 12px; }
.review-card blockquote {
  font-size: 0.92rem; color: var(--xh-text); line-height: 1.7;
  margin-bottom: 16px; font-style: italic;
}
.review-card .reviewer {
  display: flex; align-items: center; gap: 10px;
}
.review-card .reviewer .r-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.review-card .reviewer .r-info span { display: block; }
.review-card .reviewer .r-info .r-name { font-weight: 600; font-size: 0.9rem; }
.review-card .reviewer .r-info .r-date { color: var(--xh-gray); font-size: 0.78rem; }

/* --- 联系我们 --- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff; border-radius: var(--xh-radius); padding: 28px;
  box-shadow: var(--xh-card-shadow); text-align: center;
}
.contact-card .icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.contact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.contact-card p { color: var(--xh-gray); font-size: 0.9rem; }

/* --- 社交分享 --- */
.share-bar {
  display: flex; gap: 12px; justify-content: center; padding: 20px 0;
}
.share-bar a {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; transition: var(--xh-transition);
}
.share-bar a:hover { transform: translateY(-3px); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #FB7299; }

/* --- 页脚 --- */
.site-footer {
  background: var(--xh-bg-dark); color: rgba(248,240,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 16px;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--xh-primary);
}
.footer-col p, .footer-col a { color: rgba(248,240,255,0.6); font-size: 0.88rem; line-height: 2; }
.footer-col a:hover { color: var(--xh-primary-light); }
.footer-col .qr-img { width: 120px; border-radius: 8px; margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center; font-size: 0.82rem;
}

/* --- 面包屑 --- */
.breadcrumb {
  padding: 16px 0; font-size: 0.88rem; color: var(--xh-gray);
}
.breadcrumb a { color: var(--xh-primary); }
.breadcrumb span { margin: 0 6px; }

/* --- 内页Banner --- */
.page-banner {
  position: relative; min-height: 280px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.page-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,14,46,0.8), rgba(232,69,107,0.4));
}
.page-banner .container { position: relative; z-index: 1; color: #fff; text-align: center; }
.page-banner h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.page-banner p { font-size: 1.05rem; opacity: 0.9; }

/* --- 内容区 --- */
.content-section { padding: 48px 0; }
.content-section article { max-width: 860px; margin: 0 auto; }
.content-section article h2 { font-size: 1.5rem; color: var(--xh-secondary); margin: 32px 0 16px; }
.content-section article h3 { font-size: 1.2rem; color: var(--xh-secondary); margin: 24px 0 12px; }
.content-section article p { margin-bottom: 16px; line-height: 1.8; color: var(--xh-text); }

/* --- How-To指南 --- */
.howto-steps { max-width: 700px; margin: 0 auto; }
.howto-step {
  display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start;
}
.howto-step .step-num {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.howto-step .step-content h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.howto-step .step-content p { color: var(--xh-gray); font-size: 0.92rem; }
.section-dark .howto-step .step-content p { color: rgba(248,240,255,0.7); }

/* --- 数据统计 --- */
.stats-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item .label { color: var(--xh-gray); font-size: 0.9rem; margin-top: 4px; }

/* --- 图片加载 --- */
img[loading="lazy"] { transition: opacity 0.5s ease; }

/* --- 返回顶部 --- */
.back-to-top {
  position: fixed; bottom: 40px; right: 30px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-accent));
  color: #fff; font-size: 1.4rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,69,107,0.4);
  transition: var(--xh-transition); text-decoration: none;
}
.back-to-top:hover {
  transform: translateY(-3px); color: #fff;
  box-shadow: 0 8px 24px rgba(232,69,107,0.5);
}
.back-to-top.visible { display: flex; }

/* --- 响应式 --- */
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--xh-secondary); flex-direction: column; padding: 12px; gap: 2px; }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .hero-section { min-height: 400px; }
  .section-padding { padding: 48px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { gap: 24px; }
  .stat-item .num { font-size: 1.6rem; }
  .page-banner { min-height: 200px; }
  .page-banner h1 { font-size: 1.6rem; }
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .site-logo img { height: 34px; }
  .site-logo span { font-size: 1.1rem; }
}
