/* common.css - 全局公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    background: #FFFFFF;
    font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1E1A17;
    line-height: 1.5;
    /* 全局背景图（与首页一致） */
    background-image: url('https://img.21jh.com/beijin.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding-top: 90px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    background: transparent;
    overflow-x: hidden;
}
/* 页头固定 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(232, 226, 217, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.small-logo-img {
    width: 245px;
    height: 88px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 48px;
    backdrop-filter: blur(2px);
}
.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3A281D;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #D64A26;
}
/* 页脚 */
.site-footer {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 70px;
    position: relative;
    z-index: 2;
    height: 250px;          /* 统一高度250px */
    display: flex;
    align-items: center;
    overflow-y: auto;
}
.footer-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.footer-left {
    flex: 0 0 200px;
    text-align: center;
}
.footer-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}
.footer-right {
    flex: 1;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.footer-links a {
    color: #2C1C10;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,240,0.7);
    padding: 4px 12px;
    border-radius: 24px;
}
.footer-links a:hover {
    color: #C4451F;
    background: rgba(255,255,240,0.9);
}
.copyright {
    font-size: 0.7rem;
    color: #2A1C0E;
    font-weight: 500;
    background: rgba(255,250,235,0.7);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
}
.health-game {
    background: rgba(253, 243, 234, 0.9);
    padding: 8px 20px;
    border-radius: 48px;
    display: inline-block;
    margin-top: 16px;
    font-size: 0.7rem;
    color: #4F2F1A;
    max-width: 90%;
    font-weight: 600;
}
.health-game i {
    margin-right: 6px;
    color: #D95128;
}
/* 悬浮按钮 */
.floating-buttons {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}
.floating-btn {
    width: 120px;
    background: #FFFFFF;
    border: 1px solid #E1C6AE;
    border-radius: 48px;
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #B64926;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.floating-btn i {
    font-size: 1rem;
    color: #C7552F;
}
.floating-btn:hover {
    background: #FFF6EF;
    transform: translateX(-4px);
}
@media (max-width: 860px) {
    .floating-buttons {
        right: 12px;
    }
    .floating-btn {
        width: 100px;
        padding: 8px 0;
        font-size: 0.75rem;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .site-footer {
        height: auto;
        min-height: 250px;
    }
}
@media (max-width: 700px) {
    .container {
        padding: 0 20px;
    }
    .header-inner {
        padding: 0 20px;
    }
    .small-logo-img {
        width: 180px;
        height: auto;
    }
    .nav-links {
        background: rgba(255,255,255,0.8);
    }
}

/* 页头 Logo 区域用 H1 包裹，重置默认样式 */
.logo-h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    display: inline-block;
}
.logo-h1 a {
    display: inline-block;
    text-decoration: none;
}
.small-logo-img {
    width: 245px;
    height: 88px;
    object-fit: contain;
    vertical-align: middle;
}

/* 汉堡菜单按钮（默认隐藏，仅移动端显示） */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #3A281D;
    transition: 0.3s;
}
/* 移动端布局 */
@media (max-width: 860px) {
    .header-inner {
        position: relative;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        flex-direction: column;
        gap: 0;
        width: 200px;
        border-radius: 16px;
        padding: 12px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    .nav-links.show {
        transform: scaleY(1);
    }
    .nav-links a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid #F0E2D6;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
}
/* 汉堡菜单动画（叉号效果） */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端（宽度 ≤ 768px）版本介绍板块改为半透明卡片样式 */
@media (max-width: 768px) {
    .version-section {
        background-image: none !important;
        background-color: rgba(255, 245, 235, 0.85) !important; /* 半透米色 */
        border-radius: 32px;
        padding: 24px 20px;
        margin: 30px auto;
        aspect-ratio: auto;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        backdrop-filter: blur(2px); /* 可选，增加背景模糊，更透亮 */
        border: 1px solid rgba(255,255,240,0.5);
    }
    .version-text {
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        color: #2C241E !important;
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }
    .version-text p {
        margin-bottom: 12px;
    }
    .version-text br {
        display: none;
    }
}

/* 移动端隐藏职业介绍板块 */
@media (max-width: 860px) {
    .section {
        display: none;
    }
}