/* ==========================================
   王师傅爱分享 - 统一样式表（最终清理版）
   ========================================== */

/* ========== 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f5f0e8;/* ========整站背景色========= */
    color: #333;
    line-height: 1.6;
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== 头部 ========== */

header {
    background:#1a1a1a;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.logo img {
    height: 40px;
    margin-right: 10px;
}
.search-box form {
    display: flex;
    margin: 10px 0;
    width: 100%;
    max-width: 400px;
}
.search-box input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-box button {
    background-color: #29a329;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-box button:hover {
    background-color: #3cc970;
}

/* ========== 导航菜单 ========== */
nav {
    width: 100%;
    margin-top: 10px;
}
.nav-menu {
    display: flex;
    list-style: none;
    background-color: rgba(200,200,200,0.35);
    border-radius: 4px;
    flex-wrap: wrap;
}
.nav-menu li {
    position: relative;
}
.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
    background-color: transparent !important;
    color: #29a329 !important;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3A3A3A;
    list-style: none;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.nav-menu li:hover .dropdown {
    display: block;
}
.dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dropdown li:last-child {
    border-bottom: none;
}

/* ========== 今日更新 ========== */
.today-update {
    margin-left: auto !important;
}
.today-update a {
    color: #29a329 !important;
    font-size: 0.85rem;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 14px;
}
.today-update a:hover {
    color: #ffffff !important;
    background: none !important;
}

/* ========== Banner ========== */
.banner {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
}
.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}
.banner-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.banner-desc {
    margin-bottom: 15px;
    max-width: 70%;
}
.banner-link {
    display: inline-block;
    background-color: #29a329;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.banner-link:hover {
    background-color: #3cc970;
}
.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}
.banner-control {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-control:hover {
    background-color: rgba(0,0,0,0.8);
}
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-indicator.active {
    background-color: white;
}

/* ========== 影视列表 ========== */
.section-title {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #3A3A3A;
    padding-bottom: 8px;
    border-bottom: 2px solid #444444;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.movie-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.movie-card:hover {
     transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}
.movie-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #29a329;
    color: white;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 3;
    line-height: 1;
    pointer-events: none;

}
.movie-info {
    padding: 8px 6px 10px;
    text-align: center;          /* ← 这一行是背景色，海报底部标题背景色 */
    background-color:  #fff;   /* ← 这一行是背景色， */
}
.movie-title {
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.movie-title a:hover {
    color: #29a329;
}
.movie-sub {
    display: block;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.movie-meta {
    display: none;
}
.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
    padding: 40px 10px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.movie-card:hover .poster-overlay {
    opacity: 1;
    visibility: visible;
}
.poster-overlay p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    margin: 0;
}

/* ========== 筛选区域（紧凑小标签，无折叠） ========== */
.filters {
    padding: 10px 12px;
    font-size: 0.85rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 20px 0;
}
.filter-group {
    margin-bottom: 8px;
}
.filter-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #666;
    font-weight: 600;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.filter-options a {
    padding: 3px 8px;
    font-size: 0.78rem;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
.filter-options a:hover,
.filter-options a.active {
    background-color: #29a329;
    color: #fff;
    border-color: #29a329;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination a {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}
.pagination a:hover,
.pagination a.active {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* ========== 播放页详情（左文右图） ========== */
.movie-detail {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 15px !important;
    margin: 10px 0 !important;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.movie-details-info {
    flex: 1;
    order: 1;
}
.movie-poster-large {
    flex: 0 0 200px;
    order: 2;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}
.movie-poster-large img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
}
.movie-details-info h1 {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
}
.movie-meta-detail p {
    margin-bottom: 3px !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}
.movie-description h3 {
    font-size: 0.95rem !important;
    margin: 10px 0 4px !important;
}
.movie-description p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    max-height: 120px;
    overflow-y: auto;
}

/* ========== 播放器 ========== */
.player-container {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 60%;
    aspect-ratio: 16 / 9;
    margin: 20px auto !important;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    float: none !important;
}
.player-container::after {
    content: none;
}
.MacPlayer {
    background: #000000;
    font-size: 14px;
    color: #F6F6F6;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ========== 播放源选项卡 ========== */
.play-sources {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.play-sources h3 {
    margin-bottom: 15px;
    color: #1a237e;
}
.source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.source-tab {
    display: inline-block;
    padding: 8px 18px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.source-tab:hover {
    background-color: #e0e0e0;
}
.source-tab.active {
    background-color: #29a329;
    color: #fff;
    border-color: #29a329;
}
.source-panel {
    margin-top: 8px;
}
.play-sources .source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.source-btn {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.source-btn:hover {
    background-color: #e8e8e8;
    border-color: #29a329;
}
.source-btn.active {
    background-color: #29a329;
    color: #fff !important;
    border-color: #29a329;
    font-weight: bold;
}

/* ========== 友情链接 ========== */
.friend-links {
    background-color: #E8E8E8;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.friend-links h3 {
    margin-bottom: 15px;
    color: #333333;
}
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.links-grid a {
    color: #555555;
    text-decoration: none;
    transition: color 0.3s;
}
.links-grid a:hover {
    color: #2C2C2C;
    text-decoration: underline;
}

/* ========== 页脚 ========== */
footer {
    background-color: #2C2C2C;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.copyright {
    text-align: center;
}
.copyright a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}
.copyright a:hover {
    color: white;
    text-decoration: underline;
}
.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}

/* ==========================================
   响应式
   ========================================== */

/* 平板 */
@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box {
        width: 100%;
        max-width: none;
    }
    .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start;
        box-shadow: none !important;
        overflow: visible;
        width: 100%;
    }
    .nav-menu li {
        flex-shrink: 0;
    }
    .nav-menu a {
        padding: 10px 13px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: transparent !important;
        color: #29a329 !important;
    }
    .dropdown {
        position: static;
        display: none;
        background-color: #CCCCCC;
    }
    .nav-menu li:hover .dropdown {
        display: block;
    }
    .banner-title {
        font-size: 1.5rem;
    }
    .banner-desc {
        max-width: 100%;
        font-size: 0.9rem;
    }
    .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .movie-poster {
        aspect-ratio: 2 / 3;
    }
    .movie-info {
        padding: 6px 4px 8px;
    }
    .movie-title {
        font-size: 0.8rem;
    }
    .movie-sub {
        font-size: 0.68rem;
    }
    .poster-overlay {
        display: none;
    }
    .movie-detail {
        flex-direction: column !important;
    }
    .movie-poster-large {
        flex: 0 0 auto;
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }
    .movie-poster-large img {
        max-width: 160px;
    }
    .movie-details-info {
        order: 2;
    }
    .movie-details-info h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    .player-container {
        width: 100% !important;
        margin: 10px auto !important;
        border-radius: 8px;
    }
    .today-update a {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* 小手机 */
@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
    .movie-info {
        padding: 5px 3px 6px;
    }
    .movie-title {
        font-size: 0.75rem;
    }
    .movie-sub {
        font-size: 0.65rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .pagination a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
/* ========== 豆瓣风格评分标签（绿色版） ========== */
.movie-rating {
    position: absolute;
    top: 0;
    right: 0;
    background: #29a329;
    color: #fff;
    padding: 3px 6px;
    font-size: 0.8rem;
    font-weight: normal;
    border-radius: 0 0 0 4px;
    z-index: 3;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    font-family: Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 豆瓣快捷跳转样式 */
.douban-link {
    display: inline-block;
    color: #4ADE80;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: color 0.2s;
}
.douban-link:hover {
    color: #3cc970;
    text-decoration: under/* ========== Banner 修复（16:9，自适应不裁切） ========== */
.banner {
    width: 100%;
    max-width: 1400px;          /* 和网站内容区最大宽度一致 */
    margin: 20px auto;          /* 上下间距，左右自动居中 */
    aspect-ratio: 16 / 9;       /* 固定16:9比例 */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.banner-slides {
    width: 100%;
    height: 100%;
    display: flex;
}
.banner-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}line;
}
/* 详情页主演链接绿色 */
.movie-meta-detail p:nth-child(3) a {
    color: #29a329 !important;
}
/* ========== Banner 样式（原始稳定版） ========== */
.banner {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
}
.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}
.banner-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.banner-desc {
    margin-bottom: 15px;
    max-width: 70%;
}
.banner-link {
    display: inline-block;
    background-color: #29a329;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.banner-link:hover {
    background-color: #3cc970;
}
.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}
.banner-control {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-control:hover {
    background-color: rgba(0,0,0,0.8);
}
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-indicator.active {
    background-color: white;
}