/* 中堂画网 (www.zhongtanghua.com) — Neo-Chinese Editorial Gallery Stylesheet */
:root {
  --bg-paper: #f7f3eb;
  --bg-card: #ffffff;
  --bg-alt: #efe8da;
  --bg-ink: #1e1b18;
  --bg-ink-soft: #2b2621;
  --text-main: #231f1b;
  --text-muted: #5d564d;
  --text-light: #e8e0d2;
  --accent-red: #a62c22;
  --accent-red-dark: #842018;
  --accent-gold: #9a7638;
  --border-soft: #e2d8c7;
  --border-strong: #cbbba1;
  --shadow-sm: 0 4px 14px rgba(35, 31, 27, 0.05);
  --shadow-md: 0 12px 28px rgba(35, 31, 27, 0.09);
  --radius-sm: 6px;
  --radius-md: 12px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--accent-red);
  background: rgba(166, 44, 34, 0.06);
}

.nav-item.is-active {
  color: var(--accent-red);
  background: rgba(166, 44, 34, 0.1);
  font-weight: 600;
}

.header-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  width: 240px;
  flex-shrink: 0;
}

.header-search input {
  border: 0;
  outline: none;
  padding: 8px 12px 8px 14px;
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--text-main);
}

.header-search button {
  border: 0;
  background: var(--bg-ink);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button:hover {
  background: var(--accent-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
}

.mobile-drawer {
  border-top: 1px solid var(--border-soft);
  background: #faf7f0;
  padding: 16px 0 20px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
}

.mobile-search button {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-red);
  color: #fff;
  font-weight: 600;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-links a {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  text-align: center;
  font-weight: 500;
}

.mobile-links a.is-active {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Top Announcement Banner (Homepage) */
.announce-bar {
  background: linear-gradient(90deg, #2a211b 0%, #3a261e 50%, #2a211b 100%);
  color: #f4ead8;
  border-bottom: 2px solid var(--accent-gold);
}

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

.announce-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 3px;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #f4ead8;
}

/* Hero */
.hero-section {
  padding: 56px 0 64px;
  background: radial-gradient(circle at 85% 20%, rgba(154, 118, 56, 0.12), transparent 55%),
              linear-gradient(180deg, #faf7f0 0%, var(--bg-paper) 100%);
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.detail-visual-col,
.detail-info-col,
.center-painting-wrap,
.calc-inputs,
.calc-output,
.series-card,
.art-card,
.article-card,
.announce-text,
.info-card {
  min-width: 0;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg-ink);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-red);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bg-ink);
  line-height: 1.2;
}

.stat-item span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-frame {
  background: #fff;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-frame img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 6px 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.caption-tag {
  padding: 2px 8px;
  background: var(--bg-alt);
  color: var(--accent-red);
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-ink {
  background: var(--bg-ink);
  color: var(--text-light);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.3;
  color: var(--bg-ink);
}

.section-head-light .section-title {
  color: #fff;
}

.section-more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-red);
}

.section-head-light .section-more {
  color: #e6c484;
}

/* Series Grid (9 cards) */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.series-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.series-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7dfd0;
}

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

.series-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  background: rgba(30, 27, 24, 0.82);
  color: #f4ead8;
  font-size: 12px;
  border-radius: 999px;
}

.series-body {
  padding: 16px 18px 18px;
}

.series-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.series-code {
  color: var(--accent-red);
  font-weight: 700;
}

.series-tag {
  color: var(--text-muted);
}

.series-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--bg-ink);
}

.series-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Artwork Gallery Grid */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

.art-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.art-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #e8e0d0;
  overflow: hidden;
}

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

.art-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  background: rgba(166, 44, 34, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
}

.art-code {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  background: rgba(30, 27, 24, 0.78);
  color: #f4ead8;
  font-size: 11px;
  border-radius: 4px;
}

.art-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.art-series-pill {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
}

.art-dpi {
  font-size: 11.5px;
  color: var(--text-muted);
}

.art-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
}

.art-title a:hover {
  color: var(--accent-red);
}

.art-couplet {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.art-specs {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Tool Promo Grid */
.tool-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-promo-card {
  background: var(--bg-ink-soft);
  border: 1px solid rgba(230, 196, 132, 0.22);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.tool-num {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #e6c484;
  font-weight: 700;
  margin-bottom: 10px;
}

.tool-promo-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
}

.tool-promo-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #cfc6b8;
  line-height: 1.7;
  flex: 1;
}

.tool-link {
  color: #e6c484;
  font-weight: 600;
  font-size: 14.5px;
}

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

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-cat {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(166, 44, 34, 0.09);
  color: var(--accent-red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--accent-red);
}

.article-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.read-more {
  color: var(--accent-red);
  font-weight: 600;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(180deg, #efe8da 0%, #f7f3eb 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 36px 0 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.page-banner h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.3;
  color: var(--bg-ink);
}

.page-banner-desc {
  margin: 0;
  max-width: 820px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.series-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-strong);
  font-size: 13.5px;
  color: var(--text-muted);
}

.series-banner-meta strong {
  color: var(--bg-ink);
}

/* Filter Bar */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 5px;
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 5px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--bg-paper);
  color: var(--text-main);
}

.pill:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.pill.is-active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* Artwork Detail */
.detail-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 32px;
  align-items: start;
}

.scroll-preview-frame {
  background: #ede5d5;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.couplet-strip {
  background: #fdf9f0;
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  padding: 14px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #2b2119;
  font-weight: 600;
  min-height: 260px;
  box-shadow: inset 0 0 0 3px #f3ead7;
}

.center-painting-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.couplet-banner {
  padding: 4px 18px;
  background: #fdf9f0;
  border: 1px solid var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  font-weight: 700;
  color: var(--accent-red);
}

.center-painting-wrap img {
  width: 100%;
  border: 6px solid #3c2a1e;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.preview-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.info-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--bg-ink);
}

.meaning-box {
  margin-top: 14px;
  padding: 12px 15px;
  background: var(--bg-paper);
  border-left: 3px solid var(--accent-red);
  font-size: 14.5px;
  border-radius: 0 6px 6px 0;
}

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14.5px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-row strong {
  color: var(--bg-ink);
  text-align: right;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ai-head h2,
.ai-head h3 {
  margin: 0;
  font-size: 17px;
  font-family: var(--font-serif);
}

.btn-copy {
  padding: 6px 14px;
  border: 1px solid var(--accent-gold);
  background: var(--bg-paper);
  color: var(--bg-ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--accent-gold);
  color: #fff;
}

.prompt-code {
  margin: 0;
  padding: 14px;
  background: #1f1c18;
  color: #f3ead7;
  border-radius: 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-block {
  margin-top: 48px;
}

/* Tools Page */
.tool-panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.tool-panel-head {
  margin-bottom: 24px;
}

.tool-panel-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
}

.tool-panel-head p {
  margin: 0;
  color: var(--text-muted);
}

.calc-grid,
.ai-builder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-ink);
}

.field input,
.field select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  color: var(--text-main);
  width: 100%;
}

.calc-output {
  background: var(--bg-paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
}

.calc-output h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 19px;
}

.result-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-box {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.kpi-box span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-box strong {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent-red);
}

.calc-tip {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Couplets Grid */
.couplet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.couplet-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.couplet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.couplet-banner-tag {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 15px;
}

.couplet-lines p {
  margin: 6px 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--bg-ink);
}

.couplet-lines span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}

.couplet-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

/* Tables & Catalog */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.album-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.album-card h2 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 21px;
}

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

.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-gold);
}

.sub-panel {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sub-panel-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.data-table th {
  background: var(--bg-paper);
  color: var(--bg-ink);
  font-weight: 600;
  white-space: nowrap;
}

.table-link {
  color: var(--accent-red);
  font-weight: 600;
}

/* Article Detail */
.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 30px;
  align-items: start;
}

.article-content-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-lead {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--bg-paper);
  border-left: 4px solid var(--accent-gold);
  font-size: 15.5px;
  color: var(--text-main);
  border-radius: 0 6px 6px 0;
}

.prose h2 {
  margin: 28px 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bg-ink);
}

.prose h3 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: 18px;
}

.prose p {
  margin: 0 0 15px;
  line-height: 1.85;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
}

.tag-chip {
  padding: 3px 10px;
  background: var(--bg-paper);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-muted);
}

.tag-chip:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.article-cta-banner {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--bg-ink);
  color: #f4ead8;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cta-banner p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #cfc6b8;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-series-list,
.sidebar-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-series-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14.5px;
}

.sidebar-series-list li a:hover {
  color: var(--accent-red);
}

.sidebar-article-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}

.sidebar-article-list li a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.sidebar-article-list li a:hover {
  color: var(--accent-red);
}

.sidebar-article-list small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Search, About, Empty */
.page-search-form {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  max-width: 580px;
}

.page-search-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
}

.search-section {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
}

.check-list {
  padding-left: 20px;
  margin: 0;
}

.check-list li {
  margin-bottom: 10px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
}

.not-found-box h1 {
  font-family: var(--font-serif);
  margin: 8px 0 12px;
}

/* Footer */
.site-footer {
  background: var(--bg-ink);
  color: #cfc6b8;
  border-top: 3px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 48px 20px 38px;
}

.footer-seal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-red);
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-title {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
}

.footer-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #e6c484;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: #fff;
}

.footer-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  font-size: 13.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-series-list a:hover,
.footer-links a:hover {
  color: #e6c484;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.beian-wrap a {
  color: #e6c484;
}

.beian-wrap a:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints (Tablet & 375px Mobile Zero Horizontal Overflow) */
@media (max-width: 1080px) {
  .header-search {
    display: none;
  }
  .artwork-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .series-grid,
  .tool-promo-grid,
  .article-grid,
  .artwork-grid-3,
  .album-grid,
  .couplet-grid,
  .detail-grid,
  .calc-grid,
  .ai-builder-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 38px;
  }
  .header-inner {
    min-height: 62px;
  }
  .announce-inner {
    align-items: flex-start;
    gap: 8px;
  }
  .announce-text {
    font-size: 13px;
  }
  .hero-section {
    padding: 32px 0 38px;
  }
  .hero-title {
    font-size: 26px;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 23px;
  }
  .page-banner h1 {
    font-size: 24px;
  }
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  .scroll-preview-frame {
    grid-template-columns: 32px 1fr 32px;
    gap: 6px;
    padding: 12px 8px;
  }
  .couplet-strip {
    font-size: 12.5px;
    letter-spacing: 0.12em;
    min-height: 190px;
    padding: 10px 4px;
  }
  .tool-panel,
  .article-content-card,
  .info-card,
  .sub-panel {
    padding: 18px 14px;
  }
  .result-kpis {
    grid-template-columns: 1fr;
  }
  .page-search-form {
    flex-direction: column;
  }
}
