/* ===== 全局重置 ===== */
* { 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: #ffffff;
    color: #333333;
    line-height: 1.6;
}
a { color: #1976d2; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1565c0; }
img { display: block; max-width: 100%; }

/* ===== 头部 ===== */
.site-header {
    background: linear-gradient(135deg, #545fcf 0%, #1b7c1f 100%);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    gap: 16px;
}
.nav-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 4px;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.header-search {
    margin-left: auto;
}
.header-search form {
    display: flex;
    gap: 4px;
}
.header-search input {
    width: 200px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus { background: rgba(255,255,255,0.15); }
.header-search button {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    background: #429ec7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

/* ===== 主内容 ===== */
.main-content {
    min-height: calc(100vh - 56px - 60px);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 首页 ===== */
.home-container {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.home-search-box {
    text-align: center;
    max-width: 600px;
    width: 100%;
}
.home-title {
    font-size: 42px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4fc3f7, #ab47bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-subtitle {
    color: rgba(0,0,0,0.5);
    font-size: 16px;
    margin-bottom: 32px;
}
.home-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.home-search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(25,118,210,0.3);
    border-radius: 28px;
    background: rgba(0,0,0,0.03);
    color: #333;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.home-search-form input::placeholder { color: rgba(0,0,0,0.4); }
.home-search-form input:focus { border-color: #1976d2; }
.home-search-form button {
    padding: 14px 32px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(135deg, #134ad8, #134ad8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s;
}
.home-search-form button:hover { transform: scale(1.05); }

/* ===== 热门搜索词 ===== */
.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    max-width: 600px;
}
.hot-label {
    color: rgba(0,0,0,0.5);
    font-size: 14px;
    line-height: 30px;
}
.hot-tag {
    padding: 4px 14px;
    border-radius: 16px;
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.7);
    font-size: 13px;
    transition: all 0.2s;
}
.hot-tag:hover {
    background: rgba(25,118,210,0.15);
    color: #1976d2;
}
.hot-tag.hot-top {
    background: rgba(255,83,112,0.15);
    color: #ff5370;
  line-height: 24px;
}

/* ===== 搜索页 ===== */
.search-bar {
    margin-bottom: 16px;
}
.search-form-inline {
    display: flex;
    gap: 8px;
}
.search-form-inline input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    color: #333;
    font-size: 15px;
    outline: none;
}
.search-form-inline input:focus { border-color: #1976d2; }
.search-type-select {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    color: #333;
    font-size: 14px;
    outline: none;
}
.search-type-select option { background: #fff; }
.search-form-inline button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.search-meta {
    margin-bottom: 16px;
    color: rgba(0,0,0,0.5);
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.badge-live {
    padding: 2px 8px;
    border-radius: 4px;
    background: #ff5370;
    color: #fff;
    font-size: 12px;
}
.badge-cache {
    padding: 2px 8px;
    border-radius: 4px;
    background: #4caf50;
    color: #fff;
    font-size: 12px;
}

/* ===== 视频卡片网格 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.video-card {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.06);
}
.card-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-remarks {
    position: absolute;
    top: 5px;
    right: 0;
    padding: 2px 8px;
    background: rgb(0 0 0 / 28%);
    color: #ffffff;
    font-size: 12px;
    border-top-left-radius: 4px;
}
.card-info {
    padding: 8px 10px;
}
.card-title {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.card-actor {
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
}
.card-cover-link {
    display: block;
    color: inherit;
}
.card-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.card-title-link:hover {
    color: #1976d2;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
}
.pagination a {
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.6);
    font-size: 14px;
}
.pagination a:hover, .pagination a.active {
    background: #1976d2;
    color: #fff;
}

/* ===== 空结果 ===== */
.empty-result, .not-found {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0,0,0,0.4);
}
.empty-result .hint { font-size: 13px; margin-top: 8px; }
.btn-back {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 24px;
    border-radius: 20px;
    background: rgba(25,118,210,0.1);
    color: #1976d2;
}

/* ===== 详情页 ===== */
.detail-page { padding: 0; }
.detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.detail-cover {
    flex-shrink: 0;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
}
.detail-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.detail-info {
    flex: 1;
}
.detail-title {
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.detail-subtitle {
    color: rgba(0,0,0,0.5);
    font-size: 14px;
    margin-bottom: 16px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 16px;
}
.meta-item {
    font-size: 14px;
    color: rgba(0,0,0,0.6);
}
.detail-actor, .detail-director {
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    margin-bottom: 8px;
}
.detail-tags {
    margin-bottom: 16px;
}
.tag {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgba(25,118,210,0.1);
    color: #1976d2;
    font-size: 12px;
}
.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.btn-play {
    padding: 10px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff5370, #ff1744);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}
.btn-similar {
    padding: 10px 24px;
    border-radius: 24px;
    background: rgba(0,0,0,0.06);
    color: #333;
    font-size: 15px;
}
.detail-content {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.detail-content h3, .detail-episodes h3, .detail-related h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-left: 3px solid #1976d2;
    padding-left: 10px;
}
.detail-content p {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.8;
}
.ep-count {
    font-size: 14px;
    color: rgba(0,0,0,0.4);
    font-weight: normal;
}

/* ===== 集数列表 ===== */
.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.episode-item {
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.6);
    font-size: 13px;
    transition: all 0.2s;
}
.episode-item:hover, .episode-item.active {
    background: #1976d2;
    color: #fff;
}

/* ===== 播放页 ===== */
.play-page { padding: 0;padding-top: 12px; }
.play-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.source-label {
    color: rgba(0,0,0,0.5);
    font-size: 14px;
}
.source-btn {
    padding: 6px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.6);
    font-size: 13px;
    transition: all 0.2s;
}
.source-btn:hover {
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.8);
}
.source-btn.active {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}
.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
}
.play-header h2 {
    font-size: 20px;
    color: #1a1a1a;
}
.btn-back-detail {
    padding: 6px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.06);
    color: #333;
    font-size: 13px;
}

/* 播放控制栏：左侧上下集 + 右侧浏览/点赞 */
.play-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.play-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.play-stat {
    color: rgba(0,0,0,0.5);
    font-size: 14px;
}
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 20px;
    background: rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.7);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-like:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.25);
}
.btn-like .like-icon {
    font-size: 16px;
    line-height: 1;
}
.btn-like.liked {
    background: rgba(255,77,79,0.1);
    border-color: rgba(255,77,79,0.5);
    color: #ff4d4f;
}
.btn-like.liked .like-icon {
    color: #ff4d4f;
}
.btn-like:disabled {
    cursor: default;
}
.btn-like .like-text {
    font-size: 13px;
}
.player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
#video-player {
    width: 100%;
    height: 350px;
    display: block;
}
#player-iframe {
    width: 100%;
    height: 350px;
    display: block;
    background: #000;
}
.play-player-select {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 12px;
    margin-bottom: 8px;
}
.play-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 1px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.btn-ep {
    padding: 8px 24px;
    border-radius: 20px;
    background: rgba(25,118,210,0.1);
    color: #1976d2;
    font-size: 14px;
}
.btn-ep.disabled {
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.25);
    pointer-events: none;
}
.play-current {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
}
.play-desc {
    margin-top: 10px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.play-desc p {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 播放页演员阵容 ===== */
.play-cast {
    margin-top: 16px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.play-cast h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}
.play-cast-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.play-cast-scroll::-webkit-scrollbar {
    height: 4px;
}
.play-cast-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}
.play-cast-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    transition: transform 0.2s;
}
.play-cast-item:hover {
    transform: translateY(-3px);
}
.play-cast-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid rgba(0,0,0,0.1);
}
.play-cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-cast-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #4fc3f7;
    font-size: 24px;
    font-weight: 700;
}
.play-cast-name {
    font-size: 12px;
    color: rgba(0,0,0,0.7);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 列表页筛选 ===== */
.list-filters {
    margin-bottom: 20px;
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.filter-label {
    color: rgba(0,0,0,0.4);
    font-size: 14px;
    min-width: 40px;
}
.filter-group a {
    padding: 3px 12px;
    border-radius: 8px;
    color: rgba(0,0,0,0.6);
    font-size: 13px;
}
.filter-group a:hover { background: rgba(0,0,0,0.05); }
.filter-group a.active {
    /*background: #4fc3f7;
    color: #0f1923;*/
  color: #0dc759;
}

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(135deg, #489248 0%, #1b2e7c 100%);
    padding: 20px;
    text-align: center;
}
.footer-inner {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

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

/* 平板横屏及以上（默认） */
@media (min-width: 1025px) {
    .video-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 平板竖屏 */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-grid { grid-template-columns: repeat(4, 1fr); }
    .header-inner { gap: 16px; }
    .header-search input { width: 160px; }
    .detail-cover { width: 160px; }
    .home-title { font-size: 36px; }
}

/* 手机/平板竖屏 */
@media (max-width: 768px) {
    /* 头部 */
    .site-header { padding: 0 12px; height: 50px; }
    .header-inner { gap: 8px; }
    .logo { font-size: 17px; }
    .nav-menu { gap: 4px; }
    .nav-menu a { font-size: 16px; padding: 4px 6px; }
    .header-search { display: none; }
    
    /* 首页 */
    .home-title { font-size: 28px; }
    .home-subtitle { font-size: 14px; margin-bottom: 24px; }
    .home-search-form { flex-direction: row; }
    .home-search-form input { padding: 12px 16px; font-size: 15px; }
    .home-search-form button { padding: 12px 20px; font-size: 14px; }
    
    /* 视频网格 */
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .card-info { padding: 6px 8px; }
    .card-title { font-size: 13px; }
    .card-actor { font-size: 11px; }
    .card-remarks { font-size: 11px; padding: 1px 6px; }
    
    /* 容器 */
    .container { padding: 12px; }
    
    /* 搜索页 */
    .search-form-inline { flex-wrap: wrap; }
    .search-form-inline input { min-width: 0; flex: 1 1 55%; }
    .search-form-inline .search-type-select { flex: 1; }
    .search-form-inline button { flex: 1; }
    .search-meta { flex-wrap: wrap; gap: 6px; font-size: 13px; }
    
    /* 详情页 */
    .detail-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .detail-cover { width: 130px; }
    .detail-title { font-size: 20px; }
    .detail-meta { justify-content: center; gap: 6px 14px; }
    .detail-actions { justify-content: center; flex-wrap: wrap; }
    .btn-play, .btn-similar { padding: 8px 20px; font-size: 14px; }
    .detail-content { padding: 14px; }
    .detail-content p { font-size: 13px; line-height: 1.7; }
    
    /* 集数列表 */
    .episode-list { gap: 6px; }
    .episode-item { padding: 5px 12px; font-size: 12px; }
    
    /* 播放页 */
    .play-header { flex-wrap: wrap; gap: 8px; }
    .play-header h2 { font-size: 17px; }
    .player-wrapper { border-radius: 6px; }
    .play-controls { flex-wrap: wrap; gap: 8px; justify-content: space-between; }
    .play-controls-left { flex-wrap: wrap; gap: 6px; justify-content: center; }
    .play-controls-right { gap: 12px; }
    .btn-ep { padding: 6px 16px; font-size: 13px; }
    .play-sources { gap: 6px; }
    .source-btn { padding: 5px 12px; font-size: 12px; }
    .play-desc { padding: 14px; }
    .play-cast { padding: 14px; }
    .play-cast-avatar { width: 52px; height: 52px; }
    .play-cast-item { width: 64px; }
    
    /* 列表筛选 */
    .list-filters { margin-bottom: 12px; }
    .filter-group { gap: 2px; padding: 3px 0; }
    .filter-label { min-width: 36px; font-size: 13px;line-height: 1.0; }
    .filter-group a { padding: 2px 5px; font-size: 12px;line-height: 1.0; }
    
    /* 分页 */
    .pagination { gap: 2px; padding: 12px 0; }
    .pagination a { padding: 5px 8px; font-size: 13px; }
    
    /* 热门词 */
    .hot-keywords { gap: 3px; }
    .hot-tag { padding: 3px 10px; font-size: 12px;line-height: 24px; }
    
    /* 页脚 */
    .site-footer { padding: 14px 12px; }
    .footer-inner { font-size: 12px; }
}

/* 小手机 */
@media (max-width: 480px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .nav-menu a { font-size: 15px; }
    .logo { font-size: 18px; }
    .home-title { font-size: 24px; }
    .home-search-form { flex-direction: row; gap: 3px; }
    .home-search-form input { padding: 10px 14px; font-size: 14px; border-radius: 10px; }
    .home-search-form button { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
    .container { padding: 8px; }
    .detail-cover { width: 110px; }
    .detail-title { font-size: 18px; }
    .card-title { font-size: 12px; }
    .card-actor { font-size: 10px; }
    .card-info { padding: 4px 6px; }
    .play-header h2 { font-size: 15px; }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover { transform: none; }
    .home-search-form button:hover { transform: none; }
    a { -webkit-tap-highlight-color: rgba(25,118,210,0.2); }
    .video-card { -webkit-tap-highlight-color: rgba(0,0,0,0.03); }
    .episode-item, .source-btn, .filter-group a { 
        padding-top: 8px; 
        padding-bottom: 8px; 
    }
}

/* ===== 搜索加载遮罩 ===== */
#search-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.search-loading-box {
    text-align: center;
}
.search-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(25, 118, 210, 0.15);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
.search-loading-text {
    color: rgba(0, 0, 0, 0.8);
    font-size: 16px;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}

/* ===== 页面标题栏 ===== */
.page-header-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.page-title {
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 700;
}
.page-subtitle {
    color: rgba(0,0,0,0.4);
    font-size: 14px;
}

/* ===== 标签云 ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 18px;
    background: rgba(25,118,210,0.08);
    border: 1px solid rgba(25,118,210,0.15);
    color: #1976d2;
    font-size: 14px;
    transition: all 0.2s;
}
.tag-cloud-item:hover {
    background: rgba(25,118,210,0.15);
    border-color: rgba(25,118,210,0.4);
    transform: translateY(-2px);
}
.tag-cloud-item .tag-count {
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(25,118,210,0.1);
    color: rgba(25,118,210,0.7);
    font-size: 12px;
}

/* ===== 演员链接（详情页） ===== */
.actor-link {
    color: #1976d2;
    transition: color 0.2s;
}
.actor-link:hover {
    color: #1565c0;
    text-decoration: underline;
}
.detail-tags .tag {
    transition: all 0.2s;
}
.detail-tags .tag:hover {
    background: rgba(25,118,210,0.2);
}

/* ===== 角色列表页 ===== */
.star-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.star-filter a {
    padding: 4px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    transition: all 0.2s;
}
.star-filter a:hover { background: rgba(0,0,0,0.08); }
.star-filter a.active {
    background: #1976d2;
    color: #fff;
}
.star-filter a.star-sort-btn {
    margin-left: auto;
    background: none;
    color: #999;
    border-radius: 0;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 12px;
}
.star-filter a.star-sort-btn + .star-sort-btn {
    margin-left: 0;
    border-left: none;
    padding-left: 4px;
}
.star-filter a.star-sort-btn.active {
    background: none;
    color: #00a870;
}
.star-filter a.star-sort-btn:hover {
    background: none;
    color: #00a870;
}
.star-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.star-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
}
.star-card:hover {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.06);
}
.star-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
}
.star-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.star-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #4fc3f7;
    font-size: 32px;
    font-weight: 700;
}
.star-avatar-placeholder.large {
    font-size: 48px;
}
.star-info {
    text-align: center;
}
.star-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}
.star-count {
    display: block;
    color: rgba(0,0,0,0.4);
    font-size: 12px;
    margin-top: 4px;
}
.star-type-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 11px;
}
.star-type-actor { background: rgba(25,118,210,0.1); color: #1976d2; }
.star-type-director { background: rgba(171,71,188,0.1); color: #ab47bc; }
.star-type-other { background: rgba(255,167,38,0.1); color: #ffa726; }

/* ===== 角色详情页 ===== */
.star-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.star-detail-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}
.star-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.star-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.star-detail-name {
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.star-detail-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}
.star-detail-desc {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.8;
}
.star-videos-section {
    margin-top: 8px;
}
.section-title {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-left: 3px solid #1976d2;
    padding-left: 10px;
}

/* ===== 响应式补充 ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .star-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .star-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .star-card { padding: 14px 8px; }
    .star-avatar { width: 60px; height: 60px; }
    .star-avatar-placeholder { font-size: 24px; }
    .star-name { font-size: 13px; }
    .star-filter { gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
    .star-filter a { padding: 3px 10px; font-size: 12px; white-space: nowrap; }
    .star-filter a.star-sort-btn { padding-left: 8px; }
    .star-detail-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 16px; }
    .star-detail-avatar { width: 90px; height: 90px; }
    .star-detail-name { font-size: 20px; }
    .star-detail-meta { justify-content: center; }
    .tag-cloud { gap: 8px; }
    .tag-cloud-item { padding: 5px 12px; font-size: 13px; }
    .page-title { font-size: 18px; }
}
@media (max-width: 480px) {
    .star-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 图集列表页 ===== */
.album-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.album-filter a {
    padding: 4px 16px;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    transition: all 0.2s;
}
.album-filter a:hover { background: rgba(0,0,0,0.08); }
.album-filter a.active {
    background: #1976d2;
    color: #fff;
}
.album-filter a.album-sort-btn {
    margin-left: auto;
    background: none;
    color: #999;
    border-radius: 0;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 12px;
}
.album-filter a.album-sort-btn + .album-sort-btn {
    margin-left: 0;
    border-left: none;
    padding-left: 4px;
}
.album-filter a.album-sort-btn.active {
    background: none;
    color: #00a870;
}
.album-filter a.album-sort-btn:hover {
    background: none;
    color: #00a870;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.album-card {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
}
.album-card:hover {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.06);
}
.album-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}
.album-count-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 2px 8px;
    background: rgba(0,0,0,0.7);
    color: #4fc3f7;
    font-size: 12px;
    border-top-left-radius: 4px;
}
.album-info {
    padding: 8px 10px;
}
.album-title {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.album-category {
    font-size: 12px;
    color: rgba(0,0,0,0.4);
}

/* ===== 图集详情页 ===== */
.album-detail-header {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.album-detail-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.album-detail-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.album-category-tag {
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(25,118,210,0.1);
    color: #1976d2;
    font-size: 12px;
}
.album-image-count, .album-date {
    color: rgba(0,0,0,0.4);
    font-size: 13px;
}
.album-description {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.8;
}
.album-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.album-image-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.2s;
}
.album-image-item:hover {
    transform: scale(1.02);
}
.album-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 图片查看器 ===== */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}
.image-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.image-viewer-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.image-viewer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}
.viewer-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.viewer-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== 图集响应式 ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .album-grid { grid-template-columns: repeat(3, 1fr); }
    .album-image-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .album-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .album-image-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .album-detail-title { font-size: 20px; }
    .album-detail-header { padding: 14px; }
    .album-filter { gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
    .album-filter a { padding: 3px 10px; font-size: 12px; white-space: nowrap; }
    .album-filter a.album-sort-btn { padding-left: 8px; }
    .album-title { font-size: 13px; }
    .image-viewer-close { top: 10px; right: 15px; font-size: 28px; }
    .viewer-btn { width: 36px; height: 36px; font-size: 22px; }
}
@media (max-width: 480px) {
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .album-image-grid { grid-template-columns: 1fr; }
}

/* ===== 文章页面 ===== */
.article-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.article-main {
    flex: 1;
    min-width: 0;
  width: 100%;
}
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章筛选 */
.article-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.article-filter a {
    padding: 4px 14px;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.6);
    font-size: 13px;
    transition: all 0.2s;
}
.article-filter a:hover { background: rgba(0,0,0,0.08); }
.article-filter a.active {
    background: #1976d2;
    color: #fff;
}
.article-filter a.article-sort-btn {
    margin-left: auto;
    background: none;
    color: #999;
    border-radius: 0;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 12px;
}
.article-filter a.article-sort-btn + .article-sort-btn {
    margin-left: 0;
    border-left: none;
    padding-left: 4px;
}
.article-filter a.article-sort-btn.active {
    background: none;
    color: #00a870;
}
.article-filter a.article-sort-btn:hover {
    background: none;
    color: #00a870;
}

/* 文章列表卡片 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
}
.article-card:hover {
    transform: translateY(-2px);
    background: rgba(0,0,0,0.06);
}
.article-thumb {
    flex-shrink: 0;
    width: 160px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-card-body.no-thumb {
    justify-content: center;
}
.article-card-title {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-card-desc {
    font-size: 13px;
    color: rgba(0,0,0,0.5);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(0,0,0,0.4);
}
.article-card-meta .article-cat {
    color: #1976d2;
}

/* 侧边栏 */
.sidebar-box {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 12px;
    border-left: 3px solid #1976d2;
    padding-left: 10px;
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sidebar-list li:last-child {
    border-bottom: none;
}
.sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(0,0,0,0.7);
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.2s;
}
.sidebar-list li a:hover {
    color: #1976d2;
}
.sidebar-rank {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.5);
    font-size: 12px;
    text-align: center;
    line-height: 20px;
}
.sidebar-rank.top {
    background: #ff5370;
    color: #fff;
}
.sidebar-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章详情页 */
.article-detail-header {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}
.article-detail-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.article-detail-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: rgba(0,0,0,0.5);
    align-items: center;
}
.article-cat-tag {
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(25,118,210,0.1);
    color: #1976d2;
    font-size: 12px;
}
.article-detail-desc {
    margin-top: 12px;
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.8;
}
.article-detail-content {
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    color: rgba(0,0,0,0.8);
    font-size: 15px;
    line-height: 1.8;
}
.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}
.article-detail-content p {
    margin-bottom: 12px;
}
.article-detail-content h2,
.article-detail-content h3 {
    color: #1a1a1a;
    margin: 16px 0 8px;
}
.article-detail-content a {
    color: #1976d2;
}
.article-detail-content pre {
    background: rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
}
.article-detail-content blockquote {
    border-left: 3px solid #1976d2;
    padding-left: 12px;
    margin: 12px 0;
    color: rgba(0,0,0,0.6);
}

/* 页面标题栏 */
.page-header-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.page-title {
    font-size: 22px;
    color: #1a1a1a;
}
.page-subtitle {
    color: rgba(0,0,0,0.4);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
    }
    .article-thumb {
        width: 120px;
        height: 80px;
    }
    .article-card-title {
        font-size: 14px;
    }
    .article-detail-title {
        font-size: 20px;
    }
    .article-filter { gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
    .article-filter a { padding: 3px 10px; font-size: 12px; white-space: nowrap; }
    .article-filter a.article-sort-btn { padding-left: 8px; }
}
@media (max-width: 480px) {
    .article-thumb {
        width: 100px;
        height: 70px;
    }
    .article-card {
        padding: 12px;
        gap: 12px;
    }
    .article-card-desc {
        display: none;
    }
}
