/* 页脚 */
footer {
    background-color: #333;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 列表页样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px 0;
}

.page-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.page-header h2 i {
    margin-right: 10px;
}

.filter-section {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    margin-right: 15px;
    color: var(--text-color);
}

.filter-option {
    margin-right: 15px;
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 4px;
}

.filter-option.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.filter-option:hover:not(.active) {
    background-color: var(--light-bg);
}

.list-content {
    padding: 40px 0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.info-content {
    padding: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination a:hover:not(.active) {
    background-color: var(--light-bg);
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

.pagination a.next i {
    margin-left: 5px;
}

/* 详情页样式 */
.detail-content {
    padding: 40px 0;
}

.breadcrumb {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--text-color);
    margin: 0 5px;
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.detail-header {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow);
}

.detail-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--light-text);
    font-size: 14px;
}

.detail-meta span {
    display: flex;
    align-items: center;
}

.detail-meta span i {
    margin-right: 5px;
}

.detail-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.detail-content-text {
    color: var(--text-color);
}

.detail-content-text p {
    margin-bottom: 15px;
}

.detail-content-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.detail-content-text ul li {
    margin-bottom: 5px;
}

.contact-info {
    background-color: var(--white);
}

.publisher-info {
    display: flex;
    gap: 20px;
}

.publisher-avatar {
    font-size: 60px;
    color: var(--lighter-text);
}

.publisher-details {
    flex: 1;
}

.publisher-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.publisher-details .label {
    font-weight: 500;
    width: 100px;
    display: flex;
    align-items: center;
}

.publisher-details .label i {
    margin-right: 5px;
}

.show-phone-btn {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0 5px;
    font-size: 14px;
    cursor: pointer;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--light-text);
}

.tips {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.tips p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tips p:last-child {
    margin-bottom: 0;
}

.tips i {
    color: #ffc107;
    margin-right: 10px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.qrcode-section {
    text-align: center;
}

.qrcode {
    font-size: 120px;
    color: var(--text-color);
    margin: 20px 0;
}

.qrcode p {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 10px;
}

.related-list li, .hot-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child, .hot-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a, .hot-list a {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.related-list a:hover, .hot-list a:hover {
    color: var(--primary-color);
}

.related-list .time, .hot-list .views {
    font-size: 12px;
    color: var(--lighter-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .detail-main {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container input, .search-container select, .search-container button {
        width: 100%;
    }
    
    .search-container select {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .publisher-details .label {
        width: auto;
        margin-right: 10px;
    }
    
    .publisher-details p {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .detail-header h1 {
        font-size: 20px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
}