/* 91网 - 主样式文件 */
/* 全局重置与基础样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif; color: #333; background: #f5f6fa; line-height: 1.7; }
a { color: #e8192c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #b5121f; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* 顶部公告栏 */
.top-bar { background: #e8192c; color: #fff; font-size: 13px; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #fff; margin-left: 12px; }
.top-bar a:hover { color: #ffd0d5; }
.top-bar .domain-display { font-weight: 600; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 999; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text { font-size: 26px; font-weight: 800; color: #e8192c; letter-spacing: -1px; }
.site-logo .logo-sub { font-size: 12px; color: #888; display: block; margin-top: -4px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.btn-login { border: 1px solid #e8192c; color: #e8192c; padding: 6px 16px; border-radius: 20px; font-size: 14px; }
.btn-login:hover { background: #e8192c; color: #fff; }
.btn-submit { background: #e8192c; color: #fff !important; padding: 6px 16px; border-radius: 20px; font-size: 14px; }
.btn-submit:hover { background: #b5121f; }

/* 主导航 */
.main-nav { background: #222; }
.main-nav ul { display: flex; align-items: center; }
.main-nav ul li a { display: block; color: #eee; font-size: 15px; padding: 12px 18px; transition: background 0.2s, color 0.2s; }
.main-nav ul li a:hover, .main-nav ul li.active a { background: #e8192c; color: #fff; }
.main-nav ul li:first-child a { font-weight: 700; }

/* 搜索框 */
.search-bar { background: #f0f0f0; padding: 14px 0; border-bottom: 1px solid #e0e0e0; }
.search-form { display: flex; max-width: 680px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.search-form input { flex: 1; border: none; padding: 12px 20px; font-size: 15px; outline: none; background: #fff; }
.search-form button { background: #e8192c; color: #fff; border: none; padding: 12px 28px; font-size: 15px; cursor: pointer; font-weight: 600; }
.search-form button:hover { background: #b5121f; }

/* 面包屑 */
.breadcrumb { padding: 10px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #e8192c; }
.breadcrumb span { margin: 0 6px; }

/* 焦点图/Banner */
.hero-section { background: #fff; padding: 20px 0 0; }
.hero-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-slider { position: relative; border-radius: 10px; overflow: hidden; }
.hero-slider img { width: 100%; height: 380px; object-fit: cover; }
.hero-slider .slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 20px 20px 16px; }
.hero-slider .slide-caption h2 { font-size: 20px; margin-bottom: 6px; }
.hero-slider .slide-caption p { font-size: 13px; opacity: 0.85; }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.slider-dots span.active { background: #e8192c; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-item { border-radius: 8px; overflow: hidden; position: relative; flex: 1; }
.hero-side-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-item .side-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; padding: 12px; font-size: 14px; font-weight: 600; }

/* 通用模块标题 */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #e8192c; }
.section-header h2 { font-size: 20px; font-weight: 800; color: #222; display: flex; align-items: center; gap: 8px; }
.section-header h2::before { content: ""; display: inline-block; width: 4px; height: 20px; background: #e8192c; border-radius: 2px; }
.section-header .sub-title { font-size: 13px; color: #888; font-weight: 400; margin-left: 8px; }
.section-header .more-link { font-size: 13px; color: #e8192c; }
.section-header .more-link:hover { text-decoration: underline; }

/* 视频卡片区域 */
.video-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
.video-thumb { position: relative; overflow: hidden; padding-top: 56.25%; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 52px; height: 52px; background: rgba(232,25,44,0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.25s; z-index: 2; }
.play-btn svg { width: 22px; height: 22px; fill: #fff; margin-left: 4px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 4px; }
.video-tag { position: absolute; top: 8px; left: 8px; background: #e8192c; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.video-info { padding: 12px; }
.video-info h3 { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #999; }
.video-meta .author { display: flex; align-items: center; gap: 5px; }
.video-meta .author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.video-stats { display: flex; gap: 10px; }
.video-stats span { display: flex; align-items: center; gap: 3px; }

/* 热门资讯 */
.news-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-list { }
.news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.news-item:last-child { border-bottom: none; }
.news-item .news-img { flex-shrink: 0; width: 110px; height: 74px; border-radius: 6px; overflow: hidden; }
.news-item .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-content { flex: 1; }
.news-item .news-content h3 { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-content h3 a { color: #222; }
.news-item .news-content h3 a:hover { color: #e8192c; }
.news-item .news-desc { font-size: 13px; color: #777; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .news-footer { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #bbb; }
.news-item .news-footer .tag { background: #fff0f1; color: #e8192c; padding: 2px 8px; border-radius: 10px; font-size: 11px; }

/* 专题聚合 */
.topics-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card { border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.topic-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s; }
.topic-card:hover img { transform: scale(1.04); }
.topic-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.72)); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.topic-overlay h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.topic-overlay p { color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 8px; }
.topic-stats { display: flex; gap: 12px; }
.topic-stats span { color: rgba(255,255,255,0.7); font-size: 12px; }

/* 创作者中心 */
.creators-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.creators-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.creator-card { text-align: center; padding: 20px 12px; border-radius: 10px; background: #fafafa; border: 1px solid #f0f0f0; transition: box-shadow 0.2s; }
.creator-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.creator-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.creator-name { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 4px; }
.creator-tag { font-size: 12px; color: #e8192c; background: #fff0f1; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.creator-stats { font-size: 12px; color: #999; }
.creator-stats strong { color: #333; }
.btn-follow { display: inline-block; margin-top: 10px; border: 1px solid #e8192c; color: #e8192c; font-size: 13px; padding: 4px 16px; border-radius: 14px; cursor: pointer; transition: all 0.2s; }
.btn-follow:hover { background: #e8192c; color: #fff; }

/* 互动专区 */
.interact-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.interact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comment-list { }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-user { font-size: 14px; font-weight: 700; color: #333; }
.comment-level { font-size: 11px; background: #e8192c; color: #fff; padding: 1px 6px; border-radius: 8px; }
.comment-time { font-size: 12px; color: #bbb; margin-left: auto; }
.comment-text { font-size: 14px; color: #555; line-height: 1.6; }
.comment-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: #bbb; }
.comment-actions span { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.comment-actions span:hover { color: #e8192c; }

/* FAQ */
.faq-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.faq-list { }
.faq-item { border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-size: 15px; font-weight: 700; color: #222; cursor: pointer; display: flex; align-items: center; justify-content: space-between; background: #fafafa; transition: background 0.2s; }
.faq-question:hover { background: #fff0f1; }
.faq-question .faq-icon { font-size: 18px; color: #e8192c; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; font-size: 14px; color: #666; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 300px; padding: 14px 20px; }

/* 帮助中心 */
.help-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-card { text-align: center; padding: 24px 16px; border-radius: 10px; background: #fafafa; border: 1px solid #f0f0f0; transition: all 0.2s; }
.help-card:hover { background: #fff0f1; border-color: #e8192c; }
.help-icon { font-size: 36px; margin-bottom: 12px; }
.help-card h3 { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 8px; }
.help-card p { font-size: 13px; color: #888; }

/* 联系我们 */
.contact-section { background: #fff; padding: 28px 0; margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item .icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-item .text strong { display: block; font-size: 14px; color: #333; }
.contact-item .text span { font-size: 13px; color: #888; }

/* 页脚 */
.site-footer { background: #1a1a2e; color: #ccc; margin-top: 24px; }
.footer-top { padding: 40px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo-text { font-size: 24px; font-weight: 800; color: #e8192c; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #aaa; }
.footer-links h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 13px; color: #aaa; }
.footer-links ul li a:hover { color: #e8192c; }
.footer-bottom { background: #111; padding: 16px 0; text-align: center; font-size: 13px; color: #666; border-top: 1px solid #2a2a3e; }
.footer-bottom a { color: #888; margin: 0 8px; }
.footer-bottom a:hover { color: #e8192c; }
.footer-domain { color: #e8192c; font-weight: 600; }

/* 侧边栏 */
.sidebar { }
.sidebar-widget { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.sidebar-widget h3 { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e8192c; }
.hot-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hot-list li:last-child { border-bottom: none; }
.hot-num { width: 20px; height: 20px; border-radius: 4px; background: #ddd; color: #888; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-num.top1 { background: #e8192c; color: #fff; }
.hot-num.top2 { background: #ff6b35; color: #fff; }
.hot-num.top3 { background: #ffb347; color: #fff; }
.hot-list li a { color: #333; flex: 1; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list li a:hover { color: #e8192c; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 13px; color: #666; background: #f5f5f5; padding: 4px 12px; border-radius: 14px; transition: all 0.2s; }
.tag-cloud a:hover { background: #e8192c; color: #fff; }

/* 主内容布局 */
.main-content { padding: 20px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; font-size: 14px; border: 1px solid #e0e0e0; color: #333; }
.pagination a:hover, .pagination .current { background: #e8192c; color: #fff; border-color: #e8192c; }

/* 统计数字 */
.stats-bar { background: linear-gradient(135deg, #e8192c, #ff6b35); color: #fff; padding: 20px 0; margin-top: 16px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 10px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 800; display: block; }
.stat-label { font-size: 13px; opacity: 0.85; }

/* 响应式 */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creators-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .creators-grid { grid-template-columns: repeat(3, 1fr); }
  .interact-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav ul li a { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .creators-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
}

/* 懒加载占位 */
img[data-src] { background: #f0f0f0; min-height: 80px; }

/* 视频模态框 */
.video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; }
.video-modal.show { display: flex; }
.video-modal-inner { background: #000; border-radius: 10px; overflow: hidden; max-width: 800px; width: 90%; position: relative; }
.video-modal video { width: 100%; display: block; }
.video-modal-close { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 28px; cursor: pointer; z-index: 10; }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: #e8192c; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 999; box-shadow: 0 4px 12px rgba(232,25,44,0.4); }
.back-to-top.show { opacity: 1; }
.back-to-top:hover { background: #b5121f; }

/* 内页文章 */
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 26px; font-weight: 800; color: #111; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #999; align-items: center; }
.article-meta .author-info { display: flex; align-items: center; gap: 8px; }
.article-meta .author-info img { width: 28px; height: 28px; border-radius: 50%; }
.article-body { font-size: 16px; line-height: 1.9; color: #444; }
.article-body h2 { font-size: 20px; font-weight: 700; color: #222; margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: 8px; margin: 16px 0; }

/* 通知/提示 */
.notice-bar { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 10px 16px; font-size: 13px; color: #795548; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
