/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SimSun", "宋体", serif;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 50%, #d4c4a8 100%);
    background-attachment: fixed;
    color: #2c1810;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.4);
}

.logo i {
    font-size: 30px;
    color: #f4f1e8;
}

.title h1 {
    color: #f4f1e8;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title h1.site-title-link {
    margin: 0;
}

.title h1.site-title-link a {
    color: #f4f1e8;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.title h1.site-title-link a:hover {
    color: #fff;
}

.subtitle {
    color: #e8dcc0;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 5px;
}

.search-container {
    flex: 0 0 400px;
}

.search-form {
    display: flex;
    background: rgba(244, 241, 232, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2c1810;
    outline: none;
}

.search-input::placeholder {
    color: #8b7355;
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border: none;
    color: #f4f1e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

/* 导航栏 */
.navigation {
    background: rgba(139, 69, 19, 0.9);
    padding: 15px 0;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
}

.navigation a {
    color: #e8dcc0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navigation a:hover {
    background: rgba(244, 241, 232, 0.2);
    color: #f4f1e8;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 首页英雄区域 */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 241, 232, 0.8) 0%, rgba(232, 220, 192, 0.8) 100%);
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.hero-title {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a0522d;
    margin-bottom: 40px;
    font-style: italic;
}

.main-search {
    margin-bottom: 50px;
}

.hero-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(244, 241, 232, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.hero-search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #2c1810;
    outline: none;
}

.hero-search-btn {
    padding: 18px 30px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border: none;
    color: #f4f1e8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

/* 热门搜索 */
.hot-searches {
    margin-top: 40px;
}

.hot-searches h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.hot-search-tag {
    background: linear-gradient(135deg, #d4c4a8, #c4b498);
    color: #2c1810;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hot-search-tag:hover {
    background: linear-gradient(135deg, #c4b498, #d4c4a8);
    border-color: #8b4513;
    transform: translateY(-2px);
}

/* 特色功能区域 */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(244, 241, 232, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #d2691e;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 35px;
    color: #f4f1e8;
}

.feature-card h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #2c1810;
    line-height: 1.6;
}

/* 搜索页面样式 */
.search-page {
    padding: 40px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    color: #8b4513;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.search-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-results h2 {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8b7355;
    font-size: 1.2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.book-card {
    background: rgba(244, 241, 232, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.book-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-icon i {
    font-size: 25px;
    color: #f4f1e8;
}

.book-info {
    flex: 1;
}

.book-title a {
    color: #8b4513;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.book-title a:hover {
    color: #d2691e;
}

.book-type, .book-size {
    color: #8b7355;
    margin-top: 5px;
    font-size: 0.9rem;
}

.book-actions {
    flex-shrink: 0;
}

.view-btn {
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: #f4f1e8;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

/* 详情页样式 */
.detail-page {
    padding: 40px 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-left {
    background: rgba(244, 241, 232, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.book-header {
    margin-bottom: 30px;
    text-align: center;
}

.book-title {
    color: #8b4513;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.book-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(232, 220, 192, 0.5);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #d2691e;
}

.info-label {
    color: #8b4513;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: #2c1810;
    font-size: 1.1rem;
}

.book-content {
    margin-bottom: 30px;
}

.book-content h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #d2691e;
    padding-bottom: 10px;
}

.content-text {
    color: #2c1810;
    line-height: 1.8;
    background: rgba(232, 220, 192, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.download-section h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #d2691e;
    padding-bottom: 10px;
}

.download-btn {
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: #f4f1e8;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

.download-loading {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8dcc0;
    border-top: 4px solid #d2691e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-result {
    text-align: center;
    padding: 30px;
}

.download-result h4 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-image {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e8dcc0, #d4c4a8);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #8b4513;
}

.qr-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
}

.download-note {
    color: #8b7355;
    font-style: italic;
}

/* 右侧随机推荐 */
.detail-right {
    background: rgba(244, 241, 232, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    height: fit-content;
}

.random-books h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #d2691e;
    padding-bottom: 10px;
}

.random-book-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.random-book-item:last-child {
    border-bottom: none;
}

.random-book-item .book-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.random-book-item .book-icon i {
    font-size: 18px;
    color: #f4f1e8;
}

.random-book-item .book-title a {
    color: #8b4513;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.random-book-item .book-title a:hover {
    color: #d2691e;
}

.random-book-item .book-type {
    color: #8b7355;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* 关于我们页面样式 */
.about-page {
    padding: 40px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h1 {
    color: #8b4513;
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-subtitle {
    color: #a0522d;
    font-size: 1.3rem;
    font-style: italic;
}

.about-section {
    background: rgba(244, 241, 232, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.about-section h2 {
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #d2691e;
    padding-bottom: 10px;
}

.about-section p {
    color: #2c1810;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.goal-item {
    text-align: center;
    padding: 25px;
    background: rgba(232, 220, 192, 0.3);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.goal-item:hover {
    border-color: #d2691e;
    transform: translateY(-3px);
}

.goal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.goal-icon i {
    font-size: 30px;
    color: #f4f1e8;
}

.goal-item h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

.team-member {
    text-align: center;
    padding: 25px;
    background: rgba(232, 220, 192, 0.3);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: #d2691e;
    transform: translateY(-3px);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.member-avatar i {
    font-size: 35px;
    color: #f4f1e8;
}

.team-member h3 {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.member-title {
    color: #d2691e;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(232, 220, 192, 0.3);
    border-radius: 15px;
    border-left: 4px solid #d2691e;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 25px;
    color: #f4f1e8;
}

.contact-details h3 {
    color: #8b4513;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-details p {
    color: #2c1810;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* 底部样式 */
.footer {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    color: #e8dcc0;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #f4f1e8;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #d2691e;
    padding-bottom: 8px;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e8dcc0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f4f1e8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 241, 232, 0.3);
    color: #d4c4a8;
}

/* 搜索结果列表样式 */
.results-list {
    margin-top: 2rem;
}

.result-item {
    background: rgba(244, 241, 232, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(244, 241, 232, 0.2);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.book-title {
    margin: 0;
    flex: 1;
}

.book-title a {
    color: #8B4513;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.book-title a:hover {
    color: #A0522D;
    text-decoration: underline;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 120px;
}

.book-type, .book-size {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.result-summary {
    color: #5D4037;
    line-height: 1.6;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #8B4513;
}

.highlight-keyword {
    background: #FF6B6B;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: bold;
}

.no-content {
    color: #999;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-container {
        flex: none;
        width: 100%;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search-form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .hero-search-btn {
        border-radius: 0 0 15px 15px;
    }
    
    .book-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .goals-grid, .team-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        flex-direction: column;
        text-align: center;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .book-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .book-type, .book-size {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* 内容发布页面样式 */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header h1 {
    color: #8b4513;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-header p {
    color: #666;
    font-size: 1.1rem;
}

.post-form {
    background: rgba(244, 241, 232, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b4513;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 6px;
    background: rgba(244, 241, 232, 0.8);
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 拖拽区域样式 */
.drag-drop-area {
    border: 2px dashed rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(244, 241, 232, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.drag-drop-area.drag-over {
    border-color: #8b4513;
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.02);
}

.drag-drop-content i {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.drag-drop-content p {
    margin: 0.5rem 0;
    color: #666;
}

.drag-drop-hint {
    font-size: 0.9rem;
    color: #999;
}

/* 文件列表样式 */
.file-list {
    margin-top: 1rem;
    text-align: left;
}

.file-list h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

.file-items {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    background: rgba(244, 241, 232, 0.3);
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    color: #333;
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.file-summary {
    margin-top: 1rem;
    text-align: right;
    font-weight: bold;
    color: #8b4513;
}

/* 图片预览样式 */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.image-name {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* 表单操作按钮 */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.publish-btn {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

/* 登录表单样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-form {
    background: rgba(244, 241, 232, 0.95);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    text-align: center;
    color: #8b4513;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* 用户信息样式 */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 241, 232, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.user-info span {
    color: #8b4513;
    font-weight: 500;
    font-size: 1.1rem;
}

.logout-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* 消息提示样式 */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(244, 241, 232, 0.9);
    color: #8b4513;
    text-decoration: none;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: #8b4513;
    color: white;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #8b4513;
    color: white;
    font-weight: bold;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    gap: 0.5rem;
}

/* 错误报告链接按钮 */
.report-link-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.report-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    color: white;
    text-decoration: none;
}

/* 模态框样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #8b4513;
    font-size: 1rem;
}

.close {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0.2rem;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 0.75rem 1rem;
}

.modal-body .form-group {
    margin-bottom: 0.5rem;
}

.modal-body label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.2;
}

.modal-body label:hover {
    background-color: #f5f5f5;
}

.modal-body input[type="radio"] {
    margin-right: 0.4rem;
    transform: scale(0.9);
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.submit-btn {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    flex: 1;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    flex: 1;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 相关推荐紧凑样式 */
.random-book-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(244, 241, 232, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.random-book-item:hover {
    background: rgba(244, 241, 232, 0.8);
    transform: translateX(5px);
}

.random-book-item .book-icon {
    margin-right: 0.75rem;
    color: #8b4513;
    font-size: 1.2rem;
}

.random-book-item .book-info {
    flex: 1;
}

.random-book-item .book-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.random-book-item .book-title a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.random-book-item .book-title a:hover {
    color: #a0522d;
}

.random-book-item .book-size {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

/* 随机推荐区域样式 */
.recommendations-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe5 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: #8b4513;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.recommendations-column {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.book-item {
    display: flex;
    align-items: flex-start;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.book-item:last-child {
    border-bottom: none;
}

.book-item:hover {
    background: rgba(244, 241, 232, 0.5);
    border-radius: 3px;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    transform: translateX(1px);
}

.book-item .book-icon {
    margin-right: 0.3rem;
    color: #8b4513;
    font-size: 0.7rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.book-item .book-content {
    flex: 1;
    min-width: 0;
}

.book-item .book-title {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.book-item .book-title a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-item .book-title a:hover {
    color: #a0522d;
    text-decoration: underline;
}

/* 强制隐藏随机推荐中的元信息 */
.recommendations-section .book-item .book-meta {
    display: none !important;
    visibility: hidden !important;
}

.recommendations-section .book-item .book-type,
.recommendations-section .book-item .book-size {
    display: none !important;
    visibility: hidden !important;
}

/* 确保三列布局 */
.recommendations-section .recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 响应式设计 */
@media (max-width: 800px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        max-width: 500px;
    }
    
    .recommendations-column {
        padding: 0.4rem;
    }
}

@media (max-width: 600px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        max-width: 300px;
    }
    
    .recommendations-column {
        padding: 0.4rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
