/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Microsoft YaHei, SimHei, sans-serif;
    background-color: #f0f2f5;
    color: #262626;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 响应式基础 */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* 企业微信兼容 */
@media screen and (max-width: 480px) {
    /* 隐藏企业微信导航栏 */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 颜色变量 */
:root {
    --primary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --info-color: #1890ff;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-primary: #262626;
    --text-secondary: #8c8c8c;
    --border-color: #e8e8e8;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    padding: 20px;
}

.login-card {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* 响应式登录页面 */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .login-card h2 {
        font-size: 18px;
        margin-bottom: 24px;
    }
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: Microsoft YaHei, SimHei, sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    padding: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}

.form-group .error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* 响应式表单 */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        height: 52px;
        font-size: 16px;
        padding: 0 16px;
    }
    
    .form-group textarea {
        height: 120px;
    }
}

/* 按钮样式 */
.btn {
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 16px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

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

.btn-primary:hover {
    background-color: #40a9ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e6f7ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #ff4d4f;
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.4);
}

.btn:disabled,
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #d9d9d9;
    border-color: #d9d9d9;
    color: #8c8c8c;
    box-shadow: none;
}

/* 按钮组 */
.btn-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    gap: 12px;
}

.btn-group button {
    margin-bottom: 0;
}

/* 响应式按钮 */
@media screen and (max-width: 768px) {
    .btn {
        height: 48px;
        font-size: 16px;
        padding: 0 20px;
        min-width: 120px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-group button {
        width: 100%;
    }
    
    /* 确保所有输入框在移动端宽度100% */
    input, select, textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* 确保卡片在移动端宽度100% */
    .card {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 确保照片上传区域在移动端宽度100% */
    .photo-upload {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 微信登录区域 */
.wechat-login {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.wechat-login p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* 流程页面样式 */
.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 80px;
    min-height: calc(100vh - 64px);
}

/* 移动端流程页面 */
@media screen and (max-width: 768px) {
    .process-container {
        padding: 16px;
        padding-top: 66px;
        min-height: calc(100vh - 50px);
    }
}

/* 步骤导航 */
.steps-nav {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 32px 0;
    position: relative;
    padding: 0 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.steps-nav::-webkit-scrollbar {
    display: none;
}

.steps-nav::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 14.28%;
    min-width: 100px;
    transition: all 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    box-shadow: 0 0 0 4px rgba(250, 173, 20, 0.2);
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.2);
}

.step-title {
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.step-item.active .step-title {
    color: var(--warning-color);
    font-weight: 500;
}

.step-item.completed .step-title {
    color: var(--primary-color);
    font-weight: 500;
}

.step-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

.step-item.locked .step-number {
    background-color: #d9d9d9;
    border-color: #d9d9d9;
    color: #8c8c8c;
}

.step-item.locked .step-title {
    color: #8c8c8c;
}

/* 响应式步骤导航 */
@media screen and (max-width: 768px) {
    .steps-nav {
        margin: 20px 0 28px 0;
        padding: 0 12px;
        justify-content: space-between;
        gap: 8px;
        padding-bottom: 12px;
        gap: 0;
    }
    
    .steps-nav::before {
        left: 12px;
        right: 12px;
        top: 18px;
    }
    
    .step-item {
        min-width: 80px;
        flex-shrink: 0;
        width: 12.5%;
        flex: 0 0 auto;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .step-title {
        font-size: 12px;
        padding: 0 4px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .step-item.active .step-number {
        transform: scale(1.1);
    }
    
    .step-item.completed .step-number {
        box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.2);
    }
    
    .step-item.active .step-number {
        box-shadow: 0 0 0 4px rgba(250, 173, 20, 0.2);
    }
}

/* 手机端优化（小于480px） */
@media screen and (max-width: 480px) {
    .steps-nav {
        margin: 16px 0 24px 0;
        padding: 0 8px;
        justify-content: space-between;
        gap: 0;
    }
    
    .steps-nav::before {
        left: 8px;
        right: 8px;
        top: 16px;
    }
    
    .step-item {
        min-width: 70px;
        flex: 0 0 auto;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .step-title {
        font-size: 11px;
        max-width: 70px;
        line-height: 1.3;
    }
}

/* 超小屏幕适配（小于400px） */
@media screen and (max-width: 400px) {
    .steps-nav {
        margin: 14px 0 20px 0;
        padding: 0 6px;
        justify-content: space-between;
        gap: 0;
        overflow-x: auto;
    }
    
    .steps-nav::before {
        left: 6px;
        right: 6px;
        top: 14px;
    }
    
    .step-item {
        min-width: 65px;
        flex: 0 0 auto;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .step-title {
        font-size: 10px;
        max-width: 65px;
        line-height: 1.2;
    }
}

/* 卡片样式 */
.card {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 响应式卡片 */
@media screen and (max-width: 768px) {
    .card {
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* 表单样式 */
.form-row {
    display: flex;
    margin-bottom: 16px;
}

.form-col {
    flex: 1;
    margin-right: 16px;
}

.form-col:last-child {
    margin-right: 0;
}

/* 照片上传样式 */
.photo-upload {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.photo-upload:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.photo-upload.active {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.photo-upload .upload-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.photo-upload .upload-text p:first-child {
    font-size: 32px;
    margin-bottom: 12px;
}

.photo-upload .upload-text p:last-child {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 8px;
}

/* 手机端照片上传优化 */
@media screen and (max-width: 768px) {
    .photo-upload {
        padding: 24px 16px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .photo-upload .upload-text {
        font-size: 14px;
    }
    
    .photo-upload .upload-text p:first-child {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .photo-upload .upload-text p:last-child {
        font-size: 11px;
        margin-top: 6px;
    }
}

@media screen and (max-width: 480px) {
    .photo-upload {
        padding: 20px 12px;
        border-radius: 10px;
    }
    
    .photo-upload .upload-text {
        font-size: 13px;
    }
    
    .photo-upload .upload-text p:first-child {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .photo-upload .upload-text p:last-child {
        font-size: 10px;
        margin-top: 4px;
    }
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    margin: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: rgba(245, 34, 45, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-item:hover .remove-btn {
    opacity: 1;
}

.photo-item .remove-btn:hover {
    background-color: var(--error-color);
}

/* 照片定位徽章 */
.photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--success-color);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 单选按钮样式 */
input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

input[type="radio"] + label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

/* 定位状态提示 */
.location-status {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f0f8ff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.location-status .location-icon {
    margin-right: 8px;
    font-size: 18px;
}

.location-status.success {
    background-color: #f6ffed;
    color: var(--success-color);
}

.location-status.error {
    background-color: #fff2f0;
    color: var(--error-color);
}

/* 退回意见提示 */
.reject-notice {
    margin-top: 16px;
    padding: 16px;
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    margin-bottom: 16px;
}

.reject-notice p {
    margin: 0;
    line-height: 1.6;
}

/* 响应式照片上传 */
@media screen and (max-width: 768px) {
    .photo-upload {
        padding: 32px 16px;
        margin-bottom: 16px;
    }
    
    .photo-upload .upload-icon {
        font-size: 48px;
    }
    
    .photo-upload .upload-text {
        font-size: 14px;
    }
    
    .photo-item img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .photo-item .remove-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* 照片预览弹窗 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.photo-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 按钮组 */
.btn-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    gap: 12px;
}

.btn-group button {
    margin-left: 0;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--primary-color);
    margin-left: 8px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 消息提示 */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

/* 筛选弹窗 */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    background-color: #f0f2f5;
}

.filter-modal-content {
    margin-bottom: 24px;
}

.filter-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 响应式筛选弹窗 */
@media screen and (max-width: 768px) {
    .filter-modal {
        padding: 16px;
    }
    
    .filter-modal-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .filter-modal-title {
        font-size: 16px;
    }
    
    .filter-modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .filter-modal-footer {
        flex-direction: column;
        margin-top: 20px;
        padding-top: 12px;
    }
}

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

.message-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: var(--success-color);
}

.message-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: var(--error-color);
}

.message-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: var(--warning-color);
}

.message-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: var(--info-color);
}

.message-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8c8c8c;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-header .close-btn:hover {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #e8e8e8;
    background-color: #fafafa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-footer .btn-secondary {
    margin-left: 10px;
}

/* 流程状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fffbe6;
    color: var(--warning-color);
}

.status-processing {
    background-color: #e6f7ff;
    color: var(--info-color);
}

.status-completed {
    background-color: #f6ffed;
    color: var(--success-color);
}

.status-exception {
    background-color: #fff2f0;
    color: var(--error-color);
}

/* 管理员页面样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: calc(100vh - 64px);
}

/* 流程详情页面样式 */
.flow-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 顶部导航栏 - PC端 */
.top-nav {
    height: 64px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-nav .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.top-nav .nav-menu {
    display: none;
}

.top-nav .user-info {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: auto;
}

/* 顶部导航栏 - PC端 */
.top-nav {
    height: 64px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-nav .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    margin-right: 32px;
}

.top-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    flex: 1;
}

.top-nav .nav-item {
    margin-right: 24px;
}

.top-nav .nav-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

.top-nav .nav-item a:hover {
    color: var(--primary-color);
}

.top-nav .nav-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.top-nav .user-info {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 24px;
}

/* 移动端顶部导航栏 */
@media screen and (max-width: 768px) {
    .top-nav {
        height: 56px;
        padding: 0 12px;
        z-index: 1001;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .top-nav .logo {
        font-size: 14px;
        margin-right: 0;
        flex: none;
    }
    
    .top-nav .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .top-nav .nav-item {
        margin-right: 16px;
    }
    
    .top-nav .nav-item a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 12px;
    }
    
    .top-nav .user-info {
        font-size: 12px;
        flex: none;
        margin-left: 0;
    }
    
    .top-nav .user-info span {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 8px;
    }
    
    .top-nav #logoutBtn {
        padding: 0 8px;
        height: 24px;
        font-size: 12px;
    }
}

/* 移动端导航菜单 - 单独一行 */
@media screen and (max-width: 768px) {
    .top-nav + .admin-container {
        margin-top: 56px;
    }
    
    /* 移动端顶部主菜单 */
    .mobile-main-menu {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 999;
        background-color: #f0f7ff;
    }
    
    .mobile-main-menu .nav-item {
        padding: 10px 16px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        flex: 0 0 auto;
    }
    
    .mobile-main-menu .nav-item a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }
    
    .mobile-main-menu .nav-item.active a {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .top-nav + .admin-container .sidebar {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 998;
        background-color: #f0f7ff;
    }
    
    .top-nav + .admin-container .sidebar .menu-item {
        padding: 10px 16px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        flex: 0 0 auto;
        font-size: 12px;
    }
    
    .top-nav + .admin-container .sidebar .menu-item.active {
        border-right: 1px solid var(--border-color);
        border-bottom: 3px solid var(--primary-color);
    }
    
    .top-nav + .admin-container .main-content {
        margin-left: 0;
        margin-top: 10px;
        min-height: calc(100vh - 176px);
        padding: 12px;
    }
}

/* 左侧菜单 */
.sidebar {
    width: 200px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    padding: 16px 0;
    float: left;
    height: calc(100vh - 64px);
    margin-top: 64px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
}

/* 移动端导航菜单 - 单独一行 */
@media screen and (max-width: 768px) {
    /* 调整顶部导航栏 */
    .top-nav {
        height: 56px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }
    
    .top-nav .logo {
        font-size: 14px;
        margin-right: 0;
    }
    
    .top-nav .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .top-nav .nav-item {
        margin-right: 16px;
    }
    
    .top-nav .nav-item a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 12px;
    }
    
    .top-nav .user-info {
        font-size: 12px;
    }
    
    /* 移动端顶部主菜单 - 显示在蓝色区域里 */
    .mobile-main-menu {
        display: flex !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        height: 48px;
        line-height: 48px;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        white-space: nowrap;
        z-index: 1000;
        background-color: #f0f7ff;
    }
    
    .mobile-main-menu .nav-item {
        padding: 0 16px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        flex: 0 0 auto;
        height: 48px;
        line-height: 48px;
    }
    
    .mobile-main-menu .nav-item a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }
    
    .mobile-main-menu .nav-item.active a {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    /* 调整容器边距 */
    .admin-container {
        margin-top: 104px !important;
        min-height: calc(100vh - 104px);
    }
    
    /* 调整侧边栏 */
    .admin-container .sidebar {
        position: sticky;
        top: 104px;
        left: 0;
        right: 0;
        width: 100%;
        height: 48px;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 99;
        background-color: #f0f7ff;
    }
    
    .admin-container .sidebar .menu-item {
        padding: 0 16px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        flex: 0 0 auto;
        font-size: 12px;
        height: 48px;
        display: flex;
        align-items: center;
    }
    
    .admin-container .sidebar .menu-item.active {
        border-right: 1px solid var(--border-color);
        border-bottom: 3px solid var(--primary-color);
    }
    
    /* 调整主内容区 */
    .admin-container .main-content {
        margin-left: 0;
        margin-top: 0;
        min-height: calc(100vh - 152px);
        padding: 12px;
        padding-top: 20px;
    }
}

.sidebar .menu-item {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-primary);
}

.sidebar .menu-item:hover {
    background-color: #f0f2f5;
}

.sidebar .menu-item.active {
    background-color: #e6f7ff;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* 主内容区 */
.main-content {
    margin-left: 216px;
    padding: 16px;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 响应式管理员页面 */
@media screen and (max-width: 768px) {
    .admin-container {
        padding: 0;
    }
    
    .top-nav {
        height: 56px;
        padding: 0 12px;
    }
    
    .sidebar {
        width: 100%;
        height: 48px;
        line-height: 48px;
        position: sticky;
        top: 104px;
        float: none;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 99;
    }
    
    .sidebar .menu-item {
        padding: 0 12px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        height: 48px;
        line-height: 48px;
    }
    
    .sidebar .menu-item.active {
        border-right: 1px solid var(--border-color);
        border-bottom: 3px solid var(--primary-color);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
        min-height: calc(100vh - 152px);
        padding: 12px;
        padding-top: 20px;
    }
}

/* 表格样式 */
.table-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #fafafa;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-word;
}

.table tr:hover {
    background-color: #fafafa;
}

/* 响应式表格 */
@media screen and (max-width: 768px) {
    .table-container {
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 12px;
        font-size: 14px;
    }
    
    /* 优化表格在移动端的显示 */
    .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
}

/* 筛选区域 */
.filter-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-item {
    flex: 1;
    min-width: 120px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-item input,
.filter-item select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 响应式筛选区域 */
@media screen and (max-width: 768px) {
    .filter-section {
        padding: 12px;
        border-radius: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-item {
        width: 100%;
        min-width: unset;
    }
    
    .filter-item input,
    .filter-item select {
        height: 48px;
        font-size: 16px;
        padding: 0 16px;
    }
    
    .filter-item label {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* 统计卡片 */
.stats-container {
    display: flex;
    margin-bottom: 16px;
    gap: 16px;
}

.stat-card {
    flex: 1;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

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

.stat-header h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.period-selector select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    background-color: white;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-value.loading {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 加载动画 */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 加载动画 */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

/* 图表区域 */
.charts-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-card {
    flex: 1;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

/* 响应式图表 */
@media screen and (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .charts-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .chart-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .period-selector select {
        height: 36px;
        font-size: 14px;
        padding: 0 12px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
    }
    
    .steps-nav {
        flex-wrap: wrap;
    }
    
    .step-item {
        width: 33.33%;
        margin-bottom: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        float: none;
        margin-bottom: 16px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-card {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* 确认弹窗 */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirm-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.confirm-modal-content .btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
}