/**
 * 通用样式文件
 * 整合所有页面的CSS样式
 */

/* ==============================================
   基础样式重置和通用设置
   ============================================== */

/* 首页按钮专用样式 */
.index-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

/* 桌面端横向排列 */
@media (min-width: 576px) {
    .index-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* 手机端按钮优化 */
@media (max-width: 575px) {
    .index-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
        padding: 0.8rem 1.5rem; /* 减小内边距 */
        font-size: 1rem; /* 减小字体 */
        font-weight: 600;
    }
}

/* 管理员登录按钮移动端触摸优化 */
#adminLoginBtn {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

/* 防止移动端长按选择 */
#adminLoginBtn::-moz-selection {
    background: transparent;
}

#adminLoginBtn::selection {
    background: transparent;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* 抽奖页面专用body布局 */
body.lottery-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background-color: #f8f9fa;
    color: #343a40;
}

/* 仅隐藏侧边栏中的“账户管理”菜单项，不影响右上角下拉 */
.sidebar a.nav-link[href*="/admin/account-management"],
.sidebar a.nav-link[href*="admin_account_management"],
.sidebar a.nav-link[href*="admin%2Faccount-management"] {
    display: none !important;
}

/* 通用输入元素样式 */
body, button, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==============================================
   页面头部样式 (从dzzb之前版本移植) 
   ============================================== */

.header {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* ==============================================
   基础布局样式 (从dzzb之前版本移植)
   ============================================== */

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ==============================================
   管理员侧边栏样式
   ============================================== */

.sidebar {
    background: #343a40;
    min-height: 100vh;
    padding: 0;
    color: #fff;
    transition: var(--transition);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: scroll; /* 滚动条始终显示，避免抖动 */
    overflow-x: hidden; /* 防止横向滚动 */
    max-height: 100vh; /* 限制最大高度 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scrollbar-gutter: stable; /* 保留滚动条空间 */
}

.logo-area {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #495057;
    text-align: center;
    background: linear-gradient(135deg, #495057, #343a40);
}

.logo-area h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.logo-area p {
    margin: 0;
    font-size: 0.85rem;
    color: #adb5bd;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--primary-color);
    font-weight: 500;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.sidebar .btn-outline-light {
    border-color: #6c757d;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.sidebar .btn-outline-light:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    transform: translateY(-2px);
}

/* ==============================================
   管理员页脚样式
   ============================================== */

.admin-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
    padding: 2rem 0;
}

.admin-footer .badge {
    font-size: 0.7rem;
    padding: 0.5em 0.75em;
}

.admin-footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-footer small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ==============================================
   主内容区样式
   ============================================== */

.main-header {
    background: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.content-wrapper {
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

/* ==============================================
   卡片和组件样式
   ============================================== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

/* ==============================================
   表单样式
   ============================================== */

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 统一输入框和选择框样式 */
.form-control, .form-select {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-height: calc(1.5em + 0.75rem + 2px);
    height: calc(1.5em + 0.75rem + 2px);
}

/* 选择框特殊样式 */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

/* 大尺寸输入框统一 */
.form-control-lg, .form-select-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    min-height: calc(1.5em + 1rem + 2px);
    height: calc(1.5em + 1rem + 2px);
}

.form-select-lg {
    padding-right: 3rem;
    background-position: right 1rem center;
}

/* 小尺寸输入框统一 */
.form-control-sm, .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    min-height: calc(1.5em + 0.5rem + 2px);
    height: calc(1.5em + 0.5rem + 2px);
}

.form-select-sm {
    padding-right: 1.75rem;
    background-position: right 0.5rem center;
    background-size: 12px 9px;
}

/* 特定页面输入框统一 */
/* 充值页面 */
.recharge-page .form-control,
.recharge-page .form-select,
/* 登录注册页面 */
.login-page .form-control,
.login-page .form-select,
.register-page .form-control,
.register-page .form-select,
/* 管理员页面 */
.admin-page .form-control,
.admin-page .form-select,
/* 抽奖页面 */
.lottery-page .form-control,
.lottery-page .form-select {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    min-height: calc(1.5em + 0.75rem + 2px);
    height: calc(1.5em + 0.75rem + 2px);
}

/* 确保选择框的箭头位置正确 */
.recharge-page .form-select,
.login-page .form-select,
.register-page .form-select,
.admin-page .form-select,
.lottery-page .form-select {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* 错误样式 */
.error {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    background-color: #3498db;
    border-color: #3498db;
}

/* 只在表单页面使用全宽按钮 */
.form-container .btn-primary {
    width: 100%;
}

/* 状态栏按钮不使用全宽 - 提高优先级 */
.form-container .status-actions .btn,
.form-container .status-actions .d-flex .btn {
    width: auto !important;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.form-container .status-actions .btn-primary,
.form-container .status-actions .d-flex .btn-primary {
    width: auto !important;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.form-container .status-actions .btn-success,
.form-container .status-actions .d-flex .btn-success {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.form-container .status-actions .btn-warning,
.form-container .status-actions .d-flex .btn-warning {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.form-container .status-actions .btn-info,
.form-container .status-actions .d-flex .btn-info {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.form-container .status-actions .btn-danger,
.form-container .status-actions .d-flex .btn-danger {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: #212529;
}

/* ==============================================
   抽奖页面样式
   ============================================== */

.lottery-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.lottery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.lottery-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lottery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.lottery-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.lottery-btn:hover:before {
    left: 100%;
}

/* 进度条样式 */
.progress {
    height: 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 15px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* 已合并到统一样式 */

/* ==============================================
   表格样式
   ============================================== */

.table {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: var(--dark-color);
    color: #fff;
    border: none;
    font-weight: 500;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border-color: #e9ecef;
}

/* ==============================================
   模态框样式
   ============================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--primary-color);
    color: #fff;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ==============================================
   签到页面样式
   ============================================== */

.checkin-calendar {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.calendar-day {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    transition: var(--transition);
    cursor: pointer;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

.calendar-day:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.calendar-day.checked {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: #fff;
    border-color: var(--success-color);
}

.calendar-day.current {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==============================================
   徽章和标签样式
   ============================================== */

.badge {
    border-radius: 50px;
    padding: 0.5em 1em;
    font-weight: 500;
}

.badge-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
}

.badge-gradient-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
}

.badge-gradient-danger {
    background: linear-gradient(45deg, var(--danger-color), #c82333);
}

/* ==============================================
   动画效果
   ============================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==============================================
   响应式设计
   ============================================== */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        height: 100vh; /* 设置固定高度 */
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: scroll; /* 滚动条始终显示，避免抖动 */
        overflow-x: hidden; /* 防止横向滚动 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
        scrollbar-gutter: stable; /* 保留滚动条空间 */
    }
    
    /* 美化侧边栏滚动条 */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: #495057;
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: #6c757d;
        border-radius: 3px;
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .main-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .lottery-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .lottery-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .calendar-day {
        width: 45px;
        height: 45px;
        margin: 3px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.375rem 0.75rem; /* 减小按钮内边距 */
        font-size: 0.8rem; /* 减小字体 */
        line-height: 1.3;
    }
    
    /* 小按钮进一步优化 */
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    /* 超小按钮 */
    .btn-xs, .btn-sm.btn-outline-secondary, .btn-sm.btn-outline-primary {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
        min-width: 28px;
        height: 28px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    /* 输入框尺寸优化 */
    .form-control {
        padding: 0.375rem 0.5rem; /* 减小内边距 */
        font-size: 0.8rem; /* 减小字体 */
        line-height: 1.3;
        height: auto; /* 自动高度 */
    }
    
    .form-control-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
        line-height: 1.2;
        height: 28px; /* 固定较小高度 */
    }
    
    /* 数量输入框特别优化 */
    .item-quantity-input {
        width: 60px !important; /* 减小宽度 */
        height: 32px !important;
        font-size: 0.75rem !important;
        padding: 0.2rem 0.3rem !important;
        text-align: center !important;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* 文字和标签尺寸优化 */
    .badge {
        font-size: 0.65rem !important;
        padding: 0.25em 0.4em !important;
    }
    
    .small, small {
        font-size: 0.7rem !important;
    }
    
    /* 卡片标题和内容 */
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* 导航栏优化 */
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* 物品列表项优化 */
    .list-group-item {
        padding: 0.75rem !important;
        font-size: 0.8rem;
    }
    
    .list-group-item .fw-bold {
        font-size: 0.85rem;
    }
}

/* ==============================================
   自定义滚动条
   ============================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0056b3, var(--primary-color));
}

/* ==============================================
   实用工具类
   ============================================== */

.text-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.shadow-lg-custom {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.border-radius-custom {
    border-radius: 15px;
}

.transition-custom {
    transition: var(--transition);
}

/* ==============================================
   页面特定样式
   ============================================== */

/* 仪表盘容器 */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 设置卡片 */
.setting-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    transition: var(--transition);
}

.setting-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 统计项目 */
.stats-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
    transition: var(--transition);
}

.stats-item:hover {
    background-color: #e9ecef;
    transform: scale(1.02);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* 抽奖页面样式覆盖 */
.lottery-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.lottery-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.lottery-header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.lottery-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 自定义页面样式 */
.custom-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.attribute-select {
    margin-bottom: 15px;
}

.slot-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    background: #f8f9fa;
    transition: var(--transition);
}

.slot-container:hover {
    border-color: var(--primary-color);
    background: #e7f3ff;
}

.slot-header {
    font-weight: bold;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* 签到页面样式 */
.checkin-container {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    min-height: 100vh;
    padding: 2rem 0;
}

.checkin-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* 登录页面样式 */
.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* 错误页面样式 */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .setting-card {
        padding: 10px;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .lottery-header h1 {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 1.2rem;
    }
}

/* ==============================================
   管理员页面特定样式
   ============================================== */

/* 表格容器 */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: var(--transition);
}

.table-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 搜索框 */
.search-box {
    margin-bottom: 20px;
}

.search-box .form-control {
    border-radius: 25px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 操作按钮 */
.action-buttons .btn {
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* 仪表盘卡片 */
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* 渐变卡片背景 */
.card-bg-1 {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    color: white;
}

.card-bg-2 {
    background: linear-gradient(45deg, #24c6dc, #514a9d);
    color: white;
}

.card-bg-3 {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
}

.card-bg-4 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
}

.card-bg-5 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.card-bg-6 {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
}

/* 统计数字 */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 特权卡状态样式 */
.card-status {
    font-size: 0.85rem;
    line-height: 1.4;
}

.card-status .badge {
    padding: 0.25em 0.4em;
    font-size: 0.75rem;
    margin-bottom: 3px;
    border-radius: 12px;
}

.expiry-date {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

.card-count {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

/* 状态信息布局 */
.status-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* 按钮组操作 */
.btn-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dzd-actions {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.dzd-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
}

/* 表格样式增强 */
.table-responsive {
    border-radius: 10px;
    overflow-x: auto; /* 允许水平滚动 */
    overflow-y: visible;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    width: 100%;
    position: relative;
}

/* 表格滚动指示器 */
.table-responsive::after {
    content: '← 滑动查看更多 →';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    display: none;
}

@media (max-width: 768px) {
    .table-responsive::after {
        display: block;
    }
}

/* 美化表格滚动条 */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.table th {
    background: var(--dark-color);
    color: #fff;
    border: none;
    font-weight: 500;
    padding: 15px 12px;
    font-size: 0.9rem;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: scale(1.001);
}

/* 状态徽章 */
.badge-active {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.badge-inactive {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.badge-expired {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 15px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn-group-actions {
        flex-direction: column;
    }
    
    .dzd-actions {
        flex-direction: column;
    }
    
    .status-actions {
        align-items: flex-start;
        margin-top: 10px;
    }
    
    /* 物品发放标签页手机端优化 */
    .search-container {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .search-input {
        height: 44px;
        font-size: 16px;
        padding-left: 45px;
    }
    
    .search-icon {
        left: 20px;
        font-size: 16px;
    }
    
    /* 物品卡片在手机端的优化 */
    .item-card {
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .item-card .card-body {
        padding: 15px;
    }
    
    .item-card .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .item-card .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-right: 6px;
        margin-bottom: 4px;
    }
    
    .item-card .select-item-btn {
        width: 100%;
        height: 44px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 8px;
        border-radius: 6px;
    }
    
    .item-card .item-cost {
        font-size: 1.1rem;
        font-weight: 700;
        color: #dc3545;
        margin-bottom: 8px;
    }
    
    /* 物品滚动容器手机端优化 */
    .items-container-scroll {
        max-height: 400px;
        padding-right: 5px;
    }
    
    /* 搜索结果信息 */
    .search-results-info {
        font-size: 14px;
        color: #666;
        text-align: center;
        padding: 5px 0;
    }
}

/* ==============================================
   抽奖页面专用样式
   ============================================== */

/* 抽奖页面布局 */
.lottery-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background-color: #f8f9fa;
    color: #343a40;
}

.lottery-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.lottery-header {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

/* 表单容器 */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 状态栏 */
.status-bar {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.status-item {
    margin-bottom: 8px;
}

.status-item:last-child {
    margin-bottom: 0;
}

/* 抽奖卡片布局 */
.lottery-cards-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.lottery-card-item {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lottery-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 抽奖按钮 */
.lottery-btn-main {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 10px 5px;
}

.lottery-btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    color: white;
}

.lottery-btn-main:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 兑换按钮 */
.exchange-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.exchange-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    color: white;
}

/* 奖品模态框 */
.prize-points-modal {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    margin: 20px 0;
}

.prize-item-modal {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin: 20px 0;
}

/* 历史记录样式 */
.history-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

/* 奖品列表 */
.prize-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

/* 移除冲突的prize-item样式 - 这是抽奖页面的样式，不是管理页面的 */

.prize-name {
    font-weight: 500;
}

/* 为了彻底解决问题，我们只保留最基本的prize-item样式，其他全部移除 */

.prize-weight {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 终极大奖显示 */
.ultimate-prize-display {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lottery-cards-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .lottery-btn-main {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .prize-points-modal {
        font-size: 1.5rem;
    }
    
    .prize-item-modal {
        font-size: 1.2rem;
    }
}

/* ==============================================
   增强手机端适配 (小屏幕设备)
   ============================================== */

@media (max-width: 576px) {
    /* 基础布局调整 */
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 侧边栏适配 */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: scroll; /* 滚动条始终显示，避免抖动 */
        overflow-x: hidden; /* 防止横向滚动 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
        scrollbar-gutter: stable; /* 保留滚动条空间 */
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* 添加汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1051;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        font-size: 1.2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background: var(--secondary-color);
        transform: scale(1.1);
    }
    
    /* 表格响应式 */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 8px 4px;
        white-space: nowrap;
    }
    
    /* 卡片适配 */
    .dashboard-card {
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* 按钮适配 */
    .btn {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .btn-group-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .dzd-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    /* 表单适配 */
    .form-container {
        padding: 15px;
        margin: 5px;
    }
    
    .form-control {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 抽奖页面适配 */
    .lottery-header h1 {
        font-size: 1.8rem;
    }
    
    .lottery-cards-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .lottery-card-item {
        padding: 15px;
    }
    
    .lottery-btn-main {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
        font-size: 1rem;
    }
    
    .exchange-btn {
        width: 100%;
        margin: 3px 0;
    }
    
    /* 模态框适配 */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .prize-content {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .prize-icon {
        font-size: 3rem;
    }
    
    .prize-name-modal {
        font-size: 1rem;
    }
    
    .prize-points-modal {
        font-size: 1.3rem;
    }
    
    /* 错误页面适配 */
    .error-code {
        font-size: 3rem;
    }
    
    .error-message {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .error-card {
        padding: 2rem 1rem;
        margin: 10px;
    }
    
    /* 登录页面适配 */
    .login-card {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    /* 签到页面适配 */
    .checkin-card {
        padding: 1.5rem 1rem;
        margin: 10px;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 35px;
        font-size: 0.8rem;
    }
    
    /* 进度条适配 */
    .progress {
        height: 20px;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
    
    /* 历史记录适配 */
    .history-section {
        padding: 15px;
        margin: 10px 0;
    }
    
    .history-item {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* 搜索框适配 */
    .search-box .form-control {
        padding: 10px 15px;
    }
    
    /* 状态徽章适配 */
    .badge {
        font-size: 0.7rem;
        padding: 0.25em 0.5em;
    }
    
    /* 导航适配 */
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* 超小屏幕设备适配 (320px-480px) */
@media (max-width: 480px) {
    /* 基础字体调整 */
    body {
        font-size: 13px; /* 进一步减小基础字体 */
    }
    
    /* 标题适配 */
    h1 { font-size: 1.4rem; } /* 减小标题字体 */
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.9rem; }
    h5 { font-size: 0.8rem; }
    
    /* 容器适配 */
    .container, .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* 卡片进一步压缩 */
    .dashboard-card, .card {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    /* 按钮进一步压缩 */
    .btn {
        padding: 5px 8px; /* 进一步减小内边距 */
        font-size: 0.75rem; /* 进一步减小字体 */
        line-height: 1.2;
    }
    
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    /* 表格进一步压缩 */
    .table {
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 6px 2px;
    }
    
    /* 抽奖按钮适配 */
    .lottery-btn-main {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* 模态框进一步压缩 */
    .prize-content {
        padding: 15px 10px;
    }
    
    .prize-icon {
        font-size: 2.5rem;
    }
    
    /* 错误页面进一步压缩 */
    .error-code {
        font-size: 2.5rem;
    }
    
    .error-card {
        padding: 1.5rem 0.8rem;
    }
    
    /* 抽奖管理页面超小屏适配 */
    .prize-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .prize-item .form-control {
        height: 40px;
        font-size: 14px;
    }
    
    .prize-item .form-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .prize-item .btn-danger {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
    
    .prize-item .form-check-input {
        width: 1.8rem;
        height: 1rem;
    }
    
    /* 导航标签超小屏适配 */
    .nav-tabs .nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    /* 抽奖卡片超小屏适配 */
    .lottery-card {
        width: 110px !important;
        height: 150px !important;
    }
    
    .card-icon {
        font-size: 35px !important;
    }
    
    .card-title {
        font-size: 0.75rem !important;
    }
    
    /* 自定义页面超小屏适配 */
    .repair-task-btn {
        width: auto !important; /* 改为自动宽度 */
        min-width: 100px !important; /* 设置最小宽度 */
        max-width: 180px !important; /* 设置最大宽度 */
        height: 36px !important;
        margin-bottom: 6px;
        font-size: 0.75rem !important;
        padding: 6px 12px !important; /* 合适的内边距 */
    }
    
    /* 超小屏物品控制优化 */
    #selected-items .list-group-item {
        min-width: 280px !important; /* 超小屏适当减小最小宽度 */
    }
    
    #selected-items .d-flex.align-items-center.me-3 {
        padding: 8px !important;
        gap: 8px !important;
        min-width: 240px !important; /* 超小屏适当减小控制区域宽度 */
    }
    
    #selected-items .decrease-btn,
    #selected-items .increase-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    #selected-items .item-quantity-input {
        width: 45px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    #selected-items .remove-item-btn {
        width: 24px !important;
        height: 24px !important;
        top: 8px !important;
        right: 8px !important;
        font-size: 10px !important;
    }
    
    
    /* 超小屏滚动提示样式调整 */
    #selected-items::after {
        font-size: 10px !important;
        padding: 3px !important;
    }
    
    /* 签到页面超小屏适配 */
    .day {
        height: 45px !important;
        font-size: 0.7rem;
    }
    
    .day-number {
        font-size: 0.75rem !important;
    }
    
    .reward {
        font-size: 0.55rem !important;
    }
}

/* 横屏模式适配 */
@media (max-height: 500px) and (orientation: landscape) {
    /* 减少垂直空间占用 */
    .sidebar {
        padding-top: 10px;
    }
    
    .logo-area {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .sidebar .nav-link {
        padding: 8px 20px;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .modal-dialog {
        margin: 5px auto;
    }
    
    .prize-content {
        padding: 15px;
    }
    
    .error-card {
        padding: 1.5rem;
    }
}

/* ==============================================
   抽奖页面专用样式 (从dzzb之前版本移植)
   ============================================== */

/* 抽奖页面基础布局 */
.lottery-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background-color: #f8f9fa;
    color: #343a40;
}

.lottery-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

/* 抽奖卡片容器 */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* 抽奖卡片样式 */
.lottery-card {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
}

.lottery-card.flipped {
    transform: rotateY(180deg);
}

.lottery-card.loading .card-back {
    background: linear-gradient(135deg, #2c3e50, #4a5568);
}

.lottery-card .card-front,
.lottery-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 12px;
}

.lottery-card .card-front {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.lottery-card .card-back {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #333;
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-hint {
    position: absolute;
    bottom: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.prize-result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    color: #e74c3c;
}

.flipped-countdown {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* 抽奖状态栏样式 */
.status-bar {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.dzd-balance {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
}

.chances-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* 兑换按钮样式 */
.exchange-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.exchange-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
    color: white;
}

/* 进度条区域 */
.progress-area {
    background-color: #f1f8ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.progress-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 奖品容器样式 */
.prize-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-container {
    max-height: 350px;
    overflow-y: auto;
}

.prize-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    height: 100%;
    position: relative;
}

.prize-header {
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.prize-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.prize-points {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
}

.history-item {
    border-left: 3px solid #3498db;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 中奖弹窗样式 */
.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.prize-modal.active {
    opacity: 1;
    visibility: visible;
}

.prize-content {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.prize-modal.active .prize-content {
    transform: translateY(0);
}

.prize-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.prize-icon {
    font-size: 80px;
    margin: 20px 0;
    color: #ffcc00;
    text-shadow: 0 0 15px rgba(255,204,0,0.5);
    animation: pulse 1.5s infinite;
}

.prize-name-modal {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.prize-points-modal {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chances-info {
    background-color: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.confirm-btn {
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255,87,34,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,87,34,0.5);
    color: white;
}

/* 中奖动画 */
.prize-result-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #ffcc00;
    opacity: 0;
    display: none;
    z-index: 10;
    pointer-events: none;
}

/* 加载动画 */
.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

/* 动画定义 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes resultAnimation {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); display: block; }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); display: none; }
}

/* 抽奖页面响应式设计 */
@media (max-width: 768px) {
    .cards-container {
        gap: 15px;
    }
    .lottery-card {
        width: 150px;
        height: 200px;
    }
    .card-icon {
        font-size: 50px;
    }
    .card-title {
        font-size: 18px;
    }
    .prize-content h3 {
        font-size: 2rem;
    }
    .prize-icon {
        font-size: 60px;
    }
    .prize-name-modal {
        font-size: 1.5rem;
    }
    .prize-points-modal {
        font-size: 1.8rem;
    }
}

/* 签到页面响应式设计增强 */
@media (max-width: 768px) {
    .day {
        height: 60px;
    }
    .day-number {
        font-size: 0.9rem;
    }
    .reward {
        font-size: 0.65rem;
    }
    .calendar-header {
        font-size: 0.75rem;
    }
    .btn-signin {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* 状态栏移动端布局 */
    .status-bar > div {
        width: 100%;
        margin-bottom: 10px;
    }
    .status-bar > div.text-end {
        text-align: left !important;
    }
}

/* 日历自适应调整 */
@media (max-width: 400px) {
    .day {
        height: 50px;
    }
    .day-number {
        margin-bottom: 3px;
    }
}

/* 响应式网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* 页面标题容器 */
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
}

/* 终极大奖信息样式 */
.ultimate-prize-info {
    margin-top: 15px;
}

/* ==============================================
   抽奖页面标签页样式 (从dzzb之前版本移植)
   ============================================== */

/* 标签页导航样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 25px 25px 0 0;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    border: none;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #0d6efd;
}

/* 标签页内容样式 */
.tab-content {
    padding: 30px 0;
}

.tab-pane {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   抽奖奖品展示样式 (从dzzb之前版本移植)
   ============================================== */

.prize-probability {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.no-prizes-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-prizes-message i {
    color: #dee2e6;
}

/* 进度条增强样式 */
.progress-points {
    font-weight: bold;
    color: #e74c3c;
}

.progress-text {
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 返回按钮样式 */
.return-button {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.return-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    background: linear-gradient(135deg, #495057, #343a40);
}

/* 徽章样式增强 */
.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #000;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #20c997) !important;
}

/* ==============================================
   终极大奖特殊样式 (从dzzb之前版本移植)
   ============================================== */

.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    position: relative;
}

.border-warning::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    border-radius: inherit;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    }
}

/* 文本颜色辅助类 */
.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ==============================================
   定制页面专用样式 (从dzzb之前版本移植)
   ============================================== */

/* 状态信息和操作区域 */
.status-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* 确认模态框样式 */
.confirmation-modal .modal-header {
    background-color: #3498db;
    color: white;
}

.confirmation-modal .icon-container {
    width: 60px;
    height: 60px;
    background-color: #3498db30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.confirmation-modal .icon-container i {
    font-size: 24px;
    color: #3498db;
}

.confirmation-modal .modal-body {
    text-align: center;
    padding: 20px 30px;
}

.confirmation-modal .modal-footer {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

.confirmation-modal .btn-cancel {
    background-color: #6c757d;
    border-color: #6c757d;
}

.confirmation-modal .btn-confirm {
    background-color: #3498db;
    border-color: #3498db;
}

/* 物品卡片样式 */
.item-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-card.selected {
    border: 2px solid #0d6efd;
    background-color: #f0f8ff;
}

.item-cost {
    font-weight: bold;
    color: #e74c3c;
}

/* 功能卡片样式 */
.function-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 修复任务卡片样式 */
#repair-tasks .card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#repair-tasks .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

#repair-tasks .card-body {
    padding: 2rem 1.5rem;
}

#repair-tasks .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #212529;
}

#repair-tasks .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* 修复任务按钮优化 */
.repair-task-btn {
    border-radius: 8px;
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    border: none;
    transition: all 0.3s ease;
    min-width: 120px;
    width: 120px !important;
    height: 40px !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.repair-task-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 修复任务图标优化 */
#repair-tasks .fas {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

#repair-tasks .card:hover .fas {
    transform: scale(1.1);
}

/* 修复任务消耗点数样式 */
#repair-tasks .text-danger.small {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 1rem 0;
    font-weight: 600;
    display: inline-block;
}

/* 修复任务标题区域 */
#repair-tasks h4 {
    color: #212529;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#repair-tasks .text-muted {
    background: #e3f2fd;
    border-left: 4px solid #0d6efd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 已选物品区域优化 */
.summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.summary-card h4 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 8px;
}

.summary-card .total-cost {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.2rem;
}

.summary-card .dzd-balance {
    color: #0d6efd;
    font-weight: 700;
    font-size: 1.2rem;
}

.summary-card #item-remaining-after-cost {
    font-weight: 700;
    font-size: 1.2rem;
}

/* 已选物品卡片样式 */
.selected-item-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    height: 100%;
}

.selected-item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.selected-item-card .card-body {
    padding: 1rem;
}

.selected-item-card .card-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.quantity-controls {
    gap: 0.5rem;
}

.quantity-controls .btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .form-control {
    border-radius: 6px;
    font-weight: 600;
    color: #495057;
}

/* 手机端已选物品卡片优化 */
@media (max-width: 768px) {
    .selected-item-card .card-body {
        padding: 0.75rem;
    }
    
    .selected-item-card .card-title {
        font-size: 0.8rem;
    }
    
    .quantity-controls .btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .quantity-controls .form-control {
        width: 45px !important;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* 无物品提示样式 */
    #no-items-message {
        padding: 2rem 1rem;
        color: #6c757d;
    }
    
    #no-items-message .fa-inbox {
        opacity: 0.5;
    }
}

#selected-items .text-muted {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* 重新设计物品发放布局 - 框架在上，计算在下 */
.summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 已选物品区域 - 独立显示 */
.summary-card .row {
    display: block !important; /* 改为垂直布局 */
}

.summary-card .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
}

/* 已选物品列表样式 */
#selected-items .list-group-item {
    padding: 15px 50px 15px 15px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 删除按钮固定在右上角 */
#selected-items .remove-item-btn {
    position: absolute !important;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 10;
    flex-shrink: 0;
}


/* 移除旧的物品控制区域样式，现在使用卡片布局 */
    
    /* 美化滚动条 */
    #selected-items::-webkit-scrollbar {
        height: 8px !important;
    }
    
    #selected-items::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 4px !important;
    }
    
    #selected-items::-webkit-scrollbar-thumb {
        background: #c1c1c1 !important;
        border-radius: 4px !important;
    }
    
    #selected-items::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1 !important;
    }
    
    /* 物品项目设置最小宽度，防止挤压 */
    #selected-items .list-group-item {
        padding: 12px !important;
        position: relative;
        min-height: auto !important;
        margin-bottom: 15px !important;
        min-width: 320px !important; /* 设置最小宽度确保内容完整显示 */
        flex-shrink: 0 !important; /* 防止收缩 */
    }
    
    /* 删除按钮移到右上角 */
    #selected-items .remove-item-btn {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        background: #dc3545 !important;
        border: none !important;
        border-radius: 50% !important;
        color: white !important;
        font-size: 12px !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
    }
    
    /* 物品名称区域给删除按钮让位 */
    #selected-items .list-group-item > div:first-child {
        padding-right: 40px !important;
        margin-bottom: 15px !important;
        min-width: 0 !important; /* 允许文本换行 */
    }
    
    /* 控制区域采用垂直布局 */
    #selected-items .list-group-item > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* 数量控制区域水平布局，背景突出 */
    #selected-items .d-flex.align-items-center.me-3 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 10px !important;
        margin: 0 !important;
        gap: 10px !important;
        min-width: 280px !important; /* 确保控制区域有足够宽度 */
        flex-shrink: 0 !important;
    }
    
    /* 包数标签 */
    #selected-items .small.text-muted.me-2 {
        font-weight: 600 !important;
        color: #495057 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 加减按钮 */
    #selected-items .decrease-btn,
    #selected-items .increase-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #dee2e6 !important;
        background: white !important;
        color: #495057 !important;
        flex-shrink: 0 !important;
    }
    
    #selected-items .decrease-btn:disabled {
        opacity: 0.5 !important;
        background: #f8f9fa !important;
    }
    
    /* 数量输入框 */
    #selected-items .item-quantity-input {
        width: 45px !important;
        height: 36px !important;
        text-align: center !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
        margin: 0 !important;
        background: white !important;
        flex-shrink: 0 !important;
    }
    
    
    /* 添加滚动提示 */
    #selected-items::after {
        content: '← 左右滑动查看完整内容 →' !important;
        display: block !important;
        text-align: center !important;
        font-size: 12px !important;
        color: #6c757d !important;
        margin-top: 10px !important;
        padding: 5px !important;
        background: rgba(108, 117, 125, 0.1) !important;
        border-radius: 4px !important;
        border: 1px dashed #dee2e6 !important;
    }
    
    /* 当没有选择物品时隐藏滚动提示 */
    #selected-items.no-items::after {
        display: none !important;
    }

/* 消耗计算区域 - 独立显示在下方 */
.summary-card .col-md-6:last-child {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

/* 计算行样式 */
.summary-card .d-flex.justify-content-between {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.summary-card .d-flex.justify-content-between:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

#selected-items .text-end {
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* 物品列表样式 */
.item-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.item-row:last-child {
    border-bottom: none;
}

/* 搜索容器样式 */
.search-container {
    background-color: #f1f3f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input {
    padding-left: 40px;
}

.search-results-info {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 滚动容器样式 */
.items-container-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.items-container-scroll::-webkit-scrollbar {
    width: 8px;
}

.items-container-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.items-container-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.items-container-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 快速开始卡片样式 */
.quick-start-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.quick-start-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.quick-start-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 15px;
    text-align: center;
    display: block;
}

.quick-start-cost {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc3545;
}

.quick-start-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 快速开始指导样式 */
.quick-start-instructions {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.quick-start-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* 属性值显示 */
.attribute-value {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 3px;
}

.attribute-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.attribute-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.3);
}

.attribute-card.selected {
    background-color: #e6f7ff;
    border-color: #0d6efd;
}

.cost-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

.total-cost {
    font-size: 1.5rem;
    font-weight: bold;
    color: #198754;
}

.duplicate-warning {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.summary-card {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.privilege-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.privilege-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.privilege-expiry {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 5px;
}

/* ==============================================
   管理员抽奖页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 移除重复定义 - 保留后面的统一版本 */

.probability-indicator {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

/* 已合并到统一样式 */

.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 删除重复的抽奖管理样式 */

/* 这个样式已经在上面的新样式中包含了 */

.prize-item .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.prize-item .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.2s ease;
}

.prize-item .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: #fff;
}

/* 移除重复样式，使用上面的优化版本 */

/* 已合并到统一样式 */

/* 表单字段标题优化 */
.prize-item h6 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 8px;
}

.prize-item .probability-indicator {
    margin-top: 8px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* 已合并到统一样式 */

/* 已合并到统一样式 */

/* 只读字段样式 */
.prize-item .form-control[readonly] {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    font-weight: 600;
}

/* 小提示文字 */
.prize-item .text-muted {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 5px;
}

/* 删除按钮优化 */
.prize-item .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.prize-item .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 奖品卡片标题区域 - 确保删除按钮和标题平行 */
.prize-item .d-flex.justify-content-between {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    align-items: center !important;
    min-height: 40px;
}

/* 确保标题和删除按钮在同一水平线 */
.prize-item .d-flex.justify-content-between h6 {
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* 删除按钮样式优化，确保和标题对齐 */
.prize-item .btn-danger {
    height: 32px;
    width: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* 最简化的prize-item样式 - 完全基于旧版本 */
.prize-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.prize-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* 移除所有其他prize-item相关的布局干扰 */

/* 完全移除布局干扰 - 让Bootstrap完全自然工作 */

/* 简化标签样式 */
.prize-item .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}

/* 修复小提示文字 - 强制不换行 */
.prize-item .text-muted {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 5px;
    white-space: nowrap !important; /* 强制不换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超长显示省略号 */
}

/* 恢复原版的概率指示器样式 */
.probability-indicator {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.probability-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 简化输入框样式 */
.prize-item .form-control {
    height: 38px; /* 使用标准高度 */
}

/* 清理重复样式 - 启用奖品开关 */

/* 移除重复定义 */

/* 完全移除所有布局干扰 - 让Bootstrap 100%自然工作 */

.prize-item .form-check-input {
    width: 2.5rem;
    height: 1.2rem;
    border-radius: 1.2rem;
    border: 2px solid #ced4da;
    background-color: #fff;
    transition: all 0.3s ease;
}

.prize-item .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.prize-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.prize-item .form-check-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-left: 8px;
}

/* 抽奖管理页面按钮优化 */
.prize-item .btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.prize-item .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.prize-item .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

/* 添加奖品按钮样式 */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==============================================
   管理员仪表板专用样式 (从dzzb之前版本移植)
   ============================================== */

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-bg-1 {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    color: white;
}

.card-bg-2 {
    background: linear-gradient(45deg, #24c6dc, #514a9d);
    color: white;
}

.card-bg-3 {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
}

.card-bg-4 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 15px 20px;
    margin-bottom: 30px;
}

.stats-row > div[class*="col-"] {
    display: flex;
}

.stats-row .dashboard-card {
    flex: 1;
    height: 100%;
}

/* ==============================================
   GM命令页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.gm-command-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.gm-command-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.gm-command-header {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.gm-command-body {
    padding: 15px;
}

.gm-command-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.gm-command-code {
    font-family: monospace;
    background-color: #f1f1f1;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.gm-command-params {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.category-title {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin: 25px 0 15px;
    font-weight: 600;
}

.command-form-container {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.season-card, .service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.season-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

/* GM命令页面专用样式增强 */
.season-actions {
    display: flex;
    gap: 10px;
}

.btn-season {
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-service {
    width: 100%;
    padding: 10px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-service:hover {
    transform: scale(1.05);
}

/* 可编辑字段样式 */
.editable-field {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    width: 80px;
    text-align: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.editable-field:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.editable-field:disabled {
    background-color: #f8f9fa;
    border: 1px solid transparent;
    opacity: 0.6;
}

/* 配置控制区域 */
.config-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 参数组样式 */
.param-group {
    margin-bottom: 15px;
}

.param-label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

/* ==============================================
   管理页面通用样式 (从dzzb之前版本移植)
   ============================================== */

.search-box {
    margin-bottom: 20px;
}

.action-buttons .btn {
    margin-right: 5px;
}

/* 特权卡状态样式 */
.card-status {
    font-size: 0.85rem;
    line-height: 1.4;
}

.card-status .badge {
    padding: 0.25em 0.4em;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.expiry-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.card-count {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: bold;
}

/* 操作按钮组样式 */
.btn-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dzd-actions {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

/* ==============================================
   签到页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    padding: 6px 3px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.day {
    text-align: center;
    padding: 10px 3px;
    border-radius: 6px;
    background-color: #f8f9fa;
    position: relative;
    height: 70px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.day.checked {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.day.current {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
}

.reward {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    padding: 0 3px;
    line-height: 1.2;
}

.day-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.achievement-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
}

.points-display {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
}

.achievement-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.btn-signin {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-signin:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.consecutive-days {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* ==============================================
   兑换页面专用样式 (从dzzb之前版本移植)
   ============================================== */

/* 兑换码管理页面样式 */
.code-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.code-card:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.code-card code {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
}

.points-badge {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #000 !important;
}

/* 隐藏临时复制文本框 */
.code-copy-temp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* 操作选择区域 */
.operation-section {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.operation-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.operation-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.operation-card {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.operation-card:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.operation-card.selected {
    border-color: #0d6efd;
    background-color: #e3f2fd;
}

.operation-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.operation-card .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.operation-card .description {
    font-size: 0.9rem;
    color: #6c757d;
}

.success-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-detail {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.success-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #28a745;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #28a745;
}

/* 特权卡状态样式 */
.privilege-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.privilege-card.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.privilege-card.expired {
    background: linear-gradient(135deg, #757575 0%, #9e9e9e 100%);
}

.privilege-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-status {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-expiry {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* ==============================================
   错误页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.error-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.error-card {
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* 简化版404页面样式 */
.simple-error-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.simple-error-container h1 {
    color: #e74c3c;
    font-size: 48px;
    margin-bottom: 20px;
}

.simple-error-container p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.simple-error-container a {
    color: #3498db;
    text-decoration: none;
}

.simple-error-container a:hover {
    text-decoration: underline;
}

/* ==============================================
   定制记录页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.card-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.custom-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.refund-summary {
    background-color: #e9f7e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.equipment-badge {
    background-color: #4e73df;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.attribute-list {
    list-style-type: none;
    padding-left: 0;
}

.attribute-item {
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.attribute-name {
    font-weight: 500;
}

.attribute-cost {
    float: right;
    color: #e74a3b;
}

.critical-warning {
    color: #dc3545;
    font-weight: bold;
    border-top: 2px solid #dc3545;
    padding-top: 10px;
    margin-top: 15px;
}

/* ==============================================
   Cookie管理页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.cookie-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cookie-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.cookie-value {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    word-break: break-all;
    font-size: 0.9rem;
    max-height: 150px;
    overflow-y: auto;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.info-card {
    background-color: #e9f7fe;
    border-left: 4px solid #17a2b8;
}

.warning-card {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.cookie-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-right: 15px;
}

.btn-refresh {
    background: linear-gradient(90deg, #20c997, #0dcaf0);
    border: none;
    transition: all 0.3s;
    color: white;
}

.btn-refresh:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3);
    color: white;
}

/* 切换开关样式 */
.btn-toggle {
    width: 60px;
    height: 30px;
    position: relative;
    display: inline-block;
}

.btn-toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Cookie管理页面动画 */
.alert-animate {
    animation: fadeIn 0.5s, slideDown 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); }
    to { transform: translateY(0); }
}

/* 配置表单样式 */
.config-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* 说明部分样式 */
.instructions-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

/* 导航图标样式 */
.nav-link i {
    width: 25px;
    text-align: center;
}

/* ==============================================
   IP黑名单页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.table-container {
    min-height: calc(100vh - 200px);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

/* 特殊页面的table-container */
.dashboard-container .table-container {
    min-height: calc(100vh - 180px);
    padding: 30px;
}

/* 确保管理页面有足够空间 */
.col-md-9, .col-lg-10 {
    padding-left: 20px;
    padding-right: 20px;
}

/* 发送物品表单样式 */
.send-form-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* 管理页面通用表单样式 */
.add-form-container,
.table-container form.mb-4 {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.add-form-container h5,
.table-container form.mb-4 h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.add-form-container .form-control,
.table-container form.mb-4 .form-control {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.add-form-container .form-control:focus,
.table-container form.mb-4 .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.send-form-container .form-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.send-form-container .form-control-lg,
.send-form-container .form-select-lg {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.send-form-container .form-control-lg:focus,
.send-form-container .form-select-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.send-form-container .btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.container-fluid.mt-4 {
    padding: 0 20px;
}

/* 响应式优化 - 移动端缩小内边距 */
@media (max-width: 768px) {
    .table-container {
        padding: 15px;
        min-height: calc(100vh - 250px);
        max-height: calc(100vh - 200px);
    }
    
    .dashboard-container .table-container {
        padding: 20px;
        min-height: calc(100vh - 220px);
    }
    
    .col-md-9, .col-lg-10 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container-fluid.mt-4 {
        padding: 0 10px;
    }
    
    /* 发送物品页面移动端适配 */
    .row.g-3.mb-4 .col-md-4,
    .row.g-3.mb-4 .col-md-2 {
        margin-bottom: 10px;
    }
    
    /* 抽奖管理卡片移动端适配 */
    .item-prizes-container .prize-item,
    .prizes-container .prize-item {
        padding: 15px;
        min-height: auto;
    }
    
    /* 抽奖管理页面移动端优化 */
    .prize-item .row.g-3 > [class*="col-"] {
        margin-bottom: 15px;
    }
    
    .prize-item .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .prize-item .form-control {
        height: 44px; /* 增加触摸目标大小 */
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .prize-item .form-check-input {
        width: 2.2rem;
        height: 1.1rem;
    }
    
    .prize-item .btn-danger {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* 主页按钮移动端适配 */
    .btn-lg {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    
    /* 管理页面表单移动端适配 */
    .add-form-container,
    .send-form-container,
    .table-container form.mb-4 {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* 移动端表格优化 */
    .table-responsive {
        border-radius: 8px;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* 导航标签移动端优化 */
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 模态框移动端优化 */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    /* 抽奖页面移动端优化 */
    .lottery-card {
        width: 140px !important;
        height: 180px !important;
    }
    
    .card-icon {
        font-size: 45px !important;
    }
    
    .card-title {
        font-size: 0.9rem !important;
    }
    
    /* 自定义页面移动端优化 */
    .repair-task-btn {
        width: auto !important; /* 改为自动宽度 */
        min-width: 120px !important; /* 设置最小宽度 */
        max-width: 200px !important; /* 设置最大宽度 */
        height: 44px !important;
        margin-bottom: 8px;
        font-size: 0.9rem !important;
        padding: 10px 20px !important; /* 合适的内边距 */
    }
    
    /* 签到页面移动端优化 */
    .calendar-grid {
        gap: 5px;
    }
    
    .day {
        height: 55px !important;
        font-size: 0.8rem;
    }
    
    .day-number {
        font-size: 0.85rem !important;
    }
    
    .reward {
        font-size: 0.6rem !important;
    }
}

.ip-cell {
    font-family: monospace;
    font-weight: bold;
}

/* 补充Badge颜色类 */
.bg-primary { background-color: #0d6efd !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-success { background-color: #198754 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.bg-info { background-color: #0dcaf0 !important; color: #000 !important; }
.bg-light { background-color: #f8f9fa !important; color: #000 !important; }
.bg-dark { background-color: #212529 !important; }

/* 补充文本颜色类 */
.text-primary { color: #0d6efd !important; }
.text-secondary { color: #6c757d !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }
.text-light { color: #f8f9fa !important; }
.text-dark { color: #212529 !important; }

/* 工具类补充 */
.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.fst-italic { font-style: italic !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

/* 间距工具类 */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.reason-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

/* ==============================================
   管理员签到页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.setting-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.stats-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

/* ==============================================
   回收日志页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.log-positive {
    color: #1cc88a;
    font-weight: bold;
}

.log-negative {
    color: #e74a3b;
    font-weight: bold;
}

.pagination {
    justify-content: center;
}

/* ==============================================
   管理员定制页面专用样式 (从dzzb之前版本移植)
   ============================================== */

.attribute-select {
    margin-bottom: 15px;
}

.equipment-preview {
    text-align: center;
    padding: 15px;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
    margin: 10px;
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.equipment-preview:hover, .equipment-preview.active {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.equipment-preview i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #6c757d;
}

.equipment-preview.active i {
    color: #0d6efd;
}

.equipment-name {
    font-weight: 500;
}

.attributes-container {
    max-height: 400px;
    overflow-y: auto;
}

/* 管理员定制容器样式 */
.custom-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 属性槽位样式 */
.attr-slot {
    position: relative;
}

.slot-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.remove-slot {
    cursor: pointer;
    color: #dc3545;
    margin-left: auto;
}

.remove-slot:hover {
    color: #c82333;
}

.attribute-item.placeholder {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
}

.attribute-value-input {
    margin-top: 10px;
}

.value-input {
    border-radius: 5px;
}

.selected-attributes {
    background-color: #f8f9fa !important;
}

/* 管理员定制成功页面样式 */
.success-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

/* 用户定制成功页面样式 */
.details-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.badge-lg {
    font-size: 1rem;
    padding: 0.6em 1em;
}

/* 自定义定制成功页面样式 */
.admin-custom-success-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.admin-custom-success-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounceIn 1s ease-in-out;
}

.admin-custom-success-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.admin-custom-success-detail {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.admin-custom-success-highlight {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 移除悬浮效果 */
    .dashboard-card:hover,
    .table tbody tr:hover,
    .history-item:hover {
        transform: none;
        background: inherit;
    }
    
    /* 优化触摸反馈 */
    .btn:active,
    .nav-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 物品加减按钮触摸优化 */
    #selected-items .decrease-btn,
    #selected-items .increase-btn {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    #selected-items .decrease-btn:active,
    #selected-items .increase-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    /* 删除按钮触摸优化 */
    #selected-items .remove-item-btn {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    #selected-items .remove-item-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    /* 物品卡片触摸优化 */
    .item-card .select-item-btn {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ==============================================
   移动端触摸和输入优化增强
   ============================================== */

/* 防止iOS输入框缩放 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

/* 移动端专用触摸优化 */
@media (max-width: 768px) {
    /* 输入框触摸优化 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        border-radius: 8px;
        padding: 12px 15px;
        font-size: 16px !important;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 按钮触摸优化增强 */
    .btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 开关和复选框触摸优化 */
    .form-check-input {
        min-width: 20px;
        min-height: 20px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .form-check-label {
        padding-left: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 导航和链接触摸优化 */
    .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        padding: 12px 15px;
        border-radius: 6px;
    }
    
    .nav-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 下拉菜单触摸优化 */
    .dropdown-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .dropdown-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 表格行触摸优化 */
    .table tbody tr {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .table tbody tr:active {
        background-color: rgba(0,0,0,0.05);
        transition: background-color 0.1s ease;
    }
}

/* =============================================================================
   Custom页面手机端样式优化
   ============================================================================= */

/* 手机端优化 */
@media (max-width: 768px) {
    /* 基础布局 */
    .custom-page .container {
        padding: 0 10px;
    }
    
    .custom-page .header {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .custom-page .header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .custom-page .form-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .custom-page .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    /* 状态栏优化 */
    .custom-page .status-bar {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px !important;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }
    
    .custom-page .status-info {
        text-align: center;
        width: 100%;
    }
    
    .custom-page .status-info h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* 特权卡状态优化 */
    .custom-page .privilege-status {
        width: 100%;
        text-align: center;
    }
    
    .custom-page .privilege-status > div {
        margin-bottom: 8px;
    }
    
    .custom-page .privilege-badge {
        font-size: 0.75rem;
        padding: 5px 8px;
        display: inline-block;
        margin-bottom: 3px;
    }
    
    .custom-page .privilege-expiry {
        font-size: 0.7rem;
        color: #6c757d;
    }
    
    /* 操作按钮优化 */
    .custom-page .status-actions .d-flex {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .custom-page .status-actions .btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        flex: 1;
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        text-align: center;
    }
    
    /* Tab导航优化 */
    .custom-page .nav-tabs {
        border: none;
        margin-bottom: 15px;
    }
    
    .custom-page .nav-tabs .nav-item {
        flex: 1;
        margin-bottom: 5px;
    }
    
    .custom-page .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 8px 4px;
        text-align: center;
        border-radius: 5px;
        margin: 0 2px;
        background: #e9ecef;
        border: 1px solid #dee2e6;
    }
    
    .custom-page .nav-tabs .nav-link.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
    }
    
    .custom-page .nav-tabs .nav-link i {
        display: block;
        margin-bottom: 3px;
        font-size: 1rem;
    }
    
    /* 表单元素优化 */
    .custom-page .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .custom-page .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .custom-page .attribute-card {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .custom-page .attribute-card h5 {
        font-size: 1rem;
        margin-bottom: 10px;
        color: #495057;
    }
    
    .custom-page .form-select, 
    .custom-page .form-control {
        font-size: 0.9rem;
        padding: 8px 12px;
        min-height: calc(1.5em + 16px + 2px);
        height: calc(1.5em + 16px + 2px);
    }
    
    .custom-page .form-select {
        padding-right: 2rem;
        background-position: right 0.75rem center;
        background-size: 14px 10px;
    }
    
    /* 总结卡片优化 */
    .custom-page .summary-card {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
        padding: 15px;
        margin: 20px 0;
    }
    
    .custom-page .summary-card .col-md-6 {
        margin-bottom: 15px;
    }
    
    .custom-page .summary-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* 按钮组优化 */
    .custom-page .d-flex.justify-content-between.mt-4 {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-page .d-flex.justify-content-between.mt-4 .btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* 物品选择区域优化 */
    .custom-page .items-container-scroll {
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }
    
    .custom-page .item-card {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        background: white;
    }
    
    /* 已选物品卡片优化 */
    .custom-page .sticky-top {
        position: static !important;
        margin-top: 20px;
    }
    
    .custom-page .card {
        margin-bottom: 15px;
    }
    
    .custom-page .card-header {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .custom-page .card-body {
        padding: 15px;
    }
    
    /* 修复任务卡片优化 */
    .custom-page .repair-tasks .row .col-md-4 {
        margin-bottom: 15px;
    }
    
    .custom-page .repair-tasks .card {
        height: auto;
    }
    
    .custom-page .repair-tasks .card-body {
        padding: 15px;
        text-align: center;
    }
    
    .custom-page .repair-tasks .card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .custom-page .repair-tasks .card-text {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    /* 其他功能区域优化 */
    .custom-page .function-card {
        margin-bottom: 20px;
    }
    
    .custom-page .function-card .card-body {
        padding: 20px 15px;
    }
    
    .custom-page .function-card .card-title {
        font-size: 1.1rem;
    }
    
    .custom-page .function-card .btn-lg {
        font-size: 0.9rem;
        padding: 10px 15px;
        width: 100%;
    }
    
    /* 弹窗优化 */
    .custom-page .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .custom-page .modal-content {
        border-radius: 10px;
    }
    
    .custom-page .modal-header {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }
    
    .custom-page .modal-body {
        padding: 20px 15px;
    }
    
    .custom-page .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-page .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* 成功弹窗优化 */
    .custom-page .success-container {
        padding: 20px 15px;
    }
    
    .custom-page .success-icon {
        font-size: 3rem;
        color: #28a745;
    }
    
    .custom-page .details-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .custom-page .item-list .item-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #dee2e6;
    }
    
    .custom-page .item-list .item-row:last-child {
        border-bottom: none;
    }
    
    /* 隐藏不必要的元素 */
    .custom-page .form-text {
        font-size: 0.75rem;
        color: #6c757d;
    }
    
    /* 搜索区域优化 */
    .custom-page .search-container {
        margin-bottom: 20px;
    }
    
    .custom-page .search-input {
        padding-left: 40px;
        font-size: 0.9rem;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-right: 12px;
        min-height: calc(1.5em + 16px + 2px);
        height: calc(1.5em + 16px + 2px);
    }
    
    .custom-page .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        z-index: 5;
    }
    
    /* 一键起号优化 */
    .custom-page .quick-start-card {
        padding: 20px 15px;
        background: #f8f9fa;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .custom-page .quick-start-icon {
        font-size: 3rem;
        color: #ffc107;
        margin-bottom: 15px;
    }
    
    .custom-page .quick-start-cost {
        font-size: 1.1rem;
        font-weight: bold;
        color: #dc3545;
        margin: 15px 0;
        padding: 10px;
        background: #fff3cd;
        border-radius: 5px;
        border: 1px solid #ffeaa7;
    }
    
    .custom-page .quick-start-instructions {
        text-align: left;
        margin: 20px 0;
        padding: 15px;
        background: #d1ecf1;
        border-radius: 5px;
        border: 1px solid #bee5eb;
    }
    
    .custom-page .quick-start-instructions h5 {
        font-size: 1rem;
        margin-bottom: 10px;
        color: #0c5460;
    }
    
    .custom-page .quick-start-instructions ul {
        margin: 0;
        padding-left: 20px;
    }
    
    .custom-page .quick-start-instructions li {
        font-size: 0.85rem;
        margin-bottom: 5px;
        color: #495057;
    }
    
    .custom-page .quick-start-warning {
        text-align: left;
        margin: 20px 0;
        padding: 15px;
        background: #f8d7da;
        border-radius: 5px;
        border: 1px solid #f5c6cb;
    }
    
    .custom-page .quick-start-warning h5 {
        font-size: 1rem;
        margin-bottom: 10px;
        color: #721c24;
    }
    
    .custom-page .quick-start-warning p {
        font-size: 0.85rem;
        color: #495057;
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 576px) {
    .custom-page .status-actions .btn {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 5px;
    }
    
    .custom-page .nav-tabs .nav-link {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
    
    .custom-page .nav-tabs .nav-link i {
        font-size: 0.9rem;
    }
    
    .custom-page .form-container {
        padding: 10px;
    }
    
    .custom-page .attribute-card {
        padding: 10px;
    }
    
    .custom-page .summary-card {
        padding: 10px;
    }
}

/* ========================================
   搜索下拉框样式
   ======================================== */

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    margin-top: 0;
}

.search-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.search-dropdown-item:hover {
    background-color: #f8f9fa;
}

.search-dropdown-item[data-value]:hover {
    background-color: #e3f2fd;
}

.search-dropdown-item strong {
    color: #333;
    font-weight: 600;
}

.search-dropdown-item .text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 无法点击的提示项 */
.search-dropdown-item.text-muted:not([data-value]) {
    cursor: default;
    background-color: #f8f9fa;
}

.search-dropdown-item.text-muted:not([data-value]):hover {
    background-color: #f8f9fa;
}

/* 搜索下拉框滚动条样式 */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 0.5rem 0;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   修复选择框文字显示
   ======================================== */

/* 确保选择框内的文字不被截断 */
.send-form-container select.form-select-lg {
    padding: 12px 40px 12px 16px !important;
    font-size: 0.95rem;
    white-space: normal;
    text-overflow: clip;
}

.send-form-container select.form-select-lg option {
    padding: 8px 12px;
    white-space: normal;
    overflow: visible;
}

/* ========================================
   排行榜配置区域样式
   ======================================== */

/* 排行榜配置区域动画效果 */
.ranking-config-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#rankingTypeSelector {
    border: 2px solid #198754;
    font-weight: 600;
    transition: all 0.3s ease;
}

#rankingTypeSelector:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: #198754;
}

