/* 蛋仔派对地图数据库 - 样式文件 */

.danzi-map-database {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* 筛选栏 */
.map-filter-bar {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-search input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e5eb;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.filter-search input:focus {
    border-color: #FFD100;
    box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.1);
}

.filter-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e0e5eb;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.filter-group select:focus {
    border-color: #FFD100;
}

.popular-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.tag-filter {
    padding: 6px 14px;
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-filter:hover,
.tag-filter.active {
    background: #FFD100;
    border-color: #FFD100;
    color: #333;
}

/* 地图网格 */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* 地图卡片 */
.map-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.map-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.map-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.map-card:hover .map-card-image img {
    transform: scale(1.1);
}

.map-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    transition: opacity 0.3s;
}

.map-card:hover .map-card-overlay {
    opacity: 1;
}

.view-detail-btn {
    padding: 10px 24px;
    background: #FFD100;
    color: #333;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s;
}

.map-card:hover .view-detail-btn {
    transform: translateY(0);
}

.view-detail-btn:hover {
    background: #FFB800;
    transform: translateY(-2px);
}

.map-card-content {
    padding: 20px;
}

.map-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.map-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.map-type {
    padding: 4px 12px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.map-difficulty {
    font-size: 14px;
}

.map-card-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.map-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.map-card-tags .tag {
    padding: 4px 10px;
    background: #f0f4f8;
    color: #555;
    border-radius: 12px;
    font-size: 11px;
}

.map-card-actions {
    padding: 0 20px 20px;
}

.ai-guide-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 加载更多 */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.no-maps {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

/* 地图详情 */
.map-detail-header {
    position: relative;
}

.detail-hero {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.detail-header-content {
    padding: 24px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.detail-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: #333;
}

.detail-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-type {
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: white;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.detail-difficulty {
    font-size: 18px;
}

.detail-time,
.detail-author {
    font-size: 14px;
    color: #666;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-tag {
    padding: 6px 14px;
    background: #f0f4f8;
    color: #555;
    border-radius: 16px;
    font-size: 13px;
}

.map-detail-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section p {
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.tips-list,
.shortcuts-list,
.mistakes-list,
.skills-list {
    line-height: 1.8;
    color: #555;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.video-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B6B 0%, #ee5a6f 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.map-detail-footer {
    padding: 24px;
    border-top: 1px solid #e0e5eb;
}

.ai-guide-btn-large {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-guide-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* AI生成攻略弹窗 */
.ai-guide-loading {
    text-align: center;
    padding: 40px;
}

.ai-guide-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f4f8;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.ai-guide-result {
    padding: 24px;
    line-height: 1.8;
    color: #555;
}

.ai-guide-result h4 {
    color: #333;
    margin: 16px 0 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-options {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-meta {
        gap: 10px;
    }
}
