/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 取消订单按钮样式 */
.cancel-order-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-order-btn:hover {
    background-color: #ff7875;
}

.cancel-order-btn:active {
    background-color: #d9363e;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.page {
    width: 100%;
    min-height: 100vh;
}

/* 登录页面样式 */
#loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
}

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: #1890ff;
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 0.8rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #40a9ff;
}

/* 主页面样式 */
/* 顶部菜单栏 */
header {
    background-color: #1890ff;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

nav ul li a:hover {
    background-color: #40a9ff;
}



/* 主内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 输入区域 */
.input-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.input-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.input-area {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fc-area, .tc-area {
    flex: 1;
    min-width: 300px;
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.fc-area h4, .tc-area h4 {
    margin-bottom: 1rem;
    color: #1890ff;
    text-align: center;
}

.fc-area input, .tc-area input, .fc-area textarea, .tc-area textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 200px;
    resize: vertical;
    font-family: Arial, sans-serif;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: left;
    line-height: 1.5;
}

.fc-area select, .tc-area select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
}

.fc-area button, .tc-area button {
    width: 100%;
    padding: 0.8rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fc-area button:hover, .tc-area button:hover {
    background-color: #40a9ff;
}

/* 输出区域 */
.output-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.output-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.result {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 记录区域 */
.records-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.records-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.record-item {
    background-color: #fafafa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.clear-btn {
    padding: 0.5rem 1rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #ff7875;
}

/* 顶部菜单清除按钮样式 */
.clear-all-menu {
    background-color: #ff4d4f !important;
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
    text-decoration: none;
}

.clear-all-menu:hover {
    background-color: #ff7875 !important;
}

.clear-all-menu:active {
    background-color: #d9363e !important;
}

/* 响应式设计下的清除按钮样式 */
@media (max-width: 768px) {
    .clear-all-menu {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .clear-all-menu {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.8rem;
    }
}

.record-item .record-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1890ff;
}

.record-item .record-content {
    white-space: pre-wrap;
    word-break: break-word;
}

/* 高倍警报样式 */
.high-multiplier {
    color: #ff4d4f;
    font-weight: bold;
}

/* 预警倍数设置样式 */
.warning-settings {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #b3e5fc;
}

.warning-settings h4 {
    margin-bottom: 1.5rem;
    color: #1890ff;
    text-align: center;
}

.warning-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.warning-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-input-group label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* 数字输入框样式 */
.number-input {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.number-input input[type="number"] {
    width: 60px;
    padding: 0.6rem;
    border: none;
    outline: none;
    text-align: center;
    font-size: 1rem;
    background-color: white;
}

.number-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.number-btn:hover {
    background-color: #e0e0e0;
}

.number-btn.minus {
    border-right: 1px solid #d9d9d9;
}

.number-btn.plus {
    border-left: 1px solid #d9d9d9;
}

.number-btn:active {
    background-color: #d0d0d0;
    transform: scale(0.95);
}

#saveWarningSettings {
    padding: 0.6rem 1.5rem;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

#saveWarningSettings:hover {
    background-color: #73d13d;
}

/* 警告标记样式 */
.warning-mark {
    color: #ff4d4f;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 2px;
    vertical-align: top;
}

/* 结果操作区域样式 */
.result-actions {
    margin-top: 1rem;
    text-align: center;
}

#cancelOrderBtn {
    padding: 0.8rem 1.5rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cancelOrderBtn:hover {
    background-color: #ff7875;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 优化导航栏 */
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    nav ul li a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    /* 优化输入区域 */
    .input-area {
        flex-direction: column;
    }

    .fc-area, .tc-area {
        min-width: 100%;
        padding: 1rem;
    }

    /* 优化输入框和按钮 */
    input[type="text"],
    input[type="password"],
    select,
    button {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    /* 优化计算按钮 */
    button {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* 优化主内容区域 */
    main {
        padding: 0 0.5rem;
    }

    /* 优化输入区域和输出区域 */
    .input-section,
    .output-section,
    .records-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* 优化表单行，确保在小屏幕上垂直排列 */
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    /* 优化表格，确保在小屏幕上可滚动 */
    .users-table {
        overflow-x: auto;
        font-size: 0.9rem;
    }

    /* 优化记录项 */
    .record-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* 优化管理员区域 */
    .admin-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* 优化管理员表单 */
    .admin-form {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* 优化用户列表 */
    .user-list {
        padding: 1rem;
    }
}

/* 针对更小屏幕的优化 */
@media (max-width: 480px) {
    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    nav ul {
        gap: 0.3rem;
    }

    nav ul li a {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .result {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* 管理员功能样式 */
.admin-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.admin-section h4 {
    margin-bottom: 1rem;
    color: #1890ff;
}

.admin-form {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e8e8e8;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row input,
.form-row select,
.form-row button {
    padding: 0.5rem 1rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row button {
    background-color: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-row button:hover {
    background-color: #40a9ff;
}

#clearFormBtn {
    background-color: #ff4d4f;
}

#clearFormBtn:hover {
    background-color: #ff7875;
}

.user-list {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.users-table th,
.users-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.users-table th {
    background-color: #f0f2f5;
    font-weight: bold;
    color: #333;
}

.users-table tr:hover {
    background-color: #fafafa;
}

.delete-user-btn {
    padding: 0.3rem 0.6rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.delete-user-btn:hover {
    background-color: #ff7875;
}

.edit-user-btn {
    padding: 0.3rem 0.6rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}

.edit-user-btn:hover {
    background-color: #40a9ff;
}

/* 统计表格样式 */
.stats-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.stats-table th,
.stats-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e8e8e8;
    font-size: 0.9rem;
}

.stats-table th {
    background-color: #f0f2f5;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.stats-table tr:nth-child(even) {
    background-color: #fafafa;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

.high-multiplier-row {
    background-color: #fff2f0 !important;
    color: #ff4d4f;
    font-weight: bold;
}

.high-multiplier-row td {
    border-color: #ffccc7;
}

/* 号码统计网格样式 */
.stats-grid-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-top: 1rem;
}

.stats-grid-table {
    border-collapse: collapse;
    font-size: 12px;
    background-color: white;
    min-width: max-content;
}

.stats-grid-cell {
    padding: 4px 6px;
    border: 1px solid #f0f0f0;
    text-align: center;
    min-width: 80px;
    height: 30px;
    vertical-align: middle;
    font-family: monospace;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-grid-cell:hover {
    background-color: #fafafa;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.stats-grid-cell.empty {
    background-color: #fafafa;
    border-color: #e8e8e8;
}

.high-multiplier-cell {
    background-color: #fff2f0;
    color: #cf1322;
    font-weight: bold;
    border-color: #ffccc7;
}

.high-multiplier-cell:hover {
    background-color: #fff1f0;
}

/* 记录容器样式 */
.records-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.records-section-part {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
}

.records-section-part h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* 历史记录表格样式 */
.history-records {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: white;
}

.history-table th,
.history-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.history-table th {
    background-color: #f0f2f5;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.history-table tr:hover {
    background-color: #f5f5f5;
}

.input-content,
.result-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cancel-record-btn {
    padding: 4px 8px;
    background-color: #faad14;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.cancel-record-btn:hover {
    background-color: #ffc53d;
}

.no-records,
.no-stats {
    text-align: center;
    color: #999;
    padding: 20px;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 3px;
    margin-top: 1rem;
}

.more-stats {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 0.5rem;
}

/* 预警弹窗样式 */
.warning-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 380px;
    min-height: 150px;
    max-height: 80vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInRight 0.3s ease-out forwards;
    border-left: 4px solid #ff4d4f;
    display: flex;
    flex-direction: column;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.warning-popup.slide-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

.warning-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.warning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff2f0;
    border-bottom: 1px solid #ffccc7;
    flex-shrink: 0;
}

.warning-header h3 {
    margin: 0;
    font-size: 16px;
    color: #cf1322;
    font-weight: bold;
}

.warning-actions {
    display: flex;
    gap: 8px;
}

.warning-minimize {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
}

.warning-minimize:hover {
    background-color: #ffccc7;
    color: #cf1322;
}

.warning-minimize {
    font-size: 18px;
    line-height: 1;
}

.warning-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    max-height: calc(80vh - 120px);
}

/* 最小化状态样式 */
.warning-popup.minimized {
    width: auto;
    height: auto;
    max-width: 30px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    transform: translateX(0);
}

.warning-popup.minimized .warning-content {
    flex-direction: column;
}

.warning-popup.minimized .warning-body,
.warning-popup.minimized .warning-footer {
    display: none;
}

.warning-popup.minimized .warning-header {
    padding: 8px;
    min-width: 30px;
    justify-content: center;
}

.warning-popup.minimized .warning-header h3 {
    display: none;
}

.warning-popup.minimized .warning-actions {
    display: flex;
    gap: 4px;
}

.warning-popup.minimized .warning-minimize {
    display: none;
}

/* 恢复按钮样式 */
.warning-restore {
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
}

.warning-restore:hover {
    background-color: #ffccc7;
    color: #cf1322;
}

.warning-popup.minimized .warning-restore {
    display: flex;
}

.warning-body {
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.warning-footer {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background-color: white;
}

.warning-action {
    padding: 10px 30px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.warning-action:hover {
    background-color: #ff7875;
}

.warning-body {
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
}

.warning-body ul {
    margin: 0;
    padding-left: 20px;
}

.warning-body li {
    margin: 8px 0;
    padding: 8px;
    background-color: #fff7e6;
    border-radius: 4px;
    border-left: 3px solid #ffa940;
}

.warning-body li strong {
    color: #cf1322;
}

.warning-body .warning-info {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.warning-action:hover {
    background-color: #ff7875;
}

/* 辅助样式 */
.hidden {
    display: none !important;
}

/* 刷新窗口样式 */
.refresh-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 400px;
    max-width: 90%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.refresh-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.refresh-header {
    padding: 15px 20px;
    background-color: #f0f8ff;
    border-bottom: 1px solid #b3e5fc;
    flex-shrink: 0;
}

.refresh-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1890ff;
    font-weight: bold;
    text-align: center;
}

.refresh-body {
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    flex: 1;
}

.refresh-footer {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background-color: white;
}

.refresh-action {
    padding: 10px 30px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.refresh-action:hover {
    background-color: #40a9ff;
}

/* 操作日志相关样式 */
.stats-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: #1890ff;
}

.stat-item .label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}



.lottery-type {
    font-weight: bold;
}

.lottery-type.fc {
    color: #1890ff;
}

.lottery-type.tc {
    color: #52c41a;
}

.username {
    font-weight: 500;
}

.timestamp {
    color: #999;
    font-size: 0.85rem;
}

.details {
    color: #666;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #1890ff;
}

@media (max-width: 768px) {
    .stats-summary {
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px 20px;
        flex: 1;
        min-width: 100px;
    }
    
    
}

.error {
    color: #ff4d4f;
    margin-top: 0.5rem;
}

.success {
    color: #52c41a;
    margin-top: 0.5rem;
}

/* 错误订单提示弹窗样式 - 左侧 */
.error-popup {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInLeft 0.3s ease-out forwards;
    border-left: 4px solid #fa8c16;
    display: flex;
    flex-direction: column;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-popup.slide-out {
    animation: slideOutLeft 0.3s ease-out forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.error-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff7e6;
    border-bottom: 1px solid #ffd591;
    flex-shrink: 0;
}

.error-header h3 {
    margin: 0;
    font-size: 16px;
    color: #d46b08;
    font-weight: bold;
}

.error-actions {
    display: flex;
    gap: 8px;
}

.error-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.error-close:hover {
    background-color: #ffd591;
    color: #d46b08;
}

.error-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    max-height: calc(80vh - 120px);
}

.error-summary {
    font-weight: bold;
    color: #d46b08;
    margin-bottom: 10px;
}

.error-item {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}

.error-item .error-line {
    font-family: monospace;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    word-break: break-all;
    white-space: pre-wrap;
    padding: 5px;
    background-color: white;
    border-radius: 3px;
    border: 1px solid #ffe7ba;
}

.error-item .error-reason {
    font-size: 12px;
    color: #fa8c16;
    margin-bottom: 8px;
}

.error-item .copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 8px;
    background-color: #fa8c16;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.error-item .copy-btn:hover {
    background-color: #d46b08;
}

.error-footer {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background-color: white;
}

.error-action {
    padding: 10px 24px;
    background-color: #fa8c16;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.error-action:hover {
    background-color: #d46b08;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10001;
    font-size: 14px;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ============ 统一消息提示样式 ============ */

/* Toast 提示 */
.app-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10001;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    word-wrap: break-word;
}

.app-toast.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast .toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Toast 类型 */
.app-toast.toast-success {
    border-left: 4px solid #52c41a;
}
.app-toast.toast-success .toast-icon {
    background-color: #f6ffed;
    color: #52c41a;
}

.app-toast.toast-error {
    border-left: 4px solid #ff4d4f;
}
.app-toast.toast-error .toast-icon {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.app-toast.toast-warning {
    border-left: 4px solid #faad14;
}
.app-toast.toast-warning .toast-icon {
    background-color: #fffbe6;
    color: #faad14;
}

.app-toast.toast-info {
    border-left: 4px solid #1890ff;
}
.app-toast.toast-info .toast-icon {
    background-color: #e6f7ff;
    color: #1890ff;
}

.app-toast .toast-message {
    flex: 1;
    line-height: 1.5;
}

/* 确认对话框 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay.overlay-show {
    opacity: 1;
}

.confirm-dialog {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9) translateY(-10px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-dialog.dialog-show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    font-weight: bold;
}

.confirm-warning .confirm-icon {
    background-color: #fffbe6;
    color: #faad14;
}

.confirm-error .confirm-icon {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.confirm-success .confirm-icon {
    background-color: #f6ffed;
    color: #52c41a;
}

.confirm-info .confirm-icon {
    background-color: #e6f7ff;
    color: #1890ff;
}

.confirm-title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #262626;
    font-weight: 600;
}

.confirm-message {
    color: #595959;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.confirm-message p {
    margin: 0 0 8px;
}

.confirm-warning-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #ad6800;
    text-align: left;
    line-height: 1.5;
}

.confirm-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.3s;
    outline: none;
}

.confirm-input:focus {
    border-color: #faad14;
    box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
}

.confirm-input.input-error {
    border-color: #ff4d4f;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
}

.confirm-cancel {
    background-color: #f5f5f5;
    color: #595959;
}

.confirm-cancel:hover {
    background-color: #e8e8e8;
}

.confirm-ok {
    background-color: #faad14;
    color: white;
}

.confirm-dialog.confirm-error .confirm-ok {
    background-color: #ff4d4f;
}

.confirm-dialog.confirm-success .confirm-ok {
    background-color: #52c41a;
}

.confirm-dialog.confirm-info .confirm-ok {
    background-color: #1890ff;
}

.confirm-ok:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.confirm-ok:active {
    transform: translateY(0);
}