/* ==========================================================
   基金会智慧党建系统 · 前台样式
   设计基调：党建红 + 描金 + 米白宣纸质感，庄重大气
   ========================================================== */
:root {
  --red-900: #5E0A0D;
  --red-800: #7C1216;
  --red-700: #9C1B1F;
  --red-600: #B4272B;
  --red-500: #C93B37;
  --gold: #C0983F;
  --gold-light: #E7CB8C;
  --gold-pale: #F4E7C8;
  --cream: #FAF7F2;
  --cream-2: #F3EDE3;
  --ink: #1E1A17;
  --ink-2: #463C36;
  --muted: #857A72;
  --line: rgba(120, 90, 60, 0.14);
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(94, 10, 13, 0.06);
  --shadow: 0 12px 34px rgba(94, 10, 13, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 8, 10, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1280px, 90vw); margin: 0 auto; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--red-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(231, 203, 140, 0.18);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.topbar-left span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-left i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); display: inline-block; }
.topbar a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* ---------- 主导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(94, 10, 13, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { display: block; flex-shrink: 0; object-fit: contain; }
.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--red-800);
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.brand-text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 16px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-700), var(--gold));
  transform: translateX(-50%);
  transition: width 0.28s ease;
}
.nav a:hover { color: var(--red-700); }
.nav a:hover::after, .nav a.active::after { width: calc(100% - 32px); }
.nav a.active { color: var(--red-700); font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  background: none;
}
.btn-gold {
  background: linear-gradient(135deg, #E7CB8C, #C0983F);
  color: #4A2E0C;
  font-weight: 600;
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(192, 152, 63, 0.4); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-red { background: var(--red-700); color: #fff; }
.btn-red:hover { background: var(--red-800); box-shadow: var(--shadow); }

/* ---------- Hero 轮播 ---------- */
.hero {
  position: relative;
  height: clamp(520px, 74vh, 760px);
  overflow: hidden;
  background: var(--red-900);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(50, 5, 7, 0.92) 0%, rgba(94, 10, 13, 0.78) 42%, rgba(94, 10, 13, 0.28) 78%, rgba(94, 10, 13, 0.5) 100%);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  mask-image: linear-gradient(to right, #000, transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 900px; color: #fff; padding-bottom: 40px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-tag::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.3vw, 58px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  /* 中文优先在空格处换行，避免“建/新功”被拆开 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #FFF3D2, #E7CB8C 55%, #C0983F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 桌面端 Banner 标题强制单行（标题建议 ≤16 字，超长以省略号收尾） */
@media (min-width: 900px) {
  .hero-title {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.12em;
  max-width: 620px;
  margin: 0 0 38px;
  padding-left: 18px;
  border-left: 2px solid rgba(231, 203, 140, 0.6);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  z-index: 4;
}
.hero-ctrl .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 12px; }
.hero-dots button {
  width: 44px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  transition: background 0.3s;
}
.hero-dots button.active { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.hero-count {
  font-family: var(--serif);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.hero-count b { color: var(--gold-light); font-size: 22px; }

/* ---------- 通用板块 ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-paper {
  background: linear-gradient(180deg, #FBF8F3, #F5EFE4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark {
  background: linear-gradient(120deg, #5E0A0D, #7C1216 50%, #4B0709);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -160px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 203, 140, 0.16), transparent 68%);
}
.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}
.section-dark > * { position: relative; z-index: 2; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.sec-title { display: flex; align-items: center; gap: 16px; }
.sec-title::before {
  content: "";
  width: 6px;
  height: 46px;
  background: linear-gradient(180deg, var(--red-600), var(--red-900));
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(231, 203, 140, 0.35);
}
.sec-title h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.2;
}
.sec-title p {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
}
.sec-more:hover { color: var(--red-700); border-color: var(--red-700); gap: 12px; }
.section-dark .sec-title h2 { color: #fff; }
.section-dark .sec-more { color: rgba(255, 255, 255, 0.6); }
.section-dark .sec-more:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- 活动卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(.22,.68,.36,1), box-shadow 0.35s, border-color 0.35s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(156, 27, 31, 0.3); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40, 5, 6, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover .card-media::after { opacity: 1; }
.card-badge {
  position: absolute;
  left: 14px; top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(94, 10, 13, 0.85);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.1em;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 12px; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 10px; }
.card-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.card:hover .card-title { color: var(--red-700); }
.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.card-meta .tags { display: flex; gap: 12px; }
.card-meta .tags span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 要闻 + 通知 ---------- */
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; }
.news-lead {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.news-lead .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.news-lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-lead:hover .thumb img { transform: scale(1.05); }
.news-lead h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  margin: 4px 0 12px;
  color: var(--ink);
  font-weight: 700;
}
.news-lead:hover h3 { color: var(--red-700); }
.news-lead p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.news-lead .date { font-size: 12.5px; color: var(--gold); letter-spacing: 0.16em; }

.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  transition: padding 0.25s;
}
.news-list a:hover { padding-left: 8px; }
.news-list h4 {
  font-size: 16.5px;
  font-weight: 500;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list a:hover h4 { color: var(--red-700); }
.news-list time {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.notice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-700);
  padding: 8px 26px 18px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.notice-card .nc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line);
}
.notice-card .nc-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.1em;
}
.notice-card .nc-head span { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.notice-list li { border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { display: flex; gap: 14px; padding: 15px 0; align-items: flex-start; }
.notice-date {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 6px 0;
  transition: all 0.25s;
}
.notice-date b { display: block; font-family: var(--serif); font-size: 20px; color: var(--red-700); line-height: 1.1; }
.notice-date span { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.notice-list a:hover .notice-date { background: var(--red-700); border-color: var(--red-700); }
.notice-list a:hover .notice-date b, .notice-list a:hover .notice-date span { color: #fff; }
.notice-list h4 {
  font-size: 15.5px;
  margin: 2px 0 0;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-list a:hover h4 { color: var(--red-700); }

/* ---------- 学习园地（深色区） ---------- */
.study-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(231, 203, 140, 0.22);
  overflow: hidden;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
}
.study-card:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); transform: translateY(-6px); }
.study-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #3A0608; }
.study-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: all 0.6s; }
.study-card:hover .study-thumb img { opacity: 0.9; transform: scale(1.05); }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(231, 203, 140, 0.85);
  background: rgba(94, 10, 13, 0.42);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
  transition: all 0.3s;
}
.play-btn::after {
  content: "";
  border-left: 14px solid var(--gold-light);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.study-card:hover .play-btn { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.study-card:hover .play-btn::after { border-left-color: #4A2E0C; }
.study-body { padding: 18px 20px 22px; }
.study-body .cat { font-size: 11.5px; letter-spacing: 0.24em; color: var(--gold); }
.study-body h4 {
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  margin: 8px 0 0;
  line-height: 1.6;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 相关文件 ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--red-700);
  margin-bottom: 8px;
}
.panel-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head h3 i {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}
.panel-head a { font-size: 13px; color: var(--muted); }
.panel-head a:hover { color: var(--red-700); }

.doc-list li { border-bottom: 1px dashed var(--line); }
.doc-list li:last-child { border-bottom: 0; }
/* 相关文件通栏双列 */
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.doc-grid li:nth-last-child(2) { border-bottom: 0; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.doc-item:hover h4 { color: var(--red-700); }
.file-badge {
  flex-shrink: 0;
  width: 40px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red-700);
  clip-path: polygon(0 0, 74% 0, 100% 22%, 100% 100%, 0 100%);
  text-transform: uppercase;
}
.file-badge.pdf { background: #B4272B; }
.file-badge.doc, .file-badge.docx { background: #2B579A; }
.file-badge.xls, .file-badge.xlsx { background: #1E7145; }
.file-badge.ppt, .file-badge.pptx { background: #C4581E; }
.file-badge.zip, .file-badge.rar, .file-badge.7z { background: #6B5B45; }
.file-badge.txt { background: #5C6B73; }
.doc-item .info { flex: 1; min-width: 0; }
.doc-item h4 {
  font-size: 15.5px;
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.6;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-item .sub { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.doc-dl {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--cream);
  transition: all 0.25s;
}
.doc-dl:hover { background: var(--red-700); color: #fff; border-color: var(--red-700); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #5A090C, #3E0507);
  color: rgba(255, 255, 255, 0.66);
  padding: 56px 0 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}
.footer-brand p { font-size: 13px; line-height: 1.9; margin: 0; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col li { margin-bottom: 10px; font-size: 13.5px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 页面横幅（内页） ---------- */
.page-hero {
  position: relative;
  padding: 96px 0 74px;
  background: linear-gradient(105deg, #5E0A0D, #8C1619 55%, #6B0D11);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .deco {
  position: absolute;
  right: 7vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 0 0 14px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.page-hero .en { font-size: 12px; letter-spacing: 0.4em; color: rgba(231, 203, 140, 0.85); text-transform: uppercase; }
.page-hero .desc { margin-top: 12px; font-size: 14.5px; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.08em; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, 0.62); margin-top: 26px; letter-spacing: 0.06em; }
.crumb a:hover { color: var(--gold-light); }
.crumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- 列表页 ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 8px 20px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.filter-tabs a.active, .filter-tabs a:hover { background: var(--red-700); color: #fff; border-color: var(--red-700); }
.search-box { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; height: 42px; }
.search-box input {
  border: 0; outline: 0; height: 100%; padding: 0 16px; width: 210px;
  font-size: 14px; font-family: inherit; background: transparent; color: var(--ink);
}
.search-box button {
  border: 0; background: var(--red-700); color: #fff; height: 100%; padding: 0 18px; font-size: 14px;
}
.search-box button:hover { background: var(--red-800); }

.article-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}
.article-row .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.article-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.article-row:hover .thumb img { transform: scale(1.05); }
.article-row h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 2px 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}
.article-row:hover h3 { color: var(--red-700); }
.article-row p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 18px; align-items: center; }
.article-row .meta .pill { padding: 2px 10px; background: var(--gold-pale); color: #7A5A18; font-size: 12px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--red-700); color: var(--red-700); }
.pagination button.active { background: var(--red-700); color: #fff; border-color: var(--red-700); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 15px;
}
.empty svg { margin: 0 auto 16px; opacity: 0.35; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .src { color: var(--red-700); }

.article-cover { margin-bottom: 30px; }
.article-cover img { width: 100%; }

.article-content { font-size: 16.5px; line-height: 2.05; color: var(--ink-2); }
.article-content p { margin: 0 0 1.2em; text-indent: 2em; }
.article-content h2, .article-content h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 1.6em 0 0.8em;
  text-indent: 0;
}
.article-content img { max-width: 100%; margin: 1.4em auto; }
.article-content ul, .article-content ol { margin: 1em 0 1.4em; padding-left: 2em; list-style: revert; }
.article-content li { margin-bottom: 0.5em; }
.article-content blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  color: var(--ink-2);
}
.article-content blockquote p { text-indent: 0; margin: 0; }

/* 图片墙 */
.gallery-sec { margin-top: 46px; }
.gallery-sec h3, .video-sec h3, .attach-sec h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--red-700);
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--cream-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after {
  content: "查看大图";
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(60, 6, 8, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery figure:hover::after { opacity: 1; }

.video-sec { margin-top: 46px; }
.video-box { background: #1a0a0b; box-shadow: var(--shadow); }
.video-box video { width: 100%; display: block; max-height: 620px; background: #000; }

.attach-sec { margin-top: 46px; }
.attach-list { border: 1px solid var(--line); background: #fff; }
.attach-list .doc-item { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.attach-list .doc-item:last-child { border-bottom: 0; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
  transition: all 0.25s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-nav a:hover { border-color: var(--red-700); color: var(--red-700); }
.article-nav a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.article-nav .next { text-align: right; }

/* 侧栏 */
.side-card { background: #fff; border: 1px solid var(--line); margin-bottom: 24px; }
.side-card .sc-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card .sc-head i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.side-card ul { padding: 10px 22px 20px; }
.side-card li { border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: flex; gap: 10px; padding: 13px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.side-card li a:hover { color: var(--red-700); }
.side-card li a b { color: var(--gold); font-family: var(--serif); font-size: 13px; flex-shrink: 0; line-height: 1.9; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 4, 4, 0.94);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox .lb-close {
  position: absolute; top: 24px; right: 30px;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: none; color: #fff; font-size: 22px; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 24px;
}
.lightbox .lb-prev { left: 26px; }
.lightbox .lb-next { right: 26px; }

/* 工作理念 */
.concept-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.concept-item {
  padding: 6px 34px;
  border-left: 1px solid var(--line);
  position: relative;
}
.concept-item:first-child { border-left: 0; padding-left: 0; }
.concept-no {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 152, 63, 0.65);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.concept-item h4 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.concept-item h4::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red-700);
  margin-top: 10px;
}
.concept-item p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; }

/* 提示条 */
.pb-toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 20px);
  background: rgba(40, 8, 9, 0.92);
  color: #fff;
  padding: 12px 26px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-left: 3px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 80vw;
}
.pb-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 加载骨架 */
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 10px; font-size: 15px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .topbar-left span:not(:first-child) { display: none; }
  .site-header .container { height: 68px; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4vw 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.34s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #fff;
    margin-left: auto;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--red-700); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--red-700);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .hero { height: auto; min-height: 520px; }
  .hero-copy { padding: 90px 0 120px; }
  .grid-3, .grid-4, .split-2, .doc-grid, .footer-main { grid-template-columns: 1fr; }
  .doc-grid { gap: 0; }
  .doc-grid li:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
  .news-lead { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-main { gap: 30px; }
  .concept-row { grid-template-columns: 1fr; }
  .concept-item,
  .concept-item:first-child {
    border-left: 0;
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .concept-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .concept-no { font-size: 30px; margin-bottom: 6px; }
  .sec-head { flex-wrap: wrap; align-items: center; }
  .sec-title::before { height: 38px; }
  .two-col, .split-2 { gap: 32px; }
  .article-row h3 { font-size: 18px; }
  .article-nav a { white-space: normal; }
}

@media (max-width: 720px) {
  .container { width: 92vw; }
  .topbar .container { height: 32px; font-size: 11.5px; }
  .topbar-right { display: none; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 9.5px; letter-spacing: 0.2em; }
  .hero { min-height: 460px; }
  .hero-copy { padding: 70px 0 100px; }
  .hero-title { font-size: 26px; word-break: normal; }
  .hero-tag { font-size: 11px; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; letter-spacing: 0.06em; margin-bottom: 26px; }
  .hero-actions .btn { height: 40px; padding: 0 18px; font-size: 14px; }
  .hero-ctrl { bottom: 74px; }
  .section { padding: 40px 0; }
  .sec-title h2 { font-size: 24px; }
  .sec-more { font-size: 13px; }
  .page-hero { padding: 56px 0 42px; }
  .page-hero .deco { width: 200px; height: 200px; right: -30px; opacity: 0.1; }
  .filter-bar { gap: 12px; }
  .filter-tabs a { padding: 6px 14px; font-size: 13.5px; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .detail-wrap > article { padding: 22px 18px !important; }
  .article-head h1 { font-size: 21px; }
  .article-content { font-size: 15.5px; line-height: 1.95; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .notice-card { padding: 6px 18px 12px; }
  .panel { padding: 22px 18px; }
  .doc-item { flex-wrap: wrap; }
  .doc-dl { margin-left: 54px; }
  .lightbox .lb-nav { width: 40px; height: 40px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}
