/* 基础样式重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
}

/* 容器 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 表单控件 */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* 按钮 */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 主要按钮样式 */
.btn-primary {
    color: #0d6efd;
    background-color: white;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: white;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 危险按钮样式 */
.btn-danger {
    color: #dc3545;
    background-color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

.w-100 {
    width: 100%;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    margin: 1.75rem auto;
    max-width: 500px;
}

/* 优化的标题样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 返回列表按钮样式 */
#backToList {
    background-color: #9c27b0;
    color: white;
    border: 2px solid #9c27b0;
}

#backToList:hover {
    background-color: #7b1fa2;
    border-color: #7b1fa2;
    color: white;
}

#backToList:active {
    background-color: #6a1b9a;
    border-color: #6a1b9a;
    color: white;
}

h1 {
    margin: 0;
    color: white;
    font-weight: 700;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 优化的按钮样式 */
.btn {
    padding: 10px 20px;
    background-color: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #f8f9fa;
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    background-color: #f1f3f4;
    border-color: #388e3c;
    color: #2e7d32;
}


/* 优化的宴会列表样式 */
.banquet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* 优化的统计容器样式 */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* 优化的统计卡片样式 */
.stat-card {
    flex: 1;
    min-width: 200px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #4CAF50;
    position: relative;
    overflow: hidden;
}

/* 添加统计卡片装饰效果 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.stat-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.2;
}

/* 为礼金总额添加特殊样式 */
.stats-container .stat-card:nth-child(2) p {
    color: #4CAF50;
    font-weight: 800;
}

/* 优化的宴会卡片样式 */
.banquet-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9f9f9 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

/* 为卡片添加顶部装饰条 */
.banquet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
}

.banquet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: #d0e8ff;
}

.banquet-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.banquet-card p {
    margin: 8px 0;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}

/* 宴会信息增强 */
.banquet-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.banquet-date {
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}

.banquet-location {
    font-style: italic;
    color: #7f8c8d;
}

/* 优化的宴会统计样式 */
.banquet-stats {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    gap: 12px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: scale(1.03);
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1.2;
}

/* 为不同统计项添加不同颜色 */
.stat-item:nth-child(2) .stat-value {
    color: #ff9800;
}

.stat-item:nth-child(3) .stat-value {
    color: #2196F3;
}

.banquet-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.banquet-actions .btn {
    flex: 1;
}

.banquet-actions .btn.delete {
    background-color: #f44336;
}

.banquet-actions .btn.delete:hover {
    background-color: #d32f2f;
}

/* 宾客列表样式 */
#giftList {
    margin: 20px 0;
}

.gift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border-left: 4px solid #4CAF50;
}

.gift-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.gift-item .guest-info {
    display: flex;
    align-items: center;
}

.gift-item .guest-avatar {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #495057;
}

.gift-item .guest-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.gift-item .guest-name {
    font-weight: 600;
    font-size: 16px;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 80px;
    margin-right: 20px;
}

.gift-item .guest-details {
    flex: 1;
}

.gift-item .guest-remark {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.gift-item .gift-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.gift-item .gift-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    flex: 1;
}

@media (max-width: 768px) {
    .gift-item .gift-actions {
        flex-direction: column;
        gap: 4px;
    }
}

.gift-item .gift-amount {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
    margin-left: 10px;
    margin-right: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gift-item .gift-amount {
        font-size: 16px;
        min-width: 70px;
        margin-right: 5px;
    }
}

.gift-item .gift-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-end;
    width: auto;
    min-width: 100px;
    max-width: 200px;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .gift-item .gift-actions {
        min-width: 140px;
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .gift-item .gift-actions {
        min-width: 80px;
        max-width: 150px;
        gap: 4px;
    }
    .gift-item .gift-actions button {
        padding: 3px 5px;
        font-size: 10px;
    }
}

.empty-message {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

#giftForm {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* 新增宾客提交按钮样式 */
#submitGiftBtn {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

#submitGiftBtn:hover {
    background-color: #388E3C;
    border-color: #388E3C;
    color: white;
}

#submitGiftBtn:active {
    background-color: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

#giftForm h2 {
    margin-top: 0;
    color: #343a40;
    font-size: 18px;
    margin-bottom: 15px;
}

#giftForm input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

#giftForm input:focus,
#giftForm textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#giftForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

/* 模态对话框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 500px;
    animation: modalFadeIn 0.3s;
}

/* 登录模态框增强样式 */
.login-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    overflow: hidden;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    animation: loginModalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* 登录模态框动画 */
@keyframes loginModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 登录头部样式 */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 登录头部装饰 */
.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.07)"/></svg>');
    background-size: cover;
}

.login-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
    position: relative;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.login-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.login-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
}

/* 登录表单样式 */
.login-form {
    padding: 30px;
}

/* 登录错误信息样式 */
.login-error {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 12px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-input-group {
    margin-bottom: 20px;
}

.login-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #adb5bd;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* 全新的登录输入框样式 - 完全重置并重新定义 */
#loginUsername,
#loginPassword {
    width: 100%;
    padding: 16px 20px 16px 75px !important;
    font-size: 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 确保login-input样式优先级高于form-control */
.form-control.login-input {
    width: 100% !important;
    padding: 16px 20px 16px 75px !important;
    font-size: 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* 兼容旧的选择器 */
.login-input {
    width: 100% !important;
    padding: 16px 20px 16px 75px !important;
    font-size: 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.login-input::placeholder {
    color: #adb5bd;
    font-style: normal;
    font-size: 14px;
    text-indent: 0;
    letter-spacing: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 登录按钮样式 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn-text {
    position: relative;
    z-index: 1;
}

/* 登录页脚样式 */
.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-tip {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* ICP备案号样式 */
.login-beian {
    margin: 5px 0 0 0;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
}

/* 导航容器样式 */
.nav-container {
    padding: 20px 0;
}

/* 导航菜单样式 */
.nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

/* 导航项样式 */
.nav-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #343a40;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #673AB7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #2196F3;
}

.nav-item:hover::before {
    transform: scaleX(1);
}

/* 导航图标样式 */
.nav-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-item h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #343a40;
}

.nav-item p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* 隐藏的导航项 */
.nav-item.hidden {
    display: none;
}

/* 响应式登录模态框 */
@media (max-width: 768px) {
    .login-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .login-header {
        padding: 30px 20px 25px;
    }
    
    .login-icon {
        font-size: 48px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-form {
        padding: 25px 20px;
    }
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #343a40;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.modal-content .btn {
    width: 100%;
    margin-top: 10px;
}

/* 编辑和删除按钮样式 */
.edit-btn {
    background-color: white;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.edit-btn:hover {
    background-color: #ffc107;
    color: white;
}

.delete-btn {
    background-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* 筛选表单样式 */
.filter-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 筛选按钮样式 */
#filterBtn {
    background-color: #2196F3;
    color: white;
    border: 2px solid #2196F3;
}

#filterBtn:hover {
    background-color: #1976D2;
    border-color: #1976D2;
    color: white;
}

#filterBtn:active {
    background-color: #1565C0;
    border-color: #1565C0;
    color: white;
}

.filter-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
    font-size: 18px;
}

.filter-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-field {
    flex: 1;
}

.filter-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-field input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* 搜索容器样式增强 */
.search-container {
    margin: 20px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.search-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.search-btn {
    padding: 12px 24px;
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.1);
}

.search-btn:hover {
    background: linear-gradient(145deg, #2196F3 0%, #1976D2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
    background: linear-gradient(145deg, #1976D2 0%, #1565C0 100%);
}

/* 分页控件样式增强 */
.pagination,
#paginationControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #2196F3;
    color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.pagination-btn-active {
    background: linear-gradient(145deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.pagination-btn-active:hover {
    background: linear-gradient(145deg, #1976D2 0%, #1565C0 100%);
    border-color: #1565C0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

/* 页码导航文本 */
.pagination-info {
    color: #6c757d;
    font-size: 14px;
    margin: 0 12px;
    font-weight: 500;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .banquet-card {
        padding: 15px;
    }
    
    .banquet-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 5px 0;
    }
    
    /* 分页控件响应式设计 */
    .pagination,
    #paginationControls {
        gap: 4px;
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        min-width: 32px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin: 0 6px;
    }
    
    #giftForm input,
    #giftForm textarea,
    #giftForm button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header > div {
        margin-top: 10px;
        width: 100%;
    }
    
    .header button {
        width: 100%;
        margin: 5px 0;
    }
    
    /* 响应式筛选表单 */
    .filter-fields {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-field {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .pagination {
        gap: 4px;
        padding: 10px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

/* 自定义选择框样式 */
.custom-select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-container input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-container input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.custom-select-container.open input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6c757d;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.custom-select-container.open .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #dee2e6;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.custom-dropdown.open {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2196F3;
}

/* 筛选器样式调整 */
.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.filter-item label {
    white-space: nowrap;
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}