/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #49a0ff;
    --secondary-color: #ff6bcb;
    --accent-color: #36f9f6;
    --background-dark: #121224;
    --background-light: #1e2950;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 41, 80, 0.85);
    --modal-bg: rgba(24, 28, 47, 0.95);
    --success-color: #00e676;
    --warning-color: #ffab40;
    --error-color: #ff5252;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--background-dark);
    overflow-x: hidden;
    height: 100vh;
    letter-spacing: 0.03em;
}

.page-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 背景样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 36, 0.9) 0%, rgba(30, 41, 80, 0.8) 100%);
    z-index: 1;
}

/* 装饰元素 */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.tech-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    pointer-events: none;
}

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(18, 18, 36, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(73, 160, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button {
    display: flex;
    align-items: center;
    color: var(--text-color);
    background: rgba(73, 160, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.back-button:hover {
    background: rgba(73, 160, 255, 0.4);
    transform: translateX(-3px);
    box-shadow: 0 0 15px rgba(73, 160, 255, 0.4);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(73, 160, 255, 0.5);
}

.refresh-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(73, 160, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background: rgba(73, 160, 255, 0.4);
    transform: rotate(30deg);
    box-shadow: 0 0 15px rgba(73, 160, 255, 0.4);
}

/* 添加代码开始：汉堡菜单按钮样式 */
.hamburger-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(73, 160, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1rem; /* 调整图标大小 */
}

.hamburger-menu:hover {
    background: rgba(73, 160, 255, 0.4);
    transform: rotate(90deg); /* 简单的悬停效果 */
    box-shadow: 0 0 15px rgba(73, 160, 255, 0.4);
}
/* 添加代码结束：汉堡菜单按钮样式 */


/* 添加代码开始：侧边导航面板样式 */
.side-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* 侧边栏宽度 */
    height: 100%;
    background: var(--modal-bg); /* 复用模态框背景色 */
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(73, 160, 255, 0.2);
    transform: translateX(-100%); /* 初始状态隐藏在左侧 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 平滑过渡动画 */
    z-index: 1500; /* 比头部导航高，确保在最前面 */
    display: flex;
    flex-direction: column;
    padding-top: 50px; /* 为关闭按钮留出空间 */
    overflow-y: auto; /* 如果内容过多则允许滚动 */
}

.side-nav-panel.open {
    transform: translateX(0); /* 打开状态，移入屏幕 */
}

.close-side-nav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.close-side-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transform: rotate(180deg);
}

.side-nav-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(73, 160, 255, 0.1);
    margin-bottom: 15px;
    text-align: center;
}

.side-nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(73, 160, 255, 0.5);
}

.side-nav-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.side-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* 占据剩余空间 */
}

.side-nav-links li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent; /* 用于悬停/激活状态指示 */
}

.side-nav-links li a i {
    margin-right: 15px;
    width: 20px; /* 固定图标宽度，让文字对齐 */
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color); /* 图标颜色 */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.side-nav-links li a:hover,
.side-nav-links li a:focus { /* 添加 focus 状态用于键盘导航 */
    background: rgba(73, 160, 255, 0.1);
    color: var(--text-color);
    border-left-color: var(--accent-color); /* 高亮左边框 */
    box-shadow: inset 5px 0 10px -5px rgba(54, 249, 246, 0.3); /* 内阴影效果 */
}

.side-nav-links li a:hover i,
.side-nav-links li a:focus i {
    opacity: 1;
    transform: scale(1.1); /* 图标放大一点 */
}

/* 侧边导航遮罩层样式 */
.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 半透明黑色背景 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1400; /* 在侧边栏下面，但在页面内容上面 */
}

.side-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

/* 积分统计卡片 */
.stats-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(73, 160, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffab40, #ff6bcb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 107, 203, 0.5);
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a9d4ff);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.stats-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.recharge-btn {
    background: linear-gradient(135deg, #49a0ff, #36f9f6);
    border: none;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(54, 249, 246, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.recharge-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 1;
    opacity: 0;
}

.recharge-btn:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
    opacity: 1;
}

.recharge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(54, 249, 246, 0.5);
}

.recharge-btn i, .recharge-btn span {
    position: relative;
    z-index: 2;
}

/* 交易记录表格区域 */
.transactions-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(73, 160, 255, 0.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.transactions-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 220px;
}

.search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(73, 160, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(73, 160, 255, 0.3);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(73, 160, 255, 0.2);
    border: 1px solid rgba(73, 160, 255, 0.3);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(73, 160, 255, 0.3);
}

.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: var(--modal-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 10px;
    z-index: 100;
    display: none;
    margin-top: 10px;
    border: 1px solid rgba(73, 160, 255, 0.2);
}

.filter-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.filter-item:hover {
    background: rgba(73, 160, 255, 0.1);
}

.filter-item input {
    margin-right: 10px;
}

/* 表格样式 */
.table-container {
    flex-grow: 1;
    overflow-x: auto;
    margin-bottom: 20px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.transactions-table thead tr {
    background: rgba(73, 160, 255, 0.1);
    border-bottom: 2px solid rgba(73, 160, 255, 0.3);
}

.transactions-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.transactions-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.transactions-table tbody tr:hover {
    background: rgba(73, 160, 255, 0.05);
}

.transactions-table td {
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.transactions-table td:first-child {
    font-family: monospace;
    color: var(--text-color);
}

.table-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(73, 160, 255, 0.2);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(73, 160, 255, 0.5);
    transform: scale(1.1);
}

.action-btn.view-btn:hover {
    background: rgba(54, 249, 246, 0.5);
    box-shadow: 0 0 10px rgba(54, 249, 246, 0.5);
}

/* 交易记录标签 */
.record-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.tag-chat {
    background: rgba(73, 160, 255, 0.2);
    color: #49a0ff;
}

.tag-recharge {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

/* 积分消耗/获取数值 */
.points-spent {
    color: #ff5252;
    font-weight: 600;
}

.points-gained {
    color: #00e676;
    font-weight: 600;
}

/* 分页控制 */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(73, 160, 255, 0.2);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(73, 160, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(73, 160, 255, 0.4);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(73, 160, 255, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(73, 160, 255, 0.2);
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(73, 160, 255, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cancel-btn, .confirm-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-btn {
    background: linear-gradient(135deg, #49a0ff, #36f9f6);
    color: var(--text-color);
    border: none;
    box-shadow: 0 5px 15px rgba(54, 249, 246, 0.3);
}

.confirm-btn:hover {
    box-shadow: 0 8px 20px rgba(54, 249, 246, 0.5);
    transform: translateY(-2px);
}

/* 充值选项样式 */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.recharge-option {
    background: rgba(73, 160, 255, 0.1);
    border: 1px solid rgba(73, 160, 255, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.recharge-option:hover {
    background: rgba(73, 160, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recharge-option.selected {
    background: rgba(73, 160, 255, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(73, 160, 255, 0.3);
}

.recharge-option.featured {
    background: linear-gradient(135deg, rgba(73, 160, 255, 0.2), rgba(255, 107, 203, 0.2));
    border-color: var(--secondary-color);
}

.option-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.option-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.option-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6bcb, #ffab40);
    color: var(--text-color);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 107, 203, 0.5);
}

.recharge-option.custom input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
}

.recharge-option.custom input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.payment-method {
    margin-bottom: 25px;
}

.payment-method h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-option i {
    font-size: 1.5rem;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.payment-option.active {
    background: rgba(73, 160, 255, 0.2);
    border-color: var(--primary-color);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.qr-code-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-overlay.show {
    opacity: 1;
    visibility: visible;
}

.qr-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6bcb;
}

.qr-instructions {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.qr-instructions span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 详情模态框样式 */
.detail-modal {
    max-width: 700px;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-row {
    margin-bottom: 15px;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-color);
    word-break: break-word;
}

.detail-message {
    grid-column: span 2;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.detail-message pre {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 通知样式 */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(73, 160, 255, 0.9));
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.3);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-message {
    font-size: 1rem;
    font-weight: 500;
}

/* 页面过渡动画 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.transition-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0);
}

.transition-circle.expand {
    animation: circleExpand 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.transition-circle.collapse {
    animation: circleCollapse 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.transition-shards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    overflow: hidden;
}

.transition-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300vmax;
    height: 300vmax;
    background: radial-gradient(circle, rgba(73, 160, 255, 0.8) 0%, rgba(73, 160, 255, 0) 70%);
    z-index: 10002;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.transition-glow.expand {
    animation: glowExpand 1.2s ease-in-out forwards;
}

.transition-glow.collapse {
    animation: glowCollapse 1.2s ease-in-out forwards;
}

/* 动画定义 */
@keyframes circleExpand {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes circleCollapse {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(0); }
}

@keyframes glowExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

@keyframes glowCollapse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .stats-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recharge-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-container {
        grid-template-columns: 1fr;
    }
    
    .detail-message {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(73, 160, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(73, 160, 255, 0.8);
}

/* 添加QQ支付图标样式 */
.payment-option[data-method="qqpay"] i {
    color: #12B7F5; /* QQ蓝色 */
  }
  
  .payment-option[data-method="qqpay"].active {
    background: rgba(18, 183, 245, 0.2);
    border-color: #12B7F5;
  }
  /* 添加到transactions.css文件末尾 */
.payment-instructions {
    padding: 20px 0;
    text-align: center;
}

.payment-summary {
    background: rgba(73, 160, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-notice {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
/* QR码支付弹窗样式 */
.payment-qrcode-modal {
    max-width: 480px;
  }
  
  .qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin: 15px auto;
    width: 256px;
    height: 256px;
  }
  
  .payment-info {
    text-align: center;
    margin: 15px 0;
  }
  
  .payment-tip {
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: 500;
  }
  /* 支付窗口样式 */
.payment-window-modal .modal-content {
    max-width: 480px;
    text-align: center;
  }
  
  .payment-instructions {
    padding: 20px;
  }
  
  .payment-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #f60;
    margin: 15px 0;
  }
  
  .payment-order-info {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* QQ支付样式 */
  .qq-payment .btn-primary {
    background-color: #12B7F5;
    border-color: #12B7F5;
  }
  
  .qq-payment .payment-amount {
    color: #12B7F5;
  }
  
  #goToPayBtn {
    margin: 15px 0;
    padding: 10px 25px;
    font-size: 1.2rem;
  }
  
  /* 支付状态检查进度条 */
  .payment-check-progress {
    height: 4px;
    background: rgba(73, 160, 255, 0.2);
    margin-top: 15px;
    border-radius: 2px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    background: linear-gradient(to right, #49A0FF, #36F9F6);
    width: 0;
    transition: width 1s linear;
  }
  /* transactions.css 文件末尾添加 */

/* 新充值弹窗分区样式 */
.recharge-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(73, 160, 255, 0.1); /* 分区底部加条细线 */
}

.recharge-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; /* 最后一个分区不需要底线 */
}

.recharge-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recharge-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 购买积分按钮样式 */
.buy-points-btn {
    width: 100%; /* 按钮宽度占满 */
    padding: 12px 20px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #ffab40); /* 使用不同的渐变色 */
    box-shadow: 0 5px 15px rgba(255, 107, 203, 0.4);
}

.buy-points-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 107, 203, 0.6);
    transform: translateY(-2px);
}

/* 分隔线样式 (可选) */
.section-divider {
    border: none;
    height: 1px;
    background-color: rgba(73, 160, 255, 0.2);
    margin: 0px 0 25px 0; /* 调整上下间距 */
}


/* 兑换码容器样式 */
.redeem-container {
    display: flex;
    gap: 10px; /* 输入框和按钮之间的间距 */
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 15px; /* 与下方反馈信息的间距 */
}

#redemptionCodeInput {
    flex-grow: 1; /* 输入框占据剩余空间 */
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(73, 160, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#redemptionCodeInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(73, 160, 255, 0.3);
}

/* 兑换按钮缩小一点 */
.redeem-btn {
    padding: 10px 15px; /* 调整按钮内边距 */
    font-size: 0.9rem; /* 调整字体大小 */
    flex-shrink: 0; /* 防止按钮被压缩 */
    white-space: nowrap; /* 防止文字换行 */
}


/* 兑换反馈信息样式 */
.redemption-feedback {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 1.2em; /* 保证有高度，避免跳动 */
    text-align: center;
    transition: color 0.3s ease;
}

.redemption-feedback.success {
    color: var(--success-color); /* 绿色表示成功 */
    font-weight: 500;
}

.redemption-feedback.error {
    color: var(--error-color); /* 红色表示失败 */
    font-weight: 500;
}

/* 调整一下 modal-content 的最大宽度，如果需要的话 */
.modal-content {
    max-width: 450px; /* 可以稍微调整宽度以适应新布局 */
}

/* 按钮基础样式 (如果项目没有统一的 btn 类，可以补充) */
.btn {
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex; /* 让图标和文字居中 */
    align-items: center;
    justify-content: center;
    gap: 8px; /* 图标和文字间距 */
}
.btn-primary { /* 定义一个主按钮样式 */
     background: linear-gradient(135deg, #49a0ff, #36f9f6);
     color: var(--text-color);
     border-radius: 25px; /* 圆角大一点 */
     box-shadow: 0 5px 15px rgba(54, 249, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(54, 249, 246, 0.5);
    transform: translateY(-2px);
}
.btn-large { /* 定义一个大按钮样式 */
    padding: 12px 25px;
    font-size: 1rem;
}

