/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.header:hover::before {
    left: 100%;
}

.header:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #667eea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconRotate 4s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.logo h1 {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 0.9rem;
}

.status-indicator.online i {
    color: #28a745;
}

.status-indicator.offline i {
    color: #dc3545;
}

.status-indicator.checking i {
    color: #ffc107;
    animation: pulse 1s infinite;
}

/* 预警横幅 */
.alert-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52, #ff4757);
    background-size: 200% 200%;
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideDown 0.5s ease-out, alertPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.alert-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: alertShine 3s linear infinite;
}

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

@keyframes alertShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-banner.hidden {
    display: none;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-content i {
    font-size: 1.5rem;
    animation: pulse 1s infinite;
}

.alert-text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.alert-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 位置选择区域 */
.location-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.location-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.location-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #3d4449);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6);
}

.search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

#city-search {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

#city-search::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

#city-search:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#city-search:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* 快捷城市选择 */
.quick-cities {
    margin: 20px 0;
}

.quick-cities-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: left;
}

.quick-cities-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.quick-city-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-city-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.quick-city-btn:hover::before {
    left: 100%;
}

.quick-city-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.quick-city-btn:active {
    transform: translateY(0);
}

.quick-city-btn i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.current-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.current-location i {
    color: #667eea;
}

/* 主天气卡片 */
.weather-main {
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: cardGlow 8s linear infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.weather-primary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.weather-icon i {
    font-size: 5rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #667eea, #f093fb);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconGradient 4s ease infinite, iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
}

@keyframes iconGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.weather-icon {
    position: relative;
}

.weather-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: iconGlow 2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes iconGlow {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.temperature {
    font-size: 4rem;
    font-weight: 200;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: tempPulse 3s ease-in-out infinite;
}

@keyframes tempPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.unit {
    font-size: 2rem;
    color: #666;
}

.weather-desc {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.feels-like {
    color: #777;
    font-size: 1rem;
}

.weather-details {
    margin-top: 20px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.detail-item:hover::before {
    left: 100%;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    background: linear-gradient(135deg, #667eea, #f093fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 25px;
    font-size: 1.2rem;
    animation: detailIconSpin 6s linear infinite;
}

@keyframes detailIconSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* 预报区域 */
#forecast {
    scroll-margin-top: 100px;
}

.forecast-section {
    margin-bottom: 30px;
}

.forecast-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.forecast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.forecast-card:hover::before {
    left: 100%;
}

.forecast-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.forecast-date {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forecast-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #667eea);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
    animation: forecastIconMove 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes forecastIconMove {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.forecast-temps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.temp-high {
    font-weight: 600;
    color: #333;
}

.temp-low {
    color: #666;
}

/* 预警区域 */
#alerts {
    scroll-margin-top: 100px;
}

.alerts-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.alerts-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.alerts-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.no-alerts {
    text-align: center;
    color: #28a745;
    padding: 20px;
}

.no-alerts i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.alert-item {
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff5f5;
    border-radius: 8px;
}

.alert-item.severe {
    border-color: #dc3545;
    background: #f8d7da;
}

.alert-item.moderate {
    border-color: #ffc107;
    background: #fff3cd;
}

.alert-item.minor {
    border-color: #17a2b8;
    background: #d1ecf1;
}

.alert-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.alert-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.alert-time {
    font-size: 0.85rem;
    color: #666;
}

.alert-description {
    color: #555;
    line-height: 1.5;
}

/* 加载指示器 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #667eea;
    border-right: 6px solid #f093fb;
    border-radius: 50%;
    animation: spin 1s linear infinite, spinGlow 2s ease-in-out infinite alternate;
    margin-bottom: 25px;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(240, 147, 251, 0.3);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes spinGlow {
    from { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8)); }
}

/* 动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .location-controls {
        flex-direction: column;
    }
    
    .quick-cities-buttons {
        gap: 6px;
    }
    
    .quick-city-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .weather-primary {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .temperature {
        font-size: 2.5rem;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .forecast-container {
        grid-template-columns: 1fr;
    }
    
    .temperature {
        font-size: 2rem;
    }
    
    .weather-icon i {
        font-size: 3rem;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 页面进入动画 */
.container > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }
.container > *:nth-child(5) { animation-delay: 0.5s; }
.container > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 额外的视觉效果 */
.weather-info {
    position: relative;
}

.weather-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    animation: infoShine 8s linear infinite;
    pointer-events: none;
}

@keyframes infoShine {
    0% { transform: translateX(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

/* 鼠标悬停时的全局效果 */
body:hover .weather-icon i {
    animation-duration: 2s;
}

/* 文字发光效果 */
.weather-desc, .feels-like {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* 标题区域美化 */
.forecast-section h2, .alerts-section h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
}

.forecast-section h2::after, .alerts-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    from { width: 40px; opacity: 0.7; }
    to { width: 80px; opacity: 1; }
}

/* 新增样式 - 头部控制按钮 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 天文信息样式 */
.astronomy-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.astronomy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.astronomy-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.astronomy-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

.astronomy-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

/* 生活指数样式 */
.life-indices-section {
    margin: 30px 0;
}

.life-indices-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.indices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.index-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.index-card:hover::before {
    left: 100%;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.index-card .index-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2), rgba(66, 165, 245, 0.3));
    border: 2px solid rgba(100, 181, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #64b5f6;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2);
    backdrop-filter: blur(10px);
}

.index-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.index-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.index-advice {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 天气图表样式 */
.charts-section {
    margin: 30px 0;
    scroll-margin-top: 100px;
}

.charts-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.chart-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.chart-card canvas {
    width: 100% !important;
    height: 200px !important;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
}

.modal-body {
    padding: 25px;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 5px;
}

.setting-item select,
.setting-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-item select:focus,
.setting-item input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.setting-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* 收藏位置样式 */
.favorites-controls {
    margin-bottom: 20px;
}

.favorites-list {
    max-height: 300px;
    overflow-y: auto;
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.favorite-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.favorite-info p {
    color: #666;
    font-size: 0.9rem;
}

.favorite-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 15px;
}

.no-favorites {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.no-favorites i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

/* 分享面板样式 */
.share-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ddd;
}

.share-preview h3 {
    color: #333;
    margin-bottom: 15px;
}

#share-content {
    color: #555;
    line-height: 1.6;
}

/* 浮动控制按钮 */
.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* 按钮样式扩展 */
.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-controls {
        gap: 10px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .indices-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        padding: 15px;
    }
    
    .floating-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .share-options {
        flex-direction: column;
    }
    
    .astronomy-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .index-card {
        padding: 20px;
    }
    
    .index-value {
        font-size: 1.5rem;
    }
    
    .chart-card h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Toast通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.toast-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.toast-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========================== */
/* LIGHT THEME STYLES */
/* ========================== */

body.theme-light {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%) !important;
    color: #333333 !important;
}

body.theme-light::before {
    background: linear-gradient(45deg, #e1f5fe, #b3e5fc, #81d4fa, #4fc3f7) !important;
}

/* Header Light Theme */
body.theme-light .header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .logo h1 {
    color: #1976d2 !important;
}

body.theme-light .api-status .status-indicator {
    color: #333333 !important;
}

body.theme-light .status-indicator.checking i {
    color: #f57c00 !important;
}

/* Weather Cards Light Theme */
body.theme-light .weather-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
    color: #333333 !important;
}

body.theme-light .temperature {
    color: #1976d2 !important;
}

body.theme-light .weather-desc {
    color: #555555 !important;
}

body.theme-light .feels-like {
    color: #666666 !important;
}

body.theme-light .detail-item {
    color: #444444 !important;
}

body.theme-light .detail-item i {
    color: #1976d2 !important;
}

/* Location Section Light Theme */
body.theme-light .location-section {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333333 !important;
}

body.theme-light .current-location {
    color: #555555 !important;
}

/* 浅色主题快捷城市按钮 */
body.theme-light .quick-cities-label {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.theme-light .quick-city-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05)) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

body.theme-light .quick-city-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15)) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    color: #333 !important;
}

body.theme-light #city-search {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 2px solid rgba(200, 200, 200, 0.5) !important;
}

body.theme-light #city-search::placeholder {
    color: #888888 !important;
}

/* Forecast Cards Light Theme */
body.theme-light .forecast-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .forecast-date {
    color: #1976d2 !important;
}

body.theme-light .temp-high {
    color: #d32f2f !important;
}

body.theme-light .temp-low {
    color: #1976d2 !important;
}

/* Life Indices Light Theme */
body.theme-light .index-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .index-card h3 {
    color: #1976d2 !important;
}

body.theme-light .index-value {
    color: #d32f2f !important;
}

body.theme-light .index-advice {
    color: #555555 !important;
}

body.theme-light .index-card .index-icon {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(30, 136, 229, 0.2)) !important;
    border: 2px solid rgba(25, 118, 210, 0.3) !important;
    color: #1565c0 !important;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.1) !important;
}

/* Astronomy Info Light Theme */
body.theme-light .astronomy-item {
    color: #333333 !important;
}

body.theme-light .astronomy-item i {
    color: #1976d2 !important;
}

body.theme-light .astronomy-item .label {
    color: #666666 !important;
}

/* Chart Cards Light Theme */
body.theme-light .chart-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .chart-card h3 {
    color: #1976d2 !important;
}

/* Section Headers Light Theme */
body.theme-light .life-indices-section h2,
body.theme-light .charts-section h2,
body.theme-light .forecast-section h2,
body.theme-light .alerts-section h2 {
    color: #1976d2 !important;
}

/* Alert Banner Light Theme */
body.theme-light .alert-banner {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
    border: 1px solid rgba(255, 193, 7, 0.5) !important;
}

body.theme-light .alert-text h3 {
    color: #f57c00 !important;
}

body.theme-light .alert-text p {
    color: #555555 !important;
}

/* Modal Light Theme */
body.theme-light .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .modal-header h2 {
    color: #1976d2 !important;
}

body.theme-light .setting-item label {
    color: #333333 !important;
}

body.theme-light .setting-item select,
body.theme-light .setting-item input {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 2px solid rgba(200, 200, 200, 0.5) !important;
}

/* Buttons Light Theme */
body.theme-light .btn-icon {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #1976d2 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .btn-icon:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0d47a1 !important;
}

/* No alerts message Light Theme */
body.theme-light .no-alerts {
    color: #666666 !important;
}

body.theme-light .no-alerts i {
    color: #cccccc !important;
}

/* Loading Overlay Light Theme */
body.theme-light .loading-overlay {
    background: rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .spinner {
    border-color: rgba(25, 118, 210, 0.2) !important;
    border-top-color: #1976d2 !important;
}

/* Favorites Light Theme */
body.theme-light .favorite-item {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
}

body.theme-light .favorite-info h4 {
    color: #1976d2 !important;
}

body.theme-light .favorite-info p {
    color: #555555 !important;
}

body.theme-light .no-favorites {
    color: #666666 !important;
}

body.theme-light .no-favorites i {
    color: #cccccc !important;
}

/* Share Preview Light Theme */
body.theme-light .share-preview {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
}

body.theme-light .share-preview h3 {
    color: #1976d2 !important;
}

body.theme-light #share-content {
    color: #555555 !important;
}

/* ===============================
   Footer Styles
   =============================== */

.main-footer {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 25%,
        rgba(147, 91, 183, 0.95) 50%,
        rgba(156, 103, 198, 0.95) 75%,
        rgba(166, 115, 213, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 50px 0 30px 0;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #a67ec6, #b68cd9);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(166, 126, 198, 0.4);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-section li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a67ec6, #b68cd9);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: #a67ec6;
    text-shadow: 0 0 8px rgba(166, 126, 198, 0.5);
}

.footer-section a:hover::before {
    width: 100%;
}

.social-links {
    margin-top: 25px;
}

.social-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.social-icons a:hover {
    background: rgba(166, 126, 198, 0.3);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(166, 126, 198, 0.3);
    border-color: rgba(166, 126, 198, 0.5);
}

.footer-keywords {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.footer-keywords p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-keywords b {
    color: #a67ec6;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-bottom-content p:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

#footer-update-time {
    color: #a67ec6;
    font-weight: 500;
}

/* Light Theme Footer */
body.theme-light .main-footer {
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.95) 0%, 
        rgba(238, 230, 250, 0.95) 25%,
        rgba(220, 206, 245, 0.95) 50%,
        rgba(204, 181, 240, 0.95) 75%,
        rgba(188, 156, 235, 0.95) 100%);
    border-top: 2px solid rgba(123, 90, 166, 0.2);
}

body.theme-light .footer-section h3 {
    color: #5a4a73;
    text-shadow: 0 1px 2px rgba(90, 74, 115, 0.1);
}

body.theme-light .footer-section h3::after {
    background: linear-gradient(90deg, #7b5aa6, #6d4c9c);
    box-shadow: 0 2px 8px rgba(123, 90, 166, 0.3);
}

body.theme-light .footer-section p {
    color: rgba(90, 74, 115, 0.8);
    text-shadow: none;
}

body.theme-light .footer-section a {
    color: rgba(90, 74, 115, 0.7);
}

body.theme-light .footer-section a:hover {
    color: #4a3859;
    text-shadow: 0 0 8px rgba(74, 56, 89, 0.3);
}

body.theme-light .footer-section a::before {
    background: linear-gradient(90deg, #7b5aa6, #6d4c9c);
}

body.theme-light .social-links h4 {
    color: #5a4a73;
}

body.theme-light .social-icons a {
    background: rgba(123, 90, 166, 0.1);
    color: rgba(90, 74, 115, 0.7);
    border: 1px solid rgba(123, 90, 166, 0.2);
}

body.theme-light .social-icons a:hover {
    background: rgba(123, 90, 166, 0.2);
    color: #4a3859;
    box-shadow: 0 8px 20px rgba(123, 90, 166, 0.2);
    border-color: rgba(123, 90, 166, 0.4);
}

body.theme-light .footer-keywords {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(123, 90, 166, 0.1);
}

body.theme-light .footer-keywords p {
    color: rgba(90, 74, 115, 0.6);
}

body.theme-light .footer-keywords b {
    color: #5a4a73;
}

body.theme-light .footer-bottom {
    border-top: 1px solid rgba(123, 90, 166, 0.1);
}

body.theme-light .footer-bottom-content p {
    color: rgba(90, 74, 115, 0.6);
}

body.theme-light .footer-bottom-content p:first-child {
    color: rgba(90, 74, 115, 0.8);
}

body.theme-light #footer-update-time {
    color: #5a4a73;
}

/* Weather Features 特殊样式 */
.footer-section:last-child ul li {
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

body.theme-light .footer-section:last-child ul li {
    color: rgba(90, 74, 115, 0.8) !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 20px 0;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-keywords {
        text-align: left;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-keywords {
        padding: 12px;
    }
    
    .footer-keywords p {
        font-size: 0.85rem;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
} 