/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
}

/* 天气和推送区域样式 */
.weather-section, .push-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.weather-section h2, .push-section h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 控制按钮组 */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.controls label:hover {
    border-color: #3498db;
    background-color: #ecf0f1;
}

.controls input[type="radio"] {
    width: 16px;
    height: 16px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* 结果容器样式 */
.result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    min-height: 50px;
    display: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.result-container.show {
    display: block;
}

.result-container.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-container.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-container.loading {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* 天气数据显示样式 */
.weather-data {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #3498db;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.raw-data {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.weather-item {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}

.weather-item:last-child {
    border-bottom: none;
}

.weather-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 120px;
    flex: 0 0 auto;
    word-break: break-all;
}

.weather-value {
    color: #7f8c8d;
    flex: 1 1 auto;
    min-width: 100px;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .weather-section, .push-section {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}