* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,215,0,0.05)"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 左侧导航布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 260px;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    box-shadow: 4px 0 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 2px solid #FFD700;
}

.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-bottom: 3px solid #000;
}

.sidebar-header h2 {
    color: #000;
    font-size: 24px;
    text-align: center;
    margin: 0;
    font-weight: bold;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav a {
    display: block;
    padding: 15px 25px;
    color: #FFD700;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: #FFD700;
    padding-left: 30px;
}

.sidebar-nav a.active {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.25), transparent);
    border-left-color: #FFD700;
    color: #FFF;
    font-weight: bold;
}

.sidebar-footer {
    padding: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.sidebar-footer a {
    display: block;
    padding: 12px;
    text-align: center;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.sidebar-footer a:hover {
    background: #FFD700;
    color: #000;
}

.btn-view {
    background: rgba(34, 139, 34, 0.2) !important;
    border-color: #90EE90 !important;
    color: #90EE90 !important;
}

.btn-view:hover {
    background: #90EE90 !important;
    color: #000 !important;
}

.btn-logout {
    background: rgba(220, 20, 60, 0.2) !important;
    border-color: #FF6B6B !important;
    color: #FF6B6B !important;
}

.btn-logout:hover {
    background: #FF6B6B !important;
    color: #FFF !important;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 2px #FFD700;
    position: relative;
    z-index: 1;
    border: 3px solid #000;
}

h1 {
    color: #FFD700;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 3px solid #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

h2 {
    color: #FFD700;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(to right, rgba(255,215,0,0.2), transparent);
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    border-left: 5px solid #FFD700;
}

h3 {
    color: #FFD700;
    margin: 20px 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.message {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
    border: 2px solid #000;
}

.section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,215,0,0.3);
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 3px solid #FFD700;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.stat-label {
    color: #FFD700;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: bold;
}

.stat-value {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* 资金显示 */
.fund-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
    border-radius: 10px;
    border: 3px solid #FFD700;
}

.fund-amount {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.fund-update {
    font-size: 14px;
    color: #999;
}

.fund-display-large {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
    border-radius: 15px;
    border: 4px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.fund-amount-large {
    font-size: 56px;
    font-weight: bold;
    color: #FFD700;
    display: block;
    text-shadow: 0 0 20px rgba(255,215,0,0.8);
}

/* 表单样式 */
form {
    margin-bottom: 20px;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
select,
textarea {
    padding: 12px 15px;
    border: 2px solid #FFD700;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 10px;
    background: #1a1a1a;
    color: #FFD700;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
    background: #000;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
select {
    min-width: 150px;
}

textarea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

input[type="checkbox"] {
    margin-right: 5px;
}

button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: 2px solid #FFD700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255,215,0,0.3);
}

button:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,215,0,0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: #FFD700;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #B22222, #DC143C);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 2px solid #FFD700;
}

thead {
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #FFD700;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    color: #ddd;
}

th {
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;
    color: #FFD700;
}

tbody tr {
    transition: all 0.3s;
}

tbody tr:hover {
    background: rgba(255,215,0,0.1);
    transform: scale(1.01);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status-received {
    color: #90EE90;
    font-weight: bold;
    background: rgba(144,238,144,0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.status-pending {
    color: #FFA500;
    font-weight: bold;
    background: rgba(255,165,0,0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

/* 金额样式 */
.amount-positive {
    color: #90EE90;
    font-weight: bold;
}

.amount-negative {
    color: #FF6B6B;
    font-weight: bold;
}

/* 成员战利品记录 */
.member-loot {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 10px;
    border-left: 5px solid #FFD700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.summary-row {
    background: linear-gradient(to right, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
    font-weight: bold;
    color: #FFD700;
}

.summary-row td {
    padding: 18px 15px;
}

/* BOSS记录 */
.boss-record {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 10px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.boss-record p {
    color: #ddd;
    margin: 8px 0;
}

/* 帮规弹窗样式 */
.rules-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.rules-modal.active {
    display: flex;
}

.rules-content {
    background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 3px #FFD700, 0 0 0 6px #000;
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-content h2 {
    margin-top: 0;
    text-align: center;
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.rules-text {
    white-space: pre-wrap;
    line-height: 2;
    margin: 25px 0;
    color: #ddd;
    font-size: 16px;
    padding: 25px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.rules-actions {
    text-align: center;
    margin-top: 30px;
}

.rules-actions button {
    padding: 15px 50px;
    font-size: 18px;
    cursor: pointer;
    border: 3px solid #FFD700;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

.rules-actions button:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.6);
}

/* 登录页面样式 */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 3px #FFD700, 0 0 0 6px #000;
    position: relative;
    z-index: 1;
}

.login-container h1 {
    font-size: 32px;
    margin-bottom: 40px;
    border: none;
    text-align: center;
    color: #FFD700;
}

.login-form input {
    width: 100%;
    margin-bottom: 20px;
}

.login-form button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.error-message {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: #FFD700;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #FFD700;
}

.footer {
    text-align: center;
    margin-top: 30px;
}

.footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #FFD700;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s;
}

.footer a:hover {
    background: #FFD700;
    color: #000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="datetime-local"],
    select {
        min-width: 100px;
        margin-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-content {
        padding: 25px;
        max-width: 90%;
    }
    
    .fund-amount-large {
        font-size: 36px;
    }
}
