/**
 * style/main.css
 * 用途：GitHub 加速站整站样式（首页 hero、输入条、快捷示例、Releases 面板、用法区、示例列表、页头页脚）
 * 适配：PC / Pad / Mobile
 */

/* ========== 设计变量 ========== */
:root {
    --ink: #0a1628;
    --ink-soft: #3d5166;
    --paper: #eef3f7;
    --paper-2: #e2eaf1;
    --line: #c5d3df;
    --accent: #0c8f9e;
    --accent-deep: #076f7b;
    --warn: #c45c2a;
    --code-bg: #0b1520;
    --code-fg: #c8e8ec;
    --shadow: 0 18px 40px rgba(10, 22, 40, 0.1);
    --radius: 12px;
    --font-display: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "IBM Plex Mono", "Sarasa Mono SC", Consolas, monospace;
    /* PC 略加宽，保证 Release 5 个节点按钮一行排下 */
    --max: 1100px;
}

/* ========== 基础重置 ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-display);
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(12, 143, 158, 0.16), transparent 55%),
        radial-gradient(800px 420px at 100% 5%, rgba(10, 22, 40, 0.06), transparent 48%),
        linear-gradient(180deg, #f5f8fb 0%, var(--paper) 45%, #e6edf3 100%);
    line-height: 1.6;
}

a {
    color: var(--accent-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

/* ========== 页头 site-header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(238, 243, 247, 0.86);
    border-bottom: 1px solid rgba(197, 211, 223, 0.7);
}

.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.1rem;
    font-size: 0.92rem;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent-deep);
}

/* 导航当前页（GitHub / Docker 互链） */
.site-nav a[aria-current="page"] {
    color: var(--accent-deep);
    font-weight: 700;
}

/* ========== 主内容区 ========== */
.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

/* ========== Hero：品牌 + 输入 ========== */
.hero {
    padding: 2.2rem 0 0;
    text-align: center;
    animation: rise 0.7s ease both;
}

/* 顶部 GitHub 图标 */
.hero__icon {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
    color: var(--ink);
}

.hero__icon svg,
.hero__icon img {
    display: block;
    width: clamp(56px, 12vw, 72px);
    height: auto;
}

.hero__eyebrow {
    margin: 0 0 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.hero__brand {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero__lead {
    margin: 0.9rem auto 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* ========== 加速输入条 relay ========== */
.relay {
    margin-top: 1.8rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: rise 0.85s ease 0.08s both;
    text-align: left; /* 表单区左对齐，与居中标题区分开 */
}

.relay__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--ink-soft);
}

/* ========== 多节点选择 node-pick ========== */
.node-pick {
    margin: 1.15rem 0 0;
    padding: 0;
    border: 0;
}

.node-pick__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.node-pick__head .relay__label {
    margin-bottom: 0;
}

/* 测速时间文案（替代原「节点测速」按钮） */
.node-pick__tested {
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-align: right;
    line-height: 1.35;
}

.node-pick__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    /* 节点很多时限制高度，内部滚动 */
    max-height: min(420px, 55vh);
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* 节点列表滚动条（WebKit / 标准双写，兼容旧 Safari） */
.node-pick__list::-webkit-scrollbar {
    width: 6px;
}

.node-pick__list::-webkit-scrollbar-thumb {
    background: rgba(90, 110, 128, 0.35);
    border-radius: 3px;
}

.node-pick__item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.node-pick__item input {
    margin: 0.2rem 0 0;
    accent-color: var(--accent-deep);
    flex-shrink: 0;
}

.node-pick__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

/* 上行：节点网址 */
.node-pick__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.35;
}

/* 下行：延迟 + 下载速度（文案固定色，数值变色） */
.node-pick__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.node-pick__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    min-width: 0;
}

/* 「延迟：」「速度：」固定灰色 */
.node-pick__stat-label {
    color: var(--ink-soft);
    font-weight: 600;
}

/* 后面的时间 / 速度值才变色 */
.node-pick__val {
    color: var(--ink-soft);
}

.node-pick__val.is-loading {
    color: var(--ink-soft);
}

.node-pick__val.is-good {
    color: #1a8f5c;
}

.node-pick__val.is-mid {
    color: #b8860b;
}

.node-pick__val.is-slow {
    color: var(--warn);
}

.node-pick__val.is-bad {
    color: #c62828;
}

.node-pick__item.is-active,
.node-pick__item:has(input:checked) {
    border-color: var(--accent);
    background: rgba(12, 143, 158, 0.06);
    box-shadow: 0 0 0 3px rgba(12, 143, 158, 0.12);
}

.relay__row {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.relay__input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.relay__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(12, 143, 158, 0.18);
}

/* 输入非法：红框提示（对应「请输入有效的 GitHub URL」） */
.relay__input.is-invalid {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
}

.relay__input.is-invalid:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.22);
}

.relay__error {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e53935 !important;
    text-align: left;
}

.relay__error[hidden] {
    display: none !important;
}

.relay__btn {
    border: 0;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #f4fffb;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.relay__btn-icon {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.9;
}

.relay__btn:hover {
    filter: brightness(1.05);
}

.relay__btn:active {
    transform: translateY(1px);
}

/* ========== 转换结果区 relay-result ========== */
.relay-result {
    margin-top: 0.9rem;
    animation: rise 0.35s ease both;
}

.relay-result__box {
    padding: 0.95rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f4f8fa;
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;
}

.relay-result__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.relay-result__btn {
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    background: #fff;
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.relay-result__btn:hover {
    background: rgba(12, 143, 158, 0.08);
}

.relay-result__btn--primary {
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #f4fffb;
}

.relay-result__btn--primary:hover {
    filter: brightness(1.05);
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
}

/* 复制成功：按钮内显示「✓ 已复制」 */
.relay-result__btn.is-copied {
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #f4fffb;
}

@media (min-width: 560px) {
    .relay-result__actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ========== 分区标题（下划线与文字等宽、统一粗细） ========== */
.section-title {
    display: inline-block;
    margin: 2.2rem 0 0.55rem;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 0.4rem;
    background: var(--accent);
}

.section-desc {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* 「怎么用」紧接下载工具，避免再叠一层大顶距 */
.usage .section-title {
    margin-top: 0;
}

/* ========== 下载工具：距上方可大些，距下方标题要紧凑 ========== */
.dl-tools {
    margin: 1.5rem 0 0.7rem;
}

.dl-tools__line {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.4;
}

.dl-tools__line a {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.dl-tools__line a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.dl-tools__sep {
    margin: 0 0.4rem;
    color: var(--line);
}

/* IDM Crack 等次要链接：字号略小 */
.dl-tools__sm {
    font-size: 0.78rem;
    font-weight: 600;
}

/* ========== 用法 usage ========== */
.usage {
    animation: rise 0.9s ease 0.12s both;
    margin-top: 1.5rem;
}

.usage__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

/* 防止 grid 子项把整页撑出横向滚动 */
.usage__block {
    min-width: 0;
    max-width: 100%;
}

.usage__block h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
}

.code {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: var(--code-bg);
    color: var(--code-fg);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-x: auto;
    line-height: 1.5;
    max-width: 100%;
}

.code code {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.code__muted {
    opacity: 0.55;
}

/* ========== 示例列表 examples ========== */
.examples {
    animation: rise 1s ease 0.16s both;
}

.example-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.example-list__item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(197, 211, 223, 0.7);
}

.example-list__item:last-child {
    border-bottom: 0;
}

.example-list__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-deep);
    padding-top: 0.15rem;
}

.example-list__url {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
    cursor: pointer;
    word-break: break-all;
    line-height: 1.45;
}

.example-list__url:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.notice {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: var(--warn);
}

/* ========== 页脚 site-footer ========== */
.site-footer {
    border-top: 1px solid rgba(197, 211, 223, 0.75);
    background: rgba(226, 234, 241, 0.7);
}

.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.4rem 1.25rem 2rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    text-align: center;
}

.site-footer__brand,
.site-footer__note,
.site-footer__icp {
    margin: 0 0 0.35rem;
}

.site-footer__brand:last-child,
.site-footer__note:last-child,
.site-footer__icp:last-child {
    margin-bottom: 0;
}

/* ========== 动效 ========== */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero,
    .relay,
    .usage,
    .examples {
        animation: none;
    }
}

/* ========== Pad（平板） ========== */
@media (min-width: 768px) {
    .page {
        padding-top: 2rem;
    }

    .node-pick__list {
        grid-template-columns: 1fr 1fr;
    }

    .example-list__item {
        grid-template-columns: 8.5rem 1fr;
        padding: 0.95rem 1.15rem;
    }
}

/* ========== PC：三列节点 ========== */
@media (min-width: 1024px) {
    .hero {
        padding-top: 3rem;
    }

    .relay {
        padding: 1.35rem 1.4rem;
    }

    .relay__input {
        font-size: 0.95rem;
    }

    .node-pick__list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ========== 窄屏手机 ========== */
@media (max-width: 560px) {
    .relay__row {
        flex-direction: column;
    }

    /* 仅「转换链接」按钮文字居中 */
    .relay__btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero 说明文案缩小 */
    .hero__lead {
        font-size: 0.85rem;
    }

    .example-list__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .site-nav {
        gap: 0.85rem;
        font-size: 0.86rem;
    }
}

/* ========== 键盘焦点可见性 ========== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========== 快捷示例 quick-ex（输入框下方） ========== */
.quick-ex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin-top: 0.75rem;
}

.quick-ex__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.quick-ex__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.quick-ex__btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.quick-ex__btn:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
    background: rgba(12, 143, 158, 0.06);
}

/* ========== Releases 面板 rel-panel ========== */
.rel-panel {
    margin-top: 1rem;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    animation: rise 0.4s ease both;
    text-align: left;
}

.rel-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.rel-panel__title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.rel-panel__desc {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

.rel-panel__repo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f8fa;
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.rel-panel__repo:hover {
    border-color: var(--accent);
}

.rel-panel__status {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(12, 143, 158, 0.08);
    color: var(--accent-deep);
}

.rel-panel__status.is-loading {
    background: rgba(12, 143, 158, 0.08);
    color: var(--accent-deep);
}

.rel-panel__status.is-error {
    background: rgba(229, 57, 53, 0.08);
    color: #c62828;
}

/* 版本行 */
.rel-ver {
    margin-bottom: 0.9rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(197, 211, 223, 0.75);
}

.rel-ver__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.rel-ver__tag {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.rel-badge {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.rel-badge--latest {
    background: rgba(26, 143, 92, 0.12);
    color: #1a8f5c;
}

.rel-badge--pre {
    background: rgba(184, 134, 11, 0.14);
    color: #9a7209;
}

.rel-ver__meta {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.rel-empty {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* 资产列表 */
.rel-assets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rel-asset {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfd;
}

.rel-asset__info {
    margin-bottom: 0.65rem;
}

.rel-asset__name {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
}

.rel-asset__meta {
    margin: 0.28rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.rel-asset__empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--warn);
}

.rel-node-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rel-node-pair {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
}

.rel-node-btn {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 14rem);
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rel-node-btn:hover {
    color: var(--accent-deep);
    border-color: var(--accent);
    background: rgba(12, 143, 158, 0.06);
}

/* 当前选中节点标记为「推荐」 */
.rel-node-btn--rec {
    border-color: var(--warn);
    background: rgba(196, 92, 42, 0.08);
    color: var(--warn);
}

.rel-node-btn--rec:hover {
    background: rgba(196, 92, 42, 0.14);
    color: var(--warn);
    border-color: var(--warn);
}

.rel-copy {
    border: 1px solid var(--line);
    border-radius: 0 8px 8px 0;
    padding: 0.35rem 0.45rem;
    background: #fff;
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.rel-copy:hover {
    background: rgba(12, 143, 158, 0.08);
}

.rel-copy.is-copied {
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #f4fffb;
}

.rel-src {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(197, 211, 223, 0.75);
}

.rel-src__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

@media (max-width: 560px) {
    .rel-panel {
        padding: 0.9rem;
    }

    .rel-panel__head {
        flex-direction: column;
    }

    .rel-node-btn {
        max-width: 11rem;
        font-size: 0.68rem;
    }
}

@media (min-width: 768px) {
    .rel-panel__title {
        font-size: 1.12rem;
    }
}

/* PC：5 个节点强制单行，均分宽度，过长域名省略号 */
@media (min-width: 1024px) {
    .rel-node-list {
        flex-wrap: nowrap;
        gap: 0.3rem;
    }

    .rel-node-pair {
        flex: 1 1 0;
        max-width: none;
    }

    .rel-node-btn {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        padding: 0.35rem 0.4rem;
        font-size: 0.68rem;
    }

    .rel-copy {
        padding: 0.35rem 0.4rem;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rel-panel {
        animation: none;
    }
}

