* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --primary: #7B61FF;
    --primary-light: #9b89ff;
    --dark: #1a1a2e;
    --light: #f5f5fa;
    --gray: #888;
}

body {
    background-color: var(--light);
    color: #333;

    line-height: 1.6;
}
/* 面包屑导航 SEO强力加分 */
.breadcrumb {
    padding:10px 15px;
    font-size:13px;
    color:#666;
    background:#fff;
}
.breadcrumb a{
    color:var(--primary);
    text-decoration:none;
}

/* 顶部头部导航 */
.top-header {
    width: 100%;
    background: #fff;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-decoration:none;
}
.header-user {
    font-size: 14px;
    color: #666;
}

/* 搜索+轮播容器 */
.search-banner-wrap {
    position: relative;
    width: 100%;
    padding: 10px 15px;
}

/* 搜索框居中 */
.search-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 600px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 15px;
    background: transparent;
}

.search-box button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-light);
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分类导航 */
.category {
    display: flex;
    padding: 15px;
    gap: 12px;
    overflow-x: auto;
    background: white;
    margin: 10px 0;
}

.category-item {
    padding: 8px 16px;
    background: var(--light);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 14px;
    cursor: pointer;
}

.category-item.active {
    background: var(--primary);
    color: white;
}

.section-title {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more {
    font-size: 14px;
    color: var(--primary);
    font-weight: normal;
    text-decoration:none;
}

.drama-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 15px 20px;
}

.drama-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.drama-card:hover {
    transform: translateY(-3px);
}

.drama-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.drama-info {
    padding: 10px;
}

.drama-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-desc {
    font-size: 12px;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 播放栏 */
.player {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 998;
}

.player-cover {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-title {
    font-size: 14px;
    font-weight: bold;
}

.player-ep {
    font-size: 12px;
    color: var(--gray);
    margin-top: 3px;
}

.player-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 底部主导航 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
    gap: 5px;
}

.nav-item.active {
    color: var(--primary);
}

/* 页面最底部版权底部 SEO页脚 */
.page-footer {
    width: 100%;
    text-align: center;
    padding: 30px 15px 20px;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
    background: #fff;
    margin-top: 20px;
}
.page-footer a{
    color:#666;
    text-decoration:none;
    margin:0 5px;
}

/* PC端优化 */
@media (min-width: 768px) {
    .search-banner-wrap {
        max-width: 1200px;
        margin: 0 auto;
    }
    .banner {
        height: 300px;
    }
    .drama-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .drama-cover {
        height: 260px;
    }
    .top-header,.breadcrumb {
        max-width: 1200px;
        margin: 0 auto;
    }
    .page-footer {
        max-width: 1200px;
        margin: 0 auto;
    }
}