/* =====================================================
   首页 - 中国风·水墨竹韵主题
   ===================================================== */

:root {
    /* 中国风主色调 - 优化版本 */
    /* 文字色系 */
    --ink-black: #1A1A1A;
    --ink-grey: #4A4A4A;
    --ink-light: #8A8A8A;

    /* 竹绿色系 - 主色 */
    --bamboo-dark: #4A7C59;
    --bamboo-primary: #5E8B7E;
    --bamboo-light: #7FB299;
    --bamboo-pale: #A8D5BA;
    --bamboo-green: #7B9E89;
    --jade-green: #5E8B7E;

    /* 纸色系 - 背景 */
    --paper-cream: #FDF8F3;
    --paper-warm: #F5EFE5;
    --paper-beige: #EFE8D8;
    --paper-brown: #E8DFD3;

    /* 印章红色系 - 强调色 */
    --seal-red: #C73E3A;
    --seal-red-light: #D95854;
    --seal-red-dark: #A62F2B;

    /* 金色系 - 装饰 */
    --gold-primary: #C9A961;
    --gold-light: #DBC489;
    --gold-dark: #B8944B;
    --gold-accent: #C9A961;

    /* 紫色系 - 辅助色（用于特定功能） */
    --purple-primary: #8B7E74;
    --purple-light: #A89890;
    --purple-dark: #6B5B95;

    /* 功能色 - 优化对比度 */
    --success-green: #2ECC71;
    --warning-orange: #F39C12;
    --danger-red: #E74C3C;
    --info-blue: #3498DB;
}

/* 页面背景 */
body {
    background: var(--paper-beige);
    background-image:
        linear-gradient(to bottom, rgba(245, 242, 233, 0.95), rgba(239, 232, 216, 0.9)),
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 20 Q110 60 100 100 T100 180' stroke='%23A8D5BA' stroke-width='1' fill='none' opacity='0.15'/%3E%3C/svg%3E");
    font-family: "Microsoft YaHei", "SimSun", serif;
    color: var(--ink-black);
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-warm) 100%);
    border-bottom: 3px solid var(--bamboo-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bamboo-dark), var(--bamboo-primary), var(--bamboo-dark));
}

.header-logo {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--ink-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 顶部导航栏 */
.main-nav {
    background: linear-gradient(135deg, var(--bamboo-dark) 0%, var(--bamboo-primary) 100%);
    padding: 12px 0;
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold-accent);
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav li {
    margin: 0;
}

.main-nav a:link, .main-nav a:visited {
    display: inline-block;
    font-family: "KaiTi", "SimSun", serif;
    font-weight: 600;
    color: var(--paper-beige);
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav a:hover, .main-nav a:active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--gold-accent);
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border: 1px solid rgba(123, 158, 137, 0.2);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--bamboo-green), var(--jade-green));
    border-radius: 4px 0 0 4px;
}

/* 本月阅读组件 */
.monthly-reading-widget {
    background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
    border: 2px solid var(--bamboo-green);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.monthly-reading-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(123, 158, 137, 0.3);
    border-color: var(--jade-green);
}

.monthly-reading-widget::after {
    content: '读';
    position: absolute;
    top: -20px;
    right: -20px;
    font-family: "KaiTi", serif;
    font-size: 6rem;
    color: var(--bamboo-green);
    opacity: 0.1;
    transform: rotate(15deg);
}

.monthly-reading-widget h4 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.3rem;
    color: var(--ink-black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--bamboo-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 组件内部链接提示 */
.widget-link {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--bamboo-green);
    text-align: right;
    font-weight: 500;
    transition: color 0.3s ease;
}

.monthly-reading-widget:hover .widget-link,
.monthly-activity-widget:hover .widget-link {
    color: var(--seal-red);
}

/* 阅读主题 */
.reading-theme {
    background: var(--paper-warm);
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--gold-accent);
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--ink-black);
    font-weight: 500;
    font-family: "KaiTi", "SimSun", serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 活动主题 */
.activity-theme {
    background: var(--paper-warm);
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--gold-accent);
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--ink-black);
    font-weight: 500;
    font-family: "KaiTi", "SimSun", serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item-small {
    background: var(--paper-beige);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid var(--bamboo-green);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--ink-grey);
    margin-bottom: 5px;
}

.stat-value-small {
    font-family: "KaiTi", serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--jade-green);
}

/* 本月活动组件 */
.monthly-activity-widget {
    background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
    border: 2px solid var(--seal-red);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.monthly-activity-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(194, 53, 49, 0.3);
    border-color: var(--seal-red);
}

.monthly-activity-widget::after {
    content: '活';
    position: absolute;
    top: -20px;
    right: -20px;
    font-family: "KaiTi", serif;
    font-size: 6rem;
    color: var(--seal-red);
    opacity: 0.1;
    transform: rotate(15deg);
}

.monthly-activity-widget h4 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.3rem;
    color: var(--ink-black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--seal-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-list {
    min-height: 100px;
}

.activity-item {
    background: var(--paper-beige);
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid var(--seal-red);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--paper-warm);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(194, 53, 49, 0.1);
}

.activity-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ink-black);
    margin-bottom: 5px;
}

.activity-date {
    font-size: 0.9rem;
    color: var(--ink-grey);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

/* 活动项头部 */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

/* 活动标题行 */
.activity-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* 活动类型图标 */
.activity-type-icon {
    color: var(--jade-green);
    flex-shrink: 0;
}

/* 活动状态 */
.activity-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* 活动描述 */
.activity-desc {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-top: 6px;
    line-height: 1.5;
    padding-top: 6px;
    border-top: 1px dashed var(--bamboo-light);
}

.activity-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--seal-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.activity-link:hover {
    color: var(--ink-black);
    text-decoration: underline;
}

/* 统计数字 */
.stat-value {
    font-family: "KaiTi", serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--jade-green);
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(94, 139, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(94, 139, 126, 0.4);
}

/* 书籍分类 */
.category-item {
    background: white;
    padding: 15px;
    border: 1px solid rgba(123, 158, 137, 0.3);
    border-radius: 4px;
    border-left: 4px solid var(--bamboo-green);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--paper-warm);
    border-left-color: var(--seal-red);
    transform: translateX(3px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.category-code {
    background: var(--bamboo-green);
    color: white;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-family: "KaiTi", serif;
}

/* 用户卡片 */
.user-profile {
    background: linear-gradient(135deg, var(--paper-warm) 0%, white 100%);
    border: 2px solid var(--jade-green);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 80px;
    height: 80px;
    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: 2rem;
    font-family: "KaiTi", serif;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(94, 139, 126, 0.3);
}

.user-level {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--ink-black);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "KaiTi", serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-logo {
        font-size: 1.5rem;
    }

    .stat-value-small {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* 水墨效果装饰 */
.ink-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(123, 158, 137, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(94, 139, 126, 0.05) 0%, transparent 20%);
    z-index: -1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--bamboo-green), var(--jade-green));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--jade-green), var(--bamboo-green));
}

/* ==================== 认证相关样式 ==================== */

/* 快速登录区域 */
.auth-section {
    background: white;
    border: 2px solid var(--bamboo-green);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--jade-green), var(--bamboo-green), var(--gold-accent));
}

/* 快速登录标题 */
#login-toggle {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--bamboo-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-toggle:hover {
    color: var(--jade-green);
}

/* 登录面板 */
.auth-panel {
    background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper-beige) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(123, 158, 137, 0.15);
    display: none;
}

.auth-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-panel h3 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.4rem;
    color: var(--ink-black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bamboo-green);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 0.95rem;
    color: var(--ink-grey);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bamboo-light);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    color: var(--ink-black);
    transition: all 0.3s ease;
    font-family: "Microsoft YaHei", sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--jade-green);
    box-shadow: 0 0 0 3px rgba(123, 158, 137, 0.1);
}

/* 密码输入框包装器 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 50px;
}

/* 密码显示/隐藏按钮 */
.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s ease;
}

.password-toggle:hover {
    transform: scale(1.1);
}

/* 表单按钮 */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--jade-green) 0%, var(--bamboo-green) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "KaiTi", "SimSun", serif;
    box-shadow: 0 4px 10px rgba(123, 158, 137, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 158, 137, 0.4);
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* 前往注册页按钮 */
#full-register-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--bamboo-green);
    border: 2px solid var(--bamboo-green);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "KaiTi", "SimSun", serif;
    margin-top: 15px;
}

#full-register-btn:hover {
    background: var(--bamboo-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(123, 158, 137, 0.3);
}

/* 登录错误信息 */
#login-error {
    background: var(--seal-red);
    color: white;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* ==================== 页面布局容器 ==================== */
/* .container 定义移至侧边栏布局部分（第1030行） */

/* ==================== 区块标题 ==================== */
.section-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 2rem;
    color: var(--ink-black);
    margin: 20px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bamboo-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
}

/* ==================== 用户信息显示 ==================== */
.user-info {
    background: white;
    border: 2px solid var(--bamboo-green);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.user-info h2 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bamboo-green);
}

/* ==================== 轮播图样式 ==================== */
.carousel-container {
    margin: 15px 0;
    border: 3px solid var(--bamboo-green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: white;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 44, 44, 0.9), rgba(44, 44, 44, 0.7));
    color: white;
    padding: 20px 30px;
}

.carousel-caption h3 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--bamboo-light);
}

.carousel-caption p {
    font-size: 1rem;
    color: var(--paper-beige);
}

/* 轮播图导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--jade-green);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--jade-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 轮播图指示器 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-dots button.active {
    background: transparent;
    border-color: var(--gold-accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* ==================== 书籍卡片样式 ==================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.book-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, var(--bamboo-green), var(--gold-accent), var(--jade-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(123, 158, 137, 0.3);
}

.book-card:hover::before {
    opacity: 1;
}

.book-cover {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--paper-beige);
    position: relative;
}

.book-cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, var(--seal-red) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    font-family: "Microsoft YaHei", sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover-badge {
    transform: scale(1.1) rotate(-3deg);
}

.book-cover::after {
    content: '📚';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0) rotate(-15deg);
}

.book-card:hover .book-cover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.1) rotate(1deg);
}

.book-info {
    padding: 25px;
    position: relative;
    background: white;
    border-top: 4px solid var(--bamboo-green);
}

.book-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.4rem;
    color: var(--ink-black);
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.book-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--seal-red));
    transition: width 0.3s ease;
}

.book-card:hover .book-title::after {
    width: 100%;
}

.book-author {
    font-size: 0.95rem;
    color: var(--ink-grey);
    margin-bottom: 15px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-author::before {
    content: '✍️';
    font-size: 14px;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.8;
    position: relative;
    padding-left: 12px;
    border-left: 3px solid var(--bamboo-light);
    transition: border-color 0.3s ease;
}

.book-card:hover .book-desc {
    border-color: var(--gold-accent);
}

/* 不同书籍使用不同的配色方案 */
.book-card:nth-child(1) .book-info {
    border-top-color: #667eea;
}

.book-card:nth-child(2) .book-info {
    border-top-color: #764ba2;
}

.book-card:nth-child(3) .book-info {
    border-top-color: #f093fb;
}

.book-card:nth-child(4) .book-info {
    border-top-color: #4facfe;
}

/* 书籍卡片入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.book-card:nth-child(1) {
    animation-delay: 0.1s;
}

.book-card:nth-child(2) {
    animation-delay: 0.2s;
}

.book-card:nth-child(3) {
    animation-delay: 0.3s;
}

.book-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ==================== 读后感样式 ==================== */
.reviews-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 12px;
    border: 2px solid var(--seal-red);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--bamboo-light);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(194, 53, 49, 0.15);
    border-color: var(--seal-red);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--bamboo-light);
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-accent);
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--ink-black);
    margin: 0;
    margin-bottom: 4px;
    font-family: "Microsoft YaHei", sans-serif;
}

.review-book {
    font-size: 0.9rem;
    color: var(--ink-grey);
    margin: 0;
    font-style: italic;
}

.review-content {
    font-size: 0.95rem;
    color: var(--ink-black);
    line-height: 1.8;
}

.review-content p {
    margin: 0 0 12px 0;
}

.read-more-link {
    display: inline-block;
    color: var(--bamboo-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.read-more-link:hover {
    color: var(--seal-red);
    text-decoration: underline;
}

/* ==================== 次级标题 ==================== */
.subsection-title {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin: 20px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid var(--bamboo-green);
}

/* ==================== 联系方式卡片 ==================== */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink-grey);
    margin-bottom: 25px;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--bamboo-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(127, 178, 153, 0.1), rgba(94, 139, 126, 0.1));
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
    border-left-color: var(--gold-primary);
}

.contact-card:nth-child(2):hover {
    border-left-color: var(--seal-red);
}

.contact-card:nth-child(3):hover {
    border-left-color: var(--bamboo-primary);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bamboo-light), var(--bamboo-pale));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-black);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-card:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, var(--seal-red-light), var(--seal-red));
    color: white;
}

.contact-card:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: white;
}

.contact-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 6px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ink-black);
    margin-bottom: 8px;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
}

.contact-time {
    font-size: 0.85rem;
    color: var(--ink-grey);
    display: inline-block;
    padding: 3px 10px;
    background: var(--paper-warm);
    border-radius: 12px;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* ==================== 创办理念 ==================== */
.founder-profile {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--bamboo-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.founder-info h3 {
    font-family: "KaiTi", "SimSun", serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-bottom: 20px;
}

.founder-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-grey);
    margin-bottom: 15px;
}

.highlight {
    color: var(--seal-red);
    font-weight: bold;
    font-size: 1.1em;
}

.founder-link {
    margin-top: 20px;
}

.founder-link a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--bamboo-green), var(--jade-green));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: "KaiTi", "SimSun", serif;
}

.founder-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 158, 137, 0.4);
}

/* ==================== 页脚 ==================== */
#footer {
    background: var(--ink-black);
    color: var(--ink-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

#footer p {
    margin-bottom: 10px;
}

#footer a {
    color: var(--bamboo-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--gold-accent);
}

/* ==================== 侧边栏布局 ==================== */
.fixed-sidebar {
    position: fixed;
    top: 60px;
    width: 280px;
    max-width: calc(25vw - 10px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
}

.left-fixed-sidebar {
    left: 20px;
    left: max(20px, calc(50% - 30vw));
}

.right-fixed-sidebar {
    right: 20px;
    right: max(20px, calc(50% - 30vw));
    width: 320px;
    max-width: calc(28vw - 10px);
}

/* 内容容器调整 */
.container {
    margin-left: max(320px, 32vw);
    margin-right: max(360px, 35vw);
    max-width: none;
    padding: 0 30px;
    min-width: 0; /* 防止内容溢出 */
}

/* 侧边栏通用样式 */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--jade-green);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jade-green);
    margin-bottom: 10px;
}

/* 左侧栏统计项 */
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid var(--bamboo-light);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 158, 137, 0.2);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--ink-grey);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--jade-green);
    font-family: "KaiTi", serif;
}

/* 书友会创立信息 */
.founding-info {
    background: linear-gradient(135deg, var(--jade-green) 0%, var(--bamboo-green) 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(94, 139, 126, 0.3);
}

.founding-icon {
    font-size: 40px;
}

.founding-details {
    flex: 1;
}

.founding-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-family: "Microsoft YaHei", sans-serif;
}

.founding-date {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: "KaiTi", serif;
}

.founding-days {
    font-size: 12px;
    opacity: 0.8;
}

.founding-days span {
    font-size: 18px;
    font-weight: bold;
}

/* 幸运抽轮容器 */
.lucky-wheel-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bamboo-light);
}

.wheel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 抽签盒 */
.lottery-box {
    position: relative;
    width: 100px;
    height: 130px;
    margin-bottom: 15px;
}

.box-lid {
    position: absolute;
    top: 0;
    left: 5px;
    width: 90px;
    height: 35px;
    background: linear-gradient(135deg, #8B7355 0%, #6B4423 100%);
    border-radius: 5px 5px 0 0;
    border: 2px solid #5B3415;
    border-bottom: none;
    transition: all 0.5s ease;
    z-index: 2;
    transform-origin: bottom;
}

.lid-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 18px;
    background: #C9A961;
    border-radius: 3px;
    border: 1px solid #B8944B;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.box-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #A0826D 0%, #8B7355 100%);
    border-radius: 0 0 5px 5px;
    border: 2px solid #5B3415;
    border-top: none;
    z-index: 1;
}

.box-pattern {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border: 2px solid rgba(201, 169, 97, 0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
    font-size: 28px;
    color: rgba(201, 169, 97, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.box-pattern::before {
    content: '签';
}

/* 签条遮罩层 */
.lottery-slip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slip-overlay-content {
    position: relative;
    width: 200px;
    padding: 30px 25px;
    background: linear-gradient(135deg, #FDF8F3 0%, #F5EFE5 100%);
    border-radius: 5px;
    border: 3px solid #C9A961;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
}

.slip-overlay-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M10 0 L20 10 L10 20 L0 10 Z" fill="rgba(201, 169, 97, 0.05)"/></svg>');
    background-size: 20px 20px;
    pointer-events: none;
}

.slip-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: #C73E3A;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(199, 62, 58, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.slip-close-btn:hover {
    transform: scale(1.1);
    background: #A62F2B;
}

.slip-overlay-image {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.slip-overlay-image img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
}

.slip-overlay-icon {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
}

.slip-overlay-type {
    text-align: center;
    font-size: 12px;
    color: #8A8A8A;
    margin-bottom: 8px;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
}

.slip-overlay-name {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #1A1A1A;
    margin-bottom: 12px;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.slip-overlay-source {
    text-align: center;
    font-size: 14px;
    color: #C9A961;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(184, 148, 75, 0.1));
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 4px;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
}

.slip-overlay-detail {
    text-align: center;
    font-size: 13px;
    color: #4A4A4A;
    line-height: 1.6;
    font-family: 'Microsoft YaHei', sans-serif;
}

.wheel-pointer {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #ff6b6b;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;
}

.wheel-result {
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, var(--jade-green) 0%, var(--bamboo-green) 100%);
    border-radius: 8px;
    color: white;
    min-width: 160px;
}

.result-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.result-text {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.result-detail {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.3;
}

/* 手柄 - 中国风竹笛设计 */
.wheel-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    user-select: none;
    padding: 10px 14px;
    background: linear-gradient(135deg, #7FB299 0%, #5E8B7E 100%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.3);
    border: 2px solid #4A7C59;
}

.wheel-handle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(74, 124, 89, 0.4);
}

.wheel-handle:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(74, 124, 89, 0.2);
}

.wheel-handle .handle-text {
    font-size: 12px;
    color: #1A1A1A;
    font-weight: bold;
    font-family: 'KaiTi', 'Microsoft YaHei', serif;
    letter-spacing: 2px;
    margin: 0;
}

/* 用户信息卡片 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--bamboo-light);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--jade-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--ink-black);
    margin-bottom: 5px;
}

.user-level {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--ink-black);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.user-stats .stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--bamboo-light);
}

.user-stats .stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--jade-green);
}

.user-stats .stat .stat-label {
    display: block;
    font-size: 12px;
    color: var(--ink-grey);
    margin-top: 5px;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: var(--paper-warm);
    border: none;
    border-radius: 6px;
    color: var(--ink-grey);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--ink-light);
    color: white;
}

/* 书籍分类 */
.categories-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--bamboo-light);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    padding: 12px;
    background: var(--paper-warm);
    border-radius: 6px;
    border-left: 3px solid var(--bamboo-green);
    transition: all 0.3s;
}

.category-item:hover {
    background: var(--paper-beige);
    border-left-color: var(--seal-red);
    transform: translateX(3px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.category-code {
    background: var(--bamboo-green);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    font-family: "KaiTi", serif;
}

.category-name {
    font-weight: bold;
    color: var(--ink-black);
    font-size: 14px;
}

.category-desc {
    font-size: 11px;
    color: var(--ink-grey);
    line-height: 1.5;
    margin-bottom: 8px;
}

.category-examples {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-feature {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--ink-grey);
}

/* 主内容区 */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 内容区域背景 */
#activities, #read-article, #menu, #auth, #contact, #founder {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#home {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== 动画菜单样式 ==================== */
.animated-menu {
    width: 100%;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item {
    border: none;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

/* 渐变色增强视觉效果 */
.style01 {
    background: linear-gradient(135deg, #6699FF 0%, #5279E7 100%);
    box-shadow: 0 4px 15px rgba(102, 153, 255, 0.4);
}
.style02 {
    background: linear-gradient(135deg, #FF8000 0%, #E57300 100%);
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}
.style03 {
    background: linear-gradient(135deg, #33CCCC 0%, #2BB3B3 100%);
    box-shadow: 0 4px 15px rgba(51, 204, 204, 0.4);
}
.style04 {
    background: linear-gradient(135deg, #CC66CC 0%, #B84DB8 100%);
    box-shadow: 0 4px 15px rgba(204, 102, 204, 0.4);
}
.style05 {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.style06 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1400px) {
    .container {
        margin-left: 20px;
        margin-right: 20px;
        padding: 0 20px;
    }
    
    .fixed-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 20px;
        max-height: none;
    }
    
    .left-fixed-sidebar,
    .right-fixed-sidebar {
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    body {
        min-width: auto;
    }

    .header-logo {
        font-size: 1.5rem;
    }

    .main-nav {
        padding: 8px 0;
    }

    .main-nav ul {
        gap: 5px;
    }

    .main-nav a:link, .main-nav a:visited {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .animated-menu {
        grid-template-columns: 1fr;
    }

    .menu-item {
        height: 80px;
        font-size: 16px;
    }

    .auth-panel {
        padding: 20px;
    }

    /* 联系方式卡片响应式 */
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-value {
        font-size: 1.1rem;
    }

    /* 书籍网格优化 */
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .book-cover {
        height: 260px;
    }

    .book-info {
        padding: 20px;
    }

    .book-title {
        font-size: 1.2rem;
    }

    .book-author,
    .book-desc {
        font-size: 0.85rem;
    }

    .book-cover::after {
        font-size: 20px;
    }

    /* 读后感网格优化 */
    .reviews-section {
        padding: 20px;
        margin: 30px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review-card {
        padding: 15px;
    }

    .reviewer-avatar {
        width: 45px;
        height: 45px;
    }

    .reviewer-name {
        font-size: 0.95rem;
    }

    .review-book {
        font-size: 0.85rem;
    }

    .review-content {
        font-size: 0.9rem;
    }
    
    .stat-value-small {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .carousel-dots button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    /* 书籍网格单列 */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .book-cover {
        height: 300px;
    }

    .book-info {
        padding: 20px;
    }

    .book-title {
        font-size: 1.3rem;
    }

    .book-author {
        font-size: 0.9rem;
    }

    .book-desc {
        font-size: 0.85rem;
        padding-left: 10px;
    }

    /* 读后感单列 */
    .reviews-section {
        padding: 15px;
        margin: 25px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review-card {
        padding: 12px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .reviewer-name {
        font-size: 0.9rem;
    }

    .review-book {
        font-size: 0.8rem;
    }

    .review-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

a {
    text-decoration: none;
}

hr {
    border: 1px solid var(--bamboo-light);
    margin: 20px 0;
}

input {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 12px 15px;
    border: 2px solid var(--bamboo-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
    background: white;
    color: var(--ink-black);
}

input:focus {
    outline: none;
    border-color: var(--jade-green);
    box-shadow: 0 0 0 3px rgba(123, 158, 137, 0.1);
}

button[type="submit"] {
    width: 100%;
    max-width: 350px;
    height: 48px;
    background: linear-gradient(135deg, var(--jade-green) 0%, var(--bamboo-green) 100%);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 158, 137, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.table-caption {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0;
    color: var(--ink-black);
    text-align: center;
}
