 /* 代理平台系统 - 全新设计 */
:root {
    --primary-color: #6c8bff;
    --primary-hover: #5a78f0;
    --secondary-color: #8c95a0;
    --success-color: #4aba65;
    --danger-color: #e86978;
    --warning-color: #ffce54;
    --info-color: #5bc8d7;
    --light-color: #f8f9fa;
    --dark-color: #5d6670;
    --white-color: #ffffff;
    --body-bg: #f8faff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --border-radius: 8px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-gradient: linear-gradient(45deg, #6c8bff, #c88fd7);
    --success-gradient: linear-gradient(45deg, #4aba65, #66d9bd);
    --danger-gradient: linear-gradient(45deg, #e86978, #ffaa6c);
    --transition-speed: 0.15s;
}

body {
    background-color: var(--body-bg);
    font-family: var(--font-main);
    color: #495057;
}

      /* 代理iframe样式保留在这里 */
        
        /* 齿轮旋转动画 */
        .fa-cog.fa-spin {
            animation: gear-spin 1s linear infinite;
        }
        
        @keyframes gear-spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        /* 项目设置面板的滑动动画 */
        #projectHidePanel {
            transition: all 0.15s ease-in-out;
        }
        
        /* 项目设置面板高度限制和滚动 */
        #projectHidePanel .device-panel-body {
            max-height: 200px;
            overflow-y: auto;
        }
        
        /* 自定义滚动条样式 */
        #projectHidePanel .device-panel-body::-webkit-scrollbar {
            width: 4px;
        }
        
        #projectHidePanel .device-panel-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }
        
        #projectHidePanel .device-panel-body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }
        
        #projectHidePanel .device-panel-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* 齿轮按钮样式 - 避免点击后背景变色 */
        #projectSettingsToggle {
            border: 1px solid #6c757d;
            background-color: transparent;
            color: #6c757d;
        }
        
        #projectSettingsToggle:hover,
        #projectSettingsToggle:focus,
        #projectSettingsToggle:active,
        #projectSettingsToggle.active {
            background-color: transparent !important;
            border-color: #6c757d !important;
            color: #6c757d !important;
            box-shadow: none !important;
        }
        
        .loading-progress-wrapper {
            max-width: 400px;
            margin: 0 auto;
        }
        
        .network-tips .alert-sm {
            padding: 8px 12px;
            font-size: 12px;
        }
        
        /* 增强的进度条样式 */
        .progress {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }
        
        .progress-bar {
            transition: width 0.15s ease;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .loading-progress-wrapper {
                max-width: 300px;
            }
        }
        
        /* 公告横幅样式 */
        .announcement-banner {
            background-color: #f8faff;
            border-left: 4px solid #6c8bff;
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03);
            position: relative;
            animation: slidein 0.5s ease-in-out;
        }
        
        .announcement-banner.urgent {
            background-color: #fff9e9;
            border-left-color: #ffce54;
        }
        
        .announcement-banner .announcement-content {
            display: flex;
            align-items: flex-start;
            padding-right: 30px;
        }
        
        .announcement-banner .announcement-icon {
            color: #6c8bff;
            font-size: 1.5rem;
            margin-right: 15px;
            margin-top: 5px;
        }
        
        .announcement-banner.urgent .announcement-icon {
            color: #ffce54;
        }
        
        .announcement-banner .announcement-text-wrapper {
            flex: 1;
        }
        
        .announcement-banner .announcement-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: #5d6670;
        }
        
        /* 长条形支付方式按钮样式 */
        .payment-methods-container .payment-method-btn {
            height: 50px;
            border: 2px solid;
            border-radius: 8px;
            padding: 12px 16px;
            transition: all 0.15s ease;
            background: white;
            position: relative;
            overflow: hidden;
            justify-content: flex-start;
        }
        
        .payment-methods-container .payment-method-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-width: 2px;
        }
        
        .payment-methods-container .payment-method-btn:active:not(:disabled) {
            transform: translateY(0);
        }
        
        .payment-methods-container .payment-method-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: #f8f9fa;
        }
        
        .payment-methods-container .payment-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }
        
        .payment-methods-container .payment-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: #495057;
            margin: 0;
        }
        
        .payment-methods-container .payment-method-btn:not(:disabled) .payment-name {
            color: inherit;
        }
        
        .payment-methods-container .payment-method-btn:not(:disabled):hover .payment-name {
            font-weight: 700;
        }
        
        /* 状态徽章样式 */
        .payment-methods-container .badge {
            font-size: 0.6rem;
            padding: 3px 6px;
            border-radius: 10px;
        }
        
        /* 可用支付方式特殊样式 */
        .payment-methods-container .payment-method-btn.btn-available {
            border-width: 2px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        }
        
        .payment-methods-container .payment-method-btn.btn-available:hover {
            background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
        }
        
        /* 特定支付方式的悬停效果 */
        .payment-methods-container .btn-outline-success:hover:not(:disabled) {
            background-color: rgba(25, 135, 84, 0.1);
            border-color: #198754;
        }
        
        .payment-methods-container .btn-outline-primary:hover:not(:disabled) {
            background-color: rgba(13, 110, 253, 0.1);
            border-color: #0d6efd;
        }
        
        .payment-methods-container .btn-outline-warning:hover:not(:disabled) {
            background-color: rgba(255, 193, 7, 0.1);
            border-color: #ffc107;
        }
        
        .payment-methods-container .btn-outline-info:hover:not(:disabled) {
            background-color: rgba(13, 202, 240, 0.1);
            border-color: #0dcaf0;
        }
        
        /* 响应式调整 */
        @media (max-width: 767px) {
            .payment-methods-container .payment-method-btn {
                height: 45px;
                padding: 10px 12px;
            }
            
            .payment-methods-container .payment-icon {
                width: 22px;
                height: 22px;
            }
            
            .payment-methods-container .payment-icon i {
                font-size: 0.9rem !important;
            }
            
            .payment-methods-container .payment-name {
                font-size: 0.75rem;
            }
            
            .payment-methods-container .badge {
                font-size: 0.5rem;
                padding: 2px 3px;
            }
        }
        
        @media (max-width: 575px) {
            .payment-methods-container .payment-method-btn {
                height: 42px;
                padding: 8px 10px;
            }
            
            .payment-methods-container .payment-icon {
                width: 20px;
                height: 20px;
                margin-right: 8px !important;
            }
            
            .payment-methods-container .payment-name {
                font-size: 0.7rem;
            }
        }
        
        /* 可点击订单样式 */
        .order-clickable {
            transition: all 0.15s ease;
            border-left: 3px solid transparent;
        }
        
        .order-clickable:hover {
            background-color: #f8f9fa;
            border-left-color: #ffc107;
            transform: translateX(2px);
        }
        
        .order-clickable:active {
            transform: translateX(0);
        }
        
        /* 精致的倍率表样式 */
        .multiplier-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 0;
        }
        
        .multiplier-card {
            flex: 1;
            min-width: 180px;
            max-width: 220px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            overflow: hidden;
        }
        
        .multiplier-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            border-color: #007bff;
        }
        
        .multiplier-card.selected {
            border-color: #28a745;
            background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
        }
        
        .multiplier-card .card-header {
            display: flex;
            justify-content: between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .multiplier-card .project-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: #495057;
            margin-bottom: 4px;
        }
        
        .multiplier-card .multiplier-badge {
            background: linear-gradient(45deg, #17a2b8, #007bff);
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 12px;
            position: absolute;
            top: 8px;
            right: 8px;
        }
        
        .multiplier-card .multiplier-info {
            font-size: 0.75rem;
            color: #6c757d;
            margin-bottom: 8px;
        }
        
        .multiplier-card .balance-info {
            font-size: 0.7rem;
            color: #28a745;
            font-weight: 600;
        }
        
        .multiplier-card .select-hint {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 123, 255, 0.1);
            color: #007bff;
            text-align: center;
            padding: 4px;
            font-size: 0.65rem;
            font-weight: 600;
            transform: translateY(100%);
            transition: transform 0.15s ease;
        }
        
        .multiplier-card:hover .select-hint {
            transform: translateY(0);
        }
        
        .multiplier-card.selected .select-hint {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
            transform: translateY(0);
        }
        
        /* 响应式调整 */
        @media (max-width: 767px) {
            .multiplier-grid {
                gap: 8px;
            }
            
            .multiplier-card {
                min-width: 140px;
                max-width: none;
                flex: 1 1 calc(50% - 4px);
                padding: 12px;
            }
            
            .multiplier-card .project-name {
                font-size: 0.8rem;
            }
            
            .multiplier-card .multiplier-badge {
                font-size: 0.7rem;
                padding: 2px 6px;
            }
        }
        
        .announcement-banner .announcement-content-text {
            color: #8c95a0;
            white-space: pre-line;
            line-height: 1.5;
        }
        
        .announcement-banner .btn-close {
            position: absolute;
            top: 15px;
            right: 15px;
            opacity: 0.5;
            transition: opacity 0.1s;
        }
        
        .announcement-banner .btn-close:hover {
            opacity: 0.8;
        }
        
        @keyframes slidein {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        /* 新的加载动画样式 - 从素材/index.html提取 */
        .loading-animation {
            --armLength: 110px;
            width: fit-content;
            height: fit-content;
            position: relative;
            transform: scale(0.4);
            margin: 0 auto;
        }
        
        .loading-animation .head {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 195px;
            animation: headmove 0.7s ease infinite;
            z-index: 1;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: #d1b4a8;
        }
        
        .loading-animation .head::after {
            content: '';
            width: 20px;
            height: 80px;
            background-color: #d1b4a8;
            position: absolute;
            bottom: -70px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .loading-animation .hair {
            width: 150px;
            height: 100px;
            display: flex;
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1;
        }
        
        .loading-animation .hair-l {
            width: 50%;
            height: 100%;
            background-image: linear-gradient(to right, lightgrey, grey);
            border-radius: 65px 21px 76px 14px / 90px 17px 111px 26px;
        }
        
        .loading-animation .hair-r {
            width: 50%;
            height: 100%;
            background-image: linear-gradient(to left, lightgrey, grey);
            border-radius: 33px 85px 29px 99px / 26px 99px 62px 147px;
        }
        
        .loading-animation .kbody {
            position: relative;
            z-index: 2;
            -webkit-clip-path: polygon(17% 16%, 63% 29%, 75% 100%, 0% 100%);
            clip-path: polygon(17% 16%, 63% 29%, 75% 100%, 0% 100%);
            width: 150px;
            height: 230px;
            background-color: #333;
            animation: bodymove 0.7s ease infinite;
            transform-origin: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .loading-animation .kbody span {
            color: #fff;
            font-size: 350px;
            transform: rotate(10deg);
            line-height: 1;
        }
        
        .loading-animation .arms {
            width: 72%;
            height: 100%;
            position: absolute;
            top: 66px;
            left: 12%;
            animation: armmove 0.7s ease infinite;
        }
        
        .loading-animation .arm {
            background-color: #333;
            position: absolute;
            top: 10px;
            z-index: 1;
            transform-origin: center top;
            width: 30px;
            height: var(--armLength);
        }
        
        .loading-animation .arm-l {
            left: 0;
            transform: rotate(50deg);
            border-radius: 0 0 30px 30px;
        }
        
        .loading-animation .arm-l::after {
            content: '';
            position: absolute;
            width: 26px;
            height: 80px;
            border-radius: 0 0 30px 30px;
            background-color: #333;
            left: 0;
            bottom: -70px;
            transform-origin: center top;
            transform: rotate(-100deg);
        }
        
        .loading-animation .arm-r {
            right: 0px;
            transform: rotate(-20deg);
            border-radius: 0 0 30px 30px;
        }
        
        .loading-animation .arm-r::after {
            content: '';
            position: absolute;
            width: 26px;
            height: 80px;
            border-radius: 0 0 30px 30px;
            background-color: #333;
            left: 0;
            bottom: -70px;
            transform-origin: center top;
            transform: rotate(100deg);
        }
        
        .loading-animation .leg {
            width: 40px;
            height: 128px;
            background-color: #877785;
            position: absolute;
            bottom: -110px;
            z-index: 1;
            transform-origin: center top;
        }
        
        .loading-animation .leg-l {
            left: 12px;
            transform: rotate(20deg);
        }
        
        .loading-animation .leg-l::after {
            content: '';
            position: absolute;
            width: 38px;
            height: 120px;
            background-color: #877785;
            border-radius: 0 0 30px 30px;
            left: 0;
            bottom: -110px;
            transform-origin: center top;
            transform: rotate(-10deg);
        }
        
        .loading-animation .leg-r {
            right: 50px;
            transform: rotate(-30deg);
        }
        
        .loading-animation .leg-r::after {
            content: '';
            position: absolute;
            width: 38px;
            height: 132px;
            background-color: #877785;
            border-radius: 0 0 30px 30px;
            left: 0;
            bottom: -126px;
            transform-origin: center top;
            transform: rotate(10deg);
        }
        
        @keyframes headmove {
            25% {
                bottom: 210px;
            }
            50% {
                bottom: 195px;
            }
            75% {
                bottom: 170px;
            }
        }
        
        @keyframes armmove {
            25% {
                width: 92%;
                top: 60px;
                left: 11%;
            }
            50% {
                width: 72%;
                top: 66px;
                left: 12%;
            }
            75% {
                width: 81%;
                top: 80px;
                left: 14%;
            }
        }
        
        @keyframes bodymove {
            25% {
                -webkit-clip-path: polygon(23% 13%, 98% 10%, 75% 100%, 0% 100%);
                clip-path: polygon(23% 13%, 98% 10%, 75% 100%, 0% 100%);
            }
            50% {
                -webkit-clip-path: polygon(17% 16%, 63% 29%, 75% 100%, 0% 100%);
                clip-path: polygon(17% 16%, 63% 29%, 75% 100%, 0% 100%);
            }
            75% {
                -webkit-clip-path: polygon(24% 27%, 90% 38%, 75% 100%, 0% 100%);
                clip-path: polygon(24% 27%, 90% 38%, 75% 100%, 0% 100%);
            }
        }
        
        /* 公告表格样式 */
        #announcementsTable .status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            display: inline-block;
        }
        
        #announcementsTable .status-active {
            background-color: rgba(74, 186, 101, 0.15);
            color: #4aba65;
        }
        
        #announcementsTable .status-inactive {
            background-color: rgba(232, 105, 120, 0.15);
            color: #e86978;
        }
        
        #announcementsTable .announcement-content-cell {
            max-width: 250px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #8c95a0;
        }
        
        /* 排行榜表格样式 */
        #rankingTable {
            white-space: nowrap;
        }
        
        #rankingTable td,
        #rankingTable th {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        #rankingTable .table-responsive {
            overflow-x: auto;
        }
        
        /* 用户管理表格样式 */
        #userManageTable {
            white-space: nowrap;
        }
        
        #userManageTable td,
        #userManageTable th {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        #userManageTable .table-responsive {
            overflow-x: auto;
        }
        
        /* 控制面板公告样式 */
        #dashboardAnnouncements .card {
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            border: none;
            border-radius: 12px;
            overflow: hidden;
        }
        
        #dashboardAnnouncements .card-header {
            background: linear-gradient(135deg, #7a97ff, #a2b3ff);
            color: white;
            border-bottom: none;
            padding: 14px 20px;
        }
        
        #dashboardAnnouncements .list-group-item {
            padding: 18px 20px;
            background-color: #fff;
            transition: all 0.1s ease;
            border-left: 3px solid transparent;
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }
        
        #dashboardAnnouncements .list-group-item:hover {
            background-color: #f8faff;
            border-left-color: #6c8bff;
        }
        
        #dashboardAnnouncements .list-group-item:last-child {
            border-bottom: none;
        }
        
        #dashboardAnnouncements .announcement-content-text {
            white-space: pre-line;
            color: #8c95a0;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        
        /* 精致倍率表样式 */
        .multiplier-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
            max-width: 1200px;
        }
        
        .multiplier-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            min-height: 100px;
        }
        
        .multiplier-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 139, 255, 0.15);
            border-color: #6c8bff;
        }
        
        .multiplier-card.selected {
            border-color: #6c8bff;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
            box-shadow: 0 6px 16px rgba(108, 139, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .multiplier-card .multiplier-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: linear-gradient(135deg, #6c8bff, #5a78f0);
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.75rem;
            box-shadow: 0 2px 4px rgba(108, 139, 255, 0.3);
        }
        
        .multiplier-card.selected .multiplier-badge {
            background: linear-gradient(135deg, #4aba65, #3a9b52);
            animation: pulse-selected 2s infinite;
        }
        
        @keyframes pulse-selected {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .multiplier-card .project-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: #495057;
            margin-bottom: 6px;
            padding-right: 35px;
            line-height: 1.2;
        }
        
        .multiplier-card .multiplier-info {
            color: #6c757d;
            font-size: 0.75rem;
            margin-bottom: 6px;
            font-weight: 500;
        }
        
        .multiplier-card .balance-info {
            color: #28a745;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .multiplier-card .select-hint {
            color: #6c8bff;
            font-size: 0.7rem;
            font-weight: 500;
            text-align: center;
            padding: 4px 8px;
            background: rgba(108, 139, 255, 0.1);
            border-radius: 6px;
            transition: all 0.15s ease;
        }
        
        .multiplier-card:hover .select-hint {
            background: rgba(108, 139, 255, 0.2);
            color: #5a78f0;
        }
        
        .multiplier-card.selected .select-hint {
            background: rgba(74, 186, 101, 0.15);
            color: #4aba65;
            font-weight: 600;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .multiplier-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .multiplier-card {
                padding: 10px;
                min-height: 90px;
            }
            
            .multiplier-card .project-name {
                font-size: 0.9rem;
                padding-right: 32px;
            }
            
            .multiplier-card .multiplier-badge {
                padding: 2px 6px;
                font-size: 0.7rem;
                top: 6px;
                right: 6px;
            }
            
            .multiplier-card .multiplier-info {
                font-size: 0.7rem;
            }
            
            .multiplier-card .balance-info {
                font-size: 0.75rem;
            }
            
            .multiplier-card .select-hint {
                font-size: 0.65rem;
                padding: 3px 6px;
            }
        }
        
        @media (max-width: 576px) {
            .multiplier-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .multiplier-card {
                padding: 8px;
                min-height: 80px;
            }
            
            .multiplier-card .project-name {
                font-size: 0.85rem;
                padding-right: 30px;
                margin-bottom: 4px;
            }
            
            .multiplier-card .multiplier-info {
                font-size: 0.65rem;
                margin-bottom: 4px;
            }
            
            .multiplier-card .balance-info {
                font-size: 0.7rem;
                margin-bottom: 6px;
            }
            
            .multiplier-card .select-hint {
                font-size: 0.6rem;
                padding: 2px 4px;
            }
            
            .multiplier-card .multiplier-badge {
                padding: 1px 4px;
                font-size: 0.65rem;
                top: 4px;
                right: 4px;
            }
        }
        
        /* 设备列表样式 */
        .device-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .device-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            margin-bottom: 6px;
            background-color: #f8f9fa;
            border-radius: 8px;
            border-left: 3px solid #6c8bff;
            transition: all 0.1s ease;
        }
        
        .device-item:hover {
            background-color: #e9ecef;
            transform: translateX(2px);
        }
        
        .device-item.current-device {
            border-left-color: #28a745;
            background-color: #f8fff9;
        }
        
        .device-info {
            flex: 1;
            min-width: 0;
        }
        
        .device-name {
            font-weight: 500;
            font-size: 0.85rem;
            color: #333;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .device-details {
            font-size: 0.75rem;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .device-name-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 2px;
        }
        
        .device-name-row .device-name {
            flex: 1;
            margin-bottom: 0;
            margin-right: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .device-name-row .device-status {
            flex-shrink: 0;
        }
        
        .device-status {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .device-status-badge {
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 12px;
            font-weight: 500;
        }
        
        .device-status-badge.current {
            background-color: #28a745;
            color: white;
        }
        
        .device-status-badge.online {
            background-color: #007bff;
            color: white;
        }
        
        .device-status-badge.offline {
            background-color: #6c757d;
            color: white;
        }
        
        .logout-device-btn {
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background-color 0.1s ease;
        }
        
        .logout-device-btn:hover {
            background-color: #c82333;
        }
        
        .logout-device-btn:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }
        
        .device-list::-webkit-scrollbar {
            width: 4px;
        }
        
        .device-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }
        
        .device-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }
        
        .device-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
          
        /* 设备面板样式 */
        .device-panel {
            border-radius: 6px;
            background: #ffffff;
            border: 1px solid #e9ecef;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-top: 6px;
            overflow: hidden;
        }
        
        .device-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            border-bottom: 1px solid #e9ecef;
            background: #f8f9fa;
        }
        
        .device-panel-title {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #495057;
            font-weight: 500;
        }
        
        .device-panel-title i {
            color: #6c757d;
            font-size: 11px;
        }
        
        .device-refresh-btn {
            width: 22px;
            height: 22px;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            background: #ffffff;
            color: #6c757d;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.1s ease;
            font-size: 10px;
        }
        
        .device-refresh-btn:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
        }
        
        .device-refresh-btn:active {
            background: #e9ecef;
        }
        
        .device-panel-actions {
            display: flex;
            gap: 4px;
            align-items: center;
        }
        
        .device-batch-logout-btn {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid #dc3545;
            background: #ffffff;
            color: #dc3545;
            font-size: 9px;
            cursor: pointer;
            transition: all 0.1s ease;
            white-space: nowrap;
        }
        
        .device-batch-logout-btn:hover {
            background: #dc3545;
            color: white;
        }
        
        .device-batch-logout-btn:active {
            background: #c82333;
            border-color: #bd2130;
        }
        
        .device-batch-logout-btn i {
            font-size: 8px;
        }
        
        .device-test-btn {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid #28a745;
            background: #ffffff;
            color: #28a745;
            font-size: 9px;
            cursor: pointer;
            transition: all 0.1s ease;
            white-space: nowrap;
        }
        
        .device-test-btn:hover {
            background: #28a745;
            color: white;
        }
        
        .device-test-btn i {
            font-size: 8px;
        }
        
        /* 设备列表样式 */
        .device-list {
            max-height: 240px;
            overflow-y: auto;
            padding: 6px;
        }
        
        .device-item {
            display: flex;
            align-items: center;
            padding: 8px;
            margin-bottom: 4px;
            background: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            transition: all 0.1s ease;
        }
        
        .device-item:hover {
            background: #f8f9fa;
            border-color: #dee2e6;
        }
        
        .device-item.current-device {
            background: #f8f9fa;
            border-color: #28a745;
        }
        
        .device-icon {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            color: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            margin-right: 8px;
            flex-shrink: 0;
        }
        
        .device-info {
            flex: 1;
            min-width: 0;
        }
        
        .device-name {
            font-weight: 500;
            font-size: 11px;
            color: #495057;
            margin-bottom: 1px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .device-name .current-badge {
            background: #28a745;
            color: white;
            padding: 1px 4px;
            border-radius: 8px;
            font-size: 9px;
            font-weight: 400;
        }
        
        .device-details {
            font-size: 10px;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .device-details i {
            font-size: 8px;
            color: #adb5bd;
        }
        
        .device-status {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .device-status-badge {
            padding: 1px 5px;
            border-radius: 8px;
            font-size: 9px;
            font-weight: 400;
        }
        
        .device-status-badge.current {
            background: #28a745;
            color: white;
        }
        
        .device-status-badge.online {
            background: #007bff;
            color: white;
        }
        
        .device-status-badge.offline {
            background: #6c757d;
            color: white;
        }
        
        .logout-device-btn {
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid #dc3545;
            background: #ffffff;
            color: #dc3545;
            font-size: 9px;
            cursor: pointer;
            transition: all 0.1s ease;
        }
        
        .logout-device-btn:hover {
            background: #dc3545;
            color: white;
        }
        
        .logout-device-btn:disabled {
            background: #f8f9fa;
            color: #6c757d;
            border-color: #dee2e6;
            cursor: not-allowed;
        }
        
        .device-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            color: #6c757d;
        }
        
        .device-empty-state i {
            font-size: 24px;
            margin-bottom: 6px;
            opacity: 0.5;
        }
        
        .device-empty-state span {
            font-size: 11px;
            text-align: center;
        }
        
        /* 设备类型图标 - 统一灰色 */
        .device-icon { background: #f8f9fa; border-color: #e9ecef; color: #6c757d; }
        
        /* 滚动条样式 */
        .device-list::-webkit-scrollbar {
            width: 4px;
        }
        
        .device-list::-webkit-scrollbar-track {
            background: #f8f9fa;
        }
        
        .device-list::-webkit-scrollbar-thumb {
            background: #dee2e6;
            border-radius: 2px;
        }
        
        .device-list::-webkit-scrollbar-thumb:hover {
            background: #adb5bd;
        }

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    border: none;
    margin-bottom: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
    background-color: var(--card-bg);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.card-body {
    padding: 1.25rem;
}

/* 密钥样式 */
.badge-key {
    background-color: var(--info-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--success-color);
}

/* 导航样式 */
.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    color: var(--secondary-color);
    transition: all 0.1s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.active-tab {
    border-bottom: 3px solid var(--primary-color);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 107, 239, 0.25);
}

/* ============================================
   认证页面样式已移至 assets/css/auth.css
   ============================================ */

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 保存的账号列表 */
.saved-accounts-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.saved-accounts-list.expanded {
    max-height: 500px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.saved-accounts-list::-webkit-scrollbar {
    width: 6px;
}

.saved-accounts-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.saved-accounts-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.saved-accounts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.account-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 0;
}

.account-card:hover::before {
    opacity: 1;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.account-card.active-account {
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.account-card .account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.account-card .account-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-card .account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.account-card:hover .account-avatar {
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.account-card .account-details {
    flex: 1;
    min-width: 0;
}

.account-card .account-username {
    font-weight: 600;
    color: #1a202c;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.account-card .account-meta {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-card .account-meta i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.account-card .account-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.account-card:hover .account-actions {
    opacity: 1;
}

.account-card .btn-remove {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #e53e3e;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.1s ease;
}

.account-card .btn-remove:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.account-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: #48bb78;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

.account-badge.admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 6px rgba(240, 147, 251, 0.4);
}

/* 快速登录标题优化 */
#savedAccountsSection h6 {
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#savedAccountsSection h6 i {
    color: #667eea;
}

#showAllAccountsBtn {
    color: #667eea;
    transition: all 0.15s ease;
}

#showAllAccountsBtn:hover {
    color: #764ba2;
    transform: scale(1.15);
}

#showAllAccountsBtn i {
    transition: transform 0.15s ease;
}

/* 密码显示切换按钮 */
#toggleLoginPassword {
    border-left: none;
}

#toggleLoginPassword:hover {
    background-color: #e9ecef;
}

/* 响应式优化 */
@media (max-width: 576px) {
    .login-box, .register-box {
        max-width: 100%;
        margin: 20px auto;
    }

    .login-container {
        padding: 10px;
    }
}

/* 表格样式 */
#projectsTable th, #projectsTable td,
#transferHistoryTable th, #transferHistoryTable td {
    vertical-align: middle;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: var(--secondary-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* 防止表格标题文字换行 */
.table th {
    white-space: nowrap;
}

/* 历史记录图标 */
.history-type {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.history-type:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.7;
}

.history-sent {
    background: var(--danger-gradient);
}

.history-sent .fas {
    transform: translateY(1px);
}

.history-sent:hover .fas {
    animation: slide-up 0.5s ease;
}

.history-received {
    background: var(--success-gradient);
}

.history-received .fas {
    transform: translateY(-1px);
}

.history-received:hover .fas {
    animation: slide-down 0.5s ease;
}

@keyframes slide-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes slide-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(8px); }
    100% { transform: translateY(0); }
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* 复制按钮 */
.copy-btn {
    cursor: pointer;
    transition: all 0.1s;
}

.copy-btn:hover {
    color: var(--primary-color);
}

/* Toast通知 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    width: auto;
    margin-left: auto;
    margin-right: 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 项目描述样式 */
.project-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    position: relative;
    padding-left: 25px;
}

.project-description .fas {
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 18px;
    color: var(--primary-color); /* Default color that will be overridden by card variants */
    background: rgba(108, 139, 255, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
}

/* 按钮样式优化 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 侧边栏导航样式 */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -240px;
    z-index: 1030;
    padding: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    width: 250px;
    background-color: var(--white-color);
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* 桌面端: 鼠标移到左侧边缘时显示侧边栏 */
@media (min-width: 992px) {
    .sidebar {
        left: -240px;
    }

    .sidebar:hover,
    .sidebar:focus-within,
    .sidebar.show {
        left: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }

    /* 侧边栏触发区域 */
    .sidebar-trigger-zone {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 1025;
        background: transparent;
    }

    .sidebar-trigger-zone:hover + .sidebar {
        left: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }
}

.sidebar-header {
    padding: 1.25rem;
    background: var(--header-gradient);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.sidebar .nav-link {
    padding: 0.8rem 1rem;
    color: #495057;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(74, 107, 239, 0.08);
    border-left: 3px solid var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    padding: 0;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.sidebar .nav-link.active i {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 2px 6px rgba(74, 107, 239, 0.3);
    transform: scale(1.1);
}

.sidebar .nav-link:hover i {
    transform: rotate(10deg) scale(1.1);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

.content-wrapper {
    margin-left: 0;
    transition: all 0.15s;
    width: 100%;
}

/* 顶部导航栏样式 */
.top-navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* 侧边栏切换按钮 */
.sidebar-toggle {
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: #495057;
    transition: color 0.1s;
}

.sidebar-toggle:hover {
    color: var(--primary-color);
}

/* 响应式布局 */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 10px;
        transition: margin-left 0.3s ease;
    }

    .top-navbar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        left: 0;
        transform: translateX(-250px);
    }

    .sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    /* 移动端隐藏触发区域 */
    .sidebar-trigger-zone {
        display: none;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1025;
        display: none;
    }
    
    .sidebar-mobile-open .sidebar-backdrop {
        display: block;
    }
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }
    .balance {
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.375rem 0.75rem;
    }
    .table-responsive {
        font-size: 0.85rem;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .card-header {
        padding: 0.5rem 0.75rem;
    }
    .card-body {
        padding: 0.75rem;
    }
    .form-control {
        font-size: 0.9rem;
        padding: 0.375rem 0.5rem;
    }
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    .form-text {
        font-size: 0.75rem;
    }
}

/* 内嵌iframe容器样式 */
#projectIframeContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    z-index: 2000;
    display: none;
}

#projectIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 悬浮返回按钮样式 */
#backToPlateform {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #2fd872, #28a745);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    z-index: 2001;
    transition: all 0.15s;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

#backToPlateform::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(255,255,255,0.2) 150%);
    border-radius: 50%;
}

#backToPlateform:hover {
    transform: scale(1.15) rotate(5deg);
    background: radial-gradient(circle, #34ea7e, #20c997);
}

#backToPlateform:hover .fas {
    animation: bounce-home 0.8s infinite;
}

@keyframes bounce-home {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* iframe加载状态 */
#iframeLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2005;
}

#iframeError {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    display: none;
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 2005;
}

.site-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding: 12px 12px 12px 35px;
    border-radius: 12px;
    margin-top: 12px;
    font-size: 0.9em;
    position: relative;
}

.site-warning .fas {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #e0a800;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

.btn-icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-text i {
    margin-right: 8px;
}

/* 优化图标样式 */
.fas, .far, .fab {
    transform: scale(1);
    transition: all 0.15s ease;
}

/* 图标旋转类 */
.icon-rotate {
    animation: icon-rotate 2s infinite linear;
}

@keyframes icon-rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

/* 悬停时图标放大效果 */
a:hover .fas, button:hover .fas, a:hover .far, button:hover .far {
    transform: scale(1.2);
    color: inherit;
}

/* 给按钮中的图标添加弹跳动画 */
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.jump-btn:hover .fas {
    animation: icon-bounce 0.8s ease infinite;
}

.docs-btn:hover .fas {
    animation: icon-bounce 0.8s ease 0.1s infinite;
}

/* 复制按钮图标旋转效果 */
@keyframes icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.copy-btn:hover .fas {
    animation: icon-spin 1s linear;
    color: var(--primary-color);
}

/* 项目描述图标呼吸效果 */
@keyframes icon-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.project-description .fas {
    animation: icon-pulse 2s infinite;
    /* Color is defined in specific card variants */
}

/* 优化项目卡片样式 */
.project-card {
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.15s ease;
    overflow: hidden;
    height: 100%;
    border: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.project-card .card-header {
    background: linear-gradient(135deg, #7a97ff, #a2b3ff);
    color: white;
    padding: 12px 15px;
    border-bottom: none;
}

.project-card .card-header .card-title {
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-card .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 8px;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 6px;
}

.project-card .card-body {
    padding: 18px;
}

.project-card .balance-container {
    background-color: rgba(40, 167, 69, 0.08);
    border-radius: 15px;
    padding: 15px 10px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.project-card .balance-container::before {
    content: "💰";
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    right: 10px;
    bottom: -10px;
}

.project-card .balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    position: relative;
}

.project-card .balance::before {
    content: "¥";
    font-size: 0.9rem;
    position: relative;
    top: -5px;
    margin-right: 2px;
}

.project-card .key-container {
    position: relative;
    margin-bottom: 15px;
}

.project-card .key-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: white;
    padding: 0 8px;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.project-card .key-label::before {
    content: "🔑 ";
    font-size: 0.8rem;
}

.project-card .input-group {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.project-card .form-control {
    border: none;
    padding-left: 12px;
    background-color: rgba(0,0,0,0.01);
}

.project-card .copy-btn {
    border: none;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.02);
    color: #6c757d;
    border-radius: 0 20px 20px 0;
}

.project-card .copy-btn:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.project-card .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.project-card .jump-btn {
    flex: 1;
    border-radius: 20px;
    padding: 8px 10px;
    font-weight: 500;
    background: linear-gradient(135deg, #6c8bff, #5a78f0);
    border: none;
    box-shadow: 0 3px 5px rgba(108, 139, 255, 0.2);
    transition: all 0.1s;
}

.project-card .jump-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(108, 139, 255, 0.3);
}

.project-card .jump-btn .fas {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-right: 5px;
}

.project-card .docs-btn {
    flex: 1;
    border-radius: 20px;
    padding: 8px 10px;
    font-weight: 500;
    background: linear-gradient(135deg, #5bc8d7, #4ab8c6);
    border: none;
    box-shadow: 0 3px 5px rgba(91, 200, 215, 0.2);
    transition: all 0.1s;
}

.project-card .docs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(91, 200, 215, 0.3);
}

.project-card .docs-btn .fas {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-right: 5px;
}

.project-card.success .card-header {
    background: linear-gradient(135deg, #4aba65, #7dd9a8);
}

.project-card.success .project-description .fas {
    color: #4aba65;
    background-color: rgba(74, 186, 101, 0.1);
}

.project-card.info .card-header {
    background: linear-gradient(135deg, #5bc8d7, #8ed9e3);
}

.project-card.info .project-description .fas {
    color: #5bc8d7;
    background-color: rgba(91, 200, 215, 0.1);
}

.project-card.warning .card-header {
    background: linear-gradient(135deg, #ffce54, #ffe066);
}

.project-card.warning .project-description .fas {
    color: #ffce54;
    background-color: rgba(255, 206, 84, 0.1);
}

.project-card.danger .card-header {
    background: linear-gradient(135deg, #e86978, #ffaa6c);
}

.project-card.danger .project-description .fas {
    color: #e86978;
    background-color: rgba(232, 105, 120, 0.1);
}

/* 移动端优化 */
.input-group {
    flex-wrap: nowrap;
}

.btn-group {
    flex-wrap: nowrap;
}

.table-compact {
    font-size: 0.85rem;
}

.table-compact td, .table-compact th {
    padding: 0.4rem 0.5rem;
}

.compact-card {
    margin-bottom: 10px;
}

.compact-card .card-header {
    padding: 0.5rem 0.75rem;
}

.compact-card .card-body {
    padding: 0.75rem;
}

/* 加强移动端优化 */
@media (max-width: 576px) {
    .btn-sm, .btn-group-sm > .btn {
        padding: 0.15rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .input-group > .form-control {
        min-width: 0;
    }
    
    .btn-group {
        display: flex;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .badge-key {
        max-width: 80px;
        font-size: 0.7rem;
    }
    
    /* 表格响应式优化 */
    #transferHistoryTable th, 
    #transferHistoryTable td,
    #projectsTable th, 
    #projectsTable td,
    #userApiKeysTable th,
    #userApiKeysTable td {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* 缩小历史记录图标 */
    .history-type {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* 改善过长溢出的内容 */
    .table td {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 底部间距 */
    .container {
        padding-bottom: 2rem;
    }
    
    /* Toast通知响应式 */
    .toast-container {
        top: 10px;
        right: 10px;
        max-width: 90%;
    }
    
    .toast {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    /* 项目卡片响应式优化 */
    .project-card .card-header {
        padding: 10px;
    }
    
    .project-card .card-body {
        padding: 15px 12px;
    }
    
    .project-card .balance {
        font-size: 1.4rem;
    }
    
    .project-card .action-buttons {
        /* 保持按钮在一行显示 */
        flex-direction: row;
        gap: 6px;
    }
    
    .project-card .action-buttons .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 8px 6px;
    }
    
    .project-card {
        margin-bottom: 15px;
    }
    
    .project-card .card-title {
        font-size: 1rem;
    }
    
    .project-card .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* 工单详情内联展示样式 */
.ticket-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    width: 100%;
    height: 80vh;
    max-height: 600px;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: all 0.15s ease;
    transform: translateY(-50%);
}

.ticket-sidebar.show {
    visibility: visible;
    opacity: 1;
}

.ticket-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.ticket-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 2px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.ticket-sidebar.show .ticket-sidebar-content {
    transform: translateX(0);
}

/* 工单侧边栏头部 - 简洁设计 */
.ticket-sidebar-header {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.ticket-sidebar-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
}

.ticket-sidebar-header .btn-close {
    opacity: 0.6;
    transition: opacity 0.1s;
}

.ticket-sidebar-header .btn-close:hover {
    opacity: 1;
}

/* 工单侧边栏主体 - 简洁滚动 */
.ticket-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.ticket-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.ticket-sidebar-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.ticket-sidebar-body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

/* 工单信息区域 - 水平布局优化 */
.ticket-info-card {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.ticket-info-header {
    margin-bottom: 1rem;
}

.ticket-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.ticket-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.ticket-id {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status.open {
    background: #fff3cd;
    color: #856404;
}

.ticket-status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.ticket-status.waiting_user {
    background: #ffeaa7;
    color: #d68910;
}

.ticket-status.resolved {
    background: #d4edda;
    color: #155724;
}

.ticket-status.closed {
    background: #f8d7da;
    color: #721c24;
}

/* 信息水平布局 - 真正利用宽度 */
.ticket-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85rem;
    min-width: fit-content;
}

.info-label::after {
    content: ":";
    margin-left: 0.2rem;
}

.info-value {
    color: #495057;
    font-weight: 400;
    font-size: 0.9rem;
    min-width: fit-content;
}

.ticket-description {
    margin-top: 1rem;
}

.description-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.description-content {
    color: #495057;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

/* 管理员控制区域 - 紧凑水平布局 */
.admin-controls {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.admin-controls-header h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 控制组水平布局 */
.admin-controls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 120px;
}

.control-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.8rem;
}

.control-group .form-select {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #ffffff;
    min-width: 120px;
}

.control-group .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
}

.control-group .btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.control-group .btn-info {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.control-group .btn-success {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

/* 全宽操作按钮 */
.control-group.full-width {
    width: 100%;
    margin-top: 0.5rem;
}

.control-group.full-width .btn {
    min-width: 100%;
}

/* 回复区域 - 紧凑对话设计 */
.replies-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.replies-header h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.replies-container {
    max-height: 350px;
    overflow-y: auto;
}

.replies-container::-webkit-scrollbar {
    width: 4px;
}

.replies-container::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.replies-container::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

.reply-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6c8bff;
}

.reply-item.admin-reply {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-author {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

/* 管理员回复作者样式 */
.reply-item.admin-reply .reply-author {
    color: #856404;
    font-weight: 700;
}

.reply-item.admin-reply .reply-author::before {
    content: "👑 ";
    font-size: 0.75rem;
    margin-right: 3px;
}

.reply-time {
    color: #6c757d;
    font-size: 0.8rem;
    font-family: monospace;
}

.reply-content {
    color: #495057;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.no-replies-message {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

/* 回复表单区域 - 拟态风格设计 */
.reply-form-section {
    padding: 1.5rem 1.5rem;
    background: linear-gradient(145deg, #f0f4f8, #e8eef5);
    border-top: none;
    border-radius: 20px;
    margin: 1rem 1.25rem;
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.reply-form-section h6.section-title {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.reply-form-section .form-control {
    border: none;
    border-radius: 15px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    background: linear-gradient(145deg, #e8eef5, #f0f4f8);
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
    color: #2c3e50;
}

.reply-form-section .form-control::placeholder {
    color: #95a5b8;
    opacity: 1;
}

.reply-form-section .form-control:focus {
    outline: none;
    background: linear-gradient(145deg, #e4ebf2, #ecf2f9);
    box-shadow:
        inset 6px 6px 12px rgba(163, 177, 198, 0.35),
        inset -6px -6px 12px rgba(255, 255, 255, 0.75);
}

.reply-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* 拟态风格按钮 */
.reply-form-section .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.reply-form-section .btn-primary {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    box-shadow:
        6px 6px 12px rgba(118, 75, 162, 0.3),
        -6px -6px 12px rgba(102, 126, 234, 0.3);
}

.reply-form-section .btn-primary:hover {
    background: linear-gradient(145deg, #5568d3, #6a4191);
    box-shadow:
        4px 4px 8px rgba(118, 75, 162, 0.4),
        -4px -4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.reply-form-section .btn-primary:active {
    box-shadow:
        inset 3px 3px 6px rgba(118, 75, 162, 0.4),
        inset -3px -3px 6px rgba(102, 126, 234, 0.2);
    transform: translateY(0);
}

.reply-form-section .btn-outline-secondary {
    background: linear-gradient(145deg, #f0f4f8, #e8eef5);
    color: #495057;
    box-shadow:
        5px 5px 10px rgba(163, 177, 198, 0.35),
        -5px -5px 10px rgba(255, 255, 255, 0.7);
}

.reply-form-section .btn-outline-secondary:hover {
    background: linear-gradient(145deg, #e8eef5, #e0e8f0);
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.4),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    color: #495057;
}

.reply-form-section .btn-outline-secondary:active {
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

/* 文件输入完全隐藏 */
.file-input-completely-hidden {
    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;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 文件预览容器 - 拟态风格 */
.reply-form-section .file-preview-container {
    background: linear-gradient(145deg, #e0e8f0, #ecf2f9);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow:
        inset 3px 3px 6px rgba(163, 177, 198, 0.25),
        inset -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.reply-form-section .file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reply-form-section .file-preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.reply-form-section .file-preview-title i {
    color: #667eea;
}

.reply-form-section .file-remove-btn {
    background: linear-gradient(145deg, #f0f4f8, #e8eef5);
    color: #dc3545;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        4px 4px 8px rgba(163, 177, 198, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.reply-form-section .file-remove-btn:hover {
    box-shadow:
        2px 2px 4px rgba(163, 177, 198, 0.4),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.reply-form-section .file-remove-btn:active {
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

.reply-form-section .file-preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:
        3px 3px 6px rgba(163, 177, 198, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.reply-form-section .file-preview-image:hover {
    transform: scale(1.02);
}

.reply-form-section .file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.reply-form-section .file-size-badge {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow:
        2px 2px 4px rgba(118, 75, 162, 0.3),
        -2px -2px 4px rgba(102, 126, 234, 0.2);
}

/* 错误提示拟态风格 */
.reply-form-section .alert-danger {
    background: linear-gradient(145deg, #ffe0e0, #ffecec);
    color: #dc3545;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    box-shadow:
        inset 2px 2px 4px rgba(220, 53, 69, 0.15),
        inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* 移动端优化 - 紧凑布局 */
@media (max-width: 768px) {
    .ticket-sidebar {
        height: 85vh;
        max-height: none;
    }

    .ticket-sidebar-content {
        max-width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .ticket-info-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-item {
        width: 100%;
        justify-content: space-between;
    }

    .admin-controls-grid {
        flex-direction: column;
        gap: 0.75rem;
    }

    .control-group {
        min-width: 100%;
    }

    .replies-container {
        max-height: 280px;
    }

    .reply-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reply-actions .btn,
    .reply-form-section .btn {
        width: 100%;
    }

    /* 移动端拟态表单优化 */
    .reply-form-section {
        padding: 1rem 1rem;
        margin: 0.75rem 1rem;
        border-radius: 16px;
    }

    .reply-form-section .form-control {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .ticket-sidebar {
        height: 90vh;
    }
    
    .ticket-sidebar-header {
        padding: 0.75rem;
    }
    
    .ticket-sidebar-header h5 {
        font-size: 1rem;
    }
    
    .ticket-info-card {
        padding: 1rem;
    }
    
    .admin-controls,
    .replies-section {
        padding: 0.75rem 1rem;
    }

    .reply-form-section {
        padding: 0.85rem 0.85rem;
        margin: 0.5rem 0.75rem;
        border-radius: 14px;
    }

    .ticket-title {
        font-size: 0.95rem;
    }

    .ticket-id,
    .ticket-status {
        font-size: 0.8rem;
    }

    .info-label,
    .info-value {
        font-size: 0.85rem;
    }

    .description-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .reply-item {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .reply-author {
        font-size: 0.8rem;
    }

    .reply-content {
        font-size: 0.85rem;
    }

    .reply-form-section h6.section-title {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .reply-form-section .form-control {
        font-size: 0.85rem;
        min-height: 60px;
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
    }

    .reply-form-section .btn {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    .replies-container {
        max-height: 200px;
    }
}
/* 工单详情页面样式 */
#ticketDetailPage {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
    animation: fadeIn 0.3s ease-out;
}

/* 工单徽章通用样式 */
#ticketDetailPage .ticket-meta .badge {
    display: inline-block;
    min-width: auto;
    text-align: center;
    vertical-align: middle;
}

#ticketDetailPage .page-header {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

#ticketDetailPage .card {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none;
}

#ticketDetailPage .section-title {
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

#ticketDetailPage .info-item {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #6c8bff;
}

#ticketDetailPage .info-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

#ticketDetailPage .info-value {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ticketDetailSection .card-header {
    background: linear-gradient(135deg, #7a97ff, #a2b3ff);
    color: white;
    border-bottom: none;
}

#ticketDetailSection .card-header h5 {
    font-weight: 600;
    margin: 0;
}

/* 工单标题和状态样式 */
.ticket-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
}

.ticket-meta .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
}

.ticket-meta .ticket-id {
    font-family: monospace;
}

/* 状态颜色 */
.badge.open {
    background: #fff3cd;
    color: #856404;
}

.badge.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.badge.waiting_user {
    background: #ffeaa7;
    color: #d68910;
}

.badge.resolved {
    background: #d4edda;
    color: #155724;
}

.badge.closed {
    background: #f8d7da;
    color: #721c24;
}

/* 优先级颜色 */
.badge.low {
    background: #e2e3e5;
    color: #6c757d;
}

.badge.medium {
    background: #d1ecf1;
    color: #0c5460;
}

.badge.high {
    background: #fff3cd;
    color: #856404;
}

.badge.critical {
    background: #f8d7da;
    color: #721c24;
}

/* Bootstrap兼容的bg-orange类 */
.bg-orange {
    background-color: #ff8c00 !important;
    color: #ffffff !important;
}

/* 回复区域样式 - 拟态风格 (Neumorphism) */
.replies-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #e8ecf1;
    border-radius: 20px;
    /* 内凹拟态效果 */
    box-shadow:
        inset 8px 8px 16px #d1d5db,
        inset -8px -8px 16px #ffffff;
}

.replies-container::-webkit-scrollbar {
    width: 6px;
}

.replies-container::-webkit-scrollbar-track {
    background: transparent;
}

.replies-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c5cdd8, #a8b2c1);
    border-radius: 10px;
    box-shadow:
        2px 2px 4px rgba(0,0,0,0.1),
        -2px -2px 4px rgba(255,255,255,0.5);
}

.replies-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b5bdc8, #98a2b1);
}

.reply-item {
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    background: #e8ecf1;
    border-radius: 18px;
    /* 外凸拟态效果 - 用户回复 */
    box-shadow:
        10px 10px 20px #c5cdd8,
        -10px -10px 20px #ffffff,
        inset 0 0 0 1px rgba(255,255,255,0.5);
    border-left: 4px solid #6c8bff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 拟态光泽效果 */
.reply-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.reply-item:hover {
    transform: translateY(-3px);
    box-shadow:
        12px 12px 24px #c5cdd8,
        -12px -12px 24px #ffffff,
        inset 0 0 0 1px rgba(255,255,255,0.7);
}

.reply-item.admin-reply {
    background: #fff8e8;
    border-left: 4px solid #ffc107;
    /* 管理员回复特殊拟态效果 */
    box-shadow:
        10px 10px 20px #e8dfc8,
        -10px -10px 20px #fffef8,
        inset 0 0 0 1px rgba(255,255,255,0.6);
}

.reply-item.admin-reply::before {
    background: linear-gradient(180deg, rgba(255,248,220,0.5) 0%, transparent 100%);
}

.reply-item.admin-reply:hover {
    box-shadow:
        12px 12px 24px #e8dfc8,
        -12px -12px 24px #fffef8,
        inset 0 0 0 1px rgba(255,255,255,0.8);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.reply-author {
    font-weight: 700;
    color: #495057;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reply-time {
    color: #6c757d;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Courier New', monospace;
    background: rgba(255,255,255,0.5);
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow:
        2px 2px 5px rgba(0,0,0,0.05),
        -2px -2px 5px rgba(255,255,255,0.7);
}

.reply-content {
    color: #495057;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* 移动端专用样式 */
.ticket-mobile-header {
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px;
    margin: -12px -12px 12px -12px;
}

.ticket-status-badges {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mobile-info-grid {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    min-height: 44px;
}

.mobile-info-row:last-child {
    border-bottom: none;
}

.mobile-info-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 60px;
}

.mobile-info-value {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-word;
    flex: 1;
    margin-left: 15px;
}

/* Bootstrap fs-7 补充 */
.fs-7 {
    font-size: 0.75rem !important;
}

/* 工单详情页面移动端响应式样式 */
@media (max-width: 768px) {
    #ticketDetailPage {
        padding: 10px 0;
        background-color: #f8f9fa;
    }
    
    #ticketDetailPage .page-header {
        margin: 0 10px 15px 10px;
        padding: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    #ticketDetailPage .container-fluid {
        padding: 0 10px;
    }
    
    #ticketDetailPage .card {
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    #ticketDetailPage .card-header {
        padding: 15px;
        background: white;
        border-bottom: 1px solid #e9ecef;
    }
    
    #ticketDetailPage .ticket-title {
        font-size: 1.1rem;
        line-height: 1.3;
        color: #495057;
        margin: 0;
    }
    
    /* 移动端列布局优化 */
    #ticketDetailPage .row {
        margin: 0;
    }
    
    #ticketDetailPage .col-lg-8,
    #ticketDetailPage .col-lg-4 {
        padding: 15px;
    }
    
    #ticketDetailPage .col-lg-4 {
        order: -1;
        padding-bottom: 0;
    }
    
    #ticketDetailPage .sticky-top {
        position: static !important;
    }
    
    /* 移动端区域标题 */
    #ticketDetailPage .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #495057;
        font-weight: 600;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 8px;
    }
    
    /* 问题描述优化 */
    #ticketDetailPage .description-content {
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.6;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        word-break: break-word;
    }
    
    /* 回复区域优化 - 拟态风格 */
    #ticketDetailPage .replies-container {
        background: #e8ecf1;
        border-radius: 16px;
        padding: 10px;
        box-shadow:
            inset 6px 6px 12px #d1d5db,
            inset -6px -6px 12px #ffffff;
    }

    #ticketDetailPage .reply-item {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 16px;
        background: #e8ecf1;
        border-left: 4px solid #6c8bff;
        box-shadow:
            8px 8px 16px #c5cdd8,
            -8px -8px 16px #ffffff,
            inset 0 0 0 1px rgba(255,255,255,0.5);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    #ticketDetailPage .reply-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
        border-radius: 16px 16px 0 0;
        pointer-events: none;
    }

    #ticketDetailPage .reply-item:hover {
        transform: translateY(-2px);
        box-shadow:
            10px 10px 20px #c5cdd8,
            -10px -10px 20px #ffffff,
            inset 0 0 0 1px rgba(255,255,255,0.7);
    }

    /* 管理员回复特殊样式 */
    #ticketDetailPage .reply-item.admin-reply {
        background: #fff8e8 !important;
        border-left: 4px solid #ffc107 !important;
        box-shadow:
            8px 8px 16px #e8dfc8,
            -8px -8px 16px #fffef8,
            inset 0 0 0 1px rgba(255,255,255,0.6) !important;
    }

    #ticketDetailPage .reply-item.admin-reply::before {
        background: linear-gradient(180deg, rgba(255,248,220,0.4) 0%, transparent 100%);
    }

    #ticketDetailPage .reply-item.admin-reply:hover {
        box-shadow:
            10px 10px 20px #e8dfc8,
            -10px -10px 20px #fffef8,
            inset 0 0 0 1px rgba(255,255,255,0.8) !important;
    }
    
    #ticketDetailPage .reply-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
    }

    #ticketDetailPage .reply-author {
        font-size: 0.9rem;
        font-weight: 700;
        color: #495057;
        text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    }

    /* 管理员回复的作者样式 */
    #ticketDetailPage .reply-item.admin-reply .reply-author {
        color: #856404;
        font-weight: 700;
    }

    #ticketDetailPage .reply-item.admin-reply .reply-author::before {
        content: "👑 ";
        font-size: 0.8rem;
        margin-right: 2px;
    }

    #ticketDetailPage .reply-time {
        font-size: 0.75rem;
        color: #6c757d;
        font-family: 'Monaco', 'Courier New', monospace;
        background: rgba(255,255,255,0.5);
        padding: 3px 8px;
        border-radius: 10px;
        box-shadow:
            2px 2px 4px rgba(0,0,0,0.05),
            -2px -2px 4px rgba(255,255,255,0.7);
    }

    #ticketDetailPage .reply-content {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #495057;
        word-break: break-word;
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    }

    #ticketDetailPage .replies-container {
        max-height: 300px;
    }
    
    /* 回复表单优化 - 覆盖保持拟态风格 */
    #ticketDetailPage .reply-form-section {
        /* 继承拟态风格,无需覆盖 */
    }

    #ticketDetailPage .reply-form-section textarea {
        /* 继承拟态风格,无需覆盖 */
    }
    
    #ticketDetailPage .d-grid button {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    #ticketDetailPage {
        padding: 5px 0;
    }
    
    #ticketDetailPage .page-header {
        margin: 0 5px 10px 5px;
        padding: 12px;
    }
    
    #ticketDetailPage .container-fluid {
        padding: 0 5px;
    }
    
    #ticketDetailPage .card-header,
    #ticketDetailPage .col-lg-8,
    #ticketDetailPage .col-lg-4 {
        padding: 12px;
    }
    
    #ticketDetailPage .ticket-title {
        font-size: 1rem;
    }
    
    .ticket-status-badges .badge {
        font-size: 0.7rem !important;
        padding: 3px 6px !important;
    }
    
    .mobile-info-row {
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .mobile-info-label {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .mobile-info-value {
        font-size: 0.85rem;
        margin-left: 10px;
    }
    
    #ticketDetailPage .section-title {
        font-size: 0.95rem;
    }
    
    #ticketDetailPage .description-content {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    #ticketDetailPage .reply-item {
        padding: 12px;
        /* 确保用户回复的蓝色样式 */
        background: #f8f9fa;
        border-left: 4px solid #6c8bff;
    }
    
    #ticketDetailPage .reply-item.admin-reply {
        background: #fffbf0 !important;
        border-left: 4px solid #ffc107 !important;
        border-color: #ffeaa7 !important;
    }
    
    #ticketDetailPage .reply-author {
        font-size: 0.85rem;
    }
    
    /* 小屏幕管理员回复样式 */
    #ticketDetailPage .reply-item.admin-reply .reply-author {
        color: #856404;
        font-weight: 700;
    }
    
    #ticketDetailPage .reply-item.admin-reply .reply-author::before {
        content: "👑 ";
        font-size: 0.7rem;
        margin-right: 2px;
    }
    
    #ticketDetailPage .reply-time {
        font-size: 0.75rem;
    }
    
    #ticketDetailPage .reply-content {
        font-size: 0.85rem;
    }
    
    #ticketDetailPage .replies-container {
        max-height: 200px;
    }
    
    #ticketDetailPage .reply-form-section {
        /* 继承拟态风格,只调整移动端间距 */
        padding: 0.85rem;
        margin: 0.5rem 0.75rem;
    }

    #ticketDetailPage .reply-form-section textarea {
        /* 继承拟态风格 */
    }
    
    #ticketDetailPage .d-grid button {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* 数据统计样式 */
.statistics-content {
    padding: 15px;
    font-size: 0.9rem;
}

.statistics-overview h6 {
    color: #495057;
    font-weight: 600;
}

.project-stat-card {
    transition: all 0.1s ease;
}

.project-stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.stat-details {
    margin-bottom: 10px;
}

.stat-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.stat-item small {
    font-size: 0.75rem;
    color: #6c757d;
}

.user-project-details .user-stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.1s ease;
}

.user-project-details .user-stat-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-badge {
    background: #6c757d;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.username {
    font-weight: 500;
    color: #495057;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-details {
    font-size: 0.8rem;
    color: #6c757d;
}

.user-bill-details .transfer-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.1s ease;
}

.user-bill-details .transfer-item:hover {
    background: #e9ecef;
}

.transfer-item .badge {
    font-size: 0.75rem;
}

.statistics-empty-state {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.statistics-empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 简约模式下的数据统计样式 */
.simple-mode .statistics-content {
    padding: 10px;
}

.simple-mode .project-stat-card {
    padding: 10px;
    margin-bottom: 8px;
}

.simple-mode .stat-item {
    padding: 6px;
}

.simple-mode .user-stat-card {
    padding: 8px;
    margin-bottom: 6px;
}

.simple-mode .user-info {
    gap: 6px;
}

.simple-mode .rank-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

.simple-mode .transfer-item {
    padding: 8px;
    margin-bottom: 6px;
}

.simple-mode .statistics-empty-state {
    padding: 20px;
}

.simple-mode .statistics-empty-state i {
    font-size: 1.5rem;
}

/* 项目收益统计样式 */
.stat-overview-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease;
}

.stat-overview-item:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.15s ease;
}

.stat-overview-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-value {
    font-weight: 700;
    margin: 0;
    transition: color 0.15s ease;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.project-stat-card {
    transition: all 0.15s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-item {
    transition: all 0.15s ease;
    border-radius: var(--border-radius);
}

.stat-item:hover {
    background-color: rgba(108, 139, 255, 0.05);
    transform: translateY(-2px);
}

.stat-item .stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 0.9rem;
}

.hover-shadow-transition {
    transition: all 0.15s ease;
}

.hover-shadow-transition:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* 统计页面动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-overview-item,
.project-stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-overview-item:nth-child(1) { animation-delay: 0.1s; }
.stat-overview-item:nth-child(2) { animation-delay: 0.2s; }
.stat-overview-item:nth-child(3) { animation-delay: 0.3s; }
.stat-overview-item:nth-child(4) { animation-delay: 0.4s; }

.project-stat-card:nth-child(1) { animation-delay: 0.5s; }
.project-stat-card:nth-child(2) { animation-delay: 0.6s; }


/* 随机密钥模态框样式 - 简约快捷选择风格 */
.project-selection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.project-selection-card {
    position: relative;
    transition: all 0.25s ease;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 14px;
    background: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.project-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-color: #17a2b8;
}

.project-selection-card.selected {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e6f7f9 0%, #f0f9fa 100%);
    box-shadow: 0 3px 12px rgba(23, 162, 184, 0.2);
}

.project-selection-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17a2b8, #138496);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
}

.project-selection-name {
    font-weight: 500;
    color: #2c3e50;
}

.project-selection-balance {
    font-size: 0.75rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.project-selection-balance i {
    color: #ffc107;
    font-size: 10px;
}

.project-selection-card.selected .project-selection-balance {
    color: #17a2b8;
    font-weight: 600;
}

/* 选中标记 */
.project-selection-card::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #17a2b8;
    color: white;
    font-size: 8px;
    display: none;
    align-items: center;
    justify-content: center;
}

.project-selection-card.selected::after {
    display: flex;
}

@media (max-width: 768px) {
    .project-selection-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        justify-content: center;
    }
}
