/* 全局样式 */
body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.navbar .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.navbar .nav-link.active {
    color: white;
}

.nav-text {
    font-size: 0.8rem;
}

/* 内容区域 */
.content-area {
    padding: 1rem;
    padding-bottom: 4rem; /* 为底部导航栏留出空间 */
}

/* 章节样式 */
.section {
    display: none;
    padding: 20px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* 地图图册样式 */
.map-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preset-maps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.preset-list-item {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-list-item:hover {
    background: #e9ecef;
}

.preset-list-item.active {
    background: #0d6efd;
    color: #fff;
}

.map-preview {
    position: relative;
    width: 100%;
    min-height: 300px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-preview.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: none;
}

.map-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-preview.fullscreen img {
    max-height: 100vh;
}

.image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.map-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: none;
}

/* 工具卡片样式 */
.tool-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 计时器样式 */
.timer-display {
    font-size: 2.5rem;
    font-family: monospace;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* 答案验证样式 */
.verify-result {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.verify-result.success {
    background-color: #d4edda;
    color: #155724;
}

.verify-result.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-area {
        padding: 0.5rem;
    }
    
    .section {
        padding: 0.8rem;
    }
    
    .timer-display {
        font-size: 2rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem;
    }

    .map-gallery {
        height: calc(100vh - 150px);
    }

    .map-preview {
        min-height: 150px;
    }
}

/* 预设内容列表样式 */
.preset-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preset-list-item i {
    margin-right: 0.5rem;
    color: #6c757d;
}

/* 计数器样式 */
#map-counter {
    font-family: monospace;
    color: #6c757d;
}

/* 游戏介绍样式 */
.intro-content {
    padding: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.intro-content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.intro-content h2 {
    font-size: 20px;
    color: #444;
    margin: 15px 0;
}

.intro-content h3 {
    font-size: 18px;
    color: #555;
    margin: 12px 0;
}

.intro-content p {
    margin: 10px 0;
}

.intro-content ul, 
.intro-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.intro-content li {
    margin: 5px 0;
}

/* 辅助工具样式 */
.timer-display {
    font-size: 2em;
    font-family: monospace;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #eee;
    border-radius: 4px;
}

.timer-tool button {
    margin-right: 5px;
}

.notes-tool textarea {
    resize: vertical;
    min-height: 100px;
}

/* 添加图片操作按钮 */
.map-preview .image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.map-preview .image-actions button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.map-preview .image-actions button:hover {
    background: rgba(255, 255, 255, 1);
}

.verify-mode {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ai-response {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.ai-response .score {
    font-size: 1.2em;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 10px;
}

.ai-response .reason {
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.5;
}

.ai-response .hint {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    color: #495057;
}

.ai-response .guiding-questions {
    margin-top: 15px;
}

.ai-response .guiding-questions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ai-response .guiding-questions li {
    margin: 5px 0;
    color: #495057;
}

.map-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.maps-list {
    width: 200px;
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.map-item {
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.map-item:hover {
    background: #f5f5f5;
}

.map-item.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.map-title {
    display: block;
}

.map-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

.map-preview {
    flex: 1;
    min-height: 400px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: auto;
}

.map-preview pre {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    margin: 0;
    line-height: 1.2;
}

/* 确保ASCII地图能够正确显示 */
.map-preview pre {
    font-size: 14px;
    letter-spacing: 1px;
}

.map-content {
    min-height: 200px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    line-height: 1.6;
}

.map-content pre {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
    letter-spacing: 1px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
} 