/* 现代化重置样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --border-color: #dcdde1;
    --light-playnow: #6F8FB0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--light-gray);
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 头部样式优化 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.search-box {
    flex: 0 0 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 导航菜单优化 */
.nav {
    background: var(--primary-color);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
}

.nav-menu > li:hover > a {
    background: rgba(255,255,255,0.1);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* 内容区域优化 */
.main {
    padding: 30px 0;
}

/* 评书列表样式 */
.pingshu-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.more-link {
    color: var(--secondary-color);
}

.pingshu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pingshu-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pingshu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pingshu-thumb {
    position: relative;
    padding-top: 100%; /* 3:4 比例 */
}

.pingshu-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pingshu-info {
    padding: 15px;
}

.pingshu-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pingshu-meta {
    font-size: 13px;
    color: #666;
}

.pingshu-meta span {
    margin-right: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .pingshu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pingshu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-box {
        flex: 0 0 44px;
    }
}

@media (max-width: 576px) {
    .pingshu-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .search-box input {
        flex: 1;
        padding-right: 50px;
    }
    
    .search-box button {
        position: absolute;
        right: 10px;
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* 分类页筛选 */
.filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: #666;
    margin-right: 15px;
}

.filter-options a {
    display: inline-block;
    padding: 5px 15px;
    margin: 0 10px 10px 0;
    border-radius: 15px;
    background: var(--light-gray);
}

.filter-options a.active {
    background: var(--primary-color);
    color: #fff;
}

/* 评书详情页 */
.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-cover {
    flex: 0 0 300px;
}

.detail-cover img {
    width: 100%;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.info-meta p {
    margin-bottom: 10px;
}

.info-meta span {
    color: #666;
    margin-right: 10px;
}

.detail-actions {
    margin-top: 30px;
}

.btn-play,
.btn-favorite {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    margin-right: 15px;
}

.btn-play {
    background: var(--primary-color);
    color: #fff;
}

.btn-favorite {
    background: var(--light-gray);
}

/* 播放器样式 */
.player-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.player-header {
    margin-bottom: 20px;
}

.player-meta {
    color: #666;
    margin-top: 10px;
}

.player-meta span {
    margin-right: 20px;
}

.player-container {
    background: #000;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    height: 100px;
}

.player-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-buttons button,
.player-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    background: var(--light-gray);
}

.btn-speed {
    min-width: 80px;
}

/* 章节列表 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.episode-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.episode-item:hover,
.episode-item.active {
    background: var(--light-playnow);
}

/* 评论区域 */
.comments-section {
    margin-top: 30px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }
    
    .detail-cover {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .episode-grid {
        grid-template-columns: 1fr;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .player-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* 修改底部样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center; /* 添加居中对齐 */
}

.friend-links {
    margin-bottom: 20px;
    text-align: center;
}

.friend-links a {
    color: #fff;
    margin: 0 15px; /* 修改左右间距 */
    text-decoration: none;
}

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 15px;
}

/* 隐藏音频播放器的更多选项按钮 */
.player-container audio::-webkit-media-controls-enclosure {
    border-radius: 8px;
}

.player-container audio::-webkit-media-controls-panel {
    background: #2c3e50;
}

/* 隐藏更多选项按钮 */
.player-container audio::-webkit-media-controls-overflow-button {
    display: none;
}

.player-container audio::-webkit-media-controls-toggle-closed-captions-button {
    display: none;
}

/* 兼容不同浏览器 */
.player-container audio::-webkit-media-controls-mute-button,
.player-container audio::-webkit-media-controls-play-button,
.player-container audio::-webkit-media-controls-timeline,
.player-container audio::-webkit-media-controls-current-time-display,
.player-container audio::-webkit-media-controls-time-remaining-display,
.player-container audio::-webkit-media-controls-volume-slider {
    display: flex;
} 

.allmenu {
    display: none;
}

ins.adsbygoogle[data-ad-status="unfilled"] {  
    display: none !important;  
}