* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* 标签切换样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #2c7be5;
    font-weight: bold;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c7be5;
}

/* 内容区域样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2c7be5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1967d2;
}

.result-section {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.result-section h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 风险等级样式 */
.result-content {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.safe {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.risk {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

.danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.extreme-danger {
    background-color: #ffcdd2;
    color: #b71c1c;
    border: 1px solid #e57373;
    font-weight: bold;
}

/* 解码信息样式 */
.decode-info {
    margin-top: 10px;
    padding: 8px;
    background-color: #f1f8e9;
    border-radius: 4px;
    font-size: 13px;
}