/* ==========================================================================
   泽亨专业 · 高奢极简杂志风排版系统 (zeheng-professional.css)
   设计准则：纯白高奢画册环境 + 现代极简高奢黑体 + Caslon 古典衬线数字点睛
   无卡片框、无暗沉渐变、无杂乱边框、通透留白与黄金对开
   ========================================================================== */

:root {
  --pro-white: #ffffff;
  --pro-bg: #ffffff;
  --pro-ink: #0f172a;
  --pro-ink-light: #1e293b;
  --pro-slate: #334155;
  --pro-muted: #64748b;
  --pro-border: rgba(15, 23, 42, 0.08);
  --pro-border-subtle: rgba(15, 23, 42, 0.05);
  --pro-red: #79171C;
  --pro-red-hover: #981b20;
}

body.professional-page {
  background-color: var(--pro-white) !important;
  color: var(--pro-ink-light) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Avenir Next", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.professional-page * {
  box-sizing: border-box;
}

body.professional-page :is(h1, h2, h3, h4, h5, p, dl, dd, figure, blockquote) {
  margin: 0;
}

body.professional-page main#main-content {
  background-color: var(--pro-white) !important;
  color: var(--pro-ink-light) !important;
  padding-top: 68px;
}

/* 统一版芯宽度 (1240px 黄金阅读流) */
.pro-wrap {
  width: min(100% - 96px, 1240px);
  margin-inline: auto;
}

.pro-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pro-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pro-skip:focus {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 22000;
  padding: 12px 20px;
  background: var(--pro-ink);
  color: #ffffff;
  border-radius: 2px;
}

/* 1. 顶部极简导航适配 (Mega Navigation White Tone) */
html body.professional-page.has-mega-navigation #zeheng-navigation {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--pro-border) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html body.professional-page #zeheng-navigation :is(.zh-nav-brand, .zh-top-item, .zh-nav-icon) {
  color: var(--pro-ink) !important;
}

html body.professional-page #zeheng-navigation .zh-top-item[aria-current="page"] {
  color: var(--pro-red) !important;
}

/* 2. 页面主引言 (Magazine Masthead) */
.pro-intro {
  padding-top: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--pro-border);
}

.pro-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: end;
}

.pro-intro-title .pro-eyebrow {
  display: block;
  font-family: "Avenir Next", Arial, sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pro-red);
  font-weight: 600;
  margin-bottom: 18px;
}

.pro-intro-title .pro-eyebrow span {
  display: inline-block;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--pro-muted);
  letter-spacing: 0.08em;
}

.pro-intro h1 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(38px, 4.4vw, 56px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.03em !important;
  color: var(--pro-ink) !important;
  margin-bottom: 14px;
}

.pro-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--pro-muted);
  letter-spacing: 0.02em;
}

.pro-intro-note {
  font-size: 15px;
  line-height: 1.95;
  color: var(--pro-slate);
  padding-left: 28px;
  border-left: 2px solid var(--pro-red);
  max-width: 480px;
}

/* 3. 通用章节表头 (Chapter Header Bar) */
.pro-chapter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--pro-border);
}

.pro-chapter-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.pro-chapter-num {
  font-family: "Libre Caslon Text", "Times New Roman", Georgia, serif !important;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1;
  color: var(--pro-red);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pro-chapter-en {
  font-family: "Avenir Next", Arial, sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pro-muted);
  font-weight: 600;
}

.pro-chapter-left h2 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(24px, 2.6vw, 32px) !important;
  font-weight: 600 !important;
  color: var(--pro-ink) !important;
  letter-spacing: 0.03em !important;
}

.pro-chapter-note {
  font-size: 13px;
  color: var(--pro-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 4. Chapter 01: 出版著述展台 (Monograph Spread) */
.pro-publication {
  padding-top: 88px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--pro-border);
}

.pro-book-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: clamp(48px, 6vw, 84px);
  align-items: start;
}

.pro-book-cover-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pro-book-cover {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 16px;
  border: 1px solid var(--pro-border);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.pro-book-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.18), 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.pro-book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.pro-book-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--pro-muted);
  padding: 12px 0;
  border-top: 1px solid var(--pro-border-subtle);
  width: 100%;
  max-width: 400px;
}

.pro-book-meta-strip span strong {
  color: var(--pro-ink);
  font-weight: 500;
  margin-right: 6px;
}

.pro-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: var(--pro-red);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
  min-height: 48px;
  width: 100%;
  max-width: 400px;
}

.pro-primary-button:hover {
  background: var(--pro-red-hover);
}

.pro-btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.pro-primary-button:hover .pro-btn-arrow {
  transform: translateX(4px);
}

/* 右侧著述内容流 */
.pro-book-copy {
  display: flex;
  flex-direction: column;
}

.pro-book-copy > .pro-eyebrow {
  font-family: "Avenir Next", Arial, sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pro-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.pro-book-copy h3 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 600 !important;
  color: var(--pro-ink) !important;
  line-height: 1.25 !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 16px;
}

.pro-book-subtitle {
  display: block;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  color: var(--pro-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.pro-book-description {
  font-size: 15px;
  line-height: 2.1;
  color: var(--pro-slate);
  margin-bottom: 36px;
}

.pro-book-quote {
  position: relative;
  margin: 36px 0;
  padding: 24px 32px;
  background: #fbfcfd;
  border-left: 3px solid var(--pro-red);
}

.pro-book-quote blockquote {
  font-size: 15px;
  line-height: 2.0;
  color: var(--pro-ink-light);
  font-style: normal;
}

.pro-book-quote figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--pro-muted);
  letter-spacing: 0.04em;
}

/* 六大篇章目录导览 */
.pro-book-toc {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--pro-border);
}

.pro-toc-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--pro-ink);
  margin-bottom: 18px;
}

.pro-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 48px;
}

.pro-toc-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: var(--pro-slate);
  line-height: 1.6;
}

.pro-toc-num {
  font-family: "Libre Caslon Text", Georgia, serif !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pro-red);
  font-weight: 600;
  white-space: nowrap;
}

/* 编审委员会 */
.pro-book-board {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--pro-border);
  font-size: 13px;
  line-height: 1.85;
}

.pro-board-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pro-red);
  margin-bottom: 8px;
}

.pro-board-names {
  margin: 0;
  color: var(--pro-slate);
  line-height: 1.9;
}

/* 5. Chapter 02: 专业文章与深度实务 (Insights & Articles Flow) */
.pro-insights {
  padding-top: 88px;
  padding-bottom: 96px;
  background-color: var(--pro-white);
}

.pro-insights-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pro-border);
}

/* 极简分类 Tabs */
.pro-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.pro-filters button {
  position: relative;
  background: none;
  border: 0;
  color: var(--pro-muted);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pro-filters button:hover {
  color: var(--pro-ink);
}

.pro-filters button[aria-pressed="true"] {
  color: var(--pro-red) !important;
  font-weight: 600;
}

.pro-filters button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--pro-red);
}

/* 极简单线搜索栏 */
.pro-search-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pro-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  width: 260px;
  transition: border-color 0.2s ease;
}

.pro-search:focus-within {
  border-bottom-color: var(--pro-red);
}

.pro-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pro-ink);
  font-size: 13px;
  padding: 8px 0;
}

.pro-search button {
  background: none;
  border: 0;
  padding: 8px 0 8px 8px;
  color: var(--pro-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.pro-search button:hover {
  color: var(--pro-red);
}

.pro-search svg {
  width: 16px;
  height: 16px;
}

.pro-result-count {
  font-size: 12px;
  color: var(--pro-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 动态文章流容器 */
.pro-articles-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.pro-articles-grid.is-single {
  grid-template-columns: minmax(0, 720px);
}

/* 特稿 (Featured Lead Article) */
.pro-feature {
  display: flex;
  flex-direction: column;
  padding-right: clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--pro-border);
}

.pro-article-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  margin-bottom: 14px;
}

.pro-article-meta span {
  font-family: "Avenir Next", Arial, sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pro-red);
  font-weight: 600;
}

.pro-article-meta time {
  font-family: "Libre Caslon Text", Georgia, serif !important;
  color: var(--pro-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.pro-feature h3 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.03em !important;
  color: var(--pro-ink) !important;
  margin-bottom: 20px;
}

.pro-feature h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pro-feature h3 a:hover {
  color: var(--pro-red);
}

.pro-feature-photo {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 20px;
}

.pro-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pro-feature-photo:hover img {
  transform: scale(1.03);
}

.pro-feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--pro-red);
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px solid var(--pro-border-subtle);
  letter-spacing: 0.04em;
}

.pro-feature-link span {
  font-family: "Avenir Next", Arial, sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pro-muted);
}

/* 文章清单 (Editorial Directory Rows) */
.pro-article-list {
  display: flex;
  flex-direction: column;
}

.pro-article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--pro-border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.pro-article-row:first-child {
  padding-top: 12px;
}

.pro-article-row:hover {
  background-color: #fbfcfd;
}

.pro-article-row:hover h3 {
  color: var(--pro-red);
}

.pro-article-row h3 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(17px, 1.6vw, 20px) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.03em !important;
  color: var(--pro-ink) !important;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.pro-article-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--pro-muted);
  font-size: 16px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.pro-article-row:hover .pro-article-arrow {
  transform: translateX(4px);
  color: var(--pro-red);
}

/* 加载更多 */
.pro-more-row {
  padding-top: 40px;
  text-align: center;
}

.pro-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--pro-muted);
  color: var(--pro-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-text-link:hover {
  color: var(--pro-red);
  border-bottom-color: var(--pro-red);
}

/* 空状态与加载状态 */
.pro-empty,
.pro-loading {
  padding: 72px 24px;
  text-align: center;
  color: var(--pro-muted);
}

.pro-empty h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--pro-ink);
  margin-bottom: 8px;
}

.pro-empty p {
  font-size: 14px;
  color: var(--pro-muted);
  margin-bottom: 18px;
}

/* 6. 样章阅读器弹窗 (Sample Reader Dialog) */
.pro-reader {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--pro-border);
  background: #ffffff;
  color: var(--pro-ink);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border-radius: 4px;
}

.pro-reader[open] {
  display: flex;
  flex-direction: column;
}

.pro-reader::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.professional-page.pro-reader-open {
  overflow: hidden;
}

.pro-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--pro-border);
  background: #fbfcfd;
}

.pro-reader-head h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--pro-ink) !important;
}

.pro-reader-head p {
  margin-top: 4px;
  color: var(--pro-muted);
  font-size: 12px;
}

.pro-reader-head button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--pro-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pro-reader-head button:hover {
  color: var(--pro-red);
}

.pro-reader-page {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
}

.pro-reader-page img {
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: auto;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.pro-reader-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--pro-border);
  background: #ffffff;
}

.pro-reader-controls :is(button, a) {
  min-height: 40px;
  border: 1px solid var(--pro-border);
  background: #ffffff;
  color: var(--pro-ink);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-reader-controls :is(button, a):hover:not(:disabled) {
  border-color: var(--pro-red);
  color: var(--pro-red);
}

.pro-reader-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 7. 动效揭示 (GSAP/ScrollTrigger & Motion) */
.professional-motion [data-pro-reveal] {
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.professional-motion [data-pro-reveal].pro-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* 8. 响应式适配 */
@media (max-width: 960px) {
  .pro-wrap {
    width: calc(100% - 48px);
  }
  .pro-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pro-intro-note {
    max-width: 100%;
  }
  .pro-book-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pro-book-cover {
    max-width: 320px;
  }
  .pro-toc-grid {
    grid-template-columns: 1fr;
  }
  .pro-articles-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pro-feature {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--pro-border);
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .pro-wrap {
    width: calc(100% - 32px);
  }
  .pro-intro {
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .pro-chapter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 36px;
  }
  .pro-publication,
  .pro-insights {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .pro-insights-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pro-search {
    width: 100%;
  }
  .pro-search-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .pro-filters button[aria-pressed="true"]::after {
    bottom: -1px;
  }
}
