:root {
  --red: #b01622;
  --red-dark: #7e1018;
  --accent: #f0c46b;
  --ink: #2b2020;
  --muted: #786a6a;
  --line: #eadada;
  --bg: #fbf4f2;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(126, 16, 24, 0.1);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff8f6;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.top-line {
  background: #fff6f2;
  color: #6c4f4f;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.top-line .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  background: linear-gradient(135deg, #fff 0%, #fff2ec 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.brand .container {
  min-height: 118px;
  display: flex;
  align-items: center;
}

.brand-title {
  margin: 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.nav {
  height: 52px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-list {
  display: flex;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.nav-item {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.nav-link {
  display: block;
  height: 52px;
  line-height: 52px;
  color: #fff;
  font-size: 17px;
  position: relative;
}

.nav-item:hover .nav-link,
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.nav-item:hover .nav-link::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: var(--red);
}

.submenu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 14px 32px rgba(126, 16, 24, 0.18);
}

.nav-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 12px 10px;
  font-size: 14px;
}

.submenu a:hover {
  background: #fff2ec;
  color: var(--red);
}

.mobile-bar,
.mobile-menu {
  display: none;
}

.news-hero {
  padding: 30px 0 34px;
  background: #fff;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr) minmax(260px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.lead-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--red-dark);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-visual .hero-slide {
  color: #fff;
}

.lead-visual .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(126, 16, 24, 0.08), rgba(126, 16, 24, 0.88));
}

.hero-kicker {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 2;
  padding: 7px 12px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 48px;
  z-index: 2;
}

.hero-copy strong {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.28;
  font-weight: 700;
}

.hero-copy em {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.7;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.78;
  cursor: pointer;
}

.hero-dot.active {
  background: var(--red);
  opacity: 1;
}

.headline-panel,
.brief-panel,
.focus-list,
.list-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.headline-panel,
.brief-panel {
  padding: 22px 22px 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.panel-heading span {
  position: relative;
  color: var(--red-dark);
  font-size: 20px;
  font-weight: 700;
}

.panel-heading span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 54px;
  height: 2px;
  background: var(--red);
}

.panel-heading a {
  color: var(--muted);
  font-size: 14px;
}

.lead-story {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}

.headline-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.headline-list li {
  border-top: 1px dashed var(--line);
}

.headline-list a {
  display: block;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.headline-list a::before,
.news-list a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 2px;
}

.brief-text p {
  margin: 0 0 14px;
  color: #4b3838;
  font-size: 16px;
  line-height: 2;
  text-indent: 2em;
}

.media-strip {
  padding: 28px 0;
  background: var(--bg);
}

.media-strip-grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 1.25fr) 1fr;
  gap: 22px;
}

.video-card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.video-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-video {
  margin-top: 0;
}

.feature-video strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 18px;
}

.feature-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(126, 16, 24, 0), rgba(126, 16, 24, 0.78));
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(179, 38, 46, 0.94);
  box-shadow: 0 8px 22px rgba(80, 24, 28, 0.22);
}

.play-badge::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  border-left: 19px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.focus-list {
  padding: 20px 22px;
}

.focus-list > a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal-section {
  padding: 42px 0 38px;
  background: #fff;
}

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--red);
}

.section-headline span {
  padding: 0 18px 10px 0;
  color: var(--red);
  font-size: 26px;
  font-weight: 700;
}

.section-headline p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.list-card {
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  color: var(--red-dark);
  background: #fff8f6;
  border-bottom: 1px solid var(--line);
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.section-title a {
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  padding: 8px 18px 16px;
  margin: 0;
  list-style: none;
}

.news-list li {
  border-bottom: 1px dashed var(--line);
}

.news-list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 43px;
  font-size: 15px;
}

.headline-list a:hover,
.focus-list > a:hover,
.news-list a:hover,
.article-list a:hover {
  color: var(--red);
}

.image-links {
  padding: 0 0 60px;
  background: var(--bg);
}

.portal-image-section {
  padding-top: 40px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.image-card {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #d9e0e8;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

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

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

.image-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 12px 14px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(126, 16, 24, 0), rgba(126, 16, 24, 0.86));
  line-height: 1.5;
  font-weight: 700;
}

.breadcrumb {
  padding: 30px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 60px;
}

.side-title {
  padding: 16px 18px;
  background: var(--red-dark);
  border-bottom: 4px solid var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.side-menu {
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.side-menu a {
  display: block;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.side-menu a.active,
.side-menu a:hover {
  color: var(--red);
  font-weight: 700;
}

.content-title {
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red-dark);
  color: var(--red-dark);
  font-size: 26px;
  font-weight: 700;
}

.article-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.article-list li {
  border-bottom: 1px solid var(--line);
}

.article-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.article-meta {
  color: var(--muted);
  white-space: nowrap;
}

.article {
  max-width: 860px;
}

.article h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
}

.article .meta {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.article-cover {
  width: 100%;
  max-height: 420px;
  margin-bottom: 24px;
  object-fit: cover;
}

.article p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 2;
  text-indent: 2em;
}

.footer {
  margin-top: auto;
  padding: 18px 0;
  color: #fff;
  text-align: center;
  background: var(--red-dark);
  border-top: 4px solid var(--red);
}

.footer p {
  margin: 6px 0;
}

.admin-body {
  background: #f4f6f8;
}

.admin-shell {
  min-height: 100vh;
  background: #f5f7fb;
}

.admin-header {
  padding: 16px 24px;
  color: #fff;
  background: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 60px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-sidebar-title {
  padding: 16px 18px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

.admin-sidebar button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  padding: 14px 18px;
  background: #fff;
  color: #27313b;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button:hover,
.admin-sidebar button.active {
  color: var(--red);
  background: #fff4f4;
  font-weight: 700;
}

.admin-content {
  min-width: 0;
}

.login-panel,
.admin-panel {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.login-panel {
  width: min(420px, calc(100% - 32px));
  margin: 90px auto;
  padding: 28px;
}

.login-panel h1 {
  margin: 0 0 22px;
  font-size: 24px;
}

.btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  background: #e9edf2;
  color: #222;
  cursor: pointer;
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.danger {
  background: #8b1d1d;
  color: #fff;
}

.admin-panel {
  padding: 22px;
}

.admin-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  background: #fff;
}

.admin-card h3 {
  margin: 0 0 14px;
  color: #25313d;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e5e9;
  border-radius: 4px;
  background: #f8fafc;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: #3d4652;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
}

.upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.upload-row input {
  flex: 1;
}

.upload-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.upload-btn.small {
  margin-top: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-status {
  min-height: 18px;
  word-break: break-all;
}

.admin-table .upload-box input[name="image"] {
  min-width: 240px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e5e9;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f7f8fa;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.article-picker {
  max-height: 620px;
  overflow: auto;
  border: 1px solid #e2e5e9;
}

.article-picker button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e5e9;
  padding: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.article-picker button.active {
  color: var(--red);
  font-weight: 700;
  background: #fff5f5;
}

.hint {
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .news-hero-grid,
  .media-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brief-panel,
  .focus-list {
    grid-column: 1 / -1;
  }

  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pc-only {
    display: none;
  }

  .mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 58px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--red-dark);
  }

  .mobile-title {
    font-size: 17px;
    font-weight: 700;
  }

  .menu-toggle {
    width: 42px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    color: #fff;
    background: transparent;
    font-size: 22px;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 58px 0 auto;
    z-index: 31;
    max-height: calc(100vh - 58px);
    overflow: auto;
    padding: 10px 18px 24px;
    color: #fff;
    background: var(--red-dark);
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .news-hero-grid,
  .media-strip-grid,
  .page-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .lead-visual {
    min-height: 360px;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar button {
    display: inline-block;
    width: auto;
    border-right: 1px solid #eef1f4;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1220px);
  }

  .news-hero {
    padding-top: 18px;
  }

  .lead-visual {
    min-height: 310px;
  }

  .hero-copy strong {
    font-size: 25px;
  }

  .hero-copy em {
    font-size: 14px;
  }

  .section-headline {
    display: block;
  }

  .section-headline span {
    display: block;
  }

  .list-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .article-list a {
    display: block;
  }

  .article-meta {
    display: block;
    margin-top: 6px;
  }
}
