/* 经典名著页面特定样式 */
.classics-header-section {
    background: linear-gradient(135deg, #2c3e50 0%, #4a235a 100%);
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.classics-header-section::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" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

.classics-header {
    position: relative;
    z-index: 1;
}

.classics-title {
    text-align: center;
    margin-bottom: 40px;
}

.classics-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.classics-title h1 i {
    color: #ffd700;
    margin-right: 15px;
}

.classics-subtitle {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    opacity: 0.9;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.classics-search-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-icon {
    padding: 15px 20px;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
}

.classics-search-input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    font-family: var(--body-font);
}
.classics-search-input::placeholder {
color: rgba(255, 255, 255, 0.6);
}

.classics-search-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.classics-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 0.95rem;
    min-width: 160px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select option {
    background: #2c3e50;
    color: white;
}

.classics-quote {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.quote-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
    color: white;
}

.quote-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* 经典分类样式 */
.classics-categories {
    margin: 60px 0 40px;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-tab {
    padding: 15px 25px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.category-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.category-tab i {
    font-size: 1.2rem;
}

.categories-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* 时间轴样式 */
.timeline-section {
    margin: 40px 0;
}

.timeline-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.timeline {
    display: flex;
    min-width: 800px;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item {
    flex: 1;
    position: relative;
    padding: 0 15px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item.active .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: all 0.3s;
}

.timeline-content {
    text-align: center;
    padding-top: 40px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-count {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 经典展示区域样式 */
.classics-showcase {
    margin: 60px 0;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.showcase-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.view-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-control {
    min-width: 180px;
}

.sort-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
}

/* 网格视图样式 */
.classics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.classic-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.classic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.classic-cover {
    position: relative;
    overflow: hidden;
}

.classic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.classic-card:hover .classic-cover img {
    transform: scale(1.05);
}

.classic-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.classic-badge.chinese {
    color: #c62828;
}
.classic-badge.western {
    color: #1565c0;
}
.classic-badge.novel {
    color: #2e7d32;
}
.classic-badge.poetry {
    color: #6a1b9a;
}
.classic-badge.philosophy {
    color: #ef6c00;
}

.period-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 5px 15px;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.classic-info {
    padding: 25px;
}

.classic-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.classic-author {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.classic-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary-color);
}

.classic-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
}

.classic-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.classic-actions {
    display: flex;
    gap: 10px;
}

.detail-btn, .borrow-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.detail-btn:hover {
    background: var(--primary-color);
    color: white;
}

.borrow-btn {
    background: var(--gradient-primary);
    color: white;
}

.borrow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* 时间轴视图样式 */
.period-section {
    margin-bottom: 30px;
}

.period-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
}

.period-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.period-title {
    flex: 1;
}

.period-title h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.period-range {
    color: var(--text-light);
    font-size: 0.9rem;
}

.period-count {
    padding: 8px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.period-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-left: 30px;
}

.timeline-book {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.timeline-book:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.book-year {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.book-info {
    flex: 1;
}

.book-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.book-author {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.timeline-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.timeline-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 卡片视图样式 */
.classic-profile-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.card-header {
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.header-info {
    flex: 1;
}

.header-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
}

.header-period {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.card-body {
    padding: 25px;
}

.author-section, .rating-section, .summary-section {
    margin-bottom: 25px;
}

.card-body h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.author-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rating-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.rating-stats .stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stars-display {
    font-size: 1.2rem;
    color: #ffc107;
    text-align: center;
}

.summary-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.card-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.read-btn {
    background: var(--gradient-primary);
    color: white;
}

.study-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.share-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.card-btn:hover {
    transform: translateY(-2px);
}

/* 收藏按钮动画 */
.pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 消息提示样式 */
.message-toast.error {
    background: #f44336;
    color: white;
}

/* 已收藏按钮样式 */
.modal-btn.save-btn:disabled {
    background: #4CAF50 !important;
    cursor: not-allowed;
}

/* 诺奖作家样式 */
.nobel-authors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.author-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: all 0.3s;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.author-details {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-works h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.works-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.work-tag {
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.85rem;
}

.author-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.author-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 阅读挑战样式 */
.reading-challenge {
    margin: 60px 0;
}

.challenge-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.challenge-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffd700;
}

.challenge-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.challenge-info p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.challenge-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.progress-percent {
    font-weight: 600;
    color: #ffd700;
}

.challenge-books h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.challenge-book {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
}

.book-cover-mini {
    width: 50px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.book-cover-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info-mini {
    flex: 1;
}

.book-info-mini h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.book-author-mini {
    font-size: 0.85rem;
    opacity: 0.8;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.unread {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-badge.read {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.join-challenge-btn {
    width: 100%;
    padding: 18px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.join-challenge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.join-challenge-btn.joined {
    background: #4caf50;
    color: white;
}

/* 经典研究资源样式 */
.study-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.resource-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.resource-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.resource-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* 经典语录墙样式 */
.quotes-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.quote-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote-content {
    position: relative;
    margin-bottom: 25px;
}

.quote-start {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote-end {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.quote-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
    padding: 0 20px;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quote-author {
    text-align: left;
}

.quote-author strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.quote-work {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quote-category {
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 经典详情模态框样式 */
.classic-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.classic-modal {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.modal-header {
    display: flex;
    gap: 30px;
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.modal-cover {
    width: 200px;
    height: 300px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    min-width: 300px;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.modal-author {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-score .score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-score .stars {
    font-size: 1.5rem;
    color: #ffc107;
}

.raters {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
}

.modal-period {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.modal-tags {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-body {
    padding: 40px;
}

.modal-body .section {
    margin-bottom: 30px;
}

.modal-body h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-intro, .summary {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.catalog {
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.catalog-line {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.catalog-line::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.catalog-more {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.modal-btn.borrow-btn {
    background: var(--gradient-primary);
    color: white;
}

.modal-btn.study-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.modal-btn.save-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

/* 研究资源模态框样式 */
.study-modal {
    padding: 40px;
}

.study-modal h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.study-resource {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 2px solid;
    transition: all 0.3s;
}

.study-resource:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.study-resource h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.study-resource p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.resource-btn {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.resource-btn:hover {
    gap: 12px;
}

.study-tips {
    background: rgba(67, 97, 238, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 30px;
}

.study-tips h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.study-tips ul {
    list-style: none;
    padding-left: 0;
}

.study-tips li {
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.study-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideUp 0.3s ease;
    min-width: 300px;
}

.message-toast.success {
    border-left: 4px solid #4caf50;
}

.message-toast.info {
    border-left: 4px solid #2196f3;
}

.message-toast i {
    font-size: 1.3rem;
}

.message-toast.success i {
    color: #4caf50;
}

.message-toast.info i {
    color: #2196f3;
}

.message-toast span {
    flex: 1;
    font-weight: 500;
}

.message-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .classics-title h1 {
        font-size: 3rem;
    }
    
    .classics-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .modal-header {
        flex-direction: column;
    }
    
    .modal-cover {
        margin: 0 auto 30px;
    }
}

@media (max-width: 992px) {
    .classics-title h1 {
        font-size: 2.5rem;
    }
    
    .classics-subtitle {
        font-size: 1.2rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        background: transparent;
    }
    
    .classics-search-button {
        width: 100%;
        justify-content: center;
    }
    
    .categories-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        flex-shrink: 0;
    }
    
    .timeline {
        min-width: 600px;
    }
    
    .period-books {
        grid-template-columns: 1fr;
    }
    
    .quotes-wall {
        grid-template-columns: 1fr;
    }
    
    .challenge-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .classics-title h1 {
        font-size: 2rem;
    }
    
    .classics-subtitle {
        font-size: 1.1rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .showcase-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .classics-grid {
        grid-template-columns: 1fr;
    }
    
    .nobel-authors {
        grid-template-columns: 1fr;
    }
    
    .study-resources {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body, .modal-header {
        padding: 30px 20px;
    }
    
    .message-toast {
        width: 90%;
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .classics-header-section {
        padding: 60px 0 40px;
    }
    
    .classics-title h1 {
        font-size: 1.8rem;
    }
    
    .classics-subtitle {
        font-size: 1rem;
    }
    
    .categories-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-container {
        padding: 20px;
    }
    
    .timeline {
        min-width: 500px;
    }
    
    .challenge-card {
        padding: 30px 20px;
    }
    
    .classic-actions {
        flex-direction: column;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .classic-modal {
        border-radius: var(--border-radius-lg);
    }
}

/* 滚动条样式 */
.classic-modal::-webkit-scrollbar {
    width: 8px;
}

.classic-modal::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.classic-modal::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.classic-modal::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
