/* ==================== 头部导航栏样式 ==================== */
.header {
    background-color: #161b22; /* 深色背景 */
    border-bottom: 1px solid #30363d; /* 底部边框 */
    position: sticky; /* 吸顶 */
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-inner {
    max-width: 1600px; /* 限制最大宽度，让内容居中留白 */
    margin: 0 auto;
    padding: 0 20px;
    height: 68px; /* 导航高度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 文字 */
.header-logo {
    font-size: 26px;
    font-weight: 900;
    color: #e50914;
    text-decoration: none;
    letter-spacing: 1px;
}

/* 导航菜单组 */
.header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: #c9d1d9;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover, .header-nav a.active {
    color: #e50914;
}

/* 搜索框 */
.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    color: #c9d1d9;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: all 0.3s;
}

.header-search::placeholder {
    color: #8b949e;
}

.header-search:focus {
    border-color: #e50914;
    background-color: #161b22;
}

/* 搜索小图标 */
.search-icon {
    position: absolute;
    left: 12px;
    color: #8b949e;
    font-size: 14px;
    pointer-events: none;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .header-nav { display: none; } /* 手机端隐藏菜单 */
    .header-search { width: 140px; }
}


/* ==================== 按分类探索影视 (筛选区) ==================== */
.explore-box {
    background: #161a22;
    border: 1px solid #2a2e38;
    border-radius: 12px;
    padding: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
    
    
    /*  加了这两行，宽度被限制在 1600px 并居中  */
    max-width: 1550px; 
    margin-left: auto; 
    margin-right: auto; 
}

.explore-header {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.explore-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #2a2e38;
}
.explore-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.explore-label {
    color: #8b949e;
    font-size: 14px;
    width: 60px;
    flex-shrink: 0;
    padding-top: 6px;
}
.explore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.explore-tags a {
    background: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.explore-tags a:hover {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}


/* ==================== 底部版权信息 ==================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
    font-size: 13px;
    border-top: 1px solid #2a2e38;
    background: #0d1117;
    margin-top: 40px;
}
.footer-links {
    margin-bottom: 15px;
}
.footer-links a {
    color: #c9d1d9;
    margin: 0 12px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #e50914;
}
.footer-text {
    line-height: 2;
}