:root {
    --bg: #0e0e0e;
    --panel: #1b1b1b;
    --text: #ddd;
    --text-weak: #aaa;
    --muted: #888;
    --border: #2a2a2a;
    --accent: #3000fb;
    --ok: #7fbf7f;
    --warn: #ffc107;
    --err: #ff4f4f;
    --radius: 10px;
    --gap: 16px;
}

.body {
    color: #000;
    text-align: center;
    letter-spacing: 0;
    font-family: IBM Plex Sans, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
}

.section-background {
    position: fixed;
    inset: 0%;
}

.section-content {
    filter: drop-shadow(0 0 15px #4d4d4d80);
    justify-content: center;
    align-items: center;
    display: flex;
    position: fixed;
    inset: 0%;
}

.content-wrapper {
    opacity: 0;
}

.header-404.margin-bottom-1 {
    margin-bottom: 24px;
}

.header-404.margin-bottom-1.remove-margin-top {
    margin-top: 0;
}

.text-1.margin-bottom-2 {
    margin-bottom: 12px;
}

.text-3 {
    font-family: IBM Plex Sans, sans-serif;
}

.code-embed {
    display: none;
}

.margin-bottom-2 {
    margin-bottom: 12px;
}

.glass-layer {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background-color: #fff3;
    position: absolute;
    inset: 0%;
}

.scrolling-wrapper {
    position: absolute;
    inset: 0%;
    overflow: clip;
}

.scrolling-track {
    grid-column-gap: 10vw;
    grid-row-gap: 10vw;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    justify-content: center;
    align-items: center;
    height: 100vh;
    display: flex;
}

.bg-text {
    opacity: 0;
    color: #4d4d4d;
    mix-blend-mode: screen;
    font-family: Orbitron, sans-serif;
    font-size: 70vh;
    font-weight: 700;
    line-height: 100%;
    position: relative;
}

.code-embed-2 {
    display: none;
}

.grain-overlay {
    position: absolute;
    inset: 0%;
}

.code-embed-4,
.code-embed-5 {
    display: none;
}

.bg-text-shell {
    position: relative;
}

.dark-frame {
    position: relative;
    inset: 0%;
}

.margin-bottom-1 {
    margin-bottom: 24px;
}

.code-embed-6,
.code-embed-7 {
    display: none;
}

.bg-clone-shell {
    position: absolute;
    inset: 0%;
}

.bg-text-clone {
    opacity: 0;
    color: #4d4d4d;
    mix-blend-mode: screen;
    font-family: Orbitron, sans-serif;
    font-size: 70vh;
    font-weight: 700;
    line-height: 100%;
    position: absolute;
}

.bg-text-clone.r {
    color: red;
}

.bg-text-clone.g {
    color: #0f0;
}

.bg-text-clone.b {
    color: #00f;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

form,
.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 250px;
    align-items: center;
}

/* 凹陷玻璃输入框：光从上方 → 上沿亮、下沿暗 */
input {
    display: block;
    /* ← 让 margin: auto 生效 */
    width: 100%;
    /* ← 填满容器，与按钮齐宽 */
    max-width: 250px;
    /* ← 与按钮宽度相同 */
    margin: 0 auto;
    /* ← 居中对齐 */
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    color: #000;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, .25),
        /* ↓ 下沿暗（与按钮的 0 4 10 同向） */
        inset 0 -3px 6px rgba(255, 255, 255, .08),
        /* ↑ 上沿亮 */
        0 0 0 1px rgba(255, 255, 255, .05);
    /* 外缘柔光 */
    transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
    outline: none;
}

input:hover {
    background: rgba(255, 255, 255, .09);
    box-shadow:
        inset 0 2.5px 5px rgba(0, 0, 0, .3),
        inset 0 -2.5px 5px rgba(255, 255, 255, .16),
        0 0 0 1px rgba(255, 255, 255, .06);
}

input:focus {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .11);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .35),
        inset 0 -2px 4px rgba(255, 255, 255, .2),
        0 0 0 1.5px rgba(255, 255, 255, .09),
        0 0 6px rgba(255, 255, 255, .22);
}

/* 小屏适配：按钮和输入框宽度同步缩放 */
@media (max-width: 400px) {
    input {
        max-width: 80vw;
        /* 与小屏按钮的 80vw 对齐 */
    }
}

/* 统一覆盖自动填充的默认蓝色背景 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    /* 防止重绘闪烁 */
}

::placeholder {
    color: var(--muted);
    /* #aaa */
    opacity: 0.9;
    /* 轻微半透，让质感柔和 */
}

#username {
    display: block;
    /* 让 margin: auto 生效 */
    width: 100%;
    /* 填满父容器 */
    max-width: 250px;
    /* 与按钮等宽 */
    margin: 0 auto;
    /* 水平居中 */
    box-sizing: border-box;
    /* 防止 padding 撑破宽度 */
}

@media (max-width: 400px) {
    #username {
        max-width: 80vw;
        /* 窄屏时自动收缩 */
    }
}


/* ========== 磨砂按钮（与卡片风格一致，最大圆角） ========== */
button {
    font-family: IBM Plex Sans, sans-serif;
    position: relative;
    z-index: 0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: #4d4d4d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    /* 最大圆角（胶囊形） */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

/* 按钮边缘模糊层（与卡片::before一致） */
button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    /* 径向遮罩，让模糊集中在边缘 */
    -webkit-mask: radial-gradient(110% 110% at 50% 50%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 70%,
            #000 100%);
    mask: radial-gradient(110% 110% at 50% 50%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 70%,
            #000 100%);
}

/* hover：轻微提亮 + 上浮 */
button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ===== 主按钮（红色主动作，例如 Terminate） ===== */
#terminate-btn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    width: 250px;
    height: 250px;
    border-radius: 125px;
    align-items: center;
    font-size: 1.75rem; font-weight: 600; letter-spacing: 0.2rem;
}

#terminate-btn:hover {
    background: rgba(255, 0, 0, .7);
    box-shadow: 0 3px 8px rgba(255, 0, 0, 0.5);
    color:#fff;
}

/* ===== 次级按钮（灰色辅助，如 Submit Name） ===== */
button.small-btn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    width: 250px;
    font-weight: 400;
}

button.small-btn:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    color:#000;
}

/* ===== 移动端优化 ===== */
@media (max-width: 400px) {
    button {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .card {
        max-width: 100%;
    }
}

/* ===== 兜底方案：不支持 backdrop-filter 时 ===== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    button {
        background: rgba(70, 70, 70, 0.85);
    }

    button::before {
        display: none;
    }
}

.page {
    position: relative;
    /* 固定在视口，不随滚动 */
    padding: 2rem;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    flex-direction: column;
    /* 内容垂直排列 */
    z-index: 1;
}

/* 单个卡片的磨砂质感 */
.card {
    box-sizing: border-box;
    width: 375px;
    height: 25vh;
    position: relative;
    isolation: isolate;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(115%);
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    overflow: clip;
    box-shadow:
        0 5px 12px rgba(0, 0, 0, .20),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .25s ease;
}

/* 边缘加厚的磨砂层（中间更清晰、边缘更糊） */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);

    /* 只让这层出现在边缘（径向遮罩） */
    -webkit-mask: radial-gradient(110% 110% at 50% 50%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 65%,
            #000 100%);
    mask: radial-gradient(110% 110% at 50% 50%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 65%,
            #000 100%);
}

/* 悬停状态：略提亮 + 提升层次 */
.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .10);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, .30),
        inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* 兜底方案：浏览器不支持 backdrop-filter 时 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card {
        background: rgba(40, 40, 40, .75);
    }

    .card::before {
        display: none;
    }
}

.term {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: var(--accent);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.term-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: .02em;
    padding-bottom: 4px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--accent);
}

.term-body {
    flex: 1;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 13px;
}

.term-row {
    display: block;
}

.term-line {
    display: inline;
}

.term-muted {
    color: #4d4d4d;
    font-size: 10px;
    letter-spacing: .02em;
}

/* 闪烁光标 */
#term-cursor {
    display: inline-block;
    width: .6ch;
    animation: term-blink 1s steps(1) infinite;
}

@keyframes term-blink {
    50% {
        opacity: 0;
    }
}

/* ========== Terminal 滚动条修饰 ========== */
.term-body {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #4d4d4d transparent;
    /* Firefox */
}

/* Chrome / Edge / Safari */
.term-body::-webkit-scrollbar {
    width: 4px;
    /* 滚动条整体宽度 */
    height: 4px;
}

.term-body::-webkit-scrollbar-thumb {
    background-color: #4d4d4d;
    border-radius: 2px;
    /* 圆角 */
}

.term-body::-webkit-scrollbar-thumb:hover {
    background-color: #5a5a5a;
    /* 轻微变亮，增加可感知度 */
}

.term-body::-webkit-scrollbar-track {
    background: transparent;
}

.term-pos {
    color: #4d4d4d;
    font-size: 10px;
    letter-spacing: .02em;
}

.term-acc {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .02em;
}

header {
    font-family: IBM Plex Sans, sans-serif;
    display: flex;
    align-self: flex-start;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin: 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hint {
    color: var(--muted);
    font-size: .85rem;
}

.footer {
    margin-top: 1.75rem;
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    font-family: IBM Plex Sans, sans-serif;
}

.link {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: all 1s ease-in;   /* 渐缓出现 */
}

/* hover时出现下划线 */
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 1s ease-out;
}

.link:hover::after {
  width: 100%;
}






