/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

header {
    background: linear-gradient(to right, #00b4db, #0083b0);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.weather-card {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.weather-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.temperature {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-condition {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.additional-info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 5px;
    backdrop-filter: blur(5px);
}

.label {
    font-weight: bold;
    display: block;
    font-size: 0.9rem;
}

.update-section {
    text-align: center;
    margin: 30px 0;
}

.refresh-btn {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.refresh-btn:active {
    transform: translateY(1px);
}

.last-update {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

.weather-tips {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.weather-tips h3 {
    color: #0083b0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
}

.tipsList {
    list-style-type: none;
}

.tipsList li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.tipsList li:before {
    content: '☀️';
    position: absolute;
    left: 0;
    top: 10px;
}

.tipsList li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.beian-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
}

.beian-link:hover {
    color: #007bff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .weather-icon {
        font-size: 4rem;
    }
    
    .temperature {
        font-size: 2.5rem;
    }
    
    .additional-info {
        flex-direction: column;
    }
}