/**
 * 蛋仔派对抽奖模拟器样式
 * 简约清爽风格，适配移动端和PC端
 */

.danzi-gacha-simulator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    color: #333;
}

.gacha-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 盲盒选择器 */
.gacha-selector {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.gacha-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gacha-selector select:hover {
    border-color: #4A90E2;
}

.gacha-selector select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 盲盒展示区 */
.gacha-display {
    padding: 24px 20px;
}

/* 标题区域 */
.gacha-banner {
    text-align: center;
    margin-bottom: 24px;
}

.gacha-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.gacha-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 保底进度条 */
.pity-progress {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.pity-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.pity-item:last-child {
    margin-bottom: 0;
}

.pity-label {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 12px;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-fill.legendary {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 100%;
    animation: rainbow 2s linear infinite;
}

.progress-fill.epic {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.pity-count {
    width: 50px;
    text-align: right;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 抽奖动画区域 */
.gacha-animation {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    perspective: 1000px;
}

.egg-container {
    position: relative;
}

.egg {
    width: 120px;
    height: 150px;
    background: linear-gradient(180deg, #FFE66D 0%, #F7B731 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 10px 40px rgba(247, 183, 49, 0.4);
    transition: all 0.3s ease;
}

.egg-shine {
    position: absolute;
    width: 30px;
    height: 50px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 20px;
    left: 20px;
    transform: rotate(-30deg);
}

/* 抽奖动画 */
.egg.shaking {
    animation: shake 0.5s ease-in-out infinite;
}

.egg.opening {
    animation: crack 0.8s ease-out forwards;
}

@keyframes shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes crack {
    0% { transform: scale(1); }
    30% { transform: scale(1.1); }
    60% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

/* 光效 */
.glow-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.glow-legendary {
    background: radial-gradient(circle, rgba(255,215,0,0.6) 0%, rgba(255,215,0,0) 70%);
    animation: glowPulse 1s ease-out;
}

.glow-epic {
    background: radial-gradient(circle, rgba(155,89,182,0.6) 0%, rgba(155,89,182,0) 70%);
    animation: glowPulse 1s ease-out;
}

.glow-rare {
    background: radial-gradient(circle, rgba(52,152,219,0.6) 0%, rgba(52,152,219,0) 70%);
    animation: glowPulse 1s ease-out;
}

@keyframes glowPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 抽奖结果展示 */
.gacha-results {
    text-align: center;
    margin-bottom: 24px;
}

.results-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    min-height: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
}

.result-item {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    animation: resultPop 0.4s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.15s; }
.result-item:nth-child(3) { animation-delay: 0.2s; }
.result-item:nth-child(4) { animation-delay: 0.25s; }
.result-item:nth-child(5) { animation-delay: 0.3s; }
.result-item:nth-child(6) { animation-delay: 0.35s; }
.result-item:nth-child(7) { animation-delay: 0.4s; }
.result-item:nth-child(8) { animation-delay: 0.45s; }
.result-item:nth-child(9) { animation-delay: 0.5s; }
.result-item:nth-child(10) { animation-delay: 0.55s; }

@keyframes resultPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.result-item.legendary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.result-item.epic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.result-item.rare {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.result-item.common {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.result-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.result-name {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    line-height: 1.2;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item.common .result-name {
    color: #666;
}

/* 抽奖按钮区 */
.gacha-actions {
    margin-bottom: 24px;
}

.price-info {
    text-align: center;
    margin-bottom: 16px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #F5A623;
}

.currency {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.pull-buttons {
    display: flex;
    gap: 12px;
}

.pull-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pull-btn.single {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.pull-btn.ten {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pull-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pull-btn:active {
    transform: translateY(0);
}

.pull-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 统计信息 */
.gacha-stats {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    border-color: #F5A623;
    color: #F5A623;
}

/* 分享按钮 */
.gacha-share {
    text-align: center;
}

.share-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

/* 概率说明 */
.probability-info {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.probability-info summary {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.probability-info summary:hover {
    color: #4A90E2;
}

.prob-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.prob-item {
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
}

.rainbow-bg {
    background: linear-gradient(135deg, #ff0000 0%, #ff7f00 25%, #ffff00 50%, #00ff00 75%, #0000ff 100%);
    color: #fff;
}

.epic-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.rare-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.common-bg {
    background: #e9ecef;
    color: #666;
}

.prob-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.prob-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.pity-note {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* 文字颜色工具类 */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: rainbow 3s linear infinite;
}

.epic-text {
    color: #9B59B6;
}

.rare-text {
    color: #3498DB;
}

.spent-text {
    color: #F5A623;
}

/* 分享模态框 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #333;
}

.share-preview {
    padding: 20px;
}

.share-buttons {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-buttons button {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    transform: scale(1.05);
}

/* 响应式适配 */
@media (max-width: 480px) {
    .gacha-display {
        padding: 20px 16px;
    }

    .gacha-title {
        font-size: 20px;
    }

    .gacha-animation {
        height: 160px;
    }

    .egg {
        width: 100px;
        height: 125px;
    }

    .pull-buttons {
        flex-direction: column;
    }

    .result-icon {
        font-size: 24px;
    }

    .result-name {
        font-size: 9px;
    }

    .prob-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   地图数据库样式
   ======================================== */

.danzi-map-database {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* 蛋仔派对品牌背景 - 活力橙黄渐变 */
.danzi-map-database::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 209, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 149, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #FFF9E6 0%, #FFF5E6 30%, #FFFEF7 100%);
    z-index: -1;
    pointer-events: none;
}

/* 蛋仔Logo装饰 */
.danzi-map-database::after {
    content: '🥚';
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 48px;
    opacity: 0.3;
    z-index: -1;
    animation: floatEggy 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 209, 0, 0.3));
}

@keyframes floatEggy {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* 分类导航 */
.map-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    color: #555;
    min-height: 44px;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.18),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* 磨砂玻璃搜索框 */
.map-search-box {
    max-width: 400px;
    margin: 0 auto 32px;
}

#map-search {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(102, 126, 234, 0.15) inset;
    color: #444;
    min-height: 44px;
}

#map-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.18),
        0 0 0 2px rgba(102, 126, 234, 0.3) inset;
}

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

.map-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.1),
        0 0 0 3px rgba(255, 209, 0, 0.15) inset;
    border: none;
    position: relative;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FFD100, #FF9500, #FF6B6B, #FFD100);
    background-size: 300% 100%;
    animation: rainbowFlow 4s linear infinite;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.map-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 20px 50px rgba(255, 149, 0, 0.18),
        0 0 0 3px rgba(255, 209, 0, 0.35) inset;
}

.map-card-cover {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-icon {
    font-size: 64px;
    opacity: 0.9;
}

.map-difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.map-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.map-tag {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

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

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

.map-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 13px;
    color: #666;
}

.map-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.6;
}

.map-detail-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-detail-btn:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========================================
   地图详情页样式
   ======================================== */

.danzi-map-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.back-to-list {
    margin-bottom: 24px;
}

.back-to-list a {
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.back-to-list a:hover {
    text-decoration: underline;
}

/* 头部信息 */
.map-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-bottom: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.map-placeholder-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-icon-large {
    font-size: 80px;
    opacity: 0.9;
}

.map-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-title-large {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 149, 0, 0.2));
}

.map-category-badge {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #667eea;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    align-self: flex-start;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

.map-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.map-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-stats .stat-label {
    font-size: 12px;
    color: #999;
}

/* 蛋仔风格内容区块 */
.map-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow:
        0 12px 40px rgba(255, 149, 0, 0.08),
        0 0 0 3px rgba(255, 209, 0, 0.15) inset;
    border: none;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD100, #FF9500, #FF6B6B);
    border-radius: 28px 28px 0 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f3ff;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.guide-content {
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.12) 0%, rgba(255, 149, 0, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    border-left: 4px solid #FFD100;
    box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.15) inset;
}

.hidden-eggs .section-content {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12) 0%, rgba(255, 149, 0, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    border-left: 4px solid #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15) inset;
}

/* 视频容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 磨砂玻璃相关地图卡片 */
.related-maps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.related-map-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.1),
        0 0 0 2px rgba(255, 209, 0, 0.15) inset;
    position: relative;
    overflow: hidden;
}

.related-map-card::before {
    content: '🥚';
    position: absolute;
    right: 10px;
    font-size: 30px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.related-map-card:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #CC7A00;
    transform: translateX(8px) scale(1.03);
    box-shadow:
        0 12px 35px rgba(255, 149, 0, 0.2),
        0 0 0 2px rgba(255, 209, 0, 0.3) inset;
}

.related-map-card:hover::before {
    opacity: 0.2;
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(15deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(25deg); }
}

.related-map-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.related-map-name {
    font-size: 14px;
    font-weight: 600;
}

/* 错误提示 */
.map-error {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .danzi-map-database {
        padding: 12px;
    }

    .map-category-nav {
        gap: 6px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .map-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .map-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .map-cover-large {
        height: 160px;
    }

    .map-title-large {
        font-size: 24px;
    }

    .map-stats {
        gap: 16px;
    }

    .related-maps {
        grid-template-columns: 1fr;
    }

    .danzi-map-detail {
        padding: 12px;
    }

    .map-section {
        padding: 16px;
    }
}

/* ========================================
   地图数据库新功能样式
   ======================================== */

/* ========================================
   磨砂玻璃风格 Glassmorphism
   ======================================== */

/* 可访问性: 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .filter-btn::before,
    .category-btn::before {
        display: none;
    }

    .map-favorite-btn:hover,
    .map-share-btn:hover {
        transform: none !important;
    }

    .map-card:hover {
        transform: none !important;
    }

    .toast-message {
        animation: none !important;
    }
}

/* 焦点状态 - 键盘可访问性 */
.filter-btn:focus-visible,
.category-btn:focus-visible,
.quick-filter-btn:focus-visible,
#map-search:focus-visible,
.map-favorite-btn:focus-visible,
.map-share-btn:focus-visible,
.reset-filters-btn:focus-visible,
.detail-favorite-btn:focus-visible,
.detail-share-btn:focus-visible {
    outline: 3px solid #FFD100;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 209, 0, 0.15);
}

/* 工具栏 - 磨砂玻璃 */
.map-toolbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 筛选导航 */
.map-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

.map-filter-group {
    margin-bottom: 18px;
}

.map-filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(102, 126, 234, 0.8);
    margin-right: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 磨砂玻璃按钮 */
.filter-btn,
.category-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn::before,
.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before,
.category-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.category-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.3) inset;
    color: #667eea;
}

.filter-btn:active,
.category-btn:active {
    transform: translateY(0) scale(0.98);
}

.filter-btn.active,
.category-btn.active {
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.95) 0%, rgba(255, 149, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: #333;
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    font-weight: 700;
}

/* 快捷筛选按钮 */
.map-quick-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
}

.quick-filter-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        0 4px 15px rgba(255, 149, 0, 0.12),
        0 0 0 2px rgba(255, 209, 0, 0.2) inset;
}

.quick-filter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.2),
        0 0 0 2px rgba(255, 209, 0, 0.4) inset;
    color: #FF9500;
}

.quick-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.95) 0%, rgba(255, 149, 0, 0.95) 100%);
    color: #333;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
    font-weight: 700;
}

/* 磨砂玻璃搜索框 */
.map-search-box {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
}

#map-search {
    flex: 1;
    padding: 18px 28px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.12),
        0 0 0 3px rgba(255, 209, 0, 0.2) inset;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#map-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.01);
    box-shadow:
        0 12px 40px rgba(255, 149, 0, 0.2),
        0 0 0 3px rgba(255, 209, 0, 0.4) inset;
}

#map-search::placeholder {
    color: rgba(255, 149, 0, 0.4);
}

#map-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 12px 40px rgba(102, 126, 234, 0.15),
        0 0 0 2px rgba(102, 126, 234, 0.4) inset;
}

.map-result-count {
    font-size: 14px;
    color: rgba(102, 126, 234, 0.7);
    white-space: nowrap;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Emoji封面 */
.map-cover-emoji {
    font-size: 80px;
    line-height: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-cover-emoji-large {
    font-size: 100px;
    line-height: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

/* 磨砂玻璃收藏按钮 */
.map-favorite-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    z-index: 10;
}

.map-favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 6px 20px rgba(245, 87, 108, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.map-favorite-btn.favorited {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.95) 0%, rgba(245, 87, 108, 0.95) 100%);
    animation: heartBeat 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 磨砂玻璃地图卡片 */
.map-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    pointer-events: none;
}

.map-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(102, 126, 234, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* 地图卡片封面 */
.map-card-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg,
        rgba(255, 209, 0, 0.9) 0%,
        rgba(255, 149, 0, 0.85) 50%,
        rgba(255, 107, 107, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.map-card-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-30%, -30%); opacity: 0.5; }
    50% { transform: translate(30%, 30%); opacity: 0.8; }
}
}

.map-card:hover .map-cover-emoji {
    transform: scale(1.15) rotate(5deg);
}

/* 磨砂玻璃难度标签 */
.map-difficulty {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* 磨砂玻璃标签 */
.map-tags {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.map-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* 地图卡片内容区 */
.map-card-content {
    padding: 24px;
    position: relative;
}

/* 地图卡片标题行 */
.map-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.map-title-row .map-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-category-badge-small {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 地图元信息 */
.map-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.meta-item {
    font-size: 13px;
    color: rgba(102, 126, 234, 0.7);
    font-weight: 500;
    background: rgba(102, 126, 234, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
}

.map-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 卡片操作按钮 */
.map-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* 蛋仔风格主按钮 */
.map-card-actions .map-detail-btn {
    flex: 1;
    text-align: center;
    min-height: 52px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF7A00 100%);
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.35),
        0 2px 0 rgba(204, 122, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.map-card-actions .map-detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.map-card-actions .map-detail-btn:hover::before {
    left: 100%;
}

.map-card-actions .map-detail-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 12px 30px rgba(255, 149, 0, 0.45),
        0 3px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
}

.map-card-actions .map-detail-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.35),
        0 1px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.map-share-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.map-share-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.18),
        0 0 0 1px rgba(102, 126, 234, 0.3) inset;
}

/* 磨砂玻璃无结果提示 */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    margin: 20px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.6;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.no-results h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-results p {
    font-size: 15px;
    color: #888;
    margin: 0 0 28px 0;
}

.reset-filters-btn {
    padding: 16px 36px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.9) 0%, rgba(255, 149, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: #333;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.3),
        0 2px 0 rgba(204, 122, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
}

.reset-filters-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 12px 30px rgba(255, 149, 0, 0.4),
        0 3px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.5) inset;
}

.reset-filters-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* ========================================
   地图详情页新功能样式
   ======================================== */

/* 详情页容器 */
.danzi-map-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #333;
    position: relative;
    min-height: 100vh;
}

.danzi-map-detail::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 90%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 50%, #f0f4ff 100%);
    z-index: -1;
    pointer-events: none;
}

/* 详情页工具栏 */
.detail-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.back-to-list a {
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-list a:hover {
    transform: translateX(-4px);
    color: #764ba2;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

/* 磨砂玻璃操作按钮 */
.detail-favorite-btn,
.detail-share-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.detail-favorite-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 107, 107, 0.25),
        0 0 0 2px rgba(255, 107, 107, 0.3) inset;
    color: #FF6B6B;
}

.detail-favorite-btn.favorited {
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 100%);
    color: #333;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
    font-weight: 700;
}

.detail-share-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 149, 0, 0.25),
        0 0 0 2px rgba(255, 209, 0, 0.3) inset;
    color: #FF9500;
}

/* 蛋仔风格详情页头部 */
.map-detail-header {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    box-shadow:
        0 16px 48px rgba(255, 149, 0, 0.12),
        0 0 0 4px rgba(255, 209, 0, 0.2) inset;
    border: none;
    position: relative;
    overflow: hidden;
}

.map-detail-header::before {
    content: '🥚';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 100px;
    opacity: 0.08;
    transform: rotate(15deg);
}

/* 蛋仔风格封面 */
.map-cover-large {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg,
        rgba(255, 209, 0, 0.9) 0%,
        rgba(255, 149, 0, 0.9) 50%,
        rgba(255, 107, 107, 0.85) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.map-cover-large::before {
    content: '🥚';
    position: absolute;
    font-size: 120px;
    opacity: 0.2;
    animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* 分类徽章 - 蛋仔风格 */
.map-category-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.2) 0%, rgba(255, 149, 0, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #CC7A00;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    align-self: flex-start;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

/* 磨砂玻璃统计信息 */
.map-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
}

.map-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 16px;
}

.map-stats .stat-label {
    font-size: 12px;
    color: rgba(102, 126, 234, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #CC7A00;
}

/* 磨砂玻璃标签 */
.map-tags-large {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.map-tag-large {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.2) 0%, rgba(255, 149, 0, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #CC7A00;
    box-shadow:
        0 2px 8px rgba(255, 149, 0, 0.1),
        0 0 0 1px rgba(255, 209, 0, 0.2) inset;
}

/* 磨砂玻璃内容区块 */
.map-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* 攻略内容区块 */
.guide-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 24px;
    border-radius: 18px;
    border-left: 4px solid rgba(102, 126, 234, 0.6);
}

/* 隐藏蛋内容区块 */
.hidden-eggs .section-content {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 87, 108, 0.05) 100%);
    padding: 24px;
    border-radius: 18px;
    border-left: 4px solid rgba(245, 158, 11, 0.6);
}

/* ========================================
   磨砂玻璃分享模态框样式
   ======================================== */

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.share-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    max-width: 480px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 24px 60px rgba(255, 149, 0, 0.2),
        0 0 0 4px rgba(255, 209, 0, 0.2) inset;
    border: none;
}

.share-modal-content::before {
    content: '🥚';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    filter: drop-shadow(0 4px 8px rgba(255, 209, 0, 0.3));
}

@keyframes modalBounce {
    0% { transform: scale(0.8) translateY(30px); opacity: 0; }
    60% { transform: scale(1.05) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.share-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 209, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #CC7A00;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.2) inset;
}

.share-modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.15) rotate(90deg);
    color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3) inset;
}

.share-modal-content h3 {
    margin: 20px 0 24px 0;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-map-info {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.1) 0%, rgba(255, 149, 0, 0.08) 100%);
    border-radius: 20px;
    box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.15) inset;
}

.share-map-name {
    font-size: 18px;
    font-weight: 700;
    color: #CC7A00;
    text-align: center;
    margin-bottom: 8px;
    color: #667eea;
}

.share-map-url {
    font-size: 13px;
    color: rgba(102, 126, 234, 0.6);
    text-align: center;
    word-break: break-all;
}

.share-options {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.share-option {
    flex: 1;
    padding: 20px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.12),
        0 0 0 2px rgba(255, 209, 0, 0.15) inset;
    position: relative;
    overflow: hidden;
}

.share-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.15), transparent);
    transition: left 0.5s;
}

.share-option:hover::before {
    left: 100%;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(255, 149, 0, 0.25),
        0 0 0 2px rgba(255, 209, 0, 0.35) inset;
    color: #CC7A00;
}

.share-link-box {
    display: flex;
    gap: 14px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.12) 0%, rgba(255, 149, 0, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.15) inset;
}

#share-link-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 4px 15px rgba(255, 149, 0, 0.1),
        0 0 0 2px rgba(255, 209, 0, 0.2) inset;
    color: #444;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#share-link-input:focus {
    outline: none;
    transform: scale(1.01);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.15),
        0 0 0 2px rgba(255, 209, 0, 0.4) inset;
}

.copy-link-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD100 0%, #FF9500 50%, #FF7A00 100%);
    color: #333;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 20px rgba(255, 149, 0, 0.35),
        0 2px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.copy-link-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(255, 149, 0, 0.45),
        0 3px 0 rgba(204, 122, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.4) inset;
}

.copy-link-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ========================================
   磨砂玻璃 Toast 提示样式
   ======================================== */

.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 18px 36px;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.95) 0%, rgba(255, 149, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow:
        0 12px 40px rgba(255, 149, 0, 0.35),
        0 2px 0 rgba(204, 122, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.toast-message::before {
    content: '🥚';
    margin-right: 10px;
    font-size: 18px;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 响应式适配增强 */
@media (max-width: 768px) {
    .map-toolbar {
        padding: 16px;
    }

    .map-filter-nav {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .map-search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .map-result-count {
        text-align: center;
    }

    .map-cover-emoji-large {
        font-size: 80px;
    }

    .detail-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-actions {
        justify-content: center;
    }

    .detail-favorite-btn,
    .detail-share-btn {
        flex: 1;
        justify-content: center;
    }

    .share-options {
        flex-direction: column;
        gap: 8px;
    }

    .share-option {
        padding: 12px;
        flex-direction: row;
        justify-content: center;
    }

    .share-link-box {
        flex-direction: column;
    }
}
