/* 全局样式 */
:root {
    --primary-color: #2c3e50;  /* 深蓝灰色 */
    --secondary-color: #3498db;  /* 亮蓝色 */
    --accent-color: #e74c3c;  /* 红色 */
    --success-color: #2ecc71;  /* 绿色 */
    --warning-color: #f1c40f;  /* 黄色 */
    --danger-color: #e74c3c;  /* 红色 */
    --info-color: #3498db;  /* 蓝色 */
    --light-color: #ecf0f1;  /* 浅灰色 */
    --dark-color: #2c3e50;  /* 深色 */
    --text-color: #2c3e50;  /* 文字颜色 */
    --border-color: #bdc3c7;  /* 边框颜色 */
    --bg-color: #f8f9fa;  /* 背景色 */
    --card-bg: #ffffff;  /* 卡片背景色 */
    --hover-color: #34495e;  /* 悬停颜色 */
    --shadow-color: rgba(0, 0, 0, 0.1);  /* 阴影颜色 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 导航栏样式 */
.navbar {
    background-color: var(--card-bg) !important;
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.25rem;
}

.nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* 表单样式 */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

.table th {
    font-weight: 600;
    background-color: var(--light-color);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    white-space: normal;
    word-break: break-word;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

/* 设置各列的宽度 */
.table th:nth-child(1), /* ID列 */
.table td:nth-child(1) {
    width: 60px;
}

.table th:nth-child(2), /* 订单号列 */
.table td:nth-child(2) {
    width: 200px;
}

.table th:nth-child(3), /* 游戏账号列 */
.table td:nth-child(3) {
    width: 180px;
}

.table th:nth-child(4), /* 金额列 */
.table td:nth-child(4) {
    width: 100px;
}

.table th:nth-child(5), /* 支付方式列 */
.table td:nth-child(5) {
    width: 120px;
}

.table th:nth-child(6), /* 状态列 */
.table td:nth-child(6) {
    width: 100px;
}

.table th:nth-child(7), /* 时间列 */
.table td:nth-child(7) {
    width: 180px;
}

.table th:nth-child(8), /* 操作列 */
.table td:nth-child(8) {
    width: 120px;
}

/* 表格容器样式 */
.table-responsive {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    overflow-x: auto;
}

/* 表格悬停效果 */
.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* 表格边框样式 */
.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

/* 表格条纹样式 */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 表格紧凑模式 */
.table-sm th,
.table-sm td {
    padding: 0.5rem;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--hover-color);
    background-color: var(--light-color);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 提示框样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

/* 徽章样式 */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

.badge.bg-primary {
    background-color: var(--secondary-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 0.5rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
    }
    
    /* 移动端下调整列宽 */
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 50px;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 160px;
    }
    
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 140px;
    }
    
    .table th:nth-child(4),
    .table td:nth-child(4) {
        width: 80px;
    }
    
    .table th:nth-child(5),
    .table td:nth-child(5) {
        width: 100px;
    }
    
    .table th:nth-child(6),
    .table td:nth-child(6) {
        width: 80px;
    }
    
    .table th:nth-child(7),
    .table td:nth-child(7) {
        width: 160px;
    }
    
    .table th:nth-child(8),
    .table td:nth-child(8) {
        width: 100px;
    }
}

/* 动画效果 */
.fade {
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* 工具类 */
.shadow-sm {
    box-shadow: 0 2px 4px var(--shadow-color) !important;
}

.shadow {
    box-shadow: 0 4px 6px var(--shadow-color) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px var(--shadow-color) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 签到日历样式 */
.calendar-body {
    background: #fff;
    border-radius: 16px;
    padding: 18px 10px 14px 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    margin: 0 auto;
    max-width: 340px;
    min-width: 300px;
}

.calendar-header {
    font-size: 1.25em;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.calendar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.calendar-cell.header {
    font-weight: bold;
    color: #0d6efd;
    background: none;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.calendar-cell {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    font-size: 1em;
    color: #444;
    background: #f7f8fa;
    margin: 1px 0;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
    cursor: pointer;
    box-shadow: none;
}

.calendar-cell:hover:not(.empty) {
    box-shadow: 0 2px 8px rgba(13,110,253,0.10);
    background: #eaf4ff;
    z-index: 2;
}

.calendar-cell.weekend {
    color: #e74c3c !important;
    font-weight: bold;
}

.calendar-cell.today {
    background: linear-gradient(135deg, #ffe082 60%, #fffbe6 100%);
    color: #d17b00;
    font-weight: bold;
    border: 2px solid #ffd54f;
    box-shadow: 0 0 0 2px #ffe08255;
}

.calendar-cell .reward-mark {
    font-size: 0.85em;
    color: #fff;
    background: linear-gradient(135deg, #ff9800 60%, #ffd700 100%);
    border-radius: 50%;
    padding: 2px 7px;
    position: absolute;
    top: 2px;
    right: 2px;
    font-weight: bold;
    box-shadow: 0 2px 6px #ffd70055;
    border: 1.5px solid #fffbe6;
    letter-spacing: 1px;
    animation: reward-bounce 1.2s infinite alternate;
}

@keyframes reward-bounce {
    0% { transform: scale(1) translateY(0); }
    60% { transform: scale(1.12) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

.calendar-cell.past {
    opacity: 0.45;
}

.calendar-cell.future {
    color: #bbb;
    background: #f3f3f3;
}

.calendar-cell.empty {
    background: transparent;
    color: transparent;
    pointer-events: none;
    box-shadow: none;
}

/* 签到按钮蓝色主风格（参考.btn-primary） */
.checkin-btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.checkin-btn {
  flex: 1 1 0;
  background: var(--secondary-color);
  border: none;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 110px;
  max-width: 180px;
  height: 40px;
  box-shadow: 0 2px 6px rgba(52,152,219,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  white-space: nowrap;
}
.checkin-btn i {
  font-size: 1.2em;
  margin-bottom: 0;
}
.checkin-btn:disabled, .checkin-btn.checked {
  background: #e9ecef;
  color: #b0b0b0;
  box-shadow: none;
  cursor: not-allowed;
}
.checkin-btn.reward:disabled {
  background: #e9ecef;
  color: #b0b0b0;
}
.checkin-btn:not(:disabled):hover {
  background: var(--hover-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52,152,219,0.13);
}
@media (max-width: 600px) {
  .checkin-btn-group { gap: 6px; }
  .checkin-btn { font-size: 0.95rem; min-width: 90px; max-width: 120px; height: 36px; padding: 0.4rem 0.5rem; }
} 