/* 全局样式 */
:root {
    --primary-red: #c0392b;
    --dark-red: #922b21;
    --light-red: #e74c3c;
    --gold: #f39c12;
    --dark: #1a1a2e;
    --dark-blue: #16213e;
    --gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --gradient-red: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(192, 57, 43, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--gold);
    animation: pulse 2s infinite;
}

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

.brand-text {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 12px;
    color: var(--gray);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.search-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* 视图切换 */
.view {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
}

.view.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* 首页英雄区域 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.15'%3E%3Ccircle fill='%23c0392b' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23f39c12' cx='400' cy='400' r='150'/%3E%3Ccircle fill='%23c0392b' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid var(--gold);
    border-radius: 30px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease;
}

.badge-icon {
    color: var(--gold);
    font-size: 14px;
}

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

.hero-title {
    margin-bottom: 30px;
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.title-main {
    display: block;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-red) 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    letter-spacing: 10px;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.title-sub {
    display: block;
    font-size: 36px;
    color: var(--light-gray);
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 5px;
}

.hero-description {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.7s both;
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    font-family: 'ZCOOL XiaoWei', serif;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(243, 156, 18, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.5);
}

.btn-primary .btn-arrow {
    transition: var(--transition);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray);
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
    font-size: 20px;
    margin-top: 5px;
}

/* 特色区域 */
.features-section {
    padding: 80px 40px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-blue) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    margin-top: 15px;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover .feature-hover-effect {
    opacity: 1;
    transform: scale(1);
}

.feature-hover-effect {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
    pointer-events: none;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--light-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 热门推荐 */
.recommend-section {
    padding: 80px 40px;
    background: var(--dark-blue);
}

.recommend-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.recommend-slider::-webkit-scrollbar {
    height: 8px;
}

.recommend-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.recommend-slider::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.recommend-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.recommend-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.recommend-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.recommend-content {
    padding: 20px;
}

.recommend-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.recommend-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
}

.recommend-desc {
    margin-top: 10px;
    font-size: 13px;
    color: var(--light-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 主题线路 */
.theme-section {
    padding: 80px 40px;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark) 100%);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.theme-card:hover {
    transform: scale(1.02);
}

.theme-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(192, 57, 43, 0.9) 0%, 
        rgba(146, 43, 33, 0.9) 100%);
    transition: var(--transition);
}

.theme-card:hover .theme-bg {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.95) 0%, 
        rgba(192, 57, 43, 0.95) 100%);
}

.theme-card:nth-child(2) .theme-bg {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
}

.theme-card:nth-child(3) .theme-bg {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
}

.theme-card:nth-child(4) .theme-bg {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
}

.theme-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.theme-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.theme-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.theme-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.theme-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    opacity: 0.8;
}

/* 视图通用样式 */
.view-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.view-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
}

.view-subtitle {
    font-size: 16px;
    color: var(--gray);
}

/* 筛选面板 */
.filter-panel {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--light-gray);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: var(--gold);
}

.filter-chip.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--white);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.search-box input::placeholder {
    color: var(--gray);
}

/* 地标网格 */
.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.landmark-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.landmark-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.landmark-card:hover .landmark-image {
    transform: scale(1.05);
}

.landmark-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    background: linear-gradient(135deg, #c0392b 0%, #1a1a2e 100%);
}

.landmark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.landmark-image:hover img {
    transform: scale(1.05);
}

.landmark-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.landmark-year {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.landmark-year.overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.landmark-era {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
}

.landmark-era-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(243, 156, 18, 0.9);
    border-radius: 10px;
    font-size: 11px;
    color: var(--dark);
    font-weight: 600;
}

.landmark-info {
    padding: 20px;
}

.landmark-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.landmark-address {
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.landmark-desc {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landmark-categories {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 4px 10px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 10px;
    font-size: 11px;
    color: var(--gold);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
}

.page-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* 时间轴 */
.era-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    flex-wrap: wrap;
}

.era-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.era-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
}

.era-btn.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.era-btn .era-icon {
    font-size: 18px;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        #e74c3c 0%, 
        #d35400 20%, 
        #f39c12 40%, 
        #27ae60 60%, 
        #3498db 80%, 
        #9b59b6 100%);
    border-radius: 2px;
}

.timeline-events {
    position: relative;
}

.timeline-event {
    position: relative;
    width: 50%;
    padding: 20px;
}

.timeline-event:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-event:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 3px solid var(--dark);
    border-radius: 50%;
    z-index: 2;
}

.timeline-event:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-event:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.timeline-year {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
}

/* 地图 */
.map-container {
    display: flex;
    height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.map-view {
    flex: 1;
    min-height: 400px;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a2e;
}

.map-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--light-gray);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-action-btn {
    padding: 10px 20px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid var(--gold);
    border-radius: 20px;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.map-action-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Leaflet 地图样式覆盖 */
.leaflet-container {
    background: #1a1a2e;
    font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
}

.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.leaflet-popup-content {
    color: #ecf0f1;
    font-family: inherit;
    margin: 15px;
    line-height: 1.6;
}

.leaflet-popup-tip {
    background: #1a1a2e;
}

.leaflet-popup-close-button {
    color: #f39c12;
    font-size: 20px;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ecf0f1 !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #f39c12 !important;
}

.leaflet-control-scale-line {
    background: rgba(26, 26, 46, 0.9) !important;
    color: #ecf0f1 !important;
    border-color: rgba(243, 156, 18, 0.5) !important;
}

/* 自定义弹窗样式 */
.custom-popup .popup-content {
    min-width: 250px;
}

.custom-popup .popup-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-popup .popup-header h3 {
    font-size: 18px;
    color: #f39c12;
    margin: 0;
    display: inline-block;
}

.custom-popup .popup-era {
    float: right;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

.custom-popup .popup-info {
    margin-bottom: 15px;
}

.custom-popup .popup-meta {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 10px;
}

.custom-popup .popup-desc {
    font-size: 13px;
    color: #ecf0f1;
    line-height: 1.6;
}

.custom-popup .popup-hero {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

.custom-popup .popup-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.custom-popup .popup-tag {
    padding: 3px 10px;
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 10px;
    font-size: 11px;
    color: #f39c12;
}

.custom-popup .popup-actions {
    display: flex;
    gap: 10px;
}

.custom-popup .popup-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.custom-popup .popup-btn.primary {
    background: #c0392b;
    color: white;
}

.custom-popup .popup-btn.primary:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.custom-popup .popup-btn.secondary {
    background: transparent;
    border: 1px solid #f39c12;
    color: #f39c12;
}

.custom-popup .popup-btn.secondary:hover {
    background: rgba(243, 156, 18, 0.2);
}

/* 地图图例控件 */
.map-legend {
    background: rgba(26, 26, 46, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.map-legend .legend-title {
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    color: #ecf0f1;
}

.map-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 区域筛选按钮 */
.district-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.district-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ecf0f1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.district-btn:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
    color: #f39c12;
}

/* 地图统计 */
.map-stats {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-stats p {
    font-size: 13px;
    color: #ecf0f1;
    text-align: center;
}

.map-stats strong {
    color: #f39c12;
    font-size: 18px;
}

/* 地图错误提示 */
.map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    max-width: 400px;
}

.map-error .error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.map-error h3 {
    font-size: 20px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.map-error p {
    font-size: 14px;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.map-error .retry-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: #c0392b;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.map-error .retry-btn:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.custom-marker {
    width: 30px;
    height: 30px;
    background: #c0392b;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

.custom-marker::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 研学 */
.user-card {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.user-stats {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: var(--light-gray);
}

.challenge-section,
.badge-section,
.hero-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.challenge-title {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 25px;
}

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

.challenge-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
}

.challenge-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.challenge-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.challenge-name {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
}

.challenge-desc {
    font-size: 13px;
    color: var(--light-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.challenge-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.status-progress {
    background: rgba(243, 156, 18, 0.2);
    color: var(--gold);
}

.status-locked {
    background: rgba(127, 140, 141, 0.2);
    color: var(--gray);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.badge-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.badge-item.collected {
    border-color: var(--gold);
    background: rgba(243, 156, 18, 0.1);
}

.badge-item.locked {
    opacity: 0.4;
}

.badge-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.badge-name {
    font-size: 12px;
    color: var(--light-gray);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.hero-portrait {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.hero-name {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 5px;
}

.hero-year {
    font-size: 12px;
    color: var(--gray);
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-red);
}

.modal-body {
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--light-gray);
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-section p {
    color: var(--light-gray);
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 模态框图片样式 */
.modal-image-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: linear-gradient(135deg, #c0392b 0%, #1a1a2e 100%);
}

.modal-landmark-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.modal-year-badge,
.modal-era-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.modal-year-badge {
    background: var(--gradient-red);
    color: var(--white);
}

.modal-era-badge {
    background: rgba(243, 156, 18, 0.9);
    color: var(--dark);
}

/* 推荐卡片图片样式 */
.recommend-image {
    height: 150px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #c0392b 0%, #1a1a2e 100%);
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 智能助手 */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.ai-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
    transition: var(--transition);
}

.ai-toggle:hover {
    transform: scale(1.1);
}

.ai-icon {
    font-size: 28px;
}

.ai-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-hover);
}

.ai-panel.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gradient-red);
    color: var(--white);
}

.ai-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ai-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.ai-bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    border-radius: 15px 15px 15px 5px;
}

.ai-user {
    background: var(--gradient-red);
    color: var(--white);
    border-radius: 15px 15px 5px 15px;
    margin-left: auto;
}

.quick-questions {
    margin-top: 15px;
    padding-left: 20px;
}

.quick-questions li {
    margin: 8px 0;
    cursor: pointer;
    color: var(--gold);
    transition: var(--transition);
}

.quick-questions li:hover {
    text-decoration: underline;
}

.ai-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-input input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--white);
    outline: none;
    font-family: inherit;
}

.ai-input button {
    padding: 12px 20px;
    background: var(--gold);
    border: none;
    border-radius: 20px;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ai-input button:hover {
    background: var(--light-red);
    color: var(--white);
}

/* 页脚 */
.footer {
    background: var(--dark-blue);
    padding: 60px 40px 30px;
    border-top: 2px solid rgba(243, 156, 18, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--light-red);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
    }

    .brand-sub {
        display: none;
    }

    .title-main {
        font-size: 42px;
        letter-spacing: 5px;
    }

    .title-sub {
        font-size: 24px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 28px;
    }

    .landmarks-grid {
        grid-template-columns: 1fr;
    }

    .timeline-event {
        width: 100%;
        padding: 20px !important;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 0 !important;
        top: 25px;
    }

    .timeline-line {
        left: 10px;
    }

    .map-container {
        flex-direction: column;
        height: auto;
    }

    .map-view {
        height: 400px;
    }

    .map-sidebar {
        width: 100%;
    }

    .user-card {
        flex-direction: column;
        text-align: center;
    }

    .ai-panel {
        width: 320px;
        right: -20px;
    }
}

/* 全局搜索面板 */
.global-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 3000;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-search-panel.active {
    opacity: 1;
    visibility: visible;
}

.search-panel-content {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(243, 156, 18, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-title {
    font-size: 20px;
    color: var(--gold);
    font-weight: 600;
}

.search-close {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--primary-red);
}

.search-panel-input {
    position: relative;
    padding: 30px;
}

.search-panel-input input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--white);
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-panel-input input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.search-panel-input input::placeholder {
    color: var(--gray);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 30px;
    right: 30px;
    background: var(--dark-blue);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    z-index: 10;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(243, 156, 18, 0.1);
}

.suggestion-icon {
    margin-right: 12px;
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
    color: var(--white);
}

.suggestion-text mark {
    background: var(--gold);
    color: var(--dark);
    padding: 2px 4px;
    border-radius: 3px;
}

.suggestion-district {
    font-size: 12px;
    color: var(--gray);
}

.search-results {
    padding: 0 30px 30px;
    max-height: 400px;
    overflow-y: auto;
}

.search-hint {
    color: var(--gray);
    text-align: center;
    margin-bottom: 20px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-tag {
    padding: 8px 16px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 20px;
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: var(--gold);
    color: var(--dark);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header span {
    color: var(--gray);
}

.search-header strong {
    color: var(--gold);
    font-size: 18px;
}

.show-all-btn {
    padding: 8px 16px;
    background: var(--primary-red);
    border: none;
    border-radius: 20px;
    color: var(--white);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-all-btn:hover {
    background: var(--light-red);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateX(5px);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-content h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 16px;
}

.result-content h4 mark {
    background: var(--gold);
    color: var(--dark);
    padding: 2px 4px;
    border-radius: 3px;
}

.result-content p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 5px;
}

.result-desc {
    font-size: 12px !important;
    color: var(--light-gray) !important;
}

.result-desc mark {
    background: var(--gold);
    color: var(--dark);
    padding: 1px 3px;
    border-radius: 2px;
}

.show-more-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 15px;
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* 主题路线弹窗样式 */
.route-landmarks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-landmark-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-landmark-item:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--gold);
}

.route-number {
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.route-info {
    flex: 1;
}

.route-info h5 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 15px;
}

.route-info p {
    color: var(--gray);
    font-size: 13px;
}

.route-arrow {
    color: var(--gold);
    font-size: 20px;
    margin-left: 10px;
}

.highlight-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-word {
    padding: 6px 14px;
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: 15px;
    color: var(--light-red);
    font-size: 13px;
}

/* 搜索结果滚动条 */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* 主题卡片提示 */
.theme-card::after {
    content: '点击探索';
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 5px 12px;
    background: rgba(243, 156, 18, 0.9);
    color: var(--dark);
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.theme-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* 平行宇宙导航样式 */
.nav-link.parallel-link {
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
    padding: 8px 16px;
    border-radius: 20px;
    color: white !important;
    font-weight: 600;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.4);
    }
}

.nav-link.parallel-link:hover {
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    transform: scale(1.05);
}

/* 平行宇宙容器 */
.parallel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.parallel-view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.parallel-view.active {
    display: block;
}

.parallel-header {
    text-align: center;
    margin-bottom: 50px;
}

.parallel-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.parallel-intro {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    margin-top: 30px;
}

.parallel-intro p {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.parallel-intro em.highlight {
    color: #f39c12;
    font-style: normal;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(243, 156, 18, 0.2);
    border-radius: 5px;
}

/* 场景卡片网格 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scenario-card {
    position: relative;
    background: linear-gradient(145deg, #2d2d4a 0%, #1a1a2e 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.scenario-card:hover {
    transform: translateY(-10px);
    border-color: #ff6b6b;
    box-shadow: 0 20px 40px rgba(192, 57, 43, 0.3);
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #c0392b, #8e44ad, #ff6b6b);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

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

.scenario-header {
    padding: 25px;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.3) 0%, rgba(142, 68, 173, 0.3) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scenario-year {
    font-size: 48px;
    font-weight: 900;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.scenario-icon {
    font-size: 40px;
}

.scenario-title {
    padding: 0 25px;
    margin-bottom: 15px;
}

.scenario-title h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.scenario-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #95a5a6;
}

.scenario-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scenario-desc {
    padding: 0 25px 25px;
    color: #bdc3c7;
    font-size: 15px;
    line-height: 1.6;
}

.scenario-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(192, 57, 43, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.scenario-card:hover .scenario-cta {
    opacity: 1;
    transform: translateY(0);
}

.scenario-cta span {
    color: white;
    font-weight: 600;
    margin-right: 10px;
}

.scenario-cta::after {
    content: '→';
    color: #f39c12;
    font-size: 24px;
    animation: arrowPulse 1s infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 场景详情 */
.back-btn {
    position: fixed;
    top: 80px;
    left: 30px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.8) 0%, rgba(142, 68, 173, 0.8) 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    transform: translateX(-5px);
}

.scenario-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 80px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-badge {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    border-radius: 15px;
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.detail-title {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-meta-item {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.detail-meta-item label {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 5px;
}

.detail-meta-item span {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.detail-intro {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.2) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border-left: 4px solid #c0392b;
}

.detail-intro p {
    color: #ecf0f1;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-line;
}

/* 时间线 */
.detail-timeline {
    margin-bottom: 40px;
}

.detail-timeline h4 {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 20px;
}

.timeline-list {
    position: relative;
    padding-left: 40px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #c0392b, #8e44ad);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #f39c12;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.timeline-time {
    font-size: 14px;
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-event {
    color: #ecf0f1;
    font-size: 15px;
}

/* 选项区域 */
.choices-section {
    margin-top: 50px;
}

.choices-section h4 {
    color: #f39c12;
    font-size: 24px;
    margin-bottom: 15px;
}

.choices-section .prompt {
    color: #bdc3c7;
    font-size: 16px;
    margin-bottom: 30px;
}

.choices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.choice-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-item:hover {
    border-color: #ff6b6b;
    background: linear-gradient(145deg, rgba(192, 57, 43, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    transform: translateX(10px);
}

.choice-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.choice-icon {
    font-size: 32px;
}

.choice-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.choice-analysis {
    color: #bdc3c7;
    font-size: 15px;
    padding-left: 52px;
}

/* 推演结果 */
.simulation-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 80px;
}

.simulation-header {
    text-align: center;
    margin-bottom: 40px;
}

.simulation-badge {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
    border-radius: 20px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    animation: badgeFloat 3s ease-in-out infinite;
}

.simulation-title {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}

.simulation-choice {
    color: #f39c12;
    font-size: 18px;
}

.simulation-map-container {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

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

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 46, 0.9);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    color: #ecf0f1;
    font-size: 16px;
}

/* 地图标记样式 */
.map-marker {
    background: #c0392b;
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: markerPulse 2s infinite;
}

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

.map-marker.danger { background: #e74c3c; }
.map-marker.success { background: #27ae60; }
.map-marker.info { background: #3498db; }
.map-marker.warning { background: #f39c12; }
.map-marker.memorial { background: #8e44ad; }

/* 叙事内容 */
.simulation-narrative {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b6b;
}

.simulation-narrative h4 {
    color: #f39c12;
    font-size: 22px;
    margin-bottom: 20px;
}

.simulation-narrative p {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
}

/* 伤亡统计 */
.casualty-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(231, 76, 60, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.casualty-icon {
    font-size: 36px;
}

.casualty-text {
    color: #ecf0f1;
    font-size: 16px;
}

.casualty-text strong {
    color: #f39c12;
}

/* 后果列表 */
.consequences-box {
    margin-bottom: 30px;
}

.consequences-box h4 {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 20px;
}

.consequences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consequence-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #27ae60;
}

.consequence-item::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    flex-shrink: 0;
}

.consequence-item.negative {
    border-left-color: #e74c3c;
}

.consequence-item.negative::before {
    content: '✗';
    color: #e74c3c;
}

.consequence-item p {
    color: #ecf0f1;
    font-size: 15px;
}

/* 继续按钮 */
.continue-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #8e44ad 0%, #c0392b 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

/* 历史对比 */
.comparison-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 80px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-badge {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #27ae60 0%, #f39c12 100%);
    border-radius: 15px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.comparison-title {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
}

.comparison-box {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #27ae60;
}

.comparison-box h4 {
    color: #27ae60;
    font-size: 22px;
    margin-bottom: 20px;
}

.comparison-box p {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
}

/* 启示 */
.lesson-box {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(26, 26, 46, 0.8) 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid #f39c12;
    position: relative;
}

.lesson-box::before {
    content: '💡 历史启示';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: #1a1a2e;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
}

.lesson-box p {
    color: #ecf0f1;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-line;
}

.lesson-box strong {
    color: #f39c12;
    font-size: 19px;
}

/* 最终结论 */
.final-box {
    text-align: center;
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.final-box h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 20px;
}

.final-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

/* 重新开始按钮 */
.restart-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #c0392b;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: #f39c12;
    color: #1a1a2e;
    transform: scale(1.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .parallel-intro {
        padding: 20px;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-year {
        font-size: 36px;
    }
    
    .detail-badge {
        font-size: 36px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .simulation-map-container {
        height: 300px;
    }
    
    .comparison-title {
        font-size: 24px;
    }
    
    .lesson-box {
        padding: 30px 25px;
    }
    
    .final-box {
        padding: 35px 25px;
    }
    
    .nav-link.parallel-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 推演地图标记样式 */
.sim-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: markerPulse 2s infinite;
    transition: all 0.3s ease;
}

.sim-marker:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes markerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* 推演地图标签样式 */
.sim-label {
    position: absolute;
    transform: translate(-50%, -150%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    animation: labelFadeIn 0.5s ease;
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -150%);
    }
}

/* Leaflet 自定义标记容器 */
.custom {
    background: transparent !important;
    border: none !important;
}

/* 推演地图弹窗样式 */
.simulation-map .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.simulation-map .leaflet-popup-content {
    color: #ecf0f1;
    font-size: 14px;
    margin: 12px;
}

.simulation-map .leaflet-popup-tip {
    background: #1a1a2e;
}

/* 场景选择动画 */
.choice-item {
    position: relative;
    overflow: hidden;
}

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

.choice-item:hover::before {
    left: 100%;
}

/* 结果卡片动画 */
.consequence-item {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 历史对比渐变边框 */
.comparison-box {
    position: relative;
}

.comparison-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #27ae60, #f39c12);
    border-radius: 0 20px 20px 0;
    opacity: 0.5;
}

/* 滚动条美化 */
.simulation-content::-webkit-scrollbar,
.comparison-content::-webkit-scrollbar {
    width: 10px;
}

.simulation-content::-webkit-scrollbar-track,
.comparison-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.simulation-content::-webkit-scrollbar-thumb,
.comparison-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c0392b, #8e44ad);
    border-radius: 5px;
}

.simulation-content::-webkit-scrollbar-thumb:hover,
.comparison-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e74c3c, #9b59b6);
}

/* ==================== Mule事件样式 - 谢顿危机 ==================== */

/* Mule事件指示器 */
.mule-event-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%);
    border-radius: 15px;
    margin: 20px 0;
    animation: muleIndicatorPulse 1s infinite;
}

@keyframes muleIndicatorPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.4);
    }
}

.pulse-dot {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 0.5s infinite;
}

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

.indicator-text {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* Mule事件弹窗 */
.mule-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: muleModalIn 0.3s ease;
}

@keyframes muleModalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mule-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.mule-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #e74c3c;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(231, 76, 60, 0.5);
}

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

.mule-event-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: iconShake 0.5s infinite;
}

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

.mule-urgency-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.mule-event-title {
    color: #f39c12;
    font-size: 28px;
    margin-bottom: 15px;
}

.mule-event-desc {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
}

/* 倒计时 */
.mule-countdown-container {
    text-align: center;
    margin-bottom: 30px;
}

.countdown-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.countdown-progress {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown-text #countdownNumber {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: #e74c3c;
}

.countdown-text .countdown-label {
    font-size: 14px;
    color: #95a5a6;
}

.countdown-hint {
    color: #bdc3c7;
    font-size: 14px;
    animation: hintBlink 1s infinite;
}

@keyframes hintBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mule事件选项 */
.mule-event-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mule-option-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mule-option-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    transform: translateX(10px);
}

.mule-option-btn:active {
    transform: scale(0.98);
}

.option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-consequence {
    color: #95a5a6;
    font-size: 13px;
}

.mule-event-disclaimer {
    text-align: center;
    padding: 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.mule-event-disclaimer p {
    color: #f39c12;
    font-size: 13px;
}

/* Mule事件结果 */
.mule-result-notice {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%);
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    animation: resultSlideIn 0.5s ease;
}

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

.mule-result-notice.fade-in {
    animation: fadeIn 0.5s ease;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.result-title {
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
}

.result-content p {
    color: #ecf0f1;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.result-analysis {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-analysis p {
    color: #f39c12;
    font-size: 14px;
}

/* ==================== 行动按钮区域 ==================== */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.route-plan-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

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

.restart-btn {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ecf0f1;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.restart-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

/* ==================== 规划视图样式 ==================== */

.planning-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.planning-header {
    text-align: center;
    margin-bottom: 40px;
}

.planning-badge {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.planning-title {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
}

.planning-subtitle {
    color: #95a5a6;
    font-size: 16px;
}

.planning-intro {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(30, 132, 73, 0.1) 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.planning-intro p {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
}

.planning-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.summary-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 32px;
    font-weight: 900;
    color: #27ae60;
    display: block;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #95a5a6;
}

/* 路线列表 */
.planning-route-list {
    position: relative;
    margin-bottom: 40px;
}

.route-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.route-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #27ae60;
    transform: translateX(5px);
}

.route-step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 100%;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, #27ae60, transparent);
}

.route-step.last-step::before {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.step-address {
    color: #f39c12;
    font-size: 14px;
    margin-bottom: 8px;
}

.step-hint {
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-info {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-distance {
    color: #27ae60;
    font-size: 14px;
    font-weight: 600;
}

.step-final {
    color: #f39c12;
    font-size: 14px;
    font-weight: 600;
}

/* 规划操作按钮 */
.planning-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.view-on-map-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-on-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* 路线信息面板样式 */
.route-info-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    max-height: calc(100vh - 120px);
    background: var(--dark-blue);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.route-info-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gradient-red);
    color: white;
}

.route-info-panel .panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.route-info-panel .panel-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.route-info-panel .panel-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.route-info-panel .route-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.route-info-panel .route-stats span {
    font-size: 13px;
    color: var(--light-gray);
}

.route-info-panel .route-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-info-panel .route-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-info-panel .route-item:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateX(5px);
}

.route-info-panel .route-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.route-info-panel .route-info {
    flex: 1;
    min-width: 0;
}

.route-info-panel .route-info strong {
    display: block;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-info-panel .route-info small {
    font-size: 12px;
    color: var(--light-gray);
}

/* 地图上的路线标记样式 */
.custom-route-marker {
    background: none !important;
    border: none !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mule-modal-content {
        padding: 25px;
    }
    
    .mule-event-title {
        font-size: 22px;
    }
    
    .mule-option-btn {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .planning-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .planning-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .route-info-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 50vh;
        border-radius: 15px 15px 0 0;
        animation: slideInUp 0.3s ease;
    }
    
    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ==================== 时空之门开屏样式 ==================== */
.time-gate-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.time-gate-splash.hidden-splash {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* 背景层 */
.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease;
}

.bg-layer.active {
    opacity: 1;
}

.bg-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1920年代石库门背景 */
.bg-1920s {
    background: linear-gradient(180deg, #2a1810 0%, #1a0f08 100%);
}

.bg-1920s .bg-svg {
    opacity: 0.8;
}

/* 1940年代抗战背景 */
.bg-1940s {
    background: linear-gradient(180deg, #3a2010 0%, #1a0f08 100%);
}

.bg-1940s .bg-svg {
    opacity: 0.7;
}

/* 现代陆家嘴背景 */
.bg-modern {
    background: linear-gradient(180deg, #0a0a2a 0%, #050515 100%);
}

.bg-modern .bg-svg {
    opacity: 0.9;
}

/* 数据流动层 */
.bg-dataflow {
    background: transparent;
}

#dataflowCanvas {
    width: 100%;
    height: 100%;
}

/* 雾气层 */
.splash-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(200, 180, 150, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(200, 180, 150, 0.1) 100%);
    animation: fogMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fogMove {
    0%, 100% {
        transform: translateX(-10%);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10%);
        opacity: 0.8;
    }
}

/* 粒子层 */
.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: splashParticle 8s linear infinite;
}

@keyframes splashParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* 中央罗盘 */
.time-gate-compass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: compassAppear 2s ease-out;
}

@keyframes compassAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

.compass-ring svg {
    width: 100%;
    height: 100%;
}

.outer-ring {
    animation: ringRotate 30s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.middle-ring {
    animation: ringRotate 20s linear infinite reverse;
}

/* 罗盘核心 */
.compass-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 刻度 */
.scale-history,
.scale-future {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scale-history {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.scale-future {
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.scale-label {
    font-size: 14px;
    color: rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
}

.scale-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

/* 指针 */
.compass-needle {
    position: relative;
    width: 40px;
    height: 120px;
    animation: needleSwing 4s ease-in-out infinite;
    transform-origin: center;
}

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

.needle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
}

.needle svg {
    width: 100%;
    height: auto;
}

.needle-history {
    top: 0;
    transform: translateX(-50%) rotate(180deg);
}

.needle-future {
    bottom: 0;
}

.needle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ffd700 0%, #b8860b 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* 年份显示 */
.year-display {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.current-year {
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: yearPulse 2s ease-in-out infinite;
}

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

.year-label {
    font-size: 14px;
    color: rgba(255, 215, 0, 0.6);
}

/* 罗盘光环 */
.compass-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

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

.compass-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: pulseExpand 2s ease-out infinite;
}

@keyframes pulseExpand {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 核心Slogan */
.splash-slogan {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: sloganAppear 2.5s ease-out 0.5s both;
}

@keyframes sloganAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.slogan-main {
    margin-bottom: 15px;
}

.typewriter {
    font-size: 28px;
    font-weight: 600;
    color: #ffd700;
    font-family: 'Courier New', 'ZCOOL XiaoWei', monospace;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 28px;
    background: #ffd700;
    margin-left: 2px;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.slogan-sub {
    animation: fadeInUp 1s ease-out 2s both;
}

.sub-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* 滑动提示 */
.splash-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    cursor: pointer;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-icon {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-icon svg {
    width: 100%;
    height: 100%;
}

.scroll-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.scroll-progress {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* 遮罩层 */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 30, 0.6) 0%, 
        rgba(10, 10, 30, 0.2) 30%, 
        rgba(10, 10, 30, 0.2) 70%, 
        rgba(10, 10, 30, 0.8) 100%);
    pointer-events: none;
    z-index: 5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .time-gate-compass {
        width: 280px;
        height: 280px;
    }
    
    .compass-core {
        width: 160px;
        height: 160px;
    }
    
    .compass-needle {
        height: 90px;
    }
    
    .current-year {
        font-size: 24px;
    }
    
    .splash-slogan {
        bottom: 150px;
        padding: 0 20px;
    }
    
    .typewriter {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .typewriter-cursor {
        height: 20px;
    }
    
    .scale-history,
    .scale-future {
        display: none;
    }
}

/* 进入动画 */
.time-gate-splash.entering .bg-1920s {
    animation: bgFade 2s ease-out forwards;
}

@keyframes bgFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 解锁动画 - 幕布拉开效果 */
.time-gate-splash.unlocking {
    animation: unlockCurtain 1.5s ease-in-out forwards;
}

@keyframes unlockCurtain {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10%);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* 解锁时的背景模糊效果 */
.time-gate-splash.unlocking .splash-background {
    animation: bgBlur 1.5s ease-in-out forwards;
}

@keyframes bgBlur {
    0% {
        filter: blur(0);
    }
    100% {
        filter: blur(10px);
    }
}

/* 解锁时的罗盘效果 */
.time-gate-splash.unlocking .time-gate-compass {
    animation: compassExplode 1.2s ease-out forwards;
}

@keyframes compassExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 解锁时的Slogan效果 */
.time-gate-splash.unlocking .splash-slogan {
    animation: sloganFade 1s ease-out forwards;
}

@keyframes sloganFade {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
}

/* 解锁时粒子爆发效果 */
.time-gate-splash.unlocking .splash-particles .splash-particle {
    animation: particleExplode 1s ease-out forwards !important;
}

@keyframes particleExplode {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) translateX(var(--explode-x, 50px)) scale(0);
        opacity: 0;
    }
}

/* 激活状态的背景层效果增强 */
.bg-layer.active {
    animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* 背景切换过渡效果 */
.bg-layer {
    transition: opacity 2s ease, filter 2s ease;
}

/* 罗盘指针增强动画 */
.compass-needle {
    transition: transform 1s ease-in-out;
}

/* 时间光晕效果 */
.time-gate-compass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: haloPulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes haloPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 年份变化动画 */
.current-year {
    transition: text-shadow 0.3s ease;
}

.current-year:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* 滑动进度条增强 */
.scroll-progress {
    position: relative;
    overflow: hidden;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 滚动提示增强效果 */
.splash-scroll-hint {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.splash-scroll-hint:hover {
    transform: translateX(-50%) scale(1.1);
}

/* 云雾飘动效果增强 */
.splash-fog {
    background: linear-gradient(90deg, 
        rgba(200, 180, 150, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 25%,
        rgba(200, 180, 150, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        rgba(200, 180, 150, 0.05) 100%);
}

/* 背景切换时的溶解效果 */
.bg-layer.fading-out {
    animation: bgDissolve 0.5s ease-in forwards;
}

@keyframes bgDissolve {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 0;
        filter: blur(5px);
    }
}

/* 背景激活时的显现效果 */
.bg-layer.fading-in {
    animation: bgAppear 2s ease-out forwards;
}

@keyframes bgAppear {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* 罗盘外圈旋转效果 */
.outer-ring svg {
    animation: ringRotateSvg 30s linear infinite;
}

@keyframes ringRotateSvg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 罗盘内圈反向旋转 */
.middle-ring svg {
    animation: ringRotateSvgReverse 20s linear infinite;
}

@keyframes ringRotateSvgReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* 欢迎进入首页的过渡效果 */
body.gate-unlocked {
    animation: homeAppear 1s ease-out;
}

@keyframes homeAppear {
    0% {
        background: rgba(10, 10, 30, 1);
    }
    100% {
        background: transparent;
    }
}
