* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /*background: linear-gradient(135deg, rgba(144, 117, 71, 0.54), #6d5570, #503b2c);*/
    /*color: #ba587a;*/
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.4s ease;
}

header {
    background: linear-gradient(90deg, #4ecdc4, #2c9a92);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transform: rotate(30deg);
}

h1 {
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 18px;
    opacity: 0.92;
    font-weight: 300;
    position: relative;
}

.content {
    padding: 35px;
}

.section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(to bottom, #f8fbfb, #ffffff);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1f0ee;
}

h2 {
    color: #2c9a92;
    border-bottom: 2px solid #4ecdc4;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
}

h2::before {
    content: "•";
    margin-right: 10px;
    color: #ff6b6b;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
}

label::before {
    content: "→";
    margin-right: 8px;
    color: #4ecdc4;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d1e7e5;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8fdfc;
    color: #2c3e50;
}

input:focus, select:focus, textarea:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    outline: none;
    background-color: #ffffff;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    background: #e9f7f6;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 140px;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: #d4f0ed;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.15);
}

.radio-option.active {
    background: #4ecdc4;
    color: white;
    border-color: #2c9a92;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.radio-option input {
    width: auto;
    margin-right: 12px;
}

.btn-group {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit {
    background: linear-gradient(90deg, #4ecdc4, #2c9a92);
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(90deg, #3bbdb4, #1a8880);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-clear {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-clear:hover {
    background: linear-gradient(90deg, #e55a5a, #ff7b7b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-clear:active {
    transform: translateY(1px);
}

.response-area {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(to bottom, #e9f7f6, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #4ecdc4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.response-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c9a92;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.response-title::before {
    content: "↳";
    color: #ff6b6b;
}

.response-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    min-height: 120px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d1e7e5;
    font-size: 15px;
    line-height: 1.6;
}

.mode-info {
    background-color: #e9f7f6;
    padding: 18px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 15px;
    color: #2c3e50;
    border-left: 4px solid #4ecdc4;
}

.mode-info strong {
    color: #2c9a92;
}

.status-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-0 {
    background: linear-gradient(135deg, #ff8758, #ff6b6b);
}

.status-1 {
    background: linear-gradient(135deg, #ffc702, #ffb400);
}

.status-2 {
    background: linear-gradient(135deg, #ff4246, #e53935);
}

.status-3 {
    background: linear-gradient(135deg, #999, #777);
}

.status-4 {
    background: linear-gradient(135deg, #777, #555);
}

footer {
    text-align: center;
    padding: 25px;
    color: white;
    background: linear-gradient(90deg, #2c9a92, #4ecdc4);
    font-size: 15px;
    position: relative;
}

.device-status {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #e9f7f6;
    border-radius: 10px;
}

.status-item {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border-radius: 8px;
    background: white;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-color {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.btn-submit.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 优化后的通知样式 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 20px 35px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    text-align: center;
}

.notification.success {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.notification.error {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.notification i {
    font-size: 28px;
}


@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    .radio-group {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
    }

    .device-status {
        flex-direction: column;
    }
}
