/* style.css - im电竞电子竞技平台 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f7fa;
    --text-color: #1a1a2e;
    --card-bg: rgba(255,255,255,0.7);
    --card-border: rgba(255,255,255,0.3);
    --breadcrumb-bg: rgba(255,255,255,0.8);
    --breadcrumb-text: #333;
    --card-text: #555;
    --meta-text: #888;
    --author-text: #666;
    --footer-bg: linear-gradient(135deg, #232526 0%, #414345 100%);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --transition-speed: 0.3s;
}

body.dark {
    --bg-color: #0f0f23;
    --text-color: #e0e0e0;
    --card-bg: rgba(30,30,60,0.7);
    --card-border: rgba(255,255,255,0.1);
    --breadcrumb-bg: rgba(30,30,60,0.8);
    --breadcrumb-text: #ccc;
    --card-text: #bbb;
    --meta-text: #999;
    --author-text: #aaa;
    --footer-bg: #0a0a1a;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background var(--transition-speed);
}

nav ul li a:hover {
    background: rgba(255,255,255,0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    padding: 8px;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.dark-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.3rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-banner .btn {
    background: #ff6b6b;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform var(--transition-speed);
    display: inline-block;
}

.hero-banner .btn:hover {
    transform: scale(1.05);
}

.hero-banner img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 20px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--breadcrumb-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

/* Sections */
section {
    margin: 60px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    background: #e0e0e0;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--card-text);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.case-item:hover {
    transform: scale(1.02);
}

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    background: #e0e0e0;
}

.news-list article {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    transition: background var(--transition-speed);
}

.news-list h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.news-list .meta {
    font-size: 0.9rem;
    color: var(--meta-text);
    margin-bottom: 15px;
}

.news-list p {
    line-height: 1.8;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recommend-item {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #e0e0e0;
}

/* FAQ */
.faq-list details {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.faq-list summary {
    font-weight: 700;
    font-size: 1.2rem;
    outline: none;
}

.faq-list p {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #667eea;
}

/* HowTo */
.howto-steps {
    counter-reset: step;
}

.howto-steps .step {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.howto-steps .step::before {
    counter-increment: step;
    content: counter(step);
    background: #667eea;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.author-box .info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.author-box .info p {
    color: var(--author-text);
}

/* Contact */
.contact-info {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.qr-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.qr-item {
    text-align: center;
}

.qr-item svg {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-item p {
    margin-top: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-grid h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

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

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-grid ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #5a6fd6;
}

/* Animations */
.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 20px;
        margin-top: 15px;
    }

    nav ul.active {
        display: flex;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .hero-banner p {
        font-size: 1.1rem;
    }

    .search-box input {
        width: 100px;
    }

    section h2 {
        font-size: 1.8rem;
    }

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

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

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .qr-grid {
        gap: 20px;
    }

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

@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .hero-banner {
        padding: 50px 15px;
    }

    .hero-banner h1 {
        font-size: 1.6rem;
    }

    .hero-banner .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .news-list article {
        padding: 15px;
    }

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

    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}