@charset "utf-8";

/* ============================================
   地图搜索页面样式表
   文件名: style.css
   最后更新: 2026-03-26
   说明: Map文件夹所有页面共用此样式文件
============================================ */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 
                 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 
                 sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ========== 链接样式 ========== */
a:link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:visited {
    color: #666;
    text-decoration: none;
}
a:hover {
    color: #ff6600;
    text-decoration: underline;
}
a:active {
    color: #ff3300;
    text-decoration: none;
}

/* ========== 主容器 (首页使用) ========== */
.Box {
    position: relative;
    width: 100%;
    max-width: 918px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.outBox {
    display: none;
}

.inBox {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    padding: 0 32px;
    text-align: center;
    width: 100%;
}

.inBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

/* ========== 首页内容区域 ========== */
.block2 {
    padding: 40px 35px 35px;
    text-align: center;
}

/* ========== 文字说明 ========== */
.text1 {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    padding: 4px 0;
    margin-bottom: 30px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
    text-decoration: none;
    color: #fff;
}

/* ========== 右侧导航卡片样式 ========== */
.right-map-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 12px;
    min-height: 100vh;
}

.map-nav-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.map-nav-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 18px;
    color: #fff;
}

.map-nav-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.map-nav-content {
    padding: 15px 12px;
}

.map-nav-group {
    margin-bottom: 20px;
}

.map-nav-group:last-child {
    margin-bottom: 0;
}

.map-nav-group-title {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.map-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateX(5px);
    text-decoration: none;
}

.map-nav-icon {
    font-size: 14px;
    font-weight: normal;
    width: 28px;
    text-align: center;
}

.map-divider {
    height: 1px;
    background: #e9ecef;
    margin: 15px 0;
}

.map-footer {
    text-align: center;
    font-size: 11px;
    color: #adb5bd;
    margin-top: 15px;
}

/* 热门搜索卡片 */
.hot-search-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.hot-search-header {
    background: #f8f9fa;
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
}

.hot-search-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.hot-search-content {
    padding: 12px;
}

.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}

.hot-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ========== 搜索结果页样式 ========== */
.map-search-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 20px;
}

.map-search-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 50px 40px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
    border: 4px solid #e9ecef;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-status {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

.back-home-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
    text-decoration: none;
    color: #fff;
}

.search-tips {
    margin-top: 30px;
    background: #fff8e7;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 13px;
    color: #856404;
    text-align: left;
}

.search-tips a {
    color: #667eea;
    text-decoration: none;
}

.search-tips a:hover {
    text-decoration: underline;
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .Box {
        padding: 15px;
    }
    
    .inBox {
        padding: 0 20px;
    }
    
    .block2 {
        padding: 30px 20px 25px;
    }
    
    .text1 {
        font-size: 14px;
    }
    
    .right-map-wrapper {
        padding: 15px 10px;
    }
    
    .map-nav-link {
        padding: 10px 12px;
    }
    
    .hot-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .map-search-wrapper {
        padding: 15px;
    }
    
    .map-search-card {
        padding: 35px 25px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-status {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .block2 {
        padding: 25px 15px 20px;
    }
    
    .text1 {
        font-size: 13px;
    }
}

/* ========== 暗色模式支持 ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .inBox {
        background: rgba(30, 30, 40, 0.95);
    }
    
    .text1 {
        color: #aaa;
    }
    
    .right-map-wrapper {
        background: linear-gradient(135deg, #2a2a2e 0%, #1e1e22 100%);
    }
    
    .map-nav-card,
    .hot-search-card,
    .map-search-card {
        background: rgba(30, 30, 40, 0.95);
    }
    
    .map-nav-link {
        background: #2a2a2e;
        color: #e8e8e8;
    }
    
    .map-nav-group-title {
        color: #888;
        border-bottom-color: #3a3a40;
    }
    
    .hot-search-header {
        background: #2a2a2e;
        border-bottom-color: #3a3a40;
    }
    
    .hot-search-header h4 {
        color: #e8e8e8;
    }
    
    .hot-tag {
        background: #2a2a2e;
        color: #ccc;
    }
    
    .map-footer {
        color: #777;
    }
    
    .loading-status {
        color: #e8e8e8;
    }
    
    .search-tips {
        background: #2a2a2e;
        border-left-color: #ffc107;
        color: #ffd966;
    }
    
    a:visited {
        color: #888;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .top-map-wrapper,
    .right-map-wrapper,
    .search-tips {
        display: none;
    }
}