/* style.css - 必威体育官方网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text: #f0f0f0;
    --text-muted: #aaa;
    --radius: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --bg-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.dark-mode {
    --primary: #f0f0f0;
    --accent: #e94560;
    --glass-bg: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.15);
    --text: #1a1a2e;
    --text-muted: #555;
    --bg-gradient: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #d0d0d0 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.dark-mode header {
    background: rgba(255, 255, 255, 0.85);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.logo svg {
    width: 40px;
    height: 40px;
}

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

nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 4px;
    transition: 0.3s;
}

.dark-toggle {
    background: none;
    border: 2px solid var(--glass-border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.dark-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border-radius: 30px;
    padding: 4px 12px;
    border: 1px solid var(--glass-border);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text);
    padding: 6px;
    outline: none;
    width: 120px;
    font-size: 14px;
}

.search-box button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
}

/* Hero Banner */
.hero {
    margin-top: 80px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.banner-slider {
    position: relative;
    width: 100%;
}

.banner-slide {
    display: none;
    animation: fadeSlide 0.8s ease;
}

.banner-slide.active {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.banner-text {
    flex: 1;
    min-width: 280px;
}

.banner-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
}

.banner-visual {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.banner-visual svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.banner-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots span.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 18px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.card-icon {
    margin-bottom: 16px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--primary);
}

.timeline-item h4 {
    font-size: 20px;
}

.timeline-item span {
    color: var(--text-muted);
    font-size: 14px;
}

/* FAQ */
.faq-item {
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 17px;
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(233, 69, 96, 0.1);
}

.faq-answer {
    padding: 0 24px 20px;
    display: none;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--accent);
}

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

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

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

/* Contact / Footer */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-info div {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-grid h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

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

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

.footer-grid a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--glass-border);
    margin-top: 30px;
}

/* Back to top */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.back-top:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary);
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 16px;
    }

    nav ul.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .banner-text h1 {
        font-size: 32px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

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

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

    .logo {
        font-size: 18px;
    }

    .banner-text h1 {
        font-size: 26px;
    }
}

/* Animations */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb li+li::before {
    content: '›';
    margin-right: 8px;
    color: var(--text-muted);
}

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

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

/* Article cards */
.article-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.article-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-card .meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

/* Partners */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.partner-logos svg {
    width: 120px;
    height: 60px;
    opacity: 0.6;
    transition: 0.3s;
}

.partner-logos svg:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Map placeholder */
.map-placeholder {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--glass-border);
}