/* 新拟态风格 - 小旋风蜘蛛池模板 */
/* 主色调：柔和蓝灰色系 */

:root {
    --bg-primary: #e0e5ec;
    --bg-secondary: #d1d9e6;
    --text-primary: #4a5568;
    --text-secondary: #718096;
    --accent-color: #667eea;
    --accent-hover: #5a67d8;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --card-bg: #e0e5ec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 新拟态阴影效果 */
.neumorphic {
    background: var(--card-bg);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    border-radius: 16px;
}

.neumorphic-inset {
    background: var(--card-bg);
    box-shadow: 
        inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
    border-radius: 12px;
}

.neumorphic-btn {
    background: var(--card-bg);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neumorphic-btn:hover {
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.neumorphic-btn:active {
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

/* 头部样式 */
.header-content {
    background: var(--bg-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 4px 20px var(--shadow-dark),
        0 -2px 10px var(--shadow-light);
}

.navbar {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 5px;
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* 二级导航 */
.video_nav {
    background: var(--bg-secondary);
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.layui-tab-title {
    display: flex;
    list-style: none;
    gap: 10px;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none;
}

.layui-tab-title::-webkit-scrollbar {
    display: none;
}

.layui-nav-item a {
    display: block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    white-space: nowrap;
}

.layui-nav-item a:hover {
    color: var(--accent-color);
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* 主容器 */
.container-xl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    margin: 25px auto;
}

.row {
    display: flex;
    gap: 25px;
}

.main-left {
    flex: 1;
    min-width: 0;
}

.main-right {
    width: 340px;
    flex-shrink: 0;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

.card-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 5px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
}

.card-body {
    padding: 20px 25px;
}

/* 热门赛程 */
.hot-match_list {
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

.hot-title {
    font-size: 22px;
    font-weight: 800;
    padding: 20px 25px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-bottom: 2px solid var(--accent-color);
}

.hot-match_time {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    padding: 12px 25px;
    background: rgba(102, 126, 234, 0.1);
}

.hot-match-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
    transition: all 0.3s ease;
}

.hot-match-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.hot-match-item:last-child {
    border-bottom: none;
}

.live-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(90, 103, 216, 0.05));
    position: relative;
}

.hot-live-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: linear-gradient(135deg, var(--danger), #fc8181);
    color: white;
    padding: 4px 14px;
    border-radius: 0 0 10px 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.hot-info_left {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.hot-time {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 55px;
}

.hot-league {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-info_center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hot-home, .hot-away {
    display: flex;
    align-items: center;
}

.hot-left, .hot-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hot-left {
    flex-direction: row-reverse;
}

.hot-left img, .hot-right img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    padding: 4px;
    object-fit: contain;
}

.hot-left .text, .hot-right .text {
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-score .fenge {
    color: var(--text-secondary);
}

.hot-info_right {
    min-width: 90px;
    text-align: center;
}

.hot-info_right a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.hot-info_right.start a {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    box-shadow: 
        5px 5px 15px rgba(102, 126, 234, 0.4),
        -5px -5px 15px var(--shadow-light);
}

.hot-info_right.start a:hover {
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 20px rgba(102, 126, 234, 0.5),
        -5px -5px 15px var(--shadow-light);
}

/* 分类标签 */
.category-tabs {
    display: flex;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 6px;
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.category-tabs div {
    flex: 1;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 500;
}

.category-tabs div.current {
    color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    font-weight: 600;
}

.category-tabs div a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* 赛事列表 */
.items-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.live-item:hover {
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transform: translateY(-2px);
}

.match-base {
    min-width: 100px;
    display: flex;
    flex-direction: column;
}

.match-league {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
}

.match-time-s {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.match-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 180px;
}

.team-info:first-child {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.team-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    padding: 3px;
    object-fit: contain;
}

.team-info span {
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
    min-width: 60px;
    text-align: center;
}

.match-play {
    min-width: 80px;
    text-align: center;
}

.bs_ztai {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-primary);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    color: var(--text-secondary);
}

.bs_ztai.start {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    box-shadow: 
        4px 4px 12px rgba(102, 126, 234, 0.4),
        -4px -4px 8px var(--shadow-light);
}

/* 侧边栏新闻列表 */
.news-top-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
    transition: all 0.3s ease;
}

.news-top-item:last-child {
    border-bottom: none;
}

.news-top-item:hover {
    padding-left: 8px;
}

.news-top-item .title {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-top-item .title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.news-top-item:hover .title {
    color: var(--accent-color);
}

/* 页脚 */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0 30px;
    margin-top: 50px;
    box-shadow: 
        inset 0 10px 20px var(--shadow-dark),
        inset 0 -5px 10px var(--shadow-light);
}

.footer p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer a {
    color: var(--accent-color);
}

.footer .copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 177, 198, 0.5);
    color: var(--text-secondary);
}

/* 直播页样式 */
.live-info .card-body {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    padding: 0;
}

.video-layout {
    width: 100%;
    color: var(--text-primary);
    overflow: hidden;
}

.video_header {
    border-radius: 20px;
    width: 100%;
    padding: 40px 50px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    margin: 25px;
    width: calc(100% - 50px);
}

.video_header_content {
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 36px;
}

.video_header_content .info {
    text-align: center;
    z-index: 999;
}

.vs-info-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    background: var(--bg-primary);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    padding: 6px;
    object-fit: contain;
}

.vs-info-3b80 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    height: 120px;
}

.matchInfo {
    overflow: hidden;
    width: 200px;
    height: 120px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative;
    justify-content: center !important;
}

.matchInfo div {
    height: 24px !important;
    line-height: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 15px;
    width: 100px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#game_matchd_lt {
    background: transparent;
    padding: 0;
}

#game_matchd_lt .col_02 {
    border: none;
    float: none;
}

#game_matchd_lt .video_header {
    background: var(--bg-primary);
    width: calc(100% - 50px);
    height: auto;
    padding: 30px;
    border: none;
}

#game_matchd_lt .matchInfo {
    top: 10px;
}

#game_matchd_lt .info div:nth-child(1) {
    font-size: 13px;
    color: var(--text-secondary);
}

#game_matchd_lt .info div:nth-child(2) {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
}

#game_matchd_lt .info div:nth-child(3) {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* 直播源 */
.match-resource {
    padding: 20px 25px;
}

.xinhaoyuan {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.xinhaoyuanmain {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        5px 5px 15px rgba(102, 126, 234, 0.4),
        -5px -5px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.xinhaoyuanmain:hover {
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 20px rgba(102, 126, 234, 0.5),
        -5px -5px 15px var(--shadow-light);
}

/* 文章内容 */
.zhibo-content {
    padding: 25px;
}

.zhibo-content article p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.zhibo-content article a {
    color: var(--accent-color);
    font-weight: 600;
}

.news-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.news-info {
    color: var(--text-secondary);
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
    margin-bottom: 20px;
}

.nextinfo {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 177, 198, 0.3);
}

.nextinfo p {
    margin-bottom: 12px;
}

.nextinfo span {
    color: var(--accent-color);
    font-weight: 600;
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 15px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.breadcrumb a {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-right {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }
    
    .main-right {
        width: 100%;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hot-match-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hot-info_center {
        width: 100%;
        order: 3;
    }
    
    .live-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .match-info {
        width: 100%;
        order: 2;
    }
}

@media (max-width: 768px) {
    .container-xl {
        padding: 0 15px;
    }
    
    .hot-info_center {
        flex-direction: column;
        gap: 15px;
    }
    
    .hot-score {
        order: 2;
    }
    
    .match-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .team-info, .team-info:first-child {
        width: 100%;
        justify-content: center;
        flex-direction: row;
    }
    
    .team-score {
        order: 2;
    }
    
    .video_header {
        padding: 20px;
    }
    
    .vs-info-3b80 {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    
    .matchInfo {
        width: 100%;
    }
    
    .video_header_content {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }
}

/* 工具类 */
.line-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.line-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.flex-1 {
    flex: 1;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.mt-3 {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 20px;
}

.p-2 {
    padding: 12px;
}

.text-muted {
    color: var(--text-secondary);
}

.float-left {
    float: left;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.live-highlight .hot-live-badge {
    animation: pulse 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: 
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
