/* 盐城市盐都区广播电视台 - 占位样式，后续可替换品牌色 */
:root {
  --primary: #0c4a6e;
  --primary-light: #0369a1;
  --accent: #dc2626;
  --bg: #f0f9ff;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --shadow: 0 4px 24px rgba(12, 74, 110, 0.08);
  --radius: 12px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary) 0%, #075985 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-block img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.logo-block h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-block span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.88;
  font-weight: 400;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.nav-main a {
  color: #e0f2fe;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #0c4a6e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 74, 110, 0.95) 0%,
    rgba(12, 74, 110, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}

.hero-content p {
  margin: 0;
  max-width: 36rem;
  opacity: 0.92;
  font-size: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(12, 74, 110, 0.12);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  color: var(--text);
  flex: 1;
  text-decoration: none;
}

.news-list a:hover {
  color: var(--primary-light);
}

.news-list time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.about-block {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.program-table th,
.program-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.program-table th {
  background: #e0f2fe;
  color: var(--primary);
  font-weight: 600;
}

.program-table tr:last-child td {
  border-bottom: 0;
}

.contact-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.contact-box p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.icp {
  margin-top: 0.75rem;
}

.icp a {
  color: #94a3b8;
}

/* —— 全站扩展：顶栏、面包屑、内页、侧栏、分页等 —— */
.header-topbar {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  padding: 0.35rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-topbar a {
  color: #bae6fd;
  text-decoration: none;
}

.header-topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.logo-block a.logo-home {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-block a.logo-home:hover {
  opacity: 0.95;
}

.nav-main a.nav-active {
  color: #fff;
  border-bottom-color: #fbbf24;
}

.nav-mobile-toggle {
  display: none;
}

.nav-mobile-toggle summary {
  list-style: none;
  cursor: pointer;
  color: #e0f2fe;
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

.nav-mobile-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  width: 100%;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile-panel a {
  color: #e0f2fe;
  padding: 0.45rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-mobile-panel a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
    width: 100%;
    order: 3;
  }

  .header-inner {
    align-items: flex-start;
  }
}

@media (min-width: 1025px) {
  .nav-mobile-toggle {
    display: none !important;
  }
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--primary-light);
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #075985 100%);
  color: #fff;
  padding: 2rem 1.25rem;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.main-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.sidebar-nav {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}

.sidebar-nav h3 {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #e0f2fe;
  color: var(--primary);
  font-size: 0.95rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.side-active {
  background: #f0f9ff;
  border-left-color: var(--accent);
  color: var(--primary);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12, 74, 110, 0.12);
  text-decoration: none;
  color: var(--primary);
}

.quick-item span.icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.quick-item span.label {
  font-size: 0.88rem;
  font-weight: 600;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-box span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.feature-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .feature-banner-grid {
    grid-template-columns: 1fr;
  }
}

.feature-large {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.feature-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-large .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.feature-large .cap h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.feature-large .cap p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-small {
  display: flex;
  gap: 0.85rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}

.feature-small:hover {
  text-decoration: none;
}

.feature-small img {
  width: 120px;
  min-height: 88px;
  object-fit: cover;
  flex-shrink: 0;
}

.feature-small .txt {
  padding: 0.65rem 0.85rem 0.65rem 0;
  flex: 1;
}

.feature-small .txt h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.feature-small .txt time {
  font-size: 0.75rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tabs a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}

.tabs a:hover,
.tabs a.tab-active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination a,
.pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0 0.5rem;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

.pagination span.current {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.article-body {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 2rem;
  max-width: 820px;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.article-body h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.35;
}

.article-body .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.article-body figure {
  margin: 1.25rem 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 8px;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.article-body p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: #334155;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .two-col-list {
    grid-template-columns: 1fr;
  }
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.leader-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
}

.leader-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.leader-card h4 {
  margin: 0.75rem 0 0.2rem;
  font-size: 1rem;
  color: var(--primary);
}

.leader-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
}

.footer-columns h4 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-columns a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
}

.footer-columns a:hover {
  color: #fff;
}

.map-placeholder {
  background: #e2e8f0;
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: #e0f2fe;
  color: var(--primary);
  margin-right: 0.35rem;
}
