/* Sports Modern - 主要样式 */

/* 全局样式重置 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4f46e5;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

/* 快速导航 */
.quick-nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.quick-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quick-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.quick-nav-item a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #f8fafc;
    color: #64748b;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-nav-item a:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: scale(1.05);
}

/* 页面标题区域 */
.page-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* 主要内容区域 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 比赛列表卡片 */
.matches-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

/* 日期分组 */
.match-date-group {
    margin-bottom: 2rem;
}

.date-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.date-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 比赛项目卡片 */
.match-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #4f46e5;
}

.match-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.match-time-league {
    text-align: center;
    min-width: 100px;
}

.match-time {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4f46e5;
    display: block;
}

.match-league {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.match-league a {
    color: #6b7280;
    text-decoration: none;
}

.match-league a:hover {
    color: #4f46e5;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.team-name {
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.team-name:hover {
    color: #4f46e5;
}

.match-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc2626;
    text-align: center;
    min-width: 80px;
}

.match-action {
    text-align: center;
    min-width: 120px;
}

.action-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-upcoming {
    background: #f59e0b;
    color: white;
}

.btn-live {
    background: #dc2626;
    color: white;
    animation: pulse 2s infinite;
}

.btn-finished {
    background: #6b7280;
    color: white;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 热门联赛网格 */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
}

.league-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.league-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: inherit;
}

/* 比赛详情页样式 */
.match-header-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.match-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
}

.match-teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.team-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.team-logo-large:hover {
    transform: scale(1.1);
}

.team-name-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.league-info {
    background: #f3f4f6;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.match-score-large {
    font-size: 3rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-status-badge {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
}

.match-time-info {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* 直播信号源 */
.live-signals-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.signals-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.signals-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin-left: 0.5rem;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.signal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.signal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.signal-btn:hover::before {
    left: 100%;
}

.signal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.signal-waiting {
    background: #9ca3af !important;
    cursor: not-allowed;
}

.signal-waiting:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 页脚 */
.footer {
    background: rgba(31, 41, 55, 0.95);
    color: #d1d5db;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #9ca3af;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #6b7280;
}

.footer-copyright a {
    color: #4f46e5;
    text-decoration: none;
    margin-left: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .match-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }

    .team.away {
        flex-direction: row;
    }

    .leagues-grid {
        grid-template-columns: 1fr;
    }

    .quick-nav-list {
        justify-content: center;
    }

    .page-title {
        font-size: 2rem;
    }

    .match-teams-display {
        flex-direction: column;
        gap: 2rem;
    }

    .match-center {
        padding: 0;
        order: -1;
    }

    .team-logo-large {
        width: 60px;
        height: 60px;
    }

    .match-score-large {
        font-size: 2.5rem;
    }

    .signals-grid {
        grid-template-columns: 1fr;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-desc {
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top i {
    font-style: normal;
    line-height: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}