/* =====================================================
   17C 品牌社区门户 - 主样式文件
   域名: www.x2m3czx.cn
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::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: inherit; text-decoration: none; }
a:hover { color: #e8321a; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --primary: #e8321a;
  --primary-dark: #c0200c;
  --primary-light: #ff5a3c;
  --secondary: #ff8c00;
  --accent: #ffd700;
  --bg-white: #ffffff;
  --bg-light: #f5f6fa;
  --bg-dark: #1a1a2e;
  --text-main: #222;
  --text-sub: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(232,50,26,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --container: 1200px;
}

/* ---- Container ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
  background: var(--bg-dark);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #aaa; margin-left: 12px; }
.top-bar a:hover { color: var(--primary-light); }
.top-bar .top-bar-left span { margin-right: 16px; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(232,50,26,0.3);
}
.logo-text { line-height: 1.2; }
.logo-text .brand-name { font-size: 22px; font-weight: 800; color: var(--primary); }
.logo-text .brand-slogan { font-size: 11px; color: var(--text-muted); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(232,50,26,0.08);
  color: var(--primary);
}
.main-nav ul li a .nav-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(232,50,26,0.25);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(232,50,26,0.35); }

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-bar-wrap {
  background: linear-gradient(135deg, #fff5f3 0%, #fff 100%);
  border-top: 1px solid #ffe0da;
  border-bottom: 3px solid var(--primary);
  padding: 12px 0;
}
.search-form {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(232,50,26,0.12);
}
.search-form .search-icon {
  padding: 0 14px;
  color: var(--primary);
  font-size: 18px;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 0;
  background: transparent;
  color: var(--text-main);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.search-hot-tags { text-align: center; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.search-hot-tags span { margin-right: 4px; }
.search-hot-tags a {
  display: inline-block;
  background: #fff0ed;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  margin: 2px 3px;
  font-size: 12px;
  transition: var(--transition);
  border: 1px solid #ffd0c8;
}
.search-hot-tags a:hover { background: var(--primary); color: #fff; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: var(--text-main); }

/* =====================================================
   HERO / BANNER SECTION
   ===================================================== */
.hero-section { background: var(--bg-dark); overflow: hidden; position: relative; }
.hero-slider { position: relative; height: 380px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.hero-slide-content {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 520px;
}
.hero-slide-content .hero-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-slide-content h2 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-slide-content p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 18px; }
.hero-slide-content .hero-meta { font-size: 12px; color: rgba(255,255,255,0.6); }
.hero-slide-content .hero-meta span { margin-right: 14px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-title-group {}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}
.section-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.section-more { font-size: 13px; color: var(--primary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-more:hover { color: var(--primary-dark); }

/* =====================================================
   VIDEO CARDS
   ===================================================== */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
.video-grid-2 { grid-template-columns: repeat(2, 1fr); }

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.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.35);
  opacity: 0;
  transition: var(--transition);
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn .play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.video-card:hover .play-icon { transform: scale(1.1); }
.play-icon svg { width: 22px; height: 22px; fill: var(--primary); margin-left: 3px; }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.video-info { padding: 12px; }
.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.video-author { display: flex; align-items: center; gap: 5px; }
.video-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 LIST
   ===================================================== */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex;
  gap: 14px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.news-item-thumb {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { flex: 1; min-width: 0; }
.news-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-title:hover { color: var(--primary); }
.news-item-desc { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-item-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.news-item-meta .tag { background: #fff0ed; color: var(--primary); padding: 1px 8px; border-radius: 10px; font-size: 11px; }

/* =====================================================
   HOT TOPICS / SPECIAL
   ===================================================== */
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.topic-cover { position: relative; aspect-ratio: 2/1; overflow: hidden; }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; }
.topic-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.topic-cover-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.topic-body { padding: 14px; }
.topic-desc { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; }
.topic-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.topic-stats span { display: flex; align-items: center; gap: 4px; }

/* =====================================================
   AUTHOR / CREATOR CARDS
   ===================================================== */
.authors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.author-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid #fff0ed;
  box-shadow: 0 3px 12px rgba(232,50,26,0.15);
}
.author-name { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.author-bio { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.author-stats { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.author-stats strong { display: block; font-size: 16px; font-weight: 700; color: var(--text-main); }
.btn-follow {
  display: inline-block;
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-follow:hover { transform: scale(1.05); color: #fff; }

/* =====================================================
   INTERACTION BAR
   ===================================================== */
.interaction-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.interact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
}
.interact-btn:hover { background: #fff0ed; color: var(--primary); }
.interact-btn svg { width: 16px; height: 16px; }

/* =====================================================
   COMMENTS SECTION
   ===================================================== */
.comments-section { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-user { font-size: 14px; font-weight: 600; color: var(--text-main); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.comment-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.comment-actions a { cursor: pointer; }
.comment-actions a:hover { color: var(--primary); }

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}
.faq-question:hover { background: #fff5f3; color: var(--primary); }
.faq-question .faq-icon { color: var(--primary); font-size: 20px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-item { display: flex; align-items: flex-start; gap: 10px; }
.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-item:nth-child(1) .hot-rank { background: var(--primary); color: #fff; }
.hot-item:nth-child(2) .hot-rank { background: var(--secondary); color: #fff; }
.hot-item:nth-child(3) .hot-rank { background: #ffc107; color: #fff; }
.hot-item-text { font-size: 13px; color: var(--text-main); line-height: 1.5; }
.hot-item-text:hover { color: var(--primary); }
.hot-item-views { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* =====================================================
   TAG CLOUD
   ===================================================== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f6fa;
  color: var(--text-sub);
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 24px 0;
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .stat-num { font-size: 32px; font-weight: 900; line-height: 1; }
.stat-item .stat-label { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* =====================================================
   LAYOUT: MAIN + SIDEBAR
   ===================================================== */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.page-layout-wide { grid-template-columns: 1fr 340px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--primary);
  border: 1px solid #ffd0c8;
  border-radius: 6px;
  background: #fff5f3;
  margin-top: 16px;
  transition: var(--transition);
  width: 100%;
}
.btn-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 40px; height: 40px; font-size: 18px; }
.footer-brand .brand-name { font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #888; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--primary-light); }
.footer-update { color: #555; font-size: 12px; }

/* =====================================================
   NOTICE BAR
   ===================================================== */
.notice-bar {
  background: linear-gradient(90deg, #fff8e1, #fff3e0);
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #795548;
  margin-bottom: 20px;
}
.notice-bar .notice-icon { color: var(--secondary); font-size: 16px; flex-shrink: 0; }
.notice-bar .notice-text { flex: 1; }
.notice-bar .notice-more { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* =====================================================
   TABS
   ===================================================== */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,50,26,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .authors-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .main-nav ul { flex-wrap: nowrap; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .hero-slider { height: 240px; }
  .hero-slide-content { left: 20px; max-width: 80%; }
  .hero-slide-content h2 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 18px; }
  .hero-slider { height: 200px; }
  .hero-slide-content h2 { font-size: 16px; }
  .logo-text .brand-name { font-size: 18px; }
}

/* =====================================================
   LAZY LOAD
   ===================================================== */
img[data-src] { opacity: 0; transition: opacity 0.4s ease; }
img.loaded { opacity: 1; }

/* =====================================================
   UTILITY
   ===================================================== */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-hot { background: #fff0ed; color: var(--primary); }
.badge-new { background: #e8f5e9; color: #2e7d32; }
.badge-video { background: #e3f2fd; color: #1565c0; }
