/* style.css - 爱博体育官方网站 */
:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #0f3460;
    --bg-light: #f5f7fa;
    --bg-dark: #0d0d1a;
    --text-light: #ffffff;
    --text-dark: #2d2d44;
    --glass-bg: rgba(255,255,255,0.15);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}
body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-light);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* Header */
header {
    background: var(--primary);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(26,26,46,0.9);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}
nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border var(--transition);
}
nav a:hover, nav a.active { border-bottom-color: var(--secondary); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }
.dark-toggle { background: none; border: 2px solid var(--text-light); color: var(--text-light); padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; }
/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.2), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-20px); } }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; background: linear-gradient(135deg, #fff, var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }
.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(233,69,96,0.6); }
/* Carousel */
.carousel { position: relative; overflow: hidden; margin: 40px 0; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; padding: 20px; }
.carousel-slide img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
/* Sections */
section { padding: 70px 0; }
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.card svg { margin-bottom: 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { opacity: 0.8; }
/* FAQ */
.faq-item { margin-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 15px; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: inherit;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-left: 10px; }
.faq-item.active .faq-answer { max-height: 200px; }
/* Footer */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-grid h4 { margin-bottom: 15px; color: var(--secondary); }
.footer-grid a { display: block; margin-bottom: 8px; opacity: 0.8; transition: opacity var(--transition); }
.footer-grid a:hover { opacity: 1; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; gap: 10px; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary); padding: 20px; }
    nav ul.open { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .carousel-slide img { height: 250px; }
}
/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.counter { font-size: 2.5rem; font-weight: 700; color: var(--secondary); }