/* ==========================================================================
   机房查询工作台 —— 视觉样式（浅色 / 无深色栏）
   ========================================================================== */

:root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --line: #e6eaf1;
    --line-soft: #f0f3f8;
    --text: #0f1729;
    --sub: #64748b;
    --mute: #98a2b3;

    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #f2f7ff;
    --brand-ring: rgba(37, 99, 235, .14);
    --brand-shadow: rgba(37, 99, 235, .45);

    --ok: #047857;
    --ok-soft: #ecfdf5;
    --warn: #b45309;
    --warn-soft: #fffaeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;

    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 41, .04), 0 4px 14px -8px rgba(15, 23, 41, .12);
    --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 10px 28px -14px rgba(15, 23, 41, .16);
    --shadow-lg: 0 24px 60px -20px rgba(15, 23, 41, .28);
    --ease: cubic-bezier(.4, 0, .2, 1);

    --accent: var(--brand);
    --accent-dark: var(--brand-dark);
    --accent-soft: var(--brand-soft);
    --accent-ring: var(--brand-ring);
    --accent-shadow: var(--brand-shadow);
}

/* 机房主色：宁波=青，十堰=蓝 */
body[data-node="ningbo"] {
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-soft: #f0fdfa;
    --accent-ring: rgba(13, 148, 136, .14);
    --accent-shadow: rgba(13, 148, 136, .45);
}

body[data-node="shiyan"] {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #f2f7ff;
    --accent-ring: rgba(37, 99, 235, .14);
    --accent-shadow: rgba(37, 99, 235, .45);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background:
        radial-gradient(900px 430px at 14% -6%, rgba(37, 99, 235, .05), transparent 62%),
        radial-gradient(720px 380px at 88% -2%, rgba(13, 148, 136, .045), transparent 62%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------------- 布局 ---------------- */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 26px 70px;
}

.section-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    color: var(--mute);
    text-transform: uppercase;
    margin: 0 0 12px 2px;
}

/* ---------------- 头部（白色卡片，无深色栏） ---------------- */
.app-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 15px 20px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    box-shadow: 0 7px 16px -9px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 16px; font-weight: 650; letter-spacing: .2px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--sub); }

.head-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sub);
    background: #f4f6fa;
    border: 1px solid var(--line);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}

.dot.bad { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.dot.wait { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); }

.ghost-btn {
    font-family: inherit;
    font-size: 12.5px;
    color: var(--sub);
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 41, .04);
    transition: all .18s var(--ease);
}

.ghost-btn:hover {
    color: var(--text);
    border-color: #cfd7e5;
    background: #fbfcfe;
    transform: translateY(-1px);
}

.ghost-btn.on {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* 日志筛选区：多行自适应，不横向滚动 */
#logView .query-row .field { flex: 1 1 170px; min-width: 150px; }
#logView select { cursor: pointer; }

/* ---------------- 机房选择 ---------------- */
.node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.node-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 19px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.node-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .22s var(--ease);
}

.node-card:hover {
    transform: translateY(-2px);
    border-color: #cfd7e5;
    box-shadow: 0 2px 4px rgba(15, 23, 41, .05), 0 18px 34px -20px rgba(15, 23, 41, .28);
}

.node-card.active {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), #fff 72%);
    box-shadow: 0 0 0 3px var(--accent-ring), 0 16px 34px -20px var(--accent-shadow);
}

.node-card.active::before { transform: scaleY(1); }

.node-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #7c8798;
    background: #f1f4f9;
    transition: all .2s var(--ease);
}

.node-card.active .node-icon {
    color: #fff;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    box-shadow: 0 6px 16px -8px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.node-name {
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: .2px;
    line-height: 1.4;
}

.node-desc {
    font-size: 12.5px;
    color: var(--sub);
}

.node-check {
    margin-left: auto;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: transparent;
    border: 1.5px solid #dfe4ed;
    transition: all .2s var(--ease);
}

.node-card.active .node-check {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

/* ---------------- 查询区 ---------------- */
.query-card {
    padding: 19px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.query-row {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.grow { flex: 1 1 300px; min-width: 220px; }

.field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sub);
    letter-spacing: .2px;
}

input[type="text"], input[type="date"], select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fbfcfe;
    outline: none;
    transition: all .18s var(--ease);
}

input.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace; letter-spacing: .4px; }

input::placeholder { color: #aab3c2; }

input:hover, select:hover { border-color: #cfd7e5; }

input:focus, select:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 620;
    color: #fff;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    box-shadow: 0 1px 2px rgba(15, 23, 41, .1), 0 8px 18px -10px var(--accent-shadow);
    transition: all .18s var(--ease);
}

.btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(15, 23, 41, .12), 0 12px 24px -12px var(--accent-shadow);
}

.btn:active { transform: translateY(0); filter: brightness(.98); }

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

.btn.ghost {
    color: var(--sub);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 41, .04);
}

.btn.ghost:hover {
    color: var(--text);
    border-color: #cfd7e5;
    background: #fbfcfe;
    filter: none;
}

.btn.ok { background: linear-gradient(180deg, #10b981, #059669); box-shadow: 0 1px 2px rgba(15, 23, 41, .1), 0 8px 18px -10px rgba(5, 150, 105, .5); }
.btn.danger { background: linear-gradient(180deg, #ef4444, #dc2626); box-shadow: 0 1px 2px rgba(15, 23, 41, .1), 0 8px 18px -10px rgba(220, 38, 38, .5); }

.btn.sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }

.hint { font-size: 12.5px; color: var(--mute); }

/* 最近查询 */
.recent {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.recent-label { font-size: 12px; color: var(--mute); }

.chip {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--sub);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    background: #f6f8fc;
    border: 1px solid var(--line);
    transition: all .16s var(--ease);
}

.chip:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* ---------------- Tabs（分段控件） ---------------- */
.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 5px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #eff2f7;
    box-shadow: inset 0 1px 2px rgba(15, 23, 41, .04);
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sub);
    padding: 8px 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all .18s var(--ease);
}

.tab:hover { color: var(--text); background: rgba(255, 255, 255, .72); }

.tab.active {
    color: var(--accent-dark);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 41, .07), 0 5px 14px -8px rgba(15, 23, 41, .3);
}

.tab .badge {
    min-width: 19px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    color: var(--sub);
    background: rgba(15, 23, 41, .07);
}

.tab.active .badge { color: #fff; background: var(--accent); }
.tab .badge.alert { color: #fff; background: #ef4444; }

/* ---------------- 结果面板 ---------------- */
.panel {
    padding: 22px;
    min-height: 250px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    animation: rise .26s var(--ease);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .2px;
}

.panel-meta {
    margin-left: auto;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--mute);
}

/* 指标 */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 11px;
    margin-bottom: 18px;
}

.metric {
    position: relative;
    overflow: hidden;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fbfcfe);
    transition: all .18s var(--ease);
}

.metric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: .3;
}

.metric:hover {
    transform: translateY(-1px);
    border-color: #dbe2ee;
    box-shadow: 0 10px 22px -14px rgba(15, 23, 41, .3);
}

.metric.hi { background: linear-gradient(180deg, #fff, var(--danger-soft)); border-color: #fbd5d5; }
.metric.hi::before { background: var(--danger); opacity: .75; }
.metric.good { background: linear-gradient(180deg, #fff, var(--ok-soft)); border-color: #cdeedd; }
.metric.good::before { background: var(--ok); opacity: .7; }
.metric.warn { background: linear-gradient(180deg, #fff, var(--warn-soft)); border-color: #f6e2bd; }
.metric.warn::before { background: #d97706; opacity: .7; }

.metric-k {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sub);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-v {
    font-family: ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.25;
}

.metric.hi .metric-v { color: var(--danger); }
.metric.good .metric-v { color: var(--ok); }
.metric.warn .metric-v { color: var(--warn); }

.metric-v small {
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mute);
    margin-left: 3px;
}

/* key-value */
.kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 4px 18px;
}

.kv {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 2px;
    font-size: 13px;
    border-bottom: 1px dashed var(--line-soft);
}

.kv-k { color: var(--sub); flex-shrink: 0; }
.kv-v {
    font-family: ui-monospace, Consolas, monospace;
    text-align: right;
    word-break: break-all;
}

/* 表格：纵向可滚，横向不滚（长文本自动换行） */
.table-wrap {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 640px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

table.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    table-layout: auto;
}

table.grid th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    padding: 11px 15px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #6b7686;
    background: #f7f9fc;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    word-break: break-word;
}

table.grid td {
    padding: 11px 15px;
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

table.grid tbody tr { transition: background .14s var(--ease); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: #f9fbff; }

table.grid td.num {
    font-family: ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

table.grid td.mono { font-family: ui-monospace, Consolas, monospace; }

/* 短字段保持一行 */
table.grid td.nowrap, table.grid th.nowrap { white-space: nowrap; }

/* 长文本列：自动换行（不设 max-width，避免 table-cell 下失效；表格总宽受容器约束） */
table.grid td.text {
    min-width: 120px;
    font-family: inherit;
    line-height: 1.65;
    color: #334155;
}

.row-acts { display: flex; gap: 6px; justify-content: flex-end; }

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sub);
    background: #eef1f6;
}

.tag.green { color: var(--ok); background: var(--ok-soft); }
.tag.red { color: var(--danger); background: var(--danger-soft); }
.tag.amber { color: var(--warn); background: var(--warn-soft); }
.tag.blue { color: var(--brand-dark); background: var(--brand-soft); }

/* 状态区 */
.state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 62px 20px;
    text-align: center;
    color: var(--mute);
}

.state svg { opacity: .3; }
.state-title { font-size: 14.5px; font-weight: 600; color: var(--sub); }
.state-desc { font-size: 12.5px; max-width: 400px; line-height: 1.7; }

.spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid rgba(15, 23, 41, .08);
    border-top-color: var(--accent);
    animation: spin .68s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 提示条 */
.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.65;
}

.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert.error { color: #991b1b; background: var(--danger-soft); border: 1px solid #fbd5d5; }
.alert.ok { color: #065f46; background: var(--ok-soft); border: 1px solid #cdeedd; }
.alert.info { color: #1e40af; background: var(--brand-soft); border: 1px solid #d8e6ff; }
.alert code { font-family: ui-monospace, Consolas, monospace; }

/* 操作条 */
.actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding: 13px;
    margin-bottom: 14px;
    border-radius: 13px;
    border: 1px dashed #d7dee9;
    background: #fafbfe;
}

.actions .lbl { font-size: 12px; font-weight: 650; color: var(--sub); }
.actions .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex-wrap: wrap;
    padding: 15px;
    margin-bottom: 16px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #fafbfe;
}

.inline-form .field { flex: 0 1 175px; }
.inline-form .field.wide { flex: 1 1 250px; }

/* 图表区 */
.chart-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 16px;
}

.seg {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #eff2f7;
}

.seg-item {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
    padding: 7px 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transition: all .16s var(--ease);
}

.seg-item:hover { color: var(--text); }

.seg-item.on {
    color: var(--accent-dark);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 41, .07), 0 4px 12px -7px rgba(15, 23, 41, .3);
}

.chart-dates { display: flex; align-items: center; gap: 9px; }
.chart-dates input[type="date"] { width: auto; padding: 8px 11px; font-size: 13px; }
.tilde { color: var(--mute); }

.chart-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fcfdff, #fff);
}

.chart-stage img { width: 100%; display: block; border-radius: 9px; }

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 56px 0;
    font-size: 13px;
    color: var(--mute);
}

/* 空态 */
.empty {
    padding: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--mute);
    border-radius: 13px;
    border: 1px dashed #dde3ed;
    background: #fafbfd;
}

/* 弹层（浅色遮罩） */
.mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(148, 163, 184, .26);
    backdrop-filter: blur(4px);
}

.mask.show { display: flex; }

.modal {
    width: 100%;
    max-width: 405px;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: pop .22s var(--ease);
}

@keyframes pop {
    from { opacity: 0; transform: scale(.97) translateY(8px); }
    to { opacity: 1; transform: none; }
}

.modal h3 { margin: 0 0 5px; font-size: 16.5px; font-weight: 650; }
.modal p { margin: 0 0 17px; font-size: 13px; color: var(--sub); line-height: 1.65; }

.modal-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 19px;
}

/* 响应式 */
@media (max-width: 760px) {
    .wrap { padding: 18px 15px 56px; }
    .app-head { padding: 14px 16px; }
    .panel, .query-card { padding: 16px; }
    .btn { width: 100%; }
    .btn.sm { width: auto; }
    .query-row .btn { flex: 1 1 100%; }
    .metrics { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
    .chart-bar { flex-direction: column; align-items: stretch; }
    /* 窄屏下也换行，不做横向滚动 */
    .seg { flex-wrap: wrap; justify-content: center; }
    .chart-dates { flex-wrap: wrap; justify-content: space-between; }
    .tabs { flex-wrap: wrap; }
    .tab { flex: 1 1 auto; justify-content: center; }
    .head-right { width: 100%; margin-left: 0; justify-content: space-between; }
}
