/* 香蕉视频 - 主样式文件 */
:root {
  --primary: #f5c518;
  --primary-dark: #e0a800;
  --accent: #ff6b35;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e5e5e5;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.15);
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 顶部公告条 ===== */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}
.top-bar a { color: var(--primary); }

/* ===== 头部 ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.site-logo img { width: 40px; height: 40px; object-fit: contain; }
.site-logo span { color: var(--primary-dark); }

/* ===== 导航 ===== */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: var(--dark);
}
.nav-download {
  background: var(--primary) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
}

/* ===== 搜索框 ===== */
.search-bar-wrap {
  background: var(--dark2);
  padding: 14px 0;
}
.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-form {
  display: flex;
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 14px;
  background: transparent;
}
.search-form button {
  background: var(--primary);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: background .2s;
}
.search-form button:hover { background: var(--primary-dark); }
.search-hot-tags {
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-hot-tags span { color: #aaa; font-size: 12px; }
.search-hot-tags a {
  color: var(--primary);
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid #444;
  border-radius: 12px;
  transition: all .2s;
}
.search-hot-tags a:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 6px; }

/* ===== 主容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title a {
  font-size: 13px;
  color: var(--text-light);
  transition: color .2s;
}
.section-title a:hover { color: var(--primary-dark); }

/* ===== Hero 头条 ===== */
.hero-section { padding: 28px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.hero-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .4s;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 30px 20px 20px;
  color: var(--white);
}
.hero-main-info .tag {
  background: var(--primary);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
}
.hero-main-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hero-main-info .meta { font-size: 12px; opacity: .8; display: flex; gap: 12px; }

.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-item {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .2s;
}
.hero-side-item:hover { box-shadow: var(--shadow-hover); }
.hero-side-item img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-side-info {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-side-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; }
.hero-side-info .meta { font-size: 11px; color: var(--text-light); }

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-info { padding: 12px; }
.video-info h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
  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: 11px;
  color: var(--text-light);
}
.video-stats { display: flex; gap: 10px; align-items: center; }
.video-stats span { display: flex; align-items: center; gap: 3px; }

/* ===== 布局：主内容+侧边栏 ===== */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0;
}
.main-content {}
.sidebar {}

/* ===== 资讯列表 ===== */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
  cursor: pointer;
}
.news-item:hover { box-shadow: var(--shadow-hover); }
.news-item img {
  width: 160px;
  height: 105px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-item-info { padding: 14px 14px 14px 0; flex: 1; }
.news-item-info .cat-tag {
  background: #fff3cd;
  color: #856404;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.news-item-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.news-item-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.news-item-info .meta { font-size: 12px; color: #999; display: flex; gap: 14px; }

/* ===== 侧边栏 ===== */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .2s;
}
.hot-item:hover { background: var(--bg); }
.hot-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-item:nth-child(1) .hot-num { background: #e74c3c; color: #fff; }
.hot-item:nth-child(2) .hot-num { background: #e67e22; color: #fff; }
.hot-item:nth-child(3) .hot-num { background: var(--primary); color: var(--dark); }
.hot-item p { font-size: 13px; line-height: 1.4; }
.hot-item span { font-size: 11px; color: #999; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-light);
  transition: all .2s;
}
.tag-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}

/* ===== 推荐作者 ===== */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.author-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.author-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--primary);
}
.author-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.author-card .author-title { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.author-card .author-stats { font-size: 11px; color: #999; }
.follow-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 16px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s;
}
.follow-btn:hover { background: var(--primary-dark); color: var(--dark); }

/* ===== FAQ ===== */
.faq-section { padding: 28px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background .2s;
}
.faq-question:hover { background: #fffbf0; }
.faq-question::before {
  content: 'Q';
  background: var(--primary);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-arrow {
  font-size: 12px;
  color: var(--text-light);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* ===== 用户评论 ===== */
.reviews-section { padding: 28px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}
.review-user h4 { font-size: 14px; font-weight: 600; }
.review-user .stars { color: var(--primary); font-size: 13px; }
.review-content { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.review-date { font-size: 11px; color: #bbb; margin-top: 8px; }

/* ===== 专题策划 ===== */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.special-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.special-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.special-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .4s;
}
.special-card:hover img { transform: scale(1.05); }
.special-card-info { padding: 14px; }
.special-card-info .tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
}
.special-card-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.special-card-info p { font-size: 12px; color: var(--text-light); }

/* ===== 下载入口 ===== */
.download-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 48px 0;
  text-align: center;
  color: var(--white);
}
.download-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.download-section h2 span { color: var(--primary); }
.download-section p { font-size: 15px; color: #ccc; margin-bottom: 28px; }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.download-btn:hover { background: var(--primary-dark); color: var(--dark); transform: translateY(-2px); }
.download-btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.download-btn.outline:hover { background: var(--primary); color: var(--dark); }

/* ===== 联系/投稿 ===== */
.contact-section { padding: 28px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.contact-form-wrap h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { height: 100px; resize: vertical; }
.submit-btn {
  background: var(--primary);
  color: var(--dark);
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}
.submit-btn:hover { background: var(--primary-dark); }
.contact-info-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.contact-info-wrap h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; }
.contact-icon {
  width: 36px;
  height: 36px;
  background: #fff3cd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { font-size: 13px; color: var(--text-light); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 40px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand .site-logo { margin-bottom: 14px; color: var(--white); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #888; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #2a2a3e;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px 0;
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  transition: all .2s;
}
.pagination a:hover, .pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
}

/* ===== 文章详情 ===== */
.article-header { padding: 24px 0 0; }
.article-header h1 { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-meta .author { display: flex; align-items: center; gap: 6px; }
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body img { border-radius: var(--radius); margin: 16px 0; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-main { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .site-logo { font-size: 18px; }
  .main-nav { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; align-items: center; }
  .hero-main img { height: 220px; }
  .special-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== 工具类 ===== */
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.section-pad { padding: 28px 0; }
