:root {
    --bg-primary: #0f1922;
    /* 主背景色 */
    --bg-secondary: #1f2a34;
    /* 卡片/次级背景 */
    --accent: #ff4654;
    /* 强调色（红） */
    --accent2: #6868e1;
    /* 强调色（红） */
    --text-primary: #f9f9f9;
    /* 主文字 */
    --text-secondary: #a0a8b0;
    /* 辅助文字 */
    --border-color: #2e3a44;
    /* 边框颜色 */
}

.background {
    position: absolute;
    z-index: -99;
    opacity: 0.1;
    filter: blur(15px);
    -webkit-filter: blur(15px);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--accent);
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    align-items: center;
    display: flex;
    gap: 20px;
}

.logo img {
    width: 50px;
    height: 50px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent);
    color: white;
}

/* 主要内容区 */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

/* 英雄区 */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* 通用标题 */
h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* 比赛卡片网格 */
.matches-grid,
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 比赛卡片 */
.match-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.2);
    border-color: var(--accent);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.match-teams .vs {
    color: white;
    font-size: 1rem;
    font-weight: normal;
}

.match-score {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.match-time {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.match-detail {
    background-color: var(--bg-secondary);
    height: 70vh;
    width: 50vw;
    position: absolute;
    top: 15vh;
    right: 25vw;
    border: var(--border-color) 5px solid;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    display: none;
}

.match-detail-score {
    width: 100%;
    text-align: center;
    font-size: 50px;
}

.player-list {
    margin: 0 50px 20px 50px;
    display: table;
    border-collapse: collapse;
    border-color: var(--border-color);
    border: 5px solid var(--border-color);
}

.player-list tr {
    border: var(--border-color) 5px solid;
    font-size: 20px;
    padding: 0 20px 0 20px;
}

td {
    border: 5px solid var(--border-color);
    text-align: center;
}

td.player-name {
    text-align: left;
    padding: 0 10px 0 10px;
    width: 50%;
}

.match-detail button {
    position: absolute;
    right: 20px;

    background-color: var(--bg-primary);
    border-radius: 50%;
    border: 0;
    height: 20px;
    width: 20px;
    color: white;
    transition: .2s ease-in-out;
    font-weight: bold;
}

.match-detail button:hover {
    background-color: var(--accent);
}

#team-1 {
    color: var(--accent);
}

#team-2 {
    color: var(--accent2);
}

.match-detail-team-1 {
    background-color: var(--accent);
    font-weight: bold;
    width: 40%;
    font-size: 30px;
    padding-left: 10px;
    clip-path: polygon(0 0, calc(100% - 35px) 0, 100% 100%, 0 100%);
}

.match-detail-team-2 {
    background-color: var(--accent2);
    font-weight: bold;
    width: 40%;
    font-size: 30px;
    padding-left: 10px;
    clip-path: polygon(0 0, calc(100% - 35px) 0, 100% 100%, 0 100%);
}

.cover {
    height: 100vh;
    width: 100vw;
    position: absolute;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    display: none;
}

/* 队伍卡片 */
.team-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.team-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--accent);
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-rating {
    color: var(--accent);
    font-weight: bold;
}

/* 福瑞杯头部 */
.tournament-header {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.tournament-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tournament-header h1 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.tournament-actions button {
    background-color: var(--bg-primary);
    border-radius: 50%;
    border: 0;
    height: 50px;
    width: 50px;
    color: white;
    transition: .2s ease-in-out;
    font-weight: bold;
}

.tournament-actions button:hover {
    background-color: var(--accent);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}