@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  --primary: #c62828;
  --primary-dark: #b71c1c;
  --accent: #ffeb3b;
  --accent-dark: #fdd835;
  --bg: #fff8e1;
  --bg-alt: #fffde7;
  --text: #212121;
  --text-light: #616161;
  --white: #ffffff;
  --border: #ffcdd2;
  --shadow: 0 4px 20px rgba(198, 40, 40, 0.15);
  --shadow-hover: 0 8px 30px rgba(198, 40, 40, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-top {
  background: var(--text);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-top a {
  color: var(--accent);
  margin-left: 15px;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.logo-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  opacity: 0.85;
  color: var(--accent);
  font-family: 'Noto Sans SC', sans-serif;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
}

/* Marquee / Breaking Ticker */
.breaking-ticker {
  background: var(--accent);
  color: var(--text);
  padding: 10px 0;
  font-weight: 500;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticker-label {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
}

.ticker-content span {
  display: inline-block;
  padding-right: 40px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Banner */
.banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #880e4f 100%);
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=breaking%20news%20newspaper%20red%20alert&image_size=landscape_16_9') center/cover;
  opacity: 0.2;
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.banner h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.banner-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-red {
  background: var(--primary);
  color: var(--white);
}

.badge-yellow {
  background: var(--accent);
  color: var(--text);
}

.badge-dark {
  background: var(--text);
  color: var(--white);
}

.badge-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.badge-flash {
  background: var(--primary);
  color: var(--white);
  animation: flash 1.2s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Section */
.section {
  padding: 60px 0;
}

.section-dark {
  background: var(--text);
  color: var(--white);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 36px;
  background: var(--primary);
  border-radius: 3px;
}

.section-dark .section-title {
  color: var(--accent);
}

.section-dark .section-title::before {
  background: var(--accent);
}

.section-more {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.section-dark .section-more {
  color: var(--accent);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #eee;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.card-hot {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--text-light);
}

.card-meta .time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-meta .views {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Breaking / Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.hot::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 15px rgba(255, 235, 59, 0.5);
}

.timeline-time {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.timeline-item.hot .timeline-content {
  border-left-color: var(--accent);
}

.timeline-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.timeline-content p {
  color: var(--text-light);
  font-size: 14px;
}

/* List View */
.news-list {
  list-style: none;
}

.news-list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  border-radius: 8px;
  padding: 20px;
}

.news-list-item:hover {
  background: var(--bg-alt);
}

.news-list-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
  color: var(--primary);
}

.news-list-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.news-list-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(198, 40, 40, 0.05) 0%, transparent 70%);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.category-card:nth-child(even) .category-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text);
}

.category-name {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.category-count {
  font-size: 13px;
  color: var(--text-light);
}

.category-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.5;
}

/* Magazine Layout */
.magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.magazine-feature {
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.magazine-feature .mag-image {
  height: 350px;
}

.magazine-feature .mag-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.magazine-feature .mag-title {
  font-size: 28px;
}

.mag-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.mag-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.mag-image {
  height: 200px;
  overflow: hidden;
  background: #eee;
}

.mag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-body {
  padding: 22px;
}

.mag-kicker {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mag-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.mag-card:hover .mag-title {
  color: var(--primary);
}

.mag-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.mag-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* Content Page */
.content-page {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.content-page h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-page h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.content-page h3 {
  font-size: 19px;
  margin: 25px 0 12px;
  color: var(--text);
}

.content-page p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.content-page ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.content-page li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-card:nth-child(2) {
  border-top-color: var(--accent);
}

.contact-card:nth-child(3) {
  border-top-color: var(--text);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.contact-card:nth-child(2) .contact-icon {
  background: var(--accent);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-card .contact-detail {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-role {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.team-desc {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #bdbdbd;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: #424242;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #424242;
  padding: 20px 0;
  text-align: center;
  color: #9e9e9e;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #880e4f 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 40px;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.9;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .banner h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .magazine-feature { grid-template-columns: 1fr; }
  .magazine-feature .mag-image { height: 250px; }
  .magazine-feature .mag-body { padding: 25px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 15px; }

  .banner { padding: 50px 0; }
  .banner h1 { font-size: 32px; }
  .banner p { font-size: 16px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 26px; }

  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-image { height: 180px; }

  .news-list-item { flex-direction: column; gap: 15px; }
  .news-list-thumb { width: 100%; height: 180px; }

  .magazine { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 28px; }

  .content-page { padding: 25px; }
  .content-page h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .header-top .container { font-size: 12px; }
  .logo { font-size: 22px; }
  .banner h1 { font-size: 26px; }
  .card-image { height: 160px; }
  .card-body { padding: 18px; }
  .card-title { font-size: 17px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more a {
  display: inline-block;
  padding: 12px 35px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.load-more a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.disclaimer {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  border-radius: 0 10px 10px 0;
  margin: 30px 0;
}

.disclaimer h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 16px;
}

.disclaimer p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}
