/* ============================================
   style.css — 必一运动(中国)官方网站-BSports
   完整样式文件（内联CSS）
   ============================================ */

/* ===== 全局重置与变量 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f6fb;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #4a4a6a;
    --primary: #1a1a2e;
    --accent: #e94560;
    --accent-hover: #d63850;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.dark {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --text: #eaeaea;
    --text-secondary: #a0a0b8;
    --glass: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

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

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

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: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: var(--gradient);
    -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;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--accent);
    color: #fff;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

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

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

/* ===== 毛玻璃卡片 ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== 网格 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

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

/* ===== 工具类 ===== */
.text-center {
    text-align: center;
}

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

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

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

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 16px;
    }
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== 暗色模式切换按钮 ===== */
.dark-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    color: var(--text);
}

.dark-toggle:hover {
    transform: scale(1.1);
}

/* ===== 返回顶部按钮 ===== */
.back-top {
    position: fixed;
    bottom: 84px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    transform: translateY(-4px);
}

/* ===== Banner区域 ===== */
.banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    overflow: hidden;
    padding: 120px 0 80px;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 24px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-actions .btn {
    font-size: 1.1rem;
    padding: 14px 36px;
}

.banner-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}

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

.banner-stat .number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #e94560;
    display: block;
}

.banner-stat .label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 4px;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(1deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }
    .banner-content p {
        font-size: 1rem;
    }
    .banner-stats {
        gap: 24px;
    }
    .banner-stat .number {
        font-size: 2rem;
    }
}

/* ===== 头部导航 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s;
}

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

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

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

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

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

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    box-shadow: var(--shadow);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu {
        display: block;
    }
}

/* ===== 页脚 ===== */
footer {
    background: var(--gradient);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

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

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

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

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: #fff;
}

.qr-grid {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

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

.qr-item svg {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.qr-item span {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 卡片图标 ===== */
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
}

/* ===== 文章卡片 ===== */
.article-card .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.article-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

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

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s;
    opacity: 0;
    color: var(--text-secondary);
    padding-top: 0;
}

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

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

.howto-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

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

/* ===== 评价卡片 ===== */
.testimonial-card {
    text-align: center;
    padding: 32px 24px;
}

.testimonial-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: rgba(233, 69, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
}

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

.testimonial-card .name {
    font-weight: 700;
}

/* ===== 搜索模态框 ===== */
.search-modal {
    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;
    padding: 24px;
}

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

.search-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid rgba(128, 128, 128, 0.2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-modal input:focus {
    border-color: var(--accent);
}

.search-results {
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.search-result-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.search-result-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

/* ===== 合作伙伴Logo ===== */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    width: 120px;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.partner-logo:hover {
    opacity: 1;
}

/* ===== 订阅表单 ===== */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid rgba(128, 128, 128, 0.2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

/* ===== Banner轮播 ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.carousel-slide {
    display: none;
    padding: 48px 32px;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.carousel-slide h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.carousel-slide p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

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

.carousel-dot.active {
    background: var(--accent);
}

/* ===== 统计项 ===== */
.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

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

/* ===== 团队卡片 ===== */
.team-card {
    text-align: center;
    padding: 24px;
}

.team-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: rgba(233, 69, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
}

.team-card h4 {
    font-weight: 700;
}

.team-card .role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 3px solid var(--accent);
}

.timeline-item {
    padding: 16px 0 16px 24px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}

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

.timeline-item p {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 页面内容通用样式 ===== */
.page-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h3 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

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

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 8px;
}

.page-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: rgba(233, 69, 96, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.page-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
    box-shadow: var(--shadow);
}

.page-content .highlight {
    background: rgba(233, 69, 96, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}