
/* Left Top Module */
.left-top-module {
    margin-bottom: 20px;
}

/* Location Info */
.location-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.info-label {
    font-weight: bold;
    color: #666;
}

.info-value {
    color: #333;
}

/* Map Module */
.map-module {
    margin-top: 20px;
}

.map-module iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Unit Switch Container */
.unit-switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Weather Stats */
.weather-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.weather-stat-card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.weather-stat-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-label {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.card-value {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

/* Sun Astronomy Module */
.astronomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.astronomy-card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.astronomy-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Climate & History Module */
.climate-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.climate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.climate-label {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

.climate-value {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* Large Local Time Display */
.local-time-large {
    margin: 20px 0;
    text-align: center;
}

.current-time {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.timezone-info {
    font-size: 16px;
    color: #666;
}

/* Temperature Unit Switching */
.temp-celsius, .temp-fahrenheit {
    display: none;
    transition: opacity 0.3s ease;
}

.temp-celsius.active, .temp-fahrenheit.active {
    display: inline;
    opacity: 1;
}

/* Wind Speed Unit Switching */
.wind-speed {
    display: none;
    transition: opacity 0.3s ease;
}

.wind-speed.active {
    display: inline;
    opacity: 1;
}

/* Map Tips */
.map-tips {
    font-size: 13px;
    color: #AAA;
    line-height: 1.6;
    margin-top: 10px;
}

/* Sidebar Heading */
.main-side h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

/* Related Links Module */
.related-links-module {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.links-section {
    margin-bottom: 20px;
}

.links-section:last-child {
    margin-bottom: 0;
}

.links-section h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* City Links - 使用与month.css一致的样式 */
.city-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.city-links li {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Nearby Cities Container */
.nearby-cities {
    margin-top: 20px;
}

/* 统一的链接样式，与month.css#L404-426完全一致 */
.city-links a, .nearby-city-item {
    display: inline-block;
    padding: 8px 15px;
    margin-bottom: 10px;
    background-color: #f2f2f2;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.city-links a:hover, .nearby-city-item:hover {
    background-color: #e0e0e0;
    color: #1e80ff;
}

.city-links a:active, .nearby-city-item:active {
    background-color: #d0d0d0;
}

.city-links a:visited, .nearby-city-item:visited {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .city-links li {
        display: block;
        margin-right: 0;
    }
    
    .city-links a, .nearby-city-item {
        width: 100%;
        text-align: center;
    }
}
