:root{--c-primary:#b08d57;}
:root {
  --leather: #6f4e37;
  --leather-deep: #52382a;
  --paper: #f8f1e3;
  --paper-2: #efe6d3;
  --ink: #333333;
  --brass: #a67c00;
  --muted: #7d6a56;
  --line: #d9cdb6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Serif SC', serif; color: var(--ink); line-height: 2; background: var(--paper); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; line-height: 1.4; }
.site-header { background: var(--leather); border-bottom: 3px solid var(--brass); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(82, 56, 42, .35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { color: #f8f1e3; font-size: 24px; letter-spacing: 2px; }
.brand i { font-style: normal; color: #e0c07a; }
.brand::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 10px; border: 3px solid var(--brass); background: var(--leather-deep); border-radius: 3px; vertical-align: middle; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: rgba(248, 241, 227, .85); font-size: 15px; letter-spacing: 2px; padding: 8px 0; position: relative; }
.main-nav a:hover { color: #e0c07a; }
.main-nav a.active { color: #e0c07a; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--brass); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(224, 192, 122, .5); cursor: pointer; width: 36px; padding: 4px 5px; z-index: 110; }
.nav-toggle span { display: block; height: 2px; background: #e0c07a; margin: 4px 0; }
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--leather) 0%, var(--leather-deep) 100%); min-height: 660px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(82, 56, 42, .9) 0%, rgba(82, 56, 42, .72) 60%, rgba(111, 78, 55, .55) 100%); }
.spine-wall { position: absolute; top: 0; bottom: 0; width: 110px; display: flex; flex-direction: column; gap: 8px; padding: 24px 14px; }
.spine-wall.left { left: 0; }
.spine-wall.right { right: 0; align-items: flex-end; }
.spine-wall .book { display: block; border-radius: 2px; }
.spine-wall .book.b1 { width: 22px; height: 150px; background: #7a5238; }
.spine-wall .book.b2 { width: 26px; height: 120px; background: #8a5a2a; }
.spine-wall .book.b3 { width: 18px; height: 160px; background: #5a4630; }
.spine-wall .book.b4 { width: 24px; height: 100px; background: var(--brass); }
.spine-wall .book.b5 { width: 20px; height: 140px; background: #3f3226; }
.spine-wall .book.b6 { width: 24px; height: 130px; background: #9a6a3a; }
.spine-wall .book.b7 { width: 19px; height: 110px; background: #6f4e37; }
.hero-content { position: relative; z-index: 5; max-width: 640px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-block; font-family: 'Cormorant Garamond', serif; font-style: italic; color: #e0c07a; font-size: 16px; letter-spacing: 2px; }
.hero h1 { font-size: 58px; color: #f8f1e3; margin: 20px 0 12px; letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: #e0c07a; }
.hero p { color: rgba(248, 241, 227, .82); max-width: 560px; margin: 0 auto; }
.hero-actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--brass); color: var(--paper); padding: 13px 36px; font-weight: 700; letter-spacing: 2px; transition: .3s; border: none; cursor: pointer; font-size: 15px; }
.btn:hover { background: #8a6700; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn.outline { background: transparent; color: #e0c07a; border: 1px solid #e0c07a; }
.btn.outline:hover { background: rgba(224, 192, 122, .15); }
.section { padding: 92px 0; }
.section.alt { background: #fff; }
.section.paper2 { background: var(--paper-2); }
.section-head { text-align: center; margin-bottom: 52px; }
.kicker { font-family: 'Cormorant Garamond', serif; font-style: italic; letter-spacing: 3px; color: var(--brass); font-size: 16px; }
.section-head h2 { font-size: 36px; margin-top: 6px; }
.section-head h2::after { content: ""; display: block; width: 90px; height: 2px; background: var(--brass); margin: 16px auto 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border: 6px solid var(--paper); outline: 1px solid var(--line); box-shadow: 0 20px 44px rgba(82, 56, 42, .22); }
.about-media::after { content: ""; position: absolute; left: -14px; top: -14px; width: 90px; height: 90px; border-left: 3px solid var(--brass); border-top: 3px solid var(--brass); }
.about-text h3 { font-size: 30px; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.stats { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.stat b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 44px; color: var(--brass); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.more-link { display: inline-block; margin-top: 20px; color: var(--brass); font-weight: 700; border-bottom: 2px solid var(--brass); padding-bottom: 4px; letter-spacing: 1px; }
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.paper-card { position: relative; background: var(--paper); border: 1px solid var(--line); padding: 34px 26px; box-shadow: 0 14px 30px rgba(82, 56, 42, .1); transition: .35s; }
.paper-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(82, 56, 42, .18); }
.paper-card::before { content: attr(data-num); position: absolute; top: 14px; right: 18px; font-family: 'Cormorant Garamond', serif; font-size: 40px; color: rgba(166, 124, 0, .25); }
.paper-card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 16px; }
.paper-card h3 { font-size: 22px; margin-bottom: 8px; }
.paper-card p { font-size: 14px; color: var(--muted); }
.paper-card .shelf { display: block; margin-top: 14px; font-size: 13px; color: var(--brass); letter-spacing: 1px; border-top: 1px solid var(--line); padding-top: 10px; }
.agenda-list { max-width: 860px; margin: 0 auto; }
.agenda-item { display: flex; gap: 26px; padding: 24px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.agenda-item:last-child { border-bottom: none; }
.agenda-time { flex: 0 0 120px; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--leather); }
.agenda-item .dot { flex: 0 0 12px; height: 12px; margin-top: 10px; border: 2px solid var(--brass); border-radius: 50%; background: var(--paper-2); }
.agenda-item h3 { font-size: 20px; }
.agenda-item p { font-size: 14px; color: var(--muted); }
.quote { margin: 40px auto; max-width: 760px; padding: 26px 34px; background: var(--paper-2); border-left: 5px solid var(--brass); font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; font-style: italic; font-size: 22px; line-height: 1.9; }
.quote .author { display: block; font-style: normal; font-size: 14px; color: var(--brass); margin-top: 12px; letter-spacing: 2px; }
.port-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.port-item { position: relative; overflow: hidden; display: block; }
.port-item img { width: 100%; height: 260px; object-fit: cover; transition: .5s; }
.port-item:hover img { transform: scale(1.08); }
.port-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(51, 51, 51, .92)); color: var(--paper); text-align: center; font-size: 15px; letter-spacing: 2px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--line); transition: .35s; }
.blog-card:hover { box-shadow: 0 18px 40px rgba(82, 56, 42, .16); transform: translateY(-6px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-body { padding: 22px; }
.blog-date { font-family: 'Cormorant Garamond', serif; color: var(--brass); font-size: 15px; letter-spacing: 1px; }
.blog-card h3 { font-size: 20px; margin: 8px 0; }
.blog-card p { font-size: 14px; color: var(--muted); }
.read-more { display: inline-block; margin-top: 12px; color: var(--brass); font-weight: 700; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); padding: 32px 20px; transition: .35s; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(82, 56, 42, .14); }
.team-card img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 16px; border: 4px solid var(--brass); object-fit: cover; }
.team-card h3 { font-size: 22px; }
.team-card .role { color: var(--brass); font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.team-card p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.cap { width: 34px; height: 16px; margin: 0 auto 12px; background: var(--leather); position: relative; }
.cap::before { content: ""; position: absolute; top: -10px; left: -14px; width: 62px; height: 10px; background: var(--brass); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cap::after { content: ""; position: absolute; bottom: -8px; left: 12px; width: 10px; height: 8px; background: var(--brass); }
.cta { position: relative; overflow: hidden; background: var(--leather-deep); color: var(--paper); text-align: center; padding: 92px 0; }
.cta h2 { font-size: 38px; color: #fff; position: relative; z-index: 2; }
.cta p { color: rgba(248, 241, 227, .75); position: relative; z-index: 2; margin: 12px 0 30px; }
.cta .btn { position: relative; z-index: 2; }
.site-footer { background: var(--leather-deep); color: rgba(248, 241, 227, .7); padding-top: 70px; border-top: 3px solid var(--brass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { font-size: 22px; color: #f8f1e3; letter-spacing: 2px; margin-bottom: 14px; }
.footer-brand i { font-style: normal; color: #e0c07a; }
.site-footer p { font-size: 14px; }
.site-footer h4 { color: #e0c07a; font-size: 17px; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(248, 241, 227, .7); padding: 5px 0; font-size: 14px; }
.footer-links a:hover { color: #e0c07a; }
.footer-bottom { border-top: 1px solid rgba(224, 192, 122, .3); padding: 20px 0; text-align: center; font-size: 14px; }
.page-hero { position: relative; overflow: hidden; background: var(--leather-deep); padding: 130px 0; text-align: center; color: var(--paper); }
.page-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: rgba(82, 56, 42, .86); }
.page-hero .container { position: relative; z-index: 3; }
.page-hero h1 { font-size: 52px; color: #f8f1e3; letter-spacing: 2px; }
.page-hero .crumb { color: #e0c07a; font-size: 15px; margin-top: 10px; font-family: 'Cormorant Garamond', serif; font-style: italic; letter-spacing: 2px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-box { text-align: center; padding: 42px 26px; background: #fff; border: 1px solid var(--line); transition: .35s; }
.value-box:hover { box-shadow: 0 16px 36px rgba(82, 56, 42, .12); transform: translateY(-6px); }
.value-box .cap { width: 30px; height: 14px; }
.value-box .cap::before { width: 54px; height: 9px; left: -12px; }
.value-box h3 { font-size: 22px; margin-bottom: 10px; }
.value-box p { font-size: 14px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-grid h3 { font-size: 30px; margin: 10px 0 26px; }
.info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.info-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--leather); color: #e0c07a; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.info-item h4 { font-size: 18px; }
.info-item p { font-size: 14px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--line); padding: 34px; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: block; }
.form input, .form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); font: inherit; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(166, 124, 0, .15); }
.form textarea { min-height: 150px; resize: vertical; }
.map-box { position: relative; height: 340px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background-image: linear-gradient(rgba(111, 78, 55, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 78, 55, .12) 1px, transparent 1px); background-size: 28px 28px; background-color: #fff; margin-top: 60px; overflow: hidden; }
.map-box .map-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 6px rgba(166, 124, 0, .22), 0 0 26px rgba(166, 124, 0, .55); }
.map-box .map-label { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--muted); letter-spacing: 2px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gallery-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery-card img { width: 100%; height: 320px; object-fit: cover; transition: .5s; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 16px 16px; background: linear-gradient(transparent, rgba(51, 51, 51, .94)); color: var(--paper); text-align: center; }
.gallery-cap h3 { font-size: 20px; color: #fff; }
.gallery-cap p { font-size: 13px; color: #e0c07a; font-family: 'Cormorant Garamond', serif; font-style: italic; }
.article-item { display: grid; grid-template-columns: 380px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); margin-bottom: 30px; transition: .3s; }
.article-item:hover { box-shadow: 0 18px 40px rgba(82, 56, 42, .12); }
.article-item img { width: 100%; height: 230px; object-fit: cover; }
.article-body { padding: 28px 30px; }
.article-date { font-family: 'Cormorant Garamond', serif; color: var(--brass); letter-spacing: 1px; font-size: 15px; }
.article-body h2 { font-size: 26px; margin: 8px 0; }
.article-body p { color: var(--muted); font-size: 15px; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-wrap { position: relative; }
  .main-nav { display: none; position: absolute; top: 74px; left: -20px; right: -20px; background: var(--leather); padding: 8px 24px 20px; border-bottom: 3px solid var(--brass); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(224, 192, 122, .15); }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 38px; }
  .spine-wall { width: 60px; }
  .spine-wall .book { transform: scale(.7); }
  .section { padding: 62px 0; }
  .about-grid, .contact-grid, .article-item { grid-template-columns: 1fr; }
  .paper-grid, .team-grid, .blog-grid, .values-grid { grid-template-columns: 1fr; }
  .port-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .agenda-item { flex-wrap: wrap; gap: 10px; }
  .page-hero { padding: 92px 0; }
  .page-hero h1 { font-size: 34px; }
}


/* ===== CMS helpers ===== */
.form-alert{padding:12px 16px;border-radius:8px;margin:0 0 16px;font-size:.92rem;line-height:1.6}
.form-alert-ok{background:rgba(46,160,67,.08);border:1px solid rgba(46,160,67,.35);color:#2ea043}
.form-alert-err{background:rgba(220,53,69,.08);border:1px solid rgba(220,53,69,.35);color:#dc3545}
.form-alert ul{margin:0;padding-left:18px}
.cms-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:44px 0 0}
.cms-pager a,.cms-pager span{min-width:38px;padding:8px 13px;border:1px solid rgba(128,128,128,.35);border-radius:6px;text-align:center;text-decoration:none;color:inherit}
.cms-pager .active{background:var(--c-primary);border-color:var(--c-primary);color:#fff}
.detail-page{max-width:1100px;margin:0 auto;padding:72px 24px}
.detail-media{width:100%;max-height:520px;object-fit:cover;border-radius:14px;margin-bottom:26px;display:block}
.detail-title{font-size:clamp(26px,3vw,38px);line-height:1.3;margin-bottom:12px}
.detail-meta{color:#777;font-size:.95rem;margin-bottom:20px}
.detail-body{line-height:1.9;color:#444}
.detail-body p{margin-bottom:1em}
.detail-body img{max-width:100%;height:auto;border-radius:10px}
.detail-back{display:inline-block;margin-top:28px;padding:11px 26px;border:1px solid rgba(128,128,128,.4);border-radius:999px;text-decoration:none;color:inherit}
/* ===== 深色 banner 标题白字（避免 h1 与背景同色不可读） ===== */
.banner--ink h1,.banner--purple h1,.banner--coral h1{color:#fff}
/* ===== 阅读全文按钮（硬边 neo-brutalist 风格） ===== */
.news-item .more{display:inline-block;margin-top:14px;padding:10px 20px;background:var(--c-ink);color:#fff;border:var(--border-2);box-shadow:var(--shadow-sm);font-family:var(--font-en);font-weight:800;font-size:.85rem;letter-spacing:.02em;text-decoration:none;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.news-item .more:hover{background:var(--c-coral);transform:translate(-2px,-2px);box-shadow:var(--shadow)}
/* ===== 留言板一行一个 input（01 翰墨轩） ===== */
.form-grid{grid-template-columns:1fr}

/* agenda 浅底白字修复 */
.section.alt .agenda-item h3{color:var(--ink,#17324f)}
.section.alt .agenda-item p{color:var(--muted,#5b7896)}
