/* style.css - 必一体育官网完整样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6fb;
    color: #1e1e2f;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

.dark-mode {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark-mode .glass {
    background: rgba(20, 20, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.dark-mode .card {
    background: #1a1a30;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.banner-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dark-mode .banner-gradient {
    background: linear-gradient(135deg, #0b0b1a, #10102a);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 0;
}

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

.banner-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.banner-shapes span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.15);
    animation: float 8s infinite;
}

.banner-shapes span:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -60px;
    right: 10%;
}

.banner-shapes span:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20px;
    left: 5%;
}

.banner-shapes span:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 30%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.dark-mode .navbar.scrolled {
    background: rgba(15, 15, 26, 0.9);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #1e1e2f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dark-mode .nav-links a {
    color: #e0e0e0;
}

.nav-links a:hover {
    color: #ff6b35;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #1e1e2f;
    border-radius: 4px;
    transition: 0.3s;
}

.dark-mode .mobile-toggle span {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .dark-mode .nav-links {
        background: rgba(20, 20, 40, 0.95);
    }

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

    .mobile-toggle {
        display: flex;
    }
}

.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #ff6b35;
}

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

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    display: none;
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top.show {
    display: block;
}

.dark-mode-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    color: #1e1e2f;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-mode .dark-mode-toggle {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;
}

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

.carousel-btn {
    background: rgba(255, 107, 53, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 8px;
    color: #555;
}

.dark-mode .faq-answer {
    color: #bbb;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

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

.search-box {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 40px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
}

.search-box button {
    padding: 12px 24px;
    border-radius: 40px;
    background: #ff6b35;
    color: #fff;
    border: none;
    cursor: pointer;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 40px;
    display: inline-flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb span {
    color: #888;
}

.dark-mode .breadcrumb {
    background: rgba(255, 255, 255, 0.05);
}

.svg-placeholder {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    background: #f0f0f0;
    display: block;
    margin-bottom: 12px;
}

.dark-mode .svg-placeholder {
    background: #2a2a40;
}

.article-card {
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dark-mode .article-card {
    background: #1a1a30;
}

.article-card h3 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
}

.article-card .date {
    font-size: 0.85rem;
    color: #888;
}

.article-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    color: #fff;
    padding: 60px 20px;
    border-radius: 40px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.number-counter {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ff6b35;
    display: inline-block;
}

.dark-mode .number-counter {
    color: #ff8c5a;
}

.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-6px);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
}

.team-grid .card {
    text-align: center;
    padding: 30px 16px;
}

.team-grid .card p {
    font-size: 0.9rem;
    color: #666;
}

.dark-mode .team-grid .card p {
    color: #aaa;
}

.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.partner-links a {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.partner-links a:hover {
    background: #ff6b35;
    color: #fff;
}

.dark-mode .partner-links a {
    color: #aaa;
}

.qr-svg {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    margin: 8px auto;
}