/* China Dog - 移动端优先新闻门户样式 */

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Mobile text-size and touch optimizations */
html, body {
  -webkit-text-size-adjust: 100%; /* iOS Safari/WeChat prevent auto text-size adjust */
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Make panel buttons more responsive on some Android webviews (WeChat) */
.font-panel .font-btn {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  user-select: none;
}

/* 顶部导航 — 新布局：居中标题 + 横向可滑动的白色导航项 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #c92d2d; /* solid red base to match design */
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ensure header children can overflow for horizontal scrolling */
.top-nav { overflow: visible; }

.nav-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 10px; /* space for title + tabs */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
}

/* Show logo image and title together */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
}
.logo-img {
  display: inline-block;
  vertical-align: middle;
  height: 34px;
  width: auto;
}

/* nav row sits below the title, centered but horizontally scrollable on small screens */
.nav-tabs { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }

.nav-tab { color: rgba(255,255,255,0.95); padding: 10px 14px; font-size: 15px; text-decoration: none; border-radius: 6px; }
.nav-tab:hover { background: rgba(255,255,255,0.06); }
.nav-tab.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 700; }

/* Mobile-only scroll hint overlay (right edge) */
.nav-scroll-hint {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: none; /* enabled on small screens when nav is overflowable via JS */
  align-items: center;
  gap: 8px;
  pointer-events: none; /* hint shouldn't intercept touches */
}
.nav-scroll-hint {
  /* pill container */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform-origin: right center;
}
.nav-scroll-hint .hint-main {
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
}
.nav-scroll-hint .hint-sub {
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  opacity: 0.9;
}
.nav-scroll-hint .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.10);
  color: #fff;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

/* when JS adds .visible, show with subtle pop */
.nav-scroll-hint { display: none; opacity: 0; }
.nav-scroll-hint.visible { display: inline-flex; animation: hint-pop 320ms cubic-bezier(.22,.9,.3,1) both; }
@keyframes hint-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* subtle chevron nudge to draw attention without being loud */
.nav-scroll-hint .chev.nudge { animation: chev-nudge 1200ms cubic-bezier(.2,.9,.2,1) infinite; }
@keyframes chev-nudge { 0% { transform: translateX(0); } 10% { transform: translateX(4px); } 30% { transform: translateX(0); } 100% { transform: translateX(0); } }

/* when hint is hidden, fade it cleanly */
.nav-scroll-hint.hidden { opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transition: opacity 280ms ease, visibility 280ms ease, transform 280ms ease; }

/* Hide the hint on desktop; it's only useful on narrow viewports */
@media (min-width: 769px) {
  .nav-scroll-hint { display: none !important; }
}

/* 字体大小控制按钮 */
.font-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 10px;
}

.font-btn {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* 右侧滑出面板（默认隐藏） */
.font-toggle {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #d32f2f;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 10000;
  pointer-events: auto;
}
.font-toggle.hidden { display: none !important; }

.font-panel {
  position: fixed;
  /* place panel further left of the toggle so the toggle doesn't overlap it at all */
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  gap: 8px;
  align-items: center;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
  z-index: 106; /* higher than toggle so panel receives clicks */
}

.font-panel.open {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.font-panel { pointer-events: auto; }

/* Ensure buttons inside the panel are high-contrast and tappable */
.font-panel .font-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.font-panel .font-btn:active { transform: translateY(1px); }

/* 在平板和窄屏上调整面板位置 */
@media (max-width: 768px) {
  .font-toggle { right: 8px; top: auto; bottom: 12px; transform: none; }
  /* on small screens, keep panel above the toggle and offset it so it doesn't overlap */
  .font-panel { right: 8px; top: auto; bottom: 56px; transform: translateY(0) translateX(100%); }
  .font-panel.open { transform: translateY(0) translateX(0); }
}

/* 在小屏幕上进一步优化字体控制 */
@media (max-width: 480px) {
  .font-toggle {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
  .font-panel {
    right: 16px;
    bottom: 72px; /* 16 + 44 + 12 */
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    max-width: 120px;
  }
  .font-panel .font-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }
}

/* 可调节的文章字号基类（在 .main-content 下生效） */
.font-size-xxs { --article-font: 12px; }
.font-size-xs { --article-font: 14px; }
.font-size-sm { --article-font: 16px; }
.font-size-md { --article-font: 18px; }
.font-size-lg { --article-font: 20px; }
.font-size-xl { --article-font: 22px; }
.font-size-xxl { --article-font: 24px; }

/* Apply the article font variable broadly inside the main content so
   headings, summaries and list items change when user selects size. */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content p,
.main-content .summary,
.main-content .news-description,
.main-content .news-content-full,
.main-content .related-item h4,
.main-content .news-meta {
  font-size: var(--article-font, 16px) !important;
  line-height: 1.5;
}

/* Explicit size mappings for environments that don't inherit CSS variables reliably */
.font-size-xxs .top-news-content h1,
.font-size-xxs .news-content h3,
.font-size-xxs .main-content p,
.font-size-xxs .main-content .summary { font-size: 12px !important; }
.font-size-xs  .top-news-content h1,
.font-size-xs  .news-content h3,
.font-size-xs  .main-content p,
.font-size-xs  .main-content .summary { font-size: 14px !important; }
.font-size-sm  .top-news-content h1,
.font-size-sm  .news-content h3,
.font-size-sm  .main-content p,
.font-size-sm  .main-content .summary { font-size: 16px !important; }
.font-size-md  .top-news-content h1,
.font-size-md  .news-content h3,
.font-size-md  .main-content p,
.font-size-md  .main-content .summary { font-size: 18px !important; }
.font-size-lg  .top-news-content h1,
.font-size-lg  .news-content h3,
.font-size-lg  .main-content p,
.font-size-lg  .main-content .summary { font-size: 20px !important; }
.font-size-xl  .top-news-content h1,
.font-size-xl  .news-content h3,
.font-size-xl  .main-content p,
.font-size-xl  .main-content .summary { font-size: 22px !important; }
.font-size-xxl .top-news-content h1,
.font-size-xxl .news-content h3,
.font-size-xxl .main-content p,
.font-size-xxl .main-content .summary { font-size: 24px !important; }


.nav-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  touch-action: pan-x; /* allow horizontal pan gestures */
  -ms-touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0; /* allow flex shrinking and proper scroll behaviour */
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  flex-shrink: 0;
  padding: 12px 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

/* remove mobile tap highlight and default focus outlines for tabs */
.nav-tab {
  -webkit-tap-highlight-color: transparent;
}
.nav-tab:focus,
.nav-tab:active,
.nav-tab:focus-visible {
  outline: none;
  box-shadow: none;
}

/* FORCE override: remove any remaining tap highlight / focus artifacts across browsers */
.nav-tabs .nav-tab,
.nav-tabs a.nav-tab,
.nav-tabs .nav-tab * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-image: none !important;
  border: none !important;
}

/* ensure active/focus uses only a subtle background and no extra underline/box */
.nav-tabs .nav-tab:active,
.nav-tabs .nav-tab:focus,
.nav-tabs .nav-tab:focus-visible,
.nav-tabs .nav-tab.active {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding-bottom: 10px !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* mobile-specific tab sizing for readability and touch targets */
@media (max-width: 768px) {
  .nav-tab {
    min-width: 84px;
    padding: 10px 14px;
    text-align: center;
    font-size: 15px;
  }
}

.nav-tab.active {
  color: white;
  border-bottom-color: white;
  font-weight: 500;
}

/* 主要内容 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头条大图 */
.top-news {
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-news-item {
  display: flex;
  flex-direction: column;
}

/* make top headline feel clickable */
.top-news-item[role="button"] { cursor: pointer; }
.top-news-item[role="button"]:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(211,47,47,0.10); }

.top-news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.top-news-content {
  padding: 15px;
}

/* Carousel-specific styles for top-news */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 420ms cubic-bezier(.22,.9,.3,1); will-change: transform; /* width is set by JS in px */ }
.carousel-slide { display: block; position: relative; /* width controlled by JS: set flex to respect explicit pixel width */ flex: 0 0 auto; }
.carousel-slide-image { position: relative; width: 100%; /* let image decide height but constrain */ max-height: 56vh; overflow: hidden; border-radius: 8px; display:flex; align-items:center; justify-content:center; background: #000; }
.carousel-slide-image img { width: 100%; height: auto; object-fit: contain; display: block; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.6) 100%); pointer-events: none; }
.slide-caption a { pointer-events: auto; }
.slide-title { color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; display: block; }
.slide-title:hover { text-decoration: underline; }
.slide-caption .news-meta { display: none; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); color: #fff; border: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.6); }
.carousel-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 8px; z-index: 30; }
.carousel-dots .dot { width: 8px; height: 8px; background: rgba(255,255,255,0.7); border-radius: 50%; border: none; cursor: pointer; padding: 0; }
.carousel-dots .dot.active { background: #d32f2f; width: 10px; height: 10px; }

@media (min-width: 768px) {
  .carousel-slide-image { max-height: 48vh; }
  .carousel-slide { display: block; }
  .carousel-slide-image { border-radius: 8px; }
}

.top-news-content h1 {
  font-size: var(--article-font, 18px) !important;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
}

.top-news-content h1 a {
  color: #333;
  text-decoration: none;
}

.top-news-content h1 a:hover {
  color: #d32f2f;
}

.news-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.news-meta .source {
  margin-right: 10px;
}

.news-meta .time {
  margin-left: auto;
}

.summary {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 新闻列表 */
.news-list {
  background: white;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 首页其它栏目预览：紧凑卡片样式 */
.home-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0;
}

.home-section {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.home-section-title {
  padding: 12px 14px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #d32f2f;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.home-section-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.home-row { display: flex; align-items: center; text-decoration: none; color: inherit; gap: 10px; padding: 6px; border-radius: 6px; }
.home-row:hover { background: #fafafa; }
.home-row-title { flex: 1; font-size: 14px; line-height: 1.3; color: #333; }
.home-row-thumb { width: 84px; height: 60px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.home-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 768px) {
  .home-sections { grid-template-columns: 1fr 1fr; }
}

.section-title {
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  background: #f8f8f8;
}

.news-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.18s ease, transform 0.12s ease;
  cursor: pointer;
}

.news-item:hover {
  background-color: #fafafa;
}

/* keyboard focus/active state for accessibility */
.news-item:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(211,47,47,0.10);
  background: #fff;
}

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

.news-content {
  flex: 1;
  margin-right: 10px;
}

.news-content h3 {
  font-size: var(--article-font, 16px) !important;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-content h3 a {
  color: #333;
  text-decoration: none;
}

.news-content h3 a:hover {
  color: #d32f2f;
}

.news-content .summary {
  font-size: var(--article-font, 13px) !important;
  color: #666;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.news-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
}

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

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 20px;
  display: none;
}

.load-more-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.load-more-btn:hover {
  background: #b71c1c;
}

/* 状态样式 */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
}

.error {
  text-align: center;
  padding: 40px;
  color: #d32f2f;
  font-size: 14px;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
}

/* 响应式设计 */
@media (min-width: 768px) {
  .top-news-item {
    flex-direction: row;
  }

  .top-news-image {
    width: 40%;
    height: 250px;
  }

  .top-news-content {
    width: 60%;
    padding: 20px;
  }

  .top-news-content h1 {
    font-size: 20px;
  }

  .news-item {
    padding: 20px;
  }

  .news-content h3 {
    font-size: 18px;
  }

  .news-image {
    width: 100px;
    height: 75px;
  }

  /* 平板端 logo 调整 */
    .logo-img {
      height: 34px;
    }
}

@media (min-width: 1024px) {
  .nav-container {
  padding: 0 20px;
  /* desktop: place logo and nav on a single row */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  }

  .main-content {
    padding: 0 20px;
  }

  .logo {
    text-align: left;
  }

  .nav-tabs {
  justify-content: flex-end;
  gap: 18px;
  flex: 1 1 auto;
  }

  .nav-tab {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* 移动端优化：单行头部 --- logo 左，导航横向在右 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .logo {
    justify-content: flex-start;
    padding: 6px 0;
    align-items: center;
  }

  /* 横向滚动的导航，位于 logo 右侧 */
  .nav-tabs {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
  /* align to start so scroll area begins after logo; helps overflow behavior */
  justify-content: flex-start;
    gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* enable smooth scrolling on iOS / some WebViews */
  touch-action: pan-x; /* allow horizontal pan gestures */
  scrollbar-width: none;
  -ms-overflow-style: none;
    margin: 0;
    padding: 0 4px;
    background: transparent;
  }

  /* Testing helper: ensure there's always some horizontal overflow space on small screens
     so touch/mouse drag scrolling can be tested even when the number of tabs is small.
     Remove this rule when you confirm behavior in mobile devices or replace with
     real extra categories. */
  .nav-tabs::after {
    content: '';
    display: inline-block;
    width: 8px; /* tiny spacer to avoid clipping at the edge */
  }

  .nav-tabs::-webkit-scrollbar { display: none; }

  .nav-tab {
    display: inline-block;
    padding: 8px 10px;
    color: rgba(255,255,255,0.95);
    text-align: center;
    font-size: 15px;
    border-radius: 6px;
    background: transparent;
  white-space: nowrap;
  border-bottom: none; /* avoid underline artifacts on mobile */
  flex: 0 0 auto; /* prevent shrinking so tabs contribute to scrollWidth */
  }

  .nav-tab:hover { background: rgba(255,255,255,0.06); }
  .nav-tab.active {
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-weight: 700;
    box-shadow: none; /* remove inset shadow that created odd white block */
    transform: none;
    border-bottom: 3px solid rgba(255,255,255,0.95); /* clear selected indicator */
    padding-bottom: calc(10px - 3px); /* keep vertical rhythm with underline */
  }

  /* hide hamburger on these widths (use inline nav) */
  .hamburger { display: none; }
  .logo-img { height: 34px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 6px 10px; }

  .logo { padding: 6px 6px; }

  /* very small screens: keep inline horizontal nav with slightly reduced spacing */
  .nav-tabs {
    display: flex;
    flex: 1 1 auto;
  gap: 4px;
    overflow-x: auto;
    padding: 0 4px;
    margin: 0;
    background: transparent;
  }

  .nav-tab { padding: 8px 8px; font-size: 14px; color: rgba(255,255,255,0.95); }
  .logo-img { height: 30px; }

  .top-news-content { padding: 12px; }
  .top-news-content h1 { font-size: 16px; }
  .news-item { padding: 12px; }
  .news-content h3 { font-size: 15px; }
  .news-image { width: 70px; height: 50px; }
}

/* keep logo contrast on header for small screens */
@media (max-width: 480px) {
  .logo-link { color: #fff; }
  .logo { padding-left: 8px; }
  .nav-tab.active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; border-radius: 6px; }
}

/* removed hamburger/open menu rules */

/* 新闻详情页面样式 */
.back-btn {
  margin: 15px 0;
}

.back-button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #e0e0e0;
  border-color: #bbb;
}

.news-detail {
  background: white;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.news-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.news-header h1 {
  font-size: var(--article-font, 24px) !important;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #333;
}

.news-header .news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.news-header .category {
  background: #d32f2f;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.news-image-large {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background: #f5f5f5;
}

.news-image-large img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content-full {
  padding: 20px;
}

.news-description {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.news-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.read-original-btn {
  background: #d32f2f;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-original-btn:hover {
  background: #b71c1c;
}


/* 相关新闻 */
.related-news {
  background: white;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.related-news h3 {
  padding: 15px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  background: #f8f8f8;
}

.related-list {
  padding: 0 20px 20px;
}

.related-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.related-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-item h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #333;
}

.related-item h4:hover {
  color: #d32f2f;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

/* 详情页面响应式 */
@media (max-width: 768px) {
  .news-header {
    padding: 15px;
  }

  .news-header h1 {
    font-size: 20px;
  }

  .news-content-full {
    padding: 15px;
  }

  .news-description {
    font-size: 15px;
  }

  .news-actions {
    flex-direction: column;
  }

  .read-original-btn {
    text-align: center;
  }
}
