﻿:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #d98ca6;
    --accent-soft: rgba(217, 140, 166, .1);
    --accent-line: rgba(217, 140, 166, .3);
    --border: rgba(100, 116, 139, .18);
    --radius: 14px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

code {
    font-family: var(--mono);
    font-size: .92em;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 22px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12.5px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

.brand-text {
    font-size: 15px;
}

.header-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.status-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.status-pill.online {
    color: #15803d;
    border-color: rgba(34, 197, 94, .3);
    background: rgba(34, 197, 94, .06);
}

.status-pill.online .dot {
    background: #22c55e;
}

.status-pill.offline {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, .25);
    background: rgba(185, 28, 28, .05);
}

.status-pill.offline .dot {
    background: #ef4444;
}

.header-link {
    font-size: 13.5px;
    color: var(--muted);
}

.header-link:hover {
    color: var(--accent);
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: filter .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(.95);
    color: #fff;
}

.btn-ghost {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent-line);
    color: var(--text);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
}

.copy-btn {
    flex: none;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.copy-btn:hover {
    border-color: var(--accent-line);
    color: var(--accent);
}

/* landing */
.hero {
    padding: 72px 22px 34px;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: -.03em;
}

.lead {
    max-width: 620px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 16.5px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
}

.hero-meta strong {
    color: var(--text);
    font-weight: 600;
}

.section {
    margin: 56px 0;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 22px;
}

.section-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.step-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 22px;
    min-width: 0;
}

.step-card h3,
.guide-card h3 {
    margin-top: 10px;
    font-size: 16px;
}

.step-card p,
.guide-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
}

.step-no {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
}

.step-card .step-no + h3 {
    margin-top: 8px;
}

pre.code {
    margin: 12px 0 0;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    line-height: 1.65;
    overflow-x: auto;
    white-space: pre;
}

pre.code code {
    font-size: inherit;
}

.notice {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 15px 18px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
    background: var(--accent-soft);
    font-size: 13.5px;
}

.notice strong {
    flex: none;
    color: var(--accent);
    font-weight: 600;
}

.notice span {
    color: var(--muted);
}

/* setup */
.setup-wrap {
    max-width: 900px;
    padding-top: 40px;
    padding-bottom: 70px;
}

.setup-head h1 {
    margin-top: 8px;
    font-size: clamp(26px, 4vw, 34px);
}

.setup-head p {
    margin-top: 8px;
    font-size: 14px;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.stepper li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13.5px;
}

.stepper li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    font-family: var(--mono);
    font-size: 12px;
}

.stepper li em {
    font-style: normal;
}

.stepper li.active {
    color: var(--text);
}

.stepper li.active span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.stepper li.done span {
    border-color: var(--accent-line);
    color: var(--accent);
}

.panel {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.panel-head h2 {
    font-size: 18px;
}

.panel-head p {
    margin-top: 5px;
    font-size: 13.5px;
}

.node-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.node-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.node-card:hover {
    border-color: var(--accent-line);
}

.node-card.selected {
    border-color: var(--accent);
    background: rgba(217, 140, 166, .045);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.node-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.node-addr {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
}

.node-side {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.node-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 64px;
}

.node-metric span {
    color: var(--muted);
    font-size: 11.5px;
}

.node-metric strong {
    font-size: 13.5px;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    vertical-align: middle;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.skeleton,
.empty-state {
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.actions-back {
    margin-top: 16px;
}

.tabs {
    display: inline-flex;
    gap: 4px;
    margin-top: 18px;
    margin-bottom: 22px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.tab {
    padding: 8px 17px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 600;
}

label:first-child {
    margin-top: 0;
}

.input {
    width: 100%;
    max-width: 340px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 140, 166, .15);
}

select.input {
    height: 43px;
    cursor: pointer;
}

.input-group {
    display: flex;
    align-items: stretch;
    max-width: 460px;
}

.input-group .input {
    flex: 1 1 auto;
    max-width: none;
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 0 10px 10px 0;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.hint {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.hint.ok {
    color: #15803d;
}

.hint.err {
    color: #b91c1c;
}

.hint.warn {
    color: #b45309;
}

.tab-body > .muted {
    margin-top: 12px;
}

/* result */
.result-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-head h2 {
    font-size: 20px;
}

.ok-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.result-note {
    margin-top: 8px;
}

.result-conn {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    background: var(--accent-soft);
}

.result-conn .label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
}

.conn-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.conn-line code {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .01em;
    word-break: break-all;
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card h3 {
    font-size: 15px;
}

.card h3 + pre.code,
.download-list + h3 {
    margin-top: 12px;
}

.download-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.download-item {
    display: block;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    transition: border-color .15s ease, color .15s ease;
}

.download-item:hover {
    border-color: var(--accent-line);
    color: var(--accent);
}

.stats-title {
    margin-top: 30px;
    font-size: 17px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.stat-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    min-width: 0;
}

.stat-label {
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
}

.stat-main {
    margin-top: 7px;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    word-break: break-all;
}

.stat-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
    word-break: break-all;
}

.stats-grid + .muted {
    margin-top: 12px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 860px) {
    .hero {
        padding-top: 52px;
    }

    .section {
        margin: 44px 0;
    }

    .step-grid,
    .guide-grid,
    .result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .node-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .node-side {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 16px;
    }

    .brand-text {
        display: none;
    }

    .header-side {
        gap: 10px;
    }

    .hero {
        padding: 40px 16px 26px;
    }

    .lead {
        font-size: 15px;
    }

    .hero-meta {
        gap: 6px 16px;
        font-size: 12.5px;
    }

    .panel {
        padding: 20px 17px;
    }

    .stepper {
        gap: 8px 16px;
    }

    .stepper li em {
        font-size: 12.5px;
    }

    .tabs {
        display: flex;
        width: 100%;
    }

    .tab {
        flex: 1 1 0;
        padding: 8px 10px;
    }

    .input {
        max-width: 100%;
    }

    .input-group {
        max-width: 100%;
    }

    .suffix {
        padding: 0 9px;
        font-size: 11.5px;
    }

    .conn-line code {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-btn {
        width: 100%;
    }
}

/* ===== 与 kazamata.uk 一致的背景层 ===== */
.body-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -999;
    pointer-events: none;
}

.body-background::before,
.body-background::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-image: url("https://kazamata.uk/wp-content/themes/lolimeow-shiroki/assets/images/background.svg");
    background-position: 7% 100px;
    background-repeat: no-repeat;
    background-size: contain;
}

.body-background::after {
    transform: scaleX(-1);
}

@media (max-width: 1200px) {
    .body-background {
        display: none;
    }
}

