* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}
body {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft Yahei", sans-serif;
    background: #f5f7fa;
    color: #1f2937;

}
a {

    color: inherit;
    text-decoration: none;

}
.login-page {

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #e0a356 0, #f5f7fa 45%, #f5f7fa 100%);

}
.login-card {

    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr;
    background: radial-gradient(circle at top left, rgba(224,163,86,0.2), #ffffff);
    border-radius: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    backdrop-filter: blur(20px);

}
.login-main {

    padding-right: 0;

}
.login-brand {

    display: flex;
    align-items: center;
    margin-bottom: 18px;

}
.login-logo {

    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: conic-gradient(from 140deg, #e0a356, #c98a2e, #f0c987, #e0a356);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;

}
.login-title {

    margin-left: 10px;

}
.login-title-main {

    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;

}
.login-title-sub {

    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;

}
.login-heading {

    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;

}
.login-desc {

    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
    text-align: center;

}
.login-form-group {

    margin-bottom: 14px;

}
.login-label {

    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;

}
.login-input {

    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.7);
    background: #ffffff;
    color: #1f2937;
    font-size: 13px;
    outline: none;
    transition: all 0.18s ease;

}
.login-input:focus {

    border-color: #e0a356;
    box-shadow: 0 0 0 1px rgba(224,163,86,0.4);

}
.login-input::placeholder {

    color: #6b7280;

}
.login-error {

    margin-bottom: 12px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.55);
    color: #fecaca;
    font-size: 12px;

}
.login-button {

    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #e0a356, #c98a2e);
    color: #fdf6ea;
    box-shadow: 0 16px 40px rgba(160,110,30,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.06em;

}
.login-button:hover {

    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(160,110,30,0.8);

}
.login-button:active {

    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(160,110,30,0.6);

}
.login-button-icon {

    font-size: 16px;

}
.login-footer {

    margin-top: 14px;
    font-size: 11px;
    color: #6b7280;
    text-align: right;

}
.login-side {

    border-radius: 18px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #fdf6ea, #ffffff);
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: inset 0 0 0 1px #e5e7eb;
    font-size: 12px;
    color: #9ca3af;

}
.login-side-title {

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d9b16c;
    margin-bottom: 6px;

}
.login-side-main {

    font-size: 14px;
    margin-bottom: 8px;
    color: #e5e7eb;

}
.login-side-highlight {

    color: #e0a356;
    font-weight: 600;

}
.login-side-list {

    list-style: none;

}
.login-side-list li {

    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;

}
.login-side-dot {

    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0a356, #c98a2e);

}
@media (max-width: 768px) {

    .login-card {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }
    .login-main {
        padding-right: 0;
        margin-bottom: 14px;
    }

}
.admin-shell {

    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    background: #f5f7fa;

}
.admin-sidebar {

    background: #1d2124;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;

}
.admin-sidebar-brand {

    display: flex;
    align-items: center;
    margin-bottom: 20px;

}
.admin-sidebar-logo {

    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0a356, #c98a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;

}
.admin-sidebar-title {

    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e5eaf3;

}
.admin-menu {

    list-style: none;
    margin-top: 8px;
    flex: 1;

}
.admin-menu-item {

    margin-bottom: 4px;

}
.admin-menu-link {

    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 13px;
    color: #c9cdd4;
    transition: all 0.16s ease;

}
.admin-menu-link-sub {

    padding-left: 20px;
    font-size: 12px;

}
.admin-menu-link span {

    white-space: nowrap;

}
.admin-menu-link:hover {

    background: rgba(224,163,86,0.10);
    color: #ffffff;

}
.admin-menu-link.active {

    background: rgba(224,163,86,0.16);
    color: #f0c987;

}
.admin-menu-icon {

    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #e0a356;

}
.admin-menu-item-has-sub .admin-menu-caret {

    margin-left: auto;
    font-size: 11px;
    color: #8a9099;

}
.admin-submenu {

    list-style: none;
    margin: 4px 0 0 0;
    padding-left: 0;
    display: none;

}
.admin-menu-item-has-sub.open > .admin-submenu {

    display: block;

}
.admin-submenu-level3 {

    margin-left: 20px;
    margin-top: 4px;

}
.admin-menu-link-sub3 {

    padding-left: 36px !important;
    font-size: 12px;

}
.admin-sidebar-footer {

    margin-top: auto;
    font-size: 11px;
    color: #8a9099;

}
.admin-content {

    display: flex;
    flex-direction: column;

}
.admin-topbar {

    height: 54px;
    border-bottom: 1px solid rgba(148,163,184,0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, #ffffff, #ffffff);

}
.admin-topbar-left {

    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;

}
.admin-badge {

    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);

}
.admin-topbar-right {

    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;

}
.admin-tabbar-wrapper {

    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(31,41,55,0.9);
    background: #ffffff;

}
.admin-tabbar {

    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;

}
.admin-tabbar::-webkit-scrollbar {

    display: none;

}
.admin-tab {

    display: inline-flex;
    align-items: center;
    max-width: 140px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;

}
.admin-tab.active {

    color: #e0a356;
    border-color: #1d2124;
    background: #1d2124;

}
.admin-tab-title {

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}
.admin-tab-close {

    margin-left: 6px;
    font-size: 12px;
    opacity: 0.7;

}
.admin-tab-close:hover {

    opacity: 1;

}
.admin-tabbar-tools {

    position: relative;
    margin-left: 8px;

}
.admin-tabbar-more-btn {

    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.6);
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;

}
.admin-tabbar-menu {

    position: absolute;
    right: 0;
    top: 30px;
    min-width: 100px;
    background: #f9fafb;
    color: #111827;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 6px 0;
    z-index: 80;
    display: none;

}
.admin-tabbar-menu.show {

    display: block;

}
.admin-tabbar-menu > div {

    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;

}
.admin-tabbar-menu > div:hover {

    background: #e5e7eb;

}
.admin-user-name {

    font-weight: 500;

}
.admin-user-role {

    font-size: 11px;
    color: #6b7280;

}
.admin-avatar {

    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0a356, #c98a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;

}
.admin-logout {

    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #1f2937;

}
.admin-tabbar {

    height: 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #ffffff;
    overflow-x: auto;
    white-space: nowrap;

}
.admin-tabbar-list {

    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;

}
.admin-tabbar-item {

    display: inline-flex;
    align-items: center;
    max-width: 140px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;

}
.admin-tabbar-item.active {

    background: #1d2124;
    color: #e0a356;
    border-color: #1d2124;

}
.admin-tabbar-item span {

    overflow: hidden;
    text-overflow: ellipsis;

}
.admin-tabbar-item-close {

    margin-left: 6px;
    font-size: 11px;
    opacity: 0.6;

}
.admin-tabbar-item-close:hover {

    opacity: 1;

}
.admin-tabbar-menu {

    position: absolute;
    z-index: 100;
    min-width: 88px;
    padding: 4px 0;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.6);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    font-size: 12px;
    color: #1f2937;
    display: none;

}
.admin-tabbar-menu-item {

    padding: 4px 12px;
    cursor: pointer;

}
.admin-tabbar-menu-item:hover {

    background: #f3f4f6;

}
.admin-main {

    padding: 16px 18px 20px;
    overflow: auto;

}
.admin-page-title {

    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;

}
.admin-page-desc {

    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;

}
.dashboard-grid {

    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 16px;
    align-items: start;

}
.card {

    border-radius: 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);

}
.admin-main > .card + .card {

    margin-top: 20px;

}
.card-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;

}
.card-title {

    font-size: 14px;
    font-weight: 600;

}
.card-tag {

    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #6b7280;

}
.metrics {

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

}
.metric {

    padding: 8px 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224,163,86,0.18), rgba(201,138,46,0.08));

}
.metric-label {

    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;

}
.metric-value {

    font-size: 18px;
    font-weight: 700;

}
.metric-sub {

    font-size: 11px;
    color: #6b7280;

}
.metric-multi-day .metric-multi-rows {

    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;

}
.metric-multi-day .metric-multi-row {

    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;

}
.metric-multi-day .metric-day {

    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;

}
.metric-multi-day .metric-day-val {

    font-size: 15px;
    font-weight: 700;
    text-align: right;

}
.metric-multi-day .metric-total-row {

    padding-bottom: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);

}
.metric-multi-day .metric-total-row .metric-day-val {

    font-size: 17px;
    color: #1f2937;

}
.metric-multi-day .metric-combo-hint {

    font-size: 10px;
    color: #6b7280;
    margin: -2px 0 4px;
    letter-spacing: 0.02em;

}
.metric-multi-day .metric-combo-pair {

    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    flex-wrap: nowrap;

}
.metric-multi-day .metric-combo-plus {

    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1;

}
.metric-multi-day .metric-total-row .metric-combo-pair .metric-combo-num {

    font-size: 17px;
    font-weight: 700;
    color: #1f2937;

}
.metric-multi-day .metric-multi-row:not(.metric-total-row) .metric-combo-pair .metric-combo-num {

    font-size: 15px;
    font-weight: 700;

}
.timeline {

    list-style: none;
    font-size: 12px;

}
.timeline li {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;

}
.timeline-label {

    color: #6b7280;

}
.quick-links {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;

}
.quick-link-item {

    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.4);
    cursor: pointer;
    font-size: 12px;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 4px;

}
.quick-link-item span:nth-child(1) {

    font-weight: 600;

}
.quick-link-item span:nth-child(2) {

    color: #6b7280;
    font-size: 11px;

}
.timeline-time {

    color: #6b7280;

}
.timeline-empty .timeline-label,
.timeline-empty .timeline-time {

    opacity: 0;

}
.dashboard-logs-table-wrapper {

    max-height: 360px;
    overflow: auto;
    border-radius: 12px;

}
.update-modal-summary {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.35);

}
.update-row {

    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    min-width: 0;
    align-items: center;
    text-align: center;

}
.update-row b {

    color: #1f2937;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}
.update-mono {

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}
.update-changelog {

    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.6;
    max-height: 190px;
    overflow: auto;

}
.update-changelog ul {

    margin-left: 16px;

}
.update-changelog li {

    margin-bottom: 4px;

}
.update-msg {

    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.55);
    color: #bbf7d0;
    font-size: 12px;

}
.update-msg.error {

    background: rgba(248,113,113,0.12);
    border-color: rgba(248,113,113,0.55);
    color: #fecaca;

}
.update-modal-actions {

    display: flex;
    gap: 8px;

}
.admin-table-wrapper {

    width: 100%;
    overflow-x: auto;

}
.admin-table {

    width: 100%;
    border-collapse: collapse;
    font-size: 12px;

}
.admin-table thead {

    background: #ffffff;

}
.admin-table th,
.admin-table td {

    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;

}
.admin-table th {

    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;

}
.admin-table tbody tr:nth-child(odd) {

    background: #ffffff;

}
.admin-table tbody tr:nth-child(even) {

    background: #ffffff;

}
.admin-filter-bar {

    margin-bottom: 10px;
    font-size: 12px;

}
.admin-filter-row {

    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: flex-end;

}
.admin-filter-item {

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;

}
.admin-filter-item label {

    color: #6b7280;
    font-size: 12px;

}
.admin-filter-item label::after {

    content: '：';

}
.admin-filter-item input,
.admin-filter-item select {

    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 4px 8px;
    color: #1f2937;
    font-size: 12px;
    min-width: 90px;
    max-width: 140px;

}
.admin-filter-actions {

    display: flex;
    gap: 8px;
    margin-left: auto;

}
.admin-filter-actions button {

    border: none;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    color: #e0a356;
    cursor: pointer;
    background: #1d2124;

}
.admin-filter-actions button:hover {

    background: #2a2f36;

}
.admin-filter-actions a {

    font-size: 12px;
    color: #6b7280;
    padding: 5px 10px;

}
.admin-pagination {

    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;

}
.admin-pagination-links a {

    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);

}
.admin-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    color: #e0a356;
    background: #1d2124;
    cursor: pointer;
    transition: all 0.16s ease;

}
.admin-btn:hover {

    background: #2a2f36;

}
.admin-btn-xs {

    padding: 3px 8px;
    font-size: 11px;

}
.admin-btn-ghost {

    background: #ffffff;
    border: 1px solid #dcdfe6;
    color: #606266;

}
.admin-btn-ghost:hover {

    background: #ffffff;
    border-color: #e0a356;
    color: #e0a356;

}
.admin-btn-square {

    border-radius: 8px;

}
.switch {

    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;

}
.switch input {

    opacity: 0;
    width: 0;
    height: 0;

}
.switch-slider {

    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #22c55e; /* 启用中：绿色 */
    transition: .2s;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #d1d5db;

}
.switch-slider:before {

    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: #e5e7eb;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);

}
.switch input:checked + .switch-slider {

    background-color: #ef4444; /* 禁用：红色 */

}
.switch input:checked + .switch-slider:before {

    transform: translateX(20px);

}
.switch.switch-enabled .switch-slider {

    background-color: rgba(148,163,184,0.55); /* 未开启：灰色 */

}
.switch.switch-enabled input:checked + .switch-slider {

    background-color: #22c55e; /* 已开启：绿色 */

}
.admin-toast {

    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 16px);
    max-width: 360px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(22,163,74,0.96);
    color: #ecfdf5;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 80; /* 高于模态框遮罩（70），确保在任何弹窗之上可见 */
    text-align: center;

}
.admin-toast.error {

    background: rgba(248,113,113,0.96);
    color: #fee2e2;

}
.admin-toast.show {

    opacity: 1;
    transform: translate(-50%, -50%);

}
.admin-modal-backdrop {

    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;

}
.admin-modal {

    width: 520px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 24px 70px rgba(0,0,0,0.85);
    padding: 14px 16px 16px;
    color: #1f2937;
    font-size: 13px;

}
.admin-modal-header {

    font-weight: 600;
    margin-bottom: 10px;

}
.admin-modal-body {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 12px;
    margin-bottom: 12px;

}
.admin-modal-row label {

    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: #6b7280;

}
.admin-modal-row input,
.admin-modal-row select {

    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;

}
.pay-credential-textarea {

    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    min-height: 80px;
    max-height: 260px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;

}
.pay-credential-textarea:focus {

    border-color: #e0a356;
    box-shadow: 0 0 0 1px rgba(224,163,86,0.4);

}
.pay-credential-textarea::placeholder {

    color: #6b7280;

}
.pay-credential-textarea::-webkit-scrollbar {

    width: 6px;

}
.pay-credential-textarea::-webkit-scrollbar-track {

    background: #ffffff;

}
.pay-credential-textarea::-webkit-scrollbar-thumb {

    background: rgba(55,65,81,0.9);
    border-radius: 999px;

}
.admin-modal-row input[type="checkbox"],
.admin-modal-row input[type="radio"] {

    width: auto;
    padding: 0;
    border: none;
    background: transparent;

}
.admin-modal-row-full {

    grid-column: 1 / -1;

}
.channel-form-body {

    display: flex;
    flex-direction: column;
    gap: 10px;

}
.channel-form-body .admin-modal-row {

    display: flex;
    align-items: center;
    gap: 16px;

}
.channel-form-body .admin-modal-row label {

    width: 120px;
    margin-bottom: 0;
    text-align: right;

}
.channel-form-body .admin-modal-row label.switch {

    text-align: left;
    margin-bottom: 0;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;

}
.channel-form-body .admin-modal-row .switch {

    width: 40px;
    height: 20px;

}
.channel-form-body .admin-modal-row input,
.channel-form-body .admin-modal-row select,
.channel-form-body .admin-modal-row textarea {

    max-width: 480px;

}
.channel-form-body .admin-input-stack {

    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    max-width: 480px;
    min-width: 0;

}
.channel-form-body .admin-input-stack > input,
.channel-form-body .admin-input-stack > select,
.channel-form-body .admin-input-stack > textarea {

    max-width: 100%;

}
.channel-form-body .admin-input-help {

    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;

}
.channel-form-body .admin-input-help b {

    color: #1f2937;
    font-weight: 700;

}
.channel-form-body .admin-modal-row.admin-modal-row-helptext {

    align-items: flex-start;

}
.channel-form-body .admin-modal-row.admin-modal-row-helptext label {

    padding-top: 2px;

}
.channel-form-body .admin-modal-row.admin-modal-row-helptext .admin-input-help {

    max-width: 480px;
    padding-top: 2px;

}
.channel-form-body .admin-modal-row textarea {

    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;

}
.channel-form-body .admin-modal-row textarea::-webkit-scrollbar {

    width: 6px;

}
.channel-form-body .admin-modal-row textarea::-webkit-scrollbar-track {

    background: #ffffff;

}
.channel-form-body .admin-modal-row textarea::-webkit-scrollbar-thumb {

    background: rgba(55,65,81,0.9);
    border-radius: 999px;

}
.miniapp-upload-key-textarea {

    min-height: 220px;
    max-height: 360px;

}
.channel-form-body .admin-modal-row textarea:focus {

    border-color: #e0a356;
    box-shadow: 0 0 0 1px rgba(224,163,86,0.4);

}
.channel-form-body .admin-modal-row textarea::placeholder {

    color: #6b7280;

}
.base-form-body .admin-modal-row {

    display: flex;
    align-items: center;
    gap: 16px;

}
.base-form-body .admin-modal-row label {

    width: 120px;
    margin-bottom: 0;
    text-align: right;

}
.base-form-body .admin-modal-row input,
.base-form-body .admin-modal-row select {

    max-width: 480px;

}
.form-actions-left {

    margin-top: 12px;
    padding-left: 260px; /* 120(label) + 16(gap)，与输入区域对齐 */
    text-align: left;

}
.form-actions-left .admin-btn {

    padding: 6px 22px;        /* 比默认更大一些 */
    font-size: 13px;          /* 字稍微大一点 */
    border-radius: 4px;       /* LikeAdmin 小圆角矩形 */

}
.btn-copy {

    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;

}
.btn-copy:hover {

    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;

}
.input-with-copy {

    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px; /* 与普通输入框一致 */

}
.input-with-copy input {

    flex: 1;
    width: 100%;
    max-width: none; /* 避免被 480px 限制后整体变窄 */

}
.channel-form-body input[type="radio"] {

    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;

}
.channel-form-body label label {

    cursor: pointer;
    color: #1f2937;
    font-size: 12px;

}
.admin-modal-toggle-row {

    display: flex;
    align-items: center;
    gap: 24px;

}
.admin-modal-toggle-item {

    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;

}
.admin-modal-footer {

    display: flex;
    justify-content: flex-end;
    gap: 8px;

}
.miniapp-progress-overlay {

    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;

}
.miniapp-progress-card {

    width: 420px;
    max-width: 92vw;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border-radius: 14px;
    padding: 18px 20px 18px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.08),
        0 0 0 1px #e5e7eb;
    border: 1px solid rgba(224, 163, 86, 0.4);

}
.miniapp-progress-title {

    font-size: 15px;
    font-weight: 600;
    color: #1f2937;

}
.miniapp-progress-sub {

    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;

}
.miniapp-progress-steps {

    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 10px;

}
.miniapp-progress-step {

    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;

}
.miniapp-progress-step + .miniapp-progress-step {

    margin-left: 6px;

}
.miniapp-progress-step-dot {

    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4b5563;
    box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.9);

}
.miniapp-progress-step.active .miniapp-progress-step-dot {

    background: #e0a356;
    box-shadow:
        0 0 0 1px rgba(160, 110, 30, 0.8),
        0 0 0 5px rgba(160, 110, 30, 0.25);

}
.miniapp-progress-step.completed .miniapp-progress-step-dot {

    background: #22c55e;
    box-shadow:
        0 0 0 1px rgba(22, 163, 74, 0.8),
        0 0 0 5px rgba(22, 163, 74, 0.25);

}
.miniapp-progress-step.active,
.miniapp-progress-step.completed {

    color: #1f2937;

}
.miniapp-progress-bar-wrap {

    margin-top: 4px;

}
.miniapp-progress-bar {

    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, rgba(148,163,184,0.25), #ffffff);
    overflow: hidden;

}
.miniapp-progress-bar-inner {

    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0c987, #e0a356, #c98a2e);
    box-shadow: 0 0 14px rgba(224, 163, 86, 0.75);
    transition: width 0.35s ease-out;

}
.miniapp-progress-percent {

    margin-top: 4px;
    text-align: right;
    font-size: 11px;
    color: #6b7280;

}
.miniapp-upload-result {

    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

}
.miniapp-upload-result-title {

    font-size: 13px;
    color: #1f2937;

}
.miniapp-upload-result-meta {

    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;

}
.miniapp-upload-result-ci {

    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    max-height: 260px;
    overflow: auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 8px 10px;

}
.miniapp-upload-result-ci::-webkit-scrollbar {

    width: 6px;

}
.miniapp-upload-result-ci::-webkit-scrollbar-thumb {

    background: rgba(55, 65, 81, 0.9);
    border-radius: 999px;

}
.miniapp-success-modal-backdrop {

    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1250;

}
.miniapp-success-modal {

    width: 420px;
    max-width: 92vw;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border-radius: 16px;
    padding: 18px 20px 16px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.08),
        0 0 0 1px #e5e7eb;
    border: 1px solid rgba(224,163,86,0.5);

}
.miniapp-success-title {

    font-size: 15px;
    font-weight: 600;
    color: #1f2937;

}
.miniapp-success-sub {

    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;

}
.miniapp-success-actions {

    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;

}
.user-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;

}
.user-card {

    border-radius: 14px;
    padding: 10px 12px;
    background: radial-gradient(circle at top left, #ffffff, #ffffff);
    border: 1px solid rgba(148,163,184,0.35);
    font-size: 12px;

}
.user-card-header {

    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;

}
.user-card-avatar {

    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0a356, #c98a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fdf6ea;
    overflow: hidden;

}
.user-card-avatar img {

    width: 100%;
    height: 100%;
    object-fit: cover;

}
.user-card-main {

    flex: 1;
    min-width: 0;

}
.user-card-name {

    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;

}
.user-card-sub {

    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}
.user-card-tag {

    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #6b7280;

}
.user-card-tag-vip {

    border-color: rgba(250,204,21,0.8);
    color: #facc15;

}
.user-card-body {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;

}
.user-card-item .label {

    display: block;
    font-size: 11px;
    color: #6b7280;

}
.user-card-item .value {

    font-size: 12px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}
@media (max-width: 900px) {

    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}
.member-card-gap {
 margin-top: 14px; 
}

/* LikeAdmin 风格：侧边栏子菜单保持深色 */
.admin-menu-item-has-sub > .admin-submenu,
.admin-submenu {
    background: transparent !important;
    border-radius: 6px !important;
    padding: 4px 0 !important;
}
.admin-submenu .admin-menu-link-sub {
    color: #b8bcc2 !important;
}
.admin-submenu .admin-menu-link-sub:hover,
.admin-submenu .admin-menu-link-sub.active {
    color: #f0c987 !important;
    background: rgba(224,163,86,0.14) !important;
}

/* 卡片阴影调轻（覆盖可能的残留） */
.card,
.admin-main > .card + .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

/* =========================================================
   全局字号调整：对齐 LikeAdmin（Element Plus 基准 14px）
   ========================================================= */
body {
    font-size: 14px !important;
}

/* 页面标题与描述 */
.admin-page-title {
    font-size: 20px !important;
}
.admin-page-desc {
    font-size: 14px !important;
}

/* 侧边栏 */
.admin-sidebar-title {
    font-size: 15px !important;
}
.admin-sidebar-footer {
    font-size: 12px !important;
}
.admin-menu-link {
    font-size: 14px !important;
}
.admin-menu-link-sub {
    font-size: 13px !important;
}

/* 顶栏与标签页 */
.admin-topbar {
    font-size: 14px !important;
}
.admin-tab,
.admin-tabbar,
.admin-tabs,
.admin-tabbar-item,
.admin-tabbar-menu-item {
    font-size: 14px !important;
}
.admin-user-name,
.admin-user-role,
.admin-user-menu,
.admin-topbar-select {
    font-size: 14px !important;
}

/* 卡片 */
.card-title {
    font-size: 16px !important;
}
.card-tag {
    font-size: 12px !important;
}
.card-header {
    font-size: 14px !important;
}

/* 表格 */
table {
    font-size: 14px !important;
}
table th {
    font-size: 13px !important;
}
table td {
    font-size: 14px !important;
}

/* 表单 */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    font-size: 14px !important;
}
.admin-modal-row > label,
.form-label {
    font-size: 14px !important;
}
.admin-modal-header {
    font-size: 16px !important;
}

/* 按钮 */
.admin-btn {
    font-size: 14px !important;
}
.admin-btn-xs {
    font-size: 13px !important;
}

/* 徽标 / 标签 / 提示 */
.badge,
.tag,
.admin-tag,
.admin-badge {
    font-size: 12px !important;
}
.admin-toast {
    font-size: 14px !important;
}
.dashboard-stat-label,
.dashboard-stat-value {
    font-size: 14px !important;
}

/* 表格 */
.admin-table thead {
    background: #f9fafb !important;
}
.admin-table tbody tr:nth-child(odd) {
    background: #f9fafb !important;
}
.admin-table tbody tr:nth-child(even) {
    background: #ffffff !important;
}
.admin-table tbody tr:hover {
    background: #f3f4f6 !important;
}
.admin-table th {
    color: #374151 !important;
    font-weight: 600 !important;
}
.admin-table td {
    color: #4b5563 !important;
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e5e7eb !important;
}

/* 分页 */
.admin-pagination-links a {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #4b5563 !important;
}
.admin-pagination-links a:hover {
    border-color: #e0a356 !important;
    color: #e0a356 !important;
}
.admin-pagination-links a.active {
    background: #1d2124 !important;
    border-color: #1d2124 !important;
    color: #e0a356 !important;
}

/* 下拉菜单（右上角更多、用户菜单等） */
.admin-dropdown-menu,
.admin-tabbar-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* 提示框 */
.admin-toast {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    color: #1f2937 !important;
}
.admin-toast.error {
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* =====================================================
   LikeAdmin 主题：页面内深色残留样式覆盖
   （PHP 页面 <style> 块与 style="" 中的深色内联样式）
   ===================================================== */

/* 页面 <style> 定义的深色块 → LikeAdmin 浅色信息块 */
.admin-template-tip {
    background: #f0f7ff !important;
    border: 1px dashed #c6e2ff !important;
    color: #4b5563 !important;
}
.admin-template-tip .tip-title {
    color: #1f2937 !important;
}
.admin-template-tip .tip-meta b {
    color: #374151 !important;
}
.admin-template-tip code {
    background: #e8f3ff !important;
    border: 1px solid #d1e9ff !important;
    color: #b8862f !important;
}
.admin-readonly-row {
    background: #f5f7fa !important;
    border: 1px solid #e5e7eb !important;
}
.admin-readonly-row input[readonly] {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}
.admin-readonly-row input[readonly]::placeholder {
    color: #9ca3af !important;
}
.admin-image-preview {
    background: #f3f4f6 !important;
}

/* style="" 内联深色背景（兼容带空格/不带空格两种写法） */
[style*="background: rgba(15,23,42"],
[style*="background:rgba(15,23,42"],
[style*="background: rgba(2,6,23"],
[style*="background:rgba(2,6,23"],
[style*="background: rgba(30,41,59"],
[style*="background:rgba(30,41,59"] {
    background: #ffffff !important;
}

[style*="rgba(15, 23, 42, 0.6)"],
[style*="rgba(15,23,42,0.6)"] {
    background: #f3f4f6 !important;
}

[style*="rgba(15, 23, 42, 0.9)"],
[style*="rgba(15,23,42,0.9)"] {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

[style*="rgba(2, 6, 23, 0.25)"],
[style*="rgba(2,6,23,0.25)"] {
    background: #f9fafb !important;
}

/* 内联浅色文字 → 深色 */
[style*="color: #e5e7eb"],
[style*="color:#e5e7eb"] {
    color: #1f2937 !important;
}

[style*="color: #9ca3af"],
[style*="color:#9ca3af"] {
    color: #6b7280 !important;
}

[style*="color: #cbd5e1"],
[style*="color:#cbd5e1"] {
    color: #4b5563 !important;
}

/* 内联边框 */
[style*="border: 1px dashed rgba(148,163,184,0.5)"] {
    border-color: #d1d5db !important;
}

[style*="border-bottom: 1px solid rgba(31,41,55,0.9)"] {
    border-bottom-color: #e5e7eb !important;
}

/* =====================================================
   全局兜底：把各页面残留的暗色内联/类样式统一压成浅色主题
   （覆盖 #111827 / #0f172a / #0e1831 / #020617 / #1e293b 等写法）
   ===================================================== */

/* 暗色背景 → 白色 */
[style*="background: #111827"], [style*="background:#111827"],
[style*="background: #0f172a"], [style*="background:#0f172a"],
[style*="background: #0e1831"], [style*="background:#0e1831"],
[style*="background: #020617"], [style*="background:#020617"],
[style*="background: #1e293b"], [style*="background:#1e293b"],
[style*="background: #1f2937"], [style*="background:#1f2937"],
[style*="background: #0b1220"], [style*="background:#0b1220"] {
    background: #ffffff !important;
}

/* 暗色边框 → 浅灰 */
[style*="border:1px solid #4b5563"], [style*="border: 1px solid #4b5563"],
[style*="border:1px solid #1f315e"], [style*="border: 1px solid #1f315e"],
[style*="border:1px solid #374151"], [style*="border: 1px solid #374151"] {
    border-color: #d1d5db !important;
}

/* 浅色文字 → 深色（补充常见暗色主题用色） */
[style*="color: #e8eefc"], [style*="color:#e8eefc"],
[style*="color: #dbeafe"], [style*="color:#dbeafe"] {
    color: #1f2937 !important;
}

[style*="color: #c8d1e8"], [style*="color:#c8d1e8"],
[style*="color: #9fb0d8"], [style*="color:#9fb0d8"],
[style*="color: #7890be"], [style*="color:#7890be"],
[style*="color: #93c5fd"], [style*="color:#93c5fd"] {
    color: #6b7280 !important;
}

[style*="color: #bbf7d0"], [style*="color:#bbf7d0"] {
    color: #15803d !important;
}

[style*="color: #fecaca"], [style*="color:#fecaca"] {
    color: #b91c1c !important;
}

[style*="color: #e2e8f0"], [style*="color:#e2e8f0"] {
    color: #374151 !important;
}

/* 暗色半透明背景（各种透明度写法）→ 浅色 */
[style*="background: rgba(15, 23, 42"], [style*="background:rgba(15,23,42"],
[style*="background: rgba(2, 6, 23"], [style*="background:rgba(2,6,23"],
[style*="background: rgba(30, 41, 59"], [style*="background:rgba(30,41,59"] {
    background: #f3f4f6 !important;
}

/* 暗色 <style> 块中常见的选择器兜底（页面自有类） */
.invite-row .label,
.invite-stats-table,
.invite-stats-table th,
.invite-stats-table td {
    color: #374151 !important;
}

.invite-stats-table th {
    background: #f9fafb !important;
}

.invite-stats-table th,
.invite-stats-table td {
    border-color: #e5e7eb !important;
}
