/* 足迹地图页面特定样式 */

/* 基础布局样式 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 10px;
}

/* 页面头部样式 */
.page-header.compact {
    background-color: #f8f8f8;
    padding: 5px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 20px;
}

.tab {
    display: inline-block;
    padding: 5px 15px;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #007bff;
}

.tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* 导航栏样式 */
.navbar {
    padding: 0;
    margin-bottom: 0;
}

/* 页脚样式 */
.footer {
    padding: 10px 0;
    margin-top: 0;
}

.footer-bottom {
    padding: 5px 0;
}

/* 地图容器基础样式 */
.map-container {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.map-chart {
    width: 100%;
    height: 100%;
}

/* 地图控件样式 */
.map-type-switch,
.region-type-switch {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 100;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
}

.type-btn {
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.type-btn:hover {
    background-color: #f0f0f0;
}

.type-btn.active {
    background-color: #007bff;
    color: #fff;
}

/* 地图风格切换器 */
.map-style-switch {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 6px;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.color-block {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-block:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-block.active {
    border: 2px solid #333;
}

/* 地图风格颜色定义 */
.color-block[data-style="natural"] { background-color: rgb(191,242,188); }
.color-block[data-style="tech"] { background-color: rgb(127,215,247); }
.color-block[data-style="warm"] { background-color: rgb(249,198,213); }

/* 全屏模式样式 */
.map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0;
    margin: 0;
    z-index: 9999;
    border-radius: 0;
}

.map-container.fullscreen .map-chart {
    width: 100%;
    height: 100%;
}

/* 地区按钮列表样式 */
.city-buttons,
.county-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 5px;
    padding: 10px;
    width: 100% !important;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.city-btn {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.city-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.city-btn.visited {
    background-color: #8ba889;
    color: #fff;
}

.city-btn.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 访问统计信息样式 */
.visit-stats {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0px;
    margin-bottom: 5px;
    text-align: center;
}

.visit-stats p {
    font-size: 0.8rem;
    color: #333;
    margin: 0;
}

.highlight {
    font-size: 1.0rem;
    font-weight: bold;
    color: #007bff;
}

/* 添加次要高亮样式，用于显示所属地市信息 */
.highlight-secondary {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin: 0 5px;
}

/* 访问统计样式 */
.visitor-counter {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.counter-box {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.counter-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.counter {
    margin-bottom: 20px;
}

.counter span {
    font-size: 3rem;
    font-weight: bold;
    color: #ff7f50;
}

.counter p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

.counter-note {
    font-size: 1rem;
    color: #888;
}

.counter-note span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff7f50;
}

/* 地图部分样式 */
.map-section {
    padding: 60px 0;
}

.map-container {
    margin-bottom: 5px;
}

#henan-map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    background-color: #ff7f50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ff6b3d;
}

.map-info {
    text-align: center;
}

.map-info h2 {
    margin-bottom: 15px;
    color: #333;
}

.map-info p {
    color: #666;
    margin-bottom: 20px;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

/* 足迹统计样式 */
.footprint-stats {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.footprint-stats h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-box {
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 250px;
}

.stat-box h3 {
    margin-bottom: 20px;
    color: #333;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff7f50;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #ff7f50;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

/* 地区列表样式 */
.region-list {
    padding: 60px 0;
}

.region-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.region-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.region-item:hover {
    transform: translateY(-5px);
}

.region-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.region-item p {
    color: #666;
    margin-bottom: 15px;
}

.region-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.status-visited {
    background-color: #ff7f50;
    color: white;
}

.status-not-visited {
    background-color: #87cefa;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    #henan-map {
        height: 400px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box {
        width: 100%;
        max-width: 300px;
    }
    
    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    #henan-map {
        height: 300px;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
    }
}

/* 足迹地图页面样式 */

/* 英雄区域 */
.hero-section {
    background-image: url('../images/henan-map-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 30px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 访问计数器 */
.visitor-counter {
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.counter-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.counter-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin: 10px;
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.counter-item span {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

/* 地图区域 */
.map-section {
    padding: 30px 0;
    margin-bottom: 30px;
}

.map-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.map-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.map {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.map-info {
    text-align: center;
    color: #666;
}

/* 足迹统计 */
.footprint-stats {
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin: 10px;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.5s ease;
}

/* 地区列表 */
.region-list {
    padding: 30px 0;
    margin-bottom: 30px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.region-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.region-info {
    padding: 15px;
}

.region-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.region-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.status-visited {
    background-color: #28a745;
    color: white;
}

.status-not-visited {
    background-color: #dc3545;
    color: white;
}

.region-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.region-date {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .counter-item, .stat-box {
        min-width: 150px;
    }
    
    .map {
        height: 300px;
    }
    
    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .counter-box, .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .counter-item, .stat-box {
        width: 100%;
        max-width: 300px;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .map-controls button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 区县列表样式 */
.city-group {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.city-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.city-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
    padding: 0 5px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

.city-title span {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.county-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
    width: 100% !important;
    box-sizing: border-box;
}

.county-buttons.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100% !important;
    box-sizing: border-box;
}

.county-buttons .city-btn {
    font-size: 0.8rem;
    padding: 3px 8px;
    margin-bottom: 3px;
}

.county-buttons.inline .city-btn {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.15s ease;
    margin-bottom: 4px;
}

.county-buttons.inline .city-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.county-buttons.inline .city-btn.visited {
    background-color: #ff7f50;
    color: white;
}

.county-buttons.inline .city-btn.active {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    .navbar {
        height: 40px;
    }
    
    .navbar-container {
        padding: 0 10px;
        height: 100%;
        position: relative;
    }
    
    .navbar-menu {
        margin: 0;
        padding: 0;
        height: 100%;
        display: flex;
        align-items: center;
        position: absolute;
        right: 10px;
    }
    
    .navbar-item {
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .navbar-link {
        padding: 0 10px;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .navbar-logo {
        font-size: 1.2rem;
        height: 100%;
        display: flex;
        align-items: center;
    }
}

/* 地图工具栏样式 */
.map-tools {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.tool-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background-color: #f0f0f0;
}

.tool-btn.active {
    background-color: #e0e0e0;
    border-color: #999;
}

/* T样式文本显示/隐藏按钮 */
.text-toggle-btn {
    font-weight: bold;
    font-size: 16px;
}

.text-toggle-btn.active {
    color: #007bff;
}

/* 右上角工具栏样式 */
.top-tools {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

/* 右上角T样式文本显示/隐藏按钮 */
.top-text-toggle-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-text-toggle-btn:hover {
    background-color: #f0f0f0;
}

.top-text-toggle-btn.active {
    background-color: #e0e0e0;
    border-color: #999;
    color: #007bff;
} 