/* MMA Fighter - 综合格斗资讯网站 全局样式 */
/* 视觉风格：暗黑底色 #000000 + 血红 #B71C1C + 金属银 #BDBDBD */

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

:root {
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-dark-gray: #1a1a1a;
    --color-red: #B71C1C;
    --color-red-light: #D32F2F;
    --color-silver: #BDBDBD;
    --color-silver-light: #E0E0E0;
    --color-white: #FFFFFF;
    --font-main: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-black);
    color: var(--color-silver);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--color-silver-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-red);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 导航栏 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--color-dark-gray);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 2px;
}

.site-logo span {
    color: var(--color-red);
}

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

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-silver);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-white);
}

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

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ========== Hero区域 ========== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content h1 span {
    color: var(--color-red);
}

.hero-content p {
    font-size: 18px;
    color: var(--color-silver-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--color-red-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(183, 28, 28, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--color-red);
    color: var(--color-red);
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--color-red);
    color: var(--color-white);
}

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

.section-dark {
    background: var(--color-dark);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-red);
}

.section-subtitle {
    color: var(--color-silver);
    font-size: 16px;
    margin-bottom: 40px;
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #2a2a2a;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.15);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    font-size: 14px;
    color: var(--color-silver);
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(183, 28, 28, 0.2);
    color: var(--color-red-light);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 排名表格 ========== */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rank-table th {
    background: var(--color-red);
    color: var(--color-white);
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.rank-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
}

.rank-table tr:hover td {
    background: rgba(183, 28, 28, 0.08);
}

.rank-table .rank-num {
    font-weight: 700;
    color: var(--color-red);
    font-size: 16px;
}

/* ========== 视频模块 ========== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== 拳手资料卡 ========== */
.fighter-card {
    display: flex;
    gap: 30px;
    background: var(--color-dark-gray);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #2a2a2a;
    transition: var(--transition);
}

.fighter-card:hover {
    border-color: var(--color-red);
}

.fighter-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.fighter-info h3 {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.fighter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(183, 28, 28, 0.1);
    border-radius: 5px;
}

.stat-item .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-red);
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--color-silver);
    margin-top: 5px;
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--color-dark);
    border-top: 1px solid #2a2a2a;
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-red);
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    color: #999;
    line-height: 2;
}

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

.footer-col ul a {
    color: #999;
}

.footer-col ul a:hover {
    color: var(--color-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

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

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 20px 0;
    margin-top: 60px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-silver);
}

.breadcrumb span {
    color: #666;
    margin: 0 8px;
}

/* ========== 内页Banner ========== */
.page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    overflow: hidden;
}

.page-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.4);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner-content h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 10px;
}

.page-banner-content p {
    font-size: 16px;
    color: var(--color-silver);
}

/* ========== 拳馆地图模块 ========== */
.gym-card {
    background: var(--color-dark-gray);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #2a2a2a;
    margin-bottom: 20px;
    transition: var(--transition);
}

.gym-card:hover {
    border-color: var(--color-red);
}

.gym-card h3 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 10px;
}

.gym-card .gym-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

/* ========== 懒加载 ========== */
.lazy-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--color-dark-gray);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-section {
        height: 60vh;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .fighter-card {
        flex-direction: column;
    }

    .fighter-card img {
        width: 100%;
        height: 200px;
    }

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

    .page-banner {
        height: 250px;
    }

    .page-banner-content h1 {
        font-size: 28px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 22px;
    }

    .card-grid {
        gap: 15px;
    }

    .card-body {
        padding: 15px;
    }
}
