/* ==========================================================================
   Museum Full —— 中原诚信博物馆 全屏模板
   设计语言：宣纸白底 + 正朱红 + 淡金线 + 宋体标题 + 板块化大留白
   ========================================================================== */

:root {
  --red: #c4121a;
  --red-deep: #9c0d13;
  --ink: #1a1a18;
  --ink-2: #45443f;
  --ink-3: #7c7a72;
  --paper: #fbf9f4;
  --paper-2: #f3efe5;
  --line: #e2dcd0;
  --gold: #b08d4f;
  --gold-soft: #d9c396;
  --dark: #12110f;
  --dark-2: #1c1a17;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--red); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.35; letter-spacing: .04em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.wrap--narrow { max-width: 900px; }

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.header-inner {
  max-width: 1480px; margin: 0 auto; padding: 0 40px;
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
/* 站标：馆徽 + 书法站名（并列两个链接，避免 <a> 嵌套） */
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: block; width: 44px; height: 44px; flex: 0 0 44px; line-height: 0;
  filter: brightness(1.06) saturate(1.02) drop-shadow(0 1px 4px rgba(255, 218, 158, .16));
  transition: transform .55s cubic-bezier(.2, .7, .3, 1), filter .4s;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-mark:hover {
  transform: rotate(-8deg) scale(1.05);
  filter: brightness(1.12) saturate(1.06) drop-shadow(0 1px 6px rgba(255, 226, 172, .26));
}
/* 顶栏变浅底后收掉辉光，改回普通投影，避免在宣纸白上发雾 */
.site-header.is-solid .brand-mark {
  filter: brightness(1.04) saturate(1.04) drop-shadow(0 1px 4px rgba(0, 0, 0, .16));
}

.brand { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
/* 站名 logo 双版本：首页首屏用白（深色 hero），分类/文章/页面与顶栏实底用朱红 */
.brand-logo { display: block; width: auto; height: 46px; }
.brand-logo-red { display: none; }
body:not(.home) .brand-logo-light { display: none; }
body:not(.home) .brand-logo-red { display: block; }
.site-header.is-solid .brand-logo-light { display: none; }
.site-header.is-solid .brand-logo-red { display: block; }
.brand-cn {
  font-family: var(--serif); font-size: 25px; letter-spacing: .18em; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.brand-en { font-size: 9px; letter-spacing: .28em; opacity: .72; margin-top: 4px; }

.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  position: relative; color: rgba(255, 255, 255, .9); font-size: 14.5px; letter-spacing: .06em;
  padding: 6px 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--gold-soft); transition: width .3s ease, left .3s ease;
}
.main-nav a:hover::after, .main-nav .is-active a::after { width: 100%; left: 0; }
.main-nav .is-active a { color: #fff; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.search-toggle, .header-link { color: rgba(255, 255, 255, .92); }
.header-link { font-size: 14px; letter-spacing: .06em; }
.search-toggle { display: flex; align-items: center; padding: 6px; }
.search-toggle:hover, .header-link:hover { color: var(--gold-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; transition: .3s; }

/* 滚动后实底 */
.site-header.is-solid { background: rgba(251, 249, 244, .97); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .05); backdrop-filter: blur(10px); }
.site-header.is-solid .brand, .site-header.is-solid .main-nav a,
.site-header.is-solid .search-toggle, .site-header.is-solid .header-link { color: var(--ink); text-shadow: none; }
.site-header.is-solid .brand-cn { color: var(--red); text-shadow: none; }
.site-header.is-solid .brand-en { color: var(--red); opacity: .78; }

/* 非首页（分类 / 文章 / 页面）顶栏落在浅色内容上：站名一律朱红，比深灰更醒目 */
body:not(.home) .brand-cn { color: var(--red); text-shadow: none; }
body:not(.home) .brand-en { color: var(--red); opacity: .78; }
body:not(.home) .brand { color: var(--ink); }
body:not(.home) .main-nav a,
body:not(.home) .search-toggle,
body:not(.home) .header-link { color: var(--ink); text-shadow: none; }
/* 白色自定义 Logo 在浅色实底上反色为深色，保证可见 */
.site-header.is-solid .custom-logo-link img,
.site-header.is-solid img.custom-logo { filter: brightness(0) saturate(100%) opacity(.82); }
.site-header.is-solid .main-nav a:hover, .site-header.is-solid .header-link:hover { color: var(--red); }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

/* 搜索抽屉 */
.header-search {
  max-height: 0; overflow: hidden; background: var(--paper-2);
  border-bottom: 1px solid transparent; transition: max-height .35s ease, border-color .35s ease;
}
.header-search.is-open { max-height: 120px; border-bottom-color: var(--line); }
.header-search form { max-width: 760px; margin: 0 auto; padding: 24px 40px; display: flex; gap: 12px; }
.header-search input[type="search"],
.header-search input[type="text"] {
  flex: 1; padding: 12px 18px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-family: inherit; outline: none;
}
.header-search input:focus { border-color: var(--gold); }
.header-search button, .header-search input[type="submit"] {
  padding: 12px 28px; background: var(--red); color: #fff; font-size: 15px; letter-spacing: .1em;
}
.header-search button:hover, .header-search input[type="submit"]:hover { background: var(--red-deep); }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .62) 78%),
    linear-gradient(to bottom, rgba(10, 10, 9, .55), rgba(10, 10, 9, .18) 40%, rgba(10, 10, 9, .82));
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 40px;
  animation: heroUp 1.2s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 首屏馆徽：极淡暖色散射，只做徽章与夜景之间的过渡，不形成可见光斑 */
.hero-logo {
  position: relative; width: clamp(132px, 12vw, 178px); margin: 0 auto 30px; line-height: 0;
}
.hero-logo::before {
  content: ""; position: absolute; inset: -46%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255, 232, 196, .20) 0%,
    rgba(255, 224, 184, .11) 32%,
    rgba(255, 218, 176, .035) 56%,
    rgba(255, 218, 176, 0) 74%);
  filter: blur(20px);
}
.hero-logo img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 2px 10px rgba(80, 26, 8, .28));
}
@keyframes logoGlow {
  0%, 100% { opacity: .86; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 76px); letter-spacing: .22em; text-indent: .22em;
  font-weight: 600; margin: 0 0 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.hero-line { width: 74px; height: 2px; background: var(--gold-soft); margin: 0 auto 24px; opacity: .85; }
.hero-sub { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .28em; opacity: .9; margin: 0 0 16px; }
.hero-en { font-size: 11px; letter-spacing: .42em; opacity: .55; margin: 0; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .72); font-size: 11px; letter-spacing: .28em;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: .55; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- 导语 */
.intro { padding: 110px 0 96px; text-align: center; background: var(--paper); position: relative; }
.intro::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--line));
}
.intro-mark {
  width: 54px; height: 54px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--red);
  font-family: var(--serif); font-size: 26px; line-height: 52px;
}
.intro-title { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .16em; margin-bottom: 26px; }
.intro-text {
  max-width: 760px; margin: 0 auto; color: var(--ink-2); font-size: 16.5px; line-height: 2.1;
  font-family: var(--serif);
}
.intro-stats { display: flex; justify-content: center; gap: 70px; margin-top: 56px; }
.stat b { display: block; font-family: var(--serif); font-size: 36px; color: var(--red); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-3); letter-spacing: .12em; }

/* ---------------------------------------------------------------- 通用板块 */
.section { padding: 84px 0; }
.section-news { background: var(--paper-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 22px; margin-bottom: 46px; border-bottom: 1px solid var(--line);
}
.section-title { display: flex; flex-direction: column; gap: 6px; position: relative; padding-left: 20px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 2px; width: 3px; background: var(--red);
}
.section-cn { font-family: var(--serif); font-size: 27px; letter-spacing: .16em; }
.section-en { font-size: 10px; letter-spacing: .3em; color: var(--ink-3); }
.section-more { font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.section-more i { font-style: normal; color: var(--red); margin-left: 4px; transition: margin .25s ease; }
.section-more:hover { color: var(--red); }
.section-more:hover i { margin-left: 8px; }

/* 最新公告 */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 54px; align-items: start; }
.news-lead { display: block; background: #fff; box-shadow: 0 18px 44px rgba(26, 26, 24, .07); overflow: hidden; }
.news-lead-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.news-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.news-lead:hover .news-lead-media img { transform: scale(1.05); }
.news-lead-body { padding: 30px 34px 34px; }
.news-lead-body h3 { font-size: 23px; letter-spacing: .03em; margin: 12px 0 14px; transition: color .25s; }
.news-lead:hover h3 { color: var(--red); }
.news-lead-body p { color: var(--ink-3); font-size: 14.5px; line-height: 1.9; margin: 0 0 18px; }
.tag { font-size: 12px; color: var(--gold); letter-spacing: .12em; }
.link-more { font-size: 13px; color: var(--ink-2); letter-spacing: .08em; }
.link-more i { font-style: normal; color: var(--red); }

.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:first-child { border-top: 1px dashed var(--line); }
.news-list a { display: flex; align-items: baseline; gap: 18px; padding: 19px 4px; }
.news-list em {
  font-style: normal; font-family: var(--serif); font-size: 15px; color: var(--red);
  flex: 0 0 46px; letter-spacing: .02em;
}
.news-list span {
  font-size: 15.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.6;
  transition: color .25s;
}
.news-list a:hover span { color: var(--red); }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card-grid--wide { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; background: #fff; overflow: hidden;
  box-shadow: 0 12px 34px rgba(26, 26, 24, .06);
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), box-shadow .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(26, 26, 24, .12); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; position: relative; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 24px 26px 28px; }
.card-body h3 {
  font-size: 18.5px; margin: 10px 0 12px; line-height: 1.5; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .25s;
}
.card:hover .card-body h3 { color: var(--red); }
.card-body p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.85; }
.card-date { display: block; margin-top: 14px; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }

/* 深色带 */
.section-dark { position: relative; color: #f2ede2; padding: 96px 0; overflow: hidden; }
.section-dark-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .28; filter: saturate(.7);
}
.section-dark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18, 17, 15, .88), rgba(18, 17, 15, .95));
}
.section-dark .wrap { position: relative; z-index: 2; }
.section-dark .section-head { border-bottom-color: rgba(217, 195, 150, .22); }
.section-dark .section-cn { color: #f2ede2; }
.section-dark .section-en { color: rgba(217, 195, 150, .6); }
.section-dark .section-more { color: rgba(242, 237, 226, .65); }
.section-dark .section-more:hover { color: var(--gold-soft); }
.card-dark { background: rgba(255, 255, 255, .045); box-shadow: none; border: 1px solid rgba(217, 195, 150, .16); }
.card-dark:hover { background: rgba(255, 255, 255, .075); box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.card-dark .card-body h3 { color: #f2ede2; }
.card-dark:hover .card-body h3 { color: var(--gold-soft); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75);
  transition: .35s ease;
}
.play::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-left: 13px solid rgba(255, 255, 255, .9); border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.card:hover .play { background: rgba(196, 18, 26, .9); border-color: transparent; }

/* 社教活动 */
.edu-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.edu-visual { position: relative; overflow: hidden; }
.edu-visual::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .35);
  pointer-events: none;
}
.edu-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.edu-list li { border-bottom: 1px solid var(--line); }
.edu-list li:first-child { border-top: 1px solid var(--line); }
.edu-list a { display: flex; align-items: center; gap: 18px; padding: 22px 2px; }
.edu-date { font-family: var(--serif); font-size: 15px; color: var(--red); flex: 0 0 52px; }
.edu-title { flex: 1; font-size: 16px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.edu-arrow { color: var(--ink-3); transition: transform .25s, color .25s; }
.edu-list a:hover .edu-title { color: var(--red); }
.edu-list a:hover .edu-arrow { color: var(--red); transform: translateX(5px); }

/* 文物典藏 */
.section-collection { background: var(--paper); }
.collection-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.collection-visual { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.collection-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.collection-visual:hover img { transform: scale(1.04); }
.collection-visual::after {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255, 255, 255, .3); pointer-events: none;
}
.collection-badge {
  position: absolute; right: 0; bottom: 0; background: var(--red); color: #fff;
  padding: 14px 22px; font-size: 13px; letter-spacing: .08em;
  display: flex; align-items: baseline; gap: 6px;
}
.collection-badge b { font-family: var(--serif); font-size: 26px; line-height: 1; }
.collection-info h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .12em; margin-bottom: 20px; }
.collection-info > p {
  color: var(--ink-2); font-family: var(--serif); font-size: 16px; line-height: 2.05; margin: 0 0 26px;
}
.collection-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.collection-tags li {
  font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); background: #fff;
  padding: 6px 14px; letter-spacing: .04em;
}
.collection-stats {
  display: flex; gap: 44px; padding: 24px 0; margin-bottom: 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.collection-stats b { display: block; font-family: var(--serif); font-size: 30px; color: var(--red); line-height: 1.2; }
.collection-stats span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .1em; }
.btn-solid {
  display: inline-block; background: var(--red); color: #fff; padding: 14px 40px;
  font-size: 14px; letter-spacing: .16em; transition: background .3s, transform .3s;
}
.btn-solid:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-solid i { font-style: normal; margin-left: 6px; }

/* 讲堂 */
.section-talk { background: var(--paper-2); }
.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.talk-item { padding: 34px 34px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.talk-item:last-child { border-right: none; }
.talk-item:hover { background: #fff; }
.talk-item h3 { font-size: 17.5px; line-height: 1.6; margin-bottom: 14px; transition: color .25s; }
.talk-item:hover h3 { color: var(--red); }
.talk-item p { font-size: 14px; color: var(--ink-3); line-height: 1.85; margin: 0 0 16px; }

/* 邀请 */
.invite { position: relative; background: var(--dark); color: #f2ede2; padding: 96px 0; text-align: center; overflow: hidden; }
.invite::before, .invite::after {
  content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(217, 195, 150, .16);
  border-radius: 50%;
}
.invite::before { left: -80px; top: -80px; }
.invite::after { right: -80px; bottom: -80px; }
.invite-inner { position: relative; z-index: 2; }
.invite-logo {
  width: 84px; height: 84px; margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
}
.invite-logo img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 2px 14px rgba(255, 214, 152, .22));
}
.invite h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .2em; margin-bottom: 16px; }
.invite p { color: rgba(242, 237, 226, .6); letter-spacing: .18em; font-size: 14px; margin: 0 0 34px; }

.btn-gold {
  display: inline-block; padding: 14px 44px; border: 1px solid var(--gold-soft);
  color: var(--gold-soft); font-size: 14px; letter-spacing: .22em;
  transition: background .3s, color .3s;
}
.btn-gold:hover { background: var(--gold-soft); color: var(--dark); }
.btn-line {
  display: inline-block; padding: 14px 40px; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px; letter-spacing: .2em;
}
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* ---------------------------------------------------------------- 页面头 */
.page-hero {
  position: relative; padding: 190px 0 88px; background: var(--dark-2); color: #f2ede2;
  text-align: center; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(176, 141, 79, .18), transparent 62%);
}
.page-hero-inner { position: relative; z-index: 2; padding: 0 40px; }
.page-hero-cn { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); letter-spacing: .18em; text-indent: .18em; }
.page-hero-en { font-size: 10.5px; letter-spacing: .38em; color: rgba(217, 195, 150, .62); margin-top: 12px; }
.page-hero-desc { max-width: 720px; margin: 20px auto 0; font-size: 14.5px; color: rgba(242, 237, 226, .68); }

.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 34px; letter-spacing: .04em; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--red); }
.crumb span { margin: 0 8px; opacity: .5; }
.crumb em { font-style: normal; color: var(--ink-2); }

/* 分页 */
.pager { margin-top: 64px; text-align: center; }
/* paginate_links(type=list) 输出的 <ul> 自带 page-numbers 类，
   必须用更高权重压掉 .pager .page-numbers 的 inline-block / border，否则会竖排 */
.pager ul.page-numbers {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0; border: 0; background: transparent; min-width: 0;
}
.pager ul.page-numbers li { margin: 0; display: block; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); background: #fff;
}
.pager .page-numbers.dots { border-color: transparent; background: transparent; }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pager .page-numbers.current:hover { color: #fff; }
.pager .prev, .pager .next { letter-spacing: .06em; }

/* 用户中心分页（div + a/span 结构，与 .pager 保持同一视觉） */
.uc-pagination {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 44px 0 0;
}
.uc-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; letter-spacing: .04em; transition: border-color .25s, color .25s;
}
.uc-page:hover { border-color: var(--red); color: var(--red); }
.uc-page.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------------------------------------- 文章页 */
.article-head {
  position: relative; background: var(--dark-2); color: #f2ede2;
  padding: 200px 0 72px; text-align: center;
  background-size: cover; background-position: center;
}
.article-head.has-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 11, 10, .62), rgba(12, 11, 10, .9));
}
.article-head-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 0 40px; }
.article-head .crumb, .article-head .crumb a { color: rgba(242, 237, 226, .6); }
.article-head .crumb em { color: rgba(242, 237, 226, .85); }
.article-cat {
  display: inline-block; font-size: 12px; letter-spacing: .18em; color: var(--gold-soft);
  border: 1px solid rgba(217, 195, 150, .4); padding: 4px 14px; margin-bottom: 22px;
}
.article-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.45; letter-spacing: .04em; margin-bottom: 22px; }
.article-meta { font-size: 13px; color: rgba(242, 237, 226, .55); letter-spacing: .06em; }
.article-meta .dot { margin: 0 10px; opacity: .5; }

.article-body { max-width: 900px; margin: 0 auto; padding: 72px 40px 40px; }
/* 正文内嵌视频/图框：保持 16:9 自适应，覆盖行内 height="375px" 之类的固定高 */
.article-body iframe, .page-content iframe,
.article-body video, .page-content video {
  display: block; width: 100% !important; max-width: 100%;
  aspect-ratio: 16 / 9; height: auto !important;
  margin: 2em 0; border: 0; background: #0d0d0c;
}
.article-body figure, .page-content figure { margin: 2em 0; }
.article-content { font-family: var(--serif); font-size: 17px; line-height: 2.15; color: var(--ink-2); }
.article-content > * + * { margin-top: 1.5em; }
.article-content h2 {
  font-size: 24px; color: var(--ink); margin-top: 2.2em; padding-left: 16px;
  border-left: 3px solid var(--red);
}
.article-content h3 { font-size: 20px; color: var(--ink); margin-top: 1.9em; }
.article-content p { margin: 0 0 1.4em; }
.article-content a { color: var(--red); border-bottom: 1px solid rgba(196, 18, 26, .3); }
.article-content img { margin: 2em auto; box-shadow: 0 16px 44px rgba(26, 26, 24, .12); }
.article-content blockquote {
  margin: 2em 0; padding: 26px 32px; background: var(--paper-2);
  border-left: 3px solid var(--gold); color: var(--ink-2); font-style: normal;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content ul li, .article-content ol li { margin-bottom: .6em; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; font-family: var(--sans); }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article-content th { background: var(--paper-2); }
.article-content pre { background: #171614; color: #e6e0d2; padding: 20px; overflow-x: auto; font-size: 14px; }

.article-tags { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); }
.article-tags a {
  font-size: 12.5px; color: var(--ink-3); border: 1px solid var(--line);
  padding: 5px 14px; border-radius: 2px;
}
.article-tags a:hover { border-color: var(--red); color: var(--red); }

.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.article-nav-item { display: flex; flex-direction: column; gap: 8px; }
.article-nav-item.next { text-align: right; }
.article-nav-item span { font-size: 12px; color: var(--ink-3); letter-spacing: .16em; }
.article-nav-item a { font-size: 15px; color: var(--ink-2); font-family: var(--serif); }
.article-nav-item a:hover { color: var(--red); }
.article-nav-item em { font-style: normal; font-size: 14px; color: var(--ink-3); opacity: .6; }

.section-related { background: var(--paper-2); }

/* ---------------------------------------------------------------- 单页 */
.page-section { padding: 90px 0 100px; }
.page-section.is-uc { padding: 150px 0 90px; }
.page-content { font-family: var(--serif); font-size: 16.5px; line-height: 2.1; color: var(--ink-2); }
.page-content h2 { font-size: 24px; color: var(--ink); margin: 2em 0 .8em; }
.page-content h3 { font-size: 19px; color: var(--ink); margin: 1.7em 0 .7em; }
.page-content p { margin: 0 0 1.3em; }
/* 关于页：公众号二维码 */
.about-wechat { text-align: center; margin: 2.6em 0 1.2em; }
.about-wechat img,
.page-content .about-wechat img {
  display: block; width: 200px; height: auto; margin: 0 auto;
  padding: 10px; background: #fff; border: 1px solid var(--line);
}
.about-wechat .about-wechat-tip {
  text-align: center; font-size: 13.5px; letter-spacing: .1em;
  color: var(--ink-3); margin: 14px 0 0;
}
.page-content img { margin: 1.8em auto; }
.page-content a { color: var(--red); }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.search-box-wrap { max-width: 620px; margin: 0 auto 50px; }
.search-box-wrap form { display: flex; gap: 10px; }
.search-box-wrap input[type="search"], .search-box-wrap input[type="text"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); background: #fff; font-family: inherit; outline: none;
}
.search-box-wrap input:focus { border-color: var(--gold); }
.search-box-wrap button, .search-box-wrap input[type="submit"] {
  padding: 12px 26px; background: var(--red); color: #fff; letter-spacing: .1em;
}
.result-count { font-size: 14px; color: var(--ink-3); margin-bottom: 30px; }
.empty { text-align: center; color: var(--ink-3); padding: 90px 0; font-family: var(--serif); }

/* ---------------------------------------------------------------- 404 */
.error-page { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 160px 40px 100px; text-align: center; }
.error-seal {
  width: 62px; height: 62px; margin: 0 auto 28px; border: 1px solid var(--red); color: var(--red);
  font-family: var(--serif); font-size: 32px; line-height: 60px;
}
.error-inner h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: .14em; margin-bottom: 16px; }
.error-inner p { color: var(--ink-3); margin-bottom: 40px; }
.error-actions { display: flex; gap: 16px; justify-content: center; }
.error-actions .btn-gold { border-color: var(--red); color: var(--red); }
.error-actions .btn-gold:hover { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--dark); color: rgba(242, 237, 226, .72); padding: 80px 0 0; margin-top: 0; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 40px 60px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px;
}
.footer-name { font-family: var(--serif); font-size: 22px; color: #f2ede2; letter-spacing: .16em; }
.footer-en { font-size: 9px; letter-spacing: .26em; color: rgba(217, 195, 150, .5); margin-top: 8px; }
.footer-desc { font-size: 13.5px; line-height: 1.9; color: rgba(242, 237, 226, .5); margin-top: 18px; max-width: 300px; }
.footer-col h4 {
  font-family: var(--serif); font-size: 15px; color: #f2ede2; letter-spacing: .14em;
  margin: 0 0 22px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 13.5px; color: rgba(242, 237, 226, .55); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { font-size: 13.5px; color: rgba(242, 237, 226, .5); margin-bottom: 12px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(217, 195, 150, .14); padding: 24px 40px;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(242, 237, 226, .38);
  letter-spacing: .06em;
}

/* ---------------------------------------------------------------- 滚动进场 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 用户中心兼容 */
.uc-login, .uc-table-div, .uc-panel, #wp-user-center { font-family: var(--sans); }
.uc-login form p label { font-size: 14px; color: var(--ink-2); }
.uc-login input[type="text"], .uc-login input[type="password"],
.uc-table-div input[type="text"], .uc-table-div input[type="email"], .uc-table-div textarea {
  border: 1px solid var(--line); padding: 10px 14px; font-family: inherit; outline: none; background: #fff;
}
.uc-login input:focus, .uc-table-div input:focus, .uc-table-div textarea:focus { border-color: var(--gold); }
.uc-login input[type="submit"], .uc-table-div input[type="submit"], .uc-alert a {
  background: var(--red); color: #fff; border: none; padding: 11px 30px; letter-spacing: .1em; cursor: pointer;
}
.uc-errors, .uc-alert { background: var(--paper-2); border-left: 3px solid var(--red); padding: 14px 18px; margin-bottom: 22px; font-size: 14px; }
.uc-header-nav { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------ 用户中心头部（个人中心 / 积分 / 收藏等） */
/* .page-content ul 自带 disc 圆点，这里必须压掉 */
.page-content .uc-navuser, .page-content .uc-navbar,
.page-content .uc-header ul, .page-content .uc-header li {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.uc-header { margin-bottom: 36px; }
.uc-header-nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding: 0 0 16px;
}
.uc-navuser { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.uc-navuser > li { margin: 0; }
.uc-header-toggle, .uc-navuser > li > a {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.uc-header-avatar { display: block; line-height: 0; }
.uc-header-avatar img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); object-fit: cover;
}
.uc-header-nick { font-size: 15px; font-weight: 500; letter-spacing: .04em; }
/* 下拉菜单依赖 JS，没有脚本时整块隐藏，避免链接裸露成一行 */
.uc-header-manage { display: none; }
.uc-header-nav-mobile { display: none; }
/* 横向导航 */
.uc-navbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.uc-navbar > li { margin: 0; }
.uc-navbar a {
  display: block; padding: 8px 15px; font-size: 14px; color: var(--ink-2);
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.uc-navbar a:hover, .uc-navbar a.active { color: var(--red); border-bottom-color: var(--red); }

/* ------------------------------------------------ 个人资料表单（WordPress form-table 结构） */
.uc-table-div .form-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.uc-table-div .form-table th {
  width: 150px; padding: 14px 22px 14px 0; text-align: left; vertical-align: top;
  font-weight: 500; font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.uc-table-div .form-table td { padding: 10px 0; vertical-align: top; }
.uc-table-div .form-table input[type="text"],
.uc-table-div .form-table input[type="email"],
.uc-table-div .form-table input[type="url"],
.uc-table-div .form-table input[type="password"],
.uc-table-div .form-table select {
  width: 100%; max-width: 400px; height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 15px; font-family: inherit; border-radius: 0;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.uc-table-div .form-table textarea {
  width: 100%; max-width: 520px; min-height: 130px; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 15px; font-family: inherit; line-height: 1.7; resize: vertical;
}
.uc-table-div .form-table input:focus, .uc-table-div .form-table textarea:focus,
.uc-table-div .form-table select:focus {
  outline: 0; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 18, 26, .07);
}
.uc-table-div .form-table .description,
.uc-table-div .form-table p.description {
  font-size: 12.5px; color: var(--ink-3); margin: 7px 0 0; line-height: 1.65; max-width: 520px;
}
/* 密码字段旁的说明文字是 inline span，会贴着输入框挤在一行，强制换行到下方 */
.uc-table-div .form-table td span.description,
.uc-table-div .form-table td .description {
  display: block; margin: 7px 0 0;
}
.uc-table-div .form-table td input[type="password"] + .description { margin-bottom: 14px; }
/* 密码强度评估条 */
#pass-strength-result,
#pass-strength-result.short, #pass-strength-result.bad,
#pass-strength-result.good, #pass-strength-result.strong {
  display: block; width: fit-content; min-width: 190px; margin: 10px 0 0;
  padding: 7px 14px; font-size: 12.5px; letter-spacing: .04em;
  background: var(--paper-2); border-left: 3px solid var(--line); color: var(--ink-3);
}
#pass-strength-result.short, #pass-strength-result.bad { border-left-color: #c0503f; }
#pass-strength-result.good { border-left-color: #cfa349; }
#pass-strength-result.strong { border-left-color: #4f8b5f; }
.uc-table-div h3 {
  font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .04em;
  margin: 2.4em 0 1.2em; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.uc-table-div h3:first-of-type { margin-top: 1.2em; }
/* hidden 字段的容器段落不占位 */
.uc-table-div form > p:first-of-type { display: none; }
.uc-table-div input[type="submit"], .uc-table-div button[type="submit"],
.uc-table-div p.submit input {
  height: 46px; padding: 0 42px; border: 0; background: var(--red); color: #fff;
  font-size: 14px; letter-spacing: .18em; font-family: inherit; cursor: pointer;
  transition: background .3s;
}
.uc-table-div input[type="submit"]:hover, .uc-table-div button[type="submit"]:hover { background: var(--red-deep); }

/* ------------------------------------------------ 用户中心表单（登录 / 注册 / 找回密码） */
.uc-login, .uc-register, .uc-lostpassword, .uc-resetpass {
  max-width: 440px; margin: 0 auto; padding: 52px 46px 44px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 44px rgba(26, 26, 24, .055);
}
.uc-login form p, .uc-register form p, .uc-lostpassword form p, .uc-resetpass form p {
  display: block; margin: 0 0 20px;
}
.uc-login label, .uc-register label, .uc-lostpassword label, .uc-resetpass label {
  display: block; margin: 0 0 8px;
  font-size: 13px; letter-spacing: .08em; color: var(--ink-3);
}
.uc-login input[type="text"], .uc-login input[type="password"], .uc-login input[type="email"],
.uc-register input[type="text"], .uc-register input[type="password"], .uc-register input[type="email"],
.uc-lostpassword input[type="text"], .uc-lostpassword input[type="email"] {
  display: block; box-sizing: border-box; width: 100%; height: 48px;
  margin: 0; padding: 0 16px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-family: inherit; line-height: normal;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.uc-login input:focus, .uc-register input:focus, .uc-lostpassword input:focus {
  outline: 0; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 18, 26, .07);
}

/* 验证码区块：插件输出是 img + 空 span + label + script + label + input，一律竖向排列 */
/* 用 order 重排成：验证码图 → 验证码标签（贴输入框）→ 输入框 → 看不清提示 */
.form-captcha {
  display: flex !important; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 0 4px !important;
}
.form-captcha > span { display: none !important; }
.form-captcha #micaptcha {
  order: 1; display: block; height: 46px; width: auto; max-width: 100%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; margin-bottom: 4px;
}
.form-captcha label[for="url"] {
  order: 2; align-self: stretch; width: 100%;
  margin: 0 0 2px !important; text-align: left;
  font-size: 13px; letter-spacing: .08em; color: var(--ink-3);
}
.form-captcha #captcha_code {
  order: 3; width: 100%; text-align: center; letter-spacing: .5em; font-size: 17px;
}
.form-captcha label:not([for]) {
  order: 4; margin: 2px 0 0 !important; font-size: 12px; color: var(--ink-3);
  text-align: center; letter-spacing: .04em;
}

/* 记住我 */
.forgetmenot { display: flex !important; align-items: center; gap: 9px; margin-bottom: 24px !important; }
.forgetmenot input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.forgetmenot label { margin: 0 !important; font-size: 14px; color: var(--ink-2); }

/* 提交按钮 */
.uc-login p.submit, .uc-register p.submit, .uc-lostpassword p.submit, .uc-resetpass p.submit { margin: 0; }
.uc-login input[type="submit"], .uc-register input[type="submit"],
.uc-lostpassword input[type="submit"], .uc-resetpass input[type="submit"] {
  display: block; width: 100%; height: 50px; border: 0;
  background: var(--red); color: #fff; font-size: 15px; letter-spacing: .22em;
  font-family: inherit; cursor: pointer; transition: background .3s;
}
.uc-login input[type="submit"]:hover, .uc-register input[type="submit"]:hover { background: var(--red-deep); color: #fff; }

/* 表单下方的动作链接 */
.uc-action-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px;
  margin: 26px 0 0; padding: 22px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.uc-action-links li { font-size: 13.5px; }
.uc-action-links a { color: var(--ink-3); }
.uc-action-links a:hover { color: var(--red); }

/* ---------------------------------------------------------------- 无障碍：尊重减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; transform: none; }
  .hero-logo::before { animation: none; opacity: .9; transform: none; }
}

/* ---------------------------------------------------------------- 响应式（平板/窄屏 PC） */
@media (max-width: 1180px) {
  .wrap, .footer-inner, .footer-bottom { padding-left: 30px; padding-right: 30px; }
  .header-inner { padding: 0 30px; }
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .card-grid, .card-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .talk-grid { grid-template-columns: 1fr; }
  .talk-item { border-right: none; }
}

@media (max-width: 900px) {
  .header-inner { height: 70px; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; background: rgba(251, 249, 244, .99);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .main-nav.is-open { max-height: 76vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .main-nav a { color: var(--ink); text-shadow: none; display: block; padding: 14px 30px; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .brand-cn { font-size: 20px; }
  .hero { min-height: 82vh; }
  .card-grid, .card-grid--wide { grid-template-columns: 1fr; }
  .edu-layout, .collection-layout { grid-template-columns: 1fr; gap: 34px; }
  .intro-stats { gap: 40px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; }
  .page-hero { padding: 140px 0 64px; }
  .article-head { padding: 150px 0 54px; }
}
