/* 书讯和书库详情页特有样式 */

/* 书籍信息卡片 */
.sx-book-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* 书籍封面 */
.sx-book-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 封面占位符 */
.sx-book-cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sx-book-cover-placeholder i {
    font-size: 2rem;
    color: #666;
}

/* 书籍详细信息 */
.sx-book-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sx-detail-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.sx-detail-label {
    font-weight: 500;
    color: #666;
    min-width: 60px;
}

.sx-detail-value {
    color: #333;
}

/* 章节样式 */
.sx-section {
    margin: 30px 0;
    padding-top: 20px;
}

.sx-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.sx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    cursor: pointer;
}

.sx-section-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    margin-left: 12px;
}

/* 图标容器样式 */
.sx-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e88e5;
    color: white;
    font-size: 1.2rem;
}

/* 图标悬停效果 */
.sx-section-header:hover .sx-section-icon {
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

/* 目录展开/收起图标样式 */
.sx-toggle-icon {
    color: #1e88e5;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sx-section-header[aria-expanded="true"] .sx-toggle-icon {
    transform: rotate(180deg);
}

.sx-section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* 深色主题适配 */
body.dark-theme .sx-book-info {
    background: #2a2a2a;
}

body.dark-theme .sx-book-cover-placeholder {
    border-color: #444;
    background: #333;
}

body.dark-theme .sx-book-cover-placeholder i {
    color: #666;
}

body.dark-theme .sx-detail-label {
    color: #888;
}

body.dark-theme .sx-detail-value {
    color: #e0e0e0;
}

body.dark-theme .sx-section {
    border-top-color: #333;
}

body.dark-theme .sx-section-title {
    color: #e0e0e0;
}

body.dark-theme .sx-section-content {
    color: #bbb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sx-book-info {
        padding: 15px;
    }
    
    .sx-section-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .sx-section-title {
        font-size: 1.1rem;
    }
    
    .sx-book-details {
        margin-top: 15px;
    }
} 