/* style.css - MK体育官方网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

/* 头部 */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #e63946;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

/* Banner 轮播 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    opacity: 0;
    transition: opacity 0.8s;
}

.banner-slide.active {
    opacity: 1;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    color: #1a1a2e;
    transition: color 0.3s;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e63946;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.card p {
    color: #666;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #f4a261);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

/* 合作伙伴 */
.partner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-item {
    width: 150px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: background 0.3s;
}

/* 评价卡片 */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: background 0.3s;
}

.testimonial-card .stars {
    color: #f4a261;
    font-size: 20px;
    margin-bottom: 10px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    cursor: pointer;
}

.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.3s;
    color: #666;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-top: 10px;
}

/* 联系我们 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-grid a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-grid a:hover {
    color: #e63946;
}

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

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e63946;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

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

/* 暗黑模式 */
.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

.dark-mode .card {
    background: #1e1e1e;
    color: #ddd;
    border-color: #333;
}

.dark-mode .testimonial-card {
    background: #1e1e1e;
}

.dark-mode .contact-item {
    background: #1e1e1e;
}

.dark-mode .partner-item {
    background: #1e1e1e;
}

.dark-mode footer {
    background: #0a0a0a;
}

.dark-mode .section-title {
    color: #fff;
}

.dark-mode .card h3 {
    color: #f0f0f0;
}

.dark-mode .card p,
.dark-mode .testimonial-card p,
.dark-mode .contact-item p,
.dark-mode .faq-answer {
    color: #bbb;
}

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

.dark-mode .faq-question {
    color: #ddd;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #0a0a1a, #121212);
}

.dark-mode header {
    background: linear-gradient(135deg, #0a0a1a, #121212);
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        z-index: 999;
    }
    nav ul.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .banner-slider {
        height: 300px;
    }
    .section-title {
        font-size: 28px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-item {
        width: 120px;
        height: 60px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 14px;
    }
    .banner-slider {
        height: 250px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .partner-list {
        gap: 15px;
    }
    .partner-item {
        width: 100px;
        height: 50px;
        font-size: 12px;
    }
}