/* ── 天数计算器工具页 ── */

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

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

.ts-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

.ts-main-num {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Fira Code', monospace;
    line-height: 1;
}

.ts-main-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* 多维结果网格 */
.ts-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

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

.ts-detail-val {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    font-family: 'Fira Code', monospace;
}

.ts-detail-label {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.2rem;
}

/* 汇总描述 */
.ts-summary {
    text-align: center;
    font-size: 0.88rem;
    color: #888;
    line-height: 1.7;
    padding-top: 0.6rem;
    border-top: 1px solid #e8eaf0;
}

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

    .ts-main-num {
        font-size: 2.2rem;
    }

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