/* ============================================
   style.css - MK体育官网首页
   完整样式文件，包含所有UI与交互效果
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

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

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e0b014;
}

/* ---------- 选中样式 ---------- */
::selection {
    background: #f5c518;
    color: #0f0f1a;
}

/* ---------- 链接基础 ---------- */
a {
    color: inherit;
    text-decoration: none;
}

/* ---------- 图片响应 ---------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 按钮全局 ---------- */
button {
    cursor: pointer;
    font-family: inherit;
}

/* ---------- 头部导航 ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, border-color 0.3s;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5c518;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.03);
}

.logo span {
    color: #fff;
    transition: color 0.3s;
}

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

.nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    padding: 6px 0;
    position: relative;
}

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

.nav a:hover {
    color: #f5c518;
    transform: translateY(-1px);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f5c518;
}

/* 手机导航 */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 16px 20px;
        border-bottom: 1px solid #333;
        gap: 12px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        animation: slideDown 0.3s ease;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 8px 0;
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(245, 197, 24, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero h1 em {
    color: #f5c518;
    font-style: normal;
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0c0;
    max-width: 700px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* ---------- 按钮系统 ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #f5c518;
    color: #0f0f1a;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.btn-primary:hover {
    background: #e0b014;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.4);
}

.btn-outline {
    border: 2px solid #f5c518;
    color: #f5c518;
    background: transparent;
}

.btn-outline:hover {
    background: #f5c518;
    color: #0f0f1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.3);
}

/* ---------- 通用section ---------- */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
}

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

.section-subtitle {
    color: #888;
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* ---------- About 区域 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.about-text p {
    color: #bbb;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text strong {
    color: #f5c518;
}

/* ---------- 统计数字 ---------- */
.stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 197, 24, 0.3);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #f5c518;
    display: block;
    transition: color 0.3s;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ---------- 产品区域 ---------- */
.products {
    background: #14141f;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5c518, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.product-card:hover::before {
    transform: translateX(100%);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 197, 24, 0.2);
}

.product-card h3 {
    color: #f5c518;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.product-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- 服务区域 ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 197, 24, 0.2);
}

.service-item h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-item p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- 用户评价 ---------- */
.testimonials {
    background: #14141f;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 3rem;
    color: rgba(245, 197, 24, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 197, 24, 0.2);
}

.testimonial-card p {
    color: #bbb;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-card .author {
    color: #f5c518;
    font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(245, 197, 24, 0.2);
}

.faq-question {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 6px 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #f5c518;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: #f5c518;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s;
    color: #999;
    padding: 0;
    opacity: 0;
    line-height: 1.7;
}

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

/* ---------- HowTo 步骤 ---------- */
.howto-section {
    background: #14141f;
}

.howto-steps {
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.howto-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #f5c518;
    color: #0f0f1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.howto-step h3 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.howto-step p {
    color: #999;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---------- 资讯区域 ---------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 197, 24, 0.2);
}

.insight-card .date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.insight-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.insight-card p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.insight-card .read-more {
    color: #f5c518;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.insight-card .read-more:hover {
    gap: 8px;
}

/* ---------- 联系区域 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-info p {
    color: #bbb;
    margin-bottom: 10px;
    line-height: 1.6;
}

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

/* ---------- 页脚 ---------- */
.footer {
    background: #0a0a14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
}

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

.footer-col h4 {
    color: #f5c518;
    margin-bottom: 16px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #f5c518;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
    padding-left: 0;
}

.footer-col a:hover {
    color: #f5c518;
    transform: translateX(4px);
}

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

.footer-bottom a {
    color: #888;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5c518;
    color: #0f0f1a;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.5);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ---------- 浅色模式 ---------- */
@media (prefers-color-scheme: light) {
    body {
        background: #f5f5f7;
        color: #1a1a2e;
    }

    header {
        background: rgba(245, 245, 247, 0.95);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .hero {
        background: linear-gradient(135deg, #f5f5f7 0%, #e8e8f0 50%, #f0e8f0 100%);
    }

    .hero h1 {
        color: #1a1a2e;
    }

    .hero p {
        color: #555;
    }

    .btn-primary {
        background: #1a1a2e;
        color: #fff;
        box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
    }

    .btn-primary:hover {
        background: #2a2a4e;
        box-shadow: 0 8px 25px rgba(26, 26, 46, 0.3);
    }

    .btn-outline {
        border-color: #1a1a2e;
        color: #1a1a2e;
    }

    .btn-outline:hover {
        background: #1a1a2e;
        color: #fff;
    }

    .section-title {
        color: #1a1a2e;
    }

    .section-subtitle {
        color: #666;
    }

    .product-card,
    .service-item,
    .testimonial-card,
    .insight-card,
    .stat-item {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .product-card p,
    .service-item p,
    .testimonial-card p,
    .insight-card p,
    .faq-answer,
    .about-text p,
    .contact-info p {
        color: #444;
    }

    .faq-question {
        color: #1a1a2e;
    }

    .faq-item {
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .footer {
        background: #e8e8f0;
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .footer-col a {
        color: #555;
    }

    .footer-bottom {
        color: #777;
    }

    .footer-bottom a {
        color: #555;
    }

    .howto-step::before {
        background: #1a1a2e;
        color: #fff;
    }

    .stat-number {
        color: #1a1a2e;
    }

    .logo {
        color: #1a1a2e;
    }

    .logo span {
        color: #1a1a2e;
    }

    .nav a {
        color: #333;
    }

    .nav a:hover {
        color: #1a1a2e;
    }

    .back-to-top {
        background: #1a1a2e;
        color: #fff;
        box-shadow: 0 4px 16px rgba(26, 26, 46, 0.3);
    }

    .back-to-top:hover {
        box-shadow: 0 8px 24px rgba(26, 26, 46, 0.4);
    }

    .section-title::after {
        background: #1a1a2e;
    }

    .product-card h3,
    .service-item h3,
    .testimonial-card .author,
    .faq-question::after,
    .insight-card .read-more,
    .footer-col h4,
    .contact-info strong,
    .about-text strong {
        color: #1a1a2e;
    }

    .stat-item:hover {
        border-color: rgba(26, 26, 46, 0.2);
    }

    ::-webkit-scrollbar-track {
        background: #e8e8f0;
    }
    ::-webkit-scrollbar-thumb {
        background: #1a1a2e;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #2a2a4e;
    }

    ::selection {
        background: #1a1a2e;
        color: #fff;
    }
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .stat-item {
        min-width: 100px;
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        gap: 30px;
    }
}

/* ---------- 滚动动画辅助 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .section {
        opacity: 1;
        transform: none;
    }

    .howto-step {
        opacity: 1;
        transform: none;
    }
}