* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a1afc9;
    --primary-dark: #7b8fa1;
    --primary-light: #d0d9e6;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideIn 0.5s ease-in-out;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 2px;
}

form {
    display: grid;
    gap: 20px;
    animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    position: relative;
    animation: fadeInUp 0.6s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }
.form-group:nth-child(9) { animation-delay: 0.9s; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(161, 175, 201, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

input[type="file"] {
    border-style: dashed;
    background: var(--bg-light);
}

input[type="file"]:hover {
    background: var(--primary-light);
}

input[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-in-out 1s both;
}

input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(161, 175, 201, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 5px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 15px;
        margin: 5px;
        border-radius: 8px;
        animation: none;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        justify-items: stretch;
    }
    
    .stat-card {
        padding: 8px;
        min-height: auto;
        min-width: 90px;
        transform: scale(1);
        transition: all 0.3s ease;
    }
    
    .stat-card h3 {
        font-size: 0.7rem;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stat-card .stat-value {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .admin-nav {
        height: auto;
    }
    
    .admin-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 2px;
        justify-content: flex-start;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        overflow-y: hidden;
        align-items: flex-end;
        min-height: 35px;
        padding: 0;
    }
    
    .admin-nav li {
        position: relative;
        display: inline-block;
        top: 0;
    }
    
    .admin-nav a {
        padding: 6px 10px;
        font-size: 0.65rem;
        white-space: nowrap;
        min-width: auto;
        max-width: 100px;
        transform: none;
        position: relative;
        bottom: -2px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.75rem;
        min-width: 300px;
    }
    
    th, td {
        padding: 8px 6px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 移动端订单列表只显示指定列 */
    table th:nth-child(n+6),
    table td:nth-child(n+6):not(:last-child) {
        display: none;
    }
    
    /* 确保操作按钮列始终显示 */
    table th:last-child,
    table td:last-child {
        display: table-cell !important;
        min-width: 80px;
        text-align: center;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-bottom: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .player-stat-card {
        padding: 20px;
    }
    
    .player-stat-card .amount {
        font-size: 1.8rem;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="file"],
    select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    input[type="submit"] {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-detail,
    .btn-delete {
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-right: 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 12px;
        margin: 5px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .stat-card {
        padding: 10px;
        min-height: auto;
    }
    
    .stat-card h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
    
    .admin-nav {
        height: auto;
    }
    
    .admin-nav ul {
        gap: 2px;
        justify-content: flex-start;
        padding: 0;
        overflow-y: hidden;
        align-items: flex-end;
        min-height: 30px;
    }
    
    .admin-nav li {
        position: relative;
        display: inline-block;
        top: 0;
    }
    
    .admin-nav a {
        padding: 5px 8px;
        font-size: 0.6rem;
        white-space: nowrap;
        max-width: 90px;
        transform: none;
        position: relative;
        bottom: -2px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="file"],
    select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    input[type="submit"] {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    table {
        font-size: 0.75rem;
        min-width: 500px;
    }
    
    th, td {
        padding: 6px 8px !important;
    }
}

/* 成功/错误消息样式 */
.message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-weight: 600;
    animation: slideIn 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #c6f6d5;
}

.error {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #fed7d7;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(161, 175, 201, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表单验证样式 */
.input-error {
    border-color: #fc8181 !important;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1) !important;
}

.error-text {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 6px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* 数字输入框样式 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* 卡片样式 */
.stat-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
    flex: 1;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.5s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(161, 175, 201, 0.3);
    background: var(--primary-dark);
}

.stat-card h3 {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-in-out;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--primary-light);
    transition: var(--transition);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr {
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-in-out;
}

tr:hover {
    background: var(--bg-light);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(161, 175, 201, 0.1);
}

td a {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(161, 175, 201, 0.2);
}

td a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 175, 201, 0.3);
}

td button {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2);
}

td button:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* 统计卡片样式 */
.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.6s ease-in-out;
}

.player-stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.player-stat-card:nth-child(1) { animation-delay: 0.2s; }
.player-stat-card:nth-child(2) { animation-delay: 0.3s; }
.player-stat-card:nth-child(3) { animation-delay: 0.4s; }
.player-stat-card:nth-child(4) { animation-delay: 0.5s; }
.player-stat-card:nth-child(5) { animation-delay: 0.6s; }

.player-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(161, 175, 201, 0.2);
    border-left-color: var(--primary-dark);
}

.player-stat-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.player-stat-card .amount {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.player-stat-card .count {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* 头部样式 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    animation: fadeInUp 0.6s ease-in-out;
}

.logout-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow);
}

.logout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(161, 175, 201, 0.25);
}

.back-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow);
    display: inline-block;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(161, 175, 201, 0.25);
}

/* 详情页面样式 */
.detail-container {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-in-out;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    animation: fadeInUp 0.6s ease-in-out;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-in-out;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-dark);
    align-self: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.screenshot-container {
    margin-top: 35px;
    text-align: center;
    animation: fadeInUp 0.6s ease-in-out;
}

.screenshot {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid var(--primary-light);
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(161, 175, 201, 0.25);
    border-color: var(--primary-color);
}

.delete-btn {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
    font-family: inherit;
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.25);
}

.delete-btn:hover {
    background: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 62, 62, 0.35);
}

/* 统计网格样式 */
.stats-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    animation: fadeInUp 0.6s ease-in-out;
}

/* 消息动画 */
.message {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 选择框样式 */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1afc9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    appearance: none;
}

/* 输入框聚焦动画 */
.form-group {
    transition: var(--transition);
}

.form-group:hover label {
    color: var(--primary-dark);
    transform: translateX(5px);
}

label {
    transition: var(--transition);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    animation: fadeInUp 0.6s ease-in-out;
}

.tab-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-light);
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(161, 175, 201, 0.3);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* 管理员导航菜单 */
.admin-nav {
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-in-out;
    width: 100%;
    position: relative;
    overflow: visible;
    height: auto;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
    border-bottom: 2px solid var(--primary-light);
    margin: 0;
    padding: 0 0 0 0;
    overflow-y: hidden;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    min-height: 40px;
}

.admin-nav li {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

.admin-nav a {
    display: block;
    padding: 10px 16px;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px 12px 0 0;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-light);
    border-bottom: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    position: relative;
    bottom: -2px;
    transform-origin: bottom;
    line-height: 1.2;
}

.admin-nav a:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(161, 175, 201, 0.2);
}

.admin-nav a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(161, 175, 201, 0.3);
}

/* 确保所有页面容器样式正确 */
.container {
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

/* 确保所有统计页面样式一致 */
.section {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 确保所有表格样式正确 */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--primary-light);
    transition: var(--transition);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: var(--bg-light);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(161, 175, 201, 0.1);
}

/* 确保陪玩统计卡片样式正确 */
.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.6s ease-in-out;
}

.player-stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-in-out;
    opacity: 1;
}

.player-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(161, 175, 201, 0.2);
    border-left-color: var(--primary-dark);
}

.player-stat-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.player-stat-card .amount {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.player-stat-card .count {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* 按钮样式 */
.btn-detail {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(161, 175, 201, 0.2);
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 175, 201, 0.3);
}

.btn-delete {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2);
}

.btn-delete:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}