/* ===== 米兰体育 (crew-milan.com) 完整样式表 ===== */
/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #1d1d1f;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

.dark-mode {
    background: #0d0d0d;
    color: #f0f0f0;
}

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

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== 头部导航 ===== */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    width: 40px;
    height: 40px;
}

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

.nav-menu li a {
    padding: 6px 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

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

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px 12px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 8px;
    outline: none;
    width: 120px;
    font-size: 0.85rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

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

    .menu-toggle {
        display: block;
    }

    .search-box input {
        width: 80px;
    }
}

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #0f3460, #1a1a2e, #16213e);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.15), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #f0a500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
}

.btn-primary:hover {
    background: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image svg {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-sub {
    text-align: center;
    color: #6c757d;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dark-mode .section-sub {
    color: #aaa;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb li+li::before {
    content: '›';
    margin: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: #e63946;
}

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

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.dark-mode .card {
    background: #1c1c1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

/* ===== 毛玻璃效果 ===== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .glass {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ===== Banner轮播 ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    height: 400px;
    background: #1a1a2e;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s;
    padding: 40px;
}

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

.banner-slide .slide-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.banner-slide h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.banner-slide p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots span.active {
    background: #e63946;
    transform: scale(1.3);
}

/* ===== 计数器 ===== */
.counter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.counter-item {
    text-align: center;
    flex: 1 1 150px;
}

.counter-item .num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e63946;
}

.counter-item .label {
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 4px;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

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

.faq-question span {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

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

.faq-answer.open {
    max-height: 400px;
    padding-top: 16px;
}

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

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

/* ===== 操作指南 ===== */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step .step-num {
    background: #e63946;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step .step-content {
    flex: 1;
}

/* ===== 文章卡片 ===== */
.article-card {
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.article-card .date {
    font-size: 0.8rem;
    color: #999;
    margin: 8px 0;
}

.article-card h3 {
    font-size: 1.15rem;
    margin: 6px 0;
}

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

.article-card .read-more {
    color: #e63946;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* ===== 客户评价 ===== */
.testimonial-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-size: 4rem;
    color: #e63946;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia;
}

.dark-mode .testimonial-card {
    background: linear-gradient(135deg, #1c1c1e, #2a2a2e);
}

/* ===== 团队成员 ===== */
.team-member {
    text-align: center;
}

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

/* ===== 页脚 ===== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-grid h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-grid a {
    color: #aaa;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 暗黑模式切换 ===== */
.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: #555;
}

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

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

/* ===== 合作伙伴链接 ===== */
.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
}

.partner-links a {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #999;
    transition: all 0.2s;
}

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

/* ===== 网站地图 ===== */
.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 20px 0;
    font-size: 0.85rem;
}

.sitemap-links a {
    color: #aaa;
}

.sitemap-links a:hover {
    color: #e63946;
}

/* ===== 二维码 ===== */
.qr-code {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.qr-code svg {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

    .counter-item .num {
        font-size: 2rem;
    }
}

/* ===== 文本居中工具 ===== */
.text-center {
    text-align: center;
}

/* ===== 阅读更多链接 ===== */
.read-more {
    color: #e63946;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #c1121f;
}