:root {
            --ant-primary-color: #409eff;
            --ant-success-color: #67c23a;
            --ant-error-color: #f56c6c;
            --ant-border-color: #dcdfe6;
            --ant-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
            --head-height: 36px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: Arial, "Microsoft YaHei", sans-serif;
            font-size: 14px;
            background: #efefef;
            color: #1f1f1f;
            overflow: hidden;
            height: 100vh;
        }
        .layout {
            display: grid;
            grid-template-columns: 148px 1fr;
            height: 100vh;
            min-height: 0;
            overflow: hidden;
        }
        .sidebar {
            background: #f3f3f3;
            border-right: 1px solid #d7d7d7;
            display: flex;
            flex-direction: column;
        }
        .side-header {
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 14px;
            border-bottom: 1px solid #d7d7d7;
        }
        .side-header .logo {
            font-size: 16px;
            font-weight: 700;
            color: #ef9f11;
            cursor: pointer;
            letter-spacing: 0;
        }
        .sub-logo {
            font-size: 12px;
            color: #999;
            margin: 0;
            padding: 6px 14px 7px;
            border-bottom: 1px solid #e1e1e1;
            background: transparent;
        }
        .menu {
            flex: 1;
            padding: 5px 0;
            overflow-y: auto;
        }
        .menu-group {
            margin-bottom: 1px;
        }
        .menu-group-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 7px 14px 5px;
            font-size: 14px;
            color: #8f8f8f;
            font-weight: 700;
        }
        .menu-count {
            font-size: 12px;
            color: #b4b4b4;
        }
        .menu-children {
            display: grid;
            gap: 1px;
        }
        .menu-item {
            margin: 0;
            min-height: 36px;
            padding: 0 14px;
            cursor: pointer;
            font-size: 14px;
            color: #333;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            font-weight: 600;
            border-left: 0;
            user-select: none;
        }
        .menu-item:hover {
            background: #efefef;
            color: #111;
        }
        .menu-item.active {
            background: #fff;
            color: #111;
            font-weight: 600;
        }
        .menu-item.menu-child {
            min-height: 36px;
            padding-left: 28px;
            font-size: 14px;
            font-weight: 500;
        }
        .menu-item.menu-plain {
            padding-left: 16px;
        }
        .main {
            flex: 1;
            min-width: 0;
            min-height: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            background: #f5f5f5;
            overflow: hidden;
        }
        .header {
            min-height: 56px;
            border-bottom: 1px solid #d9d9d9;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px 12px;
            background: #f8f8f8;
            gap: 8px;
            overflow: hidden;
        }
        .lottery-bar,
        .lottery-container {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            overflow: hidden;
        }
        .lottery-tabs {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex-shrink: 0;
        }
        .site-switch {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 22px;
            padding: 0 8px;
            border: 1px solid #d9d9d9;
            background: #fff;
            color: #333;
            font-size: 12px;
            line-height: 20px;
            cursor: pointer;
            white-space: nowrap;
            border-radius: 4px;
        }
        .site-switch.active {
            background: #1677ff;
            border-color: #1677ff;
            color: #fff;
        }
        .lottery-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
            flex-shrink: 0;
            line-height: 1.2;
        }
        .draw-period,
        .draw-link,
        .header-mini-link,
        .header-domain,
        .expire-text,
        .header-welcome {
            font-size: 13px;
            white-space: nowrap;
        }
        .draw-link {
            color: #2563eb;
            text-decoration: none;
            font-size: 12px;
        }
        .draw-chips,
        .lottery-content {
            display: flex;
            align-items: flex-end;
            gap: 6px;
            min-width: 0;
            overflow-x: auto;
            overflow-y: hidden;
        }
        .lottery-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 2px;
            flex-shrink: 0;
            min-width: 36px;
            font-size: 12px;
            line-height: 1.15;
            color: #333;
        }
        .lottery-item .ball {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
        }
        .lottery-item .meta {
            white-space: nowrap;
            font-size: 11px;
            color: #333;
        }
        .bg-red, .lottery-item .ball.red { background-color: red; }
        .bg-blue, .lottery-item .ball.blue { background-color: blue; }
        .bg-green, .lottery-item .ball.green { background-color: green; }
        .lottery-item-refresh {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            min-height: 44px;
            padding: 4px 0;
            border: 1px solid #d9d9d9;
            background: #f5f5f5;
            color: #333;
            font-size: 12px;
            font-weight: 600;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 2px;
            cursor: pointer;
            flex-shrink: 0;
            user-select: none;
        }
        .lottery-item-refresh:hover {
            border-color: #1677ff;
            color: #1677ff;
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 3px;
            min-width: 0;
        }
        .opened-tabs {
            display: flex;
            align-items: center;
            gap: 0;
            min-height: 30px;
            padding: 0 12px;
            border-bottom: 1px solid #eaeaea;
            background: #fff;
        }
        .opened-tab {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 26px;
            padding: 0 12px;
            margin-right: 3px;
            border: 1px solid #e5e7eb;
            background: #f8f8f8;
            color: #666;
            font-size: 13px;
            cursor: pointer;
        }
        .opened-tab.active {
            background: #fff;
            color: #409eff;
            border-bottom-color: #fff;
        }
        .opened-tab-close {
            color: #bbb;
            font-size: 10px;
        }
        .content {
            flex: 1;
            min-width: 0;
            min-height: 0;
            overflow: auto;
            padding: 10px;
            background: #efefef;
            -webkit-overflow-scrolling: touch;
        }
        .page-shell {
            background: #fff;
            border: 1px solid #dcdfe6;
            min-height: 100%;
        }
        .download-tip {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 14px;
            border-bottom: 1px solid #ececec;
            font-size: 13px;
            color: #666;
        }
        .download-link {
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
        }
        .dashboard-top-row {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin: 0 0 12px;
        }
        .dashboard-wizard-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }
        .dashboard-online-card {
            min-width: 220px;
            padding: 10px 16px;
            border: 1px solid #d6e4ff;
            background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
            border-radius: 8px;
            box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
        }
        .dashboard-online-title {
            font-size: 14px;
            color: #1f2937;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .dashboard-online-title strong {
            color: #2563eb;
            font-size: 20px;
            margin-left: 4px;
        }
        .dashboard-online-split {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: #4b5563;
        }
        .dashboard-online-split strong {
            color: #111827;
            font-size: 16px;
            margin-left: 4px;
        }
        .today-register-line {
            padding: 11px 14px 9px;
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }
        .dashboard-table-wrap {
            padding: 0 14px 12px;
        }
        .dashboard-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }
        .dashboard-table th,
        .dashboard-table td {
            border: 1px solid #f0f0f0;
            padding: 10px 14px;
            font-size: 14px;
            color: #333;
            text-align: left;
        }
        .dashboard-table th {
            background: #fafafa;
            font-weight: 600;
        }
        .dashboard-chip-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 50px;
            height: 24px;
            padding: 0 8px;
            margin-left: 6px;
            border: 1px solid #d9d9d9;
            background: #fff;
            color: #333;
            font-size: 13px;
            text-decoration: none;
        }
        .dashboard-pagination {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px 14px;
            font-size: 13px;
            color: #666;
        }
        .dashboard-page-chip {
            min-width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d9d9d9;
            background: #fff;
        }
        .update-log-wrap {
            padding: 3px 8px 10px;
        }
        .update-log-title {
            margin-bottom: 8px;
            font-size: 11px;
            color: #333;
            font-weight: 600;
        }
        .update-log-list {
            list-style: none;
            display: grid;
            gap: 8px;
            margin: 0;
            padding: 0;
        }
        .update-log-item {
            position: relative;
            padding-left: 14px;
            font-size: 10px;
            line-height: 1.7;
            color: #444;
        }
        .update-log-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 6px;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #409eff;
        }
        .update-log-date {
            font-weight: 700;
            color: #333;
            margin-right: 6px;
        }
        .page-footer-note {
            padding: 6px 0 2px;
            text-align: center;
            font-size: 10px;
            color: #999;
        }
        .panel-card,
        .module-shell {
            background: #fff;
            border: 1px solid var(--ant-border-color);
            border-radius: 0;
            padding: 12px 14px;
            box-shadow: none;
            min-height: 100%;
        }
        .home-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
            margin-bottom: 6px;
        }
        .stat-card {
            background: #fff;
            padding: 8px 9px 7px;
            border-radius: 3px;
            border: 1px solid #dce7f6;
            box-shadow: none;
        }
        .stat-card .label {
            color: #64748b;
            font-size: 9px;
        }
        .stat-card .value {
            margin-top: 3px;
            font-size: 12px;
            font-weight: 700;
        }
        .module-top-tabs {
            display: flex;
            align-items: center;
            gap: 0;
            margin: 0;
            padding: 0 4px;
            border-bottom: 1px solid #d9dee7;
            background: #fff;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .topic-shell .module-top-tabs {
            position: sticky;
            top: 0;
            z-index: 30;
            background: #fff;
            border-bottom: 1px solid #d9dee7;
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
        }
        .module-subtab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 72px;
            height: 40px;
            padding: 0 14px;
            border-right: 0;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: #595959;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .module-subtab:hover {
            color: #1677ff;
        }
        .module-subtab.active {
            background: #fff;
            color: #1677ff;
            border-bottom-color: #1677ff;
        }
        .topic-shell {
            padding: 0;
            border-color: #d9dee7;
        }
        .topic-shell #topic_manage_panel {
            padding: 12px;
        }
        .topic-shell .module-toolbar {
            margin-bottom: 12px;
        }
        .topic-shell .table th,
        .topic-shell .table td {
            padding-top: 8px;
            padding-bottom: 8px;
            font-size: 14px;
            line-height: 1.5714;
        }

        .topic-list-title-cell {
            font-size: 14px !important;
            line-height: 1.5714;
            color: rgba(0, 0, 0, 0.88);
        }
        .topic-list-title-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2px 0;
            margin-bottom: 4px;
            font-size: 14px !important;
        }
        .topic-list-visit {
            margin-right: 4px;
            color: #2563eb;
            text-decoration: none;
            font-size: 14px !important;
        }
        .topic-list-visit:visited { color: #7c3aed; }
        .topic-list-title-row {
            display: flex;
            align-items: center;
            gap: 4px;
            min-width: 0;
        }
        .topic-list-title-main {
            font-size: 15px !important;
            font-weight: 500 !important;
            line-height: 1.5;
            min-width: 0;
            word-break: break-word;
        }
        .topic-list-title-main div,
        .topic-list-title-main span {
            font-size: inherit;
            font-weight: inherit;
        }
        .topic-shell .topic-list-table td:nth-child(3) {
            min-width: 320px;
        }
        .topic-shell .btn-sm {
            height: 24px;
            padding: 0 7px;
            font-size: 14px;
            line-height: 22px;
        }

        .topic-shell .topic-list-table {
            border-collapse: collapse;
        }
        .topic-shell .topic-list-table thead th {
            position: static;
            top: auto;
            z-index: auto;
            background: #fafafa;
            box-shadow: none;
        }
        .topic-shell .topic-list-table tbody tr.topic-row-price > td {
            background: #fff1f0;
        }
        .topic-shell .topic-list-table tbody tr.topic-row-hit > td {
            background: #fff7e6;
        }
        .topic-shell .topic-list-table tbody tr.topic-row-realbuyer > td {
            background: #acfbbc;
        }
        .topic-shell .topic-list-table tbody tr.topic-row-hide > td {
            background: #f5f5f5;
            opacity: 0.85;
        }
        .topic-shell .topic-list-table tbody tr.topic-row-selected > td {
            background: #e6f4ff !important;
        }
        .module-toolbar {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .module-toolbar-title {
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }
        .module-action-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .config-row {
            display: flex;
            align-items: center;
            gap: 12px 14px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .config-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 32px;
            font-size: 14px;
            color: #333;
        }
        .config-item span {
            white-space: nowrap;
            font-size: 14px;
            color: #333;
        }
        .jodit-container:not(.jodit_inline) {
            border-radius: 0 !important;
            border-color: #d9dee7 !important;
            box-shadow: none !important;
        }
        .jodit-toolbar__box,
        .jodit-status-bar {
            background: #fff !important;
        }
        .code-editor {
            width: 100%;
            min-height: 80px;
            padding: 8px 10px;
            border: 1px solid #dcdfe6;
            border-radius: 2px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 13px;
            line-height: 1.45;
            color: #1f1f1f;
            background: #fff;
            resize: vertical;
        }
        textarea.code-editor.monaco-backed {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            border: 0 !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        .monaco-host {
            width: 100%;
            border: 1px solid #dcdfe6;
            border-radius: 2px;
            overflow: hidden;
            background: #fff;
        }
        .monaco-host .monaco-editor,
        .monaco-host .overflow-guard {
            border-radius: 2px;
        }
        .btn {
            padding: 0 14px;
            height: 32px;
            line-height: 30px;
            border: 1px solid #d9d9d9;
            background: #fff;
            border-radius: 2px;
            font-size: 14px;
            cursor: pointer;
            font-weight: 600;
        }
        .btn:hover { border-color: #c0c4cc; color: #333; }
        .btn-primary {
            background: #409eff;
            border-color: #409eff;
            color: #fff;
        }
        .btn-primary:hover { color: #fff; }
        .btn-success {
            background: #67c23a;
            border-color: #67c23a;
            color: #fff;
        }
        .btn-success:hover { color: #fff; }
        .btn-danger {
            border-color: #f56c6c;
            color: #f56c6c;
            background: #fff;
        }
        .btn-sm {
            height: 28px;
            padding: 0 12px;
            font-size: 14px;
            line-height: 26px;
        }

        .assign-panel,
        .type-panel {
            border: 1px solid #d9d9d9;
            background: #fff;
            border-radius: 2px;
            overflow: hidden;
        }
        .assign-panel .auto-row,
        .type-panel .auto-row {
            display: grid;
            grid-template-columns: 86px 1fr;
            border-bottom: 1px solid #f0f0f0;
        }
        .assign-panel .auto-row:last-child,
        .type-panel .auto-row:last-child {
            border-bottom: none;
        }
        .assign-panel .auto-row > .auto-row-label,
        .type-panel .auto-row > .auto-row-label {
            padding: 8px 10px;
            background: #fafafa;
            border-right: 1px solid #f0f0f0;
            font-size: 12px;
            font-weight: 600;
            color: #595959;
            line-height: 1.5;
        }
        .assign-panel .auto-row > .auto-row-body,
        .type-panel .auto-row > .auto-row-body {
            padding: 6px 10px;
            min-width: 0;
        }
        .type-panel-head-center {
            display: block;
            grid-column: 1 / -1;
            text-align: center;
            padding: 8px 10px;
            background: #fafafa;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
            font-weight: 600;
            color: #262626;
        }
        .topic-num-cols {
            display: flex;
            flex-wrap: nowrap;
            align-items: flex-start;
            gap: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 2px;
        }
        .topic-num-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            width: 54px;
            flex: 0 0 54px;
            padding: 0 1px;
            box-sizing: border-box;
        }
        .topic-num-col .topic-zodiac-head {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            min-height: 24px;
            margin: 0 0 4px;
            padding-bottom: 2px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
            font-weight: 700;
            color: #262626;
            white-space: nowrap;
            cursor: pointer;
            line-height: 1.3;
        }
        .topic-num-col label {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            cursor: pointer;
            line-height: 1.45;
            margin: 0;
        }
        .topic-num-col label.red,
        .assign-panel .wave-chip.red,
        .topic-wave-chip.red { color: #e53935; }
        .topic-num-col label.blue,
        .assign-panel .wave-chip.blue,
        .topic-wave-chip.blue { color: #2457ff; }
        .topic-num-col label.green,
        .assign-panel .wave-chip.green,
        .topic-wave-chip.green { color: #169b45; }
        .type-panel .type-group-pingma,
        .type-panel .type-group-pingma .auto-row-label,
        .type-panel .type-group-pingma .auto-row-body {
            background: #edf0ff;
        }
        .type-panel .type-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 12px;
        }
        .topic-style-attr-row {
            display: grid;
            grid-template-columns: 110px 1fr;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
        }
        .topic-style-attr-row > .label {
            color: #595959;
            font-weight: 600;
            padding-top: 4px;
        }
        .tips-text {
            padding: 10px 12px;
            background: #409eff;
            color: #fff;
            font-size: 12px;
            line-height: 1.8;
            border-radius: 2px;
        }
        .tips-text p { margin: 0 0 6px; }
        .tips-text p:last-child { margin-bottom: 0; }
        .topic-analysis-chip {
            display: inline-flex;
            align-items: center;
            height: 26px;
            padding: 0 10px;
            margin: 0 6px 6px 0;
            border: 1px solid #d9d9d9;
            background: #fff;
            color: #333;
            font-size: 12px;
            border-radius: 2px;
            cursor: pointer;
        }
        .topic-analysis-chip.active {
            background: #409eff;
            border-color: #409eff;
            color: #fff;
        }
        .topic-analysis-hint {
            margin-top: 6px;
            padding: 8px 10px;
            background: #fafafa;
            border: 1px solid #f0f0f0;
            font-size: 12px;
            line-height: 1.7;
            color: #595959;
        }
        .topic-analysis-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        .topic-analysis-table th,
        .topic-analysis-table td {
            border: 1px solid #f0f0f0;
            padding: 6px 8px;
            text-align: left;
            vertical-align: top;
        }
        .topic-analysis-table th { background: #fafafa; font-weight: 600; }
        .topic-analysis-hit { outline: 2px solid #cf1322; outline-offset: 1px; border-radius: 50%; }
        .topic-analysis-ball-row {
            display: flex;
            gap: 6px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .topic-analysis-ball-item {
            text-align: center;
            min-width: 32px;
        }
        .topic-analysis-ball {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 12px;
            margin: 0 auto;
        }
        .topic-analysis-ball.red { background: #e74c3c; }
        .topic-analysis-ball.blue { background: #3498db; }
        .topic-analysis-ball.green { background: #27ae60; }
        .topic-analysis-ball-zx {
            font-size: 11px;
            line-height: 1.2;
            margin-top: 2px;
        }
        .topic-analysis-plus {
            align-self: center;
            margin: 0 2px 14px;
            color: #999;
            font-weight: 700;
        }
        .topic-analysis-year-wrap {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid #d9d9d9;
            border-radius: 6px 0 0 6px;
            overflow: hidden;
            background: #fff;
            height: 28px;
        }
        .topic-analysis-year-wrap input {
            width: 72px;
            border: 0;
            outline: none;
            text-align: center;
            font-size: 13px;
        }
        .topic-analysis-year-wrap input:disabled {
            background: #f5f5f5;
            color: #999;
        }
        .topic-analysis-year-actions {
            display: flex;
            flex-direction: column;
            border-left: 1px solid #d9d9d9;
            width: 22px;
        }
        .topic-analysis-year-actions button {
            flex: 1;
            border: 0;
            background: #fff;
            cursor: pointer;
            font-size: 10px;
            line-height: 1;
            color: #666;
            padding: 0;
        }
        .topic-analysis-year-actions button:disabled {
            color: #bbb;
            cursor: not-allowed;
        }
        .topic-analysis-year-actions button:first-child {
            border-bottom: 1px solid #d9d9d9;
        }
        .topic-analysis-year-addon {
            display: inline-flex;
            align-items: center;
            padding: 0 8px;
            background: #fafafa;
            border: 1px solid #d9d9d9;
            border-left: 0;
            border-radius: 0 6px 6px 0;
            height: 28px;
            font-size: 13px;
            margin-left: -1px;
        }
        .topic-analysis-detail-scroll {
            max-height: 48vh;
            overflow: auto;
            border: 1px solid #f0f0f0;
        }
        .input {
            height: 32px;
            padding: 0 12px;
            border: 1px solid #d9d9d9;
            border-radius: 2px;
            font-size: 14px;
            outline: none;
        }
        .input:focus { border-color: #409eff; }
        .table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }
        .table th {
            background: #fafafa;
            padding: 8px 10px;
            text-align: left;
            font-size: 14px;
            font-weight: 600;
            border-bottom: 1px solid var(--ant-border-color);
            line-height: 1.5714;
        }
        .table td {
            padding: 8px 10px;
            font-size: 14px;
            border-bottom: 1px solid var(--ant-border-color);
            vertical-align: middle;
            word-break: break-word;
            line-height: 1.5714;
        }

        .files-shell .file-preview-wrap {
            width: 120px;
            height: 80px;
            max-width: 120px;
            max-height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #fafafa;
            border: 1px solid #eee;
            border-radius: 4px;
        }
        .files-shell .file-preview-thumb {
            max-width: 100% !important;
            max-height: 100% !important;
            width: auto !important;
            height: auto !important;
            object-fit: contain;
            cursor: zoom-in;
        }
        .files-shell .file-link-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
            margin-top: 6px;
        }
        .files-shell .file-code-link {
            font-size: 14px;
            color: #1677ff;
            text-decoration: none;
            white-space: nowrap;
        }
        .files-shell .file-op-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .files-shell .file-op-btn {
            font-size: 14px;
            color: #1677ff;
            text-decoration: none;
            white-space: nowrap;
        }
        .files-shell .file-op-btn.danger { color: #ff4d4f; }
        .alert-info {
            background: #e6f4ff;
            border: 1px solid #91caff;
            border-radius: 3px;
            color: #0958d9;
            padding: 12px 16px;
            margin-bottom: 10px;
            font-size: 14px;
        }
        .stat-line {
            margin-bottom: 10px;
            font-size: 14px;
            color: #333;
            background: #fafafa;
            border: 1px solid var(--ant-border-color);
            padding: 10px 16px;
            border-radius: 3px;
        }
        .stat-val {
            color: var(--ant-primary-color);
            font-weight: 700;
            padding: 0 4px;
        }
        .form-item {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 16px;
        }
        .form-item label {
            width: 88px;
            color: #333;
            font-size: 14px;
            font-weight: 600;
        }
        #modal-container {

            pointer-events: none;
        }
        #modal-container:empty {
            display: none;
        }
        #modal-container .modal {
            pointer-events: auto;
        }
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .modal-content {
            width: 80%;
            max-width: 1000px;
            background: #fff;
            border-radius: 4px;
            box-shadow: var(--ant-box-shadow);
            overflow: hidden;
        }
        .modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
        }
        .modal-body {
            padding: 20px;
            max-height: 70vh;
            overflow-y: auto;
        }
        .modal-footer {
            padding: 14px 18px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }

        .modal.modal-drawer {
            align-items: stretch;
            justify-content: flex-end;
        }
        .modal.modal-drawer .modal-content.modal-drawer-content {
            width: min(1080px, 96vw);
            max-width: 96vw;
            height: 100%;
            max-height: 100%;
            border-radius: 0;
            display: flex;
            flex-direction: column;
        }
        .modal.modal-drawer .modal-body {
            flex: 1;
            max-height: none;
        }
        .modal.modal-popconfirm {
            background: rgba(0, 0, 0, 0.25);
        }
        .modal.modal-popconfirm .modal-content.modal-popconfirm-content {
            width: 280px;
            max-width: 90vw;
            border-radius: 6px;
        }
        .modal.modal-popconfirm .modal-body {
            padding: 14px 16px;
            max-height: none;
        }
        .modal.modal-popconfirm .modal-footer {
            padding: 10px 14px;
        }
        .cc-shell {
            padding: 8px 10px !important;
        }
        .cc-toolbar {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            flex-wrap: wrap;
            padding-bottom: 6px;
            margin-bottom: 6px;
            border-bottom: 1px solid #e8e8e8;
        }
        .cc-toolbar-title {
            min-height: 24px;
            line-height: 24px;
            font-size: 11px;
            font-weight: 700;
            color: #333;
        }
        .cc-picker-group {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            flex-wrap: wrap;
        }
        .cc-picker-label {
            min-height: 24px;
            line-height: 24px;
            font-size: 10px;
            color: #666;
            white-space: nowrap;
        }
        .cc-color-input-wrap {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .cc-color-native {
            width: 26px;
            height: 24px;
            padding: 1px;
            border: 1px solid #d9d9d9;
            background: #fff;
        }
        .cc-preset-row {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }
        .cc-preset {
            width: 18px;
            height: 18px;
            border: 1px solid #c8c8c8;
            cursor: pointer;
        }
        .cc-preset.active {
            outline: 1px solid #1677ff;
            outline-offset: 1px;
        }
        .cc-layout {
            display: grid;
            grid-template-columns: 58px 1fr;
            gap: 6px;
            align-items: start;
        }
        .cc-tabs {
            display: grid;
            gap: 2px;
        }
        .cc-tab {
            min-height: 22px;
            padding: 0 4px;
            border: 1px solid #d9d9d9;
            background: #f5f5f5;
            font-size: 10px;
            line-height: 20px;
            text-align: center;
            color: #333;
            cursor: pointer;
        }
        .cc-tab.active {
            background: #409eff;
            border-color: #409eff;
            color: #fff;
            font-weight: 700;
        }
        .cc-panel {
            min-width: 0;
        }
        .cc-block {
            margin-bottom: 8px;
            border: 1px solid #d9d9d9;
            background: #fff;
        }
        .cc-block-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 4px 6px;
            border-bottom: 1px solid #ececec;
            background: #fafafa;
        }
        .cc-block-title {
            font-size: 11px;
            font-weight: 700;
            color: #333;
        }
        .cc-copy-btn {
            height: 22px;
            line-height: 20px;
            padding: 0 6px;
            font-size: 10px;
        }
        .cc-preview {
            padding: 6px;
            background: #fff;
        }
        .cc-iframe {
            width: 100%;
            min-height: 80px;
            border: 0;
            display: block;
            background: #fff;
        }
        .cc-toast {
            position: fixed;
            top: 10px;
            right: 12px;
            padding: 5px 8px;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            font-size: 11px;
            opacity: 0;
            transform: translateY(-4px);
            transition: all 0.18s ease;
            pointer-events: none;
            z-index: 9999;
        }
        .cc-toast.show {
            opacity: 1;
            transform: translateY(0);
        }
        @media (max-width: 1280px) {
            .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        .admin-menu-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 32px;
            flex-shrink: 0;
            border: 1px solid #d0d0d0;
            border-radius: 4px;
            background: #fff;
            color: #333;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
        }
        .admin-sidebar-mask {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1200;
        }
        body.admin-mobile-menu-open .admin-sidebar-mask {
            display: block;
        }
        @media (max-width: 900px) {
            body {
                overflow: auto;
                height: auto;
                min-height: 100vh;
                min-height: 100dvh;
            }
            .layout {
                display: block;
                height: auto;
                min-height: 100vh;
                min-height: 100dvh;
            }
            .admin-menu-toggle { display: inline-flex; }
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: min(280px, 86vw);
                z-index: 1300;
                transform: translateX(-105%);
                transition: transform 0.2s ease;
                box-shadow: none;
            }
            body.admin-mobile-menu-open .sidebar {
                transform: translateX(0);
                box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
            }
            .menu-item,
            .menu-item.menu-child {
                min-height: 44px;
                font-size: 15px;
            }
            .main {
                height: auto;
                min-height: 100vh;
                min-height: 100dvh;
            }
            .header {
                position: sticky;
                top: 0;
                z-index: 100;
                flex-wrap: wrap;
                min-height: 44px;
                padding: 6px 8px;
                gap: 8px;
                padding-top: calc(6px + env(safe-area-inset-top, 0px));
            }
            .lottery-bar {
                flex: 1 1 calc(100% - 48px);
                order: 1;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .header-right {
                order: 2;
                width: 100%;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 6px;
                padding-bottom: 2px;
            }
            .header-domain,
            .expire-text {
                display: none;
            }
        .draw-chips { max-width: 70vw; }
            .opened-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap;
            }
            .content,
            #page-content {
                padding: 8px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            }
            .home-grid { grid-template-columns: 1fr; }
            .form-item {
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }
            .form-item label {
                width: auto;
            }
            .config-item {
                flex-wrap: wrap;
            }
            .config-item .input,
            .config-item input.input,
            #topic_kw {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
            }
            .btn,
            .btn-sm {
                min-height: 36px;
                padding: 6px 12px;
            }
            .modal-content {
                width: 96vw;
                max-width: 96vw;
                max-height: 92vh;
            }
            .modal-body {
                max-height: 68vh;
                padding: 12px;
            }
            .modal.modal-drawer .modal-content.modal-drawer-content {
                width: 100vw;
                max-width: 100vw;
            }
            .cc-layout {
                grid-template-columns: 1fr;
            }
            .module-top-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap;
                white-space: nowrap;
            }
            .topic-shell .module-top-tabs {
                top: 0;
            }
            .topic-list-scroll-x,
            .table-scroll-x {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                max-width: 100%;
            }
            .topic-shell,
            .module-shell {
                max-width: 100%;
                overflow-x: visible;
            }
            .module-subtab {
                min-height: 44px;
                height: 44px;
                padding: 0 12px;
            }
            .stat-line {
                font-size: 12px;
                line-height: 1.6;
                word-break: break-word;
            }
            .module-toolbar {
                flex-wrap: wrap;
                gap: 8px;
            }
            .module-toolbar .input {
                width: 100% !important;
                max-width: 100% !important;
            }
        }
        @media (max-width: 560px) {
            .site-switch { padding: 0 6px; font-size: 12px; }
            .draw-period { font-size: 12px; }
            .header-welcome { font-size: 12px; }
        }
