/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary: #7B2CBF;
    --secondary: #45B7D1;
    --accent: #F72585;
    --dark: #0F0F1B;
    --light: #E0E0E0;
    --card-bg: #1A1A2E;
}

html {
    font-size: 16px;
}
@media (max-width: 768px) {
    html { font-size: 14px; }
}
@media (max-width: 480px) {
    html { font-size: 13px; }
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 27, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(123, 44, 191, 0.3);
}

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo i {
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.6);
}

.hero {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(15, 15, 27, 0.8), rgba(15, 15, 27, 0.9)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin-top: 70px;
}

.hero-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #bbb;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
}

.section {
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title p {
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

.games-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.games-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.2rem;
    width: max-content;
}

.game-card {
    flex: 0 0 clamp(240px, 40vw, 300px);
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.game-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 1.2rem;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: white;
}

.game-info p {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(123, 44, 191, 0.8);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--accent);
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.player-card {
    background: var(--card-bg);
    border-radius: 15px;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.1), transparent);
    transition: 0.5s;
}

.player-card:hover::before {
    left: 100%;
}

.player-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
    object-fit: contain;
    object-position: center;
    padding: 10px;
    background: var(--card-bg);
}

.player-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
    display: none;
}

.player-role {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 1rem;
}

.tournament-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 15px;
}
.tournament-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--card-bg);
    table-layout: fixed;
}

.tournament-table th, .tournament-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    word-break: break-word;
    white-space: normal;
    vertical-align: middle;
}

.tournament-table th {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    font-size:1rem;
}

.tournament-table tr:hover {
    background: rgba(123, 44, 191, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}
@media (max-width:768px){
    .news-grid{
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.2rem;
}

.news-date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
}

/* 新增：查看全部按钮样式 */
.news-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.news-more:hover {
    color: var(--accent);
    padding-left: 5px;
}

footer {
    background: #080810;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(123, 44, 191, 0.3);
    width: 100%;
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.footer-col p, .footer-col a {
    color: #888;
    margin-bottom: 0.7rem;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(123, 44, 191, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

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

.copyright {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
}