/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --paper: #faf7f0;
    --paper-dark: #f0ece3;
    --ink: #2c2c2c;
    --ink-light: #6b6b6b;
    --accent: #b8860b;
    --accent-light: #d4a845;
    --border: #e3ddd0;
    --line-color: #e8e0d0;
    --white: #fffdf9;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "Georgia", "Times New Roman", serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav a {
    margin-left: 24px;
    color: var(--ink-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.hero {
    margin-top: 60px;
    padding: 100px 0 60px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 16px;
    color: var(--ink-light);
    max-width: 540px;
    margin: 0 auto;
}

.hero-meta {
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink-light);
}

.dot {
    margin: 0 12px;
    color: var(--border);
}

.section {
    padding: 60px 0;
}

.bg-paper {
    background: var(--paper-dark);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 36px;
    color: var(--ink);
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 12px auto 0;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--ink-light);
    text-indent: 2em;
}

.about-quote {
    margin-top: 36px;
    padding: 24px 32px;
    background: var(--white);
    border-left: 3px solid var(--accent);
    font-size: 15px;
    font-style: italic;
    color: var(--ink-light);
    line-height: 1.9;
}

.quote-author {
    margin-top: 10px;
    text-align: right;
    font-size: 13px;
    color: var(--ink-light);
    font-style: normal;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.book-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.book-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.book-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2px;
}

.book-cover-1 { background: linear-gradient(135deg, #2c3e50, #4a6741); }
.book-cover-2 { background: linear-gradient(135deg, #3d3d3d, #6b4c3b); }
.book-cover-3 { background: linear-gradient(135deg, #2d5a3d, #5a7a4a); }

.book-info {
    padding: 20px;
}

.book-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.book-author {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 8px;
}

.book-status {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 10px;
}

.book-desc {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.7;
    font-style: italic;
}

.notes-list {
    max-width: 640px;
    margin: 0 auto;
}

.note-item {
    padding: 24px 0;
    border-bottom: 1px dashed var(--border);
}

.note-item:last-child {
    border-bottom: none;
}

.note-date {
    font-size: 12px;
    color: var(--ink-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 6px;
}

.note-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.note-excerpt {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.note-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--accent);
    background: rgba(184, 134, 11, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    margin-right: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.notes-more {
    text-align: center;
    margin-top: 20px;
}

.btn-text {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--accent);
}

.mini-reviews {
    max-width: 540px;
    margin: 0 auto;
}

.review-item {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.review-item:last-child {
    border-bottom: none;
}

.review-book {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    min-width: 100px;
}

.review-sep {
    margin: 0 12px;
    color: var(--border);
}

.review-text {
    color: var(--ink-light);
    font-style: italic;
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

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

.footer-quote {
    font-size: 13px;
    font-style: italic;
    color: var(--ink-light);
}

.copyright {
    font-size: 13px;
    color: var(--ink-light);
}

.footer-beian {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.footer-beian a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-beian a:hover {
    color: var(--ink-light);
}

.gongan-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .nav a {
        margin-left: 16px;
        font-size: 13px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .review-item {
        flex-direction: column;
        gap: 4px;
    }

    .review-book {
        min-width: auto;
    }
}
