/* 工时计算器专题页样式 */

.gs-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gs-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

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

.gs-tab:hover:not(.active) {
    background: #ebebeb;
}

.gs-shift-form {
    grid-template-columns: 1fr 1fr;
}

.gs-wage-form,
.gs-summary-form {
    grid-template-columns: 1fr 1fr;
}

.gs-textarea {
    min-height: 132px;
    resize: vertical;
}

.gs-result {
    margin-top: 1.5rem;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #f8f9fb;
    padding: 1.4rem;
}

.gs-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.gs-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gs-result-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 1rem 0.8rem;
    text-align: center;
}

.gs-result-card.highlight {
    border-color: #2563eb;
    background: #eff6ff;
}

.gs-result-label {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.gs-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Fira Code', monospace;
    word-break: break-word;
}

.gs-result-card.highlight .gs-result-value {
    color: #2563eb;
}

.gs-result-unit {
    font-size: 0.76rem;
    color: #999;
    margin-top: 0.3rem;
}

.gs-result-note {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e8eaf0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
}

.gs-table-wrap {
    overflow-x: auto;
}

.gs-ref-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.gs-ref-table th {
    background: #f5f5f5;
    color: #333;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.gs-ref-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.gs-ref-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .gs-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gs-tabs {
        flex-direction: column;
    }

    .gs-shift-form,
    .gs-wage-form,
    .gs-summary-form {
        grid-template-columns: 1fr;
    }

    .gs-result-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .gs-result-value {
        font-size: 1.45rem;
    }

    .gs-ref-table th,
    .gs-ref-table td {
        padding: 0.75rem 0.8rem;
        font-size: 0.86rem;
    }
}
