.news-hero {
  background:
    radial-gradient(circle at 88% 88%, rgba(216, 104, 51, 0.30), transparent 42%),
    linear-gradient(105deg, rgba(18, 10, 5, 0.95) 0%, rgba(43, 24, 13, 0.78) 48%, rgba(178, 78, 30, 0.38) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80") center right/cover no-repeat;
  color: #ffffff;
}

.news-page-section {
  padding-top: 72px;
}

.news-section-head {
  max-width: 1180px;
  margin-bottom: 24px;
  text-align: left;
}

.news-section-head h2 {
  margin: 0;
  color: #2b2118;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.news-section-head > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: #857665;
  line-height: 1.75;
}

.news-kicker {
  margin: 0 0 12px;
  color: #d86833;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 30px;
}

.news-toolbar__filters {
  min-width: 0;
}

.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-filter {
  padding: 10px 20px;
  border: 1px solid rgba(216, 104, 51, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #3d3428;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-filter:hover,
.news-filter.is-active {
  border-color: #d86833;
  background: #d86833;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(216, 104, 51, 0.22);
}

.news-count {
  margin: 12px 0 0;
  color: #857665;
  font-size: 15px;
}

.news-count strong {
  margin: 0 3px;
  color: #d86833;
  font-size: 21px;
  font-weight: 800;
}

.news-search {
  position: relative;
  flex: 0 1 340px;
  min-width: min(320px, 100%);
}

.news-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #a18d78;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-search__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.news-search input::-webkit-search-cancel-button,
.news-search input::-webkit-search-results-button,
.news-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.news-search input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 18px 10px 43px;
  color: #2b2118;
  font-size: 15px;
  border: 1px solid #dfcfbd;
  border-radius: 999px;
  outline: none;
  background: #fffcf8;
  box-shadow: 0 8px 22px rgba(46, 29, 18, 0.07);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search input::placeholder {
  color: #a18d78;
  opacity: 1;
}

.news-search input:hover {
  border-color: #c9a987;
}

.news-search input:focus {
  border-color: #d86833;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(216, 104, 51, 0.12), 0 8px 22px rgba(46, 29, 18, 0.08);
}

.news-search:focus-within .news-search__icon {
  color: #d86833;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(216, 104, 51, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(216, 104, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(216, 104, 51, 0.14);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f9ebe2;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-cover img {
  transform: scale(1.05);
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #8c7b6b;
  font-size: 13px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.news-body h3 {
  margin: 0 0 12px;
  color: #2b2118;
  font-size: 20px;
  line-height: 1.45;
}

.news-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #7a6e62;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: #d86833;
  font-weight: 700;
}

.news-more::after {
  margin-left: 6px;
  content: "→";
}

.news-empty {
  padding: 40px 0;
  color: #8c7b6b;
  text-align: center;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .news-page-section {
    padding-top: 48px;
  }

  .news-search {
    flex-basis: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-body {
    padding: 18px;
  }

  .news-body h3 {
    font-size: 18px;
  }
}

/* ===== news-detail.html 页面专属样式 ===== */

.news-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.news-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 104, 51, 0.12);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.news-site-header .header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-site-header .brand {
  font-weight: 800;
  font-size: 20px;
  color: #2b2118;
  white-space: nowrap;
}

.news-site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.news-site-header .site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #4a4038;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.news-site-header .site-nav a:hover {
  color: #b24e1e;
  background: #f9ebe2;
}

.news-site-header .site-nav a.active {
  color: #fff;
  background: #d86833;
  box-shadow: 0 6px 18px rgba(216, 104, 51, 0.30);
}

/* news-detail hero */
.news-detail-html .news-hero,
.news-detail-article ~ * .news-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 110px 0 72px;
}

.news-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 110px 0 72px;
}

.news-hero h1 {
  margin: 24px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 36px rgba(8, 4, 2, 0.45);
}

.news-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.7vw, 19px);
  letter-spacing: 0.05em;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 18px rgba(8, 4, 2, 0.4);
}

.news-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.news-hero .eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff9a62, rgba(216, 104, 51, 0.25));
}

.news-hero .container > * {
  animation: heroRise 0.9s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.news-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.news-hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.news-hero .container > *:nth-child(3) { animation-delay: 0.28s; }

/* news-detail 内容区 */
.news-section {
  padding: 72px 0 90px;
  background: #faf6f1;
}

.news-detail-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border: 1px solid #ede3d8;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(216, 104, 51, 0.10);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ede3d8;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #2b2118;
}

.news-detail-heading-copy {
  min-width: 0;
}

.news-detail-article-summary {
  max-width: 680px;
  margin: 10px 0 0;
  color: #7a6e62;
  font-size: 16px;
  line-height: 1.7;
}

.section-desc {
  color: #7a6e62;
  font-size: 14px;
}

.news-detail-content img, .news-detail-content video, .news-detail-content audio { display: block; max-width: 100%; margin: 20px auto; border-radius: 12px; }
.news-detail-content video { width: min(100%, 820px); max-height: 520px; background: #080b10; }
.news-detail-content audio { width: min(100%, 720px); }
.news-detail-content .rte-media-name { display: block; margin-top: -12px; text-align: center; color: var(--muted); font-size: 12px; }
.news-detail-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.news-detail-content a:hover { color: #1d4ed8; }

[data-theme="dark"] .news-detail-content a {
  color: #1d4ed8;
}

[data-theme="dark"] .news-detail-content a:hover { color: #1e40af; }

.news-detail-content p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.85;
  color: #4a4239;
}

.news-detail-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ede3d8;
}

.read-more {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d86833, #b24e1e);
  box-shadow: 0 10px 26px rgba(216, 104, 51, 0.24);
  text-decoration: none;
  transition: 0.2s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(216, 104, 51, 0.32);
}

/* news-detail footer */
.news-site-footer {
  background: linear-gradient(180deg, #2e1d12, #1a0f07);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0;
}

.news-site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.news-site-footer a {
  color: #d86833;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-site-footer a:hover {
  color: #e8874f;
}

@media (max-width: 720px) {
  .news-site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

.news-site-header .brand img {
  height: 26px;
  width: auto;
}

.news-site-header .site-nav {
    justify-content: flex-start;
  }

  .news-detail-article {
    padding: 24px;
  }

  .news-section {
    padding: 48px 0 64px;
  }
}

/* ===== 深色模式适配 ===== */
[data-theme="dark"] .news-site-header {
  background: rgba(13, 17, 23, 0.94);
  border-bottom-color: rgba(255, 107, 53, 0.12);
}

[data-theme="dark"] .news-site-header .brand {
  color: #e6edf3;
}

[data-theme="dark"] .news-site-header .site-nav a {
  color: #b1bac4;
}

[data-theme="dark"] .news-site-header .site-nav a:hover {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
}

[data-theme="dark"] .news-site-header .site-nav a.active {
  color: #fff;
  background: #ff6b35;
}

[data-theme="dark"] .news-filter {
  border-color: rgba(255, 107, 53, 0.2);
  background: #161b22;
  color: #e6edf3;
}

[data-theme="dark"] .news-filter:hover,
[data-theme="dark"] .news-filter.is-active {
  border-color: #ff6b35;
  background: #ff6b35;
  color: #fff;
}

[data-theme="dark"] .news-section-head h2 {
  color: #e6edf3;
}

[data-theme="dark"] .news-section-head > p:last-child {
  color: #8b949e;
}

[data-theme="dark"] .news-count {
  color: #8b949e;
}

[data-theme="dark"] .news-count strong {
  color: #ff6b35;
}

[data-theme="dark"] .news-search input {
  color: #e6edf3;
  border-color: #30363d;
  background: #161b22;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .news-search input::placeholder {
  color: #8b949e;
}

[data-theme="dark"] .news-search input:hover {
  border-color: #59636e;
}

[data-theme="dark"] .news-search__icon {
  color: #8b949e;
}

[data-theme="dark"] .news-card {
  border-color: #21262d;
  background: #161b22;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .news-card:hover {
  box-shadow: 0 26px 56px rgba(255, 107, 53, 0.14);
}

[data-theme="dark"] .news-cover {
  background: rgba(255, 107, 53, 0.06);
}

[data-theme="dark"] .news-meta {
  color: #8b949e;
}

[data-theme="dark"] .news-body h3 {
  color: #e6edf3;
}

[data-theme="dark"] .news-body p {
  color: #8b949e;
}

[data-theme="dark"] .news-more {
  color: #ff6b35;
}

[data-theme="dark"] .news-empty {
  color: #8b949e;
}

[data-theme="dark"] .news-section {
  background: #0d1117;
}

[data-theme="dark"] .news-detail-article {
  background: #161b22;
  border-color: #21262d;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .section-heading {
  border-bottom-color: #21262d;
}

[data-theme="dark"] .section-heading h2 {
  color: #e6edf3;
}

[data-theme="dark"] .section-desc {
  color: #8b949e;
}

[data-theme="dark"] .news-detail-article-summary {
  color: #9da7b3;
}

[data-theme="dark"] .news-detail-content p {
  color: #b1bac4;
}

[data-theme="dark"] .news-detail-actions {
  border-top-color: #21262d;
}

[data-theme="dark"] .read-more {
  background: linear-gradient(135deg, #ff6b35, #c44516);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.24);
}

[data-theme="dark"] .news-site-footer {
  background: linear-gradient(180deg, #0d1117, #06090d);
  border-top: 1px solid #21262d;
}

[data-theme="dark"] .news-site-footer a {
  color: #ff6b35;
}

[data-theme="dark"] .news-site-footer a:hover {
  color: #ff8c66;
}


/* 深色模式下正文使用浅色阅读画布，确保黑色富文本清晰可见 */
[data-theme="dark"] .news-detail-content {
  padding: 24px 28px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
}

[data-theme="dark"] .news-detail-content p,
[data-theme="dark"] .news-detail-content li,
[data-theme="dark"] .news-detail-content blockquote {
  color: #1f2937;
}

[data-theme="dark"] .news-detail-content blockquote {
  border-left-color: #94a3b8;
}
