/* 亲属关系计算器：计算器布局 + 站点通用配色 */
.qtool-page--tool .qinshu-calc {
    max-width: 520px;
    margin: 0 auto;
}
.qtool-page--tool .qinshu-screen {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05);
    margin-bottom: 16px;
}
.qtool-page--tool .qinshu-screen__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.06em;
}
.qtool-page--tool .qinshu-screen__chain {
    min-height: 24px;
    font-size: 15px;
    line-height: 1.55;
    color: #111827;
    word-break: break-all;
}
.qtool-page--tool .qinshu-screen__chain.is-empty {
    color: #9ca3af;
    font-style: italic;
}
.qtool-page--tool .qinshu-screen__divider {
    height: 1px;
    margin: 12px 0;
    background: #e5e7eb;
}
.qtool-page--tool .qinshu-screen__result {
    min-height: 36px;
    font-size: clamp(22px, 5.5vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    color: #166534;
    word-break: break-word;
}
.qtool-page--tool .qinshu-screen__result.is-placeholder {
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
}
.qtool-page--tool .qinshu-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.qtool-page--tool .qinshu-key {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 4px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 3px 0 #d1d5db, 0 4px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.qtool-page--tool .qinshu-key:hover:not(:disabled):not(.qinshu-key--group) {
    border-color: rgba(90, 172, 44, 0.45);
    box-shadow: 0 3px 0 rgba(71, 138, 33, 0.25), 0 6px 14px rgba(71, 138, 33, 0.12);
}
.qtool-page--tool .qinshu-key:active:not(:disabled):not(.qinshu-key--group) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d1d5db, 0 2px 6px rgba(15, 23, 42, 0.06);
}
.qtool-page--tool .qinshu-key:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.qtool-page--tool .qinshu-key--group {
    grid-column: span 2;
    min-height: 34px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-style: dashed;
    box-shadow: none;
    pointer-events: none;
}
.qtool-page--tool .qinshu-calc .qtool-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 0;
}
.qtool-page--tool .qinshu-calc .qtool-actions .qtool-btn {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    font-size: 15px;
}
.qtool-page--tool .qinshu-tip {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}
@media (max-width: 520px) {
    .qtool-page--tool .qinshu-keypad { gap: 8px; }
    .qtool-page--tool .qinshu-key {
        min-height: 48px;
        font-size: 16px;
        border-radius: 10px;
    }
    .qtool-page--tool .qinshu-calc .qtool-actions {
        grid-template-columns: 1fr;
    }
}
