/* 禅意温暖风格 - 移动端优先 */

/* 全局样式 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    background: linear-gradient(180deg, #fef5e7 0%, #f8e8d5 50%, #f5e6d3 100%);
    min-height: 100vh;
    padding: 10px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 移动端优先 - 容器 */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 平板和桌面端 */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 0 20px;
    }
    
    body {
        padding: 20px 0;
    }
}

/* 卡片样式 - 禅意温暖 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 108, 77, 0.08);
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(250, 235, 215, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(139, 108, 77, 0.12);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题样式 - 温暖色调 */
.page-title {
    color: #8b6c4d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(139, 108, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title img {
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(139, 108, 77, 0.2));
}

@media (min-width: 768px) {
    .page-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
}

/* 按钮样式 - 温暖禅意 */
.btn {
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c8966a 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c8966a 0%, #b8865a 100%);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #a8c69f 0%, #95b589 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #95b589 0%, #82a479 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e8a5a5 0%, #d89595 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d89595 0%, #c88585 100%);
}

.btn-info {
    background: linear-gradient(135deg, #b8a9c9 0%, #a899b9 100%);
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #a899b9 0%, #9889a9 100%);
}

.btn-block {
    width: 100%;
    margin-bottom: 12px;
}

/* 返回主页按钮 - 参考week-info设计风格 */
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #8b6c4d;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8e0d6 100%);
    border: 1px solid #e5ddd4;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
}

.btn-home:hover {
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.1);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #faf8f5 0%, #f0e8dc 100%);
    border-color: #d4c4b0;
}

.btn-home:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.06);
}

.btn-home .fa {
    font-size: 14px;
    color: #8b7355;
}

@media (max-width: 767px) {
    .btn-home {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btn-home .fa {
        font-size: 12px;
    }
}

/* 时间段卡片 - 温暖设计 */
.time-slot-card {
    border: 2px solid #f0e6d2;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}

.time-slot-card:active {
    transform: scale(0.98);
}

.time-slot-card:hover {
    border-color: #d4a574;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.time-slot-card.has-status {
    border-color: #a8c69f;
    background: linear-gradient(135deg, rgba(248, 255, 245, 0.9) 0%, rgba(240, 250, 235, 0.9) 100%);
}

.time-slot-card.has-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #a8c69f 0%, #95b589 100%);
    border-radius: 18px 0 0 18px;
}

.time-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.time-slot-title {
    font-size: 17px;
    font-weight: 500;
    color: #6b5b4a;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.empty {
    color: #a89b8a;
    background: #f5f0e8;
}

.status-badge.has-status {
    color: #fff;
    background: linear-gradient(135deg, #a8c69f 0%, #95b589 100%);
    box-shadow: 0 2px 6px rgba(168, 198, 159, 0.3);
}

/* 状态选择按钮组 - 移动端优化 */
.status-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

@media (min-width: 480px) {
    .status-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-btn {
    padding: 14px 12px;
    border: 2px solid #f0e6d2;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #6b5b4a;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.status-btn:active {
    transform: scale(0.95);
}

.status-btn:hover {
    border-color: #d4a574;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.2);
}

.status-btn.active {
    border-color: #d4a574;
    background: linear-gradient(135deg, #d4a574 0%, #c8966a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.status-btn .fa {
    font-size: 18px;
}

/* 搜索框 - 温暖风格 */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 2px solid #f0e6d2;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #6b5b4a;
}

.search-box input:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.search-box input::placeholder {
    color: #a89b8a;
}

.search-box .fa-search {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a574;
}

/* 用户列表 - 温暖卡片 */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 自定义滚动条样式 */
.user-list::-webkit-scrollbar {
    width: 8px;
}

.user-list::-webkit-scrollbar-track {
    background: rgba(240, 230, 210, 0.3);
    border-radius: 10px;
}

.user-list::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.user-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.7);
}

.user-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(139, 108, 77, 0.06);
    border: 1px solid rgba(240, 230, 210, 0.5);
    min-height: 60px;
}

.user-item:active {
    transform: scale(0.98);
}

.user-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 108, 77, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.user-item span {
    color: #6b5b4a;
    font-size: 16px;
    font-weight: 500;
}

.user-item .fa-user {
    color: #d4a574;
    margin-right: 10px;
}

.user-item .fa-chevron-right {
    color: #d4a574;
    font-size: 14px;
}

/* 排行榜 - 温暖设计 */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(139, 108, 77, 0.06);
    border: 1px solid rgba(240, 230, 210, 0.5);
}

.ranking-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ranking-number {
    background: linear-gradient(135deg, #d4a574 0%, #c8966a 100%);
}

.ranking-number.top1 {
    background: linear-gradient(135deg, #f4a460 0%, #e9967a 100%);
    box-shadow: 0 4px 15px rgba(244, 164, 96, 0.4);
}

.ranking-number.top2 {
    background: linear-gradient(135deg, #d4a574 0%, #c8966a 100%);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.ranking-number.top3 {
    background: linear-gradient(135deg, #b8a9c9 0%, #a899b9 100%);
    box-shadow: 0 4px 15px rgba(184, 169, 201, 0.4);
}

.ranking-info {
    flex: 1;
    margin-left: 15px;
}

.ranking-name {
    font-size: 16px;
    font-weight: 500;
    color: #6b5b4a;
    margin-bottom: 6px;
}

.ranking-rate {
    font-size: 14px;
    color: #8b6c4d;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: #f0e6d2;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a574 0%, #c8966a 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* 导航栏 - 温暖透明 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 12px 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(139, 108, 77, 0.08);
    border: 1px solid rgba(240, 230, 210, 0.5);
    flex-wrap: wrap;
    gap: 10px;
}

.navbar-brand {
    font-size: 16px;
    font-weight: 500;
    color: #6b5b4a;
    text-decoration: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.navbar-link {
    color: #d4a574;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.navbar-link:hover {
    color: #c8966a;
    background: rgba(212, 165, 116, 0.1);
}

.navbar-link .fa {
    font-size: 16px;
}

.navbar-divider {
    color: rgba(212, 165, 116, 0.4);
    font-size: 14px;
    margin: 0 4px;
    user-select: none;
}

.navbar-link-logout {
    color: #d32f2f;
}

.navbar-link-logout:hover {
    color: #b71c1c;
    background: rgba(211, 47, 47, 0.1);
}

.navbar-link-home {
    color: #8b6c4d;
}

.navbar-link-home:hover {
    color: #6b5b4a;
    background: rgba(139, 108, 77, 0.1);
}

/* 移动端导航栏优化 - 固定在底部，更明显 */
@media (max-width: 767px) {
    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        box-shadow: 0 -4px 20px rgba(139, 108, 77, 0.15), 0 -2px 8px rgba(139, 108, 77, 0.1);
        border: 1px solid rgba(240, 230, 210, 0.8);
        border-bottom: none;
        z-index: 999;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 4px;
    }
    
    .navbar-brand {
        display: none; /* 移动端隐藏navbar-brand */
    }
    
    .navbar-actions {
        gap: 4px;
        width: 100%;
        justify-content: space-around;
        display: flex;
    }
    
    .navbar-link {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        font-size: 12px;
        font-weight: 500;
        gap: 4px;
        min-height: 36px;
        white-space: nowrap;
    }
    
    .navbar-link-user {
        color: #6b5b4a;
    }
    
    .navbar-link-user .navbar-name {
        display: inline;
    }
    
    .navbar-link-home {
        color: #8b6c4d;
    }
    
    .navbar-link-logout {
        color: #d32f2f;
    }
    
    .navbar-divider {
        display: none; /* 移动端隐藏分隔符 */
    }
    
    .navbar-link .fa {
        font-size: 14px;
        margin: 0;
    }
    
    .navbar-link:active {
        background: rgba(212, 165, 116, 0.15);
        transform: scale(0.95);
    }
    
    .navbar-link:hover {
        background: rgba(212, 165, 116, 0.1);
        color: #d4a574;
    }
    
    /* 为页面内容添加底部内边距，避免被导航栏遮挡 */
    body {
        padding: 10px 10px 60px 10px;
    }
    
    .container {
        padding-bottom: 15px;
    }
}

/* 模态框 - 温暖设计 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 91, 74, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 25px;
    max-width: 95%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(107, 91, 74, 0.2);
    border: 1px solid rgba(240, 230, 210, 0.5);
    margin: auto;
    position: relative;
}

@media (min-width: 480px) {
    .modal-content {
        width: 400px;
        padding: 30px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0e6d2;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #6b5b4a;
    margin: 0;
    letter-spacing: 0.5px;
}

.modal-close {
    float: right;
    font-size: 24px;
    font-weight: 300;
    color: #a89b8a;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #6b5b4a;
    background: #f0e6d2;
}

/* 表单样式 - 温暖设计 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #6b5b4a;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0e6d2;
    border-radius: 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #6b5b4a;
}

.form-control:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.form-control::placeholder {
    color: #a89b8a;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px 20px;
    color: #a89b8a;
}

.loading .fa-spinner {
    animation: spin 1s linear infinite;
    font-size: 36px;
    margin-bottom: 15px;
    color: #d4a574;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #a89b8a;
}

.empty-state .fa {
    font-size: 52px;
    margin-bottom: 15px;
    opacity: 0.4;
    color: #d4a574;
}

.empty-state div {
    font-size: 15px;
    margin-top: 10px;
}

/* 日期选择器样式 */
.date-picker-wrapper {
    margin-bottom: 20px;
}

.date-picker-wrapper input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0e6d2;
    border-radius: 18px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: #6b5b4a;
}

.date-picker-wrapper input:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

/* 数据概览表格容器 */
#overviewTable {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 自定义滚动条样式 */
#overviewTable::-webkit-scrollbar {
    width: 8px;
}

#overviewTable::-webkit-scrollbar-track {
    background: rgba(240, 230, 210, 0.3);
    border-radius: 10px;
}

#overviewTable::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

#overviewTable::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.7);
}

/* 用户管理列表容器 */
#userList {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 用户管理列表滚动条样式 */
#userList::-webkit-scrollbar {
    width: 8px;
}

#userList::-webkit-scrollbar-track {
    background: rgba(240, 230, 210, 0.3);
    border-radius: 10px;
}

#userList::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

#userList::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.7);
}

/* 管理员表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 108, 77, 0.06);
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0e6d2;
}

.admin-table th {
    background: rgba(240, 230, 210, 0.5);
    font-weight: 500;
    color: #6b5b4a;
    font-size: 14px;
}

.admin-table td {
    color: #6b5b4a;
    font-size: 14px;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.9);
}

.admin-table a {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
}

.admin-table a:hover {
    color: #c8966a;
    text-decoration: underline;
}

/* 提示消息 - 温暖风格 */
.alert {
    padding: 14px 20px;
    border-radius: 18px;
    margin-bottom: 15px;
    animation: slideDown 0.4s ease;
    border: 1px solid;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(248, 255, 245, 0.9);
    color: #5a7a4f;
    border-color: #a8c69f;
}

.alert-danger {
    background: rgba(255, 245, 245, 0.9);
    color: #8b5a5a;
    border-color: #e8a5a5;
}

/* 选项卡样式 - 温暖禅意 */
.nav-tabs {
    border-bottom: 2px solid #f0e6d2;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.nav-tabs > li {
    margin-bottom: -2px;
    display: inline-block;
    float: none;
}

.nav-tabs > li > a {
    border: none;
    border-radius: 18px 18px 0 0;
    color: #8b6c4d;
    padding: 14px 24px;
    margin-right: 8px;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.nav-tabs > li > a .fa {
    font-size: 16px;
}

.nav-tabs > li > a:hover {
    background: rgba(240, 230, 210, 0.3);
    border-color: transparent;
    color: #6b5b4a;
    transform: translateY(-2px);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-bottom: 3px solid #d4a574;
    color: #6b5b4a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
}

.nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #d4a574 0%, #c8966a 100%);
    border-radius: 2px;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 移动端优化 - 触摸友好 */
@media (max-width: 767px) {
    body {
        padding: 8px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .card {
        padding: 18px;
        margin-bottom: 12px;
        border-radius: 18px;
        overflow: hidden; /* 防止内容溢出 */
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .time-slot-card {
        padding: 16px;
    }
    
    .time-slot-title {
        font-size: 16px;
    }
    
    .user-item {
        padding: 16px 18px;
        min-height: 56px;
    }
    
    /* navbar 样式已在上面统一定义，此处移除重复定义 */
    
    .modal-content {
        padding: 20px;
        border-radius: 20px;
    }
    
    .status-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-btn {
        min-height: 60px;
        font-size: 13px;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    
    /* 导航标签优化 - 居中显示 */
    .nav-tabs {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-bottom: 2px solid #f0e6d2;
        margin-bottom: 0;
        padding-bottom: 0;
        gap: 4px;
    }
    
    .nav-tabs > li {
        display: inline-block;
        float: none;
        margin-bottom: -2px;
        margin-right: 0;
        flex: 0 0 auto;
    }
    
    .nav-tabs > li > a {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        margin-right: 0;
    }
    
    .nav-tabs > li > a .fa {
        font-size: 14px;
        margin-right: 4px;
    }
    
    /* 日期选择器优化 */
    .date-picker-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .date-picker-wrapper label {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .date-picker-wrapper input,
    .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .form-group .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .tab-content {
        padding: 15px 0;
        overflow-x: hidden;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .status-buttons {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 20px;
    }
}