/* ============================================
   每日吃瓜 - 主样式表
   CSS/ID前缀: cg-
   配色: #FFFFFF / #000000 / #FF0000 / #212121
   ============================================ */

/* 干扰标签隐藏 */
.press-jammer-block { display: none; }

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  color: #212121;
  background: #FFFFFF;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #FF0000; text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: #CC0000; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Han Sans CN', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
  line-height: 1.25;
  color: #000000;
}

/* ---- 容器 ---- */
.cg-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .cg-container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .cg-container { padding: 0 40px; }
}

/* ---- 头部导航 ---- */
#cg-header {
  background: #000000;
  color: #FFFFFF;
  padding: 0;
  z-index: 1000;
  border-bottom: 4px solid #FF0000;
}

.cg-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.cg-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cg-logo-link:hover { text-decoration: none; }

.cg-logo-img { height: 44px; width: auto; }

.cg-logo-text {
  font-family: 'Source Han Sans CN', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
}

.cg-date-strip {
  font-size: 0.75rem;
  color: #999999;
  display: none;
}

@media (min-width: 768px) {
  .cg-date-strip { display: block; }
}

/* 汉堡菜单 */
.cg-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.cg-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #FFFFFF;
  transition: transform .3s, opacity .3s;
}

.cg-hamburger.cg-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.cg-hamburger.cg-active span:nth-child(2) { opacity: 0; }
.cg-hamburger.cg-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (min-width: 1024px) {
  .cg-hamburger { display: none; }
}

/* 导航栏 */
#cg-nav {
  display: none;
  background: #000000;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px 0;
}

#cg-nav.cg-nav-open { display: block; }

#cg-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#cg-nav li { width: 100%; text-align: center; }

#cg-nav a {
  display: block;
  color: #FFFFFF;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #222222;
  transition: color .2s, background .2s;
}

#cg-nav a:hover, #cg-nav a.cg-active {
  color: #FF0000;
  background: #111111;
  text-decoration: none;
}

@media (min-width: 1024px) {
  #cg-nav {
    display: block !important;
    position: relative;
    top: auto;
    padding: 0;
    border-top: 1px solid #333333;
  }

  #cg-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  #cg-nav li { width: auto; }

  #cg-nav a {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: none;
    border-bottom: 3px solid transparent;
  }

  #cg-nav a:hover, #cg-nav a.cg-active {
    border-bottom-color: #FF0000;
    background: transparent;
  }
}

/* ---- 头版头条 ---- */
#cg-top-story {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.cg-top-story-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .cg-top-story-img { height: 500px; }
}

@media (min-width: 1024px) {
  .cg-top-story-img { height: 600px; }
}

.cg-top-story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.cg-breaking-tag {
  display: inline-block;
  background: #FF0000;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 12px;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cg-top-story-title {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .cg-top-story-title { font-size: 2.4rem; }
}

@media (min-width: 1024px) {
  .cg-top-story-title { font-size: 3rem; }
  .cg-top-story-overlay { padding: 50px 60px; }
}

.cg-top-story-lead {
  color: #CCCCCC;
  font-size: 0.95rem;
  max-width: 700px;
}

/* ---- 通用模块 ---- */
.cg-section {
  padding: 40px 0;
  border-bottom: 2px solid #000000;
}

.cg-section:last-child { border-bottom: none; }

.cg-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #FF0000;
}

.cg-section-title {
  font-size: 1.5rem;
  color: #000000;
  letter-spacing: 1px;
}

.cg-section-tag {
  background: #FF0000;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
}

/* ---- 今日热搜 ---- */
.cg-hot-list { list-style: none; }

.cg-hot-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #DDDDDD;
  transition: background .2s;
}

.cg-hot-item:hover { background: #FFF5F5; }

.cg-hot-rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  background: #F0F0F0;
  color: #666666;
}

.cg-hot-item:nth-child(-n+3) .cg-hot-rank {
  background: #FF0000;
  color: #FFFFFF;
}

.cg-hot-text { flex: 1; font-weight: 600; color: #212121; }
.cg-hot-text a { color: #212121; }
.cg-hot-text a:hover { color: #FF0000; }

.cg-hot-heat {
  font-size: 0.8rem;
  color: #FF0000;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- 卡片网格 ---- */
.cg-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cg-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cg-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.cg-card {
  border: 2px solid #000000;
  background: #FFFFFF;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.cg-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000000;
}

.cg-card-img-wrap { position: relative; overflow: hidden; }

.cg-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}

.cg-card:hover .cg-card-img { transform: scale(1.05); }

.cg-card-exclusive {
  position: absolute;
  top: 10px;
  left: 0;
  background: #FF0000;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 14px;
  letter-spacing: 1px;
}

.cg-card-body { padding: 16px; }

.cg-card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cg-card-title a { color: #000000; }
.cg-card-title a:hover { color: #FF0000; }

.cg-card-excerpt {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cg-card-meta {
  font-size: 0.8rem;
  color: #999999;
}

/* ---- 明星动态信息流 ---- */
.cg-star-feed { display: flex; flex-direction: column; gap: 16px; }

.cg-star-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid #EEEEEE;
  transition: border-color .2s;
}

.cg-star-item:hover { border-color: #FF0000; }

.cg-star-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000000;
}

.cg-star-content { flex: 1; }

.cg-star-name {
  font-weight: 900;
  font-size: 1rem;
  color: #000000;
  margin-bottom: 4px;
}

.cg-star-time {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 6px;
}

.cg-star-desc {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.6;
}

/* ---- 读者投票 ---- */
.cg-poll-box {
  background: #F9F9F9;
  border: 2px solid #000000;
  padding: 24px;
}

.cg-poll-question {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000000;
}

.cg-poll-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #FFFFFF;
  border: 2px solid #000000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.cg-poll-option:hover {
  background: #FF0000;
  color: #FFFFFF;
  border-color: #FF0000;
}

.cg-poll-result {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #000000;
  color: #FFFFFF;
  font-weight: 700;
  text-align: center;
}

.cg-poll-result.cg-show { display: block; }

/* ---- 辟谣专区 ---- */
.cg-factcheck-list { display: flex; flex-direction: column; gap: 16px; }

.cg-factcheck-item {
  padding: 16px;
  border-left: 4px solid #FF0000;
  background: #FFF8F8;
}

.cg-factcheck-label {
  display: inline-block;
  background: #FF0000;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.cg-factcheck-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.cg-factcheck-desc {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
}

/* ---- 历史今日 ---- */
.cg-history-timeline { position: relative; padding-left: 30px; }

.cg-history-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #000000;
}

.cg-history-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}

.cg-history-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #FF0000;
  border-radius: 50%;
}

.cg-history-year {
  font-size: 0.85rem;
  color: #FF0000;
  font-weight: 900;
  margin-bottom: 4px;
}

.cg-history-desc {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.6;
}

/* ---- 记者会员 ---- */
.cg-member-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .cg-member-box { flex-direction: row; align-items: center; }
}

.cg-member-img {
  width: 100%;
  max-width: 400px;
  border: 2px solid #000000;
}

.cg-member-info { flex: 1; }

.cg-member-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cg-member-desc {
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.cg-member-perks { list-style: none; }

.cg-member-perks li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
}

.cg-member-perks li::before {
  content: '■';
  color: #FF0000;
  position: absolute;
  left: 0;
}

/* ---- 编辑部公告 ---- */
.cg-bulletin {
  background: #F5F5F5;
  border: 2px solid #000000;
  padding: 24px;
}

.cg-bulletin-item {
  padding: 12px 0;
  border-bottom: 1px dashed #CCCCCC;
}

.cg-bulletin-item:last-child { border-bottom: none; }

.cg-bulletin-date {
  font-size: 0.8rem;
  color: #999999;
  margin-bottom: 4px;
}

.cg-bulletin-text {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.6;
}

/* ---- 按钮 ---- */
.cg-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #FF0000;
  background: #FF0000;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.cg-btn:hover {
  background: #FFFFFF;
  color: #FF0000;
  text-decoration: none;
}

.cg-btn-outline {
  background: transparent;
  color: #FF0000;
}

.cg-btn-outline:hover {
  background: #FF0000;
  color: #FFFFFF;
}

.cg-btn-black {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

.cg-btn-black:hover {
  background: #FFFFFF;
  color: #000000;
}

/* ---- 页脚 ---- */
#cg-footer {
  background: #000000;
  color: #CCCCCC;
  padding: 40px 0 0;
  border-top: 4px solid #FF0000;
}

.cg-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333333;
}

@media (min-width: 768px) {
  .cg-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.cg-footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF0000;
  display: inline-block;
}

.cg-footer-col ul { list-style: none; }

.cg-footer-col li { margin-bottom: 8px; }

.cg-footer-col a {
  color: #CCCCCC;
  font-size: 0.9rem;
  transition: color .2s;
}

.cg-footer-col a:hover { color: #FF0000; text-decoration: none; }

.cg-footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.cg-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #888888;
}

.cg-footer-bottom a { color: #AAAAAA; }
.cg-footer-bottom a:hover { color: #FF0000; }

.cg-footer-cert {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.cg-footer-cert img {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.cg-footer-honor {
  display: inline-block;
  background: #1a1a1a;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: #FFD700;
  border: 1px solid #333333;
  margin-bottom: 8px;
}

/* ---- 栏目页 ---- */
.cg-page-hero {
  background: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid #FF0000;
}

.cg-page-hero h1 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .cg-page-hero h1 { font-size: 2.8rem; }
}

.cg-page-hero p {
  color: #CCCCCC;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.cg-page-content {
  padding: 40px 0;
}

/* ---- 文章页 ---- */
.cg-article-header {
  padding: 40px 0 20px;
  border-bottom: 2px solid #000000;
  margin-bottom: 30px;
}

.cg-article-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cg-article-title { font-size: 2.4rem; }
}

.cg-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #888888;
}

.cg-article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.cg-article-body p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.cg-article-body figure {
  margin: 24px 0;
}

.cg-article-body figcaption {
  font-size: 0.85rem;
  color: #888888;
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #EEEEEE;
}

/* ---- 爆料投稿页 ---- */
.cg-tip-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.cg-tip-form {
  max-width: 600px;
  width: 100%;
}

.cg-tip-form h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.cg-tip-form .cg-tip-subtitle {
  text-align: center;
  color: #666666;
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cg-tip-textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 2px solid #000000;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 16px;
}

.cg-tip-textarea:focus {
  outline: none;
  border-color: #FF0000;
}

.cg-tip-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: #000000;
  color: #FFFFFF;
  font-weight: 700;
  margin-top: 16px;
}

.cg-tip-success.cg-show { display: block; }

/* ---- APP下载页 ---- */
.cg-app-page {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cg-app-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.cg-app-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.cg-app-content h1 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cg-app-content h1 { font-size: 3rem; }
}

.cg-app-content .cg-app-subtitle {
  color: #CCCCCC;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cg-app-phone {
  max-width: 280px;
  margin: 0 auto 30px;
  border: 2px solid #FFFFFF;
}

.cg-app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---- 关于我们等辅助页 ---- */
.cg-about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
}

.cg-about-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF0000;
}

.cg-about-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ---- 面包屑 ---- */
.cg-breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #888888;
}

.cg-breadcrumb a { color: #888888; }
.cg-breadcrumb a:hover { color: #FF0000; }
.cg-breadcrumb span { margin: 0 6px; }

/* ---- 分页 ---- */
.cg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0;
}

.cg-pagination a, .cg-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #000000;
  font-weight: 700;
  color: #000000;
}

.cg-pagination .cg-current {
  background: #FF0000;
  border-color: #FF0000;
  color: #FFFFFF;
}

/* ---- 动画 ---- */
@keyframes cg-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cg-animate { animation: cg-fadeIn 0.4s ease-out; }
