/* style.css - 乐鱼体育 LEYU SPORTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg: #ffffff;
    --text: #1a1a2e;
    --card: #f8f9fa;
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --gradient: linear-gradient(135deg, #ff6b35, #f7931e, #ffb347);
    --glass: rgba(255,255,255,0.75);
    --border: #e9ecef;
    --accent: #ff6b35;
    --hover: #ff8c5a;
    --footer-bg: #1a1a2e;
    --footer-text: #f8f9fa;
    --nav-bg: rgba(255,255,255,0.95);
    --code-bg: #f1f3f5;
}
[data-theme="dark"] {
    --bg: #0f0f23;
    --text: #e8e8f0;
    --card: #1a1a2e;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --glass: rgba(15,15,35,0.85);
    --border: #2a2a4e;
    --accent: #ff8c5a;
    --hover: #ff6b35;
    --footer-bg: #0a0a1a;
    --footer-text: #c0c0d0;
    --nav-bg: rgba(15,15,35,0.95);
    --code-bg: #1a1a2e;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--hover);
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.logo a span {
    -webkit-text-fill-color: transparent;
}
nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
nav a {
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}
nav a:hover, nav a.active {
    background: var(--gradient);
    color: #fff;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}
.search-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
    margin-left: 8px;
}
.dark-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
    margin-left: 4px;
}
/* Mobile menu */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    nav.open {
        transform: translateY(0);
    }
    nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}
/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #888;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.breadcrumb a {
    color: var(--accent);
}
.breadcrumb span {
    color: var(--text);
    opacity: 0.7;
}
/* Sections general */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.section-title p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}
/* Hero Banner */
.hero {
    background: var(--gradient);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.hero-text {
    flex: 1 1 500px;
    color: #fff;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-text p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-buttons a {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}
.btn-primary {
    background: #fff;
    color: #ff6b35;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline:hover {
    background: #fff;
    color: #ff6b35;
    transform: translateY(-3px);
}
.hero-image {
    flex: 1 1 300px;
    text-align: center;
}
.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    border-radius: 24px;
}
/* Cards grid */
.grid-3, .grid-4, .grid-2 {
    display: grid;
    gap: 30px;
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.card p {
    color: #888;
    font-size: 0.95rem;
}
/* Image placeholder SVG */
.img-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--code-bg);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* FAQ */
.faq-item {
    background: var(--card);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}
.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}
.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    transition: transform 0.3s;
    color: var(--accent);
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 24px;
    color: #888;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}
/* HowTo */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.step-number {
    background: var(--gradient);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
/* Testimonial */
.testimonial-card {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
}
/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
footer h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #fff;
}
footer a, footer p {
    color: #b0b0c8;
    font-size: 0.9rem;
    line-height: 2;
}
footer a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #2a2a4e;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
}
.footer-bottom a {
    margin: 0 8px;
}
/* Back to top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    transform: scale(1.1);
}
/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-overlay.active {
    display: flex;
}
.search-box {
    background: var(--bg);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}
.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1.1rem;
    background: var(--card);
    color: var(--text);
    outline: none;
}
.search-box input:focus {
    border-color: var(--accent);
}
.search-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}
/* Carousel */
.carousel {
    overflow: hidden;
    position: relative;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
    padding: 0 10px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    backdrop-filter: blur(8px);
    z-index: 5;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    section { padding: 50px 0; }
    .section-title h2 { font-size: 1.6rem; }
}
/* Number animation */
.number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Partner / links */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}
.friend-links a {
    padding: 6px 16px;
    background: var(--card);
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}
/* Dark mode icon */
.dark-toggle .icon {
    transition: 0.3s;
}
[data-theme="dark"] .dark-toggle .icon::before {
    content: '☀️';
}
.dark-toggle .icon::before {
    content: '🌙';
}
/* misc */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.author-box, .team-box {
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    margin: 20px 0;
}
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}
.news-list article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.news-list article:last-child {
    border-bottom: none;
}
.news-list h3 {
    margin-bottom: 6px;
}
.news-list .meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}
.read-more {
    font-weight: 600;
    color: var(--accent);
}