/* style.css - 沙巴体育官网 SABA SPORTS */
/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    background: #0a0e27;
    color: #e0e6f0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* 按钮基础 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.6);
    background: linear-gradient(135deg, #1e7ff5, #0f54b3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #1a73e8;
    transform: translateY(-3px);
}

/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    width: 180px;
    height: auto;
}

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

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

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: #fff;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle .bar {
    width: 28px;
    height: 2.5px;
    background: #e0e6f0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero 区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(160deg, #0a0e27 0%, #111b3d 40%, #0d1f4a 70%, #0a0e27 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

#hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0b0d0;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
    z-index: 2;
    animation: fadeInRight 0.8s ease-out;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 通用 section 标题 */
section:not(.hero-section) h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffffff, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

section:not(.hero-section) h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1a73e8;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background: #0d1128;
}

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

.about-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 115, 232, 0.3);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.15);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.about-card p {
    color: #b0b8d0;
    font-size: 0.95rem;
}

/* 产品服务 */
.products-section {
    padding: 100px 0;
    background: #0a0e27;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 115, 232, 0.4);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.2);
    background: rgba(26, 115, 232, 0.05);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #fff;
}

.product-card p {
    color: #b0b8d0;
    font-size: 0.9rem;
}

/* 平台优势 */
.features-section {
    padding: 100px 0;
    background: #0d1128;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.05s; }
.feature-item:nth-child(2) { animation-delay: 0.1s; }
.feature-item:nth-child(3) { animation-delay: 0.15s; }
.feature-item:nth-child(4) { animation-delay: 0.2s; }
.feature-item:nth-child(5) { animation-delay: 0.25s; }
.feature-item:nth-child(6) { animation-delay: 0.3s; }

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 115, 232, 0.4);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.2);
    background: rgba(26, 115, 232, 0.05);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #fff;
}

.feature-item p {
    color: #b0b8d0;
    font-size: 0.9rem;
}

/* 用户评价 */
.testimonials-section {
    padding: 100px 0;
    background: #0a0e27;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 115, 232, 0.3);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.15);
}

.testimonial-card p {
    font-size: 1rem;
    color: #d0d8e8;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-card footer {
    color: #8898b8;
    font-weight: 500;
    font-size: 0.9rem;
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    background: #0d1128;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(26, 115, 232, 0.3);
}

.faq-item summary {
    padding: 20px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #1a73e8;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
    padding: 0 28px 24px;
    color: #b0b8d0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background: #0a0e27;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.contact-info p {
    margin-bottom: 12px;
    color: #b0b8d0;
    font-size: 0.95rem;
}

.contact-info strong {
    color: #d0d8e8;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #b0b8d0;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e0e6f0;
    font-size: 0.95rem;
    transition: border 0.3s, background 0.3s;
    margin-bottom: 20px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #5a6a8a;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* 页脚 */
.site-footer {
    background: #080b1a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-about p {
    color: #8898b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-legal a {
    color: #8898b8;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #1a73e8;
}

.footer-contact p {
    color: #8898b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    text-align: center;
    color: #5a6a8a;
    font-size: 0.85rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-left: 0;
        max-width: 100%;
    }

    #hero-title {
        font-size: 2.6rem;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        gap: 0;
    }

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

    .nav-list a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

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

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .about-grid,
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-info,
    .contact-form {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul,
    .footer-legal ul {
        align-items: center;
    }

    section:not(.hero-section) h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    #hero-title {
        font-size: 1.6rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .about-card,
    .product-card,
    .feature-item,
    .testimonial-card {
        padding: 24px 20px;
    }

    .faq-item summary {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 20px 20px;
    }
}