* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: linear-gradient(135deg, #2c3e50, #3498db); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }
.container { width: 100%; max-width: 800px; }
h1 { text-align: center; color: white; font-size: 2.8rem; margin-bottom: 30px; text-shadow: 0 0 15px rgba(0,0,0,0.5); letter-spacing: 2px; }
.card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 30px; color: white; box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; overflow: hidden; margin-bottom: 30px; min-height: 250px;}
.weather-icon { font-size: 4.5rem; margin-bottom: 15px; text-align: center; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2)); height: 70px; display: flex; justify-content: center; align-items: center;}
.weather-title { font-size: 1.6rem; text-align: center; }
.temp { font-size: 2.8rem; text-align: center; font-weight: bold; }
.weather-desc { text-align: center; margin: 10px 0 20px 0; font-size: 1.1rem; }
.details { display: flex; justify-content: space-around; }
.detail-item { text-align: center; }
.detail-item i { font-size: 1.3rem; margin-bottom: 8px; }
.detail-item p { font-size: 1rem; }
.forecast-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.forecast-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 15px; padding: 20px; color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-height: 200px; }
.forecast-card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.forecast-card .weather-icon { font-size: 3rem; margin-bottom: 15px; height: 50px; }
.forecast-card .temp { font-size: 1.5rem; margin-bottom: 10px; }
.forecast-card .weather-title { font-size: 1.1rem; }
.sunny { background: linear-gradient(135deg, rgba(255,177,66,0.5), rgba(255,88,88,0.5)); }
.rainy { background: linear-gradient(135deg, rgba(38,50,56,0.6), rgba(69,90,100,0.6)); }
.cloudy { background: linear-gradient(135deg, rgba(96,125,139,0.6), rgba(144,164,174,0.6)); }

/* 设置按钮样式 */
#settings-btn { position: fixed; top: 20px; right: 20px; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.2); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; transition: transform 0.3s ease; }
#settings-btn:hover { transform: rotate(45deg); }

/* 设置弹窗样式 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { background: #34495e; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; color: white; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.modal-content h2 { text-align: center; margin-bottom: 10px; }
.modal-content p { text-align: center; margin-bottom: 25px; color: #bdc3c7; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ecf0f1; }
.form-group input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #7f8c8d; background: #2c3e50; color: white; font-size: 1rem; }
.form-group input::placeholder { color: #7f8c8d; }
.modal-content button { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #3498db; color: white; font-size: 1.1rem; cursor: pointer; transition: background 0.3s ease; }
.modal-content button:hover { background: #2980b9; }