/* style.css - 中国区|mksport体育|股份有限公司 - MK体育在线登录入口 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

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

a {
    color: #0066cc;
    text-decoration: none;
}

.dark a {
    color: #66b3ff;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark .card {
    background: rgba(30, 30, 60, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 10px auto 0;
    border-radius: 2px;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

img.lazy.loaded {
    opacity: 1;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.dark header {
    background: rgba(15, 15, 26, 0.9);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-links a:hover {
    border-bottom-color: #667eea;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1a1a2e;
}

.dark .menu-toggle {
    color: #e0e0e0;
}

.hero {
    background: linear-gradient(135deg, #1a1a3e, #2d2d6b);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.breadcrumb {
    background: transparent;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.dark .breadcrumb {
    color: #aaa;
}

.breadcrumb a {
    color: #0066cc;
}

.dark .breadcrumb a {
    color: #66b3ff;
}

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

.footer a {
    color: #aaa;
}

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.dark .faq-item {
    border-bottom-color: #333;
}

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

.faq-answer {
    padding-top: 10px;
    display: none;
}

.howto-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.howto-step .num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    border: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.dark-mode-toggle {
    background: none;
    border: 2px solid #667eea;
    border-radius: 30px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #667eea;
    transition: background 0.3s, color 0.3s;
}

.dark-mode-toggle:hover {
    background: #667eea;
    color: #fff;
}

.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1rem;
}

.dark .search-box input {
    background: #2a2a4a;
    border-color: #444;
    color: #e0e0e0;
}

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

.carousel {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

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

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.dark .carousel-slide {
    background: #2a2a4a;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    font-size: 1.2rem;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.scroll-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qrcode {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    font-size: 0.8rem;
    color: #333;
}

.dark .qrcode {
    background: #333;
    color: #ccc;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .grid {
        grid-template-columns: 1fr !important;
    }
}