/**
 * AI古诗文速记样式表 - 优化版
 * 界面最大化，布局更舒适
 */

/* ==================== 通用样式 ==================== */
:root {
    --classical-primary: #8B4513;
    --classical-secondary: #D2691E;
    --classical-bg: #FDF5E6;
    --classical-card-bg: #FFFAF0;
    --classical-text: #4A3728;
    --classical-border: #DEB887;
}

/* ==================== 学习面板样式 - 最大化布局 ==================== */
#classicalPoetryPanel {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 头部区域 - 标题和筛选器同一行 */
#classicalPoetryPanel .panel-header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    flex-shrink: 0;
}

#classicalPoetryPanel .panel-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* 左侧控件容器 */
.header-left-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    flex: 1;
}

/* 复习筛选开关 */
.review-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toggle-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff6b6b;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 头部返回按钮 */
.header-back-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-back-btn:hover {
    background: rgba(255,255,255,0.35);
}

#classicalPoetryPanel .panel-header p {
    display: none; /* 隐藏副标题，节省空间 */
}

/* 头部搜索框 */
.header-search {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 180px;
}

.header-search input {
    width: 100%;
    padding: 10px 38px 10px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-search input:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.header-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 头部筛选器 */
.header-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-category-filter {
    display: flex;
    gap: 8px;
}

.header-grade-filter {
    display: flex;
    gap: 6px;
}

.header-category-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-category-btn:hover {
    background: rgba(255,255,255,0.25);
}

.header-category-btn.active {
    background: white;
    color: #8B4513;
    border-color: white;
}

.header-grade-btn {
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.header-grade-btn:hover {
    background: rgba(255,255,255,0.2);
}

.header-grade-btn.active {
    background: rgba(255,255,255,0.9);
    color: #8B4513;
    border-color: white;
}

/* 内容区域 */
.classical-poetry-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-color);
}

/* 原搜索框样式已移到头部，此处保留用于兼容 */
.classical-search {
    display: none;
}

/* ==================== 列表样式 - 更大卡片 ==================== */
#classicalPoemsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* 学习卡片样式 */
.learning-poem-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.learning-poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--classical-primary);
}

.learning-poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--classical-primary) 0%, var(--classical-secondary) 100%);
}

.poem-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.review-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.review-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.image-indicator.need-review {
    color: #ff6b6b;
    font-weight: 600;
}

.poem-grade {
    background: rgba(139, 69, 19, 0.1);
    color: var(--classical-primary);
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s;
    padding: 5px;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: #e91e63;
}

.poem-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 700;
}

.poem-author {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.poem-author i {
    margin-right: 5px;
}

.poem-preview {
    background: var(--bg-color);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.poem-preview p {
    margin: 0 0 6px 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

.poem-preview .more-lines {
    color: var(--text-secondary);
    font-size: 13px;
}

.poem-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.image-indicator {
    color: var(--text-secondary);
}

.image-indicator.has-images {
    color: #4CAF50;
}

.view-count {
    color: var(--text-secondary);
}

/* ==================== 详情面板样式 - 更大更舒适 ==================== */
#classicalPoemDetail {
    display: none;
}

.poem-detail-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 旧样式已移除：detail-header, back-btn, detail-actions */

/* 内容区域 - 图片更大，去掉黑框 */
.poem-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
    align-items: start;
}

@media (max-width: 1100px) {
    .poem-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.poem-info-section {
    padding-right: 10px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px 0;
}

.detail-title {
    margin: 0;
    font-size: 28px;
    color: var(--text-color);
    line-height: 1.2;
}

.detail-actions-inline {
    display: flex;
    gap: 8px;
}

.action-btn-memory {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn-memory:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn-review {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.action-btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.detail-author {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-tag {
    background: var(--classical-primary);
    color: white;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 13px;
}

.poem-full-content {
    background: var(--bg-color);
    padding: 20px 24px;
    border-radius: 12px;
}

.poem-line {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.poem-line:last-child {
    margin-bottom: 0;
}

.line-number {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 24px;
}

/* 图片区域 - 放大，去掉背景框 */
.poem-images-section {
    padding: 0;
}

.poem-images-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.image-carousel {
    position: relative;
}

.image-slides {
    position: relative;
    height: 580px;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.image-slide.active {
    opacity: 1;
}

.image-slide img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.image-caption {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 12px 28px;
    margin: 15px 0 0 0;
    text-align: center;
    font-size: 18px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-block;
}

/* 图片下方的记忆技巧区域 */
.image-memory-method {
    margin-top: 15px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    text-align: left;
}

.image-memory-method h4 {
    margin: 0 0 12px 0;
    color: #667eea;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-memory-method p {
    margin: 0;
    color: var(--text-color);
    font-size: 19px;
    line-height: 1.8;
}

.image-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 2px;
}

.image-nav button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.image-nav button:hover:not(:disabled) {
    background: var(--classical-primary);
    color: white;
    border-color: var(--classical-primary);
}

.image-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-counter {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 额外信息区域 - 紧凑布局（移到左侧古诗下方） */
.poem-extra-info-compact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-section-compact {
    background: var(--bg-color);
    padding: 14px 18px;
    border-radius: 10px;
}

.info-section-compact h4 {
    margin: 0 0 12px 0;
    color: var(--classical-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section-compact p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 19px;
}

/* 旧样式兼容（隐藏） */
.poem-extra-info {
    display: none;
}

/* ==================== 记忆模式模态框 - 更大更舒适 ==================== */
.memory-mode-modal-overlay {
    z-index: 10002;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    overflow: hidden;
}

.memory-mode-container {
    background: var(--card-bg);
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.memory-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.memory-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.memory-content {
    flex: 1;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.memory-image-section {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* 记忆模式图片轮播 - 和详情页一样用 opacity 切换 */
.memory-image-slides {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.memory-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-image-slide.active {
    opacity: 1;
}

.memory-image-slide img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.memory-image-section img {
    max-width: 100%;
    max-height: calc(100vh - 280px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.memory-progress {
    margin-top: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    background: var(--bg-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.memory-text-section {
    background: var(--bg-color);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: center;
    flex-shrink: 0;
}

.text-reveal .hint {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-size: 14px;
}

.reveal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.line-text {
    font-size: 24px;
    color: var(--text-color);
    margin: 15px 0 0 0;
    font-weight: 600;
    line-height: 1.5;
}

.memory-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    padding: 10px 0;
}

.nav-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--classical-primary);
    color: var(--classical-primary);
    background: var(--card-bg);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.close-bottom-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.close-bottom-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* 分页控件样式 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.page-size-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.page-size-btn:hover {
    border-color: var(--classical-primary);
    color: var(--classical-primary);
}

.page-size-btn.active {
    background: var(--classical-primary);
    color: white;
    border-color: var(--classical-primary);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 36px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--classical-primary);
    color: var(--classical-primary);
}

.page-btn.active {
    background: var(--classical-primary);
    color: white;
    border-color: var(--classical-primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.remember-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.remember-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.not-remember-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.not-remember-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* ==================== 加载和空状态 ==================== */
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 56px;
    margin-bottom: 25px;
    color: var(--classical-primary);
}

.loading-state p,
.error-state p,
.empty-state p {
    font-size: 17px;
    margin-top: 15px;
}

/* ==================== 旧筛选器样式（兼容） ==================== */
.classical-filters {
    display: none; /* 隐藏旧筛选器，使用头部筛选器 */
}

/* ==================== 动画效果 ==================== */
.classical-poem-card {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    #classicalPoemsList {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
    
    .image-slides {
        height: 510px;
    }
    
    .image-slide img {
        max-height: 390px;
    }
}

@media (max-width: 1100px) {
    #classicalPoetryPanel .panel-header {
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 12px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        min-width: 200px;
        flex: 1 1 100%;
    }
    
    .header-filters {
        order: 2;
        width: auto;
        flex: 1;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    
    .poem-content-wrapper {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    .poem-line {
        font-size: 22px;
    }
    
    .image-slides {
        height: 450px;
    }
    
    .image-slide img {
        max-height: 330px;
    }
    
    .memory-image-section img {
        max-height: 320px;
    }
    
    .line-text {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .classical-poetry-content {
        padding: 15px;
    }
    
    #classicalPoemsList {
        grid-template-columns: 1fr;
    }
    
    .learning-poem-card {
        padding: 18px;
    }
    
    .poem-title {
        font-size: 20px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .poem-line {
        font-size: 19px;
    }
    
    .image-slides {
        height: 380px;
    }
    
    .image-slide img {
        max-height: 260px;
    }
    
    .memory-controls {
        flex-wrap: wrap;
    }
    
    .memory-image-section img {
        max-height: 250px;
    }
}

/* ==================== 深色主题适配 ==================== */
html:not([data-theme="light"]) #classicalPoetryPanel {
    --classical-primary: #CD853F;
    --classical-secondary: #DEB887;
    --classical-bg: #2a2a2a;
    --classical-card-bg: #1f1f1f;
    --classical-text: #e0e0e0;
    --classical-border: #444;
}

html:not([data-theme="light"]) .image-slide img {
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

/* ==================== 管理模块样式 ==================== */
.classical-management-container {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
