/* =====================================================
   本月阅读 - 中国风·书香墨韵主题
   ===================================================== */

:root {
    /* 中国风主色调 */
    --ink-black: #2C2C2C;
    --ink-grey: #5A5A5A;
    --ink-light: #9A9A9A;
    --bamboo-green: #7B9E89;
    --bamboo-light: #A8D5BA;
    --paper-beige: #F5F2E9;
    --paper-warm: #EFE8D8;
    --seal-red: #C23531;
    --jade-green: #5E8B7E;
    --gold-accent: #C9A961;
    --muted-purple: #8B7E66;
    --deep-brown: #6B4423;
    --warm-brown: #8B6F47;
}

/* 页面背景 */
body {
    font-family: "Microsoft YaHei", "KaiTi", serif;
    background:
        linear-gradient(to bottom, rgba(245, 242, 233, 0.97), rgba(239, 232, 216, 0.92)),
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M150 20 Q160 80 150 150 T150 280' stroke='%238B7E66' stroke-width='2' fill='none' opacity='0.08'/%3E%3Ccircle cx='150' cy='60' r='3' fill='%238B7E66' opacity='0.1'/%3E%3Ccircle cx='160' cy='90' r='2' fill='%238B7E66' opacity='0.08'/%3E%3C/svg%3E");
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: var(--ink-black);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页头 */
.header {
    text-align: center;
    color: var(--ink-black);
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
    border-radius: 8px;
    border: 2px solid var(--bamboo-green);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '书';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: "KaiTi", serif;
    font-size: 8rem;
    color: var(--bamboo-green);
    opacity: 0.08;
    transform: rotate(-10deg);
}

.header h1 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.1rem;
    color: var(--ink-grey);
    position: relative;
    z-index: 1;
}

/* 书籍卡片 */
.book-card {
    background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
    border: 2px solid var(--deep-brown);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--warm-brown), var(--deep-brown));
}

.book-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    border: 3px solid var(--warm-brown);
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.2);
    margin-bottom: 15px;
}

.book-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.8rem;
    color: var(--ink-black);
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 2px solid var(--bamboo-green);
    padding-bottom: 8px;
}

.book-author {
    font-size: 1.1rem;
    color: var(--warm-brown);
    margin-bottom: 15px;
    font-family: "KaiTi", serif;
}

.book-intro {
    color: var(--ink-grey);
    line-height: 1.8;
    font-size: 0.95rem;
    text-indent: 2em;
}

/* 阅读区域 */
.reading-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(107, 68, 35, 0.2);
}

.section-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px double var(--bamboo-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '◆';
    color: var(--seal-red);
}

/* 章节按钮 */
.chapters-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.chapter-btn {
    background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper-beige) 100%);
    color: var(--ink-black);
    border: 2px solid var(--bamboo-green);
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: "KaiTi", serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(123, 158, 137, 0.2);
}

.chapter-btn:hover {
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(94, 139, 126, 0.3);
}

.chapter-btn.active {
    background: linear-gradient(135deg, var(--deep-brown) 0%, var(--warm-brown) 100%);
    color: white;
    border-color: var(--deep-brown);
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.3);
}

/* 章节内容 */
.chapter-content {
    background: var(--paper-beige);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(107, 68, 35, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chapter-content h3 {
    font-family: "KaiTi", "SimSun", serif;
    color: var(--deep-brown);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    padding-bottom: 15px;
    /* border-bottom: 2px dashed var(--bamboo-green); 已移除虚线分隔 */
}

.chapter-content .text-content {
    color: var(--ink-black);
    line-height: 2;
    font-size: 1.05rem;
    text-align: justify;
    text-indent: 2em;
    font-family: "Microsoft YaHei", serif;
}

.chapter-content .text-content p {
    margin-bottom: 12px;
}

/* 阅读起始点控制 */
.reading-start-point-control {
    background: linear-gradient(135deg, #fff 0%, var(--paper-beige) 100%);
    border: 2px solid var(--bamboo-green);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reading-start-point-control label span {
    font-weight: 500;
    color: var(--ink-black);
    font-family: "KaiTi", serif;
}

.reading-start-point-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
    cursor: pointer;
}

.reading-start-point-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--deep-brown);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 68, 35, 0.3);
    transition: transform 0.2s;
}

.reading-start-point-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 笔记功能 */
.note {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 0;
    display: inline;
}

.note-red {
    border-bottom: 2px solid var(--seal-red);
    background: linear-gradient(to bottom, transparent 50%, rgba(194, 53, 49, 0.1) 50%);
}

.note-blue {
    border-bottom: 2px solid var(--bamboo-green);
    background: linear-gradient(to bottom, transparent 50%, rgba(123, 158, 137, 0.1) 50%);
}

.note-green {
    border-bottom: 2px solid var(--jade-green);
    background: linear-gradient(to bottom, transparent 50%, rgba(94, 139, 126, 0.1) 50%);
}

.note-purple {
    border-bottom: 2px solid var(--muted-purple);
    background: linear-gradient(to bottom, transparent 50%, rgba(139, 126, 102, 0.1) 50%);
}

.note-orange {
    border-bottom: 2px solid var(--gold-accent);
    background: linear-gradient(to bottom, transparent 50%, rgba(201, 169, 97, 0.1) 50%);
}

/* 评论区域 */
.reviews-section {
    background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(107, 68, 35, 0.2);
}

.review-item {
    background: var(--paper-beige);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--deep-brown);
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    font-family: "KaiTi", serif;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(94, 139, 126, 0.3);
}

.review-user {
    font-weight: bold;
    color: var(--deep-brown);
    font-family: "KaiTi", serif;
}

.review-content {
    color: var(--ink-grey);
    line-height: 1.6;
    text-indent: 2em;
}

/* 提交按钮 */
.submit-btn {
    background: linear-gradient(135deg, var(--deep-brown) 0%, var(--warm-brown) 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "KaiTi", serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.4);
}

/* 返回链接 */
.back-link {
    display: inline-block;
    color: var(--deep-brown);
    text-decoration: none;
    margin-bottom: 25px;
    font-size: 1rem;
    padding: 8px 20px;
    border: 1px solid var(--bamboo-green);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: "KaiTi", serif;
}

.back-link:hover {
    background: var(--bamboo-green);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .book-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .chapter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .chapter-content .text-content {
        font-size: 1rem;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--warm-brown), var(--deep-brown));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--deep-brown), var(--warm-brown));
}
