/* 欧宝体育 OUBAO SPORTS - 完整样式表 */
:root {
    --primary: #0047AB;
    --primary-light: #0066CC;
    --primary-dark: #003380;
    --accent: #00A3FF;
    --accent-light: #33B5FF;
    --gradient-main: linear-gradient(135deg, #0047AB 0%, #00A3FF 100%);
    --gradient-hero: linear-gradient(135deg, #001a33 0%, #0047AB 50%, #00A3FF 100%);
    --bg-dark: #0a0f1a;
    --bg-card: rgba(255, 255, 255, 0.08);
    --text-primary: #e8edf5;
    --text-secondary: #9aa8c7;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-dark: #f0f4fa;
    --bg-card: rgba(0, 0, 0, 0.04);
    --text-primary: #1a2332;
    --text-secondary: #4a5a7a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* {
    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-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

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

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

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 48px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

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

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

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

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 48px rgba(0, 167, 255, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.4);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(0, 163, 255, 0.15);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

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

.mt-16 {
    margin-top: 16px;
}

.mt-32 {
    margin-top: 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(240, 244, 250, 0.85);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle,
.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.theme-toggle:hover,
.menu-toggle:hover,
.search-toggle:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .mobile-menu {
    background: rgba(240, 244, 250, 0.98);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.open {
    display: flex;
}

.search-box {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    width: 90%;
    max-width: 500px;
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box button {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 163, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 30%, rgba(0, 71, 171, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-banner-carousel {
    margin-top: 48px;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent);
    width: 36px;
    border-radius: 6px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 71, 171, 0.7);
}

.carousel-arrow.prev {
    left: 16px;
}

.carousel-arrow.next {
    right: 16px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-image svg {
    width: 100%;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 8px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.timeline-year {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.timeline-text {
    color: var(--text-secondary);
}

/* Values */
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* Products */
.product-card {
    text-align: center;
}

.product-card svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

/* Solutions */
.solution-card {
    text-align: center;
}

/* Cases */
.case-card {
    padding: 24px;
}

.case-card svg {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* Clients */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    align-items: center;
}

.client-logos svg {
    width: 100px;
    height: 60px;
    opacity: 0.6;
    transition: var(--transition);
}

.client-logos svg:hover {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    text-align: center;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.testimonial-name {
    font-weight: 600;
}

/* News */
.news-card {
    padding: 24px;
}

.news-card .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
    user-select: none;
}

.faq-question .icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-secondary);
    padding-left: 4px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 16px;
}

/* HowTo */
.howto-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

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

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

.contact-item {
    text-align: center;
    padding: 24px;
}

.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.contact-item h4 {
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 48px 0 24px;
    border-top: 1px solid var(--glass-border);
}

[data-theme="light"] .footer {
    background: rgba(0, 0, 0, 0.03);
}

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

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    margin: 0 8px;
}

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

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 71, 171, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .section {
        padding: 48px 0;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 80vh;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .header-inner {
        padding: 10px 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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