/*--åŽå°ï¼šçŽ°ä»£å¾®è´¨æ„Ÿ SaaS é£Žæ ¼--*/
@import url('vendor/css/font-awesome.min.css');

.admin-page {
    display: flex; height: 100vh; overflow: hidden; background: #f5f7fa;
}

/* å·¦ä¾§è¾¹æ  */
.sidebar {
    width: 240px; background: #ffffff; border-right: 1px solid #eef0f5;
    display: flex; flex-direction: column; flex-shrink: 0;
    position: relative;
}
.sidebar-logo {
    height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: #1f2937; border-bottom: 1px solid #eef0f5;
}
.sidebar-logo::before {
    content: "G"; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; background: #5a5ceb; color: #fff;
    border-radius: 6px; font-size: 14px;
}
.sidebar-menu { padding: 16px 16px 64px; flex: 1; overflow-y: auto; }
.menu-group { margin-bottom: 24px; }
.menu-title { font-size: 12px; color: #9ca3af; margin: 0 0 8px 12px; font-weight: 500; }
.menu-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 4px; border-radius: 8px;
    color: #4b5563; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.menu-item:hover { background: #f3f4f6; color: #1f2937; }
.menu-item.active { background: #eef0ff; color: #5a5ceb; }

.sidebar-nav-toggle {
    position: absolute; right: 14px; bottom: 16px; z-index: 4;
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #9ca3af;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    cursor: pointer; transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.sidebar-nav-toggle:hover {
    color: #5a5ceb; background: #eef0ff; border-color: #dde1ff;
    box-shadow: 0 10px 26px rgba(90, 92, 235, .16);
}
.sidebar-nav-toggle i { font-size: 15px; line-height: 1; }

.sidebar-nav-panel {
    position: absolute; right: 14px; bottom: 58px; z-index: 5;
    width: 204px; max-height: 420px; overflow: hidden;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    padding: 14px;
}
.sidebar-nav-panel[hidden] { display: none; }
.sidebar-nav-panel-title {
    color: #1f2937; font-size: 14px; font-weight: 700; margin-bottom: 4px;
}
.sidebar-nav-panel-hint {
    color: #9ca3af; font-size: 12px; line-height: 1.5; margin-bottom: 10px;
}
.sidebar-nav-panel-list {
    max-height: 300px; overflow-y: auto; padding-right: 2px;
}
.sidebar-nav-check {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 4px; border-radius: 8px;
    color: #374151; font-size: 13px; cursor: pointer; user-select: none;
}
.sidebar-nav-check:hover { background: #f9fafb; }
.sidebar-nav-check input {
    width: 14px; height: 14px; accent-color: #5a5ceb; flex-shrink: 0;
}
.sidebar-nav-panel-reset {
    width: 100%; margin-top: 10px; padding: 8px 10px;
    border: 0; border-radius: 8px; background: #eef0ff; color: #5a5ceb;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.sidebar-nav-panel-reset:hover {
    background: #dde1ff;
}

/* å³ä¾§å†…å®¹åŒº */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* é¡¶æ  */
.topbar {
    height: 64px; background: #ffffff; border-bottom: 1px solid #eef0f5;
    display: flex; justify-content: space-between; align-items: center; padding: 0 32px;
}
.topbar-left { color: #5a5ceb; font-size: 14px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-badge {
    background: #f3f4f6; color: #4b5563; padding: 4px 12px; border-radius: 20px; font-size: 13px;
}
.btn-logout { color: #6b7280; font-size: 14px; text-decoration: none; }
.btn-logout:hover { color: #ef4444; }

/* æ»šåŠ¨åŒºåŸŸ */
.scroll-area { flex: 1; padding: 32px; overflow-y: auto; }
.page-title { margin: 0 0 24px; font-size: 20px; font-weight: 700; color: #1f2937; }

/* å¡ç‰‡ */
.card {
    background: #ffffff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 24px; margin-bottom: 24px;
}
.card h2 { margin: 0 0 20px; font-size: 16px; font-weight: 600; color: #1f2937; }

/* è¡¨å• */
.form-row { display: flex; gap: 16px; align-items: flex-end; }
.form-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #4b5563; }
.form-field.flex-1 { flex: 1; }
.form-field.flex-2 { flex: 2; }
.form-field input {
    padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
    outline: none; transition: border-color 0.2s; background: #f9fafb;
}
.form-field input:focus { border-color: #5a5ceb; background: #fff; box-shadow: 0 0 0 3px #eef0ff; }

.btn-primary {
    background: #5a5ceb; color: #fff; border: none; padding: 10px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: #4a4cd6; }
.btn-secondary {
    background: #eef0ff; color: #5a5ceb; border: none; padding: 10px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: #dde1ff; }

/* è¡¨æ ¼ */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
    text-align: left; padding: 14px 16px; border-bottom: 1px solid #eef0f5;
    color: #9ca3af; font-size: 13px; font-weight: 500; background: #fafafa;
}
.data-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.data-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.data-table td { padding: 16px; border-bottom: 1px solid #eef0f5; font-size: 14px; color: #1f2937; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f9fafb; }
.data-table tr.row-hidden td { opacity: 0.45; }
.data-table tr.row-hidden:hover td { background: #fef2f2; opacity: 0.7; }

.url-cell { font-weight: 500; }
.status-badge {
    background: #e6f7f1; color: #10b981; padding: 4px 10px; border-radius: 12px; font-size: 12px;
}
.action-link {
    color: #5a5ceb; background: #eef0ff; padding: 4px 12px; border-radius: 6px;
    font-size: 13px; text-decoration: none; margin-right: 8px; border: none; cursor: pointer;
}
.action-link.danger { color: #ef4444; background: #fee2e2; }
.action-link:hover { opacity: 0.8; }

/* å³ä¸‹è§’æç¤º */
.alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
.admin-page .scroll-area > .alert {
    position: fixed; right: 24px; bottom: 24px; z-index: 1200;
    min-width: 220px; max-width: min(420px, calc(100vw - 48px));
    padding: 12px 16px; border-radius: 10px; margin: 0;
    font-size: 14px; line-height: 1.6;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
    animation: admin-toast-hide 4s ease forwards;
}
.alert-success { background: #e6f7f1; color: #10b981; }
.alert-error { background: #fee2e2; color: #ef4444; }
.admin-page .scroll-area > .alert-success { background: #e6f7f1; color: #047857; border: 1px solid #bbf7d0; }
.admin-page .scroll-area > .alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
@keyframes admin-toast-hide {
    0%, 82% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); visibility: hidden; }
}

/* ç™»å½•é¡µ */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ebf5 100%);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;
}
.login-box {
    background: #fff; padding: 44px 40px 32px; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(90, 92, 235, 0.10), 0 4px 12px rgba(0,0,0,0.04);
    width: 100%; max-width: 420px; box-sizing: border-box;
}
.login-box h1 {
    margin: 0 0 8px; font-size: 22px; color: #1f2937; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    font-weight: 600;
}
.login-box h1::before {
    content: "G"; display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; background: linear-gradient(135deg, #6366f1, #5a5ceb);
    color: #fff; border-radius: 14px; font-size: 26px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(90, 92, 235, 0.30);
}
.login-box .hint {
    text-align: center; color: #6b7280; font-size: 13px;
    margin: 0 0 24px;
}
.login-box form { display: flex; flex-direction: column; gap: 14px; }
.login-box label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 13px; color: #374151; font-weight: 500;
}
.login-box input[type="password"],
.login-box input[type="text"] {
    width: 100%; box-sizing: border-box;
    padding: 11px 14px; font-size: 14px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    background: #f9fafb; color: #1f2937;
    outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.login-box input[type="password"]:focus,
.login-box input[type="text"]:focus {
    border-color: #5a5ceb; background: #fff;
    box-shadow: 0 0 0 3px rgba(90, 92, 235, 0.12);
}
.login-box button[type="submit"] {
    width: 100%; margin-top: 6px;
    padding: 12px 16px; font-size: 14px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #6366f1, #5a5ceb);
    border: 0; border-radius: 10px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(90, 92, 235, 0.25);
    transition: transform .12s ease, box-shadow .15s, opacity .15s;
}
.login-box button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(90, 92, 235, 0.32); }
.login-box button[type="submit"]:active { transform: translateY(0); opacity: .92; }
.login-box .back-link {
    margin: 22px 0 0; text-align: center; font-size: 13px;
}
.login-box .back-link a {
    color: #6b7280; text-decoration: none;
    transition: color .15s;
}
.login-box .back-link a:hover { color: #5a5ceb; }
.login-box .alert { margin-bottom: 16px; text-align: center; font-size: 13px; }

/* æŒ‡å®šçš„ç™»å½•å¤±è´¥çŠ¶æ€ä½¿ç”¨ä¸å¯é€šè¿‡é®ç½©å…³é—­çš„å¼ºæé†’å¼¹çª—ã€‚ */
.login-failure-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .64);
    backdrop-filter: blur(2px);
}
.login-failure-modal {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid rgba(254, 202, 202, .9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    text-align: center;
}
.login-failure-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 9px 22px rgba(220, 38, 38, .25);
}
.login-failure-modal-title {
    margin: 0 0 10px;
    color: #991b1b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}
.login-failure-modal-description {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.75;
}
.login-failure-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-failure-return-form {
    width: 100%;
    margin: 0;
}
.login-failure-primary-button,
.login-failure-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.login-failure-primary-button {
    border: 1px solid #f97316;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 8px 18px rgba(234, 88, 12, .22);
}
.login-failure-secondary-button {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
}
.login-failure-primary-button:hover,
.login-failure-secondary-button:hover {
    filter: brightness(.98);
}
.login-failure-secondary-button:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}
.login-failure-primary-button:focus-visible,
.login-failure-secondary-button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .25);
    outline-offset: 3px;
}
.login-failure-only-action {
    color: #374151;
    background: #f9fafb;
}
.restricted-support-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #f97316;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, .32), 0 8px 18px rgba(234, 88, 12, .2);
    animation: restricted-support-pulse 2s ease-in-out infinite;
    transition: filter .15s ease, box-shadow .15s ease;
}
.restricted-support-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 0 5px rgba(249, 115, 22, .12), 0 10px 22px rgba(234, 88, 12, .26);
}
.restricted-support-button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .28);
    outline-offset: 3px;
}
.restricted-support-button.is-load-error {
    border-color: #dc2626;
    background: #dc2626;
    animation: none;
}
.restricted-support-arrow {
    font-size: 18px;
    line-height: 1;
}
@keyframes restricted-support-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .28), 0 8px 18px rgba(234, 88, 12, .2); }
    50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0), 0 8px 22px rgba(234, 88, 12, .28); }
}
@media (prefers-reduced-motion: reduce) {
    .restricted-support-button { animation: none; }
}
@media (max-width: 520px) {
    .login-failure-modal-mask { padding: 16px; }
    .login-failure-modal { padding: 26px 20px; border-radius: 16px; }
    .login-failure-modal-title { font-size: 18px; }
}

/* ============ æŽ§åˆ¶é¢æ¿ä¸“ç”¨ ============ */

/* ä¾§è¾¹æ ï¼šèœå•æ ‡è¯† */
.menu-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 20px;
    color: #9ca3af; font-size: 15px; line-height: 1; margin-right: 10px; flex-shrink: 0;
}
.menu-item.active .menu-icon { color: #5a5ceb; }

/* æ¬¢è¿Žæ¡ */
.welcome-bar {
    background: #fff; padding: 24px 28px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.welcome-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #1f2937; }
.welcome-sub   { margin: 0; font-size: 14px; color: #9ca3af; }
.welcome-time {
    background: #f5f7fa; color: #4b5563; font-size: 13px;
    padding: 6px 14px; border-radius: 20px; font-variant-numeric: tabular-nums;
}

/* æ•°æ®å¡ç‰‡ç½‘æ ¼ */
.stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stat-grid { grid-template-columns: 1fr; } }

/* æ•°æ®å¡ç‰‡ */
.stat-card {
    background: #fff; padding: 20px 24px; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* å½©è‰²å…‰æ™•è£…é¥°ï¼ˆä»¿æˆªå›¾å³ä¸Šè§’çš„åœ†å½¢è‰²å—ï¼‰ */
.stat-card.glow-purple::after,
.stat-card.glow-blue::after,
.stat-card.glow-orange::after,
.stat-card.glow-red::after {
    content: ""; position: absolute; top: -30px; right: -30px;
    width: 120px; height: 120px; border-radius: 50%; opacity: 0.4;
    pointer-events: none;
}
.stat-card.glow-purple::after { background: radial-gradient(circle, #c7d2fe 0%, transparent 70%); }
.stat-card.glow-blue::after   { background: radial-gradient(circle, #bae6fd 0%, transparent 70%); }
.stat-card.glow-orange::after { background: radial-gradient(circle, #fed7aa 0%, transparent 70%); }
.stat-card.glow-red::after    { background: radial-gradient(circle, #fecaca 0%, transparent 70%); }

.stat-label {
    color: #6b7280; font-size: 14px; margin-bottom: 12px;
    position: relative; z-index: 1;
}
.stat-value {
    font-size: 30px; font-weight: 700; color: #1f2937; line-height: 1.2;
    font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.stat-value-md {
    font-size: 16px; font-weight: 600; color: #1f2937;
    margin-top: 6px; position: relative; z-index: 1;
}
.stat-sub {
    margin-top: 10px; color: #9ca3af; font-size: 12px;
    position: relative; z-index: 1;
}
.stat-tag {
    display: inline-block; margin-top: 10px; padding: 2px 10px;
    border-radius: 12px; font-size: 12px; position: relative; z-index: 1;
}
.tag-green { background: #e6f7f1; color: #10b981; }
.tag-grey  { background: #f3f4f6; color: #6b7280; }

.stat-cta {
    margin-top: 14px; color: #5a5ceb; font-size: 13px; font-weight: 500;
    position: relative; z-index: 1;
}

/* å¿«æ·å…¥å£å¡ç‰‡ hover */
.link-card { display: block; text-decoration: none; cursor: pointer; }
.link-card:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(90, 92, 235, 0.12);
}
.link-card-danger:hover { box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12); }
.link-card-danger .stat-cta { color: #ef4444; }

/* åˆ†ç±»é€Ÿè§ˆï¼šæ ‡ç­¾äº‘ */
.quick-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; position: relative; z-index: 1; }
.quick-tag {
    background: #f3f4f6; color: #4b5563; font-size: 12px;
    padding: 4px 10px; border-radius: 12px;
}
.quick-tag b { color: #5a5ceb; margin-left: 4px; }

/* ============ å ä½é¡µ ============ */
.placeholder-card {
    text-align: center;
    padding: 80px 24px;
    background:
        radial-gradient(circle at top right, #eef0ff 0%, transparent 40%),
        radial-gradient(circle at bottom left, #e6f7f1 0%, transparent 40%),
        #fff;
}
.placeholder-icon {
    font-size: 64px; line-height: 1; margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(90, 92, 235, 0.2));
}
.placeholder-title {
    margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #1f2937;
}
.placeholder-desc {
    margin: 0 auto 24px; max-width: 480px; color: #6b7280; font-size: 14px; line-height: 1.7;
}
.placeholder-back {
    display: inline-block; padding: 8px 20px; border-radius: 8px;
    background: #eef0ff; color: #5a5ceb; font-size: 13px;
    font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.placeholder-back:hover { background: #5a5ceb; color: #fff; }

/* ============ ç”¨æˆ·ç®¡ç† ============ */

/* 3 åˆ—å¸ƒå±€ï¼ˆç”¨æˆ·ç®¡ç†ç”¨ï¼‰ */
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .stat-grid-3 { grid-template-columns: 1fr; } }

/* å½©è‰²æ ‡é¢˜ */
.stat-label-color { font-size: 14px; font-weight: 600; }
.color-green  { color: #10b981; }
.color-blue   { color: #2563eb; }
.color-yellow { color: #f59e0b; }
.color-red    { color: #ef4444; }

/* å¡ç‰‡å³ä¸Šè§’æ ‡è¯† */
.stat-card { position: relative; }
.stat-icon {
    position: absolute; top: 24px; right: 24px;
    font-size: 26px; opacity: 0.6;
}

/* ç”¨æˆ·è¡¨æ ¼ï¼šè¡Œé«˜æ›´å¤§ */
.user-table td { padding: 18px 16px; }

/* çŠ¶æ€å¾½ç«  */
.user-status {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 500; color: #fff;
}
.user-status.online  { background: #10b981; }
.user-status.offline { background: #9ca3af; }

/* é€šç”¨ä¸‰è‰²å¾½ç« ï¼ˆæœåŠ¡å™¨ç®¡ç† / åˆ°æœŸç®¡ç†ç”¨ï¼‰ */
.badge-pill {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 500; color: #fff; line-height: 1.6;
    white-space: nowrap;
}
.badge-pill.badge-success { background: #10b981; }
.badge-pill.badge-warning { background: #f59e0b; }
.badge-pill.badge-danger  { background: #ef4444; }
.badge-pill.badge-info    { background: #3b82f6; }

.server-expiry-progress {
    width: 86px;
    height: 6px;
    margin-top: 7px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.server-expiry-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}
.server-expiry-progress-fill.success { background: #10b981; }
.server-expiry-progress-fill.warning { background: #f59e0b; }
.server-expiry-progress-fill.danger  { background: #ef4444; }

.server-price-with-history {
    display: inline-flex;
    align-items: center;
    color: #10b981;
    font-weight: 600;
    cursor: help;
    outline: none;
}
.server-price-with-history:focus {
    border-radius: 6px;
    box-shadow: 0 0 0 3px #dcfce7;
}
.server-history-tooltip {
    position: fixed;
    z-index: 1400;
    display: none;
    padding: 8px 10px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    pointer-events: none;
    white-space: nowrap;
}
.server-history-tooltip.show { display: block; }
.server-history-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
}
.server-history-amount {
    color: #047857;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.server-history-panel small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* å¯åœå¼€å…³ */
.switch { position: relative; display: inline-block; width: 34px; height: 18px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0; background-color: #d1d5db;
    transition: 0.2s; border-radius: 34px;
}
.slider::before {
    content: ""; position: absolute; height: 14px; width: 14px;
    left: 2px; top: 2px; background-color: #fff;
    transition: 0.2s; border-radius: 50%;
}
.switch input:checked + .slider { background-color: #3b82f6; }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* åŠé€æ˜Žæ¬¡è¦æŒ‰é’® */
.btn-ghost {
    background: #f3f4f6; color: #4b5563; border: none;
    padding: 10px 24px; border-radius: 8px; font-size: 14px;
    cursor: pointer; margin-right: 8px;
}
.btn-ghost:hover { background: #e5e7eb; }

/* Server group tabs: match qr-tool template category buttons. */
.server-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.server-filter-search,
.server-category-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.server-category-switch {
    justify-content: flex-end;
    margin-left: auto;
}
.server-group-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.server-group-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.server-group-tab-compact {
    min-height: 36px;
    padding: 7px 12px;
    max-width: 150px;
    font-size: 13px;
}
.server-group-tab:hover {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #16a34a;
}
.server-group-tab.active {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(22, 163, 74, .22);
}
@media (max-width: 900px) {
    .server-filter-row { align-items: stretch; }
    .server-filter-search,
    .server-category-switch { width: 100%; }
    .server-category-switch { justify-content: flex-start; margin-left: 0; }
}

/* ============ æ¨¡æ€æ¡† ============ */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px);
    z-index: 1000; align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-box {
    background: #fff; border-radius: 16px; width: 90%; max-width: 460px;
    max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden;
    animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #eef0f5;
    flex-shrink: 0;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.modal-close {
    background: transparent; border: none; cursor: pointer;
    font-size: 24px; color: #9ca3af; line-height: 1; padding: 0;
}
.modal-close:hover { color: #1f2937; }
.modal-body {
    padding: 24px;
    min-height: 0;
    overflow-y: auto;
}
.modal-body input[type="text"],
.modal-body input[type="password"],
.modal-body input[type="date"],
.modal-body input[type="number"],
.modal-body textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; outline: none;
    background: #f9fafb; transition: border-color 0.2s;
    font-family: inherit;
}
.modal-body textarea { resize: vertical; line-height: 1.6; }
.modal-body input:focus, .modal-body textarea:focus {
    border-color: #5a5ceb; background: #fff; box-shadow: 0 0 0 3px #eef0ff;
}
.modal-body input:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }

/* å…¬å‘Šå†…å®¹é¢„è§ˆ */
.ann-content {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 13px; line-height: 1.6;
}

/* è¡¨å•ä¸¤åˆ—ç½‘æ ¼ */
.form-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* å¡ç‰‡å†… form è¾“å…¥ä¸Žä¸‹æ‹‰ç»Ÿä¸€å¤–è§‚ */
.card form .form-field input[type="text"],
.card form .form-field input[type="url"],
.card form .form-field input[type="number"],
.card form .form-field select,
.card form .form-field textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; outline: none;
    background: #f9fafb; transition: border-color 0.2s;
    font-family: inherit;
}
.card form .form-field textarea { resize: vertical; line-height: 1.6; }
.card form .form-field input:focus,
.card form .form-field select:focus,
.card form .form-field textarea:focus {
    border-color: #5a5ceb; background: #fff; box-shadow: 0 0 0 3px #eef0ff;
}

/* å½“å‰ç”Ÿæ•ˆå¾½ç« ï¼ˆç»¿è‰²ï¼‰ */
.badge-active {
    display: inline-block; background: #dcfce7; color: #166534;
    border: 1px solid #bbf7d0; border-radius: 999px;
    padding: 2px 10px; font-size: 12px; font-weight: 500;
}

/* é¢„è®¾åˆ—è¡¨ */
.preset-list { display: flex; flex-direction: column; gap: 8px; }
.preset-item {
    display: flex; align-items: center; justify-content: space-between;
    background: #f9fafb; border: 1px solid #eef0f5; border-radius: 10px;
    padding: 8px 12px;
}
.preset-text { font-size: 13px; color: #1f2937; }
.preset-text.inactive { color: #9ca3af; text-decoration: line-through; }
.preset-actions { display: flex; gap: 4px; }

/* Tab å¯¼èˆª */
.tab-nav {
    display: flex; gap: 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px;
    overflow-x: auto;
}
.tab-item {
    padding: 10px 18px; font-size: 14px; color: #6b7280; text-decoration: none;
    border-bottom: 2px solid transparent; transition: all 0.15s;
    white-space: nowrap; font-weight: 500;
}
.tab-item:hover { color: #1f2937; }
.tab-item.active { color: #5a5ceb; border-bottom-color: #5a5ceb; font-weight: 600; }

/* Tabï¼šè‡ªåŠ¨å¡«æ»¡å‰©ä½™å®½åº¦ï¼ˆç”¨äºŽåˆ†ç»„ tabï¼‰ */
.tab-nav.tab-fill { overflow-x: hidden; }
.tab-nav.tab-fill .tab-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
}
.tab-nav.tab-fill .tab-item { display: flex; align-items: center; }
.tab-nav.tab-fill .tab-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* åˆ‡æ¢å¼€å…³ */
.switch {
    position: relative; display: inline-block; width: 36px; height: 20px;
    vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db; transition: 0.2s; border-radius: 20px;
}
.switch .slider::before {
    position: absolute; content: ""; height: 14px; width: 14px;
    left: 3px; bottom: 3px; background-color: #fff; transition: 0.2s; border-radius: 50%;
}
.switch input:checked + .slider { background-color: #10b981; }
.switch input:checked + .slider::before { transform: translateX(16px); }
.switch-label {
    display: inline-block; margin-left: 6px; font-size: 12px; vertical-align: middle;
}

/* mini æŒ‰é’® */
.btn-mini {
    padding: 5px 12px; font-size: 12px; border-radius: 6px; border: none;
    cursor: pointer; transition: all 0.15s;
}
.btn-mini.btn-primary { background: #5a5ceb; color: #fff; }
.btn-mini.btn-primary:hover { background: #4a4cd6; }
.btn-mini.btn-danger { background: #ef4444; color: #fff; }
.btn-mini.btn-danger:hover { background: #dc2626; }

/* å±é™©æŒ‰é’® */
.btn-danger {
    background: #ef4444; color: #fff; border: none; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: background 0.2s;
}
.btn-danger:hover { background: #dc2626; }

/* ç»Ÿè®¡å›¾è¡¨ï¼ˆCSS æ¨ªå‘æ¡å½¢ï¼‰ */
.stats-bars { display: flex; flex-direction: column; gap: 8px; }
.stats-bar-row { display: grid; grid-template-columns: 100px 1fr 60px; gap: 12px; align-items: center; }
.stats-bar-label { color: #6b7280; font-size: 12px; }
.stats-bar-track { background: #f3f4f6; border-radius: 999px; height: 8px; overflow: hidden; }
.stats-bar-fill { background: linear-gradient(90deg, #5a5ceb, #6366f1); height: 100%; border-radius: 999px; transition: width 0.3s; }
.stats-bar-value { color: #1f2937; font-weight: 600; font-size: 13px; text-align: right; }

/* æŽ’åºæŒ‰é’®ï¼ˆä¸Šç§»/ä¸‹ç§»ï¼‰ */
.sort-cell { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-btn {
    background: #f3f4f6; color: #6b7280; border: none; cursor: pointer;
    width: 22px; height: 18px; border-radius: 4px;
    font-size: 9px; line-height: 1; padding: 0;
    transition: all 0.15s;
}
.sort-btn:hover:not(:disabled) { background: #5a5ceb; color: #fff; }
.sort-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* æ¨¡æ€æ¡†çš„ä¸‹æ‹‰æ¡†æ ·å¼ */
.modal-body select {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; outline: none;
    background: #f9fafb; transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.modal-body select:focus { border-color: #5a5ceb; background-color: #fff; box-shadow: 0 0 0 3px #eef0ff; }

/* ============ é“¾æŽ¥ç®¡ç† ============ */

/* ç­›é€‰æ¡å¡ç‰‡ */
.filter-card { padding: 20px 24px; position: relative; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.filter-row {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 12px; align-items: center;
}
.filter-input {
    padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; outline: none; background: #fff; transition: border-color 0.2s;
    appearance: none;
}
select.filter-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.filter-input:focus { border-color: #5a5ceb; box-shadow: 0 0 0 3px #eef0ff; }
.btn-search {
    background: #5a5ceb; color: #fff; border: none; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
}
.btn-search:hover { background: #4a4cd6; }
.filter-total {
    margin-top: 14px; text-align: right; color: #9ca3af; font-size: 13px;
}

/* ç”¨æˆ·å¤´åƒï¼ˆå°åœ†åœˆï¼‰ */
.user-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #14b8a6; color: #fff; font-size: 13px; font-weight: 600;
    text-overflow: ellipsis; overflow: hidden;
}
.user-avatar-empty { background: #e5e7eb; color: #9ca3af; }

/* åˆ†ç±»å¾½ç« ï¼ˆè“è‰²ï¼‰ */
.cat-badge {
    display: inline-block; background: #3b82f6; color: #fff;
    font-size: 12px; padding: 4px 12px; border-radius: 12px;
    font-weight: 500;
}
.cat-badge-toggle {
    border: 0; cursor: pointer; font-family: inherit;
    line-height: 1.5; vertical-align: middle;
}
.cat-badge-toggle:hover { filter: brightness(.96); }
.cat-badge.cat-badge-hidden {
    background: #e5e7eb; color: #6b7280;
    border: 1px solid #d1d5db;
}
.cat-badge.cat-badge-partial {
    background: #fef3c7; color: #92400e;
    border: 1px solid #fde68a;
}
.cat-hidden-mark {
    display: inline-block; margin-left: 6px; padding-left: 6px;
    border-left: 1px solid rgba(107, 114, 128, .35);
    font-size: 11px; font-weight: 500;
}

/* URL è“è‰²è¶…é“¾æŽ¥ */
.url-link {
    color: #2563eb; font-weight: 500; word-break: break-all;
    transition: color 0.2s;
}
.url-link:hover { color: #1d4ed8; text-decoration: underline; }

/* é“¾æŽ¥è¡¨æ ¼è¡Œé«˜ */
.link-table td { padding: 18px 16px; vertical-align: middle; }

.cat-tip {
    color: #9ca3af; font-size: 12px; margin-bottom: 8px;
}
.category-preview {
    display: flex; flex-wrap: wrap; gap: 8px;
    background: #f9fafb; border: 1px solid #eef0f5;
    border-radius: 10px; padding: 12px; margin-bottom: 16px;
}
.cat-chip {
    display: inline-flex; align-items: center;
    background: #eff6ff; color: #2563eb;
    border: 1px solid #bfdbfe; border-radius: 999px;
    padding: 2px 4px 2px 12px;
    font-size: 12px; font-weight: 500;
    transition: all 0.15s;
}
.cat-chip:hover { background: #dbeafe; }
.cat-chip.cat-chip-hidden {
    background: #f3f4f6; color: #6b7280;
    border-color: #d1d5db;
}
.cat-chip.cat-chip-hidden:hover { background: #e5e7eb; }
.cat-chip-hidden .cat-chip-btn { color: #6b7280; }
.cat-chip-hidden .cat-chip-btn.del { color: #ef4444; }
.cat-chip-hidden-mark {
    margin-left: 6px; padding: 1px 6px;
    background: #e5e7eb; color: #6b7280;
    border-radius: 999px; font-size: 11px; font-weight: 500;
}
.cat-chip-name { line-height: 22px; }
.cat-chip-btn {
    background: transparent; border: none; cursor: pointer;
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; padding: 0; margin-left: 2px;
    color: #2563eb; opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}
.cat-chip:hover .cat-chip-btn { opacity: 1; }
.cat-chip-btn:hover { background: #fff; }
.cat-chip-btn.del { color: #ef4444; font-size: 14px; line-height: 1; }
.cat-chip-btn.del:hover { background: #fee2e2; }

/* å°å±å¹•ï¼šç­›é€‰æ¡å•åˆ— */
@media (max-width: 900px) {
    .filter-row { grid-template-columns: 1fr; }
}

/* ===== ç³»ç»Ÿè®¾ç½®ï¼štab åˆ‡æ¢ ===== */
.settings-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* settings-tabsï¼šè‡ªåŠ¨å¡«æ»¡å‰©ä½™å®½åº¦ï¼ˆç”¨äºŽåˆ†ç»„ tabï¼‰ */
.settings-tabs.settings-tabs-fill {
    flex-wrap: nowrap;
    gap: 0;
}
.settings-tabs.settings-tabs-fill .settings-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.settings-tab {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    padding: 10px 18px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: color .15s, background .15s, border-color .15s;
}
.settings-tab:hover { color: #1f2937; background: #f3f4f6; }
.settings-tab.active {
    color: #fff;
    background: #10b981;
    border-color: #10b981;
    border-bottom: 1px solid #10b981;
    margin-bottom: -1px;
    font-weight: 600;
}
.settings-tab i { margin-right: 6px; color: #9ca3af; }
.settings-tab.active i { color: #5a5ceb; }
.settings-pane { display: none; }
.settings-pane.active { display: block; }

/* ===== ç³»ç»Ÿè®¾ç½®ï¼šè¡¨æ ¼å†…è¾“å…¥æ¡†ç»Ÿä¸€å¤–è§‚ ===== */
.data-table td input[type="text"],
.data-table td input[type="number"],
.data-table td input[type="url"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #1f2937;
    background: #f9fafb;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    font-family: inherit;
    box-sizing: border-box;
}
.data-table td input[type="text"]::placeholder,
.data-table td input[type="number"]::placeholder,
.data-table td input[type="url"]::placeholder { color: #c4c8d0; }
.data-table td input[type="text"]:hover,
.data-table td input[type="number"]:hover,
.data-table td input[type="url"]:hover { border-color: #cbd5e1; background: #fff; }
.data-table td input[type="text"]:focus,
.data-table td input[type="number"]:focus,
.data-table td input[type="url"]:focus {
    border-color: #5a5ceb;
    background: #fff;
    box-shadow: 0 0 0 3px #eef0ff;
}

/* å‰ç¼€è§„åˆ™è¡¨æ ¼è¡Œï¼šç¨å¾®ç´§å‡‘ã€æ“ä½œåˆ—å±…ä¸­ */
#rulesTable td { padding: 10px 12px; vertical-align: middle; }
#rulesTable td:last-child { text-align: center; }
#rulesTable tr:hover td { background: transparent; }

/* ===== æ›´æ¢è®°å½• å¼¹çª— ===== */
#replaceRecordsModal .modal-box { width: 95%; max-height: 86vh; display: flex; flex-direction: column; }
#replaceRecordsModal .modal-body { flex: 1; overflow-y: auto; }
.records-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    margin-bottom: 16px;
}
.records-filter select {
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.records-filter select:focus {
    border-color: #5a5ceb;
    box-shadow: 0 0 0 3px #eef0ff;
}
.records-filter .btn-primary {
    padding: 9px 18px;
    font-size: 13px;
}
.records-wrap {
    border: 1px solid #eef0f5;
    border-radius: 12px;
    overflow: auto;
    max-height: 56vh;
}
.records-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
.records-table th {
    position: sticky; top: 0; z-index: 1;
    background: #fafafa;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f5;
    font-size: 12px; color: #6b7280; font-weight: 600;
    text-align: left;
}
.records-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #1f2937;
    vertical-align: top;
    word-break: break-all;
}
.records-table tr:last-child td { border-bottom: none; }
.records-table tr:hover td { background: #f9fafb; }
.rec-user { font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.rec-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    line-height: 1.4;
}
.rec-url {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}
.rec-url:hover { text-decoration: underline; }
.records-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid #eef0f5;
}
.records-page-info { color: #6b7280; font-size: 12px; }
.records-page-actions { display: flex; gap: 6px; }
.records-page-actions .btn-mini { padding: 7px 14px; }
@media (max-width: 720px) {
    .records-filter { grid-template-columns: 1fr 1fr; }
    .records-filter .btn-primary { grid-column: span 2; }
}

/* ===== é€šç”¨æ¶ˆæ¯å¼¹çª—ï¼ˆæ›¿ä»£æµè§ˆå™¨åŽŸç”Ÿ alert/confirmï¼‰ ===== */
.app-msg-box {
    width: 92%;
    max-width: 420px;
    padding: 28px 28px 22px;
    text-align: center;
}
.app-msg-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    line-height: 1;
}
.app-msg-icon-info    { background: #eef0ff; color: #5a5ceb; }
.app-msg-icon-success { background: #dcfce7; color: #16a34a; }
.app-msg-icon-warning { background: #fef3c7; color: #d97706; }
.app-msg-icon-error   { background: #fee2e2; color: #dc2626; }
.app-msg-icon-confirm { background: #dbeafe; color: #2563eb; }
.app-msg-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}
.app-msg-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    word-break: break-all;
}
.app-msg-body:empty { display: none; }
.app-msg-line {
    white-space: pre-wrap;
}
.app-msg-line:empty {
    height: 6px;
}
.app-msg-foot {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.app-msg-foot .btn-primary,
.app-msg-foot .btn-mini {
    min-width: 96px;
    padding: 9px 22px;
    font-size: 14px;
}
