/* 时区转换器专题页专属样式 */

/* 转换器主体布局 */
.tz-converter {
    padding: 0.5rem 0;
}

.tz-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tz-city-block {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.tz-time-display {
    font-size: 2.4rem;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Fira Code', monospace;
    margin: 0.5rem 0 0.2rem;
    letter-spacing: 0.05em;
}

.tz-date-display {
    font-size: 0.9rem;
    color: #666;
}

.tz-diff-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    min-width: 100px;
}

.tz-diff-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.tz-diff-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.tz-diff-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    text-align: center;
}

/* 快捷按钮 */
.tz-quick-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tz-quick-label {
    font-size: 0.9rem;
    color: #666;
}

.tz-quick-btn {
    padding: 0.3rem 0.75rem;
    border: 1px solid #2563eb;
    border-radius: 20px;
    background: white;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.tz-quick-btn:hover {
    background: #2563eb;
    color: white;
}

/* 子工具入口 */
.sub-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.sub-tool-card {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.sub-tool-card:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.sub-tool-name {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 500;
}

/* 时区参考表 */
.tz-table-wrap {
    overflow-x: auto;
}

.tz-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tz-ref-table th {
    background: #f5f5f5;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
}

.tz-ref-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.tz-ref-table tr:hover td {
    background: #fafafa;
}

@media (max-width: 600px) {
    .tz-row {
        flex-direction: column;
        align-items: center;
    }

    .tz-diff-block {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .sub-tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}
