/* ── 模式切换标签 ── */
.mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mode-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: #fafafa;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mode-tab:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.mode-tab.active {
    background: #2563eb;
    color: white;
}

.mode-tab:hover:not(.active) {
    background: #f0f4ff;
    color: #2563eb;
}

/* ── 表单 ── */
.nongli-form {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ── 查询结果 ── */
.nongli-result {
    margin-top: 1.5rem;
}

.result-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.result-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.result-sub {
    font-size: 0.95rem;
    color: #666;
}

.result-details {
    background: #fafafa;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    overflow: hidden;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 0.85rem;
    color: #888;
}

.result-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .nongli-form {
        grid-template-columns: 1fr;
    }

    .result-main {
        font-size: 1.3rem;
    }

    .mode-tab {
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }
}
