/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 当前位置导航 */
.dangq {
    margin-bottom: 20px;
    font-size: 14px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dangq ul {
    list-style: none;
}

.dangq li {
    display: inline;
}

.dangq a {
    color: #0066cc;
    text-decoration: none;
}

.dangq a:hover {
    text-decoration: underline;
}

/* 内容包装器 */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 页面整体容器 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

/* 顶部布局 */
.match-header {
    text-align: center;
    margin-bottom: 30px;
}

.match-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.match-image {
    width: 100px;
    height: 100px;
}

.match-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.match-subtitle {
    flex: 1;
    text-align: left;
    color: #666;
    line-height: 1.5;
}

.match-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.match-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn-tertiary {
    background-color: #2ecc71;
    color: white;
}

.match-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 联赛区域 */
.league-section {
    margin-bottom: 30px;
}

/* 联赛标题 */
.league-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
}

.league-header.premier {
    border-bottom: 2px solid #0066cc;
}

.league-header.la-liga {
    border-bottom: 2px solid #ff6600;
}

.league-header.serie-a {
    border-bottom: 2px solid #990000;
}

.league-header.bundesliga {
    border-bottom: 2px solid #009900;
}

.league-header.ligue-1 {
    border-bottom: 2px solid #333333;
}

.league-header.nba {
    border-bottom: 2px solid #ff6600;
}

.league-header.cba {
    border-bottom: 2px solid #0066cc;
}

.league-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}



/* 比赛列表 */
.match-list {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
}

/* 比赛项 */
.match-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.league-section:nth-child(2) .match-item {
    border-left-color: #0066cc;
}

.league-section:nth-child(3) .match-item {
    border-left-color: #ff6600;
}

.league-section:nth-child(4) .match-item {
    border-left-color: #990000;
}

.league-section:nth-child(5) .match-item {
    border-left-color: #009900;
}

.league-section:nth-child(6) .match-item {
    border-left-color: #333333;
}

.league-section.basketball:nth-child(7) .match-item {
    border-left-color: #ff6600;
}

.league-section.basketball:nth-child(8) .match-item {
    border-left-color: #0066cc;
}

.match-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

/* 比赛时间 */
.match-time {
    font-size: 14px;
    color: #666;
    width: 120px;
    font-weight: 500;
}

/* 比赛联赛 */
.match-league {
    font-size: 12px;
    color: #999;
    width: 80px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 比赛球队 */
.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* 球队 */
.team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.team:first-child {
    justify-content: flex-end;
}

.team:last-child {
    justify-content: flex-start;
}

.team-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.team:first-child .team-name {
    text-align: right;
}

.team:last-child .team-name {
    text-align: left;
}

/* 球队logo */
.team-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 比赛比分 */
.match-score {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    min-width: 50px;
    text-align: center;
}

/* 比赛状态 */
.match-status {
    width: 100px;
    text-align: center;
}

/* 状态按钮 */
.status-btn {
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: white;
}

.status-btn:hover {
    background-color: #2980b9;
}

/* 篮球比赛 */
.league-section.basketball {
    margin-top: 40px;
}

/* 侧边栏内容 */
.listy {
    margin-bottom: 30px;
}

.tjnr p,
.nrbt {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.tjnr ul,
.nrmk3 ul {
    list-style: none;
}

.tjnr li,
.nrmk3 li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tjnr li::before,
.nrmk3 li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.tjnr a,
.nrmk3 a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.tjnr a:hover,
.nrmk3 a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 页脚信息 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 20px;
}

/* 调整整体页面边距 */
body {
    padding: 20px 0;
}

.footer-content p {
    line-height: 1.5;
    margin-bottom: 15px;
}



.footer p:last-child {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.footer p:last-child a {
    color: #999;
    text-decoration: none;
}

.footer p:last-child a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 友情链接区域 */
.friend-links-section {
    background-color: white;
    padding: 30px 0;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.friend-links-section .friend-links-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
}

.friend-links-section .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.friend-links-section .links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.friend-links-section .links a:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .match-content {
        flex-direction: column;
        text-align: center;
    }
    
    .match-buttons {
        flex-wrap: wrap;
    }
    
    .match-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .match-time,
    .match-league,
    .match-status {
        width: 100%;
        text-align: left;
    }
    
    .match-teams {
        width: 100%;
        justify-content: flex-start;
    }
    
    .league-header {
        align-items: flex-start;
    }
}