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

html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 防止横向溢出 */
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保body至少占满视口高度 */
    -webkit-overflow-scrolling: touch; /* 启用平滑滚动 */
}

.main-container {
    flex: 1;
    width: 100%;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 1rem auto; /* 居中显示 */
    padding: 0 1rem; /* 添加内边距 */
    display: flex;
    flex-direction: row; /* 水平布局，支持2:1比例分布 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 1.5rem; /* 添加间距 */
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    flex-shrink: 0; /* 防止头部被压缩 */
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== PC端样式 - 仅在桌面设备显示 ========== */
@media screen and (min-width: 769px) {
    /* 桌面端头部两行布局 */
    .desktop-header {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    /* 第一行：用户操作区 - 单独一行靠右对齐 */
    .desktop-header-top {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
        overflow: visible; /* 允许下拉菜单显示 */
    }
    
    /* 第二行：Logo和导航 - 同一行显示 */
    .desktop-header-bottom {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* 改为左对齐 */
        padding: 1rem 0;
        gap: 0; /* 移除间距 */
    }
    
    /* Logo样式优化 - PC端 */
    .logo {
        width: 10%; /* Logo固定在左侧10%区域 */
        flex-shrink: 0; /* 防止logo被压缩 */
        display: flex; /* 添加flex布局 */
        justify-content: center; /* logo内容居中 */
        align-items: center; /* logo内容垂直居中 */
        margin-right: 1rem; /* 与导航栏保持间距 */
        margin-left: 2rem;
    }
    
    .logo a {
        font-size: 1.5rem;
        font-weight: bold;
        color: #FF6600;
        text-decoration: none;
    }
    
    .logo img {
        height: 45px; /* 稍微减小logo高度，让整体更协调 */
        max-width: 100%;
        display: block; /* 确保图片没有额外间距 */
    }
    
    /* 导航样式优化 - PC端 */
    /* 在桌面端隐藏移动端头部 */
    .mobile-header-container {
        display: none !important;
    }
    
    .desktop-nav {
        display: block !important;
        margin-left: 0; /* 移除原有的margin-left */
        flex: 1; /* 让导航栏占据剩余空间 */
        max-width: 80%; /* 移除最大宽度限制 */
    }
    
    .desktop-nav ul {
        display: flex;
        list-style: none;
        justify-content: space-between; /* 导航项等距离排列 */
        margin: 0;
        padding: 0;
        width: 80%; /* 占满整个导航区域 */
    }
    
    .desktop-nav ul li {
        margin: 0; /* 移除所有外边距 */
        position: relative;
        flex: 1; /* 让导航项等宽分布 */
        text-align: center; /* 文字居中 */
    }
    
    .desktop-nav ul li a {
        color: #ff6600;
        text-decoration: none;
        font-weight: 500;
        display: block; /* 改为块级元素，占满整个li */
        padding: 0.5rem 0.5rem; /* 调整内边距 */
        font-size: 1.2rem; /* 稍微减小字体大小 */
        white-space: nowrap; /* 防止文字换行 */
        width: 100%; /* 占满整个宽度 */
        box-sizing: border-box; /* 包含内边距在宽度内 */
    }
    
    .desktop-nav ul li a:hover {
        color: #c0392b;
    }
    
    /* 下拉菜单样式优化 - PC端 */
    .desktop-nav ul li .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%; /* 改为居中显示 */
        transform: translateX(-50%); /* 居中对齐 */
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 0.5rem 0;
        min-width: 140px; /* 稍微减小最小宽度 */
        z-index: 1000;
    }
    
    .desktop-nav ul li:hover .dropdown {
        display: block;
    }
    
    .desktop-nav ul li .dropdown a {
        display: block;
        padding: 0.4rem 0.8rem; /* 减少下拉菜单项的内边距 */
        color: #333;
        text-decoration: none;
        margin-left: 0;
        font-size: 0.9rem; /* 减小下拉菜单字体大小 */
    }
    
    .desktop-nav ul li .dropdown a:hover {
        background-color: #f5f5f5;
        color: #ff6600;
    }
    
    /* 用户操作区样式优化 - PC端 */
    .user-actions {
        display: flex;
        align-items: center;
        gap: 0.3rem; /* 减少按钮间距 */
        flex-shrink: 0; /* 防止被压缩 */
        overflow: visible; /* 允许下拉菜单显示 */
    }
    
    .user-actions span {
        margin-right: 0.5rem; /* 减少右边距 */
        font-weight: 500;
        display: inline;
        font-size: 0.9rem; /* 减小字体大小 */
    }
    
    .user-actions a {
        color: #333;
        text-decoration: none;
        position: relative;
    }
    
    /* 管理后台下拉菜单样式 */
    .admin-menu-container {
        position: relative;
        display: inline-block;
    }
    
    .admin-link {
        position: relative;
    }
    
    .admin-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 0.3rem 0;
        min-width: 140px;
        max-width: 160px;
        z-index: 1000;
    }
    
    .admin-menu-container:hover .admin-dropdown,
    .admin-dropdown:hover {
        display: block;
    }
    
    .admin-dropdown a {
        display: block;
        padding: 0.4rem 0.8rem;
        color: #333;
        text-decoration: none;
        font-size: 0.85rem;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        line-height: 1.4;
    }
    
    .admin-dropdown a:last-child {
        border-bottom: none;
    }
    
    .admin-dropdown a:hover {
        background-color: #f5f5f5;
        color: #ff6600;
    }
        padding: 0.4rem 0.8rem; /* 减少内边距 */
        border-radius: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 0.9rem; /* 减小字体大小 */
    }
    
    .user-actions a:hover {
        color: #ff6600;
        background-color: #f9f9f9;
    }
    
    /* 通知链接和徽章样式 */
    .notification-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .notification-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .notification-badge {
        background: linear-gradient(135deg, #ff6b6b, #ee5a52);
        color: white;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 0;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: -1px;
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        line-height: 1;
        text-align: center;
    }
    
    .notification-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
        background: linear-gradient(135deg, #ff5252, #e53935);
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* 登录和注册按钮紧凑样式 */
    .user-actions .login-btn,
    .user-actions .register-btn {
        margin-left: 0;
        padding: 0.4rem 0.6rem; /* 进一步减少内边距 */
        font-size: 0.85rem; /* 减小按钮字体大小 */
    }
    
    /* 管理员菜单 - PC端 */
    /* 移除特殊的内联显示样式，确保所有下拉菜单项都居中显示 */
/* .user-actions a[href*="news-manage"],
.user-actions a[href*="match-manage"] {
    display: inline;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
} */

/* 多角色身份标识样式 */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.1rem;
    line-height: 1.2;
}

.role-badge.primary {
    background: linear-gradient(135deg, #ff6600, #e55b00);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

.role-badge.secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.role-badge.coach {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.role-badge.referee {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.role-badge.organizer {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.role-badge.staff {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.role-badge.medic {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.role-badge.media {
    background: linear-gradient(135deg, #6f42c1, #59359a);
    color: white;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

.role-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.role-badge .role-icon {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* 多角色筛选器样式 */
.role-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.role-filter .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.role-filter .btn.active {
    background: linear-gradient(135deg, #ff6600, #e55b00);
    color: white;
    border-color: #ff6600;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

.role-filter .btn:hover {
    background: #f8f9fa;
    border-color: #ff6600;
    color: #ff6600;
}

.role-filter .btn.active:hover {
    background: linear-gradient(135deg, #e55b00, #cc5200);
    color: white;
}

/* 比赛评分样式 */
.match-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.match-rating.high {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #b1dfbb;
}

.match-rating.medium {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffeaa7;
}

.match-rating.low {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #f5c6cb;
}

.match-rating .rating-stars {
    color: #ffc107;
    font-size: 0.7rem;
}

/* 角色统计卡片 */
.role-stats-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #ff6600;
}

.role-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.role-stats-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.role-stats-count {
    background: linear-gradient(135deg, #ff6600, #e55b00);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.role-stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.role-stat-item {
    text-align: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.role-stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.role-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6600;
    display: block;
    margin-bottom: 0.3rem;
}

.role-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* 响应式角色统计 */
@media (max-width: 768px) {
    .role-stats-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .role-stat-item {
        padding: 0.6rem;
    }
    
    .role-stat-value {
        font-size: 1.2rem;
    }
    
    .role-filter {
        gap: 0.3rem;
    }
    
    .role-filter .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}
}

/* 状态标签样式 */
.status-live {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

.status-scheduled {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

.status-finished {
    background-color: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 竞赛徽章样式 */
.competition-badge {
    background-color: #FF6600;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 年份徽章样式 */
.year-badge {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}



/* 主容器样式 - 已在第29行定义，这里只需定义子元素 */

.main-content {
    flex: 2; /* 主内容占2份 */
    min-width: 0;
    max-width: 100%; /* 默认占满可用空间 */
}

/* 侧边栏样式 */
.sidebar {
    flex: 1; /* 侧边栏占1份 */
    min-width: 250px; /* 最小宽度，防止过度压缩 */
    max-width: 350px; /* 最大宽度，防止过度拉伸 */
    flex-shrink: 0;
}

/* 通用区块标题 */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-left: 4px solid #FF6600;
    padding-left: 0.8rem;
}

/* 新闻卡片样式 */
.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: fill;
    object-position: top center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 针对人物图片的特殊优化 */
.news-card img[src*="人物"],
.news-card img[src*="player"],
.news-card img[src*="team"] {
    object-position: center 25%;
}

.news-card img[src*="人物"]:hover,
.news-card img[src*="player"]:hover,
.news-card img[src*="team"]:hover {
    object-position: center 35%;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .news-card img {
        height: 180px;
        object-position: center 30%;
    }
    
    .news-card:hover img {
        transform: none;
        box-shadow: none;
    }
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.news-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.news-content p {
    color: #555;
    margin-bottom: 1rem;
}

.news-content a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
}

.news-content a:hover {
    text-decoration: underline;
}

/* 新闻页面简约布局 - 移除互动按钮后的优化 */
.news-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.news-actions .read-more {
    display: inline-flex;
    align-items: center;
    background: #ff6600;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.news-actions .read-more:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 移动端简约紧凑布局 */
@media screen and (max-width: 768px) {
    .news-card {
        margin-bottom: 1rem;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .news-content p {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .news-actions {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
    
    .news-actions .read-more {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 16px;
    }
}

/* 超小屏幕进一步优化 */
@media screen and (max-width: 480px) {
    .news-card {
        margin-bottom: 0.8rem;
        border-radius: 4px;
    }
    
    .news-content {
        padding: 0.8rem;
    }
    
    .news-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .news-content p {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .news-actions {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
    
    .news-actions .read-more {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 14px;
    }
}

/* 表单样式 */
.form-container {
    width: 1200px;
    max-width: 100%;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

.form-group input:focus {
    outline: none;
    border-color: #FF6600;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1.4;
    text-decoration: none;
    vertical-align: middle;
}

.btn:focus {
    outline: none;
    border-color: #c0392b;
}

.btn:hover {
    background-color: #c0392b;
}

/* 分享按钮悬停效果 */
#wechat-share:hover {
    background-color: #059862 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
}

#weibo-share:hover {
    background-color: #c41230 !important;
    transform: translateY(-2px);
    box-shadow:   0 4px 8px rgba(230, 22, 45, 0.3);
}

#copy-link:hover {
    background-color: #555 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 102, 102, 0.3);
}

/* 分享按钮过渡效果 */
#wechat-share,
#weibo-share,
#copy-link {
    transition: all 0.3s ease;
}

/* 错误信息样式 */
.errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
}

.errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* 成功信息样式 */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #c3e6cb;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto; /* 使用auto确保footer始终在底部 */
    width: 100%;
    transform-origin: top center;
    flex-shrink: 0; /* 防止footer被压缩 */
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    transform-origin: top center;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #555;
    margin-top: 1rem;
}

/* 移动端footer简化样式 */
     @media (max-width: 768px) {
         footer {
             padding: 1rem 0 0.8rem 0;
             margin-top: auto; /* 确保移动端footer也在底部 */
         }
         
         .footer-container {
             flex-direction: column;
             padding: 0 0.5rem;
             gap: 0.8rem;
         }
         
         .footer-section {
             min-width: auto;
             margin-bottom: 0;
             text-align: center;
         }
         
         /* 简化版联系我们 - 只保留核心信息 */
         .footer-section:last-child {
             order: -1; /* 关注我们移到最前面 */
             margin-bottom: 0.5rem;
         }
         
         .footer-section:last-child h3 {
             display: none; /* 隐藏关注我们标题 */
         }
         
         .footer-section:last-child ul {
             display: flex;
             justify-content: center;
             gap: 1rem;
             margin: 0;
         }
         
         .footer-section:last-child ul li {
             margin: 0;
         }
         
         /* 简化微信和邮箱显示 */
         .footer-section:last-child .wechat-icon,
         .footer-section:last-child a[href^="mailto:"] {
             padding: 0.25rem 0.4rem;
             font-size: 0.8rem;
             background: rgba(255,255,255,0.1);
             border-radius: 4px;
             display: inline-flex;
             align-items: center;
             gap: 0.3rem;
         }
         
         .footer-section:last-child .wechat-icon img,
         .footer-section:last-child a[href^="mailto:"] svg {
             width: 14px;
             height: 14px;
         }
         
         /* 简化其他section */
         .footer-section:not(:last-child) {
             display: flex;
             flex-direction: row;
             justify-content: center;
             align-items: center;
             gap: 1rem;
             flex-wrap: wrap;
         }
         
         .footer-section:not(:last-child) h3 {
             display: none; /* 隐藏标题 */
         }
         
         .footer-section:not(:last-child) ul {
             display: flex;
             flex-direction: row;
             gap: 0.8rem;
             flex-wrap: wrap;
             justify-content: center;
             margin: 0;
         }
         
         .footer-section:not(:last-child) ul li {
             margin: 0;
         }
         
         .footer-section:not(:last-child) a {
             font-size: 0.8rem;
             padding: 0.2rem 0.3rem;
         }
         
         /* 底部版权信息简化 */
         .footer-bottom {
             padding: 0.6rem 0.5rem;
             margin-top: 0.8rem;
         }
         
         .footer-bottom p {
             font-size: 0.75rem;
             line-height: 1.3;
             margin: 0.1rem 0;
         }
         
         .footer-bottom p:first-child {
             margin-bottom: 0.3rem;
         }
         
         /* 备案信息简化 */
         .footer-bottom a {
             font-size: 0.7rem;
         }
         
         .footer-bottom img {
             width: 14px;
             height: 14px;
         }
         
         /* 隐藏微信二维码弹窗 */
         .wechat-qr {
             display: none !important;
         }
         
         /* 隐藏赛事合作栏目 */
         .mobile-hide {
             display: none !important;
         }
     }

/* 移动端和PC端footer分离 */
.footer-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.footer-mobile {
    display: none;
    width: 100%;
}

/* 移动端footer菜单 */
.mobile-footer-menu {
    display: flex;
    justify-content: space-around;
    padding: 0rem 0;
}

.mobile-footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-footer-menu a:hover {
    color: #ff6b35;
}

.mobile-footer-info {
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
}

/* 响应式显示控制 */
@media (max-width: 768px) {
    .footer-desktop {
        display: none;
    }
    
    .footer-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .footer-desktop {
        display: flex;
    }
    
    .footer-mobile {
        display: none;
    }
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 比赛表格容器 */
.match-table-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* 比赛表格样式 */
.match-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.match-table th {
    background-color: #ff6600;
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
}

.match-table td {
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.match-table tr:last-child td {
    border-bottom: none;
}

.match-table tr.match-row:hover {
    background-color: #f9f9f9;
}

/* 表格单元格特定样式 */
.competition-cell {
    font-weight: 500;
    text-align: left;
    max-width: 90px;
}

.teams-cell {
    font-weight: 500;
    line-height: 1.4;
}

.time-cell {
    color: #333;
    font-weight: 500;
}

.venue-cell {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.3;
}

.score-cell {
    font-weight: 700;
}

.score {
    color: #ff6600;
    background-color: #fef5f5;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.details-cell {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.round-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
    display: inline-block;
}

/* 比赛信息单元格 */
.match-info-cell {
    text-align: left;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.match-time {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.3rem;
}

.match-venue {
    font-size: 0.75rem;
}

/* 对阵双方单元格 */
.home-team {
    font-weight: 600;
    color: #2c3e50;
    align-items: center;
}

.away-team {
    font-weight: 500;
    color: #7f8c8d;
    align-items: center;
}

.vs-separator {
    font-size: 0.75rem;
    color: #999;
    margin: 0.3rem 0;
    font-weight: 400;
}

/* 比分单元格 */
.home-score, .away-score {
    font-size: 1.1rem;
}

.home-score {
    color: #ff6600;
}

.away-score {
    color: #7f8c8d;
}

.score-separator {
    color: #999;
    margin: 0.3rem 0;
}

/* 调整表格列宽 */
.match-table th:nth-child(1),
.match-table td:nth-child(1) {
    width: 20%;
}

.match-table th:nth-child(2),
.match-table td:nth-child(2) {
    width: 30%;
}

.match-table th:nth-child(3),
.match-table td:nth-child(3) {
    width: 30%;
}

.match-table th:nth-child(4),
.match-table td:nth-child(4) {
    width: 20%;
}

/* 已完成比赛的样式优化 */
.match-table tr.finished .home-score {
    background-color: #fef5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    min-width: 1.8rem;
}

.match-table tr.finished .away-score {
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    min-width: 1.8rem;
}

/* 已完成比赛的样式 */
.match-table tr.finished {
    background-color: #f9f9f9;
}

.match-table tr.finished:hover {
    background-color: #f0f0f0;
}

/* 比赛日程容器 */
.match-schedule-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* 日程项 */
.schedule-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.schedule-item:hover {
    background-color: #f9f9f9;
}

/* 第一大行：赛事信息 */
.schedule-header {
    margin-bottom: 0.8rem;
    text-align: center; /* 赛事信息也居中 */
}

.competition-info {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.round-info {
    color: #ff6600;
    font-weight: 500;
}

/* 第二大行：比赛信息 */
.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.match-time {
    font-weight: 500;
    color: #333;
}

.match-location {
    color: #666;
    font-size: 0.9rem;
}

/* 第三大行：球队容器 */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

/* 第一列：球队信息 - 修改为居中 */
.teams-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team {
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.home-team {
    border-bottom: 1px dashed #eee;
}

.team-name {
    font-weight: 500;
    text-align: center;
}

.home-team .team-name {
    color: #2c3e50;
}

.away-team .team-name {
    color: #7f8c8d;
}

/* 第二列：时间信息 */
.time-info {
    width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-left: 0.8rem;
    font-weight: 600;
    color: #ff6600;
    font-size: 1.1rem;
}

/* 错误和无比赛单元格 */
.error-cell, .no-match-cell {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-style: italic;
}

.error-cell {
    color: #ff6600;
}

/* 热门话题样式 */
.hot-topics {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.topic-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.topic-item a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.topic-item a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 侧边栏区块样式 */
.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

/* 分类列表样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border-left: 3px solid transparent;
}

.category-list a:hover {
    background-color: #ff6600;
    color: white;
    border-left-color: #c0392b;
    transform: translateX(5px);
}

.category-list a.active {
    background-color: #ff6600;
    color: white;
    border-left-color: #c0392b;
    font-weight: 600;
}

/* 比赛项目样式 */
.match-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid #FF6600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.match-item:last-child {
    margin-bottom: 0;
}

.match-item div:first-child {
    font-weight: 600;
    color: #ff6600;
    margin-bottom: 0.3rem;
}

.match-item div:nth-child(2) {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.match-item div:last-child {
    color: #666;
    font-size: 0.85rem;
}

/* 默认隐藏移动端元素 */
.mobile-nav {
    display: none;
}

/* 移动端头部两行布局 */
.mobile-header-row {
    display: none;
}

@media screen and (max-width: 768px) {
    /* 移动端头部两行布局 */
    .mobile-header-row {
        display: flex;
        align-items: center;
        padding: 0.3rem 0.8rem;
        background-color: #fff;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-header-top {
        justify-content: space-between;
        padding-top: 0.2rem; /* 缩小上内边距 */
        padding-bottom: 0.2rem; /* 缩小下内边距 */
    }
    
    .mobile-header-bottom {
        padding-top: 0.15rem; /* 大幅缩小上内边距 */
        padding-bottom: 0.15rem; /* 大幅缩小下内边距 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

    }
    
    /* 移动端Logo样式 */
    .mobile-header-top .logo {
        margin-left: 0.5rem; /* 将logo向中线靠近 */
    }
    
    .mobile-header-top .logo img {
        height: 26px; /* 进一步减小logo高度 */
        width: auto;
        display: block;
    }
    
    /* 移动端用户操作区 */
    .mobile-user-actions {
        display: flex;
        gap: 0.3rem;
        align-items: center;
        margin-right: 0.5rem; /* 向右移动靠近中线 */
    }
    
    .mobile-user-btn {
        padding: 0.15rem 0.4rem;
        background-color: #ff6600;
        color: #fff;
        text-decoration: none;
        border-radius: 3px;
        font-size: 0.7rem;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
        line-height: 1.2;
        position: relative;
    }
    
    /* 移动端通知徽章样式 */
    .mobile-user-btn .notification-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        font-size: 0.55rem;
        font-weight: 500;
        min-width: 14px;
        height: 14px;
        padding: 0;
        border-radius: 7px;
        box-shadow: 0 1px 3px rgba(255, 107, 107, 0.4);
        animation: none;
        line-height: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-user-btn .notification-badge:hover {
        transform: scale(1.1);
    }
    
    .mobile-user-btn:hover {
        background-color: #c0392b;
        transform: translateY(-1px);
    }
    
    /* 移动端通知链接样式 */
    .mobile-notification-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    /* 隐藏桌面端头部 */
    .desktop-header {
        display: none;
    }
    
    /* 移动端导航样式优化 */
    .mobile-header-bottom .mobile-nav {
        display: block;
        width: 100%;
    }
    
    .mobile-header-bottom .mobile-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1rem; /* 减小一级目录间距 */
        justify-content: flex-start;
        align-items: flex-start; /* 改为顶部对齐 */
    }
    
    .mobile-header-bottom .mobile-nav ul li {
        flex-shrink: 0;
        margin: 0;
    }
    
    .mobile-header-bottom .mobile-nav ul li.mobile-directory {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
    }
    
    .mobile-header-bottom .mobile-nav ul li.mobile-directory .mobile-directory-header a {
        font-weight: 600;
        color: #ff6600;
        text-decoration: none;
        font-size: 0.95rem; /* 稍微减小字体大小 */
        padding: 0.3rem 0; /* 减小上下内边距 */
        display: block;
        text-align: center;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .mobile-header-bottom .mobile-nav ul li.mobile-directory .mobile-directory-header a:hover {
        color: #c0392b;
        transform: translateY(-1px);
    }
    
    .mobile-header-bottom .mobile-nav ul li .mobile-directory-links {
        display: flex;
        flex-direction: column; /* 改为垂直排列 */
        align-items: center; /* 居中对齐 */
        gap: 0.2rem; /* 大幅减小二级目录行距 */
        margin-top: 0.2rem; /* 减小与一级目录的间距 */
        max-width: none; /* 移除最大宽度限制 */
    }
    
    .mobile-header-bottom .mobile-nav ul li .mobile-directory-links a {
        display: inline-block;
        padding: 0.2rem 0.4rem; /* 减小内边距 */
        background-color: transparent; /* 移除背景色 */
        border: none; /* 移除边框 */
        border-radius: 0; /* 移除圆角 */
        color: #666;
        font-size: 0.7rem; /* 减小字体大小 */
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        text-align: center;
        min-height: auto;
        line-height: 1.1;
    }
    
    .mobile-header-bottom .mobile-nav ul li .mobile-directory-links a:hover {
        background-color: transparent;
        color: #ff6600;
        border-color: transparent;
        transform: translateY(-1px);
    }
    
    .mobile-header-bottom .mobile-nav ul li > a {
        color: #ff6600;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem; /* 稍微减小字体大小 */
        padding: 0.3rem 0; /* 减小上下内边距 */
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .mobile-header-bottom .mobile-nav ul li > a:hover {
        color: #c0392b;
        transform: translateY(-1px);
    }
}

@media screen and (max-width: 768px) {
    /* 强制横向导航样式 - 改为垂直布局 */
    .mobile-nav ul {
        flex-direction: column !important; /* 一级目录垂直排列 */
        width: 100%;
        min-width: auto;
        gap: 0.19rem; /* 再缩小0.8倍的一级目录间距（0.24 * 0.8 = 0.192） */
        align-items: flex-start; /* 向左对齐 */
    }
    
    .mobile-nav ul li {
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
        position: relative;
        width: 100%; /* 占满整行 */
    }
    
    /* 移动端目录布局样式 - 改为横向排列 */
    .mobile-nav ul li.mobile-directory {
        display: flex;
        flex-direction: row !important; /* 一级标题和子目录横向排列 */
        align-items: flex-start; /* 顶部对齐 */
        margin-right: 0;
        padding: 0.06rem 0; /* 再缩小0.8倍的上下内边距（0.08 * 0.8 = 0.064） */
        gap: 0.8rem; /* 缩小一级目录和子目录间距 */
        width: 100%;
    }
    
    .mobile-nav ul li.mobile-directory .mobile-directory-header {
        flex-shrink: 0;
        min-width: 60px; /* 设置最小宽度 */
    }
    
    .mobile-nav ul li.mobile-directory .mobile-directory-header a {
        font-weight: 600;
        color: #ff6600;
        text-decoration: none;
        font-size: 0.85rem; /* 再缩小0.8倍的字体大小 */
        display: block;
        text-align: left; /* 左对齐 */
        margin-bottom: 0;
        padding: 0.04rem 0; /* 再缩小0.8倍的内边距（0.05 * 0.8 = 0.04） */
        line-height: 1.05; /* 再缩小0.8倍的行高（1.1 * 0.8 = 0.88） */
    }
    
    .mobile-nav ul li .mobile-directory-links {
        display: flex;
        flex-direction: row !important; /* 子目录横向排列 */
        flex-wrap: wrap; /* 允许换行 */
        justify-content: flex-start; /* 向左对齐 */
        gap: 0.3rem; /* 大幅缩小二级目录行距 */
        margin-top: 0;
        max-width: none;
        flex: 1; /* 占据剩余空间 */
    }
    
    .mobile-nav ul li .mobile-directory-links a {
        display: inline-block;
        padding: 0.06rem 0.2rem; /* 再缩小0.8倍的内边距（0.08 * 0.8 = 0.064） */
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 5px; /* 再缩小0.8倍的圆角（6 * 0.8 = 4.8） */
        color: #666;
        font-size: 0.55rem; /* 再缩小0.8倍的字体大小（0.6 * 0.8 = 0.48） */
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        text-align: center;
        min-height: auto;
        line-height: 1.0; /* 再缩小0.8倍的行高（1.05 * 0.8 = 0.84） */
    }
    
    .mobile-nav ul li .mobile-directory-links a:hover {
        background-color: #ff6600;
        color: #fff;
        border-color: #ff6600;
        transform: translateY(-1px);
    }
    
    /* 移动端导航链接样式 - 适配新布局 */
    .mobile-nav ul li a {
        font-size: 0.85rem !important;
        padding: 0.2rem 0 !important; /* 减小内边距 */
        white-space: nowrap;
        min-height: auto; /* 移除最小高度限制 */
        display: block;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    /* 子目录链接样式优化 */
    .mobile-nav ul li .mobile-directory-links a {
        font-size: 0.7rem !important;
        padding: 0.15rem 0.3rem !important;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 3px;
        margin: 0.1rem;
    }
    
    /* 移除横向滚动，改为垂直布局 */
    .mobile-header-bottom {
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0.1rem 0.8rem; /* 再缩小0.8倍的上下内边距（0.12 * 0.8 = 0.096） */
    }
    
    /* 移除横向滚动样式 */
    .mobile-nav {
        overflow-x: visible !important;
        overflow-y: visible !important;
        white-space: normal !important;
    }
    
    /* 移动端导航样式 */
    .mobile-nav {
        overflow-x: auto;
        overflow-y: visible; /* 允许下拉菜单超出容器 */
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative; /* 为下拉菜单提供定位上下文 */
        width: 100%; /* 占满宽度 */
    }
    
    .mobile-nav::-webkit-scrollbar {
        display: none;
    }
    
    /* 下拉菜单箭头指示器 - 仅对非目录布局有效 */
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.8em;
        margin-left: 2px;
    }
    
    .mobile-dropdown.active .dropdown-toggle::after {
        content: ' ▲';
    }
    
    /* 确保移动端目录布局不显示下拉箭头 */
    .mobile-directory .dropdown-toggle::after {
        display: none;
    }
}

/* 赛事页面专用样式 */
.region-nav {
    margin-top: 1rem;
}

.region-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ff6600;
}

.region-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
}

.region-title a {
    color: #ff6600;
    text-decoration: none;
}

.region-title a:hover {
    text-decoration: underline;
}

.competition-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.competition-link {
    padding: 0.4rem 0.8rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.competition-link:hover,
.competition-link.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 移动端导航交互样式 */
.mobile-nav-item {
    position: relative;
}

.mobile-nav-item .mobile-directory-header a {
    color: #fff;
    background: linear-gradient(135deg, #dc3545, #FF6600);
    border-radius: 6px;
    padding: 0.3rem 0.3rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-nav-item .mobile-directory-header a:hover {
    background-color: #c82333;
}

.mobile-nav-item.active .mobile-directory-header a {
    background-color: #bd2130;
}

.mobile-nav-item .mobile-directory-links {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #dc3545;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.1rem 0;
    margin-top: 0.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.mobile-nav-item.active .mobile-directory-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    justify-content:space-between;
    background-color: #FF6600;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.0rem 0.2rem;
}

.mobile-nav-row::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item .mobile-directory-links a {
    color: #fff;
    padding: 0.3rem 0.6rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mobile-nav-item .mobile-directory-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 移动端两行布局样式 */
.mobile-header-container {
    display: flex;
    flex-direction: column;
    background-color: #FFF;
    border-bottom: 1px solid #e0e0e0;
}

/* 第一行：用户管理模块 */
.mobile-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-user-full {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mobile-user-full a {
    color: #FF6600;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    white-space: nowrap;
}

.mobile-user-full a:hover {

    border-color: #FF6600;
    transform: translateY(-1px);
}

/* 第二行：导航 */
.mobile-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
   
}

.mobile-main-nav {
    background-color: #FF6600;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.mobile-nav-item > a {
    color: #FFF;
    text-decoration: none;
    padding: 0.4rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border: none;
    white-space: nowrap;
    margin: 0 0.1rem;
    position: relative;
}

.mobile-nav-item > a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: rgba(255,255,255,0.3);
}

.mobile-nav-item > a:hover {
    background-color: #fef5e7;
    border-color: #e67e22;
}

.mobile-nav-item.active > a {
    background-color: #e67e22;
    color: #ffffff;
    border-color: #e67e22;
}


/* 数据筛选按钮样式 */
.data-type-btn {
    padding: 0.6rem 1.2rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.data-type-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.data-type-btn.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* 筛选面板样式 */
.filter-panel {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端侧边栏布局优化 - 已在末尾定义 */
    
    .sidebar {
        width: 100% !important;
        order: 2; /* 将侧边栏移到底部，主内容优先显示 */
        margin-bottom: 1rem;
    }
    
    .sidebar .section-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding-left: 0.6rem;
        border-left-width: 3px;
    }
    
    .competition-levels {
        justify-content: center;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-type-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .data-table {
        font-size: 0.8rem; /* 减小表格字体 */
    }
    
    .data-table th,
    .data-table td {
        padding: 0.4rem 0.3rem; /* 减小单元格内边距 */
        line-height: 1.3; /* 减小行高 */    
    }
    
    .data-table th {
        font-size: 0.75rem; /* 减小表头字体 */
        font-weight: 600;
    }
    
    /* 比赛表格移动端优化 */
    .match-table {
        font-size: 0.75rem; /* 减小比赛表格字体 */
    }
    
    .match-table th,
    .match-table td {
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem; /* 减小比赛表格单元格内边距 */
        line-height: 1.2; /* 减小行高 */
    }
    
    .match-table th {
        font-size: 0.75rem; /* 减小比赛表头字体 */
        font-weight: 600;
    }
    
}
    
/* 福建足球周报专栏 - 横向布局 */
.weekly-reports-horizontal {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
}

.weekly-reports-horizontal::-webkit-scrollbar {
    height: 6px;
}

.weekly-reports-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.weekly-reports-horizontal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.weekly-reports-horizontal::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.weekly-report-card-horizontal {
    flex: 0 0 220px; /* 缩小卡片宽度以适应封面比例 */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weekly-report-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.report-cover-horizontal {
    position: relative;
    width: 100%;
    height: 293px; /* A4竖版比例 210x297mm */
    overflow: hidden;
}

.report-cover-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain以完整显示封面 */
    transition: transform 0.3s ease;
    background: #f8f9fa; /* 添加背景色以便白色封面可见 */
}

.weekly-report-card-horizontal:hover .report-cover-horizontal img {
    transform: scale(1.02);
}

.issue-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF6600;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.report-content-horizontal {
    padding: 1rem;
    text-align: center; /* 内容居中 */
}

.report-content-horizontal h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.3;
    height: 2.6rem; /* 限制为2行文字 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.report-content-horizontal h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.report-content-horizontal h3 a:hover {
    color: #ff6600;
}

.report-meta-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #666;
}

.publish-date {
    color: #999;
}

.read-more-btn {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

/* 查看更多链接 */
.more-link {
    text-align: center;
    margin-top: 2rem;
}

.more-link a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .weekly-reports-horizontal {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .weekly-report-card-horizontal {
        flex: 0 0 180px;
    }
    
    .report-cover-horizontal {
        height: 250px; /* 移动端保持A4比例 */
    }
    
    .report-content-horizontal {
        padding: 0.8rem;
    }
    
    .report-content-horizontal h3 {
        font-size: 0.9rem;
    }
}


/* 管理后台专用样式 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.record-count {
    color: #666;
    font-size: 0.9rem;
}

.filter-header {
    background-color: #f2f2f2;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.filter-header h5 {
    margin: 0;
    color: #333;
}

.filter-header h5 i {
    margin-right: 0.5rem;
}

.filter-content {
    padding: 1rem;
}

.rules-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.rules-header {
    background-color: #f2f2f2;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.rules-header h5 {
    margin: 0;
    color: #333;
}

.rules-header h5 i {
    margin-right: 0.5rem;
}

.rules-content {
    padding: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.stat-number {
    font-weight: bold;
    font-size: 1.2rem;
}

.stat-primary {
    color: #17a2b8;
}

.stat-success {
    color: #28a745;
}

.stat-warning {
    color: #ffc107;
}

.number-cell {
    font-weight: 600;
    color: #333;
    text-align: center;
}

.knockout-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    display: inline-block;
}

.update-time {
    color: #666;
}

.action-cell {
    padding: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.batch-actions {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* 表格列宽样式 */
.col-competition-info {
    width: 20%;
}

.col-year {
    width: 10%;
}

.col-teams {
    width: 8%;
}

.col-groups {
    width: 8%;
}

.col-teams-per-group {
    width: 10%;
}

.col-qualify {
    width: 8%;
}

.col-knockout {
    width: 12%;
}

.col-updated {
    width: 12%;
}

.col-actions {
    width: 12%;
}

/* 按钮颜色变体 */
.btn-primary {
    background: #17a2b8;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-danger {
    background: #ff6600;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

/* 按钮悬停效果 */
.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-secondary:hover,
.btn-info:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 统计数字危险状态 */
.stat-number.stat-danger {
    font-weight: bold;
    color: #ff6600;
    font-size: 1.2rem;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 平滑滚动 */
    scrollbar-width: thin; /* Firefox */
}

.table-container::-webkit-scrollbar {
    height: 4px; /* 减小滚动条高度 */
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 表格行悬停效果 */
.table-row-hover {
    background-color: #f8f9fa !important;
    cursor: pointer !important;
}

/* competitions.php 页面样式 */
.filter-panel {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-controls label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.filter-controls select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    box-sizing: border-box;
    font-size: 0.9rem;
    background-color: #fff;
}

.filter-controls select:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.data-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.data-type-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.data-type-btn:hover {
    background-color: #f8f9fa;
    border-color: #ff6600;
}

.data-type-btn.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.table-container {
    margin-top: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.group-title {
    margin-top: 1rem;
    color: #ff6600;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.round-title {
    margin-top: 0.8rem;
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.data-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #FF6600;
    color: #333;
}

.data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem; /* 整体字体缩小 */
}

.match-table th {
    background-color: #f8f9fa;
    padding: 10px 6px; /* 减小内边距 */
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ff6600;
    color: #333;
    font-size: 0.85rem; /* 表头字体缩小 */
}

.match-table td {
    padding: 10px 6px; /* 减小内边距 */
    border-bottom: 1px solid #eee;
    color: #333;
}


/* 客队列 - 控制在8个汉字字符宽度 */
.match-table td:nth-child(4) {
    font-size: 0.75rem;
    max-width: 96px; /* 8个汉字字符宽度 (12px * 8) */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 时间列 - 进一步缩小 */
.match-table td:nth-child(5) {
    font-size: 0.75rem;
    color: #666;
    min-width: 90px; /* 固定宽度 */
}

/* 场馆列 - 进一步缩小 */
.match-table td:nth-child(6) {
    font-size: 0.75rem;
    color: #666;
    max-width: 100px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-table tr:hover {
    background-color: #f8f9fa;
}

.points {
    font-weight: 600;
    color: #ff6600;
}

.score {
    font-weight: 600;
    color: #ff6600;
    padding: 0.25rem 0.5rem;
    background-color: #fff3f3;
    border-radius: 3px;
    border: 1px solid #ffd1d1;
}

/* 赛程安排表格样式 */
.schedule-container {
    margin-top: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 0.7rem; /* 整体字体缩小 */
}

.schedule-table th {
    background-color: #f8f9fa;
    padding: 0.6rem 0.5rem; /* 减小内边距 */
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem; /* 表头字体缩小 */
}

.schedule-table td {
    padding: 0.6rem 0.5rem; /* 减小内边距 */
    border-bottom: 1px solid #dee2e6;
    color: #333;
    text-align: center;
    vertical-align: middle; /* 添加垂直居中 */
}

/* 赛事名称列 - 进一步缩小 */
.schedule-table td:nth-child(1) {
    font-size: 0.75rem;
    max-width: 120px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 主队列 - 控制在8个汉字字符宽度 */
.schedule-table td:nth-child(2) {
    font-size: 0.75rem;
    max-width: 96px; /* 8个汉字字符宽度 (12px * 8) */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 客队列 - 控制在8个汉字字符宽度 */
.schedule-table td:nth-child(3) {
    font-size: 0.75rem;
    max-width: 96px; /* 8个汉字字符宽度 (12px * 8) */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 时间列 - 进一步缩小 */
.schedule-table td:nth-child(4) {
    font-size: 0.75rem;
    color: #666;
    min-width: 70px; /* 进一步缩小固定宽度 */
}

/* 场馆列 - 进一步缩小 */
.schedule-table td:nth-child(5) {
    font-size: 0.75rem;
    color: #666;
    max-width: 80px; /* 进一步限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 状态列 - 与场馆列字体大小保持一致 */
.schedule-table td:nth-child(6) {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

/* 比分列 - 调整为合适宽度 */
.schedule-table td:nth-child(7) {
    min-width: 110px; /* 调整为合适宽度 */
    text-align: center;
    font-weight: bold;
}



.schedule-table .score {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem; /* 比分字体稍大 */
    background-color: transparent;
    padding: 0;
    border: none;
}

.no-data {
    color: #666;
    margin-top: 2rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .schedule-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .schedule-table {
        font-size: 0.85rem;
        min-width: 500px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }
}


/* 移动端Logo和用户管理在同一行的样式 */
.mobile-header-single-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    max-height: 20px;
}

.mobile-header-single-row .mobile-logo {
    flex-shrink: 0;
    margin-left: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center; /* 添加水平居中 */
}
.mobile-logo img {
    height: 20px;
    width: auto;
    max-width: 100%;
}

/* 点球比分样式 - 比赛列表表格竖向展示 */
.score .penalty-score {
    font-size: 11px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 2px;
    line-height: 1.2;
}

/* 赛程安排表中的点球比分样式 - 横向展示 */
.schedule-table .score .penalty-score {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    margin: 0 2px;
}

/* 新版赛事卡片样式 */
.competition-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    height: 100%;
}

.competition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #ff6600;
}

.competition-card .card-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.competition-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.competition-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.competition-card .competition-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.competition-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.competition-card .series-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.competition-card .specific-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.competition-card .other-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.competition-card .competition-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex: 1;
}

.competition-card .competition-meta {
    margin-bottom: 1rem;
}

.competition-card .series-name {
    font-size: 0.85rem;
    color: #ff6600;
    font-weight: 500;
    background: #fff3e0;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

.competition-card .more-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.competition-card .more-link:hover {
    color: #c0392b;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .competition-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .competition-card .card-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .competition-card .competition-title {
        justify-content: center;
    }
}

/* ===== 资讯搜索区域样式 ===== */
.news-search-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#newsSearchForm {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center; /* 让搜索框和按钮整体居中 */
}

.search-input {
    flex: 0 1 400px; /* 不伸缩，基础宽度400px，让搜索框固定宽度 */
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap; /* 防止按钮文字换行 */
}

.search-btn:hover {
    background: #e55a00;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

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

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item strong {
    color: #007bff;
}

/* PC端搜索框样式优化 */
@media (min-width: 769px) {
    .news-search-section {
        margin-bottom: 30px;
        padding: 20px;
    }
    
    .search-container {
        max-width: 100%; /* PC端搜索框占满可用宽度 */
        margin: 0; /* 移除自动居中 */
    }
}

/* 搜索框响应式设计 */
@media (max-width: 768px) {
    .news-search-section {
        padding: 10px 12px;
        margin-bottom: 12px;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    #newsSearchForm {
        flex-direction: row;
        gap: 6px;
        margin-bottom: 6px;
        justify-content: center; /* 移动端也居中 */
    }
    
    .search-input {
        flex: 0 1 280px; /* 移动端较小宽度 */
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 18px;
        border: 1px solid #ddd;
    }
    
    .search-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
        margin-top: 0;
        white-space: nowrap;
        min-width: 60px;
    }
    
    .search-suggestions {
        max-height: 120px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    
    .suggestion-item {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .news-search-section {
        padding: 8px 10px;
        margin-bottom: 10px;
    }
    
    #newsSearchForm {
        gap: 5px;
        justify-content: center; /* 超小屏幕也居中 */
    }
    
    .search-input {
        flex: 0 1 200px; /* 超小屏幕更小宽度 */
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 15px;
    }
    
    .search-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
        min-width: 50px;
    }
}

/* PC端主内容区宽度优化 */
@media (min-width: 769px) {
    .main-content {
        flex: 2; /* 主内容占2份 */
    }
    
    .sidebar {
        flex: 1; /* 侧边栏占1份 */
        min-width: 250px;
        max-width: 350px;
    }
}

/* 移动端布局优化 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* 垂直布局 */
        gap: 1rem; /* 减小间距 */
    }
    
    .main-content {
        flex: none; /* 重置flex属性 */
        width: 100%; /* 占满宽度 */
        max-width: 100%; /* 确保不超出 */
    }
    
    .sidebar {
        flex: none; /* 重置flex属性 */
        width: 100%; /* 占满宽度 */
        min-width: auto; /* 移除最小宽度限制 */
        max-width: 100%; /* 确保不超出 */
        order: 2; /* 侧边栏放在主内容后面 */
    }
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #ff6600;
    color: #ff6600;
}

.pagination a.active {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #fff;
    cursor: default;
}

.pagination a.disabled {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.pagination .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #999;
    font-size: 14px;
}

.pagination .page-prev,
.pagination .page-next {
    min-width: 80px;
    font-weight: 600;
}

/* 移动端分页优化 */
@media (max-width: 768px) {
    .pagination {
        margin: 1.5rem 0;
        gap: 0.3rem;
    }
    
    .pagination a {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination .page-prev,
    .pagination .page-next {
        min-width: 70px;
        font-size: 13px;
    }
    
    .pagination .page-ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 超小屏幕分页优化 */
@media (max-width: 480px) {
    .pagination {
        margin: 1rem 0;
        gap: 0.2rem;
    }
    
    .pagination a {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pagination .page-prev,
    .pagination .page-next {
        min-width: 60px;
        font-size: 12px;
    }
    
    .pagination .page-ellipsis {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
