/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微軟正黑體', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

body {
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.date-selector {
    display: flex;
    justify-content: space-between;
    background-color: #2c3e50;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.date-item {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    color: white;
    cursor: pointer;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.date-item:last-child {
    border-right: none;
}

.date-item:hover,
.date-item.active {
    background-color: #34495e;
}

/* Weather summary styles */
.weather-summary {
    margin-bottom: 30px;
    background-color: #30336b;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

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

.summary-header h2 {
    font-size: 28px;
    font-weight: bold;
}

.daily-icons {
    display: flex;
    gap: 20px;
}

.icon-label {
    font-size: 20px;
    font-weight: bold;
}

.regions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.region {
    width: 30%;
    text-align: center;
}

.region h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.weather-icons {
    display: flex;
    justify-content: space-between;
}

.icon {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sunny {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="yellow"><circle cx="12" cy="12" r="5"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/></svg>');
}

.partly-cloudy {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="9" r="4" fill="yellow"/><path fill="white" d="M16 18H8a4 4 0 110-8c.36 0 .7.07 1.03.15 1.05-1.27 2.67-2.1 4.47-2.1 3.1 0 5.5 2.4 5.5 5.5S19.1 18 16 18z"/></svg>');
}

.cloudy {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M19 18H6a4 4 0 110-8h.5a5.5 5.5 0 1111 0H19a3 3 0 010 6z"/></svg>');
}

.partly-cloudy-rain {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="7" r="3" fill="yellow"/><path fill="white" d="M16 16H8a3 3 0 110-6c.24 0 .5.04.72.1.71-.84 1.8-1.4 3.05-1.4 2.1 0 3.77 1.55 3.96 3.51.13-.1.27-.1.42-.1a2 2 0 010 4z"/><path fill="%2376a6ff" d="M10 16v2M14 16v2M12 18v2"/></svg>');
}

.cloudy-rain {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M19 14H6a4 4 0 110-8h.5a5.5 5.5 0 1111 0H19a3 3 0 010 6z"/><path fill="%2376a6ff" d="M8 14v3M12 14v3M16 14v3M10 17v3M14 17v3"/></svg>');
}

.cloudy-light-rain {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M19 14H6a4 4 0 110-8h.5a5.5 5.5 0 1111 0H19a3 3 0 010 6z"/><path fill="%2376a6ff" d="M10 14v2M14 14v2"/></svg>');
}

.partly-cloudy-thunder {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="7" r="3" fill="yellow"/><path fill="white" d="M16 16H8a3 3 0 110-6c.24 0 .5.04.72.1.71-.84 1.8-1.4 3.05-1.4 2.1 0 3.77 1.55 3.96 3.51.13-.1.27-.1.42-.1a2 2 0 010 4z"/><path fill="yellow" d="M12 14l-1 2h2l-1 2"/></svg>');
}

/* Temperature chart styles */
.temperature-chart {
    margin-bottom: 30px;
    position: relative;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.city-selector {
    margin-bottom: 15px;
    text-align: right;
}

.city-selector select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: white;
}

#temperature-graph {
    height: 230px;
    width: 100%;
    position: relative;
}

.temperature-labels {
    position: absolute;
    left: 20px;
    top: 60px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

/* Daily forecast styles */
.daily-forecast {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.forecast-day {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.forecast-day .day {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.forecast-day .date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.forecast-day .weather-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
}

.forecast-day .temp {
    font-size: 14px;
    margin-bottom: 5px;
}

.forecast-day .rain-prob {
    font-size: 14px;
    color: #4a6fa5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .date-item {
        font-size: 12px;
        padding: 10px 5px;
    }
    
    .region {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .forecast-day {
        min-width: calc(33.33% - 10px);
    }
}

@media (max-width: 480px) {
    .date-item {
        font-size: 10px;
        padding: 8px 2px;
    }
    
    .forecast-day {
        min-width: calc(50% - 10px);
    }
}
