.tool-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
}
.tool-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-title::before {
    content: "🧮";
}

/* 输入行布局 */
.input-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.input-item {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.input-label {
    background: #f9fafb;
    padding: 0.75rem 1.25rem;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-right: 1px solid #e5e7eb;
    min-width: 80px;
    text-align: center;
}
.input-item select,
.input-item input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 15px;
    outline: none;
    background: #fff;
}
.input-item select {
    cursor: pointer;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary {
    background: #1677ff;
    color: #fff;
}
.btn-primary:hover {
    background: #0F6AE8;
}

.btn-default {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}
.btn-default:hover {
    background: #e8e8e8;
}

/* 结果行 */
.result-row {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.result-label {
    background: #f9fafb;
    padding: 0.75rem 1.25rem;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-right: 1px solid #e5e7eb;
    min-width: 80px;
    text-align: center;
}
.result-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 15px;
    background: #fff;
    outline: none;
}
.copy-btn {
    background: #f5f5f5;
    border: none;
    border-left: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.copy-btn:hover {
    background: #e8e8e8;
}