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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #1a1d21;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(26, 29, 33, 0.9), transparent);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.logo span {
    color: #32CD32;
}

.lang-switch {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: filter 0.3s ease;
}

.lang-switch:hover {
    filter: drop-shadow(0 0 8px rgba(50, 205, 50, 0.6))
    drop-shadow(0 0 16px rgba(50, 205, 50, 0.3));
}

.earth-icon {
    position: absolute;
    transition: opacity 0.3s ease;
}

.earth-light {
    opacity: 1;
}

.earth-green {
    opacity: 0;
}

.lang-switch:hover .earth-light {
    opacity: 0;
}

.lang-switch:hover .earth-green {
    opacity: 1;
}

/* 世界地图容器 */
.map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/World_map_-_low_resolution.svg/1280px-World_map_-_low_resolution.svg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 33, 0.7);
    z-index: 1;
}

/* 城市标注 */
.city-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.city-marker:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 20;
}

.city-marker:hover .city-dot {
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.8),
    0 0 40px rgba(50, 205, 50, 0.4),
    0 0 60px rgba(50, 205, 50, 0.2);
}

.city-marker:hover .city-name {
    color: #32CD32;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.6);
}

.city-dot {
    width: 12px;
    height: 12px;
    background: #32CD32;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.6);
    animation: pulse 2s infinite;
    transition: box-shadow 0.3s ease;
}

.city-name {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 12px;
    color: #32CD32;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(50, 205, 50, 0.4); }
    50% { box-shadow: 0 0 15px rgba(50, 205, 50, 0.8); }
    100% { box-shadow: 0 0 5px rgba(50, 205, 50, 0.4); }
}

/* 搜索框容器 */
.search-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 100;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    background: rgba(47, 50, 54, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box-wrapper:focus-within {
    border-color: #32CD32;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.search-box-wrapper:focus-within .search-icon {
    opacity: 1;
}

.search-box {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* 防止自动填充时背景变白 */
.search-box:-webkit-autofill,
.search-box:-webkit-autofill:hover,
.search-box:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(47, 50, 54, 0.9) inset;
    -webkit-text-fill-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* 搜索结果下拉 */
.search-results {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 10px;
    background: rgba(47, 50, 54, 0.95);
    border-radius: 15px;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(10px);
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item:hover {
    background: rgba(50, 205, 50, 0.2);
}

.search-item .city {
    font-weight: 500;
}

.search-item .time {
    color: #32CD32;
    font-size: 14px;
}
