/* =============================================================
   92diy.com 域名说明页

   设计目标：和 nb87.com 现在的样子是同一套语言 —— 同样的底色和极光、
   同样的玻璃卡片（上亮下暗的渐变描边）、同样的按钮（实心渐变主按钮 +
   玻璃胶囊次按钮）、同样的品牌光晕。访客从 92diy 点到 nb87，
   不应该有"换了一个站"的割裂感。

   两条不能动的红线（这个页面存在的意义就在这）：
   - noindex,nofollow,noarchive + robots.txt Disallow：旧域名的历史
     不能牵连 nb87.com
   - 出站链接一律 rel="nofollow"，不传递任何权重
   样式层不碰这两件事，但改动时要保证没把它们弄丢。
   ============================================================= */

:root {
    color-scheme: dark;
    --bg: #070a12;
    --panel: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .08);
    --text: #eef2fa;
    --muted: rgba(233, 239, 250, .62);
    --dim: rgba(233, 239, 250, .40);
    --blue: #2f6bff;
    --teal: #14b8a6;
    --violet: #6d43ff;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: 160ms;
    --dur-base: 280ms;
    --radius: 20px;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 极光直接画进 body 背景，不做独立图层、不用 filter:blur()。
   nb87 首页那次卡顿就是三个 blur(100px) 的浮层吃掉了帧预算，
   这里从一开始就避开。 */
body {
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(58vw 46vw at 14% 4%, rgba(47, 107, 255, .30), transparent 62%),
        radial-gradient(48vw 40vw at 92% 16%, rgba(109, 67, 255, .22), transparent 66%),
        radial-gradient(52vw 40vw at 50% 100%, rgba(20, 184, 166, .12), transparent 70%);
}

body::after {
    position: fixed;
    z-index: 20;
    inset: 0;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    content: "";
    pointer-events: none;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.page-grid {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 90% 58% at 50% 0, #000, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 58% at 50% 0, #000, transparent 80%);
    pointer-events: none;
}

.page-shell {
    display: flex;
    width: min(100% - 48px, 1180px);
    min-height: 100svh;
    margin: 0 auto;
    flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.site-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }

/* 品牌图标带呼吸光晕，和 nb87 顶栏是同一处理 */
.brand-mark {
    position: relative;
    display: grid;
    width: 42px; height: 42px;
    flex: 0 0 auto;
    place-items: center;
}
.brand-mark::after {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: rgba(47, 107, 255, .55);
    content: '';
    filter: blur(11px);
    animation: brand-aura 2.6s ease-in-out infinite;
}
@keyframes brand-aura {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%      { opacity: .75; transform: scale(1.25); }
}
.brand-mark svg { position: relative; z-index: 1; width: 42px; height: 42px; }

.brand-copy { display: grid; min-width: 0; gap: 3px; }
.brand-copy strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-copy small { color: var(--dim); font-size: 8.5px; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }

/* 状态胶囊 */
.domain-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .038);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.domain-state i {
    width: 6px; height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .16);
    animation: state-pulse 2.4s ease-in-out infinite;
}
@keyframes state-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(45, 212, 191, .1); }
    50%      { box-shadow: 0 0 0 6px rgba(45, 212, 191, .22); }
}

/* ---------- 主区 ----------
   不让 .hero 用 flex:1 去撑满剩余高度 —— 那样多出来的空间会全部落进它自己，
   一半顶在标题上方、一半垫在下方，结果就是"三条说明"和下面的域名条被硬生生
   拉开一百多像素。
   改成两块都不伸缩，靠 margin-top:auto / margin-bottom:auto 把剩余空间
   平分到整组的上下两侧，组内间距保持设计值。 */
.hero {
    display: grid;
    flex: 0 0 auto;
    align-items: center;
    gap: 68px;
    margin-top: auto;
    padding: 48px 0 40px;
    grid-template-columns: minmax(0, 1fr) 424px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 26px;
    color: var(--dim);
    font-size: 11.5px;
}
.eyebrow span {
    padding: 5px 11px;
    border: 1px solid rgba(108, 147, 255, .28);
    border-radius: 999px;
    background: rgba(92, 134, 255, .12);
    color: #9db3ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

/* 60px 时「新的创造，在 NB87 继续。」放不下左栏（688px），会断在「继/续」
   中间。收到 52px 正好一行装得下，标题也不再占三行。 */
.hero-copy h1 {
    margin: 0;
    font-size: clamp(32px, 3.9vw, 52px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.18;
    text-wrap: balance;
}
.hero-copy h1 em {
    display: inline;
    background: linear-gradient(100deg, #7fa2ff, #a98bff 52%, #5ee0cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.lead {
    max-width: 520px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}
.lead strong { color: #dbe4ff; font-weight: 600; }

/* ---------- 按钮 ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition:
        transform var(--dur-base) var(--ease),
        box-shadow var(--dur-base) var(--ease),
        background var(--dur-base) var(--ease),
        border-color var(--dur-base) var(--ease),
        color var(--dur-base) var(--ease),
        filter var(--dur-base) var(--ease);
}
.button svg {
    width: 16px; height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--dur-base) var(--ease);
}
.button:focus-visible { outline: 2px solid #7d9cff; outline-offset: 3px; }

.button-primary {
    border-color: rgba(122, 158, 255, .42);
    background: linear-gradient(145deg, #4b81ff, #2a55d8);
    box-shadow: 0 10px 26px rgba(47, 107, 255, .36), inset 0 1px 0 rgba(255, 255, 255, .22);
    color: #fff;
}
.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(47, 107, 255, .48), inset 0 1px 0 rgba(255, 255, 255, .28);
    filter: brightness(1.06);
}
.button-primary:hover svg { transform: translateX(3px); }
.button-primary:active { transform: translateY(0); }

.button-secondary {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}
.button-secondary:hover {
    border-color: rgba(112, 148, 255, .45);
    background: rgba(92, 134, 255, .12);
    color: #fff;
}

.copy-result { min-height: 18px; margin: 12px 0 0; color: #8fe3d3; font-size: 12px; }

/* ---------- 三条说明 ---------- */
.assurances { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.assurances span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .026);
    color: var(--muted);
    font-size: 11.5px;
}
/* 原来是一个 ✓ 字符，字形随系统字体变；换成画出来的对勾 */
.assurances i {
    display: grid;
    width: 15px; height: 15px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(45, 212, 191, .16);
    color: transparent;
    font-size: 0;
}
.assurances i::before {
    width: 7px; height: 4px;
    border-bottom: 1.6px solid #4fd8c4;
    border-left: 1.6px solid #4fd8c4;
    content: '';
    transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------- 官网卡片 ---------- */
.official-card {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    isolation: isolate;
}
/* 上亮下暗的渐变描边 —— nb87 卡片的标志性做法，
   比一条均匀的 1px 边更像"有光从上面打下来" */
.official-card::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.05) 42%, rgba(255,255,255,.02));
    content: '';
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: var(--muted);
    font-size: 11.5px;
}
.card-topline > span { display: inline-flex; align-items: center; gap: 8px; }
.card-topline i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .14);
}
.card-topline code {
    color: var(--dim);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9.5px;
    letter-spacing: .14em;
}

.official-brand { display: flex; align-items: center; gap: 13px; }
.official-logo {
    display: grid;
    width: 44px; height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .05);
}
.official-logo svg { width: 26px; height: 26px; }
.official-brand small { display: block; color: var(--dim); font-size: 8.5px; font-weight: 700; letter-spacing: .2em; }
.official-brand strong { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }

/* 域名是这张卡片的主角，给它足够的重量 */
.official-domain {
    position: relative;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(108, 147, 255, .22);
    border-radius: 15px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(92, 134, 255, .18), transparent 60%),
        rgba(10, 16, 32, .5);
}
.official-domain small { display: block; color: #8ba3e8; font-size: 8.5px; font-weight: 800; letter-spacing: .2em; }
.official-domain strong {
    display: block;
    margin: 9px 0 5px;
    background: linear-gradient(100deg, #ffffff, #cbd9ff 55%, #9fe8dc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: .01em;
}
.official-domain > span { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }

.brand-slogan { margin: 0; font-size: 14px; font-weight: 600; }
.brand-slogan em {
    background: linear-gradient(100deg, #7fa2ff, #5ee0cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

/* ---------- 域名对照条（全宽）----------
   原先这块挤在卡片底部，只有两行灰字。挪出来做成全宽三段式之后，
   页面从"上下各空一大块的居中英雄区"变成三段有节奏的版面，
   而且这页最该说清楚的事（旧域名 → 新域名）也真正成了视觉中心。 */
.route-band {
    display: grid;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 16px;
    margin-bottom: auto;
    padding: 0 0 44px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.route-node {
    position: relative;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .022);
}
.route-node small {
    display: block;
    color: var(--dim);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}
.route-node strong {
    display: block;
    margin: 9px 0 5px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 19px;
    font-weight: 700;
}
.route-node > span { color: var(--dim); font-size: 12px; }
/* 旧域名整体压暗，一眼看出哪个是"过去式" */
.route-node:not(.is-current) strong { text-decoration: line-through; text-decoration-color: rgba(233, 239, 250, .28); }
.route-node.is-current {
    border-color: rgba(108, 147, 255, .34);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(92, 134, 255, .16), transparent 62%),
        rgba(92, 134, 255, .07);
    box-shadow: 0 14px 34px rgba(47, 107, 255, .16);
}
.route-node.is-current small { color: #9db3ff; }
.route-node.is-current strong { color: #e2e9ff; text-decoration: none; }
.route-node.is-current > span { color: #8fe3d3; }

.route-arrow { display: grid; place-items: center; padding: 0 6px; }
.route-arrow svg {
    width: 44px; height: 14px;
    fill: none;
    stroke: rgba(159, 183, 255, .5);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 页脚 ---------- */
.site-footer {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: 11.5px;
}

/* ---------- 410 页 ---------- */
.gone-main { display: grid; flex: 1 1 auto; place-items: center; padding: 56px 0; }
.gone-card {
    position: relative;
    width: min(100%, 680px);
    padding: 40px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    isolation: isolate;
    text-align: center;
}
.gone-card::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.05) 42%, rgba(255,255,255,.02));
    content: '';
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.gone-card .eyebrow { justify-content: center; }
.gone-card h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; text-wrap: balance; }
.gone-card .lead { max-width: 100%; margin: 18px auto 0; }
.gone-card .actions { justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .hero { gap: 44px; grid-template-columns: minmax(0, 1fr); padding: 44px 0; }
    .official-card { order: 2; }
    .lead { max-width: 100%; }
}

@media (max-width: 600px) {
    .page-shell { width: calc(100% - 32px); }
    .site-header { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
    .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
    .domain-state { padding: 6px 12px; font-size: 11px; }
    .hero { gap: 34px; padding: 34px 0; }
    .eyebrow { margin-bottom: 16px; }
    .lead { margin-top: 18px; font-size: 14px; }
    .actions { gap: 10px; margin-top: 24px; }
    .button { width: 100%; justify-content: center; padding: 13px 20px; }
    .assurances { margin-top: 22px; }
    .official-card { gap: 16px; padding: 20px; }
    .route-band { gap: 10px; grid-template-columns: minmax(0,1fr); padding: 14px 0 24px; }
    .route-arrow svg { width: 14px; height: 30px; }
    .gone-card { padding: 28px 22px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
