/* ==================== 小小怪智造 · 内部同事研发集群部署站样式 ==================== */
:root {
    --bg: #070a13;
    --surface: rgba(16, 22, 38, 0.86);
    --surface-solid: #111729;
    --elevated: rgba(25, 33, 56, 0.9);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f3f6ff;
    --text-2: #9ba8c8;
    --muted: #68769c;
    --accent: #6366f1;
    --accent-2: #a855f7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
}
.bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.18), transparent 42%),
        radial-gradient(circle at 86% 18%, rgba(168, 85, 247, 0.13), transparent 42%),
        radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.08), transparent 45%);
    pointer-events: none;
    z-index: 0;
}
code {
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
}
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--elevated);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.34);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }

/* 内部口令门禁 */
.gate-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.9);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 200;
}
.gate-backdrop.open { display: flex; }
.gate-card {
    width: 100%;
    max-width: 410px;
    padding: 30px 26px;
    border-radius: 22px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    text-align: center;
}
.gate-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.36);
}
.gate-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.gate-card p { font-size: 12.5px; color: var(--text-2); margin-bottom: 20px; }
.gate-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid var(--border-strong);
    background: #090d1a;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
}
.gate-card input:focus { border-color: var(--accent); }
.gate-err { margin-top: 10px; font-size: 12px; color: var(--danger); min-height: 18px; }

/* 顶栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 10, 19, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { font-size: 15.5px; font-weight: 800; }
.brand-txt small { font-size: 11px; color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 8px; }
.pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 99px;
    background: var(--elevated);
    border: 1px solid var(--border);
    color: var(--success);
    white-space: nowrap;
}

/* 主体布局 */
.main-wrap { padding-top: 26px; padding-bottom: 64px; }
.card {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-bottom: 34px;
}
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.34);
    color: #a5b4fc;
    margin-bottom: 10px;
}
.hero-dl h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.hero-dl .desc { font-size: 13.5px; color: var(--text-2); margin-bottom: 16px; }
.kit-meta {
    padding: 10px 13px;
    border-radius: 11px;
    background: var(--elevated);
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-2);
    margin-bottom: 16px;
}
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mini-tip { font-size: 12px; color: var(--muted); }

.cluster-card { display: flex; flex-direction: column; }
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.ver-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.worker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-height: 220px;
    overflow-y: auto;
}
.worker-row {
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
}
.w-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.w-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.w-dot.idle { background: var(--success); box-shadow: 0 0 8px var(--success); }
.w-dot.busy { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.w-dot.cooldown { background: var(--warning); }
.w-dot.offline { background: var(--muted); }
.cluster-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-2);
}

/* 区块标题 */
.section { margin-bottom: 36px; }
.sec-title {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sec-title span { font-size: 19px; font-weight: 800; }
.sec-title small { font-size: 12.5px; color: var(--text-2); }

/* 3 步网格 */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.step-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}
.step-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* 提示词军火库 */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.prompt-card {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.prompt-card.highlight {
    border-color: rgba(99, 102, 241, 0.48);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.11), var(--surface));
}
.prompt-card.full-span { grid-column: 1 / -1; }
.prompt-card.admin-only {
    border-color: rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.11), var(--surface));
}
.pc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.pc-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    background: var(--elevated);
    color: var(--text-2);
    border: 1px solid var(--border);
}
.pc-badge.primary { background: rgba(99, 102, 241, 0.22); color: #c7d2fe; border-color: rgba(99, 102, 241, 0.4); }
.pc-badge.warn { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); }
.pc-badge.ok { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
.pc-badge.purple { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; border-color: rgba(168, 85, 247, 0.4); }
.prompt-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 5px; }
.pc-use { font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.prompt-code {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 11px;
    background: #060913;
    border: 1px solid var(--border-strong);
    color: #e2e8f0;
    font-family: Consolas, "Microsoft YaHei", monospace;
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: all;
}

/* SOP & FAQ */
.sop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.sop-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.sop-card ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}
.sop-card strong { color: var(--text); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.faq-item h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.faq-item p { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

.toast {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--surface-solid);
    border: 1px solid var(--accent);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
    z-index: 260;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
    .hero-grid, .steps-grid, .prompt-grid, .sop-grid, .faq-grid { grid-template-columns: 1fr; }
    .brand-txt small, #topClusterPill { display: none; }
    .dl-actions .btn-lg { width: 100%; white-space: normal; text-align: center; }
}
