/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 旅程总结卡片动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-summary-card {
    animation: slideUp 0.5s ease-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 1.5em;
    font-weight: 600;
    color: #4a5568;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.settings-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 设置面板 */
.settings-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.settings-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

.setting-group label {
    font-weight: 500;
    color: #4a5568;
}

.setting-group select,
.setting-group input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.setting-group select:focus,
.setting-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* 状态显示区 */
.status-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 预设地址选择器 */
.preset-location-selector {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.preset-location-selector:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.preset-selector-header {
    margin-bottom: 12px;
}

.preset-label {
    font-weight: 600;
    font-size: 1rem;
    color: #4c51bf;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preset-selector-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

#presetLocationSelect {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#presetLocationSelect:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

#presetLocationSelect:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

#presetLocationSelect option {
    padding: 8px;
    color: #4a5568;
    background: white;
}

#presetLocationSelect option:hover {
    background: #f7fafc;
}

.quick-switch-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.quick-switch-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.quick-switch-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

/* 预设地址选择器响应式设计 */
@media (max-width: 600px) {
    .preset-selector-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #presetLocationSelect {
        width: 100%;
    }
    
    .quick-switch-btn {
        width: 100%;
        height: 40px;
        font-size: 1rem;
    }
    
    .preset-label {
        font-size: 0.9rem;
    }
}

/* 历史模式面板样式 */
.historical-mode-panel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid rgba(240, 147, 251, 0.3);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.2);
}

.historical-mode-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.3);
}

.historical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.historical-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.historical-toggle {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.historical-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.historical-toggle.active {
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
    border-color: white;
}

.historical-controls {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-period-selector {
    margin-bottom: 15px;
}

.time-period-selector label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#historicalPeriod {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#historicalPeriod:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
}

#historicalPeriod:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: white;
}

.custom-year-input {
    margin-bottom: 15px;
}

.custom-year-input label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#customYearInput {
    width: 200px;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.9rem;
    margin-right: 10px;
}

.year-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-style: italic;
}

.historical-info-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.historical-info-display .label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.historical-info-display .value,
#selectedYear,
#modeIndicator {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.time-travel-btn {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-travel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.time-travel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 历史场景展示样式 */
.historical-scene-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.historical-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.info-header h2 {
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.year-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.historical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-row .label {
    opacity: 0.9;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-row .value {
    font-weight: 700;
    font-size: 1rem;
}

.historical-description {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.historical-description h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.generated-scene-card {
    background: rgba(240, 147, 251, 0.1);
    border: 2px solid rgba(240, 147, 251, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.scene-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.scene-header h3 {
    margin: 0;
    color: #f5576c;
    font-size: 1.5rem;
}

.generation-info {
    display: flex;
    gap: 10px;
}

.model-badge, .demo-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.model-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.demo-badge {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.scene-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.historical-scene-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.historical-scene-image:hover {
    transform: scale(1.02);
}

.image-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    backdrop-filter: blur(5px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scene-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-hint {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scene-description {
    margin-bottom: 15px;
}

.scene-description h4 {
    color: #4c51bf;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.description-text {
    line-height: 1.6;
    color: #4a5568;
    font-size: 1rem;
}

.generation-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

.stat-label {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    color: #4c51bf;
    font-weight: 700;
}

.historical-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.action-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.action-btn:not(.primary):not(.secondary) {
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.action-btn:not(.primary):not(.secondary):hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
}

/* 历史图片模态框样式 */
.historical-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.historical-image-modal .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.historical-image-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historical-image-modal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.historical-image-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.historical-image-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.historical-image-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.historical-image-modal .modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.historical-image-modal .image-caption {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .historical-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .historical-toggle {
        width: 100%;
        text-align: center;
    }
    
    .historical-info-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .historical-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    #customYearInput {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* AI历史锐评样式 */
.historical-review-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-header h3 {
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.review-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-title {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.review-text {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.review-highlights {
    margin-bottom: 15px;
}

.review-highlights h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.review-tips,
.review-rating,
.review-mood {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tips-label,
.rating-label,
.mood-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.tips-content,
.rating-content,
.mood-content {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
}

/* 锐评卡片响应式设计 */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .ai-badge {
        text-align: center;
    }
    
    .review-footer {
        grid-template-columns: 1fr;
    }
    
    .highlights-list {
        justify-content: center;
    }
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.current-location,
.coordinates-info,
.accuracy-info,
.compass-info,
.direction-text {
    text-align: center;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.label {
    display: block;
    font-weight: 500;
    color: #718096;
    margin-bottom: 5px;
    font-size: 0.9em;
}

#currentLocation,
#coordinates,
#accuracy,
#compassDirection,
#directionText {
    font-weight: 600;
    color: #2d3748;
    font-size: 1em;
    display: block;
}

/* 指南针样式 */
.compass-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.compass {
    width: 150px;
    height: 150px;
    border: 3px solid #4a5568;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, #f7fafc 0%, #edf2f7 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compass:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.needle-diamond {
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 指南针中心点 */
.compass-center {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #4a5568;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 北向红色菱形 */
.needle-north {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 40px solid #e53e3e;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(229, 62, 62, 0.3));
}

/* 南向绿色菱形 */
.needle-south {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 40px solid #38a169;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 -2px 4px rgba(56, 161, 105, 0.3));
}

.compass-directions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.direction {
    position: absolute;
    font-weight: bold;
    font-size: 16px;
    color: #4a5568;
}

.direction.north {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #e53e3e;
}

.direction.east {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.direction.south {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.direction.west {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* 控制按钮 */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.explore-btn,
.refresh-btn,
.end-journey-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

.refresh-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.refresh-btn:hover {
    background: white;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.end-journey-btn {
    background: linear-gradient(135deg, #FD746C 0%, #FF9068 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(253, 116, 108, 0.4);
}

.end-journey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 116, 108, 0.6);
}

/* 历史访问场景 */
.journey-history-section {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
}

.journey-history-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.history-places-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-place-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
}

.history-place-card::before {
    content: '✅';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

.history-place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* 有锐评的历史场景卡片样式 */
.history-place-card.has-review {
    border: 2px solid rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-place-card.has-review:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
}

.history-place-card.has-review::after {
    content: '点击查看锐评';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.history-place-card.has-review:hover::after {
    opacity: 1;
}

/* 无锐评的历史场景卡片 */
.history-place-card.no-review {
    opacity: 0.8;
    position: relative;
}

.history-place-card.no-review::after {
    content: '暂无锐评';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 地点卡片容器 */
.places-container {
    display: grid;
    gap: 20px;
}

.place-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.place-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.place-content {
    padding: 20px;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.place-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.place-distance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.place-coordinates {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.place-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 景点详细信息样式 */
.place-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.price-highlight {
    color: #e74c3c;
    font-weight: bold;
}

.free-price {
    color: #27ae60;
    font-weight: bold;
}

.place-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-weight: 500;
}

.place-location-info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .place-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.place-mode {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 加载指示器 */
.loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #4a5568;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.3em;
    }
    
    .location-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .compass {
        width: 120px;
        height: 120px;
    }
    
    .compass-needle {
        height: 100px;
        top: 10px;
    }
    
    .controls {
        flex-direction: column;
    }
}

/* 错误状态 */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* 成功状态 */
.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* 日志显示区 */
.log-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.log-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2em;
}

.clear-log-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.clear-log-btn:hover {
    background: #c53030;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f7fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.log-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid;
}

.log-entry.info {
    background: #ebf8ff;
    border-left-color: #3182ce;
    color: #2c5282;
}

.log-entry.success {
    background: #f0fff4;
    border-left-color: #38a169;
    color: #276749;
}

.log-entry.warning {
    background: #fffbeb;
    border-left-color: #d69e2e;
    color: #744210;
}

.log-entry.error {
    background: #fed7d7;
    border-left-color: #e53e3e;
    color: #742a2a;
}

.log-timestamp {
    font-weight: bold;
    margin-right: 8px;
}

/* ========== 背包客模式：到达确认界面 ========== */
.arrival-confirmation {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.arrival-actions h3 {
    margin: 0 0 16px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.arrival-actions p {
    margin: 0 0 24px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.arrival-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.arrival-btn, .back-btn, .continue-btn, .end-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.arrival-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.arrival-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 继续探索界面样式 */
.continue-exploration {
    text-align: center;
}

.continue-exploration h3 {
    color: #2d3748;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.continue-exploration p {
    color: #4a5568;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.continue-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
}

.continue-btn:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    transform: translateY(-2px);
}

.end-btn {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    color: white;
    border: none;
}

.end-btn:hover {
    background: linear-gradient(45deg, #dd6b20, #c05621);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .arrival-buttons, .continue-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .arrival-btn, .back-btn, .continue-btn, .end-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== 场景选择模式样式 ========== */
.selection-mode .place-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-selector {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 单选模式：隐藏原生radio button */
.scene-radio {
    display: none;
}

.scene-radio-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scene-radio-label:hover .radio-indicator {
    transform: scale(1.2);
}

.radio-indicator {
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radio-indicator.selected {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* 背包客模式：专注的场景样式 */
.place-card.focused-scene {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.place-card.hidden-scene {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.reject-btn {
    background: #fff;
    border: 2px solid #e53e3e;
    color: #e53e3e;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.reject-btn:hover {
    background: #e53e3e;
    color: white;
    transform: rotate(90deg);
}

.reject-btn.active {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.reject-btn.active:hover {
    background: #276749;
    border-color: #276749;
    transform: rotate(-90deg);
}

/* 选中和划掉状态 */
.place-card.selected {
    border: 3px solid #667eea;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.place-card.rejected {
    opacity: 0.6;
    position: relative;
}

.place-card.rejected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e53e3e;
    transform: rotate(-5deg);
    pointer-events: none;
}







/* 旅程总结动画 */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Google街景样式 */
.streetview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.streetview-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.streetview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.streetview-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-streetview-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-streetview-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.streetview-controls {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.streetview-control-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.streetview-control-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.streetview-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    background: #f8fafc;
}

#streetviewContainer {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.streetview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4a5568;
}

.streetview-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: streetviewSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes streetviewSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.streetview-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4a5568;
    max-width: 300px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.retry-streetview-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

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

.streetview-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 8px;
}

.streetview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* 全屏模式 */
.streetview-modal.fullscreen {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.streetview-modal.fullscreen .streetview-container {
    min-height: calc(100vh - 200px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .scene-selector {
        top: 10px;
        right: 10px;
        padding: 8px;
    }

    .streetview-modal {
        max-width: 95vw;
        max-height: 95vh;
    }

    .streetview-header {
        padding: 15px 20px;
    }

    .streetview-controls {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .streetview-control-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .streetview-info {
        padding: 10px 20px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .streetview-container {
        min-height: 300px;
    }
}

/* ================ 时光自拍功能样式 ================ */

.historical-selfie-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
}

.selfie-header {
    text-align: center;
    margin-bottom: 30px;
}

.selfie-header h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #FFE066, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 自拍询问对话框 */
.selfie-question {
    text-align: center;
    padding: 20px;
}

/* 用户头像预览 */
.user-avatar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 30px 0;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-container:hover .avatar-image {
    opacity: 0.7;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 24px;
    color: white;
}

.avatar-container:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.avatar-label {
    margin: 8px 0 0 0 !important;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.upload-hint {
    font-size: 10px;
    opacity: 0.6;
    font-weight: normal;
}

.selfie-question-text {
    margin: 20px 0;
}

.selfie-question-text p {
    font-size: 18px;
    margin: 15px 0;
}

.question-content p {
    font-size: 18px;
    margin: 15px 0;
}

.question-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px !important;
}

.question-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.selfie-yes-btn, .selfie-no-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.selfie-yes-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.selfie-yes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.selfie-no-btn {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
}

.selfie-no-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

/* 场景选择界面 */
.selfie-scene-selector h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.visited-scenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.scene-card.selectable {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.scene-card.selectable:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}

.scene-preview {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.scene-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    font-size: 30px;
}

.scene-info h5 {
    margin: 5px 0;
    font-size: 16px;
}

.scene-info p {
    margin: 3px 0;
    font-size: 12px;
    opacity: 0.9;
}

.selfie-controls {
    display: flex;
    justify-content: center;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* 自拍结果显示 */
.selfie-result {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selfie-result h4 {
    font-size: 22px;
    margin-bottom: 20px;
}

.selfie-image-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.selfie-image-container img {
    max-width: 400px;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin: 0 auto 15px auto;
    display: block;
}

.selfie-info {
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 15px auto;
    max-width: 500px;
}

.selfie-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px !important;
}

.selfie-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.share-selfie-btn, .continue-journey-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.share-selfie-btn {
    background: linear-gradient(45deg, #FF6B6B, #ee5a52);
    color: white;
}

.continue-journey-btn {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.share-selfie-btn:hover, .continue-journey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 旅途总结 */
.journey-summary {
    text-align: center;
}

.journey-summary h3 {
    font-size: 24px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #FFE066, #FF8A65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.visited-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.summary-scene-card {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.scene-year {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.scene-name {
    font-size: 12px;
    opacity: 0.9;
}

.summary-selfie {
    margin: 20px 0;
}

.summary-selfie-image {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.selfie-caption {
    font-size: 14px;
    opacity: 0.9;
    margin: 10px 0;
}

.journey-summary-text {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    line-height: 1.6;
    margin: 15px 0;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.new-journey-btn, .share-journey-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.new-journey-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.share-journey-btn {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
}

.new-journey-btn:hover, .share-journey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 特色按钮样式 */
.action-btn.featured {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4) !important;
    color: white !important;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.action-btn.featured:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-avatar-preview {
        margin: 15px 0 20px 0;
    }
    
    .avatar-image, .avatar-placeholder {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .avatar-placeholder {
        font-size: 24px;
    }
    
    .avatar-label {
        font-size: 11px;
    }
    
    .selfie-question-text p {
        font-size: 16px;
    }
    
    .question-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .selfie-yes-btn, .selfie-no-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .visited-scenes {
        grid-template-columns: 1fr;
    }
    
    .summary-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .new-journey-btn, .share-journey-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* =============== 旅程总结容器样式 =============== */
.journey-summary-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.journey-summary-container .journey-summary {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
