/* tech-theme build: 202605291 — 全站胶囊按钮 */
:root {
    --tech-bg: #020617;
    --tech-bg-card: rgba(15, 23, 42, 0.78);
    --tech-bg-card-solid: #0f172a;
    --tech-bg-input: rgba(2, 6, 23, 0.55);
    --tech-border: rgba(56, 189, 248, 0.22);
    --tech-border-soft: rgba(51, 65, 85, 0.55);
    --tech-text: #e2e8f0;
    --tech-text-bright: #f8fafc;
    --tech-text-muted: #94a3b8;
    --tech-text-dim: #64748b;
    --tech-accent: #38bdf8;
    --tech-accent-soft: #7dd3fc;
    --tech-purple: rgba(168, 85, 247, 0.28);
    --tech-success: #86efac;
    --tech-warn: #fde68a;
    --tech-danger: #fca5a5;
    --tech-btn-text: #052e2b;
    --tech-btn-gradient: linear-gradient(135deg, #38bdf8, #22d3ee, #12b5a5);
    --tech-border-gradient: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(168, 85, 247, 0.32), rgba(34, 211, 238, 0.2));
    --tech-text-gradient: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 45%, #38bdf8 100%);
    --tech-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --tech-radius: 16px;
    --tech-radius-sm: 10px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body.site-tech {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--tech-text);
    background: var(--tech-bg);
    position: relative;
}

body.site-tech a {
    color: var(--tech-accent-soft);
}
body.site-tech a:hover {
    color: var(--tech-accent);
}

/* 全站背景 */
.site-tech-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.site-tech-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(500px) rotateX(58deg);
    animation: siteGridMove 18s linear infinite;
}
.site-tech-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}
.site-tech-glow-a {
    width: 420px;
    height: 420px;
    top: -10%;
    left: -15%;
    background: rgba(14, 165, 233, 0.35);
    animation: siteFloatA 8s ease-in-out infinite;
}
.site-tech-glow-b {
    width: 360px;
    height: 360px;
    right: -10%;
    bottom: -10%;
    background: var(--tech-purple);
    animation: siteFloatB 10s ease-in-out infinite;
}
.site-tech-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.04) 48%, transparent 52%);
    background-size: 100% 220%;
    animation: siteScan 5s linear infinite;
}

.site-tech > .navbar,
.site-tech > .page-shell {
    position: relative;
    z-index: 1;
}

/* 导航 */
.site-tech .navbar {
    background: rgba(15, 23, 42, 0.88) !important;
    border-bottom: 1px solid var(--tech-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-tech .navbar-brand {
    font-weight: 700;
    color: var(--tech-text-bright) !important;
    letter-spacing: 0.03em;
}
.site-tech .nav-link {
    color: var(--tech-text-muted) !important;
}
.site-tech .nav-link:hover {
    color: var(--tech-accent) !important;
}
.site-tech .navbar-text {
    color: var(--tech-text-muted) !important;
}
.site-tech .navbar-toggler {
    border-color: var(--tech-border);
}
.site-tech .navbar-toggler-icon {
    filter: invert(1) brightness(0.85);
}

/* 页面容器 */
.site-tech .page-shell {
    padding: 32px 20px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.site-tech .card-shell {
    position: relative;
    overflow: hidden;
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        var(--tech-shadow),
        0 0 40px rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: clamp(20px, 4vw, 40px);
}
.site-tech .card-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--tech-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 卡片 */
.site-tech .card {
    position: relative;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius-sm);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(14, 165, 233, 0.06);
    color: var(--tech-text);
}
.site-tech .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--tech-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.site-tech .card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 32px rgba(56, 189, 248, 0.12);
}
.site-tech .card:hover::before {
    opacity: 1;
}
.site-tech .card .h4,
.site-tech .card .h5 {
    background: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-tech .card .h4.text-danger {
    background: none;
    -webkit-text-fill-color: var(--tech-danger);
    color: var(--tech-danger);
}
.site-tech .card .h4.text-success {
    background: none;
    -webkit-text-fill-color: var(--tech-success);
    color: var(--tech-success);
}
.site-tech .card .h4.text-muted {
    background: none;
    -webkit-text-fill-color: var(--tech-text-muted);
    color: var(--tech-text-muted);
}
.site-tech .dashboard-header h2 {
    background: var(--tech-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-tech .card-title {
    color: var(--tech-text-bright);
    font-weight: 700;
}
.site-tech .card-text {
    color: var(--tech-text-muted);
}

/* ========== 全站统一按钮 / 标签 ========== */
.site-tech .btn,
.site-tech a.btn,
.site-tech button.btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 1.15rem;
    line-height: 1.35;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.site-tech .btn-sm,
.site-tech a.btn-sm {
    font-size: 0.82rem;
    padding: 0.32rem 0.85rem;
}
.site-tech .btn:active {
    transform: translateY(0);
}

/* 主按钮：青色渐变 + 光晕（覆盖 Bootstrap 默认蓝） */
.site-tech .btn-primary,
.site-tech .btn-pill-primary,
.site-tech #admin-confirm-ok {
    background: var(--tech-btn-gradient) !important;
    border: none !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.32) !important;
}
.site-tech .btn-primary:hover,
.site-tech .btn-primary:focus,
.site-tech .btn-pill-primary:hover,
.site-tech .btn-pill-primary:focus,
.site-tech #admin-confirm-ok:hover {
    background: linear-gradient(135deg, #22d3ee, #38bdf8, #0ea5e9) !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px);
}

/* 次按钮（仅取消等）：深底渐变描边胶囊 */
.site-tech .btn-pill-secondary,
.site-tech #admin-confirm-cancel {
    background:
        linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.88)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(148, 163, 184, 0.35), rgba(168, 85, 247, 0.28)) border-box;
    border: 1px solid transparent;
    color: var(--tech-text-bright);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.06);
}
.site-tech .btn-pill-secondary:hover,
.site-tech #admin-confirm-cancel:hover {
    background:
        linear-gradient(rgba(30, 41, 59, 0.92), rgba(30, 41, 59, 0.92)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.75), rgba(34, 211, 238, 0.5), rgba(168, 85, 247, 0.4)) border-box;
    border-color: transparent;
    color: var(--tech-accent-soft);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

/* 线框次按钮 / 灰色次按钮 → 与「返回控制台」一致的青色渐变胶囊 */
.site-tech .btn-outline-secondary,
.site-tech a.btn-outline-secondary,
.site-tech button.btn-outline-secondary,
.site-tech .btn-secondary:not(:disabled):not(.disabled):not([disabled]),
.site-tech .btn-outline-primary,
.site-tech a.btn-outline-primary,
.site-tech button.btn-outline-primary {
    background: var(--tech-btn-gradient) !important;
    border: none !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.32) !important;
}
.site-tech .btn-outline-secondary:hover,
.site-tech .btn-outline-secondary:focus,
.site-tech .btn-secondary:not(:disabled):not(.disabled):not([disabled]):hover,
.site-tech .btn-secondary:not(:disabled):not(.disabled):not([disabled]):focus,
.site-tech .btn-outline-primary:hover,
.site-tech .btn-outline-primary:focus {
    background: linear-gradient(135deg, #22d3ee, #38bdf8, #0ea5e9) !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px);
}

.site-tech .btn-success,
.site-tech .btn-pill-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #052e16;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}
.site-tech .btn-success:hover,
.site-tech .btn-pill-success:hover {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

.site-tech .btn-warning,
.site-tech .btn-pill-warning,
.site-tech .btn-outline-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #451a03;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.site-tech .btn-outline-warning:not(:disabled):not(.disabled):not([disabled]) {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border: none !important;
    color: #451a03 !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.28) !important;
}
.site-tech .btn-outline-warning:not(:disabled):hover {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.42) !important;
    transform: translateY(-1px);
}

.site-tech .btn-danger,
.site-tech .btn-pill-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}
.site-tech .btn-danger:hover,
.site-tech .btn-pill-danger:hover {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.site-tech .btn-outline-danger:not(:disabled):not(.disabled):not([disabled]) {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.28) !important;
}
.site-tech .btn-outline-danger:not(:disabled):hover {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.42) !important;
    transform: translateY(-1px);
}

.site-tech .btn:disabled,
.site-tech .btn.disabled,
.site-tech .btn[disabled] {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(71, 85, 105, 0.45) !important;
    color: rgba(148, 163, 184, 0.65) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1;
}

.site-tech .btn-pill {
    border-radius: 999px !important;
}

.site-tech .input-group .form-control {
    border-radius: 999px 0 0 999px;
}
.site-tech .input-group .btn {
    border-radius: 0 999px 999px 0 !important;
    min-width: 72px;
    height: 44px;
}

/* 状态标签 badge */
.site-tech .badge,
.site-tech .tag-pill {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.site-tech .tag-pill-success,
.site-tech .badge-success,
.site-tech .badge.bg-success {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--tech-success);
}
.site-tech .tag-pill-warning,
.site-tech .badge-warning,
.site-tech .badge.bg-warning {
    background: rgba(234, 179, 8, 0.12) !important;
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--tech-warn);
}
.site-tech .badge-secondary,
.site-tech .badge.bg-secondary {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--tech-text-muted);
}

/* 表单 */
.site-tech label,
.site-tech .form-group label {
    color: var(--tech-text-muted);
    font-size: 0.85rem;
}
.site-tech .form-control,
.site-tech .form-select,
.site-tech input[type="file"].form-control,
.site-tech select.form-control {
    background: var(--tech-bg-input);
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius-sm);
    color: var(--tech-text);
}
.site-tech .form-control:focus,
.site-tech .form-select:focus {
    background: rgba(2, 6, 23, 0.75);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
    color: var(--tech-text-bright);
}
.site-tech .form-control::placeholder {
    color: var(--tech-text-dim);
}
.site-tech .form-control[disabled],
.site-tech .form-control[readonly] {
    background: rgba(15, 23, 42, 0.9);
    color: var(--tech-text-dim);
}
.site-tech .input-group-text {
    background: rgba(15, 23, 42, 0.65);
    border-color: var(--tech-border-soft);
    color: var(--tech-text-muted);
}

/* 表格 */
.site-tech .table {
    color: var(--tech-text);
}
.site-tech .table thead th {
    background: rgba(2, 6, 23, 0.55);
    border-color: var(--tech-border-soft);
    color: var(--tech-text-muted);
    font-weight: 600;
    font-size: 0.82rem;
}
.site-tech .table td,
.site-tech .table th {
    border-color: var(--tech-border-soft);
}
.site-tech .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(2, 6, 23, 0.28);
}
.site-tech .table-striped tbody tr:nth-of-type(even) {
    background: transparent;
}
.site-tech .table tbody tr:hover {
    background: rgba(56, 189, 248, 0.06);
}

/* 提示 */
.site-tech .alert-danger {
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    border-radius: var(--tech-radius-sm);
}
.site-tech .alert-success {
    background: rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--tech-success);
    border-radius: var(--tech-radius-sm);
}
.site-tech .alert-warning {
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--tech-warn);
}

/* 文字 */
.site-tech .hero-title,
.site-tech h1,
.site-tech h2,
.site-tech h3,
.site-tech h4,
.site-tech h5 {
    color: var(--tech-text-bright);
}
.site-tech .hero-subtitle,
.site-tech .text-muted-soft,
.site-tech .text-muted {
    color: var(--tech-text-muted) !important;
}

/* 已废弃的装饰性英文标签，全站隐藏 */
.badge-soft {
    display: none !important;
}

/* 首页 why 区块 */
.site-tech .why-title {
    color: var(--tech-text-bright);
}
.site-tech .why-subtitle {
    color: var(--tech-text-muted);
}
.site-tech .why-card {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius);
}
.site-tech .why-card::before,
.site-tech .why-card::after {
    display: none;
}
.site-tech .why-card-title {
    color: var(--tech-text-bright);
}
.site-tech .why-card-desc {
    color: var(--tech-text-muted);
}
.site-tech .why-icon {
    color: var(--tech-accent);
}

/* 编辑页面板 */
.site-tech .app-edit-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.site-tech .app-edit-card .card-body {
    background: transparent !important;
    padding: 0 !important;
}
.site-tech .edit-panel {
    background: rgba(2, 6, 23, 0.45);
    border-radius: var(--tech-radius-sm);
}
.site-tech .edit-panel-gold  { border: 1px solid rgba(234, 179, 8, 0.35); }
.site-tech .edit-panel-red   { border: 1px solid rgba(248, 113, 113, 0.35); }
.site-tech .edit-panel-green { border: 1px solid rgba(34, 197, 94, 0.35); }
.site-tech .edit-panel-amber { border: 1px solid rgba(234, 179, 8, 0.45); background: rgba(120, 53, 15, 0.15); }
.site-tech .edit-panel-purple{ border: 1px solid rgba(168, 85, 247, 0.4); background: rgba(88, 28, 135, 0.12); }
.site-tech .edit-panel-blue  { border: 1px solid rgba(56, 189, 248, 0.4); background: rgba(14, 165, 233, 0.08); }
.site-tech .edit-panel-title,
.site-tech .edit-app-name {
    color: var(--tech-text-bright);
}
.site-tech .edit-hint,
.site-tech .edit-label {
    color: var(--tech-text-muted);
}
.site-tech .edit-status-box {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--tech-border-soft);
}
.site-tech .edit-status-online { background: rgba(34, 197, 94, 0.18); color: var(--tech-success); }
.site-tech .edit-status-draft { background: rgba(100, 116, 139, 0.2); color: var(--tech-text-muted); }
.site-tech .edit-status-offline { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.site-tech .edit-status-expired { background: rgba(234, 179, 8, 0.18); color: var(--tech-warn); }
.site-tech .edit-radio {
    color: var(--tech-text);
}
.site-tech .edit-icon-ph {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

/* 确认弹窗 */
.site-tech #admin-confirm-backdrop {
    background: rgba(2, 6, 23, 0.85);
}
.site-tech .admin-confirm-dialog {
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    box-shadow: var(--tech-shadow);
    color: var(--tech-text);
}
.site-tech .admin-confirm-title {
    color: var(--tech-text-bright);
}
.site-tech .admin-confirm-message {
    color: var(--tech-text-muted);
}

/* 分页 / 列表 */
.site-tech .list-group-item {
    background: rgba(2, 6, 23, 0.45);
    border-color: var(--tech-border-soft);
    color: var(--tech-text);
}
.site-tech .dropdown-menu {
    background: var(--tech-bg-card-solid);
    border: 1px solid var(--tech-border);
}
.site-tech .dropdown-item {
    color: var(--tech-text);
}
.site-tech .dropdown-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--tech-accent-soft);
}

.site-tech hr {
    border-color: var(--tech-border-soft);
}

.site-tech code {
    background: rgba(56, 189, 248, 0.12);
    color: var(--tech-accent-soft);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.88em;
}

.site-tech .why-section {
    margin-top: 20px;
    padding: 12px 0 6px;
}
.site-tech .why-header {
    text-align: center;
    margin-bottom: 18px;
}
.site-tech .why-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
}
.site-tech .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
@media (min-width: 992px) {
    .site-tech .hero-title { font-size: 3rem; }
}

@keyframes siteGridMove {
    0% { transform: perspective(500px) rotateX(58deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(58deg) translateY(48px); }
}
@keyframes siteFloatA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, 18px); }
}
@keyframes siteFloatB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -14px); }
}
@keyframes siteScan {
    0% { background-position: 0 -120%; }
    100% { background-position: 0 120%; }
}

@media (max-width: 575.98px) {
    .site-tech .page-shell {
        padding: 16px 12px 32px;
    }
    .site-tech .card-shell {
        padding: 16px;
    }
}

/* ========== 404 独立页 public/404.html ========== */
body.page-404 {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}
.page-404-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.page-404-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    border-radius: 22px;
    padding: clamp(20px, 4vw, 28px) clamp(16px, 4vw, 24px);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--tech-border);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        var(--tech-shadow),
        0 0 48px rgba(14, 165, 233, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
}
.page-404-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--tech-border-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.page-404-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.28);
    color: #fdba74;
}
.page-404-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb923c;
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.9);
    animation: page404Pulse 1.6s ease-in-out infinite;
}
.page-404-code {
    margin: 0 0 12px;
    font-size: clamp(2.8rem, 12vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 40%, #38bdf8 70%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.35));
}
.page-404-msg {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(203, 213, 225, 0.95);
}
.page-404-divider {
    height: 1px;
    margin: 0 0 16px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}
.page-404-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}
.page-404-grid-item {
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid var(--tech-border-soft);
}
.page-404-grid-k {
    font-size: 0.68rem;
    color: var(--tech-text-dim);
    margin-bottom: 4px;
}
.page-404-grid-v {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tech-text);
    line-height: 1.35;
}
.page-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
body.page-404 .btn {
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    line-height: 1.35;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.page-404 .btn-primary {
    background: var(--tech-btn-gradient) !important;
    border: none !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.38) !important;
}
body.page-404 .btn-primary:hover {
    background: linear-gradient(135deg, #22d3ee, #38bdf8, #0ea5e9) !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.55) !important;
    transform: translateY(-1px);
}
body.page-404 .btn-secondary {
    background:
        linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.88)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(148, 163, 184, 0.35), rgba(168, 85, 247, 0.28)) border-box !important;
    border: 1px solid transparent !important;
    color: var(--tech-text-bright) !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.08) !important;
}
body.page-404 .btn-secondary:hover {
    background:
        linear-gradient(rgba(30, 41, 59, 0.92), rgba(30, 41, 59, 0.92)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.75), rgba(34, 211, 238, 0.5), rgba(168, 85, 247, 0.4)) border-box !important;
    color: var(--tech-accent-soft) !important;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.22) !important;
    transform: translateY(-1px);
}
.page-404-actions .btn-primary,
.page-404-actions .btn-secondary {
    min-width: 120px;
}
.page-404-foot {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--tech-text-dim);
}
@keyframes page404Pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.88); }
}
@media (max-width: 520px) {
    .page-404-grid {
        grid-template-columns: 1fr;
    }
    .page-404-actions {
        flex-direction: column;
    }
    .page-404-actions .btn-primary,
    .page-404-actions .btn-secondary {
        width: 100%;
    }
}

/* ========== 强制胶囊（覆盖页面内联样式，需 build 202605291） ========== */
body.site-tech .btn,
body.site-tech a.btn,
body.site-tech button.btn,
body.site-tech input.btn {
    border-radius: 999px !important;
}
body.site-tech .btn-outline-secondary,
body.site-tech a.btn-outline-secondary,
body.site-tech button.btn-outline-secondary,
body.site-tech .btn-secondary:not(:disabled):not(.disabled):not([disabled]),
body.site-tech .btn-outline-primary,
body.site-tech a.btn-outline-primary,
body.site-tech button.btn-outline-primary,
body.site-tech .btn-primary,
body.site-tech .btn-pill-primary {
    background: var(--tech-btn-gradient) !important;
    border: none !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.32) !important;
}
body.site-tech .btn-outline-secondary:hover,
body.site-tech .btn-secondary:not(:disabled):hover,
body.site-tech .btn-outline-primary:hover,
body.site-tech .btn-primary:hover,
body.site-tech .btn-pill-primary:hover {
    background: linear-gradient(135deg, #22d3ee, #38bdf8, #0ea5e9) !important;
    color: var(--tech-btn-text) !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.5) !important;
}
body.site-tech .btn-outline-danger:not(:disabled):not([disabled]),
body.site-tech .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    color: #fff !important;
}
body.site-tech .btn-warning,
body.site-tech .btn-outline-warning:not(:disabled):not([disabled]),
body.site-tech .btn-pill-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border: none !important;
    color: #451a03 !important;
}
body.site-tech .btn-success,
body.site-tech .btn-pill-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border: none !important;
    color: #052e16 !important;
}
