/* ==========================================================================
   yzsb3 企业官网样式（移动优先，≤768px 单列；桌面端多栏）
   ========================================================================== */

:root {
  --color-primary: #1f7a3d;
  --color-primary-dark: #17602f;
  --color-accent: #e87722;
  --color-text: #22272e;
  --color-text-muted: #5b6470;
  --color-border: #e3e7eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f9;
  --color-bg-header: #12351f;
  --shadow-sm: 0 1px 3px rgba(18, 53, 31, 0.08);
  --shadow-md: 0 6px 18px rgba(18, 53, 31, 0.12);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    'PingFang SC',
    'Microsoft YaHei',
    'Segoe UI',
    -apple-system,
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

body.modal-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p {
  margin: 0 0 0.75em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

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

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

.btn-ghost {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

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

.btn-sm {
  padding: 5px 14px;
  font-size: 13px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand:hover {
  color: #fff;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 32px;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav {
  display: none;
  flex-direction: column;
  width: 100%;
  order: 4;
}

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

.nav-link {
  display: block;
  padding: 9px 4px;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-item {
  position: relative;
}

.dropdown {
  display: none;
}

.header-search {
  display: flex;
  width: 100%;
  order: 5;
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-search button {
  padding: 7px 14px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- 轮播 ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex: 0 0 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 15px;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.banner-dot.is-active {
  background: var(--color-accent);
}

/* ---------- 区块 ---------- */
.section {
  padding: 36px 0;
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  position: relative;
  padding-left: 12px;
  font-size: 22px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

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

.section-more:hover {
  color: var(--color-primary);
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.product-card,
.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product-card:hover,
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.card-cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 14px;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.card-summary {
  font-size: 13px;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tag,
.card-meta em {
  align-self: flex-start;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(31, 122, 61, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-style: normal;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 公司优势 / 合作伙伴 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.adv-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.adv-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.adv-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 90px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.partner-card img {
  max-height: 44px;
  object-fit: contain;
}

.partner-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 首页新闻速递 ---------- */
.news-brief li {
  border-bottom: 1px dashed var(--color-border);
}

.news-brief li:last-child {
  border-bottom: 0;
}

.news-brief a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 2px;
  color: inherit;
}

.news-brief .news-date {
  color: var(--color-text-muted);
  font-size: 13px;
}

.news-brief .news-title {
  font-weight: 600;
  color: var(--color-text);
}

.news-brief .news-summary {
  width: 100%;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb-sep {
  color: #c1c8cf;
}

.breadcrumb-current {
  color: var(--color-text);
}

/* ---------- 布局：侧栏 + 主体 ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.page-head h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.page-head p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.side-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.side-title {
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.cat-tree .cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 14px;
}

.cat-tree .cat-link em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-muted);
}

.cat-tree .cat-link:hover {
  background: var(--color-bg-alt);
}

.cat-tree .cat-link.is-active {
  background: var(--color-primary);
  color: #fff;
}

.cat-tree .cat-link.is-active em {
  color: rgba(255, 255, 255, 0.8);
}

.cat-children {
  margin-left: 14px;
}

.side-inquiry h3 {
  font-size: 15px;
}

.side-inquiry p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-link {
  min-width: 34px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-align: center;
  color: var(--color-text);
  background: #fff;
  font-size: 13px;
}

a.page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-link.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page-link.is-disabled {
  color: #b6bdc4;
  background: var(--color-bg-alt);
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 6px 2px;
  color: var(--color-text-muted);
}

/* ---------- 新闻列表 ---------- */
.news-list li {
  border-bottom: 1px solid var(--color-border);
}

.news-item-link {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
}

.news-item-cover {
  flex: 0 0 120px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-bg-alt);
}

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

.news-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news-item-title {
  font-weight: 600;
  color: var(--color-text);
}

.news-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-item-meta em {
  font-style: normal;
  color: var(--color-primary);
}

.news-item-summary {
  font-size: 13px;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文章 / 详情 ---------- */
.article {
  padding-top: 20px;
  padding-bottom: 32px;
}

.article-head {
  margin-bottom: 16px;
}

.article-head h1 {
  font-size: 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.rich-text {
  font-size: 15px;
  color: var(--color-text);
  word-break: break-word;
}

.rich-text img {
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}

.rich-text p {
  margin: 0 0 1em;
}

.article-neighbor {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.neighbor-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--color-bg-alt);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 14px;
}

.neighbor-item small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.neighbor-item.is-muted {
  color: var(--color-text-muted);
}

.article-back {
  margin-top: 20px;
}

.detail-page {
  padding-top: 20px;
  padding-bottom: 32px;
}

.detail-head h1 {
  font-size: 24px;
}

.detail-summary {
  color: var(--color-text-muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-subtitle {
  font-size: 18px;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 12px;
}

.album-main {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.album-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.album-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.album-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
}

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

.album-thumb.is-active {
  border-color: var(--color-primary);
}

.params-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.params-table th,
.params-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 14px;
}

.params-table tr:last-child th,
.params-table tr:last-child td {
  border-bottom: 0;
}

.params-table th {
  width: 40%;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-weight: 500;
}

.detail-related {
  margin-top: 28px;
}

/* ---------- 搜索页 ---------- */
.search-page {
  padding-top: 20px;
  padding-bottom: 32px;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
}

.search-group {
  margin-bottom: 28px;
}

.search-group h2 {
  font-size: 18px;
}

.search-group h2 small {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 13px;
}

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

.search-list a {
  display: block;
  padding: 10px 2px;
  color: inherit;
}

.search-list strong {
  color: var(--color-text);
}

.search-list em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-muted);
}

.search-list p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 时间轴 / 荣誉墙 ---------- */
.timeline-section,
.about-advantages,
.about-honors {
  margin-top: 28px;
}

.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(31, 122, 61, 0.3);
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-year {
  display: inline-block;
  margin-right: 10px;
  font-weight: 700;
  color: var(--color-primary);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.honor-card {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.honor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.honor-card figcaption {
  padding: 8px 10px;
  font-size: 13px;
}

.honor-card figcaption em {
  display: block;
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-cta {
  margin-top: 14px;
}

.office-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.office-card h3 {
  font-size: 15px;
  color: var(--color-primary);
}

.office-card p {
  margin: 2px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.map-frame {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- 表单 ---------- */
.form-page {
  padding-top: 20px;
  padding-bottom: 32px;
  max-width: 760px;
}

.form-product-tip {
  padding: 10px 14px;
  background: rgba(31, 122, 61, 0.08);
  border-radius: var(--radius);
  font-size: 14px;
}

.form-row {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.form-label i {
  color: #d4380d;
  font-style: normal;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.12);
}

textarea.form-input {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0 0 10px;
  font-size: 14px;
}

.form-status.is-success {
  color: var(--color-primary);
}

.form-status.is-error {
  color: #d4380d;
}

/* ---------- 下载中心 ---------- */
.list-page {
  padding-top: 20px;
  padding-bottom: 32px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.dl-name {
  font-weight: 600;
}

.dl-name p {
  margin: 2px 0 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 招贤纳士 ---------- */
.job-list .job-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}

.job-item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.job-item summary::-webkit-details-marker {
  display: none;
}

.job-item summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.job-item details[open] summary::after {
  transform: rotate(225deg);
}

.job-title {
  font-weight: 600;
  font-size: 16px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-meta em {
  font-style: normal;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.job-meta em.job-salary {
  background: rgba(232, 119, 34, 0.12);
  color: var(--color-accent);
}

.job-detail {
  padding: 0 16px 16px;
}

.job-detail .rich-text {
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

/* ---------- 视频中心 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.video-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--color-bg-alt);
  cursor: pointer;
}

.video-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.2s;
}

.video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

.video-cover:hover .video-play {
  background: var(--color-accent);
}

.video-body {
  padding: 10px 12px 12px;
}

.video-title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, 0.6);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.modal-video {
  max-width: 860px;
  padding: 14px;
}

.modal-video video {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #000;
}

.video-modal-title {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal-sub {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ---------- 错误页 ---------- */
.error-page {
  padding: 60px 16px 80px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: rgba(31, 122, 61, 0.25);
  margin: 0;
  line-height: 1;
}

.error-tip {
  color: var(--color-text-muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--color-bg-header);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 20px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.footer-col p {
  margin: 0 0 6px;
}

.footer-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: #fff;
}

.footer-muted {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==========================================================================
   桌面端（≥768px）
   ========================================================================== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .header-search {
    order: 0;
    width: 220px;
    margin-left: auto;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: auto;
    order: 0;
  }

  .nav-link {
    padding: 10px 12px;
    border-bottom: 0;
  }

  .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--color-accent);
  }

  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    min-width: 480px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
  }

  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    display: grid;
  }

  .dropdown-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-text);
    padding: 6px 4px;
  }

  .dropdown-parent em {
    font-style: normal;
    font-size: 12px;
    color: var(--color-text-muted);
  }

  .dropdown-parent:hover {
    color: var(--color-primary);
  }

  .dropdown-children {
    margin: 2px 0 4px;
  }

  .dropdown-children a {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    border-radius: 6px;
  }

  .dropdown-children a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
  }

  .dropdown-children em {
    font-style: normal;
    font-size: 12px;
    color: #b6bdc4;
  }

  .banner-slide img {
    height: 420px;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-layout {
    grid-template-columns: 250px 1fr;
  }

  .detail-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .article-neighbor {
    grid-template-columns: 1fr 1fr;
  }

  .neighbor-item.is-next {
    text-align: right;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom-inner {
    justify-content: space-between;
  }
}

/* ---------- 图片放大预览 ---------- */
.album-main img,
.rich-text img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 16px;
  right: 20px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox {
    padding: 48px 8px;
  }

  .lightbox-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
