* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部区域 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.slogan {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主要内容区 */
.main-content {
    display: grid;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out;
}

/* 天气预报卡片 */
.weather-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.weather-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.weather-location {
    font-size: 1.4rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 20px;
    text-align: center;
}

.weather-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
}

.weather-info > div {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.weather-info > div:last-child {
    border-bottom: none;
}

.weather-info > div:hover {
    background: rgba(103, 126, 234, 0.05);
    border-radius: 10px;
    margin: 0 -5px;
    padding: 20px 5px;
}

.weather-info > div:first-child {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 10px;
    margin: 0 -5px;
    padding: 20px 5px;
}

.weather-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-day-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.weather-day-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 10px;
}

.weather-temp {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-desc {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.weather-meta {
    text-align: center;
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 15px;
    font-style: italic;
}

/* 天气介绍卡片 */
.weather-intro {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-intro h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.weather-intro p {
    color: #5d6d7e;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.weather-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 其他城市天气预报 */
.city-links {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-links h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.city-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.city-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.city-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.city-link:hover:before {
    left: 100%;
}

.city-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
    color: #667eea;
}

.city-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.city-type {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .slogan {
        font-size: 2rem;
    }
    
    .weather-section,
    .weather-intro,
    .city-links {
        padding: 20px;
    }
    
    .weather-features {
        grid-template-columns: 1fr;
    }
    
    .city-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .weather-day {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .weather-day > div:last-child {
        margin-top: 10px;
    }
}