:root {
    --primary: #175cd3;
    --primary-deep: #134ba9;
    --primary-soft: rgba(23, 92, 211, 0.08);
    --primary-border: rgba(23, 92, 211, 0.22);
    --bg: #f5f6f8;
    --panel: #ffffff;
    --text: #202733;
    --muted: #707a89;
    --line: #dfe3e8;
    --success: #267a59;
    --warning: #9f611b;
    --hero-gradient: #ffffff;
    --hero-border: #dde2e8;
    --badge-bg: #f3f4f6;
    --badge-text: #5f6875;
    --reply-bg: #f5f7f9;
    --reply-text: #424b58;
    --flash-bg: rgba(38, 122, 89, 0.09);
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 48px; font-family: "PingFang SC","Microsoft YaHei",sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header {
    padding: 24px 0 18px;
}
.header-top { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.site-name { font-size: 14px; color: var(--muted); line-height: 1.7; }
.board-title { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 30px; line-height: 1.3; font-weight: 700; }
.board-site-inline { color: inherit; font-size: inherit; font-weight: inherit; }
.board-separator { color: inherit; font-weight: inherit; line-height: 1; }
.board-name { color: inherit; font-size: 24px; font-weight: 700; line-height: 1.2; }
.hero {
    position: relative;
    overflow: hidden;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--hero-gradient);
    border: 1px solid var(--hero-border);
}
.hero-accent { display: none; }
.hero-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 760px;
}
.hero.has-media .hero-main {
    max-width: min(66%, 760px);
}
.hero-media {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(34%, 360px);
    border-radius: 18px;
    overflow: hidden;
    pointer-events: none;
}
.hero.has-media .hero-media {
    display: block;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.02) 100%);
}
.hero-media-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.26) 22%, rgba(0, 0, 0, 0.86) 58%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.26) 22%, rgba(0, 0, 0, 0.86) 58%, #000 100%);
}
.hero-notice-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
}
.hero-notice-title.is-offset {
    margin-top: 10px;
}
.hero-notice { margin-top: 12px; color: #475467; font-size: 15px; line-height: 1.9; max-width: 760px; }
.hero-notice p { margin: 0 0 10px; }
.hero-notice p:last-child { margin-bottom: 0; }
.hero-notice ul,
.hero-notice ol { margin: 10px 0 10px 20px; padding: 0; }
.hero-notice li { margin: 4px 0; }
.hero-notice a { color: var(--primary); }
.hero-actions { margin-top: 20px; display:flex; gap:12px; flex-wrap:wrap; }
.button {
    display:inline-flex; align-items:center; justify-content:center; min-height: 42px; padding: 0 18px;
    border-radius: 999px; border: 1px solid transparent; background: var(--primary); color:#fff; font-size:14px; font-weight:700;
}
.button:hover { background: var(--primary-deep); }
.button.secondary { background:#fff; color:var(--primary); border-color: var(--primary-border); }
.button.secondary:hover { background: #fff; color: var(--primary-deep); border-color: var(--primary-border); }
.flash { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--flash-bg); color: var(--success); font-size: 14px; font-weight: 700; }
.list { display:grid; gap: 16px; margin: 24px 0 40px; }
.card {
    position: relative;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}
.card-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.card-badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.card-title { display:flex; align-items:center; gap:18px; flex-wrap:wrap; color:#98a2b3; font-size:13px; line-height:1.7; }
.card-name { color: var(--text); font-size:16px; line-height:1.6; font-weight:700; }
.card-id { color: #111827; font-size: 15px; line-height: 1.6; font-weight: 500; }
.card-time { color:#8c8c8c; font-size:13px; line-height:1.7; }
.card-summary { margin-top: 18px; display:flex; gap:16px; align-items:flex-end; justify-content:space-between; color:#344054; font-size:16px; line-height:1.95; font-weight:400; }
.card-summary-text { flex:1; min-width:0; }
.card-reply { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--reply-bg); color:var(--reply-text); font-size:13px; line-height:1.85; }
.card-reply-label { color:#1f2937; font-weight:700; }
.card-reply-time { margin-top: 8px; color:#98a2b3; font-size:12px; line-height:1.7; }
.card-actions { flex-shrink:0; display:inline-flex; align-items:flex-end; }
.card-link { color: var(--primary); font-size: 15px; line-height: 1.7; font-weight: 700; }
.card-link:hover { color: var(--primary-deep); }
.badge { display:inline-flex; align-items:center; min-height:26px; padding:0 12px; border-radius:999px; background:#f3f4f6; color:#6b7280; font-size:12px; font-weight:700; }
.badge.success { background: rgba(16,185,129,0.10); color: #059669; }
.badge.warning { background: rgba(245,158,11,0.12); color: #b45309; }
.pagination {
    margin-top: 8px;
    padding: 18px 0 12px;
}
.pagination nav {
    display: flex;
    justify-content: center;
}
.pagination-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination-button,
.pagination-page,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.pagination-page { padding: 0; }
.pagination-button:hover,
.pagination-page:hover {
    transform: translateY(-1px);
    background: #f9fafb;
    border-color: #d1d5db;
}
.pagination-page.is-active,
.pagination-page.is-active:visited {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
}
.pagination-button.is-disabled,
.pagination-page.is-disabled,
.pagination-ellipsis {
    color: #c0c4cc;
    cursor: default;
    pointer-events: none;
}
.empty { padding: 44px 24px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:18px; background: var(--panel); }
@media (max-width: 768px) {
    .shell { width: calc(100% - 20px); }
    .hero { padding: 22px 18px; }
    .hero.has-media .hero-main { max-width: 100%; }
    .hero-media { display: none !important; }
    .board-title { font-size: 24px; }
    .board-name { font-size: 20px; }
    .card { padding: 18px; }
    .card-head { flex-direction: column; }
    .card-title { gap: 10px 14px; }
    .card-summary { font-size: 15px; line-height: 1.9; align-items:flex-start; flex-direction:column; }
    .card-actions { align-self:flex-end; }
    body { padding-bottom: 36px; }
}

.guestbook-footer {
    padding: 4px 0 28px;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}
.guestbook-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.guestbook-footer a { color: inherit; }
.guestbook-footer a:hover { color: var(--primary); }
.guestbook-footer__divider {
    width: 1px;
    height: 12px;
    background: #d8dde5;
}

/* Modern institutional red */
.theme-china-red {
    --primary: #a61b29;
    --primary-deep: #80131f;
    --primary-soft: rgba(166, 27, 41, .07);
    --primary-border: rgba(166, 27, 41, .2);
    --bg: #f5f6f8;
    --panel: #fff;
    --text: #20242c;
    --muted: #70798a;
    --line: #e2e5ea;
    --success: #267a59;
    --warning: #a05c16;
    --hero-gradient: #fff;
    --hero-border: #dde1e7;
    --reply-bg: #f6f7f9;
    --reply-text: #434b59;
    --flash-bg: rgba(38, 122, 89, .09);
}
.theme-china-red .header {
    padding: 28px 0 20px;
    border-bottom: 2px solid var(--primary);
}
.theme-china-red .board-title { font-size: 28px; }
.theme-china-red .board-name { color: var(--primary); font-size: 22px; }
.theme-china-red .hero {
    margin-top: 22px;
    padding: 26px 28px 24px 32px;
    border-radius: 6px;
    box-shadow: none;
}
.theme-china-red .hero::before {
    content: "";
    position: absolute;
    inset: 24px auto 24px 0;
    width: 4px;
    height: auto;
    background: var(--primary);
}
.theme-china-red .hero-notice-title.is-offset { margin-top: 0; }
.theme-china-red .hero-notice { color: #4f5868; }
.theme-china-red .button,
.theme-china-red .badge {
    border-radius: 6px;
    letter-spacing: 0;
}
.theme-china-red .list {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}
.theme-china-red .card {
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.theme-china-red .card:last-child { border-bottom: 0; }
.theme-china-red .card-reply {
    border: 0;
    border-left: 3px solid rgba(166, 27, 41, .45);
    border-radius: 0;
    background: var(--reply-bg);
}
.theme-china-red .pagination-shell {
    border-radius: 6px;
    box-shadow: none;
}

/* Modern service orange */
.theme-vibrant-orange {
    --primary: #e87524;
    --primary-deep: #c85d13;
    --primary-soft: rgba(232, 117, 36, .08);
    --primary-border: rgba(232, 117, 36, .22);
    --bg: #f6f7f9;
    --panel: #fff;
    --text: #25282d;
    --muted: #737c89;
    --line: #e1e5ea;
    --success: #2e8062;
    --warning: #a75b16;
    --hero-gradient: #fff;
    --hero-border: #dde2e8;
    --reply-bg: #f5f7f8;
    --reply-text: #444c58;
    --flash-bg: rgba(46, 128, 98, .09);
}
.theme-vibrant-orange .header {
    padding: 28px 0 20px;
    border-bottom: 1px solid #dfe3e8;
}
.theme-vibrant-orange .board-title { font-size: 28px; }
.theme-vibrant-orange .board-name { color: var(--primary); font-size: 22px; }
.theme-vibrant-orange .hero {
    margin-top: 22px;
    padding: 26px 28px 24px 32px;
    border-radius: 6px;
    box-shadow: none;
}
.theme-vibrant-orange .hero::before {
    content: "";
    position: absolute;
    inset: 24px auto 24px 0;
    width: 4px;
    height: auto;
    border-radius: 0;
    background: var(--primary);
}
.theme-vibrant-orange .hero-notice-title.is-offset { margin-top: 0; }
.theme-vibrant-orange .hero-notice { color: #4f5865; }
.theme-vibrant-orange .button,
.theme-vibrant-orange .badge {
    border-radius: 6px;
    box-shadow: none;
}
.theme-vibrant-orange .list {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}
.theme-vibrant-orange .card {
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.theme-vibrant-orange .card:last-child { border-bottom: 0; }
.theme-vibrant-orange .card-reply {
    border: 0;
    border-left: 3px solid rgba(232, 117, 36, .5);
    border-radius: 0;
    background: var(--reply-bg);
}
.theme-vibrant-orange .pagination-shell {
    border-radius: 6px;
    box-shadow: none;
}

/* Modern education green */
.theme-education-green {
    --primary: #2f8056;
    --primary-deep: #236542;
    --primary-soft: rgba(47, 128, 86, .08);
    --primary-border: rgba(47, 128, 86, .22);
    --bg: #f5f6f8;
    --panel: #fff;
    --text: #232a27;
    --muted: #707a75;
    --line: #dfe4e1;
    --success: #2f8056;
    --warning: #9a681c;
    --hero-gradient: #fff;
    --hero-border: #dde2df;
    --reply-bg: #f5f7f6;
    --reply-text: #424c47;
    --flash-bg: rgba(47, 128, 86, .09);
}
.theme-education-green .header {
    padding: 28px 0 20px;
    border-bottom: 1px solid #dfe4e1;
}
.theme-education-green .board-title { font-size: 28px; }
.theme-education-green .board-name { color: var(--primary); font-size: 22px; }
.theme-education-green .hero {
    position: relative;
    display: block;
    margin-top: 22px;
    padding: 26px 28px 24px 32px;
    border-radius: 6px;
    box-shadow: none;
}
.theme-education-green .hero::before {
    content: "";
    position: absolute;
    inset: 24px auto 24px 0;
    width: 4px;
    background: var(--primary);
}
.theme-education-green .hero-accent { display: none; }
.theme-education-green .hero-notice-title.is-offset { margin-top: 0; }
.theme-education-green .hero-notice { color: #4d5852; }
.theme-education-green .button,
.theme-education-green .badge {
    border-radius: 6px;
    box-shadow: none;
}
.theme-education-green .list {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}
.theme-education-green .card {
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.theme-education-green .card:last-child { border-bottom: 0; }
.theme-education-green .card-reply {
    border: 0;
    border-left: 3px solid rgba(47, 128, 86, .5);
    border-radius: 0;
    background: var(--reply-bg);
}
.theme-education-green .pagination-shell {
    border-radius: 6px;
    box-shadow: none;
}

/* Modern default blue */
.theme-default {
    --primary: #175cd3;
    --primary-deep: #134ba9;
    --primary-soft: rgba(23, 92, 211, .08);
    --primary-border: rgba(23, 92, 211, .22);
    --bg: #f5f6f8;
    --panel: #fff;
    --text: #202733;
    --muted: #707a89;
    --line: #dfe3e8;
    --success: #267a59;
    --warning: #9f611b;
    --hero-gradient: #fff;
    --hero-border: #dde2e8;
    --reply-bg: #f5f7f9;
    --reply-text: #424b58;
    --flash-bg: rgba(38, 122, 89, .09);
}
.theme-default .header {
    padding: 28px 0 20px;
    border-bottom: 1px solid #dfe3e8;
}
.theme-default .board-title { font-size: 28px; }
.theme-default .board-name { color: var(--primary); font-size: 22px; }
.theme-default .hero {
    position: relative;
    margin-top: 22px;
    padding: 26px 28px 24px 32px;
    border-radius: 6px;
    box-shadow: none;
}
.theme-default .hero::before {
    content: "";
    position: absolute;
    inset: 24px auto 24px 0;
    width: 4px;
    background: var(--primary);
}
.theme-default .hero-notice { color: #4d5766; }
.theme-default .button,
.theme-default .badge {
    border-radius: 6px;
    box-shadow: none;
}
.theme-default .list {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}
.theme-default .card {
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.theme-default .card:last-child { border-bottom: 0; }
.theme-default .card-reply {
    border: 0;
    border-left: 3px solid rgba(23, 92, 211, .45);
    border-radius: 0;
    background: var(--reply-bg);
}
.theme-default .pagination-shell {
    border-radius: 6px;
    box-shadow: none;
}

.theme-default {
    --stripe-secondary: #6f8299;
}
.theme-china-red {
    --stripe-secondary: #456b8f;
}
.theme-education-green {
    --stripe-secondary: #6f8d80;
}
.theme-vibrant-orange {
    --stripe-secondary: #8a786b;
}
.theme-default .hero::before,
.theme-china-red .hero::before,
.theme-education-green .hero::before,
.theme-vibrant-orange .hero::before {
    width: 7px;
    border-radius: 5px 0 0 5px;
    background: repeating-linear-gradient(
        135deg,
        var(--primary) 0 9px,
        #ffffff 9px 14px,
        var(--stripe-secondary) 14px 23px,
        #ffffff 23px 28px
    );
}

@media (max-width: 768px) {
    .theme-default .header,
    .theme-china-red .header,
    .theme-vibrant-orange .header,
    .theme-education-green .header {
        padding-top: 22px;
    }
    .theme-default .hero,
    .theme-china-red .hero,
    .theme-vibrant-orange .hero,
    .theme-education-green .hero {
        padding: 22px 18px 20px 24px;
    }
    .theme-default .hero::before,
    .theme-china-red .hero::before,
    .theme-vibrant-orange .hero::before,
    .theme-education-green .hero::before {
        inset-block: 20px;
    }
    .theme-default .card,
    .theme-china-red .card,
    .theme-vibrant-orange .card,
    .theme-education-green .card {
        padding: 18px;
    }
    .guestbook-footer {
        padding-bottom: 18px;
    }
}
