/* ===============================================
   dynmap.html 专用样式
   ================================================ */

/* 页面基础 */
.dynmap-main {
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

/* 页面顶部标题区 */
.dynmap-page-header {
    text-align: center;
    padding: 30px 20px 20px;
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: var(--pixel-border-size) solid #000;
}

.dynmap-page-header h1 {
    font-size: 28px;
    color: var(--mc-green);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 8px;
}

.dynmap-page-header h1 i {
    margin-right: 10px;
}

.dynmap-page-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.back-link {
    display: inline-block;
    color: var(--mc-green);
    font-size: 14px;
    text-decoration: none;
    border: 2px solid var(--mc-green);
    padding: 6px 16px;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: var(--mc-green);
    color: #fff;
}

/* 全屏地图容器 */
.dynmap-fullscreen-container {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.dynmap-fullscreen-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载状态 */
.dynmap-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    z-index: 5;
    gap: 15px;
}

.dynmap-loading p {
    color: var(--text-secondary);
    font-size: 16px;
}

.dynmap-loading-hint {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.dynmap-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--pixel-border-size) solid #000;
    border-top-color: var(--mc-green);
    animation: dynmap-spin 1s linear infinite;
}

@keyframes dynmap-spin {
    to { transform: rotate(360deg); }
}

/* 页脚简化 */
.dynmap-footer {
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
}

.dynmap-footer p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dynmap-page-header h1 {
        font-size: 20px;
    }
    
    .dynmap-page-header {
        padding: 20px 15px 15px;
    }
    
    .dynmap-fullscreen-container {
        min-height: calc(100vh - 180px);
    }
}
