/* CSS变量定义 - 使用新配色方案 */
:root {
  --primary-color: #476384;
  --secondary-color: #dbe1e5;
  --accent-color: #9aa8b6;
  --background-color: #dbe1e5;
  --card-background: #ffffff;
  --text-primary: #18293d;
  --text-secondary: #28405b;
  --border-color: #9aa8b6;
  --shadow-color: rgba(24, 41, 61, 0.1);
  --success-color: #476384;
  --warning-color: #28405b;
  --error-color: #18293d;
}

/* 主题选择器样式（新增） */
.theme-selector {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-selector button {
  margin: 4px;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.theme-selector button:hover {
  background: var(--primary-color);
  color: white;
}

.theme-selector button.active {
  background: var(--primary-color);
  color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--accent-color) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* 为底部导航留空间 */
}

.header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
}

 /* 头部内容布局 */
.header-content {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.header-content h1 {
    text-align: center;
    margin: 0;
}

.guide-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.guide-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.guide-btn svg {
    width: 20px;
    height: 20px;
}

.header-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.user-info span {
    color: var(--text-primary);
    font-weight: 500;
}



.header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 只对静态标题（非动态标题）应用渐变效果 */
.header h1:not(#dynamic-title) {
    background: linear-gradient(135deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 确保动态标题在所有设备上都可见 */
#dynamic-title {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
    display: block !important;
    text-align: center !important;
}

.header .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 168, 182, 0.2);
}

.tab-container {
    display: flex;
    background: var(--secondary-color);
    border-radius: 16px;
    margin: 16px;
    padding: 6px;
}

.tab {
    flex: 1;
    padding: 14px 18px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(71, 99, 132, 0.3);
    transform: translateY(-1px);
}

.tab:hover:not(.active) {
    background: rgba(71, 99, 132, 0.1);
    color: var(--primary-color);
}

.tab-content {
    padding: 28px;
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--card-background);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 99, 132, 0.1);
    transform: translateY(-1px);
}

.row {
    display: flex;
    gap: 20px;
}

.col {
    flex: 1;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-input {
    flex: 1;
}

.time-btn {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.time-btn:hover {
    background: var(--accent-color);
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), rgba(154, 168, 182, 0.3));
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(154, 168, 182, 0.3);
}

.switch-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transition: .4s;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 16px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 8px 24px rgba(71, 99, 132, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(71, 99, 132, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn.btn-danger {
    background: linear-gradient(135deg, var(--error-color), var(--text-secondary));
}

.btn.btn-danger:hover {
    background: linear-gradient(135deg, var(--text-secondary), var(--error-color));
}

.btn.btn-success {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
}

.btn.btn-success:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

.btn.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    color: white;
}

.btn.btn-warning:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
}

.reservation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(219, 225, 229, 0.1));
    border: 1px solid rgba(154, 168, 182, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reservation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(71, 99, 132, 0.15);
    transform: translateY(-2px);
}

/* 保留座位状态下的暂离中状态标签样式 - 只改变状态标签颜色 */
.status.preservation-temp-leave-status {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #856404 !important;
    border: 1px solid rgba(255, 193, 7, 0.5) !important;
}

.status.preservation-temp-leave-status:hover {
    background: rgba(255, 193, 7, 0.3) !important;
}

.reservation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seat-info {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.pending {
    background: linear-gradient(135deg, var(--secondary-color), rgba(154, 168, 182, 0.3));
    color: var(--text-secondary);
}

.status.active {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    color: white;
}

.status.temp-leave {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.status.preservation {
    background: linear-gradient(135deg, #6f42c1, #9561e2);
    color: white;
    border: 1px solid #5a379a;
}

.status.preservation-renewal {
    background: linear-gradient(135deg, #6f42c1, #9561e2);
    color: white;
    border: 1px solid #5a379a;
    font-size: 12px;
    padding: 2px 6px;
    margin-right: 5px;
}

.status.auto-renewal {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border: 1px solid #138496;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 5px;
}

.status.completed {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.status.failed {
    background: linear-gradient(135deg, var(--error-color), var(--text-secondary));
    color: white;
}

.status.cancelled {
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    color: white;
}

.status.violated {
    background-color: #ff6b35;
    color: white;
    border: 1px solid #e55a2b;
}

.reservation-details {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 12px 18px;
    font-size: 14px;
    width: auto;
    flex: 1;
}

.btn-mini {
    padding: 6px 12px !important;
    font-size: 13px !important;
    min-width: 50px !important;
    width: auto !important;
    height: 28px !important;
    line-height: 1.2 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 41, 61, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 225, 229, 0.9));
    margin: 10% auto;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(71, 99, 132, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(154, 168, 182, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.alert {
    padding: 18px 22px;
    margin-bottom: 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid;
    animation: fadeInSuccess 0.4s ease;
}

.alert.success {
    background: linear-gradient(135deg, rgba(71, 99, 132, 0.1), rgba(154, 168, 182, 0.1));
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert.error {
    background: linear-gradient(135deg, rgba(24, 41, 61, 0.1), rgba(40, 64, 91, 0.1));
    color: var(--error-color);
    border-color: var(--error-color);
}

.alert.warning {
    background: linear-gradient(135deg, rgba(40, 64, 91, 0.1), rgba(71, 99, 132, 0.1));
    color: var(--warning-color);
    border-color: var(--warning-color);
}

/*错误提示框-------------------------------------------*/
/* 新增：居中提示框样式 */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 41, 61, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alertFadeIn 0.3s ease-out;
}

.alert-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 225, 229, 0.9));
    border-radius: 20px;
    padding: 28px 32px;
    margin: 20px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(71, 99, 132, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(154, 168, 182, 0.2);
    position: relative;
    animation: alertSlideIn 0.3s ease-out;
}

.alert-content {
    position: relative;
    padding-top: 12px; /* 为关闭按钮留出空间 */
}

.alert-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.alert-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-message {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 8px;
}

.alert-close {
    position: absolute;
    top: -2px;    /* 从 8px 改为 -2px */
    right: 8px;   /* 从 12px 改为 8px，稍微向内一点 */
    width: 24px;
    height: 24px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(71, 99, 132, 0.3);
}

.alert-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(71, 99, 132, 0.4);
}

/* 不同类型的提示框样式 */
.alert-success .alert-icon {
    color: var(--success-color);
}

.alert-error .alert-icon {
    color: var(--error-color);
}

.alert-warning .alert-icon {
    color: var(--warning-color);
}

.alert-info .alert-icon {
    color: var(--primary-color);
}

/* 动画效果 */
@keyframes alertFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes alertSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .alert-box {
        padding: 20px 24px;
        margin: 16px;
        border-radius: 16px;
        max-width: 95%;
    }
    
    .alert-content {
        padding-top: 10px;
    }
    
    .alert-main {
        gap: 12px;
    }
    
    .alert-icon {
        font-size: 20px;
    }
    
    .alert-message {
        font-size: 15px;
        margin-top: 6px;
    }
    
    .alert-close {
        width: 22px;
        height: 22px;
        font-size: 13px;
        border-radius: 11px;
        top: -2px;          /* 从 6px 改为 -2px，向上移动 */
        right: 8px;         /* 从 10px 改为 8px，稍微向内 */
    }

    .alert-main {
        gap: 6px;                    /* 减少间距 */
        flex-direction: column;      /* 改为垂直排列，让error图标和文字分行 */
        align-items: flex-start;
    }
    
    .alert-icon {
        font-size: 18px;            /* 手机端图标稍小 */
        margin-bottom: 4px;         /* 图标下方增加间距 */
        align-self: flex-start;     /* 图标左对齐 */
    }
    
    .alert-message {
        font-size: 14px;            /* 从 15px 改为 14px */
        margin-top: 0px;            /* 从 8px 改为 0px，减少上边距 */
        line-height: 1.4;           /* 调整行高 */
    }
}

/*-------------------------------------------*/

/* 内联提示样式 */
.inline-alert {
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.inline-alert.success {
    background: linear-gradient(135deg, rgba(71, 99, 132, 0.1), rgba(154, 168, 182, 0.1));
    color: var(--success-color);
    border-color: var(--success-color);
}

.inline-alert.error {
    background: linear-gradient(135deg, rgba(24, 41, 61, 0.1), rgba(40, 64, 91, 0.1));
    color: var(--error-color);
    border-color: var(--error-color);
}

.inline-alert.warning {
    background: linear-gradient(135deg, rgba(40, 64, 91, 0.1), rgba(71, 99, 132, 0.1));
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.loading {
    display: none;
    text-align: center;
    padding: 32px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.modal h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 登录相关样式 */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1d1d1f;
}

/* 隐藏用户登录信息，但保留动态标题 */
.user-info {
    display: none !important;
}

.no-data, .error {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
    font-size: 16px;
}

.error {
    color: #ff3b30;
}

/* 预约界面分隔样式 */
.reservation-section {
    margin-bottom: 20px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2d2d7, transparent);
    margin: 25px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #d2d2d7;
    border-radius: 50%;
}

/* 历史记录容器 */
.history-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.history-container::-webkit-scrollbar {
    width: 6px;
}

.history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.history-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 修改密码界面样式 */
.password-change-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.password-change-container .form-group {
    margin-bottom: 20px;
}

.password-change-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #1d1d1f;
}

.password-change-container select:disabled option {
    color: #86868b;
}

.password-change-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #1d1d1f;
}

.password-change-container input[type="password"]::placeholder {
    color: #86868b;
}

.password-change-container .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.password-change-container .btn:hover {
    background-color: #0056D6;
}

.password-change-container .btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 随到随签确认弹窗样式 */
.quick-checkin-confirm {
    position: relative;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.confirm-header {
    position: relative;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.confirm-header h3 {
    margin: 0;
    color: #1d1d1f;
}

.close-btn {
    color: #999;
    font-weight: bold;
    font-size: 24px;
}

.close-btn:hover {
    color: #333;
}

.confirm-content p {
    line-height: 1.6;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.confirm-buttons .btn {
    min-width: 100px;
}

/* 时间修正提示界面 */
.time-correction-dialog {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.time-correction-dialog .dialog-header h3 {
    text-align: center;
    color: #ff9500;
    margin-bottom: 20px;
    font-size: 18px;
}

.time-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.time-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.time-item:last-child {
    margin-bottom: 0;
}

.time-item label {
    color: #666;
    font-size: 14px;
}

.time-value {
    font-weight: 600;
    font-size: 15px;
}

.time-item.original .time-value {
    color: #ff3b30;
}

.time-item.suggested .time-value {
    color: #34c759;
}

.reason-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.reason-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 5px;
    font-size: 14px;
}

.reason-text {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.question {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin: 15px 0;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.dialog-buttons .btn {
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialog-buttons .btn-primary {
    background: #007AFF;
    color: white;
}

.dialog-buttons .btn-primary:hover {
    background: #0051D0;
}

.dialog-buttons .btn-secondary {
    background: #8E8E93;
    color: white;
}

.dialog-buttons .btn-secondary:hover {
    background: #6D6D70;
}

/* 预约详情模态框样式 */
.reservation-details-modal {
    max-width: 500px;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e7;
}

.detail-item label {
    font-weight: 600;
    color: #1d1d1f;
    min-width: 80px;
    margin-right: 12px;
}

.detail-item span {
    color: #666;
    flex: 1;
}

.detail-explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.detail-explanation h4 {
    margin: 0 0 8px 0;
    color: #1d1d1f;
    font-size: 14px;
}

.detail-explanation p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.detail-actions {
    text-align: center;
    margin-top: 25px;
}

.btn-info {
    background-color: #007AFF;
    color: white;
    border: 1px solid #007AFF;
}

.btn-info:hover {
    background-color: #0051D0;
    border-color: #0051D0;
}

/* 状态组样式 */
.status-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 详情状态标签样式 */
.status.details-status {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.status.details-status:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(71, 99, 132, 0.2);
}

/* 输入框提示文字样式 */
input::placeholder {
    color: var(--text-secondary);
}

/* 选择框箭头样式 */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23476384" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

/* 小细节提升 */
.form-group small {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}


.encouragement-text {
    /* 复用原按钮的基础样式 */
    padding: 10px 17px;                    /* 与 .btn-small 一致 */
    font-size: 14px;                       /* 与 .btn-small 一致 */
    border-radius: 16px;                   /* 与 .btn 一致 */
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(71, 99, 132, 0.3);  /* 与 .btn 一致 */
    
    /* 自定义样式：透明背景细边框 */
    background: transparent;               /* 透明背景，显示卡片背景色 */
    border: 1px solid var(--border-color);  /* 细边框，与.btn-danger颜色一致 */
    color: var(--border-color);;             /* 文字颜色与边框一致 */
    
    /* 布局样式 */
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    flex: 1;                               /* 与其他按钮同宽 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .encouragement-text {
        padding: 10px 16px !important;     /* 与移动端 .btn-small 一致 */
        font-size: 14px !important;
        border-radius: 8px;
        min-width: auto !important;
        width: auto !important;
        flex: 1;
    }
}

/* 动画定义 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 基础布局优化 */
    body {
        font-size: 14px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    /* 容器优化 */
    .container {
        padding: 8px;
        max-width: 100%;
        margin: 0;
        padding-bottom: max(80px, env(safe-area-inset-bottom, 80px));
    }
    .header-content {
        grid-template-columns: 36px 1fr 36px;
        gap: 8px;
    }
    
    .guide-btn {
        width: 36px;
        height: 36px;
    }
    
    .guide-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .header-spacer {
        width: 36px;
        height: 36px;
    }
    
    .user-info {
        font-size: 12px;
        gap: 6px;
    }
    
    .user-info .btn-mini {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .user-info .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }


    /* 顶部标题栏优化 */
    .header {
        padding: 12px 16px;
        margin-bottom: 16px;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(20px);
        text-align: center;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
        padding-left: max(16px, env(safe-area-inset-left, 16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
    }

    .header h1 {
        font-size: 20px;
        line-height: 1.2;
        margin: 0;
        position: static;
        transform: none;
        -webkit-background-clip: border-box !important;
        -webkit-text-fill-color: var(--text-primary) !important;
        background: none !important;
    }

    /* 确保动态标题在移动端正常显示 */
    #dynamic-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #dynamic-title span {
        display: inline !important;
        visibility: visible !important;
    }
    
    #dynamic-title div[style*="display: flex"] {
        display: flex !important;
    }

    /* 主内容区域优化 */
    .main-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px var(--shadow-color);
    }
   

    /* 标签页导航优化 */
    .tab-container {
        margin: 0;
        padding: 4px;
        border-radius: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
    }

    .tab-container::-webkit-scrollbar {
        display: none;
    }

    .tab {
        min-width: 90px;
        font-size: 13px;
        padding: 10px 12px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 表单内容优化 */
    .tab-content {
        padding: 16px;
    }

    /* 表单组优化 */
    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 500;
    }

    /* 输入框优化 */
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid var(--border-color);
        width: 100%;
        -webkit-appearance: none;
        appearance: none;
        background: white;
    }

    /* 选择框箭头优化 */
    .form-group select {
        background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNiA2TDExIDEiIHN0cm9rZT0iIzQ3NjM4NCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
    }

    /* 时间输入行优化 - 改为两行布局 */
    .row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .col {
        width: 100%;
        margin-bottom: 16px;
    }

    .col:last-child {
        margin-bottom: 16px;
    }

    /* 确保时间输入框样式一致 */
    .col .form-group {
        margin-bottom: 0;
    }

    /* 开关容器优化 - 移动端改为两行布局 */
    .switch-container {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .switch-item {
        margin-bottom: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .switch-item:last-child {
        margin-bottom: 0;
    }

    /* 第一行布局：自动预约 + 开关 + 配置按钮 */
    .switch-item:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 配置按钮右侧对齐 */
    .switch-item:first-child > button {
        margin-left: auto;
        margin-right: 0;
    }

    .switch-label {
        font-size: 14px;
        flex: 1;
        margin-right: 12px;
    }

    /* 开关样式优化 */
    .switch {
        width: 48px;
        height: 28px;
        flex-shrink: 0;
    }

    .slider:before {
        height: 24px;
        width: 24px;
        left: 2px;
        bottom: 2px;
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }

    /* 配置按钮优化 - 与开关同高 */
    #auto-config-btn {
        margin-left: 8px;
        padding: 4px 1px;
        font-size: 12px;
        min-width: 66px;
        height: 35px;
        border-radius: 22px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

    /* 按钮优化 */
    .btn {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 12px;
        width: 100%;
        margin-bottom: 16px;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn-small {
        padding: 10px 16px;
        font-size: 14px;
        width: auto;
        min-width: 80px;
        margin-bottom: 0;
    }

    .btn-mini {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
        height: auto;
        line-height: 1.2;
        border-radius: 14px;
    }

    /* 预约卡片优化 - 更紧凑的设计 */
    .reservation-card {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    .reservation-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .seat-info {
        font-size: 15px;
        font-weight: 600;
        flex: 1;
        margin-right: 8px;
    }

    .status-group {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    .status {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 8px;
        font-weight: 500;
        white-space: nowrap;
    }

    .reservation-details {
        font-size: 12px;
        margin-bottom: 10px;
        color: var(--text-secondary);
        line-height: 1.3;
    }

    /* 操作按钮组优化 - 横向排列 */
    .action-buttons {
        flex-direction: row !important;
        gap: 6px;
        width: 100%;
    }

    .action-buttons .btn {
        flex: 1;
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin-bottom: 0 !important;
        border-radius: 8px;
        min-height: 32px;
        width: auto !important;
    }

    .action-buttons .btn-small {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
        width: auto !important;
    }

    /* 模态框优化 */
    .modal {
        padding: 0;
    }

    .modal-content {
        margin: 20px 16px;
        padding: 20px;
        max-height: calc(100vh - 40px);
        border-radius: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
    }

    .close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
        border-radius: 14px;
    }

    /* 登录容器优化 */
    .login-container {
        max-width: 100%;
        padding: 16px;
    }

    .login-container h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* 提示信息优化 */
    .alert,
    .inline-alert {
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    /* 加载状态优化 */
    .loading {
        padding: 30px 20px;
    }

    .spinner {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .loading p {
        font-size: 13px;
        margin-top: 12px;
    }

    /* 无数据状态优化 */
    .no-data {
        padding: 30px 20px;
        font-size: 13px;
        text-align: center;
        color: var(--text-secondary);
    }

    /* 分隔线优化 */
    .section-divider {
        margin: 16px 0;
    }

    /* 历史记录容器优化 */
    .history-container {
        max-height: 250px;
        padding: 12px;
        border-radius: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .history-container::-webkit-scrollbar {
        width: 4px;
    }

    .history-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    /* 密码修改界面优化 */
    .password-change-container {
        max-width: 100%;
        padding: 16px;
        margin: 0;
        border-radius: 12px;
    }

    /* 时间校正对话框优化 */
    .time-correction-dialog {
        max-width: 100%;
    }

    .time-comparison {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .time-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
        gap: 4px;
    }

    .time-item label {
        font-size: 12px;
        color: var(--text-secondary);
    }

    .time-value {
        font-size: 15px;
        font-weight: 600;
    }

    .reason-box {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .reason-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .reason-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .dialog-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .dialog-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    /* 预约详情优化 */
    .reservation-details-modal {
        max-width: 100%;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        margin-bottom: 8px;
        gap: 4px;
    }

    .detail-item label {
        font-size: 13px;
        font-weight: 600;
        min-width: auto;
        margin-right: 0;
    }

    .detail-item span {
        font-size: 13px;
        width: 100%;
    }

    .detail-explanation {
        padding: 12px;
        margin-top: 16px;
        border-radius: 8px;
    }

    .detail-explanation h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .detail-explanation p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* 随到随签确认优化 */
    .quick-checkin-confirm {
        padding: 16px;
        max-width: 100%;
    }

    .confirm-content p {
        font-size: 14px;
        line-height: 1.5;
        margin: 12px 0;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .confirm-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    /* 小屏幕提示文字优化 */
    small {
        font-size: 12px;
        line-height: 1.3;
    }

    /* 表单提示优化 */
    #seat-range-hint {
        font-size: 12px;
        margin-top: 4px;
        display: block;
    }

    /* 底部导航优化 */
    .bottom-navigation {
        padding: 12px 16px 32px;
        gap: 8px;
    }

    .nav-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
    .container {
        padding: 6px;
    }

    .header {
        padding: 10px 12px;
    }

    .header h1 {
        font-size: 18px;
    }

    .tab-content {
        padding: 12px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
    }

    .btn {
        padding: 14px 18px;
        font-size: 15px;
    }

    .reservation-card {
        padding: 12px;
    }

    .modal-content {
        margin: 16px 12px;
        padding: 16px;
    }

    .switch-label {
        font-size: 13px;
    }

    .time-correction-dialog .dialog-header h3 {
        font-size: 16px;
    }

    /* 新增：alert超小屏样式 */
    .alert-box {
        padding: 16px 20px;
        margin: 12px;
    }
    
    .alert-content {
        padding-top: 8px;
    }
    
    .alert-message {
        font-size: 13px;
        margin-top: 4px;
    }
    .alert-icon {
        font-size: 16px;    /* 超小屏图标更小 */
    }
    
    .alert-close {
        width: 20px;
        height: 20px;
        font-size: 12px;
        border-radius: 10px;
        top: -3px;          /* 进一步向上移动 */
        right: 6px;
    }
}
/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 8px 16px;
    }

    .header h1 {
        font-size: 18px;
    }

    .tab-content {
        padding: 12px 16px;
    }

    .modal-content {
        margin: 10px 16px;
        max-height: calc(100vh - 20px);
    }

    .container {
        padding-bottom: 60px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(71, 99, 132, 0.3);
    }

    .tab:hover:not(.active) {
        background: transparent;
        color: var(--text-secondary);
    }

    .reservation-card:hover {
        transform: none;
        border-color: rgba(154, 168, 182, 0.3);
        box-shadow: 0 2px 8px var(--shadow-color);
    }

    .btn:active {
        transform: scale(0.98);
        box-shadow: 0 4px 16px rgba(71, 99, 132, 0.4);
    }

    .tab:active {
        background: rgba(71, 99, 132, 0.1);
    }
}

/* 安全区域适配 (iPhone X及以上) */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .container {
            padding-left: max(8px, env(safe-area-inset-left));
            padding-right: max(8px, env(safe-area-inset-right));
            padding-bottom: max(80px, env(safe-area-inset-bottom, 80px));
        }

        .header {
            padding-top: max(12px, env(safe-area-inset-top, 12px));
            padding-left: max(16px, env(safe-area-inset-left, 16px));
            padding-right: max(16px, env(safe-area-inset-right, 16px));
        }
    }
}

/* 预约按钮组样式 */
.reservation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

.reservation-buttons .btn {
    flex: 1;
    padding: 14px 16px;        /* 从 12px 0.1px 改为 14px 16px */
    border-radius: 15px;
    font-size: 13px;           /* 从 12px 改为 13px */
    font-weight: 400;          /* 保持不变 */
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(71, 99, 132, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-quick-checkin {
    background: linear-gradient(135deg, var(--error-color), var(--text-secondary));
    color: white;
}

.btn-quick-checkin:hover {
    background: linear-gradient(135deg, var(--text-secondary), var(--error-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(24, 41, 61, 0.4);
}

.btn-today {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    color: white;
}

.btn-today:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(71, 99, 132, 0.4);
}

.btn-tomorrow {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-tomorrow:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(71, 99, 132, 0.4);
}

.reservation-buttons .btn:active {
    transform: translateY(0);
}

/* 手机端优化 */
@media (max-width: 768px) {
    .reservation-buttons {
        gap: 8px;
        margin-top: 16px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .reservation-buttons .btn {
        padding: 13px 10px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
        min-width: 80px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .reservation-buttons {
        gap: 6px;
    }
    
    .reservation-buttons .btn {
        padding: 10px 6px;
        font-size: 11px;
        border-radius: 10px;
    }
}

/* 超小屏优化 */
@media (max-width: 375px) {
    .reservation-buttons .btn {
        padding: 10px 8px;
        font-size: 11px;
        min-width: 75px;
    }
}

/* =================== AI客服相关样式 =================== */

/* 帮助选择界面样式 */
.help-selection-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.help-selection-container h3 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.help-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.help-option-btn {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.help-option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(71, 99, 132, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(71, 99, 132, 0.15);
}

.help-option-btn .help-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.help-option-btn h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.help-option-btn p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 联系站长回复通知徽章 */
.contact-reply-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* AI聊天界面样式 */
.ai-assistant-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 600px;
}

.ai-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.ai-header .back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ai-header .back-btn:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.ai-header .back-btn svg {
    width: 18px;
    height: 18px;
}

.header-title {
    text-align: center;
}

.ai-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.ai-chat-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ai-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    max-height: 100%;
}

.ai-message {
    display: flex;
    gap: 6px;
    animation: messageSlideIn 0.3s ease;
    margin: 0 0 8px 0;
    padding: 0;
    align-items: flex-start;
    flex: 0 0 auto;
}

.ai-message:last-child {
    margin-bottom: 0;
}

.ai-message.ai-user {
    flex-direction: row-reverse;
}

.ai-messages .ai-message.ai-user .message-content {
    background: var(--primary-color);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.ai-messages .ai-message.ai-ai .message-content {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 4px;
}

.ai-messages .ai-message.error .message-content {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-user .message-avatar {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 核心修复：为所有 AI 聊天相关的 .message-content 添加父级选择器 .ai-messages */
.ai-messages .message-content {
    max-width: calc(100% - 40px);
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    margin: 0;
    display: block;
    white-space: pre-line;
}

.ai-messages .message-content p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.ai-messages .message-content p:last-child {
    margin-bottom: 0;
}

.ai-messages .message-content ul {
    margin: 0;
    padding: 0;
    padding-left: 12px;
}

.ai-messages .message-content li {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    list-style-position: inside;
}

/* 处理换行符转换的br标签 */
.ai-messages .message-content br {
    line-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    height: 0;
}

/* 流式响应样式 */
.streaming-content {
    margin: 0 !important;
    display: inline;
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 返回按钮样式 */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn svg {
    flex-shrink: 0;
}

/* AI头部布局 */
.ai-header {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-title h3 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.header-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 使用指南头部 */
.guide-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-background);
}

.guide-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

/* 思考动画 */
.thinking-dots {
    display: flex;
    gap: 2px;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.thinking-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: thinking 1.4s ease-in-out infinite both;
}

/* 思考状态的消息内容 */
.ai-messages .ai-message.thinking .message-content {
    padding: 4px 12px;
    min-height: auto;
    margin: 0;
    line-height: 1.2;
}

.thinking-dots span:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI输入区域 */
.ai-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-background);
    flex-shrink: 0;
}

.ai-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ai-input-container textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    transition: border-color 0.3s ease;
    line-height: 1.4;
}

.ai-input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.ai-input-container textarea::placeholder {
    color: var(--accent-color);
}

#ai-send-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 44px;
}

#ai-send-btn:hover:not(:disabled) {
    background: var(--text-primary);
    transform: translateY(-1px);
}

#ai-send-btn:disabled {
    background: var(--accent-color);
    cursor: not-allowed;
    transform: none;
}

.ai-input-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ai-rate-limit {
    color: var(--accent-color);
}

/* 消息动画 */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .help-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .help-option-btn {
        padding: 20px 16px;
        min-height: 120px;
    }
    
    .help-option-btn .help-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .ai-assistant-container {
        height: 75vh;
        max-height: none;
    }
    
    .ai-header {
        padding: 8px 16px;
    }
    
    .ai-header .back-btn {
        font-size: 16px;
        left: 12px;
        padding: 2px;
    }
    
    .ai-header .back-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .header-title h3 {
        font-size: 18px;
        margin: 0;
    }
    
    .ai-messages {
        padding: 6px;
        gap: 3px;
    }
    
    .ai-input-area {
        padding: 12px;
    }
    
    .ai-messages .message-content {
        font-size: 14px;
        padding: 6px 8px;
        max-width: calc(100vw - 60px);
        line-height: 1.2;
    }
    
    .message-avatar {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .ai-input-container {
        gap: 8px;
    }
    
    #ai-send-btn {
        padding: 10px 14px;
        font-size: 14px;
        height: auto;
        min-height: 40px;
    }
    
    .ai-input-container textarea {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .ai-input-helper {
        margin-top: 6px;
        font-size: 11px;
    }
    
    .guide-header {
        padding: 12px 16px;
    }
    
    .guide-header .back-btn {
        margin-bottom: 8px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .ai-assistant-container {
        height: 80vh;
    }
    
    .ai-messages {
        padding: 6px;
    }
    
    .ai-messages .message-content {
        font-size: 13px;
        padding: 6px 8px;
        max-width: calc(100vw - 60px);
        line-height: 1.2;
    }
    
    .message-avatar {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .ai-input-container textarea {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    #ai-send-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* 滚动条优化 */
.ai-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* =================== 联系站长功能样式 =================== */

/* 联系站长内容容器 - 使用标准modal内容样式 */
.contact-admin-container {
    width: 100%;
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    /* 移除特殊背景，使用modal标准样式 */
}

.contact-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: transparent; /* 使用透明背景 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-messages::-webkit-scrollbar {
    display: none;
}

.contact-messages-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-message-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 168, 182, 0.1);
}

.contact-message-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.message-time {
    color: #999;
    font-size: 12px;
}

.message-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-replied {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.message-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.message-content {
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
    font-size: 14px;
}

.user-message {
    margin-bottom: 12px;
}

.admin-reply {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.reply-content {
    background: rgba(248, 249, 250, 0.8);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #007AFF;
}

.reply-time {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

/* 联系站长输入区域样式 - 参考AI助手样式 */
.contact-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(154, 168, 182, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.contact-notice {
    background: rgba(227, 242, 253, 0.8);
    border: 1px solid rgba(187, 222, 251, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.3;
}

.contact-notice p {
    margin: 2px 0;
    color: #0d47a1;
}

/* 输入容器 - 一行高度设计 */
.contact-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#contact-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(154, 168, 182, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 44px; /* 固定一行高度 */
    min-height: 44px;
    max-height: 44px;
    transition: border-color 0.3s ease;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    box-sizing: border-box;
}

#contact-input:focus {
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.95);
}

#contact-input::placeholder {
    color: #c7c7cc;
}

#contact-send-btn {
    padding: 12px 20px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 44px; /* 与输入框同高 */
    min-width: 60px;
    box-sizing: border-box;
    flex-shrink: 0;
}

#contact-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

#contact-send-btn:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
    transform: none;
}

.contact-input-helper {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

/* 联系站长无消息状态 */
.contact-admin-container .no-messages {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.contact-admin-container .no-messages p {
    font-size: 15px;
    margin-bottom: 8px;
}

/* 联系站长响应式设计 */
@media (max-width: 768px) {
    .contact-admin-container {
        height: 85vh;
        max-height: none;
    }
    
    .contact-messages-list {
        padding: 16px;
        gap: 12px;
    }
    
    .contact-message-item {
        padding: 12px;
        border-radius: 8px;
    }
    
    .contact-input-area {
        padding: 12px;
    }
    
    .contact-input-container {
        gap: 8px;
    }
    
    #contact-input {
        padding: 10px 14px;
        border-radius: 10px;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    #contact-send-btn {
        padding: 10px 16px;
        border-radius: 10px;
        height: 40px;
        min-width: 50px;
        font-size: 13px;
    }
    
    .contact-notice {
        padding: 8px 10px;
        margin-bottom: 10px;
        font-size: 11px;
    }
    
    .contact-admin-container .no-messages {
        padding: 40px 16px;
    }
}

/* 联系站长加载状态 */
.loading-messages {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.loading-messages .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

/* =================================== */
/* 错误提示框内ai和联系站长 (新增)     */
/* =================================== */
.alert-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color); /* 使用主题边框色 */
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

.alert-action-btn {
    background-color: var(--secondary-color); /* 使用主题次要颜色 */
    color: var(--text-primary); /* 使用主题主要文字颜色 */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-action-btn:hover {
    background-color: var(--accent-color); /* 使用主题强调色 */
    color: white;
}

/* AI助手和联系站长按钮使用相同的强调样式 */
.alert-action-btn.ai-assistant,
.alert-action-btn.contact-admin {
    background-color: rgba(71, 99, 132, 0.1); /* 使用主色调的半透明背景 */
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.alert-action-btn.ai-assistant:hover,
.alert-action-btn.contact-admin:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 保留座位状态样式 */
.preserve-seat-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preserve-icon {
    font-size: 20px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.preserve-text {
    flex: 1;
    line-height: 1.4;
}

.preserve-text strong {
    font-weight: 600;
}

.preserve-seat-status .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.preserve-seat-status .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preserve-seat-status {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .preserve-icon {
        font-size: 18px;
    }
}

/* 页面下拉调整 */
body.preserve-active {
    padding-top: 80px;
}

/* 保留座位进度模态框样式 */
.preservation-status {
    padding: 20px 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: var(--accent-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--accent-color);
    color: white;
}

.step-text {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.step.active .step-text {
    color: var(--accent-color);
    font-weight: 500;
}

.preservation-note {
    background: #f8f9fa;
    border-left: 4px solid var(--info-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.preservation-note p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.preservation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.countdown-display {
    font-weight: bold;
    color: var(--success-color);
}

.countdown-display.warning {
    color: var(--warning-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.status-text.active {
    color: var(--success-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-steps {
        padding: 0 5px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 11px;
    }
    
    .preservation-actions {
        flex-direction: column;
    }
    
    .preservation-actions .btn {
        width: 100%;
    }
}

/* 帮助中心登出按钮样式 */
.help-logout-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 122, 255, 0.1);
    text-align: center;
}

.help-logout-btn {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.2));
    color: #007AFF;
    border: 2px solid rgba(0, 122, 255, 0.3);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.help-logout-btn:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.3));
    border-color: rgba(0, 122, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.help-logout-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.3), rgba(0, 122, 255, 0.4));
}

.help-logout-btn svg {
    width: 16px;
    height: 16px;
}

/* --- 新增：联系站长用户端多回复样式 --- */

/* 每个独立回复项的容器 */
.admin-reply-item {
    background: #e3f2fd; /* 淡蓝色背景 */
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px; /* 和其他回复项隔开 */
    border-left: 3px solid #2196F3; /* 左侧蓝色强调线 */
}

/* 回复头部（包含"站长回复于..."） */
.admin-reply-item .reply-header {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #bbdefb; /* 虚线分隔 */
}

/* 每次回复的具体内容 */
.admin-reply-item .reply-content-item {
    font-size: 14px;
    line-height: 1.5;
    color: #0d47a1; /* 深蓝色文字 */
    white-space: pre-wrap; /* 保留换行符 */
}

/* 移除旧的 reply-content 样式，因为它现在被 admin-reply-item 替代 */
.contact-message-item .reply-content {
    background: none;
    padding: 0;
    border-left: none;
}

/* =================== 实时状态页面样式 =================== */
#seat-status .loading {
    display: block;
}

.floor-card {
    background: var(--card-background);
    border: 1px solid rgba(154, 168, 182, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.floor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.floor-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.floor-stats {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.floor-progress-bar {
    width: 100%;
    height: 8px; /* 细线样式 */
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.5s ease-out, background-color 0.5s ease-out;
}

/* 进度条颜色变化 */
.progress-fill.low {
    background: linear-gradient(90deg, #28a745, #218838); /* 绿色 - 空闲 */
}
.progress-fill.medium {
    background: linear-gradient(90deg, #ffc107, #e0a800); /* 黄色 - 适中 */
}
.progress-fill.high {
    background: linear-gradient(90deg, #dc3545, #c82333); /* 红色 - 繁忙 */
}
.progress-fill.full {
    background: linear-gradient(90deg, #6f42c1, #5a32a3); /* 紫色 - 满座 */
}

/* 可展开的区域详情 */
.toggle-details-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.toggle-details-btn .arrow {
    transition: transform 0.3s ease;
}
.toggle-details-btn.expanded .arrow {
    transform: rotate(90deg);
}

.area-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid var(--secondary-color);
}

.area-details.expanded {
    max-height: 500px;
}

.area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 总体统计组件样式 */
.seat-summary-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(154, 168, 182, 0.2);
}
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.summary-refresh-btn {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.summary-refresh-btn:hover {
    background: var(--accent-color);
    color: white;
}
.summary-refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}
.summary-content {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.summary-item { flex: 1; }
.summary-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}
.summary-value.loading {
    color: var(--text-secondary);
    opacity: 0.7;
}
.summary-label {
    font-size: 12px;
    color: var(--text-secondary);
}
.summary-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    margin: 12px 0;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 0.5s ease-out;
}
.summary-footer {
    text-align: right;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
}
