/* ==========================================================================
   世界杯赛事时间轴资讯站 - 烈焰竞技（The Flame of Arena）通用样式
   ========================================================================== */

:root {
    --bg-dark: #0a0b0d;          /* 深邃曜石黑 */
    --bg-card: #121418;          /* 卡片深灰 */
    --primary: #ff3b30;          /* 烈焰红 */
    --primary-hover: #e03027;    
    --secondary: #ffcc00;        /* 荣耀金 */
    --live-green: #34c759;       /* 荧光绿 */
    --text-main: #f5f5f7;        /* 主文字象牙白 */
    --text-muted: #8e8e93;       /* 暗灰文字 */
    --border-color: #242830;     /* 边框颜色 */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 跑马灯滚动比分 */
.marquee-container {
    background: #000;
    border-bottom: 1px solid var(--primary);
    color: var(--secondary);
    font-size: 14px;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    z-index: 100;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin-right: 50px;
    font-weight: bold;
}

.marquee-item span {
    color: var(--text-main);
    margin: 0 8px;
}

.marquee-item .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--live-green);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 头部导航 */
header {
    background-color: rgba(10, 11, 13, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--text-muted);
}

nav a:hover, nav a.active {
    color: var(--text-main);
    background-color: rgba(255, 59, 48, 0.15);
    border-bottom: 2px solid var(--primary);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e03027);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #e0b200);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.5);
}

/* 倾斜卡片效果 */
.skew-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skew-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.skew-card:hover::before {
    left: 150%;
}

.skew-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.15);
}

/* 呼吸灯 */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(52, 199, 89, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

/* 倒计时 */
.countdown-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.countdown-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.countdown-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

.countdown-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 页脚样式 */
footer {
    background-color: #050608;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 15px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-item {
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
}

.footer-logo-item.age-limit {
    border-color: #ff3b30;
    color: #ff3b30;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
