/* ============================================
   苹果CMS影视网站 - 前台样式 - 明亮清新风格
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #409eff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 侧边栏布局下，container 填满主内容区 */
.sidebar-layout .container {
    max-width: 100%;
    padding: 0;
}

/* ========== 侧边栏布局 ========== */
.sidebar-layout {
    background: #f5f7fa;
}

/* 左侧侧边栏 */
.site-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    border-right: 1px solid #ebeef5;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

/* Logo区 */
.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #f2f6fc;
}
.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #409eff;
    text-decoration: none;
}
.sidebar-logo i {
    font-size: 26px;
    background: linear-gradient(135deg, #409eff, #66b1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-logo-img {
    max-height: 36px;
    max-width: 180px;
    object-fit: contain;
}

/* 搜索框 */
.sidebar-search {
    padding: 16px 16px 12px;
}
.sidebar-search form {
    position: relative;
}
.sidebar-search-input {
    width: 100%;
    height: 38px;
    padding: 0 15px 0 40px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: #f5f7fa;
    transition: all 0.3s;
}
.sidebar-search-input:focus {
    border-color: #409eff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #909399;
    font-size: 14px;
    pointer-events: none;
}

/* 导航菜单 */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 16px;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #dcdfe6;
    border-radius: 2px;
}

.nav-section {
    margin-bottom: 8px;
}
.nav-section-title {
    padding: 12px 12px 6px;
    font-size: 12px;
    color: #909399;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nav-section ul {
    list-style: none;
}
.nav-section li {
    margin-bottom: 2px;
}
.nav-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #606266;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s;
    text-decoration: none;
}
.nav-section a:hover {
    background: #ecf5ff;
    color: #409eff;
}
.nav-section li.active a {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.35);
}
.nav-section li.active a:hover {
    color: #fff;
}
.nav-section a i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid #f2f6fc;
    font-size: 12px;
    color: #c0c4cc;
    text-align: center;
}

/* 侧边栏用户区 */
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: left;
}
.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #409eff, #66b1ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-user-text {
    flex: 1;
    min-width: 0;
}
.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-user-vip {
    margin-top: 2px;
}
.vip-tag {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #8b6914;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
}
.vip-tag.vip-expired {
    background: #f0f2f5;
    color: #909399;
}
.sidebar-user-btn {
    display: block;
    width: 100%;
    padding: 6px 0;
    margin-top: 6px;
    background: #ecf5ff;
    color: #409eff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
}
.sidebar-user-btn.logout {
    background: #fef0f0;
    color: #f56c6c;
}
.sidebar-login .btn {
    padding: 8px 0 !important;
    font-size: 13px !important;
}

/* 移动端用户按钮 */
.mobile-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #606266;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

/* 主内容区 */
.site-main {
    margin-left: 240px;
    min-height: 100vh;
    padding: 24px 28px;
    transition: margin-left 0.3s ease;
}

/* 侧边栏遮罩（移动端） */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* 移动端顶栏 */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #ebeef5;
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.mobile-menu-btn,
.mobile-search-btn,
.mobile-history-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: #606266;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.mobile-menu-btn:hover,
.mobile-search-btn:hover,
.mobile-history-btn:hover {
    background: #f5f7fa;
}

/* 移动端顶栏左右按钮组 */
.mobile-topbar-left,
.mobile-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 84px;
}

.mobile-topbar-right {
    justify-content: flex-end;
}

.mobile-logo {
    font-size: 16px;
    font-weight: 700;
    color: #409eff;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.mobile-logo-img {
    max-height: 28px;
    max-width: 140px;
    object-fit: contain;
}

/* ========== 头部导航（隐藏，已改用侧边栏） ========== */
.site-header {
    display: none;
}

/* ========== 轮播图 ========== */
.banner-section {
    padding: 16px 0 12px;
}

.banner-slider {
    position: relative;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(64, 158, 255, 0.1);
    border: 1px solid rgba(64, 158, 255, 0.08);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease, transform 6s ease;
    transform: scale(1.05);
}

.banner-slide {
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 35%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #303133;
    z-index: 2;
    padding: 45px 35px 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), transparent);
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2d3d;
    letter-spacing: 0.5px;
}

.banner-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #606266;
}

.banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-score {
    color: #ff9800;
    font-weight: 600;
}

.banner-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #606266;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 520px;
}

.banner-btns {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #1890ff 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #66b5ff 0%, #339dff 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

.btn-outline {
    background: #fff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.btn-outline:hover {
    background: #ecf5ff;
    color: #409eff;
    border-color: #b3d8ff;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-disabled {
    background: #c0c4cc;
    color: #fff;
    cursor: not-allowed;
}

.banner-dots {
    position: absolute;
    bottom: 18px;
    right: 30px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(144, 147, 153, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4facfe, #1890ff);
}

/* ========== 影片区块 ========== */
.vod-section {
    padding: 25px 0;
}

.section-alt {
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #409eff;
}

.section-more {
    color: #909399;
    font-size: 13px;
}

.section-more:hover {
    color: #409eff;
}

.section-title-sm {
    font-size: 17px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title-sm i {
    color: #409eff;
}

/* ========== 影片卡片 ========== */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.vod-grid.small {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.vod-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.vod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.vod-pic-wrap {
    position: relative;
    display: block;
    padding-top: 140%;
    overflow: hidden;
}

.vod-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.vod-card:hover .vod-pic {
    transform: scale(1.05);
}

.vod-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.vod-score {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffb800;
    font-size: 12px;
    border-radius: 4px;
}

.vod-info {
    padding: 10px 12px;
}

.vod-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.vod-title a {
    color: #303133;
}

.vod-card:hover .vod-title a {
    color: #409eff;
}

.vod-year {
    font-size: 12px;
    color: #909399;
}

/* ========== 分类页 ========== */
.category-section {
    padding: 25px 0;
}

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

.cat-title {
    font-size: 24px;
    font-weight: 600;
    color: #303133;
}

.filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #ebeef5;
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-label {
    flex-shrink: 0;
    width: 60px;
    color: #909399;
    font-size: 14px;
    padding-top: 4px;
}

.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-item {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
    transition: all 0.3s;
}

.filter-item:hover,
.filter-item.active {
    background: #ecf5ff;
    color: #409eff;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-item {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    transition: all 0.3s;
}

.page-item:hover {
    border-color: #409eff;
    color: #409eff;
}

.page-item.active {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}

/* ========== 空数据 ========== */
.empty-data {
    text-align: center;
    padding: 80px 0;
    color: #909399;
}

.empty-data i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dcdfe6;
}

.empty-data p {
    font-size: 16px;
}

/* ========== 搜索页 ========== */
.search-section {
    padding: 25px 0;
}

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

.search-title {
    font-size: 18px;
    color: #303133;
    font-weight: 500;
}

.search-title .keyword {
    color: #409eff;
}

.search-title small {
    font-size: 14px;
    color: #909399;
    font-weight: normal;
}

/* ========== 详情页 ========== */
.detail-section {
    padding: 25px 0;
}

.vod-detail {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.vod-detail-left {
    flex-shrink: 0;
    width: 200px;
}

.vod-detail-pic {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vod-detail-right {
    flex: 1;
    min-width: 0;
}

.vod-detail-title {
    font-size: 26px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
}

.vod-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 14px;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vod-detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.row-label {
    flex-shrink: 0;
    color: #909399;
    width: 60px;
}

.row-value {
    color: #606266;
    flex: 1;
}

.vod-remarks {
    color: #67c23a;
    font-weight: 500;
}

.vod-detail-btns {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn-favorited {
    color: #f56c6c;
    border-color: #f56c6c;
}

.vod-detail-desc {
    margin-top: 20px;
}

.desc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #303133;
}

.desc-content {
    font-size: 14px;
    color: #606266;
    line-height: 1.8;
}

/* ========== 播放列表 ========== */
.play-list-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.play-source {
    margin-bottom: 20px;
}

.play-source:last-child {
    margin-bottom: 0;
}

.source-name {
    font-size: 15px;
    color: #303133;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #409eff;
}

.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-item {
    padding: 6px 14px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
    transition: all 0.3s;
}

.episode-item:hover,
.episode-item.active {
    background: #409eff;
    color: #fff;
}

/* ========== 相关推荐 ========== */
.related-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

/* ========== 播放页 ========== */
.play-section {
    padding: 25px 0;
}

.play-header {
    margin-bottom: 15px;
}

.play-title {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
}

.play-episode {
    color: #409eff;
    font-size: 16px;
    font-weight: 500;
}

.player-wrap {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    -webkit-user-select: none;
    user-select: none;
}

.player-container {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    z-index: 1;
    background: #000;
}

/* 隐藏的video，仅用于解码 */
.video-hidden {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* canvas 显示层 + 原生video 共用样式 */
.video-canvas,
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

.video-player {
    object-fit: contain;
}

/* Canvas渲染层（桌面端防提取主画面） */
.video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
    pointer-events: none;
}

/* 透明遮挡层（防右键提取、防插件检测video元素） */
.video-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 自定义控制栏 */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}

.controls-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: -1;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ctrl-time {
    color: #fff;
    font-size: 12px;
    font-family: monospace;
    opacity: 0.9;
}

.ctrl-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.controls-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
}

.controls-progress:hover {
    height: 6px;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    width: 0;
}

.progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #1890ff);
    border-radius: 2px;
    width: 0;
}

.progress-dot {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.controls-progress:hover .progress-dot {
    opacity: 1;
}

/* 中央播放按钮 */
.center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    padding-left: 4px;
}

.center-play-btn:hover {
    background: rgba(64, 158, 255, 0.8);
    transform: scale(1.1);
}

/* 加载动画 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-inner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #409eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 暂停广告弹窗 ===== */
.pause-ad {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.pause-ad-inner {
    position: relative;
    width: 45%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.pause-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pause-ad-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pause-ad-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.pause-ad-slide {
    flex-shrink: 0;
    width: 100%;
}

.pause-ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pause-ad-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== 无视频提示 ===== */
.no-video {
    padding: 80px 0;
    text-align: center;
    color: #909399;
}

.no-video i {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-video.vip-expired {
    padding: 0;
    aspect-ratio: 16/9;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d4 100%);
    border-radius: 0;
    color: #606266;
}

.no-video.vip-expired i {
    font-size: 48px;
    color: #ffb800;
    margin-bottom: 12px;
}

.no-video.vip-expired h3 {
    font-size: 20px;
    color: #303133;
    margin: 0 0 8px 0;
}

.no-video.vip-expired p {
    font-size: 13px;
    margin: 0 0 16px 0;
    color: #909399;
}

.no-video.vip-expired .btn-group {
    display: flex;
    gap: 10px;
}

.no-video.vip-expired .btn {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #ffb800 0%, #ff9500 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.no-video.vip-expired .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.no-video.vip-expired .btn.btn-secondary {
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.no-video.vip-expired .btn.btn-secondary:hover {
    border-color: #409eff;
    color: #409eff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.15);
}

.play-sources {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
}

.sources-label {
    color: #909399;
    font-size: 14px;
    flex-shrink: 0;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-item {
    padding: 5px 14px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
}

.source-item:hover,
.source-item.active {
    background: #409eff;
    color: #fff;
}

.episode-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.play-vod-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-left img {
    width: 120px;
    height: 168px;
    object-fit: cover;
    border-radius: 6px;
}

.info-right {
    flex: 1;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #303133;
}

.info-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #909399;
}

.info-line {
    font-size: 14px;
    color: #606266;
    margin-bottom: 6px;
}

.info-line strong {
    color: #909399;
    font-weight: normal;
    margin-right: 5px;
}

.info-desc {
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-btns {
    margin-top: 12px;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #fff;
    color: #909399;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #ebeef5;
    border-radius: 12px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    color: #303133;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

.footer-logo i {
    color: #409eff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #606266;
    font-size: 13px;
}

.footer-links a:hover {
    color: #409eff;
}

.footer-copy p {
    font-size: 12px;
    opacity: 0.7;
}

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
    .vod-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .vod-grid.small {
        grid-template-columns: repeat(6, 1fr);
    }
    .banner-slider {
        height: 320px;
    }
    .banner-title {
        font-size: 28px;
    }
}

/* 平板及以下：侧边栏变抽屉式 */
@media (max-width: 992px) {
    /* 显示移动顶栏 */
    .mobile-topbar {
        display: flex;
    }

    /* 侧边栏藏到左边 */
    .site-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .site-sidebar.show {
        transform: translateX(0);
    }

    /* 主内容区占满宽度 */
    .site-main {
        margin-left: 0;
        padding: 16px;
    }

    /* 遮罩层显示 */
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 12px;
    }

    .banner-slider {
        height: 240px;
    }

    .banner-content {
        left: 0;
        right: 0;
        bottom: 0;
        padding: 30px 24px 20px;
    }

    .banner-title {
        font-size: 20px;
        color: #1f2d3d;
        margin-bottom: 6px;
    }

    .banner-meta {
        font-size: 12px;
        color: #606266;
        gap: 10px;
        margin-bottom: 8px;
    }

    .banner-desc {
        display: none;
    }

    .banner-dots {
        right: 20px;
    }

    .vod-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .vod-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }

    .vod-detail {
        flex-direction: column;
        padding: 15px;
    }

    .vod-detail-left {
        width: 100%;
        text-align: center;
    }

    .vod-detail-pic {
        margin: 0 auto;
        width: 140px;
        height: 196px;
    }

    .vod-detail-title {
        font-size: 20px;
        text-align: center;
    }
    
    .play-vod-info {
        flex-direction: column;
        padding: 15px;
    }
    
    .info-left {
        text-align: center;
    }
    
    .info-left img {
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .filter-label {
        width: 50px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vod-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .vod-grid.small {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .banner-slider {
        height: 180px;
        border-radius: 14px;
    }
    
    .banner-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 40%, transparent 70%);
    }
    
    .banner-content {
        padding: 20px 14px 12px;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98), transparent);
    }
    
    .banner-title {
        font-size: 15px;
        color: #1f2d3d;
        margin-bottom: 3px;
    }
    
    .banner-meta {
        font-size: 11px;
        color: #606266;
        margin-bottom: 5px;
        gap: 6px;
    }
    
    .banner-meta .meta-score {
        font-size: 11px;
        color: #ff9800;
    }
    
    .banner-desc {
        font-size: 11px;
        color: #606266;
        line-height: 1.4;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }
    
    .banner-btns .btn {
        font-size: 11px;
        padding: 5px 12px;
        border-radius: 6px;
    }
    
    .banner-dots {
        bottom: 8px;
        right: 12px;
        gap: 4px;
    }
    
    .banner-dots .dot {
        width: 5px;
        height: 5px;
        background: rgba(144, 147, 153, 0.25);
    }
    
    .banner-dots .dot.active {
        width: 14px;
        background: linear-gradient(90deg, #4facfe, #1890ff);
    }
    
    .vod-card {
        border-radius: 8px;
    }
    
    .vod-pic-wrap {
        border-radius: 8px;
    }
    
    .vod-pic {
        border-radius: 8px;
    }
    
    .vod-badge {
        font-size: 9px;
        padding: 1px 5px;
        border-radius: 3px;
        top: 4px;
        left: 4px;
    }
    
    .vod-score {
        font-size: 10px;
        padding: 1px 4px;
        top: 4px;
        right: 4px;
    }
    
    .vod-info {
        padding: 6px 4px 8px;
    }
    
    .vod-title {
        font-size: 12px;
        line-height: 1.3;
        -webkit-line-clamp: 1;
    }
    
    .vod-year {
        font-size: 10px;
        margin-top: 3px;
    }
}

/* ========== 站点统计栏 ========== */
.site-stats {
    background: transparent;
    padding: 20px 0 8px;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e8f0fe;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #409eff, #1890ff);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.12);
    border-color: #b3d8ff;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon-blue {
    background: linear-gradient(135deg, #409eff, #1890ff);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
}

.stat-icon-green {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.stat-icon-orange {
    background: linear-gradient(135deg, #fa8c16, #d46b08);
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.4);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #722ed1, #531dab);
    box-shadow: 0 4px 12px rgba(114, 46, 209, 0.4);
}

.stat-card-info {
    flex: 1;
    min-width: 0;
}

.stat-card-num {
    font-size: 28px;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stat-card-label {
    font-size: 13px;
    color: #8c8c8c;
    margin-top: 4px;
}

/* 移动端 */
@media (max-width: 768px) {
    .site-stats {
        padding: 12px 0 4px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .stat-card-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }
    
    .stat-card-num {
        font-size: 20px;
    }
    
    .stat-card-label {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .stat-card-num {
        font-size: 18px;
    }
    
    .stat-card-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ========== PC顶部栏 ========== */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
    margin-left: 240px;
    background: #fff;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: margin-left 0.3s ease;
}

.topbar-left {
    color: #909399;
    font-size: 13px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: #f5f7fa;
    color: #606266;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    position: relative;
}

.topbar-btn:hover {
    background: #ecf5ff;
    color: #409eff;
}

.history-badge {
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    background: #f56c6c;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    text-align: center;
    font-weight: 600;
}

/* ========== 历史下拉面板 ========== */
.history-dropdown {
    position: relative;
}

.history-panel {
    position: fixed;
    top: 56px;
    right: 24px;
    width: 340px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.history-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.history-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
    color: #303133;
    font-size: 14px;
}

.history-clear-all {
    color: #909399;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.history-clear-all:hover {
    color: #f56c6c;
}

.history-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
}

.hp-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-bottom: 1px solid #f5f7fa;
}

.hp-item:last-child {
    border-bottom: none;
}

.hp-item:hover {
    background: #f5f7fa;
}

.hp-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 80px;
}

.hp-name {
    font-size: 13px;
    color: #303133;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-item:hover .hp-name {
    color: #409eff;
}

.hp-ep {
    font-size: 11px;
    color: #909399;
}

.hp-right {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-time {
    font-size: 11px;
    color: #c0c4cc;
}

.hp-del {
    color: #c0c4cc;
    font-size: 11px;
    opacity: 0;
    transition: all 0.2s;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.hp-item:hover .hp-del {
    opacity: 1;
}

.hp-del:hover {
    color: #f56c6c;
    background: #fef0f0;
}

.hp-progress {
    height: 2px;
    background: #f0f2f5;
    border-radius: 1px;
    margin-top: 8px;
    overflow: hidden;
}

.hp-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    border-radius: 1px;
}

.hp-empty {
    text-align: center;
    color: #c0c4cc;
    font-size: 13px;
    padding: 40px 0;
}

.hp-more {
    text-align: center;
    color: #909399;
    font-size: 11px;
    padding: 10px 0;
    background: #fafafa;
}

/* 移动端历史按钮 */
.mobile-history-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #606266;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-history-btn:active {
    background: #f0f2f5;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .site-topbar {
        display: none;
    }

    .mobile-history-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .history-panel {
        top: 56px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: calc(80vh - 56px);
        border-radius: 0 0 16px 16px;
        transform: translateY(-100%);
    }

    .history-panel.show {
        transform: translateY(0);
    }

    .history-panel-header {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }

    .hp-item {
        padding: 12px 16px !important;
    }

    .hp-del {
        opacity: 1 !important;
    }
}

/* ===== APP横屏全屏 ===== */
/* 两套方案：
   方案1（优先）系统横屏：Fullscreen API + Orientation Lock，真正全屏
   方案2（兜底）CSS旋转：容器本身横屏比例旋转90度，JS精确计算尺寸 */

/* CSS旋转模式：全局锁定 */
html.ls-on,
body.ls-on {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* 横屏时隐藏页面其他内容 */
body.ls-on .mobile-header,
body.ls-on .sidebar,
body.ls-on .vod-info,
body.ls-on .playlist-wrap,
body.ls-on .detail-main .vod-content,
body.ls-on .play-sources,
body.ls-on .episode-section,
body.ls-on .play-header,
body.ls-on .footer {
    display: none !important;
}

/* 外层wrap：消除原有布局限制 */
.ls-wrap {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

/* 播放器容器：fixed全屏 + 旋转90度（JS精确设尺寸，CSS只负责定位和旋转） */
.ls-player {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vh !important;   /* 默认值，JS会覆盖为精确像素 */
    height: 100vw !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
    transform-origin: center center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    box-shadow: none !important;
}

.ls-player canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* 横屏下广告 */
.ls-player .pause-ad {
    width: 100% !important;
    height: 100% !important;
}

.ls-player .pause-ad-inner {
    width: 45% !important;
    max-width: 480px !important;
    max-height: 80% !important;
}

/* 横屏下控制栏 */
.ls-player .custom-controls {
    padding: 0 24px 18px !important;
}

/* 系统全屏模式下的播放器占满 */
.player-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}
.player-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}
.player-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}
.player-container:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}

/* ========== 搜索弹窗 ========== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.search-modal.show {
    display: flex;
}
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.search-modal-box {
    position: relative;
    width: 90%;
    max-width: 560px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
    gap: 12px;
}
.search-modal-icon {
    color: #409eff;
    font-size: 18px;
    flex-shrink: 0;
}
.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #303133;
    background: transparent;
}
.search-modal-input::placeholder {
    color: #c0c4cc;
}
.search-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f7fa;
    border-radius: 50%;
    color: #909399;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.search-modal-close:hover {
    background: #f0f2f5;
    color: #606266;
}
.search-modal-tips {
    padding: 14px 20px 18px;
    font-size: 13px;
    color: #909399;
}
.search-modal-tips span {
    margin-right: 8px;
}
.search-modal-tips a {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px 6px 4px 0;
    background: #ecf5ff;
    color: #409eff;
    border-radius: 14px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}
.search-modal-tips a:hover {
    background: #409eff;
    color: #fff;
}

/* PC端顶栏搜索按钮 */
.topbar-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid #e4e7ed;
    background: #fff;
    color: #606266;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.topbar-search-btn:hover {
    border-color: #409eff;
    color: #409eff;
}
.topbar-search-btn i {
    font-size: 12px;
}

/* 移动端搜索弹窗适配 */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    .search-modal-box {
        width: 92%;
        border-radius: 12px;
    }
    .search-modal-header {
        padding: 14px 16px;
    }
    .search-modal-input {
        font-size: 15px;
    }
    .search-modal-tips {
        padding: 12px 16px 16px;
    }
}
