/* ===== 满冠体育APP 样式表 ===== */
/* 主题色: #1a5c9e / #0b1a30 */
/* 风格: 现代科技+运动活力, 渐变Banner, 圆角卡片, 毛玻璃, 暗色模式, 响应式 */

/* ===== 全局重置 & 基础 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fc;
    color: #1a2a3a;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

body.dark {
    background: #0b1a30;
    color: #e0e8f0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===== 容器 & 布局 ===== */
.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.grid {
    display: grid;
    gap: 24px;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #1a2a3a;
}

body.dark .section-title {
    color: #e0e8f0;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 640px;
    margin: 0 auto 48px;
    color: #1a2a3a;
}

body.dark .section-subtitle {
    color: #b0c4d8;
    opacity: 0.8;
}

/* ===== 卡片 ===== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .card {
    background: rgba(20, 40, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

body.dark .card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #1a5c9e, #2a7bc8);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 92, 158, 0.3);
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(26, 92, 158, 0.4);
}

body.dark .btn {
    background: linear-gradient(135deg, #2a7bc8, #4a9ef0);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a5c9e;
    color: #1a5c9e;
    box-shadow: none;
}

body.dark .btn-outline {
    border-color: #7ab8f0;
    color: #7ab8f0;
}

.btn-outline:hover {
    background: #1a5c9e;
    color: #fff;
}

body.dark .btn-outline:hover {
    background: #7ab8f0;
    color: #0b1a30;
}

/* ===== 导航 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(244, 247, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease;
}

body.dark header {
    background: rgba(11, 26, 48, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5c9e;
}

body.dark .nav-logo {
    color: #7ab8f0;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
    color: #1a2a3a;
}

body.dark .nav-links a {
    color: #e0e8f0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a5c9e;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark .nav-links a::after {
    background: #7ab8f0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a5c9e;
}

body.dark .nav-links a:hover,
body.dark .nav-links a.active {
    color: #7ab8f0;
}

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

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

.dark-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.3s ease;
    line-height: 1;
}

.dark-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark .dark-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ===== Banner轮播 ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    margin-top: 80px;
    background: linear-gradient(135deg, #0b1a30, #1a3b5c);
    min-height: 480px;
    display: flex;
    align-items: center;
}

body.dark .banner-carousel {
    background: linear-gradient(135deg, #05101e, #0b1a30);
}

.banner-slide {
    display: none;
    width: 100%;
    padding: 60px 48px;
    animation: fadeIn 0.8s ease forwards;
}

.banner-slide.active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-text {
    flex: 1 1 400px;
    color: #fff;
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 520px;
}

.banner-visual {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

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

.banner-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

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

.banner-dot.active {
    background: #fff;
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== 数字动画 ===== */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a5c9e;
}

body.dark .stat-number {
    color: #7ab8f0;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    cursor: pointer;
}

body.dark .faq-item {
    border-color: rgba(255, 255, 255, 0.06);
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
    color: #555;
    line-height: 1.6;
}

body.dark .faq-answer {
    color: #b0c4d8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
    font-weight: 300;
}

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

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a5c9e;
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .back-to-top {
    background: #2a7bc8;
}

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

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 60px 0 0 60px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #1a5c9e;
}

body.dark .search-box input {
    background: #1a2a3a;
    border-color: #2a4a6a;
    color: #e0e8f0;
}

body.dark .search-box input:focus {
    border-color: #7ab8f0;
}

.search-box button {
    padding: 12px 24px;
    border-radius: 0 60px 60px 0;
    border: none;
    background: #1a5c9e;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #2a7bc8;
}

body.dark .search-box button {
    background: #2a7bc8;
}

body.dark .search-box button:hover {
    background: #4a9ef0;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

/* ===== Footer ===== */
footer {
    background: #0b1a30;
    color: #b0c4d8;
    padding: 48px 0 24px;
}

body.dark footer {
    background: #05101e;
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #7ab8f0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .banner-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(244, 247, 252, 0.98);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 24px;
        gap: 16px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    body.dark .nav-links {
        background: rgba(11, 26, 48, 0.98);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .banner-carousel {
        min-height: 400px;
    }

    .banner-slide {
        padding: 40px 32px;
    }

    .banner-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .banner-slide.active {
        flex-direction: column;
        text-align: center;
    }

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

    .banner-text p {
        margin: 0 auto 28px;
    }

    .banner-visual {
        margin-top: 24px;
    }

    .banner-visual svg {
        max-width: 280px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 48px 0;
    }

    .card {
        padding: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

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

@media (max-width: 600px) {
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .banner-carousel {
        border-radius: 24px;
        min-height: 360px;
        margin-top: 60px;
    }

    .banner-slide {
        padding: 32px 20px;
    }

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

    .banner-text p {
        font-size: 1rem;
    }

    .banner-visual svg {
        max-width: 220px;
    }

    .nav {
        padding: 10px 16px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .wrapper {
        padding: 0 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

@media (max-width: 400px) {
    .banner-text h1 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .card {
        padding: 16px;
    }
}

/* ===== 暗色模式额外调整 ===== */
body.dark .banner-carousel .btn {
    box-shadow: 0 4px 16px rgba(42, 123, 200, 0.3);
}

body.dark .banner-carousel .btn:hover {
    box-shadow: 0 8px 24px rgba(42, 123, 200, 0.5);
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(26, 92, 158, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 92, 158, 0.5);
}

body.dark ::-webkit-scrollbar-thumb {
    background: rgba(122, 184, 240, 0.3);
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 184, 240, 0.5);
}

/* ===== 选择高亮 ===== */
::selection {
    background: #1a5c9e;
    color: #fff;
}

body.dark ::selection {
    background: #7ab8f0;
    color: #0b1a30;
}