/**
 * 半糖书屋 - 首页样式
 * 温馨书房风格 - 纸张质感与书香气息
 */

/* ========================================
   首页容器
   ======================================== */
.home-page {
    padding-bottom: 24px;
}

/* ========================================
   上次阅读区域 - 书卷风格
   ======================================== */
.last-read-section {
    margin-bottom: 16px;
    animation: slideDownFadeIn 0.5s ease-out forwards;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.last-read-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, var(--background-warm) 0%, var(--accent-paper) 50%, rgba(255, 237, 204, 0.6) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
}

/* 纸张纹理效果 */
.last-read-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* 上次阅读标签 */
.last-read-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-warm) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(196, 139, 74, 0.25);
}

.last-read-label i {
    font-size: 15px;
    animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 书签装饰 - 右侧三角形 */
.last-read-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 8px solid var(--accent-warm);
}

/* 滚动包装器 */
.last-read-scroll-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
    padding: 0 8px;
}

/* 滚动区域 */
.last-read-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 6px 4px;
}

.last-read-scroll::-webkit-scrollbar {
    display: none;
}

/* 阅读历史卡片 */
.last-read-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

/* 分隔线 */
.last-read-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, transparent 0%, var(--border-warm) 50%, transparent 100%);
}

.last-read-item:last-child::after {
    display: none;
}

.last-read-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(196, 139, 74, 0.15);
    transform: translateY(-2px);
}

/* 书名 */
.last-read-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.last-read-item:hover .last-read-title {
    color: var(--primary-color);
}

/* 阅读进度 */
.last-read-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    padding: 2px 8px;
    background: rgba(196, 139, 74, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.last-read-progress i {
    font-size: 10px;
    color: var(--primary-color);
}

.last-read-item:hover .last-read-progress {
    background: rgba(196, 139, 74, 0.2);
    color: var(--primary-dark);
}

/* 导航按钮 */
.last-read-nav {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
}

.last-read-container:hover .last-read-nav {
    opacity: 1;
    visibility: visible;
}

.last-read-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.last-read-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.last-read-nav:disabled:hover {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-light);
    transform: none;
}

/* 查看更多按钮 */
.last-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    padding: 10px;
    color: var(--text-light);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 252, 248, 0.9) 30%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.last-read-more i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.last-read-more:hover {
    color: var(--primary-color);
}

.last-read-more:hover i {
    transform: translateX(3px);
}

/* 空状态 */
.last-read-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 13px;
}

.last-read-empty i {
    font-size: 16px;
    opacity: 0.6;
}

/* ========================================
   上次阅读区域 - 响应式
   ======================================== */
@media (max-width: 768px) {
    .last-read-container {
        border-radius: var(--radius-sm);
    }

    .last-read-label {
        padding: 8px 12px;
        font-size: 12px;
    }

    .last-read-label::after {
        border-top-width: 16px;
        border-bottom-width: 16px;
        border-left-width: 6px;
        right: -6px;
    }

    .last-read-item {
        padding: 6px 10px;
    }

    .last-read-title {
        max-width: 100px;
        font-size: 12px;
    }

    .last-read-progress {
        font-size: 11px;
        padding: 2px 6px;
    }

    .last-read-nav {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .last-read-more {
        width: 32px;
        padding: 8px;
    }

    .last-read-more i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .last-read-label span {
        display: none;
    }

    .last-read-label {
        padding: 8px 10px;
    }

    .last-read-label::after {
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-left-width: 5px;
        right: -5px;
    }

    .last-read-title {
        max-width: 80px;
    }

    .last-read-nav {
        display: none;
    }
}

/* ========================================
   通用区块样式
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
    border-radius: 2px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.9;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin: 0;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.section-more:hover {
    color: var(--primary-color);
    background: var(--accent-cream);
}

.section-more i {
    transition: transform 0.3s ease;
}

.section-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   Hero Banner 区域 - 编辑推荐
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--background-warm) 0%, var(--accent-paper) 50%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* 装饰性背景元素 */
.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.hero-decoration-left {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.hero-decoration-right {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-warm) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-header {
    text-align: center;
    margin-bottom: 16px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(196, 139, 74, 0.25);
}

.section-badge i {
    font-size: 12px;
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Hero 轮播容器 */
.hero-carousel {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* 主推荐书籍 */
.hero-featured {
    flex: 1.2;
    min-width: 0;
}

.featured-book-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    border: 1px solid rgba(210, 180, 140, 0.2);
    box-shadow: 0 4px 20px rgba(139, 90, 43, 0.08);
    backdrop-filter: blur(10px);
    height: 100%;
    transition: all 0.4s ease;
}

.featured-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(139, 90, 43, 0.15);
}

.featured-cover-wrapper {
    position: relative;
    flex-shrink: 0;
}

.featured-cover {
    width: 140px;
    height: 186px;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    position: relative;
    box-shadow:
        4px 4px 16px rgba(139, 90, 43, 0.18),
        -2px 0 3px rgba(139, 90, 43, 0.08);
}

/* 书脊效果 */
.featured-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(90deg, rgba(139, 90, 43, 0.4), transparent);
    z-index: 2;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-book-card:hover .featured-cover img {
    transform: scale(1.05);
}

/* 封面光泽效果 */
.cover-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.featured-book-card:hover .cover-shine {
    left: 150%;
}

.featured-rank {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #8b5a2b;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 183, 0, 0.35);
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag-hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.tag-category {
    background: var(--accent-cream);
    color: var(--primary-dark);
}

.tag-finished {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff;
}

.featured-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-author {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-author i {
    color: var(--primary-color);
}

.featured-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.featured-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-stats i {
    color: var(--primary-color);
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(196, 139, 74, 0.25);
    align-self: flex-start;
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 139, 74, 0.4);
}

.featured-btn i {
    transition: transform 0.3s ease;
}

.featured-btn:hover i {
    transform: translateX(4px);
}

/* 推荐列表 */
.hero-list {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.hero-list-item:hover {
    background: #fff;
    border-color: var(--border-warm);
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.hero-list-cover {
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 2px 4px 4px 2px;
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(139, 90, 43, 0.12);
}

.hero-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-list-info {
    flex: 1;
    min-width: 0;
}

.hero-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-list-author {
    font-size: 11px;
    color: var(--text-light);
    margin: 0 0 4px 0;
}

.hero-list-category {
    display: inline-block;
    padding: 2px 6px;
    background: var(--accent-cream);
    color: var(--primary-dark);
    font-size: 10px;
    border-radius: 6px;
}

/* ========================================
   热门排行榜区域
   ======================================== */
.ranking-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.ranking-container {
    display: flex;
    flex-direction: column;
}

.ranking-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ranking-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--background-warm);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab:hover {
    background: var(--accent-cream);
    border-color: var(--border-warm);
}

.ranking-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.3);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--background-warm);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: var(--white);
    border-color: var(--border-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--accent-paper);
    border-radius: 6px;
    position: relative;
}

.ranking-number i {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
}

.ranking-number.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #8b5a2b;
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.3);
}

.ranking-number.rank-1 i { color: #ffd700; }

.ranking-number.rank-2 {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #5a5a5a;
}

.ranking-number.rank-2 i { color: #c0c0c0; }

.ranking-number.rank-3 {
    background: linear-gradient(135deg, #e6a86c, #cd7f32);
    color: #fff;
}

.ranking-number.rank-3 i { color: #cd7f32; }

.ranking-cover {
    width: 42px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 2px 4px 4px 2px;
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(139, 90, 43, 0.1);
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-author {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
}

.ranking-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.ranking-category {
    padding: 2px 6px;
    background: var(--accent-cream);
    color: var(--primary-dark);
    font-size: 10px;
    border-radius: 6px;
}

.ranking-status {
    font-size: 10px;
    color: var(--text-light);
}

.ranking-status.ongoing {
    color: var(--primary-color);
}

.ranking-status.finished::before {
    content: '✓ ';
}

/* ========================================
   新书推荐区域 - 3D翻书效果
   ======================================== */
.newbooks-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.newbooks-grid {
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 15px 25px;
}

.newbook-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ====== 3D书籍容器 ====== */
.newbook-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: 14px;
    perspective: 1200px;
}

/* ====== 书页层（底层 - 露出的书页） ====== */
.newbook-pages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        #e5e0d5 0%,
        #f5f2ea 3%,
        #faf8f4 50%,
        #f5f2ea 97%,
        #e8e4da 100%
    );
    border-radius: 3px 5px 5px 3px;
    box-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.1),
        inset -1px 0 3px rgba(0, 0, 0, 0.03);
}

/* 书页横线纹理 */
.newbook-pages::before {
    content: '';
    position: absolute;
    top: 2%;
    left: 3%;
    right: 3%;
    bottom: 2%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 4px,
        rgba(160, 150, 135, 0.12) 4px,
        rgba(160, 150, 135, 0.12) 5px
    );
    border-radius: 2px;
}

/* 书页右侧厚度效果 - 多层页数 */
.newbook-pages::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -12px;
    width: 12px;
    height: calc(100% - 4px);
    background:
        /* 多层书页线条 */
        repeating-linear-gradient(
            to bottom,
            #faf8f2 0px,
            #faf8f2 1px,
            #f0ece3 1px,
            #f0ece3 2px,
            #e8e4da 2px,
            #e8e4da 3px,
            #f5f2ea 3px,
            #f5f2ea 4px
        );
    border-radius: 0 3px 3px 0;
    box-shadow:
        inset 3px 0 5px rgba(0, 0, 0, 0.06),
        1px 1px 3px rgba(0, 0, 0, 0.08);
}

/* 书页厚度层1 */
.newbook-pages-layer {
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: #f8f5ed;
    border-radius: 2px 4px 4px 2px;
    z-index: -1;
}

/* 书页厚度层2 */
.newbook-pages-layer-2 {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: #f0ebe0;
    border-radius: 2px 4px 4px 2px;
    z-index: -2;
}

/* ====== 封面层（翻开的封面） ====== */
.newbook-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transform: rotateY(-20deg);
    transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.newbook-card:hover .newbook-front {
    transform: rotateY(-40deg);
}

/* 封面图片 */
.newbook-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px 5px 5px 3px;
    backface-visibility: hidden;
    box-shadow:
        3px 3px 10px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
}

/* 封面背面（翻开时显示） */
.newbook-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        #f0ebe0 0%,
        #faf8f3 30%,
        #f5f2eb 100%
    );
    border-radius: 3px 5px 5px 3px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

/* 封面背面纸张纹理 */
.newbook-front::after {
    content: '';
    position: absolute;
    top: 3%;
    left: 5%;
    right: 5%;
    bottom: 3%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 6px,
        rgba(160, 150, 135, 0.08) 6px,
        rgba(160, 150, 135, 0.08) 7px
    );
    border-radius: 2px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

/* ====== 底部投影 ====== */
.newbook-cover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 5%;
    right: 5%;
    height: 10px;
    background: radial-gradient(
        ellipse 70% 100% at 50% 0%,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 100%
    );
    filter: blur(3px);
    transition: all 0.4s ease;
    z-index: -1;
}

.newbook-card:hover .newbook-cover::after {
    bottom: -12px;
    left: 0;
    right: 0;
    filter: blur(5px);
}

/* 隐藏旧元素 */
.newbook-badge,
.newbook-cover-inner,
.newbook-page-flip,
.newbook-page-flip-2,
.newbook-cover-shadow {
    display: none;
}

.newbook-info {
    width: 100%;
    padding: 0 4px;
}

.newbook-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.laurel-left,
.laurel-right {
    flex-shrink: 0;
    width: 18px;
    height: 20px;
    display: inline-block;
    background-image: url('/images/0d729266-e52c-49f7-b747-d7bff7211c37.png');
    background-size: 36px 20px;
    background-repeat: no-repeat;
    filter: brightness(0.3) sepia(1) hue-rotate(180deg) saturate(3);
}

.laurel-left {
    background-position: left center;
}

.laurel-right {
    background-position: right center;
}

.newbook-card:hover .laurel-left,
.newbook-card:hover .laurel-right {
    opacity: 1;
}

.newbook-title {
    font-family: "楷体", "KaiTi", "STKaiti", "华文楷体", serif;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: #2c3e50;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newbook-card:hover .newbook-title {
    color: var(--primary-dark);
}

/* 隐藏作者和元信息 */
.newbook-author,
.newbook-meta {
    display: none;
}

/* ========================================
   完本精选区域
   ======================================== */
.completed-section {
    background: linear-gradient(135deg, var(--background-warm) 0%, var(--accent-paper) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.completed-scroll-wrapper {
    position: relative;
    margin: 0 -8px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.scroll-prev {
    left: -12px;
}

.scroll-next {
    right: -12px;
}

.completed-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.completed-scroll::-webkit-scrollbar {
    display: none;
}

.completed-card {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.completed-card:hover {
    border-color: var(--border-warm);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.completed-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.completed-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.completed-card:hover .completed-cover img {
    transform: scale(1.05);
}

.completed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}

.completed-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(82, 196, 26, 0.9);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    border-radius: 6px;
}

.completed-info {
    padding: 8px;
}

.completed-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.completed-author {
    font-size: 10px;
    color: var(--text-light);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.completed-words {
    font-size: 10px;
    color: var(--primary-color);
}

/* ========================================
   分类推荐区域
   ======================================== */
.category-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--background-warm);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.category-chip:hover {
    background: var(--accent-cream);
    border-color: var(--border-warm);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.15);
}

.category-chip i {
    font-size: 14px;
    color: var(--primary-color);
}

.category-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-block {
    padding: 14px;
    background: var(--background-warm);
    border-radius: var(--radius-sm);
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.category-block-title i {
    color: var(--primary-color);
}

.category-block-more {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.category-block-more:hover {
    color: var(--primary-color);
}

.category-block-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-book-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.category-book-card:hover {
    border-color: var(--border-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-book-cover {
    width: 50px;
    height: 67px;
    flex-shrink: 0;
    border-radius: 2px 4px 4px 2px;
    overflow: hidden;
    box-shadow: 2px 2px 6px rgba(139, 90, 43, 0.1);
}

.category-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-book-info {
    flex: 1;
    min-width: 0;
}

.category-book-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-book-author {
    font-size: 11px;
    color: var(--text-light);
    margin: 0 0 4px 0;
}

.category-book-desc {
    font-size: 11px;
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   入场动画
   ======================================== */
.hero-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.ranking-section {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.newbooks-section {
    animation: fadeInUp 0.5s ease-out 0.15s forwards;
    opacity: 0;
}

.completed-section {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.category-section {
    animation: fadeInUp 0.6s ease-out 0.25s forwards;
    opacity: 0;
}

.short-story-section {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* Hero list items staggered animation */
.hero-list-item {
    animation: slideInFromRight 0.4s ease-out forwards;
    opacity: 0;
}

.hero-list-item:nth-child(1) { animation-delay: 0.2s; }
.hero-list-item:nth-child(2) { animation-delay: 0.25s; }
.hero-list-item:nth-child(3) { animation-delay: 0.3s; }
.hero-list-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ranking items staggered animation */
.ranking-item {
    animation: fadeInUp 0.35s ease-out forwards;
    opacity: 0;
}

.ranking-item:nth-child(1)  { animation-delay: 0.15s; }
.ranking-item:nth-child(2)  { animation-delay: 0.18s; }
.ranking-item:nth-child(3)  { animation-delay: 0.21s; }
.ranking-item:nth-child(4)  { animation-delay: 0.24s; }
.ranking-item:nth-child(5)  { animation-delay: 0.27s; }
.ranking-item:nth-child(6)  { animation-delay: 0.30s; }
.ranking-item:nth-child(7)  { animation-delay: 0.33s; }
.ranking-item:nth-child(8)  { animation-delay: 0.36s; }
.ranking-item:nth-child(9)  { animation-delay: 0.39s; }
.ranking-item:nth-child(10) { animation-delay: 0.42s; }

/* Newbook cards staggered animation */
.newbook-card {
    animation: slideInBook 0.4s ease-out forwards;
    opacity: 0;
}

.newbook-card:nth-child(1) { animation-delay: 0.18s; }
.newbook-card:nth-child(2) { animation-delay: 0.22s; }
.newbook-card:nth-child(3) { animation-delay: 0.26s; }
.newbook-card:nth-child(4) { animation-delay: 0.30s; }
.newbook-card:nth-child(5) { animation-delay: 0.34s; }
.newbook-card:nth-child(6) { animation-delay: 0.38s; }
.newbook-card:nth-child(7) { animation-delay: 0.42s; }
.newbook-card:nth-child(8) { animation-delay: 0.46s; }

@keyframes slideInBook {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .hero-carousel {
        flex-direction: column;
    }

    .hero-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-list-item {
        flex: 1 1 calc(50% - 6px);
    }

}

@media (max-width: 992px) {
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .category-block-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 16px;
    }

    .featured-book-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px;
    }

    .featured-cover {
        width: 120px;
        height: 160px;
    }

    .featured-info {
        align-items: center;
    }

    .featured-tags {
        justify-content: center;
    }

    .featured-btn {
        align-self: center;
    }

    .hero-list {
        flex-direction: column;
    }

    .hero-list-item {
        flex: 1 1 100%;
    }

    .ranking-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 12px;
        scrollbar-width: none;
    }

    .ranking-tabs::-webkit-scrollbar {
        display: none;
    }

    .ranking-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 新书上架响应式 - 平板 */
    .newbooks-grid {
        gap: 20px;
        padding: 12px 18px;
    }

    .newbook-front {
        transform: rotateY(-16deg);
    }

    .newbook-card:hover .newbook-front {
        transform: rotateY(-32deg);
    }

    .newbook-title {
        font-size: 13px;
    }

    .completed-card {
        flex: 0 0 100px;
    }

    .category-nav {
        gap: 6px;
    }

    .category-chip {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 16px;
    }

    .hero-title {
        font-size: 18px;
    }

    .featured-cover {
        width: 110px;
        height: 147px;
    }

    .featured-title {
        font-size: 16px;
    }

    /* 新书上架响应式 - 手机 */
    .newbooks-grid {
        gap: 16px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .newbook-card {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 80px;
        max-width: calc(33.333% - 14px);
    }

    .newbook-cover {
        perspective: 800px;
    }

    .newbook-front {
        transform: rotateY(-12deg);
    }

    .newbook-card:hover .newbook-front {
        transform: rotateY(-25deg);
    }

    .newbook-title {
        font-size: 12px;
    }

    .ranking-item {
        padding: 8px 10px;
    }

    .ranking-cover {
        width: 36px;
        height: 48px;
    }

    .scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .scroll-prev {
        left: -6px;
    }

    .scroll-next {
        right: -6px;
    }

    .category-block {
        padding: 12px;
    }

    .category-book-card {
        padding: 8px;
    }
}

/* ========================================
   短篇故事区域 - 卷轴书卷风格
   ======================================== */
.short-story-section {
    background: linear-gradient(145deg, var(--background-warm) 0%, #fff9f2 50%, var(--accent-paper) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* 卷轴装饰纹理 */
.short-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 120px,
            rgba(196, 139, 74, 0.03) 120px,
            rgba(196, 139, 74, 0.03) 121px
        );
    pointer-events: none;
}

/* 顶部卷轴边缘装饰 */
.short-story-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-warm) 20%,
        var(--primary-color) 50%,
        var(--accent-warm) 80%,
        transparent 100%
    );
    border-radius: 0 0 4px 4px;
}

.short-story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.short-story-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.short-story-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-warm) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.short-story-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    animation: iconShimmer 3s ease-in-out infinite;
}

@keyframes iconShimmer {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.short-story-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 0.5px;
}

.short-story-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.short-story-more {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.short-story-more:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.3);
}

.short-story-more i {
    transition: transform 0.3s ease;
}

.short-story-more:hover i {
    transform: translateX(4px);
}

/* 短篇故事列表容器 */
.short-story-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* 短篇故事卡片 - 羊皮纸风格 */
.short-story-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #fffdf9 0%, #fff8f0 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(210, 180, 140, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* 卡片纸张纹理 */
.short-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
}

/* 卡片左侧书签装饰 */
.short-story-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-warm));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.short-story-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(139, 90, 43, 0.12),
        0 4px 12px rgba(196, 139, 74, 0.08);
    border-color: var(--border-warm);
    background: linear-gradient(145deg, #fff 0%, #fffbf5 100%);
}

.short-story-card:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

/* 封面区域 */
.short-story-cover {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    position: relative;
    box-shadow:
        3px 3px 10px rgba(139, 90, 43, 0.15),
        -1px 0 2px rgba(139, 90, 43, 0.08);
}

/* 书脊效果 */
.short-story-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(90deg,
        rgba(139, 90, 43, 0.35) 0%,
        rgba(139, 90, 43, 0.1) 50%,
        transparent 100%
    );
    z-index: 2;
}

.short-story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.short-story-card:hover .short-story-cover img {
    transform: scale(1.08);
}

/* 故事信息区域 */
.short-story-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.short-story-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.short-story-card:hover .short-story-name {
    color: var(--primary-color);
}

.short-story-author {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.short-story-author i {
    font-size: 11px;
    color: var(--primary-color);
    opacity: 0.8;
}

.short-story-desc {
    flex: 1;
    font-size: 12px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-story-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.short-story-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: var(--accent-cream);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.short-story-tag i {
    font-size: 10px;
}

.short-story-card:hover .short-story-tag {
    background: rgba(196, 139, 74, 0.2);
}

.short-story-words {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.short-story-words i {
    font-size: 11px;
    color: var(--primary-color);
    opacity: 0.7;
}

/* 加载状态 */
.short-story-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.short-story-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* 到底提示 */
.short-story-end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}

.short-story-end::before,
.short-story-end::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    max-width: 100px;
}

.short-story-end span {
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.short-story-end i {
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.6;
}

/* 空状态 */
.short-story-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-light);
    text-align: center;
}

.short-story-empty i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.short-story-empty p {
    font-size: 14px;
    margin: 0;
}

/* 卡片入场动画 */
.short-story-card.card-entering {
    opacity: 0;
    transform: translateY(20px);
}

.short-story-card.card-entered {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 短篇故事区域响应式 */
@media (max-width: 992px) {
    .short-story-list {
        grid-template-columns: 1fr;
    }

    .short-story-card {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .short-story-section {
        padding: 20px 16px;
    }

    .short-story-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .short-story-more {
        align-self: flex-end;
    }

    .short-story-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .short-story-title {
        font-size: 18px;
    }

    .short-story-cover {
        width: 64px;
        height: 85px;
    }

    .short-story-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .short-story-section {
        padding: 16px 12px;
    }

    .short-story-card {
        padding: 12px;
        gap: 12px;
    }

    .short-story-cover {
        width: 56px;
        height: 75px;
    }

    .short-story-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .short-story-author {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .short-story-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .short-story-tag {
        padding: 2px 6px;
        font-size: 9px;
    }

    .short-story-words {
        font-size: 10px;
    }
}
