/* ==================== 表单元素 ==================== */
input, select, textarea {
    font-family: inherit;
    font-size: 14px;
}

/* 输入框样式 */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 下拉选择框样式 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 下拉选项样式 */
select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px;
}

/* 数字输入框样式 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 单选框和复选框样式 */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* 上传文件按钮 */
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-cancel {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-cancel:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 分割线 */
.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* 成功消息 */
.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-bottom: 15px;
}

/* 错误消息 */
.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 67, 54, 0.3);
    margin-bottom: 15px;
}

/* 警告消息 */
.warning-message {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin-bottom: 15px;
}

/* 信息消息 */
.info-message {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(33, 150, 243, 0.3);
    margin-bottom: 15px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 14px;
    margin-bottom: 20px;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--glass-border);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-primary {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tag-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.tag-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tag-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-danger {
    background: #f44336;
    color: white;
}

/* 进度条样式 */
.progress {
    width: 100%;
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination a.active {
    background: var(--primary);
    color: white;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 15% auto;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 滑块样式 */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--glass-bg);
    outline: none;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-bg);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .slider-toggle:before {
    transform: translateX(26px);
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.grid-item {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: 0 4px 15px var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glass-shadow);
}

/* 浮动按钮 */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    font-size: 12px;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
}

/* 折叠面板 */
.collapsible {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
}

.collapsible-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.collapsible-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.active {
    padding: 15px;
    max-height: 500px;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-image {
    height: 150px;
    margin-bottom: 15px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 4px;
}

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

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

/* 选择文本样式 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.6);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: rgba(0, 0, 0, 0.5);
    }
}

/* 浅色模式优化 */
@media (prefers-color-scheme: light) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.9);
        --glass-border: rgba(0, 0, 0, 0.1);
        --glass-shadow: rgba(0, 0, 0, 0.1);
        --text-primary: #333;
        --text-secondary: #666;
        --text-muted: #999;
    }
}

/* 小屏幕设备 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    .tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .tab {
        white-space: nowrap;
    }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .card {
        padding: 15px;
    }
    .btn {
        padding: 10px 20px;
    }
    .top-nav {
        padding: 10px 15px;
    }
    .bottom-nav {
        padding: 10px;
    }
    .nav-item span {
        font-size: 12px;
    }
}
    --input-bg: rgba(0, 0, 0, 0.4);
}

/* 主题3: 亮色系 (Light) */
:root[data-theme="light"] {
    --gradient-1: #f5f5f5;
    --gradient-2: #e0e0e0;
    --gradient-3: #ffffff;
    --gradient-4: #f0f0f0;
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    --text-gray: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(255, 255, 255, 1);
    --card-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(255, 255, 255, 1);
}

/* 主题4: 渐变系 (Gradient) */
:root[data-theme="gradient"] {
    --gradient-1: #ff6b6b;
    --gradient-2: #feca57;
    --gradient-3: #48dbfb;
    --gradient-4: #ff9ff3;
    --primary: #ff6b6b;
    --secondary: #feca57;
    --accent: #48dbfb;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-gray: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.2);
    --card-border: rgba(255, 255, 255, 0.35);
    --nav-bg: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(255, 255, 255, 0.25);
}

/* 主题5: 日落系 (Sunset) */
:root[data-theme="sunset"] {
    --gradient-1: #ff416c;
    --gradient-2: #ff4b2b;
    --gradient-3: #f7b733;
    --gradient-4: #ff6b6b;
    --primary: #ff416c;
    --secondary: #ff4b2b;
    --accent: #f7b733;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-gray: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.2);
}

/* 主题6: 森林系 (Forest) */
:root[data-theme="forest"] {
    --gradient-1: #11998e;
    --gradient-2: #38ef7d;
    --gradient-3: #0f3443;
    --gradient-4: #34e89e;
    --primary: #11998e;
    --secondary: #38ef7d;
    --accent: #0f3443;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-gray: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.25);
    --nav-bg: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.15);
}

/* 主题7: 海洋系 (Ocean) */
:root[data-theme="ocean"] {
    --gradient-1: #1a2980;
    --gradient-2: #26d0ce;
    --gradient-3: #1a2980;
    --gradient-4: #2b86c5;
    --primary: #26d0ce;
    --secondary: #1a2980;
    --accent: #2b86c5;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-gray: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --nav-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
}

/* 主题8: 紫罗兰系 (Violet) */
:root[data-theme="violet"] {
    --gradient-1: #7f00ff;
    --gradient-2: #e100ff;
    --gradient-3: #ff6b6b;
    --gradient-4: #feca57;
    --primary: #7f00ff;
    --secondary: #e100ff;
    --accent: #feca57;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(127, 0, 255, 0.3);
    --glass-shadow: rgba(127, 0, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-gray: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(127, 0, 255, 0.25);
    --nav-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
}

/* 暗色主题背景 */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .banner,
:root[data-theme="dark"] .staff-header {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

/* 亮色主题背景 */
:root[data-theme="light"] body {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

:root[data-theme="light"] .banner,
:root[data-theme="light"] .staff-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 渐变主题背景 */
:root[data-theme="gradient"] body {
    background: linear-gradient(-45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 日落主题背景 */
:root[data-theme="sunset"] body {
    background: linear-gradient(-45deg, #ff416c, #ff4b2b, #f7b733, #ff6b6b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 森林主题背景 */
:root[data-theme="forest"] body {
    background: linear-gradient(-45deg, #11998e, #38ef7d, #0f3443, #34e89e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 海洋主题背景 */
:root[data-theme="ocean"] body {
    background: linear-gradient(-45deg, #1a2980, #26d0ce, #1a2980, #2b86c5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 紫罗兰主题背景 */
:root[data-theme="violet"] body {
    background: linear-gradient(-45deg, #7f00ff, #e100ff, #ff6b6b, #feca57);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 图片主题背景 - 通过class添加 */
body.theme-image {
    background: url('../images/bg-theme.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.theme-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 自定义背景图片主题 */
body.theme-custom-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body.theme-custom-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ==================== 通用变量 ==================== */
:root {
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(-45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.02em;
}

/* 全局字体设置 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* 标题样式优化 */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 卡片标题 */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

/* 卡片描述 */
.product-desc {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* 卡片名称 */
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 卡片元信息 */
.product-meta {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* 价格样式 */
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

/* 标签样式 */
.tag {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

/* 按钮字体 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

/* 导航字体 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
}

/* 搜索框字体 */
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    padding: 12px 0;
    letter-spacing: 0.01em;
}

/* 空状态字体 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    opacity: 0.7;
}

/* 底部导航字体 */
.nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 增强文字可读性 */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 响应式字体调整 */
@media (max-width: 375px) {
    .banner h2 {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* 动态渐变背景动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== 玻璃容器 ==================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* 玻璃卡片 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

/* ==================== 顶部导航 ==================== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.back-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.back-btn:active {
    transform: scale(0.95);
}

.nav-icons {
    display: flex;
    gap: 16px;
}

.nav-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.nav-icon:active {
    transform: scale(0.95);
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    padding: 16px 20px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.search-icon {
    padding: 12px;
    font-size: 18px;
    opacity: 0.8;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 12px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 100%);
}

/* ==================== Banner轮播 ==================== */
.banner {
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.banner p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.banner-decor {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    top: -30px;
    right: -30px;
    animation: float 6s ease-in-out infinite;
}

.banner-decor-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    bottom: -20px;
    left: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==================== 分类导航 ==================== */
.categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex-shrink: 0;
    width: 80px;
    padding: 16px 12px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card:active {
    transform: translateY(-4px) scale(1.02);
}

.category-emoji {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

/* ==================== 产品卡片 ==================== */
.product-list {
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 0 20px;
}

.product-card {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.product-card:active {
    transform: translateY(-4px) scale(1.01);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.product-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.product-meta {
    font-size: 13px;
    opacity: 0.75;
    color: var(--text-secondary);
}

.product-body {
    margin-bottom: 14px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-desc {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd166 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.product-tags {
    display: flex;
    gap: 6px;
}

.tag {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* ==================== 订单卡片 ==================== */
.order-card {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-id {
    font-size: 12px;
    opacity: 0.7;
}

.order-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 152, 0, 0.3);
    color: #ffb74d;
}

.status-processing {
    background: rgba(33, 150, 243, 0.3);
    color: #64b5f6;
}

.status-completed {
    background: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.order-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.order-tab {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.order-tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.order-tab.active {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

/* ==================== 面板标签 ==================== */
.panel-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.panel-tab {
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.panel-tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.panel-tab.active {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

/* ==================== 消息标签 ==================== */
.message-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.message-tab {
    flex: 1;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.message-tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.message-tab.active {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

/* ==================== 按钮组件 ==================== */
.btn-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-small:active {
    transform: translateY(0);
}

.btn-pay {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.btn-pay:hover {
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(244, 67, 54, 0.5);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

.btn-message {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-order-now {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
}

/* ==================== 店员详情 ==================== */
.staff-detail-header {
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.staff-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.staff-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.staff-detail-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.staff-detail-rating {
    font-size: 16px;
    margin-bottom: 16px;
}

.staff-detail-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.staff-stat {
    text-align: center;
}

.staff-stat-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd166, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.staff-stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

.staff-price-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.staff-detail-section {
    padding: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-detail-tag {
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 12px;
}

.staff-games-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.staff-game-card {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.staff-game-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.staff-game-name {
    font-size: 14px;
    font-weight: 600;
}

/* ==================== 聊天界面 ==================== */
.chat-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.chat-title {
    flex: 1;
}

.chat-title h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-title p {
    font-size: 12px;
    opacity: 0.7;
}

.online-count {
    font-size: 12px;
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.friend-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    border-color: var(--gradient-1);
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.friend-meta {
    font-size: 12px;
    opacity: 0.7;
}

.friend-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #f5576c;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-last-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-messages {
    padding: 0 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-message.own {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-message.own .chat-message-avatar {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.chat-message-content {
    max-width: 70%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.own .chat-message-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
}

.chat-message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-area {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-header-btn {
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chat-header-btn.danger {
    color: #ff6b6b;
}

.chat-header-btn.danger:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* ==================== 状态按钮 ==================== */
.pending-btn, .rejected-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pending-btn {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
}

.rejected-btn {
    background: rgba(244, 67, 54, 0.8);
    color: white;
}

.pending-btn:hover, .rejected-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==================== 消息列表 ==================== */
.message-list {
    padding: 0 20px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.message-content {
    flex: 1;
}

.message-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f5576c;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.message-preview {
    font-size: 13px;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-left: auto;
}

.contact-list {
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-role {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== 联系卡片 ==================== */
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-card.qq .contact-card-icon {
    background: linear-gradient(135deg, #12b7f5, #1e88e5);
}

.contact-card.phone .contact-card-icon {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.contact-card.email .contact-card-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.contact-card-info {
    flex: 1;
}

.contact-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 13px;
    opacity: 0.8;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active i {
    transform: scale(1.2);
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd166 0%, #f093fb 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(240, 147, 251, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==================== 表单增强 ==================== */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.85;
}

.form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-item-label {
    font-size: 14px;
    font-weight: 500;
}

.form-item-value {
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== 设置菜单 ==================== */
.settings-list {
    padding: 0 20px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.settings-item-icon.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.settings-item-icon.green {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.settings-item-icon.red {
    background: linear-gradient(135deg, #f5576c, #ff6b6b);
}

.settings-item-icon.orange {
    background: linear-gradient(135deg, #ffd166, #f093fb);
}

.settings-item-info {
    flex: 1;
}

.settings-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.settings-item-desc {
    font-size: 12px;
    opacity: 0.7;
}

.settings-item-arrow {
    font-size: 18px;
    opacity: 0.5;
}

/* ==================== 菜单项 ==================== */
.menu-list {
    padding: 0 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-item-content {
    flex: 1;
}

.menu-item-title {
    font-size: 15px;
    font-weight: 600;
}

.menu-item-desc {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

/* ==================== 统计卡片 ==================== */
.stat-card {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card-icon.purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card-icon.pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card-icon.green {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.stat-card-icon.orange {
    background: linear-gradient(135deg, #ffd166, #f093fb);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    opacity: 0.7;
}

/* ==================== 操作按钮 ==================== */
.action-btn {
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

.action-btn.danger {
    background: rgba(244, 67, 54, 0.8);
    border-color: transparent;
}

.action-btn.success {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
    border-color: transparent;
}

/* ==================== 快捷操作 ==================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-icon.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.quick-action-icon.pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.quick-action-icon.green {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.quick-action-icon.orange {
    background: linear-gradient(135deg, #ffd166, #f093fb);
}

.quick-action-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

/* ==================== 服务卡片 ==================== */
.service-list {
    padding: 0 20px;
}

.service-card {
    padding: 20px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.service-item-content {
    flex: 1;
}

.service-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.service-item-desc {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ==================== 支付方式 ==================== */
.pay-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pay-type-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.pay-type-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #f093fb;
    cursor: pointer;
    flex-shrink: 0;
}

.pay-type-item input[type="radio"]:checked + .pay-type-content {
    border-color: #f093fb;
}

.pay-type-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.pay-type-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pay-type-info {
    flex: 1;
}

.pay-type-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pay-type-desc {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== 状态标签 ==================== */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-pending {
    background: rgba(255, 209, 102, 0.3);
    color: #ffd166;
}

.status-success {
    background: rgba(6, 214, 160, 0.3);
    color: #06d6a0;
}

.status-error {
    background: rgba(239, 71, 111, 0.3);
    color: #ef476f;
}

/* ==================== 加载动画 ==================== */
.loading {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== 评分 ==================== */
.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #ffd166;
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.rating span {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

/* ==================== 弹窗/Modal ==================== */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 380px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content,
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-area {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    opacity: 0.7;
}

/* ==================== 员工下拉菜单 ==================== */
.staff-dropdown-wrapper {
    position: relative;
    margin-top: 8px;
}

.staff-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.staff-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.staff-dropdown.active {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.staff-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.staff-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.staff-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-dropdown-info {
    flex: 1;
    min-width: 0;
}

.staff-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-dropdown-rating {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 8px;
}

.staff-dropdown-desc {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-dropdown-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.staff-dropdown-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.staff-dropdown-arrow {
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.staff-dropdown.active .staff-dropdown-arrow {
    transform: rotate(180deg);
}

.staff-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.staff-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-dropdown-item:last-child {
    border-bottom: none;
}

.staff-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.staff-dropdown-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    border-left: 3px solid var(--gradient-1);
}

/* ==================== 邀请弹窗 ==================== */
.invite-modal-content {
    max-width: 400px;
}

.invite-order-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.invite-order-item:hover {
    border-color: var(--gradient-1);
    background: rgba(255, 255, 255, 0.15);
}

.invite-order-item.selected {
    border-color: var(--gradient-1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    color: white;
}

.invite-order-item.selected .order-info {
    color: rgba(255, 255, 255, 0.9);
}

.invite-order-item.selected .order-price {
    color: white;
}

.invite-order-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.order-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.order-price {
    color: #ff6b6b;
    font-weight: bold;
}

/* ==================== 编辑弹窗 ==================== */
.edit-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

/* ==================== 动画入场 ==================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 主题选择器 ==================== */
.theme-switcher-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switcher-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.theme-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.theme-picker-modal.active {
    display: flex;
}

.theme-picker-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.theme-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.theme-picker-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-picker-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-picker-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.theme-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-picker-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.theme-picker-item.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.3);
}

.theme-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* 主题预览图片 */
.theme-preview-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==================== 媒体查询 ==================== */
@media (max-width: 375px) {
    .theme-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-preview {
        width: 50px;
        height: 50px;
    }
}

/* ==================== 图片主题遮罩 ==================== */
body.theme-image .container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-xl);
    padding: 20px;
}

body.theme-image .glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
}

body.theme-image .top-nav {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    margin: 0 0 20px 0;
}

body.theme-image .bottom-nav {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

body.theme-image .product-card,
body.theme-image .staff-card,
body.theme-image .order-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
}