﻿/* ========== 宸︿晶渚ц竟鏍?鐩綍鍖哄煙 ========== */
.sidebar1 {
    width: 288px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 16px;
    height: 100%;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar1 .dir-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}
/* 榛樿鐩綍閫変腑椤?*/
.dir-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.dir-item:hover {
    background-color: #f5f7fa;
}
.dir-item.sub {
    font-size: 14px;
}
.dir-item.active {
    background-color: #E8F4FD;
    color: #1890FF;
    font-weight: 500;
}
/* "鍏ㄩ儴"鐩綍椤?*/
.dir-item.dir-all {
    color: #374151;
    font-size: 14px;
    padding-bottom: 12px;
}
.dir-item.dir-all.active {
    background-color: #E8F4FD;
    color: #1890FF;
    font-weight: 500;
}
.dir-item.dir-all.active .dir-count {
    color: #1890FF;
}
.dir-item.active .dir-count {
    color: #1890FF;
}
.dir-item .dir-icon {
    width: 18px;
    height: 18px;
    color: #1890FF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dir-item .dir-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dir-item .dir-icon svg {
    width: 100%;
    height: 100%;
}
/* 鐩綍椤规洿澶氭搷浣滄寜閽?*/
.dir-item .dir-more {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
}
.dir-item .dir-count {
    margin-left: auto;
    font-size: 14px;
    color: #6b7280;
    padding-right: 4px;
}
.dir-item .dir-name{
    max-width: 80%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.dir-item.sub:hover .dir-count {
    display: none;
}
.dir-item:hover .dir-more {
    opacity: 1;
}
.dir-item .dir-more svg {
    width: 16px;
    height: 16px;
    fill: #666;
}
/* 鐩綍鎿嶄綔寮圭獥 */
.dir-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    margin-top: 4px;
}
.dir-popup .more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.dir-popup .more-item:hover {
    background: #f5f7fa;
    color: #165dff;
}
.dir-popup .more-item.delete:hover {
    background: #fef0f0;
    color: #f56c6c;
}
.dir-popup .more-item .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dir-popup .more-item .icon svg {
    width: 16px;
    height: 16px;
}
.dir-popup .more-item .text {
    flex: 1;
}
/* 鏂板缓鐩綍鎸夐挳 */
.btn-new-dir {
    width: 100%;
    margin-top: 16px;
    padding: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-new-dir:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* 浜岀淮鐮侀〉闈㈡牱寮?涓嶅奖鍝嶅師鏈夌粨鏋?*/
.qrcode-page {
    flex: 1;
    width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-left: 20px;
    border-radius: 10px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}
.search-icon {
    position: absolute;
    right: 10px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    cursor: pointer;
}
.search {
    padding: 0 32px 0 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    height: 32px;
}
.btn {
    width: 110px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    margin-left: 6px;
    background: #fff;
    font-weight: 600;
}
.btn-paixu {
    position: relative;
    cursor: pointer;
}
.btn-paixu img {
    width: 15px;
    height: 20px;
}
.btn-shuaxin{
    cursor: pointer;
}
.btn-shuaxin img {
    width: 20px;
    height: 20px;
}
/* 鎺掑簭鎮诞寮圭獥 */
.sort-popup {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    z-index: 100;
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    display: none;
    padding: 4px 0;
}
.btn-paixu:hover .sort-popup {
    display: block;
}
.sort-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sort-item:hover {
    background: #f5f7fa;
    color: #165dff;
}
.sort-item.active {
    color: #165dff;
}
.btn-danger {
    border-color: red;
    color: red;
}
.btn-primary {
    border-color: #165dff;
    color: #165dff;
}
.btn-primary:hover {
    background: #165dff;
    color: #fff;
}
/* 鏂板缓鎸夐挳濮嬬粓涓哄～鍏呮牱寮?*/
.btn-create {
    border: none;
    background: linear-gradient(268.5deg, rgba(38,111,255,1) 1.98%,rgba(70,179,240,1) 98.71%);
    color: #fff;
    border-radius: 15px;
    cursor: pointer;
    padding: 6px 25px;
    margin-left: 6px;
    font-size: 14px;
    white-space: nowrap;
}
.btn-create:hover {
    background: linear-gradient(268.5deg, rgba(20,90,220,1) 1.98%, rgba(50,155,220,1) 98.71%);
}
.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
}
.btn-primary:active {
    background: #165dff;
    color: #fff;
}
/* QR toolbar button colors and pill corners */
.top-bar .btn-primary,
.top-bar .btn-create {
    border-radius: 9999px;
}
.top-bar .btn-primary {
    border-color: #266FFF;
    color: #266FFF;
}
.top-bar .btn-primary:hover,
.top-bar .btn-primary:active {
    background: #266FFF;
    color: #fff;
}
.top-bar .btn-create,
.top-bar .btn-create:hover {
    background: #266FFF;
}

.table {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}
/* 鑷畾涔夋粴鍔ㄦ潯 */
.table::-webkit-scrollbar {
    width: 6px;
}
.table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.table::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.table::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.row {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #eee;
}
.row:last-child {
    border-bottom: 0;
}
.checkbox {
    margin-right: 12px;
}

/* 当前页二维码选择：圆形空白、选中白勾和部分选中白横线。 */
.qrcode-page .qrcode-select-checkbox {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 0;
    border: 1px solid #E1E1E1;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.qrcode-page .qrcode-select-checkbox:hover:not(:disabled):not(:checked):not(:indeterminate) {
    border-color: #266FFF;
}
.qrcode-page .qrcode-select-checkbox:checked,
.qrcode-page .qrcode-select-checkbox:indeterminate {
    border-color: transparent;
    background-color: #266FFF;
}
.qrcode-page .qrcode-select-checkbox:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.qrcode-page .qrcode-select-checkbox:indeterminate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6h7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.qrcode-page .qrcode-select-checkbox:focus-visible {
    outline: 2px solid #266FFF;
    outline-offset: 3px;
}
.qrcode-page .qrcode-select-checkbox:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.qrcode-page .table > .row {
    cursor: pointer;
}

.qrcode-img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}
.info {
    flex: 1;
}
.name {
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 璁块棶闄愬埗鏍囪瘑 */
.limit-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 16px;
    font-weight: 500;
    vertical-align: middle;
}
.limit-badge-password {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}
.limit-badge-code {
    background: #f0f5ff;
    color: #266FFF;
    border: 1px solid #adc6ff;
}
.limit-badge-count {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}
.limit-badge-time {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}
.limit-badge-geo {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}
.limit-badge-expire {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}
.stat {
    font-size: 12px;
    color: #888;
    padding-top: 8px;
}

.stat-status {
    margin-right: 12px;
    color: #666;
}

.stat-current {
    color: #266fff;
    font-weight: 500;
}
.dir-name-col {
    width: 100px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.time {
    width: 140px;
    text-align: center;
    font-size: 13px;
}
.action {
    display: flex;
    gap: 20px;
    position: relative;
}
.action-btn {
    color: #165dff;
    cursor: pointer;
    position: relative;
    padding: 0 8px;
}
.action-btn:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 1px;
    height: 12px;
    background: #ddd;
    transform: translateY(-50%);
}
.action-more {
    display: flex;
    align-items: center;
    gap: 2px;
}
.action-more .arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}
.action-more:hover .arrow-icon {
    transform: rotate(180deg);
}
/* 椤堕儴鏇村鎸夐挳 */
.top-more-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}
.top-more-btn .arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}
.top-more-btn:hover .arrow-icon {
    transform: rotate(180deg);
}
.top-more-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    display: none;
    padding: 4px 0;
}
.top-more-btn:hover .top-more-popup {
    display: block;
}
.top-more-popup:hover {
    display: block;
}
.top-more-popup .more-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 400;
}
.top-more-popup .more-item:hover {
    background: #f5f7fa;
    color: #165dff;
}

/* ========== 棰勮寮圭獥 ========== */
.preview-modal .modal-box {
    width: auto;
    max-width: 800px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.preview-phone {
    width: 340px;
    aspect-ratio: 49/100;
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 8px solid #f0f0f0;
}
.preview-phone-status {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.preview-phone-status img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}
.preview-phone-content {
    height: 100%;
    overflow: hidden;
    position: relative;
}
.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.preview-qrcode-card {
    width: 220px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    text-align: center;
    flex-shrink: 0;
}
.preview-qrcode-card img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.preview-qrcode-tip {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 16px;
}
.btn-close-preview {
    width: 100%;
    padding: 10px 0;
    background: #266fff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ========== 浜岀淮鐮佸ぇ鍥炬诞灞?========== */
.qrcode-image-modal .modal-box {
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qrcode-image-modal .modal-close {
    position: absolute;
    top: -20px;
    right: -60px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s;
    z-index: 10;
}
.qrcode-image-modal .modal-close:before,
.qrcode-image-modal .modal-close:after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 16px;
    border-radius: 2px;
    background: #fff;
}
.qrcode-image-modal .modal-close:before{
    transform: translate(-50%, -50%) rotate(45deg);
}
.qrcode-image-modal .modal-close:after{
    transform: translate(-50%, -50%) rotate(-45deg);
}
.qrcode-image-modal .modal-close:hover {
    background: rgba(0,0,0,0.7);
}
.qrcode-image-modal img {
    width: 320px;
    height: 320px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.modal-box h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.dir {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.dir:hover {
    border-color: #165dff;
    background: #f0f7ff;
}
.dir.active {
    background: #eef5ff;
    border-color: #165dff;
    color: #165dff;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.upload-area {
    display: block;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-area:hover {
    border-color: #165dff;
    background: #f0f7ff;
}
.upload-area input {
    display: none;
}
.upload-tip {
    color: #666;
    font-size: 14px;
}
.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.file-name {
    color: #165dff;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 500;
}
.modal-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}
.modal-btn-cancel:hover {
    background: #e8e8e8;
}
.modal-btn-confirm {
    background: #165dff;
    color: #fff;
}
.modal-btn-confirm:hover {
    background: #0d4fd6;
}
.modal-btn-confirm:disabled {
    background: #a0c4ff;
    cursor: not-allowed;
}

/* 鏇村鎿嶄綔鎮诞绐?*/
.more-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
}
.more-popup-up {
    top: auto;
    bottom: 100%;
}
.more-popup-portal {
    position: fixed;
    z-index: 2000;
}
.action-btn:hover .more-popup {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.more-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}
.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.more-item:hover {
    background: #f5f7fa;
    color: #165dff;
}
.more-item.delete:hover {
    background: #fef0f0;
    color: #f56c6c;
}
.more-item .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-item .icon svg {
    width: 16px;
    height: 16px;
}
.more-item .text {
    flex: 1;
}
.more-item .shortcut {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}
.more-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}
.more-section {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.more-section:last-child {
    border-bottom: none;
}
.more-link-box {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}
.more-link-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.more-link-value {
    font-size: 13px;
    color: #165dff;
    word-break: break-all;
    cursor: pointer;
    border-bottom: 1px dashed #165dff;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}
.more-link-value:hover {
    opacity: 0.7;
}
.more-link-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 4px;
}
.more-link-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.btn-copy {
    flex: 1;
    padding: 6px 12px;
    background: #165dff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-copy:hover {
    background: #0d4fd6;
}
.btn-copy.success {
    background: #67c23a;
}
/* 璁剧疆寮圭獥 */
.setting-popup {
    position: fixed;
    z-index: 1001;
    width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    animation: fadeIn 0.2s;
}
.setting-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}
.setting-section {
    margin-bottom: 16px;
}
.setting-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}
.radio-label:hover {
    border-color: #165dff;
    background: #f0f7ff;
}
.radio-label input {
    margin-right: 8px;
    accent-color: #165dff;
}
.radio-label.active {
    border-color: #165dff;
    background: #eef5ff;
    color: #165dff;
}
.setting-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 6px;
}
.setting-input:focus {
    outline: none;
    border-color: #165dff;
}
.setting-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.btn-small {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-small-cancel {
    background: #f5f5f5;
    color: #666;
}
.btn-small-cancel:hover {
    background: #e8e8e8;
}
.btn-small-confirm {
    background: #165dff;
    color: #fff;
}
.btn-small-confirm:hover {
    background: #0d4fd6;
}
.link-display {
    background: #f5f7fa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    word-break: break-all;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.link-display .copy-btn {
    padding: 4px 8px;
    background: #165dff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}
.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.pagination-btn:hover {
    border-color: #165dff;
    color: #165dff;
}
.pagination-btn.active {
    background: #165dff;
    color: #fff;
    border-color: #165dff;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-info {
    font-size: 14px;
    color: #666;
    margin-left: 16px;
}
.pagination-size-select {
    height: 34px;
    padding: 0 28px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-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='%23999' 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 8px center;
    transition: border-color 0.2s;
}
.pagination-size-select:hover {
    border-color: #165dff;
}
.pagination-size-select:focus {
    border-color: #165dff;
}
.link-display .copy-btn:hover {
    background: #0d4fd6;
}

/* 璁块棶闄愬埗寮圭獥 */
.limit-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 780px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.limit-modal-header {
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.limit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.limit-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.limit-modal-close:hover {
    color: #333;
}
.limit-modal-close svg {
    width: 20px;
    height: 20px;
}
.limit-modal-body {
    padding: 20px 24px;
    font-size: 15px;
}
.limit-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}
.limit-section:last-child {
    margin-bottom: 0;
}
.limit-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
    padding-top: 2px;
}
.limit-options {
    flex: 1;
}
.limit-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.limit-radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
}
.limit-radio-item input[type="radio"] {
    display: none;
}
.limit-radio-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.limit-radio-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: none;
}
.limit-radio-item input[type="radio"]:checked + .limit-radio-dot {
    border-color: #165dff;
    background: #165dff;
}
.limit-radio-item input[type="radio"]:checked + .limit-radio-dot::after {
    display: block;
}
.limit-radio-text {
    white-space: nowrap;
}
.limit-input-wrap {
    margin-top: 20px;
    height: 60px;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}
.limit-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.limit-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    width: 200px;
}
.limit-input:focus {
    border-color: #165dff;
}

/* 婵€娲荤爜鏂规涓嬫媺閫夋嫨鍣?*/
.limit-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    width: 200px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}
.limit-select:focus {
    border-color: #165dff;
}

/* 鏃犳柟妗堟椂鐨勭┖鐘舵€佹彁绀?*/
.limit-plan-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}
.limit-plan-link {
    color: #165dff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.limit-plan-link:hover {
    text-decoration: underline;
}

.limit-plan-loading {
    font-size: 14px;
    color: #999;
}
.limit-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.limit-time-row .limit-input {
    width: 170px;
}
.limit-time-sep {
    color: #999;
    font-size: 14px;
}
.limit-daily-label {
    font-size: 14px;
    color: #666;
    margin-right: 4px;
    white-space: nowrap;
}
.limit-time-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.limit-time-only {
    width: 140px !important;
}
/* 闄愬畾鎵爜娆℃暟姝ヨ繘鍣?*/
.limit-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
}
.limit-stepper-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: #fff;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.limit-stepper-btn:hover {
    background: #f5f7fa;
    color: #165dff;
}
.limit-stepper-input {
    width: 60px;
    height: 100%;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    text-align: center;
    font-size: 14px;
    color: #333;
    outline: none;
    -moz-appearance: textfield;
}
.limit-stepper-input::-webkit-outer-spin-button,
.limit-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.expire-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 620px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.expire-modal-header {
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.expire-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.expire-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expire-modal-close:hover {
    color: #333;
}
.expire-modal-close svg {
    width: 18px;
    height: 18px;
}
.expire-modal-body {
    min-height: 200px;
    padding: 28px 32px 16px;
}
.expire-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.expire-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.expire-select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 100px;
}
.expire-select:focus {
    border-color: #165dff;
}
.expire-range {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}
.expire-custom-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}
.expire-datetime {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    width: 170px;
}
.expire-datetime:focus {
    border-color: #165dff;
}
.expire-custom-sep {
    color: #999;
    font-size: 14px;
}
.expire-tips {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}
.expire-tips p {
    margin: 0;
}
.expire-footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px;
    border-top: 1px solid #f0f0f0;
}
.expire-btn-cancel {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 100px;
    background: #fff;
    color: var(--color2);
    cursor: pointer;
    transition: all 0.2s;
}
.expire-btn-cancel:hover {
    background: #EBF2FF;
}
.expire-btn-confirm {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background: linear-gradient(268.5deg, rgba(38,111,255,1) 1.98%,rgba(70,179,240,1) 98.71%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.limit-btn-set-area {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #165dff;
    border-radius: 6px;
    background: #fff;
    color: #165dff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.limit-btn-set-area:hover {
    background: #f0f7ff;
}
.limit-btn-set-area svg {
    width: 16px;
    height: 16px;
}
.limit-geo-info {
    color: #52c41a;
    font-size: 13px;
    margin-left: auto;
}
.limit-tip {
    text-align: center;
    padding: 0 24px 20px;
    color: #999;
    font-size: 13px;
}
.limit-footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px;
    border-top: 1px solid #f0f0f0;
}
.limit-btn-cancel {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 100px;
    background: #fff;
    color: var(--color2);
    cursor: pointer;
    transition: all 0.2s;
}
.limit-btn-cancel:hover {
    background: #EBF2FF;
}
.limit-btn-confirm {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background: linear-gradient(268.5deg, rgba(38,111,255,1) 1.98%,rgba(70,179,240,1) 98.71%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

/* 鍦板浘瀹氫綅寮圭獥 */
.geo-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 720px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.geo-modal-header {
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.geo-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.geo-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.geo-modal-close:hover {
    color: #333;
}
.geo-modal-close svg {
    width: 18px;
    height: 18px;
}
.geo-modal-body {
    padding: 16px 20px;
}
.geo-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.geo-hint {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.geo-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}
.geo-search-input {
    width: 100%;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 32px 0 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.geo-search-input:focus {
    border-color: #165dff;
}
.geo-search-btn {
    position: absolute;
    right: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
}
.geo-search-btn:hover {
    color: #165dff;
}
.geo-search-btn svg {
    width: 16px;
    height: 16px;
}
.geo-result-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 20;
}
.geo-result-item {
    padding: 9px 14px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}
.geo-result-item:last-child {
    border-bottom: 0;
}
.geo-result-item:hover {
    background: #f5f8ff;
}
.geo-result-title,
.geo-result-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geo-result-title {
    color: #222;
    font-size: 14px;
    line-height: 1.4;
}
.geo-result-address {
    margin-top: 2px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}
.geo-searching {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}
.geo-radius-box {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.geo-radius-label {
    font-size: 13px;
    color: #333;
}
.geo-radius-input {
    width: 70px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    text-align: center;
    outline: none;
}
.geo-radius-input:focus {
    border-color: #165dff;
}
.geo-radius-unit {
    font-size: 13px;
    color: #666;
}
.geo-map-container {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    z-index: 1;
}
.geo-no-key-tip {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}
.geo-modal-footer {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
}
.geo-btn-cancel {
    width: 90px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.geo-btn-cancel:hover {
    border-color: #165dff;
    color: #165dff;
}
.geo-btn-confirm {
    width: 90px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background: linear-gradient(268.5deg, rgba(38,111,255,1) 1.98%,rgba(70,179,240,1) 98.71%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.geo-btn-confirm:hover {
    background: #0d4fd6;
}

/* ========== 鎵撳紑鏂瑰紡寮圭獥 ========== */
.method-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.method-modal-header {
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.method-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.method-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.method-modal-close:hover {
    color: #333;
}
.method-modal-close svg {
    width: 18px;
    height: 18px;
}
.method-modal-body {
    padding: 24px 24px 16px;
}
.method-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.method-card {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.method-card:hover {
    border-color: #165dff;
}
.method-card.active {
    border-color: #165dff;
    box-shadow: 0 0 0 1px #165dff;
}
.method-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 24px;
}
.method-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.method-vip-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 3px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}
.method-card-radio {
    margin-left: auto;
}
.method-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.method-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: none;
}
.method-radio-dot.checked {
    border-color: #165dff;
    background: #165dff;
}
.method-radio-dot.checked::after {
    display: block;
}
.method-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.method-card-item {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.method-card-footer {
    margin-top: 12px;
}
.method-card-link {
    font-size: 13px;
    color: #165dff;
    cursor: pointer;
}
.method-card-link:hover {
    opacity: 0.8;
}
.method-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}
.method-notice svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
}
.method-notice-highlight {
    color: #ff4d4f;
}
.method-default-section {
    display: flex;
    align-items: center;
    gap: 24px;
}
.method-default-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}
.method-default-options {
    display: flex;
    align-items: center;
    gap: 32px;
}
.method-default-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.method-default-item input[type="radio"] {
    display: none;
}
.method-default-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.method-default-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: none;
}
.method-default-item input[type="radio"]:checked + .method-default-dot {
    border-color: #165dff;
    background: #165dff;
}
.method-default-item input[type="radio"]:checked + .method-default-dot::after {
    display: block;
}
.method-footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px;
    border-top: 1px solid #f0f0f0;
}
.method-btn-cancel {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.method-btn-cancel:hover {
    border-color: #165dff;
    color: #165dff;
}
.method-btn-confirm {
    width: 106px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background: linear-gradient(268.5deg, rgba(38,111,255,1) 1.98%,rgba(70,179,240,1) 98.71%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.method-btn-confirm:hover {
    background: #0d4fd6;
}

/* ========== 鏁版嵁缁熻寮圭獥 ========== */
.stats-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 860px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.stats-modal-header {
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.stats-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.stats-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-modal-close:hover {
    color: #333;
}
.stats-modal-close svg {
    width: 18px;
    height: 18px;
}
.stats-modal-body {
    padding: 20px 24px 24px;
}
.stats-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 1;
}
.stats-time-select-wrap {
    position: relative;
}
.stats-time-select {
    height: 34px;
    padding: 0 32px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-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='%23999' 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 10px center;
    transition: border-color 0.2s;
    min-width: 120px;
}
.stats-time-select:hover {
    border-color: #165dff;
}
.stats-time-select:focus {
    border-color: #165dff;
}
.stats-custom-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}
.stats-custom-date input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    outline: none;
}
.stats-custom-date input[type="date"]:focus {
    border-color: #165dff;
}
.stats-custom-date span {
    color: #999;
    font-size: 13px;
}
.stats-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}
.legend-dot {
    width: 12px;
    height: 3px;
    border-radius: 2px;
}
.stats-chart-wrap {
    height: 320px;
    position: relative;
    margin-top: -43px;
}
#statsLineChart {
    width: 100% !important;
    height: 100% !important;
}
