/* ====== 手机号归属地查询 · 私有样式 ======
   依赖 common.css 的基础变量（--brand 渐变、--txt、--card、--line 等）。
   页面容器结构：
   .main.panel > .panel-header(.panel-title/.panel-sub) + .panel-body > .result-body
   .extra-panel.panel   #resultBody
   .footer.copyright    div.toast#toast
*/

/* ---------- 查询区 ---------- */
.phone-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.phone-form .form-group {
    flex: 1 1 380px;
    min-width: 280px;
}

.phone-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--txt, #3d3d3d);
    letter-spacing: .05em;
}

.phone-form .input-wrap {
    position: relative;
}

.phone-form .input-wrap .suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9aa1ad;
    pointer-events: none;
    letter-spacing: .06em;
    padding: 2px 0;
}

.phone-form .input-wrap .suffix small {
    color: #c3c8d1;
}

/* 状态徽标 */
.phone-form .input-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 999px;
    padding: 3px 12px;
    border: 1px dashed #d5d9e0;
    color: #7c8494;
    background: #fff;
}

.phone-form .input-status[data-state="valid"] {
    border-color: rgba(62, 193, 116, .35);
    color: #25a65b;
    background: rgba(62, 193, 116, .08);
}

.phone-form .input-status[data-state="invalid"] {
    border-color: rgba(244, 76, 76, .4);
    color: #e04444;
    background: rgba(244, 76, 76, .07);
}

.phone-form .input-hint.phone-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #a2a9b6;
    min-height: 16px;
}

.phone-form .actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.phone-form .actions-row .btn {
    min-width: 132px;
}

/* ---------- 结果 ---------- */
.result-body {
    min-height: 96px;
}

.result-body .empty-state {
    text-align: center;
    padding: 46px 16px;
    color: #aab1bf;
}

.result-body .empty-state .icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: .65;
}

.result-body .result-card {
    border-radius: 14px;
    border: 1px solid var(--line, #e8eaf0);
    background: #fff;
    overflow: hidden;
}

.result-body .hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.result-body .hero .hero-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex: none;
}

.result-body .hero .hero-main {
    flex: 1;
    min-width: 0;
}

.result-body .hero .hero-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt);
}

.result-body .hero .hero-sub {
    font-size: 12px;
    color: #9aa1ad;
    margin-top: 2px;
}

.result-body .summary-list {
    border-top: 1px dashed var(--line);
    padding: 6px 20px 4px;
    background: #fafbfc;
}

.result-body .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #eef0f4;
}

.result-body .summary-row:last-child {
    border-bottom: none;
}

.result-body .summary-row .sum-label {
    font-size: 13px;
    color: #8b92a1;
    flex: none;
}

.result-body .summary-row .sum-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
    text-align: right;
    word-break: break-all;
}

.result-body .summary-row .sum-value .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 6px;
}

/* ---------- 输出状态 ---------- */
.output-status-js {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8b92a1;
    min-height: 20px;
    margin-top: 14px;
}

.output-status-js[data-state="done"] {
    color: #25a65b;
}

.output-stats-js {
    font-size: 12px;
    color: #aab1bf;
    margin-top: 4px;
}

/* ---------- toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(14px);
    background: rgba(46, 50, 58, .92);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 18px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 990;
    max-width: 86vw;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .phone-form .actions-row .btn {
        min-width: 0;
        flex: 1 1 45%;
    }
}
