/* All five pages use the home page's header and footer measurements. */
/* Quiet ink-colored scroll handles, without the white native track or arrows. */
html, .chapter-page, .chapter-page * {
    scrollbar-width: thin;
    scrollbar-color: #a99a7b transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #a99a7b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #81755e; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

.new-artwork-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 7px 14px; border: 1px solid #b6a58a;
    border-radius: 2px; background: #f7f0e3; color: #675a4c;
    font: 14px/1.5 'SimSun', 'Noto Serif SC', serif; white-space: nowrap; cursor: pointer;
}
.new-artwork-button:hover { background: #ede3cf; border-color: #8c795a; }
.new-artwork-button:focus-visible { outline: 2px solid #496054; outline-offset: 3px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.share-actions .new-artwork-button { min-height: 48px; }
.work-session-notice {
    position: fixed; top: 116px; right: 24px; z-index: 200;
    width: min(350px, calc(100% - 32px)); padding: 18px 42px 18px 20px;
    background: #faf5e9; border: 1px solid #c7bca5; border-radius: 3px;
    box-shadow: 0 5px 24px #51483320; color: #496054; font: 14px/1.8 'Microsoft YaHei', sans-serif;
}
.work-session-notice p { margin: 0 0 10px; }
.work-session-notice .notice-close { position: absolute; right: 8px; top: 7px; border: 0; background: transparent; color: #675a4c; font-size: 22px; cursor: pointer; }

.site-header, .site-footer {
    flex: 0 0 auto;
    width: 100%;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header { position: sticky; top: 0; z-index: 100; margin: 0; padding: 15px 0; border-bottom: 1px solid #d7ccc8; }
.site-header .container, .site-footer .container { position: relative; width: 100%; max-width: 1400px; min-height: 0; margin: 0 auto; padding: 0 20px; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; gap: 0; }
.site-header .logo { display: flex; flex-direction: column; align-items: flex-start; margin: 0; text-align: left; }
.site-header .logo h1 { margin: 0; color: #3e2723; font: 500 1.5rem/1.6 'SimSun', 'Noto Serif SC', serif; letter-spacing: .05em; }
.site-header .logo .subtitle { margin: 2px 0 0; color: #8d6e63; font: 300 1.1rem/1.6 'Microsoft YaHei', 'Noto Sans SC', sans-serif; letter-spacing: .03em; }
.site-header .main-nav { display: block; margin: 0; overflow: visible; }
.site-header .main-nav ul { display: flex; flex-wrap: nowrap; width: auto; margin: 0; padding: 0; gap: 30px; list-style: none; }
.site-header .main-nav li { position: relative; margin: 0; padding: 0; }
.site-header .main-nav a { display: flex; flex-direction: column; align-items: center; padding: 5px 0; border: 0; color: #3e2723; font: 400 .9rem/1.6 'Microsoft YaHei', 'Noto Sans SC', sans-serif; text-decoration: none; white-space: nowrap; }
.site-header .main-nav a:hover, .site-header .main-nav a.active { color: #8d6e63; }
.site-header .main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px; background: #8d6e63; transform: translateX(-50%); transition: width .3s ease; }
.site-header .main-nav a:hover::after, .site-header .main-nav a.active::after { width: 100%; }
.site-header .en-text { display: block; margin: 2px 0 0; color: #bcaaa4; font: 300 .7rem/1.6 'Microsoft YaHei', 'Noto Sans SC', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.site-footer { position: relative; bottom: 0; margin: auto 0 0; padding: 30px 0; border-top: 1px solid #d7ccc8; }
.site-footer .footer-content { display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin: 0 0 20px; padding: 0; gap: 0; }
.site-footer .footer-info h3 { margin: 0 0 5px; color: #4e342e; font: 500 1.2rem/1.6 'SimSun', 'Noto Serif SC', serif; }
.site-footer .footer-info p { margin: 0; color: #8d6e63; font-size: .9rem; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.site-footer .footer-links a { color: #8d6e63; font-size: .9rem; text-decoration: none; }
.site-footer .footer-links a:hover { color: #4e342e; }
.site-footer .copyright { margin: 0; padding: 20px 0 0; border-top: 1px solid #d7ccc8; color: #bcaaa4; font-size: .85rem; text-align: center; }
.site-footer .copyright p { margin: 0; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline: 2px solid #496054; outline-offset: 4px; }
@media (max-width: 768px) {
    .site-header .main-nav { display: none; }
    .site-header .logo { margin: 0 auto; align-items: center; text-align: center; }
    .site-footer .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .site-footer .footer-links { justify-content: center; }
}
