/* ===== 现代化配色方案 ===== */

/* 整体背景 - 浅灰蓝色 */
body { 
    background-color: #F5F7FA !important; 
    color: #333;
}

/* 头部导航 - 深蓝渐变 */
.stui-header__top { 
    background: linear-gradient(135deg, #000 0%, #333 100%) !important; 
    border-top: 5px solid #608000 !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.stui-header__menu li a { 
    color: #fff !important;
    transition: all 0.3s;
}

.stui-header__menu li.active a { 
    background-color: #608000 !important; 
    color: #fff !important;
}

.stui-header__menu li a:hover {
    background-color: rgba(245, 158, 11, 0.8);
    color: #fff;
}

/* 视频卡片 - 白色 + 阴影 + 悬停效果 */
.stui-vodlist__box {
    background-color: #FFFFFF !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.stui-vodlist__box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15);
}

.stui-vodlist__thumb {
    padding-top: 66.67% !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
}

.stui-vodlist__thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.stui-vodlist__detail {
    padding: 12px !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
}

.stui-vodlist__detail .title {
    color: #1E3A8A !important;
    font-weight: 600;
    line-height: 1.4;
}

.stui-vodlist__detail .text {
    color: #6B7280 !important;
    font-size: 12px;
}

/* 标签和按钮 */
.pic-text {
    background: linear-gradient(180deg, transparent, rgba(30, 58, 138, 0.8)) !important;
    color: #fff !important;
}

/* 面板背景 */
.stui-pannel-bg {
    background-color: #FFFFFF !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 分类标签 */
.stui-screen__list li.active a,
.tag-type li.active a,
.nav-head > li.active > a {
    background-color: #608000 !important;
    color: #fff !important;
    border-color: #608000 !important;
}

/* 主要按钮 */
.btn-primary {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #1E40AF !important;
    border-color: #1E40AF !important;
}

/* 链接颜色 */
a:hover {
    color: #608000 !important;
}

/* 分割线 */
.split-line { 
    background-color: #E5E7EB !important; 
}

.bottom-line:after,
.top-line:before {
    border-color: #E5E7EB !important;
}

/* 手机端调整 */
@media (max-width: 767px) {
    .stui-vodlist__detail .title {
        font-size: 13px !important;
    }
    .stui-vodlist__detail .text {
        font-size: 12px !important;
    }
}

/* ===== 图标导航样式 ===== */
.icon-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    margin: 6px auto 0;
    max-width: 1360px;
    padding: 6px 3px;
}

.icon-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #242424;
    border-radius: 8px;
    color: #4d4d4d;
    display: grid;
    grid-template-rows: 44px auto;
    justify-items: center;
    overflow: hidden;
    padding: 6px 4px;
    text-align: center;
}

.icon-img {
    border-radius: 8px;
    display: block;
    height: 36px;
    object-fit: cover;
    width: 36px;
}

.icon-name {
    font-size: 12px;
    line-height: 1.1;
    margin-top: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-item:hover {
    background: #161616;
    border-color: #2d2d2d;
}

/* ===== 站点网格样式 - 现代多色设计 ===== */
.site-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(8, 1fr);
    margin: 12px auto;
    max-width: 1380px;
    padding: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: 12px;
}

.site-item {
    align-items: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    color: #1E3A8A;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 15px;
    padding: 6px 6px;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 300;
}

.site-item:hover {
    background: linear-gradient(135deg, #608000 0%, #F97316 100%);
    border-color: #608000;
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(245, 158, 11, 0.3);
}

.site-name {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}

/* ===== 热门关键词样式 - 彩色标签 ===== */
.hot-keys {
    border-top: 2px solid #E5E7EB;
    margin: 12px auto 0;
    max-width: 1380px;
    padding: 12px;
}

.hot-wrap {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
}

.hot-chip {
    align-items: center;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border: none;
    border-radius: 18px;
    color: #fff;
    display: flex;
    height: 26px;
    justify-content: center;
    overflow: hidden;
    padding: 0 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* 多色效果 - 每个热词有不同颜色 */
.hot-chip:nth-child(1) { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
.hot-chip:nth-child(2) { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }
.hot-chip:nth-child(3) { background: linear-gradient(135deg, #F39C12 0%, #D68910 100%); }
.hot-chip:nth-child(4) { background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%); }
.hot-chip:nth-child(5) { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
.hot-chip:nth-child(6) { background: linear-gradient(135deg, #E84393 0%, #C2185B 100%); }
.hot-chip:nth-child(7) { background: linear-gradient(135deg, #00897B 0%, #004D40 100%); }
.hot-chip:nth-child(8) { background: linear-gradient(135deg, #5F27CD 0%, #4A148C 100%); }
.hot-chip:nth-child(9) { background: linear-gradient(135deg, #FF6B6B 0%, #DC3545 100%); }
.hot-chip:nth-child(10) { background: linear-gradient(135deg, #00CEC9 0%, #00897B 100%); }
.hot-chip:nth-child(n+11) { background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%); }

.hot-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ===== 响应式设计 - 平板 ===== */
@media (max-width: 960px) {
    .icon-nav {
        gap: 6px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .icon-item {
        grid-template-rows: 40px auto;
        padding: 6px 3px;
    }
    
    .icon-img {
        height: 32px;
        width: 32px;
    }
    
    .site-grid {
        gap: 8px;
        grid-template-columns: repeat(6, 1fr);
        padding: 10px;
        margin: 10px auto;
    }
    
    .site-item {
        min-height: 56px;
        padding: 8px 6px;
        gap: 5px;
    }
    
    .site-name {
        font-size: 10px;
    }
    
    .hot-keys {
        padding: 10px;
        margin: 10px auto 0;
    }
    
    .hot-wrap {
        gap: 5px;
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }
    
    .hot-chip {
        height: 24px;
        font-size: 9px;
        padding: 0 8px;
    }
}

/* ===== 响应式设计 - 平板竖屏 ===== */
@media (max-width: 768px) {
    .icon-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .site-grid {
        gap: 8px;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px;
        margin: 6px auto;
    }
    
    .site-item {
        min-height: 52px;
        padding: 8px 4px;
        gap: 4px;
    }
    
    .site-name {
        font-size: 10px;
    }
    
    .hot-keys {
        padding: 10px;
        margin: 10px auto 0;
    }
    
    .hot-wrap {
        gap: 5px;
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .hot-chip {
        height: 22px;
        font-size: 8px;
        padding: 0 6px;
    }
}

/* ===== 响应式设计 - 手机 ===== */
@media (max-width: 480px) {
    .icon-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .site-grid {
        gap: 6px;
        grid-template-columns: repeat(4, 1fr);
        padding: 4px;
        margin: 4px auto;
    }
    
    .site-item {
        min-height: 20px;
        padding: 6px 3px;
        gap: 3px;
    }
    
    .site-name {
        font-size: 9px;
    }
    
    .hot-keys {
        padding: 8px;
        margin: 8px auto 0;
    }
    
    .hot-wrap {
        gap: 4px;
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    }
    
    .hot-chip {
        height: 20px;
        font-size: 7px;
        padding: 0 5px;
    }
}
