/* 容器布局 */
.tool-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 22px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* UA 输入编辑框 */
.ua-input-box {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* 解析结果区域 */
.ua-result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
@media (max-width: 640px) {
    .ua-result {
        grid-template-columns: 1fr;
    }
}

/* 解析项 */
.result-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}
.result-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.result-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}
.result-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

/* 按钮组 */
.ua-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.btn {
    height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.24s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-local {
    background: #3b82f6;
    color: #fff;
}
.btn-copy {
    background: #10b981;
    color: #fff;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.btn:active {
    transform: translateY(0);
}

/* 底部信息表格 */
.ua-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}
.ua-table th,
.ua-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.ua-table th {
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.ua-table td {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}
.ua-table tr:last-child td {
    border-bottom: none;
}

/* 提示 */
.tip {
    margin: 12px 0 20px;
    font-size: 14px;
    color: #64748b;
}