body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/img/wallpaper.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#container, .login-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.connectionStatus {
    position: relative; /* 调整位置 */
    margin-bottom: 10px; /* 保持与激活按钮的间距 */
    background-color: rgba(76, 175, 80, 0.8);  /* 半透明绿色 */
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* 缩短宽度 */
    left: 50%; /* 居中显示 */
    transform: translateX(-50%);
}

.connectionStatus.failure {
    background-color: rgba(220, 53, 69, 0.8);  /* 半透明红色 */
}

.connectionStatusContainer {
    width: 60%; /* 缩窄连接状态容器宽度 */
    margin: 0 auto; /* 居中显示 */
}

#resultMessage {
    font-size: 16px;
    margin-bottom: 15px; /* 减少外边距 */
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

#resultMessage.success {
    background-color: #e6ffe6;
    color: #4CAF50;
    border-color: green;
}

#resultMessage.failure {
    background-color: #ffe6e6;
    color: #F44336;
    border-color: red;
}

#popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    display: none;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffd700;  /* 金色 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#popup.success {
    border-left: 4px solid #4CAF50;
    color: #4CAF50;  /* 成功状态使用绿色 */
}

#popup.failure {
    border-left: 4px solid #dc3545;
    color: #dc3545;  /* 失败状态使用红色 */
}

.hidden {
    display: none;
}

#myForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#id { /* 设置输入框的宽度 */
    width: 85%; /* 调整宽度 */
    max-width: 400px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

#promotionCode { /* 保持选择框的宽度 */
    width: 93%; /* 调整宽度 */
    max-width: 400px;
    padding: 15px;
    margin-bottom: -10px; /* 进一步缩小与连接状态的间距 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 0 auto; /* 居中显示 */
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

form, .login-form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    text-align: left;
}

input, select, button {
    padding: 8px; /* 减少内边距 */
    margin-bottom: 10px; /* 减少外边距 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* 减小字体 */
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    width: 45%; /* 缩窄按钮 */
    font-size: 20px; /* 放大按钮字体 */
    font-weight: bold; /* 加粗按��字体 */
    transition: background-color 0.3s;
    margin: 5px; /* 增加按钮之间的间距 */
}

button:hover {
    background-color: #45a049;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
    color: white;
}

.btn-warning:hover {
    background-color: #e68900;
}

.btn-info {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-danger {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-login {
    width: 30%; /* 缩窄按钮宽度 */
    height: 50px; /* 增加按钮高度 */
    font-size: 16px; /* 调整字体大小 */
    font-weight: bold; /* 加粗字体 */
    background-color: #4CAF50; /* 设置背景颜色 */
    color: white; /* 设置字体颜色 */
    border: none; /* 去掉边框 */
    cursor: pointer; /* 设置鼠标样式 */
    transition: background-color 0.3s; /* 设置过渡效果 */
    margin: 0 auto; /* 居中显示 */
    border-radius: 10px; /* 设置圆角 */
}

.btn-login:hover {
    background-color: #45a049; /* 设置悬停背景颜色 */
}

.login-form input[type="text"], .login-form input[type="password"] {
    width: 55%; /* 缩窄输入框宽度 */
    height: 32px; /* 增加输入框高度 */
    font-size: 16px; /* 调整字体大小 */
    margin: 0 auto 10px auto; /* 居中显示并增加底部间距 */
    padding: 10px; /* 增加内边距 */
    border: 1px solid #ccc; /* 设置边框 */
    border-radius: 10px; /* 设置圆角 */
    text-align: center; /* 居中文本 */
}

.error-message {
    color: #F44336;
    margin-bottom: 10px;
    display: none;
}

/* 修改卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1); /* 降低透明度 */
    -webkit-backdrop-filter: blur(10px); /* 添加 webkit 前缀 */
    backdrop-filter: blur(10px);
    padding: 20px; /* 增加内边距 */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: left;
}

/* 添加卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 修改标题文字颜色 */
.card-header h3 {
    margin: 0;
    color: #000000;
}

.search-input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

#giftSendLogTable {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

#giftSendLogTable thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 修改表格头部背景，使其更适应透明卡片 */
#giftSendLogTable thead th {
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px); /* 添加 webkit 前缀 */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(221, 221, 221, 0.3);
    padding: 8px;
    color: #ffd700;  /* 金色 */
    text-align: center; /* 添加居中对齐 */
}

#giftSendLogTable tbody {
    max-height: none; /* 移除最大高度限制 */
    overflow-y: visible; /* 改为 visible */
    color: #d68a26; /* 设置表格内容文字为白色 */
    border: 1px solid rgba(221, 221, 221, 0.3);
    padding: 8px;
    white-space: normal; /* 允许文本换行 */
    overflow: visible; /* 显示所有内容 */
    text-overflow: clip; /* 移除省略号 */
    max-width: 145px; /* 设置最大宽度 */
    text-align: center; /* 添加居中对齐 */
}

/* 添加激活日期列的特殊样式 */
#giftSendLogTable tbody td:nth-child(4) {
    font-size: 12px; /* 设置更小的字体 */
}

/* 修改滑动模块样式，移除最大高度限制 */
.scrollable-table {
    position: relative;
    overflow-y: visible; /* 改为 visible 使内容完全显示 */
    overflow-x: hidden; /* 保持隐藏水平滚动条 */
}

/* 添加媒体查询以确保移动设备上的透明效果 */
@media only screen and (max-width: 768px) {
    .card {
        background: rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    #giftSendLogTable thead th {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* 修改滑动模块样式 */
.scrollable-table {
    height: 400px; /* 设置固定高度 */
    position: relative;
    overflow-y: auto; /* 添加垂直滚动条 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

#giftSendLogTable {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

#giftSendLogTable thead th {
    position: sticky; /* 表头固定 */
    top: 0; /* 固定在顶部 */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* 自定义滚动条样式 */
.scrollable-table::-webkit-scrollbar {
    width: 8px;
}

.scrollable-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.scrollable-table::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.scrollable-table::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

#queryTransactionButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#queryTransactionContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 1400px;
    min-width: 1200px;
    height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: none;
    bottom: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 流水查询表格容器 */
.transaction-table-container {
    width: 100%;
    height: calc(90vh - 150px);
    overflow-y: auto;
}

/* 流水查询结果表格样式 */
#queryTransactionContainer table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

/* 表格头部和单元格样式 */
#queryTransactionContainer th,
#queryTransactionContainer td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 固定表头 */
#queryTransactionContainer th {
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.9);
    z-index: 10;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 优化滚动条样式 */
#queryTransactionContainer::-webkit-scrollbar,
.transaction-table-container::-webkit-scrollbar {
    width: 8px;
}

#queryTransactionContainer::-webkit-scrollbar-track,
.transaction-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#queryTransactionContainer::-webkit-scrollbar-thumb,
.transaction-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#queryTransactionContainer::-webkit-scrollbar-thumb:hover,
.transaction-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 调整查询输入区域样式 */
.query-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.query-controls input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    width: 200px;
}

.query-controls input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.query-controls button {
    background: linear-gradient(45deg, #9b59b6 0%, #8e44ad 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#transactionTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#transactionTable th,
#transactionTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#transactionTable th {
    background-color: #f2f2f2;
}

#transactionTotal {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    text-align: right;
    padding: 5px;
    border-bottom: 2px solid #4CAF50;
}

#queryTransactionPromotionCode {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    margin-bottom: 15px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

#queryTransactionPromotionCode:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.85);
}

/* 下拉框选项样式 */
#queryTransactionPromotionCode option {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 12px;
}

/* 下拉框禁用选项样式 */
#queryTransactionPromotionCode option:disabled {
    color: rgba(255, 255, 255, 0.5);
}

/* 下拉框悬浮选项样式 */
#queryTransactionPromotionCode option:hover {
    background: rgba(255, 255, 255, 0.1);
}

#queryTransactionContainer {
    width: 600px;  /* 增加容器宽度 */
}

#transactionTable td {
    white-space: nowrap;  /* 防止内容换行 */
}

#queryTransactionContainer {
    max-width: 800px;
    margin: 0 auto;
}

.transaction-table-container {
    margin-top: 20px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

#transactionTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #fff;
}

#transactionTable thead th {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #ffd700;  /* 金色标题 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1;
}

#transactionTable tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    background: rgba(20, 20, 20, 0.5);  /* 半透明背景 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.9);
}

#transactionTable tbody tr:hover td {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#transactionTotal {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    color: #ffd700;  /* 金色文字 */
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 月份选择器样式 */
.month-picker {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    margin-bottom: 0;  /* 移除底部间距 */
}

.month-picker:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* 查询控件容器样式 */
.query-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* 查询按钮样式 */
#queryTransactionSubmit {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#queryTransactionSubmit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 自定义滚动条 */
.transaction-table-container::-webkit-scrollbar {
    width: 6px;
}

.transaction-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.transaction-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#currencyManagerButton {
    position: fixed;
    bottom: 20px;
    right: 580px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #17a2b8;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#currencyManagerContainer {
    position: fixed;
    bottom: 100px;
    right: 580px;  /* 货币管理面板 */
    background: rgba(20, 20, 20, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px;
    padding: 25px;
    width: 380px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

.currency-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-input-group {
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    gap: 8px;
    margin-bottom: 10px;
}

.currency-input-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

.currency-input-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.currency-buttons {
    display: flex;
    gap: 8px;
}

.currency-buttons button {
    flex: 1;
    padding: 6px;
    font-size: 14px; /* 减小字体大小 */
}

.btn-add {
    background-color: #28a745;
}

.btn-subtract {
    background-color: #dc3545;
}

.currency-query-result {
    margin-top: 10px;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.currency-query-result.show {
    display: block;
}

.currency-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.currency-buttons button {
    flex: 1;
    min-width: calc(33.33% - 6px);
    padding: 6px;
    font-size: 14px;
}

.btn-query {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-query:hover {
    background-color: #138496;
}

.currency-query-result table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.currency-query-result td {
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.currency-query-result td:first-child {
    color: rgba(255, 255, 255, 0.5);
    width: 40%;
}

.currency-query-result td:last-child {
    text-align: right;
}

#promotionCodeManagerButton {
    position: fixed;
    bottom: 20px;
    right: 300px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#promotionCodeManagerContainer {
    position: fixed;
    bottom: 80px;
    right: 300px;  /* 激活码管理面板 */
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    width: 200px;
}

.promotion-code-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promotion-code-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.promotion-code-input-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.promotion-code-buttons {
    display: flex;
    gap: 8px;
}

.btn-update {
    width: 100%;
    padding: 6px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-update:hover {
    background-color: #5a6268;
}

.current-code {
    margin-top: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    display: none;
}

.current-code.show {
    display: block;
}

.promotion-code-buttons {
    display: flex;
    gap: 8px;
}

.promotion-code-buttons button {
    flex: 1;
    padding: 6px;
}

/* 激活记录卡片样式 */
#giftSendLogContainer.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    background: rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-input {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 200px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    width: 220px;
}

/* 表格样式 */
.scrollable-table {
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

#giftSendLogTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

#giftSendLogTable thead th {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px;
    font-weight: 600;
    color: #ffd700;  /* 金色 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-size: 14px;
}

#giftSendLogTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

#giftSendLogTable tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 自定义滚动条 */
.scrollable-table::-webkit-scrollbar {
    width: 6px;
}

.scrollable-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.scrollable-table::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.scrollable-table::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 空状态样式 */
#giftSendLogTable tbody tr.empty-state td {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* 列置 */
.col-id {
    width: 80px;
}

.col-user {
    width: 120px;
}

.col-code {
    width: 120px;
}

.col-date {
    width: 160px;
}

/* Dock 栏样式 */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    z-index: 1000;
}

/* 统一的按钮样式 */
.dock-button {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    font-size: 24px !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 为每个按钮设置hover效果和特定颜色 */
.dock-button.transaction:hover {
    background: #4CAF50;
}

.dock-button.promotion:hover {
    background: #6c757d;
}

.dock-button.currency:hover {
    background: #17a2b8;
}

.dock-button.refund:hover {
    background: #ff5722;
}

.dock-button.statistics:hover {
    background: #2196f3;
}

/* 统一管理面板样式 */
.management-panel {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px;
    padding: 25px;
    width: 380px;
    display: none;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

/* 为每个面板单独设置偏移 */
#queryTransactionContainer {
    transform: translateX(calc(-50% - 150px)) translateY(-50%);
    bottom: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

#promotionCodeManagerContainer {
    transform: translateX(-50%);
}

#currencyManagerContainer {
    transform: translateX(calc(-50% + 150px));
}

/* 按钮渐变样式 */
.dock-container .dock-button.refund {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5253 100%) !important;
}

.dock-container .dock-button.statistics {
    background: linear-gradient(45deg, #9b59b6 0%, #8e44ad 100%) !important;
}

.dock-container .dock-button.currency {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%) !important;
}

.dock-container .dock-button.promotion {
    background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%) !important;
}

.dock-container .dock-button.transaction {
    background: linear-gradient(45deg, #84fab0 0%, #8fd3f4 100%) !important;
}

/* 按钮悬浮效果 */
.dock-container .dock-button:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 按钮标签 */
.dock-container .dock-button::after {
    content: attr(data-label);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dock-container .dock-button:hover::after {
    opacity: 1;
    top: -35px;
}

/* 统一所有管理面板的基础样式 */
.management-panel {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px;
    padding: 25px;
    width: 380px;
    display: none;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

/* 统计面板特殊样式 */
#statisticsContainer {
    width: 480px;
    right: 1140px;  /* 向右移动 */
    padding: 30px;
    background: rgba(20, 20, 20, 0.85) !important;
}

/* 统计卡片组样式 */
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #ffd700;  /* 金色数值 */
}

/* 统计控件容器样式 */
.statistics-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 日期范围选择器容器 */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.date-range span {
    color: rgba(255, 255, 255, 0.7);
}

/* 日期输入框样式 */
.stat-date {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.stat-date:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* 查询按钮样式 */
#queryStatistics {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #9b59b6 0%, #8e44ad 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#queryStatistics:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 自定义时间段统计结果样式 */
.statistics-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    color: #ffd700;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.statistics-result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 图表容器样式 */
.chart-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 图表标题样式 */
.chart-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 20px 0;
    text-align: center;
}

/* 图表区域样式 */
#dailyChart {
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

/* 自定义图表主样式 */
.apexcharts-tooltip {
    background: rgba(20, 20, 20, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px;
    color: #fff !important;
}

.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
    fill: rgba(255, 255, 255, 0.7) !important;
}

.apexcharts-grid line {
    stroke: rgba(255, 255, 255, 0.1) !important;
}

.apexcharts-bar-series .apexcharts-bar {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* 图表头部样式 */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 图表控制按钮组 */
.chart-controls {
    display: flex;
    gap: 10px;
}

/* 图切换按钮样式 */
.chart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.chart-btn.active {
    background: rgba(155, 89, 182, 0.5);
    border-color: rgba(155, 89, 182, 0.8);
    color: #fff;
}

/* 流水查询结果表格样式 */
#queryTransactionContainer table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

#queryTransactionContainer th,
#queryTransactionContainer td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap; /* 防止文字换行 */
}

#queryTransactionContainer th {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

#queryTransactionContainer tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 调整表格内容宽 */
#queryTransactionContainer td:nth-child(1) { width: 15%; } /* 订单号 */
#queryTransactionContainer td:nth-child(2) { width: 10%; } /* 用户ID */
#queryTransactionContainer td:nth-child(3) { width: 10%; } /* 金额 */
#queryTransactionContainer td:nth-child(4) { width: 10%; } /* 支付类型 */
#queryTransactionContainer td:nth-child(5) { width: 10%; } /* 支付状态 */
#queryTransactionContainer td:nth-child(6) { width: 10%; } /* 币类型 */
#queryTransactionContainer td:nth-child(7) { width: 20%; } /* 创建时间 */
#queryTransactionContainer td:nth-child(8) { width: 15%; } /* 更新时间 */

/* 退款管理面板样式 */
.refund-controls {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.refund-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.refund-input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.refund-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.refund-buttons button {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-query {
    background: #4CAF50;
    color: white;
}

.btn-refund {
    background: #f44336;
    color: white;
}

.btn-query:hover {
    background: #45a049;
}

.btn-refund:hover {
    background: #da190b;
}

.order-details {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.order-info p {
    margin: 5px 0;
    color: #fff;
}

.refund-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.refund-result .success {
    color: #4CAF50;
}

.refund-result .error {
    color: #f44336;
}

button:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
}

/* 添加显示时的动画效果 */
.management-panel[style*="display: block"] {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* 为流水查询面板添加滚动条样式 */
#queryTransactionContainer::-webkit-scrollbar {
    width: 6px;
}

#queryTransactionContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#queryTransactionContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#queryTransactionContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
