/* 英雄区域 - 移动优先设计 */
#home {
    color: white;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 40px;
    background-color: #050505;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* 世界/中国地图切换（左下角，仅 PC 端） */
.map-type-toggle {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    gap: 0;
}
.map-type-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}
.map-type-btn:first-child {
    border-radius: 6px 0 0 6px;
}
.map-type-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}
.map-type-btn:hover {
    background: rgba(30, 58, 138, 0.7);
    color: #fff;
}
.map-type-btn.active {
    background: rgba(59, 130, 246, 0.8);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.9);
}

.ui-overlay {
    position: relative;
    z-index: 1;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    pointer-events: auto;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 0 15px;
}

.ui-overlay h1 {
    font-size: 3.5rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 700;
    line-height: 1.2;
}

.ui-overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.visit-hint {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #7dd3fc;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* 右下角小字提示（仅 PC 端地图页使用） */
.visit-hint-corner {
    display: none;
}

.ui-overlay .btn {
    margin-top: 20px;
}

.ui-overlay-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ui-overlay-bottom {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 页脚整体样式 - 移动优先 */
footer {
    background: #2d3436;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7 0%, #0984e3 50%, #00b894 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

/* 标题样式 - 移动优先 */
footer h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: #fff;
    position: relative;
    display: inline-block;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #00b894;
}

/* 标语文字 - 移动优先 */
footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 20px;
    max-width: 600px;
    line-height: 1.6;
    font-size: 0.9em;
}

/* 导航链接 - 移动优先 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9em;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00b894;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::before {
    width: 100%;
    left: 0;
}

/* 版权信息 - 移动优先 */
.copyright {
    margin-top: 30px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

/* 备案号信息 - 移动优先 */
.icp-record {
    margin-top: 8px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* 备案号链接样式 */
.icp-record a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-record a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* 桌面端样式 */
@media (min-width: 769px) {
    /* 英雄区域 */
    #home {
        padding: 100px 0;
    }
    
    .ui-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 15px;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .ui-overlay h1 {
        font-size: 3rem;
        letter-spacing: 8px;
    }
    
    .ui-overlay p {
        font-size: 0.8rem;
        max-width: 600px;
        margin-bottom: 20px;
    }

    .ui-overlay-bottom {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        gap: 10px;
    }

    .ui-overlay .btn {
        margin-top: 0;
    }

    .map-type-toggle {
        display: flex;
    }

    body:not(.dark-theme) .map-type-btn {
        background: rgba(255, 255, 255, 0.85);
        color: #1e293b;
        border-color: rgba(30, 41, 59, 0.3);
    }
    body:not(.dark-theme) .map-type-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        color: #1e40af;
    }
    body:not(.dark-theme) .map-type-btn.active {
        background: rgba(37, 99, 235, 0.9);
        color: #fff;
        border-color: rgba(37, 99, 235, 1);
    }

    /* 右下角小字：IP 位置说明 */
    .visit-hint-corner {
        display: block;
        position: absolute;
        bottom: 14px;
        right: 18px;
        left: auto;
        margin: 0;
        font-size: 0.65rem;
        line-height: 1.35;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.75);
        max-width: 200px;
        text-align: right;
    }
    
    /* 页脚 */
    footer {
        padding: 60px 0 30px;
    }
    
    /* 标题样式 */
    footer h3 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    footer h3::after {
        bottom: -8px;
        width: 40px;
    }
    
    /* 标语文字 */
    footer p {
        margin-bottom: 25px;
        font-size: 1em;
    }
    
    /* 导航链接 */
    .footer-links {
        gap: 30px;
        margin: 30px 0;
    }
    
    .footer-links a {
        padding: 8px 12px;
        font-size: 1em;
    }
    
    /* 版权信息 */
    .copyright {
        margin-top: 40px;
        font-size: 0.9em;
    }
    
    /* 备案号信息 */
    .icp-record {
        margin-top: 10px;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .ui-overlay h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .ui-overlay p {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* 主题联动：浅色主题下提高文字对比度 */
body:not(.dark-theme) #home {
    background-color: #e5f3ff;
}

body:not(.dark-theme) #home .ui-overlay {
    color: #0f172a;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

body:not(.dark-theme) #home .ui-overlay p {
    color: #475569;
}

body:not(.dark-theme) #home .visit-hint {
    color: #2563eb;
}

body:not(.dark-theme) #home .visit-hint-corner {
    color: rgba(15, 23, 42, 0.7);
}

body:not(.dark-theme) #home .ui-overlay .btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}