/* 子栏目 */
.news-cat-nav-wrapper {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.news-cat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
}

.news-tab-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  transition: all 0.25s ease;
  text-decoration: none;
}

.news-tab-item:hover {
  color: var(--brand-orange, #f96c05);
  background: #fff7ed;
}

.news-tab-item.active {
  color: #ffffff;
  background: var(--brand-orange, #f96c05);
  box-shadow: 0 4px 12px rgba(249, 108, 5, 0.3);
}

/* 主体内容 */
.news-main-container {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  background-color: #f9fafb;
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .news-layout-grid {
    grid-template-columns: 2.8fr 1.2fr;
  }
}

/* 新闻列表 */
.news-list-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  .news-card-item {
    flex-direction: row;
    height: 200px;
  }
}

.news-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(249, 108, 5, 0.3);
}

/* 新闻图片与日期徽章 */
.news-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e5e7eb;
}

@media (min-width: 640px) {
  .news-card-media {
    width: 280px;
    height: 100%;
  }
}

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

.news-card-item:hover .news-card-img {
  transform: scale(1.06);
}

/* 新闻内容文案 */
.news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.news-card-item:hover .news-card-title {
  color: var(--brand-orange, #f96c05);
}

.news-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed #f3f4f6;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-meta-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-orange, #f96c05);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.news-card-item:hover .news-read-more {
  gap: 0.5rem;
}

/* Pagination */
.news-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-pagination ul,
.news-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.news-pagination li{
  text-decoration: none;
  list-style: none;
}
.news-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  margin: 0 .25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-pagination a:hover {
  color: var(--brand-orange, #f96c05);
  border-color: var(--brand-orange, #f96c05);
  background: #fff7ed;
}

.news-pagination li.active a {
  color: #ffffff !important;
  background: var(--brand-orange, #f96c05) !important;
  border-color: var(--brand-orange, #f96c05) !important;
  box-shadow: 0 2px 6px rgba(249, 108, 5, 0.3);
}

/* 右侧 Sidebar */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-widget {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

.news-widget-title {
  position: relative;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.news-widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.125rem;
  background: var(--brand-orange, #f96c05);
  border-radius: 2px;
}

/* 搜索 */
.news-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.news-search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

.news-search-input:focus {
  border-color: var(--brand-orange, #f96c05);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 108, 5, 0.1);
}

.news-search-btn {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.news-search-btn:hover {
  color: var(--brand-orange, #f96c05);
}

/* 热门新闻 */
.hot-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hot-news-item {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  text-decoration: none;
}

.hot-news-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.hot-news-item:nth-child(-n+3) .hot-news-num {
  background: #fff7ed;
  color: var(--brand-orange, #f96c05);
}

.hot-news-content {
  flex-grow: 1;
}

.hot-news-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.hot-news-item:hover .hot-news-title {
  color: var(--brand-orange, #f96c05);
}

.hot-news-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* 当存在空数据块时，隐藏翻页控件 */
.news-left-content:has(.empty-block) .news-pagination {
  display: none !important;
}

/* 新闻详情页 */

/* 返回上一页 */
.news-detail-back-bar {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0.875rem 0;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-back-link:hover {
  color: var(--brand-orange, #f96c05);
  transform: translateX(-3px);
}

/* 详情卡片 */
.news-detail-container {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

@media (max-width: 640px) {
  .news-detail-container {
    padding: 1.25rem;
  }
}

.news-detail-header {
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.news-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .news-detail-title {
    font-size: 1.35rem;
  }
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #6b7280;
}

.news-detail-cover {
  width: 100%;
  max-height: 480px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 正文富文本排版系统 (.news-detail-content) */
.news-detail-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
  word-break: break-word;
  word-wrap: break-word;
}

.news-detail-content p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #374151;
  text-align: justify;
}

.news-detail-content p:last-child {
  margin-bottom: 0;
}

/* 标题 */
.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 1.25rem;
}

.news-detail-content h2 {
  font-size: 1.45rem;
  padding-left: 0.875rem;
  border-left: 4px solid var(--brand-orange, #f96c05);
}

.news-detail-content h3 {
  font-size: 1.25rem;
}

.news-detail-content h4 {
  font-size: 1.125rem;
}

/* 图片 */
.news-detail-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.news-detail-content img:hover {
  transform: scale(1.01);
}

/* 引用块 Blockquote */
.news-detail-content blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-left: 4px solid var(--brand-orange, #f96c05);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4b5563;
  font-size: 1rem;
  font-style: italic;
}

.news-detail-content blockquote p {
  margin-bottom: 0;
  color: #4b5563;
}

/* 列表 */
.news-detail-content ul,
.news-detail-content ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #374151;
}

.news-detail-content ul {
  list-style-type: disc;
}

.news-detail-content ol {
  list-style-type: decimal;
}

.news-detail-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* 链接 */
.news-detail-content a {
  color: var(--brand-orange, #f96c05);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

/* 强调文字与高亮 */
.news-detail-content strong,
.news-detail-content b {
  font-weight: 700;
  color: #111827;
}

.news-detail-content mark {
  background-color: #fef08a;
  color: #854d0e;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.news-detail-content table {
  width: 100% !important;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.news-detail-content th,
.news-detail-content td {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.9375rem;
}

.news-detail-content th {
  background-color: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.news-detail-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* 分割线 */
.news-detail-content hr {
  border: none;
  border-top: 1px dashed #e5e7eb;
  margin: 2.5rem 0;
}

/* 上一篇 / 下一篇 */
.news-prenext-card {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.news-prenext-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #4b5563;
}

.news-prenext-item .label {
  font-weight: 600;
  color: #111827;
  flex-shrink: 0;
}

.news-prenext-item a {
  color: #4b5563;
  transition: color 0.2s ease;
}

.news-prenext-item a:hover {
  color: var(--brand-orange, #f96c05);
}

/* 底部胶囊 */
.news-detail-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 2rem;
  background: var(--brand-orange, #f96c05);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(249, 108, 5, 0.25);
  text-decoration: none;
}

.news-back-btn:hover {
  background: #e05e00;
  box-shadow: 0 6px 16px rgba(249, 108, 5, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

/* 搜索页 */
.search-hero-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 3.5rem 1rem 2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.search-box-large {
  max-width: 680px;
  margin: 0 auto;
}

.search-large-form {
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-radius: 9999px;
  background: #ffffff;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: all 0.25s ease;
}

.search-large-form:focus-within {
  border-color: var(--brand-orange, #f96c05);
  box-shadow: 0 12px 30px -5px rgba(249, 108, 5, 0.15);
}

.search-large-input {
  flex-grow: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1e293b;
  background: transparent;
}

.search-large-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.75rem;
  margin-right: 0.25rem;
  background: var(--brand-orange, #f96c05);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-large-btn:hover {
  background: #e05e00;
}

.search-meta-bar {
  max-width: 680px;
  margin: 1.25rem auto 0 auto;
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
}

.search-keyword-red {
  color: #ef4444 !important;
  font-weight: 700 !important;
  background: rgba(239, 68, 68, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.search-compact-container {
  padding: 2.5rem 0;
  background-color: #ffffff;
}

.search-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 960px;
  margin: 0 auto;
}

.search-compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.125rem 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
}

.search-compact-item:hover {
  border-color: rgba(249, 108, 5, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.search-compact-main {
  flex-grow: 1;
  min-width: 0;
}

.search-compact-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.search-compact-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-compact-item:hover .search-compact-title a {
  color: var(--brand-orange, #f96c05);
}

.search-compact-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.search-compact-sub {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.search-compact-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 0.25rem;
  font-weight: 500;
}

.search-compact-thumb {
  width: 80px;
  height: 60px;
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.search-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 当存在空数据块时，隐藏翻页控件 */
.search-compact-container:has(.empty-block) .news-pagination {
  display: none !important;
}

@media (max-width: 768px) 
{
  .search-hero-section { padding: 1.5rem 0 1rem 0; }
}