.blog-card h3 { font-size: 24px; margin-bottom: 12px; font-weight: 700; line-height: 1.4;}
.blog-card p { font-size: 18px; color: var(--ink-light); margin-bottom: 32px; flex: 1; }
.blog-read-more { font-size: 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; width: max-content; padding-bottom: 2px; border-bottom: 2px dashed var(--ink);}
.blog-read-more:hover { color: var(--marker-blue); border-color: var(--marker-blue);}

/* ==================== 4. 纸上控制台 ==================== */
/* 侧栏略加宽；长德语等不换行时勿将 Lucide 图标 flex 压成 0 */
.dashboard-layout { display: grid; grid-template-columns: minmax(252px, 300px) 1fr; gap: 50px; align-items: start;}
        
.sidebar {
    position: sticky; top: 120px; display: flex; flex-direction: column; gap: 40px;
    background: #fff; padding: 32px 18px; border-right: none;
    min-width: 0;
    z-index: 2;
}
.menu-group h5 { font-size: 18px; color: var(--ink-light); margin-bottom: 16px; padding-left: 16px; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px;}
.sidebar-menu li a {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; font-size: 19px; font-weight: 700; color: var(--ink);
    border-radius: var(--sketch-radius-2); transition: var(--transition); margin-bottom: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.35;
}
.sidebar-menu li a > i,
.sidebar-menu li a > svg {
    flex-shrink: 0;
    flex-grow: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
}
.sidebar-menu li a > i svg {
    width: 22px;
    height: 22px;
}
.sidebar-menu li a.sidebar-nav-link--badge {
    position: relative;
    padding-right: 40px;
}
.sidebar-menu li a.sidebar-nav-link--badge > span:not(.sidebar-nav-badge) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.sidebar-nav-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 1;
    pointer-events: none;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15rem;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #f43f5e 0%, #e11d48 45%, #be123c 100%);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-nav-badge[hidden] {
    display: none !important;
}
.sidebar-menu li a:hover { background: var(--paper-dot); transform: translateX(5px);}
.sidebar-menu li a.active { background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);}

.dash-panel[hidden] {
    display: none !important;
}

.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 3px dashed var(--ink); padding-bottom: 20px; flex-wrap: wrap; gap: 16px;}
.dash-header h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 700;}
.dash-header .btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dash-overview-lead {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink-light);
    margin: 0 0 28px;
    max-width: 48em;
}

/* 总览大厅：登录邮箱高亮，便于一眼识别 */
#dashboard-welcome-email {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px 4px;
    margin: 0 0.12em;
    font-weight: 800;
    font-size: 1.08em;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--marker-yellow);
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.14);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.dash-stat-card {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
}
.dash-stat-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-light);
    letter-spacing: 0.04em;
}
.dash-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.dash-stat-hint {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.45;
}
.dash-overview-orders {
    margin-top: 8px;
    padding: 22px 20px;
    background: #fff;
}
.dash-overview-orders-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
}
.dash-overview-orders-lead {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 48em;
}
.dash-overview-orders-body { overflow-x: auto; }
.dash-overview-orders-more {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
}
.dash-overview-orders-foot {
    margin: 16px 0 0;
    font-size: 15px;
    font-weight: 800;
}
.dash-overview-orders-foot a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 3px;
}
.dash-stat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.dash-stat-actions .btn-dash {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    padding: 8px 16px;
}

.dash-placeholder {
    padding: 28px 24px;
    max-width: 52em;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper-dot);
}
.dash-placeholder p {
    margin: 0 0 1em;
}
.dash-placeholder p:last-child {
    margin-bottom: 0;
}
.dash-placeholder a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dash-placeholder a:hover {
    color: var(--marker-blue);
}

/* ---------- 工单中心（单卡片：工具栏 + 可折叠新建 + 列表 + 详情） ---------- */
.support-hub {
    max-width: 56rem;
    margin: 0 auto;
}
.support-panel {
    padding: 0;
    overflow: visible;
    background: #fff;
}
.support-panel-header {
    padding: 20px 22px 18px;
    border-bottom: 2px dashed var(--ink-light);
    background: linear-gradient(180deg, #f7f6f2 0%, #fff 72%);
}
.support-panel-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.support-panel-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.support-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.support-panel-actions .btn-dash,
.support-panel-actions .btn-primary {
    margin: 0;
}
.support-panel-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.support-tickets-filter-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
/* 工单状态筛选 — Aurora 暗色主题 */
.support-status-dropdown {
    position: relative;
    z-index: 6;
    max-width: 280px;
    min-width: 0;
}
.support-status-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 120px;
    max-width: 280px;
    margin: 0;
    padding: 8px 14px;
    box-sizing: border-box;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(233, 223, 255, 0.92);
    background: rgba(12, 8, 24, 0.55);
    border: 1px solid var(--aurora-border);
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: start;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.support-status-trigger:hover {
    transform: none;
    background: var(--accent-soft);
    border-color: rgba(167, 139, 250, 0.38);
    box-shadow: none;
}
.support-status-trigger:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.6);
    outline-offset: 2px;
}
.support-status-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-status-trigger .support-status-chevron,
.support-status-trigger .lucide.support-status-chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: rgba(167, 139, 250, 0.7);
    transition: transform 0.2s ease;
}
.support-status-dropdown.open .support-status-trigger {
    border-color: rgba(167, 139, 250, 0.45);
    background: var(--accent-soft);
}
.support-status-dropdown.open .support-status-chevron {
    transform: rotate(180deg);
}
.support-status-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    box-sizing: border-box;
    background: rgba(18, 12, 38, 0.96);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(99, 102, 241, 0.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    backdrop-filter: blur(20px) saturate(1.1);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 25;
}
.support-status-dropdown.open .support-status-menu {
    display: flex;
}
.support-status-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    box-sizing: border-box;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(203, 195, 227, 0.85);
    text-align: start;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}
.support-status-option:hover {
    color: rgba(233, 223, 255, 0.96);
    background: rgba(99, 102, 241, 0.18);
}
.support-status-option[aria-selected="true"] {
    color: #e9d5ff;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.32), rgba(139, 92, 246, 0.22));
    font-weight: 700;
}
.support-status-option:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.55);
    outline-offset: 1px;
}

.support-order-dropdown {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.support-order-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-dot);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: var(--transition);
    text-align: start;
}
.support-order-trigger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}
.support-order-trigger:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 2px;
}
.support-order-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-order-trigger .support-order-chevron,
.support-order-trigger .lucide.support-order-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.support-order-dropdown.open .support-order-chevron {
    transform: rotate(180deg);
}
.support-order-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 100%;
    max-height: min(18rem, 55vh);
    margin: 0;
    padding: 8px;
    list-style: none;
    box-sizing: border-box;
    background: #fff;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-3);
    box-shadow: var(--shadow-sketch);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 40;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.support-order-dropdown.open .support-order-menu {
    display: flex;
}
.support-order-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.45;
    color: var(--ink-light);
    text-align: start;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.support-order-option:hover,
.support-order-option[aria-selected="true"] {
    color: var(--ink);
    background: var(--marker-yellow);
}
.support-order-option:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 1px;
}

.support-new-panel {
    border-bottom: 2px dashed var(--ink-light);
    background: linear-gradient(180deg, #fffbeb 0%, #fff 48px);
}
.support-new-panel-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(253, 230, 138, 0.45);
    border-bottom: 2px solid var(--ink-light);
}
.support-new-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.support-new-panel-close {
    margin: 0;
    flex-shrink: 0;
}
/* ══ 新建工单模态弹窗 ═════════════════════════════════ */
.support-new-ticket-modal[hidden] { display: none !important; }
.support-new-ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.support-new-ticket-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 24, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.support-new-ticket-card {
    position: relative;
    z-index: 1;
    width: 560px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(155deg,
        rgba(30, 27, 60, 0.98) 0%,
        rgba(20, 18, 45, 0.98) 100%
    );
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.65),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: supportNewModalIn 0.2s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}
@keyframes supportNewModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* 顶部彩虹条 */
.support-new-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc, #e879f9);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

/* ── 头部 ─────────────────────────────────────────── */
.support-new-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px 22px;
    background: linear-gradient(135deg,
        rgba(99,102,241,0.18) 0%,
        rgba(139,92,246,0.08) 60%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(167,139,250,0.12);
    flex-shrink: 0;
}
.support-new-ticket-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-new-ticket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(99,102,241,0.14);
    border: 1px solid rgba(129,140,248,0.22);
    color: rgba(165,180,252,0.9);
    flex-shrink: 0;
}
.support-new-ticket-icon svg,
.support-new-ticket-icon i { width: 17px; height: 17px; }
.support-new-ticket-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(110deg, #f0e6ff 10%, #a5b4fc 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.support-new-ticket-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167,139,250,0.15);
    color: rgba(196,181,253,0.5);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.support-new-ticket-close svg,
.support-new-ticket-close i { width: 15px; height: 15px; }
.support-new-ticket-close:hover {
    background: rgba(244,114,182,0.14);
    border-color: rgba(244,114,182,0.32);
    color: rgba(252,165,165,0.9);
}

/* ── 表单区域（scoped） ──────────────────────────── */
#support-new-ticket-modal .support-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px 24px;
    background: transparent;
    max-width: none;
    margin: 0;
}
#support-new-ticket-modal .support-form-hint {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(167,139,250,0.6);
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(129,140,248,0.12);
    border-radius: 8px;
}
#support-new-ticket-modal .support-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(196,181,253,0.75);
}
#support-new-ticket-modal .support-form-req {
    color: rgba(248,113,113,0.8);
    margin-left: 3px;
}
#support-new-ticket-modal .support-form-sublabel {
    margin: 5px 0 0;
    font-size: 0.74rem;
    color: rgba(139,116,184,0.55);
}
#support-new-ticket-modal .support-form-input,
#support-new-ticket-modal .support-form-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(7, 5, 16, 0.55) !important;
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    color: rgba(225,217,248,0.92);
    font-size: 0.88rem;
    font-family: inherit;
    padding: 10px 14px;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    resize: vertical;
}
#support-new-ticket-modal .support-form-input::placeholder,
#support-new-ticket-modal .support-form-textarea::placeholder {
    color: rgba(139,116,184,0.45);
}
#support-new-ticket-modal .support-form-input:focus,
#support-new-ticket-modal .support-form-textarea:focus {
    border-color: rgba(129,140,248,0.55) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
    outline: none !important;
    background: rgba(7,5,16,0.68) !important;
}
/* 关联订单下拉 */
#support-new-ticket-modal .support-order-trigger {
    width: 100%;
    box-sizing: border-box;
    background: rgba(7,5,16,0.55) !important;
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    color: rgba(196,181,253,0.8);
    font-size: 0.88rem;
    padding: 10px 14px;
    box-shadow: none !important;
    transition: border-color 0.18s;
}
#support-new-ticket-modal .support-order-trigger:hover {
    transform: none;
    box-shadow: none !important;
    border-color: rgba(129,140,248,0.42) !important;
}
#support-new-ticket-modal .support-order-menu {
    background: rgba(18, 15, 44, 0.98);
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    box-sizing: border-box;
    padding: 6px;
    gap: 2px;
}
#support-new-ticket-modal .support-order-option {
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(196,181,253,0.75);
    background: transparent;
    border-radius: 7px;
    border: none;
    transition: background 0.15s, color 0.15s;
}
#support-new-ticket-modal .support-order-option:hover,
#support-new-ticket-modal .support-order-option[aria-selected="true"] {
    color: rgba(225,217,248,0.95);
    background: rgba(99,102,241,0.18);
}
#support-new-ticket-modal .support-order-option:focus {
    outline: none;
    background: rgba(99,102,241,0.14);
    color: rgba(225,217,248,0.95);
}
/* 错误/成功提示 */
#support-new-ticket-modal .support-form-err[hidden] { display: none !important; }
#support-new-ticket-modal .support-form-err {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(252,165,165,0.92);
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
}
#support-new-ticket-modal .support-form-err::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(248,113,113,0.25);
    color: rgba(252,165,165,0.9);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}
#support-new-ticket-modal .support-form-ok[hidden] { display: none !important; }
#support-new-ticket-modal .support-form-ok {
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(134,239,172,0.9);
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(52,211,153,0.22);
    border-radius: 8px;
}
/* 提交按钮 */
#support-new-ticket-modal .support-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
#support-new-ticket-modal .support-form-actions .btn-primary.sketch-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 22px;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(79,70,229,0.82), rgba(109,40,217,0.72));
    border: 1px solid rgba(167,139,250,0.4);
    color: #ede9fe;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.22);
    transition: background 0.2s, box-shadow 0.2s;
}
#support-new-ticket-modal .support-form-actions .btn-primary.sketch-box:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(139,92,246,0.8));
    box-shadow: 0 4px 20px rgba(99,102,241,0.36);
}

.support-ticket-form--embedded {
    max-width: none;
    margin: 0;
    padding: 18px 22px 22px;
    background: transparent;
    gap: 14px;
}
.support-ticket-body-compact {
    min-height: 120px;
}
.support-list-section {
    padding: 20px 22px 22px;
}
.support-list-heading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.support-tickets-body {
    min-height: 100px;
    margin-bottom: 0;
}
.support-tickets-body--scroll {
    max-height: 22rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: var(--border-width) solid var(--ink-light);
    border-radius: var(--sketch-radius-2);
    padding: 4px 0;
}
.support-tickets-placeholder,
.support-tickets-empty {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink-light);
}
.support-tickets-err {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
    border-radius: var(--sketch-radius-2);
}
.support-tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 700;
}
.support-tickets-table th,
.support-tickets-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--paper-dot);
    vertical-align: top;
}
.support-tickets-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-light);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 0 2px 0 var(--paper-dot);
}
.support-tickets-table tr:last-child td {
    border-bottom: none;
}
.support-ticket-row {
    cursor: pointer;
    transition: background 0.12s ease;
}
.support-ticket-row:hover,
.support-ticket-row:focus-visible {
    background: var(--paper-dot);
    outline: none;
}
.support-ticket-row--active {
    background: rgba(147, 197, 253, 0.2);
}
.support-ticket-row--fresh {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.22) 0%, rgba(255, 255, 255, 0) 52%);
    box-shadow: inset 4px 0 0 #f59e0b;
}
.support-ticket-row--fresh:hover,
.support-ticket-row--fresh:focus-visible {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.35) 0%, var(--paper-dot) 55%);
}
.support-ticket-title-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.support-ticket-subj-text {
    flex: 1 1 8rem;
    min-width: 0;
}
.support-ticket-fresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 10px 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a3412;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ea580c;
    border-radius: 999px;
    box-shadow: 2px 2px 0 rgba(234, 88, 12, 0.35);
}
.support-ticket-fresh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea580c;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 2px #fff;
    animation: support-fresh-pulse 1.8s ease-in-out infinite;
}
@keyframes support-fresh-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(0.92);
    }
}
.support-ticket-id {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.support-ticket-subj {
    word-break: break-word;
    max-width: 12rem;
}
@media (min-width: 640px) {
    .support-ticket-subj {
        max-width: none;
    }
}
.support-ticket-date {
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink-light);
}
.support-ticket-detail {
    margin-top: 0;
    padding: 18px 22px 24px;
}
.support-ticket-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.support-ticket-detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.support-ticket-detail-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 回复切换按钮 */
.support-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: rgba(196, 181, 253, 0.9);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.support-reply-toggle svg,
.support-reply-toggle i {
    width: 14px;
    height: 14px;
}
.support-reply-toggle:hover,
.support-reply-toggle--active {
    background: rgba(99, 102, 241, 0.26);
    border-color: rgba(167, 139, 250, 0.5);
    color: #e9d5ff;
}

.support-ticket-detail-close {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px;
}
.support-ticket-detail-meta {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-light);
}
.support-ticket-detail-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
    max-height: 26rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 6px 12px;
}
.support-msg {
    padding: 14px 18px 16px;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: var(--paper);
    max-width: min(40rem, 96%);
    width: fit-content;
    min-width: 0;
    box-sizing: border-box;
}
.support-msg--staff {
    align-self: flex-start;
    margin-right: auto;
    background: #f0fdf4;
    border-color: #166534;
    border-top-left-radius: 4px;
}
.support-msg--client {
    align-self: flex-end;
    margin-left: auto;
    background: #fff;
    border-top-right-radius: 4px;
    box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.08);
}
.support-msg-meta {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-light);
    margin-bottom: 8px;
}
.support-msg--client .support-msg-meta {
    text-align: right;
}
.support-msg-body {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}
.support-msg--client .support-msg-body {
    text-align: left;
}
.support-ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.support-ticket-reply-textarea {
    min-height: 100px;
    margin: 0;
}
.support-ticket-reply-actions .btn-primary {
    margin: 0;
}

.support-ticket-form {
    padding: 24px 22px 28px;
    max-width: 44em;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
}
.support-form-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink-light);
}
.support-form-req {
    color: #b91c1c;
    font-weight: 800;
}
.support-form-err {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
}
.support-form-ok {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #14532d;
    background: #ecfdf5;
    border: var(--border-width) solid #166534;
}
.support-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.support-form-sublabel {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-light);
}
.support-form-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.support-form-input,
.support-form-select,
.support-form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-dot);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 var(--ink);
}
.support-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
.support-form-textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.55;
}
.support-form-input:focus,
.support-form-select:focus,
.support-form-textarea:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 2px;
}
.support-form-input::placeholder,
.support-form-textarea::placeholder {
    color: var(--ink-light);
    font-weight: 600;
}
.support-form-actions {
    margin-top: 4px;
}
.support-form-actions .btn-primary {
    margin: 0;
}

.dash-settings-block {
    padding: 24px 22px;
    max-width: 40em;
    background: #fff;
}
.dash-settings-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.5;
}
.dash-settings-row input {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--ink);
}
.dash-settings-note {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.5;
}
.dash-settings-note code {
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .dash-stat-grid {
        grid-template-columns: 1fr;
    }
}
        
/* 我的机器：≤2 张/页单列，≥3 张/页双列；窄屏强制单列；分页条占满一行 */
.server-list {
    display: grid;
    gap: 20px;
    align-items: start;
}
.server-list--cols-1 {
    grid-template-columns: 1fr;
}
.server-list--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.machine-list-pager {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    padding: 12px 18px;
    margin: 10px 0 0;
    background: #f4f3ef;
    border: 1px solid #d8d4cb;
    border-radius: 12px;
    box-shadow: none;
}
.machine-list-pager-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #c9c5bc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.machine-list-pager-nav:hover:not(:disabled) {
    background: #fafaf8;
    border-color: #9ca3af;
}
.machine-list-pager-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.machine-list-pager-nav svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.machine-list-pager-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #57534e;
}
.machine-list-pager-prefix {
    color: #78716c;
}
.machine-list-pager-suffix {
    color: #57534e;
}
.machine-list-pager-total {
    color: #78716c;
    font-weight: 500;
}
.machine-list-pager-input {
    width: 3rem;
    min-width: 2.75rem;
    padding: 6px 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #b8b4ab;
    border-radius: 6px;
    -moz-appearance: textfield;
}
.machine-list-pager-input::-webkit-outer-spin-button,
.machine-list-pager-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.machine-list-pager-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
@media (max-width: 960px) {
    .server-list.server-list--cols-2 {
        grid-template-columns: 1fr;
    }
}

/* 单列（≤2 张/页纵向堆叠）时略收紧，避免两张大卡占满一屏 */
#machine-list-api.server-list--cols-1 {
    gap: 14px;
}
#machine-list-api.server-list--cols-1 .server-card--api.sketch-box.server-card {
    padding: 14px 16px 40px;
    gap: 10px;
}
#machine-list-api.server-list--cols-1 .machine-list-dismiss-btn {
    width: 36px;
    height: 36px;
    right: 10px;
    bottom: 8px;
}
#machine-list-api.server-list--cols-1 .machine-list-dismiss-btn svg {
    width: 18px;
    height: 18px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-title-wrap h3.server-card-title-host {
    font-size: 20px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-specs-grid {
    padding: 10px 12px;
    gap: 8px 12px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-card-footer {
    padding-top: 8px;
    gap: 6px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-card-footer .btn-dash {
    padding: 5px 10px;
    font-size: 13px;
}

/* 未开通机器：推荐下单与文档 */
.machine-empty-state {
    padding: 8px 0 24px;
    max-width: 920px;
}
.machine-empty-head {
    text-align: center;
    margin-bottom: 28px;
}
.machine-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-3);
    background: var(--paper-dot);
    box-shadow: 3px 3px 0 var(--ink);
}
.machine-empty-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 2.25px;
}
.machine-empty-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
}
.machine-empty-lead {
    margin: 0 auto;
    max-width: 36em;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink-light);
}
.machine-empty-eyebrow {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.06em;
}
.machine-recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.machine-rec-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    position: relative;
    transition: var(--transition);
}
.machine-rec-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
    color: inherit;
}
.machine-rec-card.sketch-box:hover {
    transform: translate(-2px, -2px);
}
.machine-rec-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: var(--marker-yellow);
}
.machine-rec-ico {
    width: 28px;
    height: 28px;
    stroke-width: 2.25px;
}
.machine-rec-card strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
}
.machine-rec-card > span:last-of-type {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-light);
}
.machine-empty-note {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .machine-recommend-grid {
        grid-template-columns: 1fr;
    }
}
.server-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; background: #fff;}
        
.server-card-header { display: flex; justify-content: space-between; align-items: flex-start;}
.server-title-wrap h3 { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 4px;}
.server-title-wrap p { font-size: 16px; color: var(--ink-light); }
        
/* 我的机器 · 状态胶囊：绿 / 橙 / 红 + 圆点 + 横向文案 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.1);
    max-width: 100%;
}
.status-badge-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.status-badge-label {
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
/* 绿：可连接 */
.status-tone--green {
    color: var(--ink);
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
}
.status-tone--green .status-badge-dot {
    background: #16a34a;
    border-color: #14532d;
}
/* 橙：待开通 / 已激活等数据 / 已暂停 */
.status-tone--orange {
    color: var(--ink);
    background: linear-gradient(145deg, #fffbeb 0%, #ffedd5 50%, #fdba74 100%);
}
.status-tone--orange .status-badge-dot {
    background: #ea580c;
    border-color: #7c2d12;
}
/* 红：开通失败 / 已取消 / 未知 */
.status-tone--red {
    color: var(--ink);
    background: linear-gradient(145deg, #fef2f2 0%, #fecaca 55%, #f87171 100%);
}
.status-tone--red .status-badge-dot {
    background: #dc2626;
    border-color: #7f1d1d;
}
        
.server-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--paper); padding: 24px; border: 2px dashed var(--ink-light); border-radius: var(--sketch-radius-1);}
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-item span { font-size: 16px; color: var(--ink-light); }
.spec-item strong { font-size: 22px; font-weight: 700; color: var(--ink);}
.spec-item .ip { color: var(--ink); background: var(--marker-pink); padding: 2px 8px; border-radius: 4px; width: max-content;}

.server-card-footer { display: flex; justify-content: flex-end; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px;}
.server-card-footer--wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}
.machine-ticket-hint {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.45;
}
.server-card--api .machine-ticket-hint { margin-top: 4px; }
.btn-dash {
    background: #fff; color: var(--ink); border: 2.5px solid var(--ink); padding: 10px 20px; font-size: 18px; font-weight: 700; border-radius: var(--sketch-radius-2); cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; box-shadow: 3px 3px 0 var(--ink);
}
.btn-dash:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-dash.primary { background: var(--marker-yellow); }


/* 账单清单 · 后台订单与发票 */
.dash-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.dash-header-actions .btn-primary {
    margin: 0;
}
.billing-fetch-err {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
}
.billing-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}
.billing-block {
    padding: 22px 20px;
    background: #fff;
}
.billing-block-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--ink-light);
}
.billing-block-body {
    overflow-x: auto;
}
/* 订单/发票超过 5 条时由 JS 加上此类：表体区域纵向滚动，表头吸顶 */
.billing-block-body--scroll {
    max-height: 17.5rem;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--sketch-radius-2) var(--sketch-radius-2);
}
.billing-block-body--scroll .billing-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 2px 0 var(--paper-dot);
}
.billing-loading,
.billing-empty {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.billing-footnote {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    margin: 0;
    max-width: 52em;
    line-height: 1.5;
}
.billing-footnote code {
    font-size: 12px;
    word-break: break-all;
}
.billing-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
    font-weight: 700;
}
.billing-table th,
.billing-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--paper-dot);
    vertical-align: top;
}
.billing-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-light);
}
.billing-table tr:last-child td {
    border-bottom: none;
}
.billing-table--compact {
    min-width: 0;
    font-size: 14px;
}
.billing-table--compact th,
.billing-table--compact td {
    padding: 8px 10px;
}
.billing-invoice-actions,
.billing-table td:has(.billing-status-pill) {
    white-space: nowrap;
    vertical-align: middle;
}
.billing-invoice-pay-btn {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}
.billing-pay-unavailable {
    color: var(--ink-light);
    font-weight: 700;
}

/* 发票去支付 · 多网关选择（与定价页一致） */
body.pay-method-modal-open {
    overflow: hidden;
}
.pay-method-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.pay-method-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.4);
    cursor: pointer;
}
.pay-method-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    background: var(--paper);
}
.pay-method-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    text-align: center;
}
.pay-method-modal-lead {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: center;
}
.pay-method-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.pay-method-option {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    background: #fff;
}
.pay-method-option-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
}
.pay-method-option-ico img,
.pay-method-option-ico svg {
    display: block;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}
.pay-method-option-textcol {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.pay-method-option:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}
.pay-method-option-main {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}
.pay-method-option-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
}
.pay-method-cancel {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.machine-empty-api-hint {
    margin: 12px 0 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    background: var(--marker-blue);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
}
.machine-api-loading,
.machine-api-err {
    margin: 0;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.machine-api-err { color: var(--ink); }
.machine-pending-body {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.55;
    padding: 8px 0 0;
}
.machine-pending-body p { margin: 0 0 10px; }
.machine-dc-line {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px !important;
}
.monitor-pending-dc {
    font-weight: 800;
    color: var(--ink);
}
.machine-row-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--ink);
    word-break: break-word;
}
.machine-cmd,
.machine-secret {
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}
.spec-item--password-row .machine-pw-strong {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}
.machine-pw-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}
.machine-pw-eye {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 var(--ink);
    transition: var(--transition);
    color: var(--ink);
}
.machine-pw-eye:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--paper-dot);
}
.machine-pw-eye:focus-visible {
    outline: 3px solid var(--marker-yellow);
    outline-offset: 2px;
}
.machine-pw-eye svg {
    width: 20px;
    height: 20px;
}
.server-list > .server-card--api {
    margin-bottom: 0;
}
.server-card--api.sketch-box.server-card {
    position: relative;
    padding: 18px 20px 44px;
    gap: 12px;
}
.machine-list-dismiss-btn {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--ink-light);
    background: #fff;
    border: 2px solid var(--ink-light);
    border-radius: var(--sketch-radius-2);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink-light);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.machine-list-dismiss-btn:hover {
    color: #9f1239;
    border-color: #9f1239;
    background: #fff1f2;
}
.machine-list-dismiss-btn:focus-visible {
    outline: 3px solid var(--marker-yellow);
    outline-offset: 2px;
}
.machine-list-dismiss-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.machine-api-all-dismissed {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink);
}
.server-card--api .server-title-wrap h3.server-card-title-host {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    row-gap: 2px;
    margin-bottom: 2px;
    font-size: 22px;
    line-height: 1.25;
}
.server-card--api .server-card-title-host .server-host-text {
    word-break: break-all;
}
.server-card--api .server-head-dc {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink-light);
    white-space: nowrap;
}
.server-card--api .server-title-wrap p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2px;
}
.server-card--api .status-badge {
    padding: 7px 14px 7px 11px;
    gap: 8px;
    flex-shrink: 0;
}
.server-card--api .status-badge-label {
    font-size: 13px;
    letter-spacing: 0.04em;
}
.server-card--api .status-badge-dot {
    width: 10px;
    height: 10px;
}
@media (max-width: 520px) {
    .server-card--api .status-badge-label {
        white-space: normal;
        max-width: 6.5em;
        text-align: left;
    }
}
.server-card--api .server-specs-grid {
    padding: 12px 14px;
    gap: 10px 14px;
}
.server-card--api .spec-item {
    gap: 2px;
}
.server-card--api .spec-item span {
    font-size: 13px;
}
.server-card--api .spec-item strong {
    font-size: 16px;
}
.server-card--api .machine-cmd,
.server-card--api .machine-secret {
    font-size: 13px;
}
.server-card--api .machine-ticket-hint {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
}
.server-card--api .server-card-footer {
    padding-top: 12px;
    gap: 8px;
}
.server-card--api .server-card-footer .btn-dash {
    padding: 6px 12px;
    font-size: 14px;
    box-shadow: 2px 2px 0 var(--ink);
}
.server-card--api .server-card-footer .btn-dash:hover {
    box-shadow: 3px 3px 0 var(--ink);
}
.server-card--api .machine-pw-eye svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 900px) {
    .server-card--api .server-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- 状态监控 ---------- */
.monitor-panel-root {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.monitor-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
}
.monitor-summary-sep {
    color: var(--ink-light);
}
/* 监控卡片区与「我的机器」共用 .server-list 列数规则；分页条见 .machine-list-pager */
.monitor-cards-wrap.server-list > .machine-list-pager {
    margin-top: 10px;
}
.monitor-cards-wrap.server-list--cols-1 {
    gap: 14px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-card {
    padding: 18px 18px;
    gap: 12px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-card-head {
    gap: 12px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-card-host {
    font-size: 20px;
    margin-bottom: 4px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-card-meta {
    font-size: 13px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-status-pill {
    padding: 5px 10px;
    font-size: 13px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-spark-block {
    gap: 5px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-spark {
    height: 44px;
    padding: 6px 10px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-spark-caption-en {
    font-size: 10px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-meters-grid {
    gap: 10px 14px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-meter-top {
    margin-bottom: 5px;
    gap: 1px 10px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-meter-zh {
    font-size: 13px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-meter-val {
    font-size: 14px;
}
.monitor-cards-wrap.server-list--cols-1 .monitor-meter-track {
    height: 10px;
}
.monitor-card {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
}
.monitor-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.monitor-card-titles {
    flex: 1;
    min-width: 0;
}
.monitor-card-host {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}
.monitor-card-meta {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.45;
}
.monitor-tag-en {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.monitor-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.monitor-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 800;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: var(--marker-green);
    box-shadow: 2px 2px 0 var(--ink);
}
.monitor-status-pill svg {
    width: 16px;
    height: 16px;
}
.monitor-vnc-link {
    text-decoration: none;
    font-size: 16px;
}
.monitor-spark-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.monitor-spark {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    height: 56px;
    padding: 10px 12px;
    background: var(--paper);
    border: 2px dashed var(--ink-light);
    border-radius: var(--sketch-radius-1);
}
.monitor-spark-bar {
    flex: 1;
    min-width: 4px;
    max-width: 12px;
    background: linear-gradient(180deg, var(--marker-blue), var(--marker-pink));
    border-radius: 3px;
    border: 1px solid var(--ink);
    align-self: flex-end;
}
.monitor-spark-caption-en {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.monitor-meter {
    min-width: 0;
}
.monitor-meters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
@media (max-width: 700px) {
    .monitor-meters-grid {
        grid-template-columns: 1fr;
    }
}
.monitor-meter-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    margin-bottom: 8px;
}
.monitor-meter-zh {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
.monitor-meter-en {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-light);
    text-transform: none;
}
.monitor-meter-val {
    grid-row: 1;
    grid-column: 2;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    text-align: right;
}
.monitor-meter-track {
    height: 12px;
    background: var(--paper-dot);
    border: 2px solid var(--ink-light);
    border-radius: 6px;
    overflow: hidden;
}
.monitor-meter-fill {
    height: 100%;
    background: var(--marker-yellow);
    border-right: 2px solid var(--ink);
    transition: width 0.35s ease;
}
.monitor-meter-fill--latency {
    background: var(--marker-blue);
}
.monitor-pending-block {
    padding: 20px 22px;
    background: #fff;
}
.monitor-pending-h {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 超过 5 条：约 5 行高度 + 行间 gap，超出部分垂直滚动（单行/折行标题下略作余量） */
.monitor-pending-scroll--limit {
    max-height: min(58vh, calc(5 * (5.5rem + 2px) + 4 * 10px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 8px 10px 8px 8px;
    margin: 0 -4px 0 0;
    border: 2px dashed var(--ink-light);
    border-radius: var(--sketch-radius-2);
    background: var(--paper);
}
.monitor-pending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.monitor-pending-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--paper);
    border: 2px dashed var(--ink-light);
    border-radius: var(--sketch-radius-2);
    font-size: 15px;
    font-weight: 700;
}
.monitor-pending-title {
    min-width: 0;
    word-break: break-word;
}
.monitor-pending-en {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-light);
    letter-spacing: 0.02em;
}
@media (min-width: 600px) {
    .monitor-pending-item {
        grid-template-columns: 1fr auto auto 1fr;
    }
    .monitor-pending-en {
        grid-column: auto;
        text-align: right;
    }
}
.monitor-pending-id {
    font-weight: 800;
    color: var(--ink-light);
}
.monitor-pending-st {
    font-size: 13px;
    padding: 4px 10px;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: #fff;
}
.monitor-empty,
.monitor-no-live {
    padding: 28px 24px;
    text-align: center;
    background: #fff;
}
.monitor-empty-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
}
.monitor-empty-lead {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.55;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}
.monitor-empty-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.monitor-empty-actions .btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.monitor-no-live {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.5;
}

/* =============================================================================
   控制台 2.0：配色与玻璃拟态对齐全站 Midnight Aurora（common.css / page-shell.css）
   ============================================================================= */

#page-wode-zhanghao.wx-console-page {
    --wx-text-on-glass: var(--white);
    /* 主内容不铺第二套底色，沿用 body 极光mesh；仅内容区用 vitrine 玻璃 */
    background: transparent;
    padding-bottom: 2rem;
}

#page-wode-zhanghao .wx-console-top {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.75rem 2rem;
    padding: 2.25rem 1.25rem 1.75rem;
    margin-bottom: 0.5rem;
}

#page-wode-zhanghao .wx-console-top::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -20%;
    width: min(100%, 52rem);
    height: 120%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(ellipse 58% 50% at 30% 30%, rgba(99, 102, 241, 0.28) 0, transparent 58%),
        radial-gradient(ellipse 44% 42% at 72% 40%, rgba(232, 121, 249, 0.14) 0, transparent 52%);
}

#page-wode-zhanghao .wx-console-top__brand,
#page-wode-zhanghao .wx-console-top__status {
    position: relative;
    z-index: 1;
}

#page-wode-zhanghao .wx-console-top__brand {
    min-width: min(100%, 38rem);
}

#page-wode-zhanghao .wx-console-top__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c4b5fd;
}

#page-wode-zhanghao .wx-console-top__tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.65);
    animation: wx-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes wx-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.88); }
}

@media (prefers-reduced-motion: reduce) {
    #page-wode-zhanghao .wx-console-top__tag-dot {
        animation: none;
    }
}

#page-wode-zhanghao .wx-console-top__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--wx-text-on-glass);
    text-shadow: 0 0 48px rgba(167, 139, 250, 0.2);
}

#page-wode-zhanghao .wx-console-top__subtitle {
    margin: 0.65rem 0 0;
    max-width: 36em;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(233, 223, 255, 0.9);
}

#page-wode-zhanghao .wx-console-top__status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--aurora-border-strong);
    background: rgba(12, 8, 24, 0.55);
    box-shadow:
        0 8px 28px -16px rgba(99, 102, 241, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#page-wode-zhanghao .wx-console-top__ring {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(129, 140, 248, 0.95);
    box-shadow:
        inset 0 0 8px rgba(34, 211, 238, 0.35),
        0 0 12px rgba(167, 139, 250, 0.35);
}

#page-wode-zhanghao .wx-console-top__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

#page-wode-zhanghao .account-dashboard-wrap.dashboard-layout.wx-console-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    grid-template-columns: unset;
    max-width: min(1120px, var(--nav-inner-max));
}

#page-wode-zhanghao .sidebar.wx-console-rail {
    position: sticky;
    top: calc(var(--nav-height, 92px) + 8px);
    z-index: 6;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0.85rem 1rem;
    background: var(--aurora-card);
    border: 1px solid var(--aurora-border);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(18px) saturate(1.06);
    backdrop-filter: blur(18px) saturate(1.06);
    box-shadow: var(--soft-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#page-wode-zhanghao .wx-console-rail__groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

#page-wode-zhanghao .wx-console-rail .menu-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#page-wode-zhanghao .wx-console-rail .menu-group--end {
    margin-left: auto;
}

#page-wode-zhanghao .wx-console-rail .menu-group h5 {
    margin: 0 0 4px 0;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li {
    margin: 0;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 4.6rem;
    padding: 11px 14px;
    margin-bottom: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(233, 223, 255, 0.92);
    border-radius: 14px;
    background: rgba(12, 8, 24, 0.45);
    border: 1px solid var(--aurora-border);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a > i,
#page-wode-zhanghao .wx-console-rail .sidebar-menu li a > svg {
    width: 22px;
    height: 22px;
    margin-top: 0;
    opacity: 0.92;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a .wx-rail-label {
    flex: 0 0 auto;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a:hover {
    transform: none;
    background: var(--accent-soft);
    border-color: rgba(167, 139, 250, 0.32);
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a.active {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.42), rgba(139, 92, 246, 0.22));
    border-color: rgba(167, 139, 250, 0.48);
    color: var(--white);
    box-shadow: var(--cta-shadow);
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a.sidebar-nav-link--badge {
    position: relative;
    padding-right: 14px;
}

#page-wode-zhanghao .wx-console-rail .sidebar-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    box-shadow: 0 0 0 1px rgba(7, 5, 16, 0.6);
    background: linear-gradient(135deg, var(--aurora-neon), var(--aurora-fuchsia));
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a.wx-rail-logout {
    color: rgba(251, 191, 196, 0.95);
    border-color: rgba(244, 114, 182, 0.28);
}

#page-wode-zhanghao .wx-console-rail .sidebar-menu li a.wx-rail-logout:hover {
    background: rgba(244, 114, 182, 0.1);
    border-color: var(--aurora-border-strong);
}

#page-wode-zhanghao .wx-console-stage.dashboard-main {
    margin: 0;
    padding: 1.75rem 1.25rem 2.75rem;
    border-radius: 24px;
    border: 1px solid var(--idx-vitrine-border);
    background: var(--idx-vitrine-bg);
    box-shadow: var(--idx-vitrine-shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

#page-wode-zhanghao .wx-dash-surface.dash-panel .dash-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--aurora-border);
}

#page-wode-zhanghao .wx-dash-surface.dash-panel .dash-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wx-text-on-glass);
}

#page-wode-zhanghao #dashboard-welcome-email {
    border-radius: 10px;
    border: 1px solid rgba(253, 230, 138, 0.28);
    box-shadow: 0 4px 24px rgba(253, 230, 138, 0.06);
    background: var(--marker-yellow);
    color: #1e1b2e;
}

#page-wode-zhanghao .dash-overview-lead {
    font-weight: 600;
    color: rgba(233, 223, 255, 0.88);
}

#page-wode-zhanghao .dash-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}

#page-wode-zhanghao .dash-stat-card.sketch-box {
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
}

#page-wode-zhanghao .dash-stat-value {
    font-size: clamp(1.65rem, 3.5vw, 2rem);
}

#page-wode-zhanghao .dash-overview-orders.sketch-box {
    border-radius: 18px;
}

#page-wode-zhanghao .wx-console-stage .btn-primary.sketch-box,
#page-wode-zhanghao .wx-console-gate__cta.btn-primary.sketch-box {
    border-radius: 12px;
    box-shadow: var(--cta-shadow);
}

#page-wode-zhanghao .wx-console-stage .btn-dash {
    border-radius: 11px;
    border-width: 1px;
    border-color: var(--aurora-border);
    box-shadow: 0 8px 24px -18px rgba(99, 102, 241, 0.45);
    background: rgba(12, 8, 24, 0.5);
}

#page-wode-zhanghao .wx-console-stage .btn-dash:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.35);
}

#page-wode-zhanghao .server-card.sketch-box,
#page-wode-zhanghao .machine-rec-card.sketch-box {
    border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
    #page-wode-zhanghao .wx-console-stage .btn-dash:hover {
        transform: none;
    }
}

#page-wode-zhanghao .support-hub {
    max-width: none;
}

/* 卡片容器 */
#page-wode-zhanghao .support-panel.sketch-box {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(12, 8, 24, 0.55);
    border: 1px solid var(--aurora-border);
    box-shadow: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* 头部工具栏 */
#page-wode-zhanghao .support-panel-header {
    background: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(139, 92, 246, 0.06) 45%,
        rgba(14, 8, 28, 0.2) 100%
    );
    border-bottom-color: var(--aurora-border);
}

#page-wode-zhanghao .support-panel-title {
    font-size: 1.08rem;
    color: rgba(233, 223, 255, 0.95);
}

/* 「刷新」「新建工单」按钮 — Aurora 风格 */
#page-wode-zhanghao .support-panel-actions .btn-dash.sketch-box {
    background: rgba(12, 8, 24, 0.5);
    border: 1px solid var(--aurora-border);
    color: rgba(203, 195, 227, 0.88);
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.82rem;
    padding: 7px 14px;
}
#page-wode-zhanghao .support-panel-actions .btn-dash.sketch-box:hover {
    transform: none;
    background: var(--accent-soft);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: none;
}
#page-wode-zhanghao .support-panel-actions .btn-primary.sketch-box {
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.82rem;
    padding: 7px 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(139,92,246,0.5));
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #e9d5ff;
}
#page-wode-zhanghao .support-panel-actions .btn-primary.sketch-box:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(99,102,241,0.8), rgba(139,92,246,0.7));
}

/* 「状态」筛选标签 */
#page-wode-zhanghao .support-tickets-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

/* 列表区 */
#page-wode-zhanghao .support-list-section {
    padding: 18px 22px 20px;
}

#page-wode-zhanghao .support-list-heading {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 10px;
}

/* 可滚动容器 */
#page-wode-zhanghao .support-tickets-body--scroll {
    border: 1px solid var(--aurora-border);
    border-radius: 12px;
    padding: 0;
}

/* 占位 / 空状态 / 加载中 */
#page-wode-zhanghao .support-tickets-placeholder,
#page-wode-zhanghao .support-tickets-empty {
    color: var(--muted);
    font-size: 0.84rem;
    padding: 16px 4px;
}

/* 错误提示 */
#page-wode-zhanghao .support-tickets-err {
    background: rgba(159, 18, 57, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: 10px;
    color: rgba(252, 165, 165, 0.9);
    font-size: 0.82rem;
    padding: 10px 14px;
}

/* 工单表格 */
#page-wode-zhanghao .support-tickets-table {
    font-size: 0.82rem;
    width: 100%;
}

#page-wode-zhanghao .support-tickets-table th {
    color: var(--muted);
    background: rgba(7, 5, 16, 0.55);
    box-shadow: none;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    padding: 10px 14px;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

#page-wode-zhanghao .support-tickets-table td {
    color: rgba(233, 223, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    padding: 11px 14px;
    vertical-align: middle;
}

#page-wode-zhanghao .support-tickets-table tr:last-child td {
    border-bottom: none;
}

/* 行悬停 / 选中 */
#page-wode-zhanghao .support-ticket-row:hover,
#page-wode-zhanghao .support-ticket-row:focus-visible {
    background: rgba(99, 102, 241, 0.1);
    outline: none;
}

#page-wode-zhanghao .support-ticket-row--active {
    background: rgba(99, 102, 241, 0.18);
}

/* 未读新工单：左侧琥珀色高亮条 */
#page-wode-zhanghao .support-ticket-row--fresh {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 55%);
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.65);
}
#page-wode-zhanghao .support-ticket-row--fresh:hover,
#page-wode-zhanghao .support-ticket-row--fresh:focus-visible {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.18) 0%, rgba(99,102,241,0.1) 60%);
}

/* 工单详情弹窗：模态层 */
.support-ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.support-ticket-modal[hidden] {
    display: none !important;
}

/* 遮罩 */
.support-ticket-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 14, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* 弹窗内容卡片 */
.support-ticket-modal .support-ticket-detail {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(14, 9, 30, 0.96);
    border: 1px solid rgba(167, 139, 250, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(99, 102, 241, 0.18);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    backdrop-filter: blur(20px) saturate(1.1);
    padding: 0;
    margin: 0;
    border-top: none;
}

/* body 滚动锁定 */
body.support-modal-open {
    overflow: hidden;
}

/* ══ 工单详情弹窗（#support-ticket-modal 作用域）════════ */

/* 卡片容器 */
#support-ticket-modal .support-ticket-detail {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top: none;
    padding: 0;
    min-height: 0;
}

/* ── 头部 ─────────────────────────────────────────────── */
#support-ticket-modal .support-ticket-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 14px 26px;
    background: linear-gradient(135deg,
        rgba(99,102,241,0.22) 0%,
        rgba(139,92,246,0.1) 60%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(167,139,250,0.13);
    position: relative;
    flex-shrink: 0;
}
/* 顶部彩虹条 */
#support-ticket-modal .support-ticket-detail-head::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc, #e879f9);
    border-radius: 20px 20px 0 0;
}

#support-ticket-modal .support-ticket-detail-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    word-break: break-word;
    background: linear-gradient(110deg, #f0e6ff 10%, #a5b4fc 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#support-ticket-modal .support-ticket-detail-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 回复切换按钮（沿用 .support-reply-toggle，作用域改为弹窗） */
#support-ticket-modal .support-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(167,139,250,0.28);
    color: rgba(196,181,253,0.9);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
#support-ticket-modal .support-reply-toggle svg,
#support-ticket-modal .support-reply-toggle i { width: 13px; height: 13px; }
#support-ticket-modal .support-reply-toggle:hover,
#support-ticket-modal .support-reply-toggle--active {
    background: rgba(99,102,241,0.3);
    border-color: rgba(167,139,250,0.5);
    color: #e9d5ff;
}

/* × 关闭按钮 */
#support-ticket-modal .support-ticket-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167,139,250,0.15);
    color: rgba(196,181,253,0.5);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
#support-ticket-modal .support-ticket-detail-close svg,
#support-ticket-modal .support-ticket-detail-close i { width: 15px; height: 15px; }
#support-ticket-modal .support-ticket-detail-close:hover {
    background: rgba(244,114,182,0.14);
    border-color: rgba(244,114,182,0.32);
    color: rgba(252,165,165,0.9);
}

/* ── Meta 徽章行 ─────────────────────────────────────── */
#support-ticket-modal .support-ticket-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px 22px 0;
    margin: 0;
    flex-shrink: 0;
}

.support-ticket-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99,102,241,0.16);
    border: 1px solid rgba(167,139,250,0.22);
    color: rgba(196,181,253,0.88);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.support-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.support-status-badge--open  { background: rgba(34,197,94,0.12);  border: 1px solid rgba(34,197,94,0.25);  color: rgba(134,239,172,0.9); }
.support-status-badge--hold  { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.25); color: rgba(253,230,138,0.9); }
.support-status-badge--closed{ background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.2); color: rgba(148,163,184,0.8); }
.support-ticket-meta-date    { color: var(--muted); font-size: 0.7rem; }

/* ── 消息线程区 ──────────────────────────────────────── */
#support-ticket-modal .support-ticket-detail-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 22px 10px;
    max-height: 38vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(167,139,250,0.2) transparent;
}
#support-ticket-modal .support-ticket-detail-thread::-webkit-scrollbar { width: 3px; }
#support-ticket-modal .support-ticket-detail-thread::-webkit-scrollbar-thumb {
    background: rgba(167,139,250,0.22);
    border-radius: 3px;
}

/* 消息卡片：整体容器 */
#support-ticket-modal .support-msg {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    position: static;
}
#support-ticket-modal .support-msg::before { display: none; }

/* 消息头部行：发送人 + 时间 */
#support-ticket-modal .support-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 6px;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: left;
}
/* 头像圆点（::before 放在 meta 内） */
#support-ticket-modal .support-msg-meta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 用户消息：靠右，最大 72% 宽 */
#support-ticket-modal .support-msg--client {
    align-self: flex-end;
    max-width: 72%;
    border-color: rgba(129,140,248,0.18);
    background: rgba(79,84,201,0.1);
}
#support-ticket-modal .support-msg--client .support-msg-meta {
    color: rgba(165,180,252,0.8);
    background: rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(129,140,248,0.12);
}
#support-ticket-modal .support-msg--client .support-msg-meta::before {
    background: #818cf8;
    box-shadow: 0 0 5px rgba(129,140,248,0.7);
}

/* 客服消息：靠左，最大 72% 宽 */
#support-ticket-modal .support-msg--staff {
    align-self: flex-start;
    max-width: 72%;
    border-color: rgba(52,211,153,0.16);
    background: rgba(16,185,129,0.07);
}
#support-ticket-modal .support-msg--staff .support-msg-meta {
    color: rgba(110,231,183,0.8);
    background: rgba(16,185,129,0.1);
    border-bottom: 1px solid rgba(52,211,153,0.1);
}
#support-ticket-modal .support-msg--staff .support-msg-meta::before {
    background: #34d399;
    box-shadow: 0 0 5px rgba(52,211,153,0.6);
}

/* 消息正文 */
#support-ticket-modal .support-msg-body {
    padding: 10px 14px 12px;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(225,217,248,0.88);
    background: transparent;
    border: none;
    border-radius: 0;
}

/* ── 回复表单（展开时） ──────────────────────────────── */
#support-ticket-modal .support-ticket-reply-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(167,139,250,0.1);
    background: rgba(7,4,18,0.55);
    border-radius: 0 0 20px 20px;
}
#support-ticket-modal .support-ticket-reply-form .support-form-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(167,139,250,0.5);
    margin: 0;
}
#support-ticket-modal .support-ticket-reply-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 76px;
    max-height: 160px;
    /* 彻底重置旧 sketch 样式 */
    background: rgba(12,8,24,0.75) !important;
    border: 1px solid rgba(167,139,250,0.2) !important;
    box-shadow: none !important;
    border-radius: 10px;
    color: rgba(233,223,255,0.9);
    font-size: 0.84rem;
    font-weight: 400;
    font-family: inherit;
    padding: 10px 14px;
    resize: vertical;
    line-height: 1.55;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#support-ticket-modal .support-ticket-reply-textarea:focus {
    outline: none !important;
    border-color: rgba(167,139,250,0.45) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
}
#support-ticket-modal .support-ticket-reply-textarea::placeholder {
    color: rgba(155,146,184,0.35);
}
#support-ticket-modal .support-ticket-reply-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
#support-ticket-modal .support-ticket-reply-actions .btn-primary.sketch-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99,102,241,0.75), rgba(139,92,246,0.65));
    border: 1px solid rgba(167,139,250,0.4);
    color: #ede9fe;
    box-shadow: 0 2px 10px rgba(99,102,241,0.22);
    transition: background 0.2s, box-shadow 0.2s;
}
#support-ticket-modal .support-ticket-reply-actions .btn-primary.sketch-box:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(139,92,246,0.8));
    box-shadow: 0 4px 18px rgba(99,102,241,0.36);
}
/* 关闭工单按钮 */
#support-ticket-modal .support-ticket-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(110,231,183,0.82);
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(52,211,153,0.22);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
#support-ticket-modal .support-ticket-close-btn svg,
#support-ticket-modal .support-ticket-close-btn i { width: 14px; height: 14px; }
#support-ticket-modal .support-ticket-close-btn:hover {
    background: rgba(16,185,129,0.16);
    border-color: rgba(52,211,153,0.42);
    color: rgba(134,239,172,0.95);
}
#support-ticket-modal .support-ticket-close-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 错误 / 成功提示 — Aurora 暗色主题覆盖 */
#support-ticket-modal .support-form-err[hidden] { display: none !important; }
#support-ticket-modal .support-form-err {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(252, 165, 165, 0.92);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 8px;
}
#support-ticket-modal .support-form-err::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.25);
    color: rgba(252, 165, 165, 0.9);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

#support-ticket-modal .support-form-ok {
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(134, 239, 172, 0.9);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 8px;
}

#page-wode-zhanghao .billing-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    #page-wode-zhanghao .billing-blocks {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* 账单面板：暗色 Aurora 主题适配 */
#page-wode-zhanghao .billing-block.sketch-box {
    background: rgba(12, 8, 24, 0.5);
    border: 1px solid var(--aurora-border);
    border-radius: 18px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

#page-wode-zhanghao .billing-block-title {
    color: rgba(233, 223, 255, 0.9);
    border-bottom-color: var(--aurora-border);
    font-size: 1rem;
    padding-bottom: 12px;
    margin-bottom: 0;
}

/* 表格：暗色主题 */
#page-wode-zhanghao .billing-table {
    min-width: 0;
    width: 100%;
    font-size: 0.82rem;
}

#page-wode-zhanghao .billing-table th {
    color: var(--muted);
    background: rgba(7, 5, 16, 0.6);
    box-shadow: none;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
    padding: 10px 12px;
}

#page-wode-zhanghao .billing-table td {
    color: rgba(233, 223, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

#page-wode-zhanghao .billing-table tr:last-child td {
    border-bottom: none;
}

/* 订单/发票状态：彩色胶囊 */
#page-wode-zhanghao .billing-table td:nth-child(4),
#page-wode-zhanghao .billing-table td:nth-child(5) {
    white-space: nowrap;
}

/* 金额列高亮 */
#page-wode-zhanghao .billing-table .billing-amount,
#page-wode-zhanghao .billing-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #e2e8f0;
}

/* 支持滚动时表头吸顶 */
#page-wode-zhanghao .billing-block-body--scroll .billing-table thead th {
    background: rgba(7, 5, 16, 0.88);
    box-shadow: 0 1px 0 var(--aurora-border);
}

/* loading / empty 文字 */
#page-wode-zhanghao .billing-loading,
#page-wode-zhanghao .billing-empty {
    color: var(--muted);
    padding: 16px 0;
    font-size: 0.85rem;
}

/* 去支付按钮 */
#page-wode-zhanghao .billing-invoice-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 31px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(139, 92, 246, 0.45));
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    color: #e9d5ff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#page-wode-zhanghao .billing-invoice-pay-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.75), rgba(139, 92, 246, 0.65));
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* 发票状态 pill — 与「去支付」按钮等高对齐 */
.billing-status-pill {
    display: inline-flex;
    align-items: center;
    height: 31px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    box-sizing: border-box;
}

.billing-status-pill--paid {
    background: rgba(34, 197, 94, 0.12);
    color: rgba(134, 239, 172, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.billing-status-pill--unpaid {
    background: rgba(251, 191, 36, 0.1);
    color: rgba(253, 230, 138, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.billing-status-pill--refunded,
.billing-status-pill--canceled,
.billing-status-pill--cancelled {
    background: rgba(148, 163, 184, 0.1);
    color: rgba(148, 163, 184, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

/* 底部脚注 */
#page-wode-zhanghao .billing-footnote {
    color: var(--muted);
    font-size: 0.78rem;
}

#page-wode-zhanghao .billing-fetch-err {
    border-radius: 14px;
    background: rgba(127, 29, 29, 0.4);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

/* ══ 空实例列表 — Aurora 暗色主题适配 ══════════════════ */
#page-wode-zhanghao .machine-empty-state {
    text-align: center;
    padding: 32px 0 40px;
}

#page-wode-zhanghao .machine-empty-icon {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 18px;
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.15);
    color: rgba(165, 180, 252, 0.85);
    margin-bottom: 20px;
}

#page-wode-zhanghao .machine-empty-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #f0e6ff 15%, #a5b4fc 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

#page-wode-zhanghao .machine-empty-lead {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(167, 139, 250, 0.6);
    max-width: 38em;
    margin: 0 auto 32px;
}

#page-wode-zhanghao .machine-empty-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(129, 140, 248, 0.5);
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* 推荐卡片 */
#page-wode-zhanghao .machine-rec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(129, 140, 248, 0.16);
    border-radius: 14px;
    box-shadow: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    color: inherit;
    text-decoration: none;
}
#page-wode-zhanghao .machine-rec-card:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(129, 140, 248, 0.34);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.18);
    color: inherit;
}
#page-wode-zhanghao .machine-rec-card.sketch-box {
    border: 1px solid rgba(129, 140, 248, 0.16);
    box-shadow: none;
}
#page-wode-zhanghao .machine-rec-card.sketch-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.18);
}

#page-wode-zhanghao .machine-rec-ico {
    color: rgba(165, 180, 252, 0.75);
}

#page-wode-zhanghao .machine-rec-card strong {
    font-size: 1.05rem;
    color: rgba(225, 217, 248, 0.9);
}

#page-wode-zhanghao .machine-rec-card > span:last-of-type {
    font-size: 0.83rem;
    font-weight: 400;
    color: rgba(167, 139, 250, 0.55);
}

#page-wode-zhanghao .machine-rec-badge {
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: rgba(165, 180, 252, 0.9);
    border-radius: 20px;
    font-size: 0.68rem;
    padding: 3px 9px;
}

#page-wode-zhanghao .machine-empty-note {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(129, 140, 248, 0.38);
}

@media (max-width: 640px) {
    #page-wode-zhanghao .sidebar.wx-console-rail {
        top: calc(var(--nav-height, 92px) + 2px);
    }
    #page-wode-zhanghao .wx-console-rail__groups {
        gap: 0.65rem 1rem;
    }
    #page-wode-zhanghao .wx-console-rail .menu-group--end {
        margin-left: 0;
        width: 100%;
    }
    #page-wode-zhanghao .wx-console-rail .sidebar-menu {
        justify-content: flex-start;
    }
}

/* =====================================================================
   账号面板：当前登录账户卡片
   ===================================================================== */

.wx-account-id-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 1.75rem;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.16) 0%,
        rgba(12, 8, 24, 0.60) 100%
    );
    border: 1px solid rgba(167, 139, 250, 0.32);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px -12px rgba(99, 102, 241, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 520px;
}

.wx-account-id-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(139, 92, 246, 0.20));
    border: 1px solid rgba(167, 139, 250, 0.45);
    color: #c4b5fd;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.wx-account-id-card__icon svg,
.wx-account-id-card__icon i {
    width: 22px;
    height: 22px;
}

.wx-account-id-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wx-account-id-card__label {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.wx-account-id-card__email {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e1b2e;
    background: var(--marker-yellow);
    padding: 3px 11px 4px;
    border-radius: 8px;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(253, 230, 138, 0.18);
}

/* =====================================================================
   修改密码面板
   ===================================================================== */

.passwd-form-wrap {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.passwd-form-lead {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(196, 181, 253, 0.72);
    line-height: 1.62;
    letter-spacing: 0.01em;
}

.passwd-form-err {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 12px;
}

.passwd-form-ok {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #86efac;
    background: rgba(20, 83, 45, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
}

.passwd-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 22px 26px;
    background: rgba(12, 8, 24, 0.55);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px -16px rgba(79, 70, 229, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 密码面板内表单标签 → 使用极光紫色调，与白色输入文字形成层次 */
.passwd-form .support-form-label {
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(196, 181, 253, 0.88);
    text-transform: none;
}

/* 必填标记：极光粉色替代不协调的红色 */
.passwd-form .support-form-req {
    color: #f472b6;
    font-weight: 800;
}

/* in passwd panel, override support-form-input to match dark theme */
.passwd-input {
    background: rgba(7, 5, 16, 0.58);
    border-color: rgba(167, 139, 250, 0.2);
    border-radius: 11px;
    color: rgba(233, 223, 255, 0.92);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.passwd-input::placeholder {
    color: rgba(155, 146, 184, 0.55);
    font-weight: 500;
}

.passwd-input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(7, 5, 16, 0.72);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =====================================================================
   实例管理页：总览统计条
   ===================================================================== */

.machines-overview-lead {
    margin-bottom: 0;
}

.machines-stat-grid {
    margin-bottom: 12px;
}

.machines-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.machines-section-divider::before,
.machines-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--aurora-border);
}

/* =====================================================================
   实例管理：全宽堆叠布局（列表在上，详情在下）
   ===================================================================== */

.inst-mgmt {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--aurora-border);
    border-radius: 20px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.inst-sidebar {
    background: transparent;
    border-right: none;
    border-bottom: 1px solid var(--aurora-border);
    display: flex;
    flex-direction: column;
}

.inst-sidebar-head {
    padding: 11px 16px 9px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--aurora-border);
    background: rgba(99, 102, 241, 0.06);
}

/* 列表区：固定 3 列，带间距，卡片独立悬浮 */
.inst-sidebar-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px 16px 12px;
    overflow: visible;
}

.inst-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 16px;
    cursor: pointer;
    border: 1px solid var(--idx-vitrine-border);
    border-radius: 16px;
    background: var(--idx-vitrine-bg);
    box-shadow: var(--idx-vitrine-shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.28s var(--ease-smooth, ease), border-color 0.2s ease, box-shadow 0.28s ease;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 130px;
}

.inst-item:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.38);
    box-shadow:
        0 28px 64px -28px rgba(79, 70, 229, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.inst-item:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.65);
    outline-offset: 2px;
}

.inst-item.active {
    border-color: rgba(167, 139, 250, 0.55);
    background: linear-gradient(
        145deg,
        rgba(99, 102, 241, 0.28) 0%,
        rgba(28, 16, 48, 0.88) 100%
    );
    box-shadow:
        0 0 0 2px rgba(139, 92, 246, 0.25),
        0 24px 50px -20px rgba(99, 102, 241, 0.4);
}

/* ── stat-card 风格卡片子元素 ── */

/* label 行：状态胶囊（对应 dash-stat-label） */
.inst-item-label {
    display: flex;
}

/* value 行：机型名（对应 dash-stat-value） */
.inst-item-value {
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 800;
    color: rgba(233, 223, 255, 0.95);
    line-height: 1.25;
    letter-spacing: -0.01em;
    word-break: break-word;
}

/* spec 行：规格（中等字号，略淡） */
.inst-item-spec {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(196, 181, 253, 0.88);
    line-height: 1.35;
}

/* hint 行：元信息（对应 dash-stat-hint） */
.inst-item-hint {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
    letter-spacing: 0.02em;
}

/* 状态胶囊在卡片内的尺寸 */
.inst-item-label .inst-status-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    gap: 5px;
}

.inst-item-label .inst-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-status-dot--green {
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.55);
}

.inst-status-dot--orange { background: #f97316; }
.inst-status-dot--red    { background: #ef4444; }

.inst-item-trash {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    opacity: 0;
    position: static;
    box-shadow: none;
}

.inst-item:hover .inst-item-trash,
.inst-item.active .inst-item-trash {
    opacity: 1;
}

.inst-item-trash:hover {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

.inst-item-trash svg,
.inst-item-trash i { width: 12px; height: 12px; }

/* --- Detail panel --- */

.inst-detail {
    background: rgba(7, 5, 16, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
}

.inst-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 26px 14px;
    border-bottom: 1px solid var(--aurora-border);
    background: rgba(99, 102, 241, 0.05);
}

/* pending 头部：淡橙背景调 */
.inst-detail-head--pending {
    background: linear-gradient(110deg, rgba(99,102,241,0.05) 0%, rgba(251,191,36,0.04) 100%);
}

/* 左侧文字区 */
.inst-detail-head-info {
    flex: 1 1 0;
    min-width: 0;
}

/* 右侧信息卡片区 */
.inst-detail-head-art {
    flex-shrink: 0;
    width: 280px;
    max-width: 38%;
}

/* pending 信息卡片 */
.inst-pending-info {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-pending-info__dc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(253, 230, 138, 0.9);
    margin: 0;
}

.inst-pending-info__dc svg,
.inst-pending-info__dc i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: rgba(251, 191, 36, 0.7);
}

.inst-pending-info__lead {
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(203, 195, 227, 0.75);
    margin: 0;
}

.inst-pending-info__err {
    font-size: 0.73rem;
    color: rgba(252, 165, 165, 0.85);
    margin: 0;
}

.inst-pending-info__support {
    font-size: 0.74rem;
    color: rgba(155, 146, 184, 0.65);
    margin: 0;
}

.inst-pending-info__support a {
    color: rgba(167, 139, 250, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inst-detail-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.04rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 4px;
    word-break: break-word;
}

.inst-detail-title svg,
.inst-detail-title i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(167, 139, 250, 0.8);
}

.inst-detail-order-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.inst-detail-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inst-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.inst-status-pill svg,
.inst-status-pill i { width: 12px; height: 12px; flex-shrink: 0; }

.inst-status-pill--running {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.inst-status-pill--pending {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.inst-status-pill--order {
    color: #fde68a;
    background: rgba(253, 230, 138, 0.07);
    border-color: rgba(253, 230, 138, 0.22);
}

.inst-detail-body {
    flex: 1;
    padding: 20px 26px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
}

.inst-info-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(233, 223, 255, 0.72);
    line-height: 1.58;
    margin: 0;
}

.inst-info-text strong { color: rgba(233, 223, 255, 0.92); font-weight: 800; }
.inst-info-text a { color: rgba(167, 139, 250, 0.9); text-underline-offset: 3px; }

.inst-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--muted);
}

.inst-section-title svg,
.inst-section-title i { width: 13px; height: 13px; }

.inst-power-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-power-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(233, 223, 255, 0.9);
    background: rgba(12, 8, 24, 0.5);
    border: 1px solid var(--aurora-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}

.inst-power-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(167, 139, 250, 0.38);
    color: #fff;
}

.inst-power-btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.inst-power-btn svg,
.inst-power-btn i { width: 15px; height: 15px; }

.inst-connect-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inst-connect-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(12, 8, 24, 0.4);
    border: 1px solid var(--aurora-border);
    border-radius: 12px;
}

.inst-connect-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(167, 139, 250, 0.75);
}

.inst-connect-icon svg,
.inst-connect-icon i { width: 14px; height: 14px; }

.inst-connect-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(233, 223, 255, 0.9);
    min-width: 36px;
    flex-shrink: 0;
}

.inst-connect-value {
    flex: 1;
    min-width: 0;
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* vnc:// 直连地址：绿色高亮行 */
.inst-connect-row--vnc-ready {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.06);
}

/* vnc:// 地址值：等宽绿字 */
.inst-connect-value--vnc {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    color: rgba(134, 239, 172, 0.9);
    word-break: break-all;
}

.inst-connect-value--empty {
    color: rgba(155, 146, 184, 0.4);
    font-style: italic;
    letter-spacing: 0.04em;
}

.inst-connect-status {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

.inst-connect-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.inst-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(233, 223, 255, 0.85);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.inst-connect-btn:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #fff;
    border-color: rgba(167, 139, 250, 0.4);
}

.inst-connect-btn svg,
.inst-connect-btn i { width: 12px; height: 12px; }

.inst-pw-code {
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* 实例详情面板内的密码眼睛按钮：覆盖旧 sketch 主题，对齐 Aurora */
#machine-list-api .machine-pw-eye.inst-connect-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.22);
    box-shadow: none;
    color: rgba(196, 181, 253, 0.8);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

#machine-list-api .machine-pw-eye.inst-connect-btn svg,
#machine-list-api .machine-pw-eye.inst-connect-btn i {
    width: 14px;
    height: 14px;
}

#machine-list-api .machine-pw-eye.inst-connect-btn:hover {
    transform: none;
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(167, 139, 250, 0.42);
    color: #fff;
    box-shadow: none;
}

#machine-list-api .machine-pw-eye.inst-connect-btn:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.6);
    outline-offset: 2px;
}

/* 密码已展示时：暖紫辉光提示用户当前处于"可见"状态 */
#machine-list-api .machine-pw-eye.inst-connect-btn[aria-pressed="true"] {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.5);
    color: #c4b5fd;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* dismiss row at bottom of detail */
.inst-detail-foot {
    padding: 14px 22px 16px;
    border-top: 1px solid var(--aurora-border);
}

.inst-detail-foot .machine-list-dismiss-btn {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--aurora-border);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    box-shadow: none;
}

.inst-detail-foot .machine-list-dismiss-btn:hover {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

.inst-detail-foot .machine-list-dismiss-btn svg,
.inst-detail-foot .machine-list-dismiss-btn i { width: 13px; height: 13px; }

/* 实例列表分页条：追加在 inst-sidebar 内，JS 控制渲染 */
.inst-sidebar-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--aurora-border);
    background: rgba(7, 5, 16, 0.45);
}

.inst-sidebar-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(233, 223, 255, 0.8);
    background: rgba(12, 8, 24, 0.5);
    border: 1px solid var(--aurora-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.inst-sidebar-pager-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(167, 139, 250, 0.38);
    color: #fff;
}

.inst-sidebar-pager-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.inst-sidebar-pager-btn svg,
.inst-sidebar-pager-btn i { width: 13px; height: 13px; }

.inst-sidebar-pager-info {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 720px) {
    .inst-sidebar-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .inst-sidebar-body {
        grid-template-columns: 1fr;
    }
    .inst-detail-body {
        padding: 14px 16px 18px;
    }
}

/* =====================================================================
   #overview 面板专属：颜色 & 布局优化（Aurora 主题对齐）
   ===================================================================== */

/* 面板整体：限宽居左，内容不撑满整个 stage */
#page-wode-zhanghao #dash-panel-overview {
    max-width: 580px;
}

/* 标题行：加一点极光副色辉光 */
#page-wode-zhanghao #dash-panel-overview .dash-header h2 {
    background: linear-gradient(100deg, #e9d5ff 0%, #a78bfa 55%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 账户卡片：max-width 与 passwd-form-wrap 保持一致 */
#page-wode-zhanghao #dash-panel-overview .wx-account-id-card {
    max-width: none;
}

/* passwd-form-wrap 也撑满 */
#page-wode-zhanghao #dash-panel-overview .passwd-form-wrap {
    max-width: none;
}

/* 提交按钮：aurora 渐变，与全站主 CTA 统一风格 */
#page-wode-zhanghao #passwd-submit.btn-primary.sketch-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.75) 0%, rgba(139, 92, 246, 0.65) 100%);
    border: 1px solid rgba(167, 139, 250, 0.48);
    color: #f5f3ff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 11px 28px;
    box-shadow: 0 8px 28px -10px rgba(139, 92, 246, 0.45);
    gap: 8px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#page-wode-zhanghao #passwd-submit.btn-primary.sketch-box:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.82) 100%);
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 10px 32px -8px rgba(139, 92, 246, 0.55);
    transform: translateY(-2px);
}

#page-wode-zhanghao #passwd-submit.btn-primary.sketch-box:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px -6px rgba(139, 92, 246, 0.35);
}

/* ══ 通用确认弹窗 (.ui-confirm-modal) ══════════════════ */
.ui-confirm-modal[hidden] { display: none !important; }
.ui-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ui-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 24, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ui-confirm-card {
    position: relative;
    z-index: 1;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(155deg,
        rgba(30, 27, 60, 0.98) 0%,
        rgba(20, 18, 45, 0.98) 100%
    );
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 16px;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    animation: uiConfirmIn 0.18s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes uiConfirmIn {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* 顶部彩虹条 */
.ui-confirm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc, #e879f9);
}
.ui-confirm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 22px 0 22px;
}
.ui-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.22);
    color: rgba(252, 211, 77, 0.9);
    flex-shrink: 0;
}
.ui-confirm-icon svg,
.ui-confirm-icon i { width: 17px; height: 17px; }
.ui-confirm-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(110deg, #f0e6ff 10%, #a5b4fc 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ui-confirm-body {
    margin: 0;
    padding: 12px 22px 20px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(196, 181, 253, 0.75);
}
.ui-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    background: rgba(255, 255, 255, 0.02);
}
.ui-confirm-cancel {
    height: 34px;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(155, 146, 184, 0.7);
    background: none;
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ui-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
    color: rgba(203, 195, 227, 0.9);
}
.ui-confirm-ok {
    height: 34px;
    padding: 0 18px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(110, 231, 183, 0.9);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.ui-confirm-ok:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}