:root {
  --color-primary: #12465a;
  --color-accent: #c7a973;
  --color-text: #4a5f6b;
  --color-muted: #768991;
  --color-bg: #f7f9fa;
  --color-white: #fff;
  --max-width: 1200px;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(18, 70, 92, 0.08);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(18, 70, 92, 0.08);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-header .header-inner > nav {
  align-self: stretch;
  display: flex;
}

.logo {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: stretch;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--color-muted);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: none;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background-color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-primary);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  align-self: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Hero styles in original-ui.css (.hero-banner) */

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-white);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-primary);
}

.section-head .subtitle {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--color-muted);
  text-transform: capitalize;
}

.section-head.center {
  text-align: center;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.split .label {
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.split p {
  margin: 1rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(18, 70, 92, 0.12);
}

.card a {
  color: inherit;
  display: block;
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e8ecef;
}

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

.card-body {
  padding: 1rem 1.15rem 1.25rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body time {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.card-body p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--color-white);
  border-bottom: 1px solid rgba(18, 70, 92, 0.08);
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-primary);
}

.page-header .subtitle {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
}

/* Article */
.article {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-block: 2rem 4rem;
}

.article h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content img {
  margin: 1.5rem auto;
  border-radius: var(--radius);
}

.article-content h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

/* About prose */
.prose {
  max-width: 800px;
}

.prose h2 {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1rem;
}

/* Video */
.video-wrap {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap video {
  width: 100%;
  display: block;
}

/* Footer（深蓝底 + 白字，自适应对齐 site_backup layout-105） */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #0d3546;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer a {
  text-decoration: none;
}

.site-footer .container {
  width: 100%;
  max-width: 100%;
  padding-left: 5.23%;
  padding-right: 5.23%;
}

.site-footer__nav {
  padding: 28px 0 20px;
}

/* PC：横向排列，超出可横滑（原站 nowrap + overflow-x） */
.site-footer .one-classify-box {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 0;
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-footer .one-classify-box::-webkit-scrollbar {
  height: 4px;
}

.site-footer .one-classify-box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.site-footer .one-classify-box::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

.site-footer .main-class-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  list-style: none;
  vertical-align: top;
  float: none;
}

.site-footer .main-class-text {
  display: block;
  width: 100%;
  padding: 0 10px;
  font-size: 14px;
  line-height: 40px;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}

.site-footer .main-class-item:hover .main-class-text,
.site-footer .main-class-item.active .main-class-text {
  color: #fff !important;
  opacity: 0.85;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #0d3546;
  padding: 20px 5.23% 28px;
}

.site-footer__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

/* 平板：仍横滑，略缩小项宽 */
@media (max-width: 991px) and (min-width: 768px) {
  .site-footer .main-class-item {
    width: calc((100% - 30px) / 4);
    min-width: 100px;
    max-width: 140px;
  }
}

/* 手机：换行网格（原站 max-width 767px + .one-classify-box.show） */
@media (max-width: 767px) {
  .site-footer .container {
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer__nav {
    padding: 20px 0 12px;
  }

  .site-footer .one-classify-box {
    white-space: normal;
    overflow-x: visible;
    overflow-y: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    font-size: 14px;
    padding: 0 8px;
  }

  .site-footer .one-classify-box::-webkit-scrollbar {
    display: none !important;
    width: 0;
    height: 0;
  }

  .site-footer .main-class-item {
    display: flex;
    width: calc((100% - 5px) / 2);
    flex: 0 0 calc((100% - 5px) / 2);
    max-width: calc((100% - 5px) / 2);
    height: auto;
    min-height: 36px;
    margin: 0 5px 5px 0;
  }

  .site-footer .main-class-item:nth-child(2n) {
    margin-right: 0;
  }

  .site-footer .main-class-text {
    font-size: 12px;
    line-height: 30px;
    padding: 0 5px;
    white-space: nowrap;
  }

  .site-footer__copy {
    padding: 16px 12px 24px;
  }

  .site-footer__copy p {
    font-size: 12px;
    line-height: 1.6;
    padding: 0 8px;
  }
}

/* 超小屏：导航单列 + 版权多行 */
@media (max-width: 480px) {
  .site-footer .main-class-item {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .site-footer .main-class-item:nth-child(2n) {
    margin-right: 0;
  }

  .site-footer__copy p {
    font-size: 11px;
    line-height: 1.75;
    word-break: break-word;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav {
    height: auto;
  }

  .site-nav li {
    display: block;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
  }

  .site-nav a::after {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: 320px;
  }

  .article {
    padding: 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}
