/* ── 工期计算器工具页 ── */

/* 日期表单两列 */
.date-form {
    grid-template-columns: 1fr 1fr;
}

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

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

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

.gq-tab:hover:not(.active) {
    background: #e8e8e8;
}

/* 结果区 */
.gq-result {
    margin-top: 1.5rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 1.5rem;
}

.gq-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.gq-result-item {
    text-align: center;
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

.gq-result-item.highlight {
    border-color: #2563eb;
    background: #eef2ff;
}

.gq-result-val {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    font-family: 'Fira Code', monospace;
}

.gq-result-item.highlight .gq-result-val {
    color: #2563eb;
    font-size: 1.6rem;
    font-weight: 700;
}

.gq-result-label {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

.gq-result-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    padding-top: 0.5rem;
    border-top: 1px solid #e8eaf0;
    line-height: 1.7;
}

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

    .gq-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gq-result-note {
        grid-column: 1 / -1;
    }
}