/* 鑱氱伀椁愰ギ闂ㄥ簵绠＄悊绯荤粺 - Glassmorphism UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff6b35;
    --primary-light: #ff8f5a;
    --primary-dark: #e55a2b;
    --primary-alpha: rgba(255, 107, 53, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #f3f4f6;
    --bg-dark: #111827;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: linear-gradient(145deg, #ff8c42, #f08c5e, #3a6ea5);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

.page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    background: linear-gradient(145deg, #ff8c42, #f08c5e, #3a6ea5);
    background-attachment: fixed;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-name-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.login-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

.login-form .form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-lighter);
}

.login-form .form-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transition: var(--transition);
}

.login-form .form-group input::placeholder {
    color: #9ca3af;
}

.login-form .form-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-alpha), 0 0 20px rgba(255, 107, 53, 0.2);
    animation: inputPulse 1.5s ease-in-out infinite;
}

/* 记住密码 */
.login-form .remember-password {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.login-form .remember-password input[type="checkbox"] {
    display: none;
}

.login-form .remember-password label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form .remember-password label:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.login-form .remember-password input[type="checkbox"]:checked + label {
    background: rgba(255, 107, 53, 0.3);
    border-color: var(--primary);
    color: #fff;
}

@keyframes inputPulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--primary-alpha), 0 0 20px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 0 0 4px var(--primary-alpha), 0 0 30px rgba(255, 107, 53, 0.4); }
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 通用按钮流动光线动画 */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

/* 绿色按钮动画 */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(255, 107, 53, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* 椤堕儴瀵艰埅 - 姣涚幓鐠冩晥鏋?*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6b5344 15%, 
        #8b7355 30%, 
        #a08060 50%, 
        #8b7355 70%, 
        #6b5344 85%, 
        transparent 100%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: goldFlowBorder 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes goldFlowBorder {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.user-avatar:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.user-avatar i {
    font-size: 22px;
    color: #fff;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-right i {
    color: var(--primary);
    font-size: 16px;
}

.main-content {
    margin-top: 70px;
    margin-bottom: 80px;
    padding: 20px;
    min-height: calc(100vh - 150px);
}

/* 搴曢儴瀵艰埅 - 姣涚幓鐠冩晥鏋?*/
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.bottom-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    margin: 4px;
    min-width: 70px;
}

.nav-item:hover {
    background: var(--primary-alpha);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 24px;
    color: var(--text-lighter);
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-item span {
    font-size: 11px;
    color: var(--text-lighter);
    transition: var(--transition);
}

.nav-item.active i,
.nav-item.active span {
    color: var(--primary);
}

/* 鍗＄墖 - 姣涚幓鐠冩晥鏋?*/
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
}

/* 缁熻鍗＄墖 */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
}

.stat-icon.primary {
    background: var(--primary-alpha);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

/* 鍒楄〃椤?*/
.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-alpha);
}

.list-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 14px;
    background: var(--primary-alpha);
    color: var(--primary);
}

.list-item .content {
    flex: 1;
}

.list-item .title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.list-item .desc {
    font-size: 13px;
    color: var(--text-light);
}

.list-item .arrow {
    color: var(--text-lighter);
    font-size: 20px;
}

/* 鏍囩 */
.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.tag.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.tag.approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.tag.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.tag.primary {
    background: var(--primary-alpha);
    color: var(--primary);
}

/* 琛ㄥ崟 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-alpha), 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.8);
    animation: inputPulse 1.5s ease-in-out infinite;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 鎸夐挳 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-alpha);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

/* 寮圭獥 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%);
}

.modal-content:not(.modal-bottom) {
    border-radius: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-lighter);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.user-menu-list {
    padding: 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-item:hover {
    background: var(--primary-alpha);
}

.user-menu-item i:first-child {
    font-size: 22px;
    color: var(--primary);
    margin-right: 14px;
}

.user-menu-item span {
    flex: 1;
    font-size: 15px;
}

/* 璇︽儏椤?*/
.detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px 24px;
    margin: -20px -20px 24px -20px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-meta {
    font-size: 13px;
    opacity: 0.85;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.detail-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item .label {
    width: 90px;
    color: var(--text-light);
    font-size: 13px;
}

.detail-item .value {
    flex: 1;
    font-size: 14px;
}

/* 鍥剧墖涓婁紶 */
.photo-upload {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-upload .upload-btn {
    width: 88px;
    height: 88px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 32px;
    color: var(--text-lighter);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.3);
}

.photo-upload .upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-alpha);
    transform: scale(1.02);
}

.photo-upload .photo-item {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo-upload .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-upload .photo-item:hover img {
    transform: scale(1.05);
}

.photo-upload .photo-item .delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.photo-upload .photo-item .delete-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

/* 妫€鏌ラ」 */
.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-alpha);
}

.check-item .check-label {
    font-size: 14px;
    font-weight: 500;
}

.check-item .check-status {
    display: flex;
    gap: 10px;
}

.check-item .check-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.check-item .check-btn.ok {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.check-item .check-btn.no {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.check-item .check-btn.active.ok {
    background: var(--success);
    color: #fff;
}

/* 巡检页面新样式 */
.inspection-categories {
    padding: 0;
}

.inspection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.inspection-item:last-child {
    border-bottom: none;
}

.inspection-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.inspection-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inspection-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.inspection-item-btns {
    display: flex;
    gap: 8px;
}

.inspection-btn {
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.inspection-btn.ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.inspection-btn.ok:hover {
    background: #10b981;
    color: #fff;
}

.inspection-btn.no {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.inspection-btn.no:hover {
    background: #ef4444;
    color: #fff;
}

.inspection-btn.active.ok {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.inspection-btn.active.no {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.inspection-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    background: #fafafa;
    box-sizing: border-box;
    font-family: inherit;
}

.inspection-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.inspection-submit-btn {
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a5c 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.inspection-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.inspection-submit-btn:active {
    transform: scale(0.98);
}

.check-item .check-btn.active.no {
    background: var(--error);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 绌虹姸鎬?*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-lighter);
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: var(--text-light);
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 80%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 绛涢€夋爣绛?*/
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-tag {
    padding: 8px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background: var(--primary-alpha);
    border-color: var(--primary);
}

.filter-tag.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* 鍏憡鍗＄墖 */
/* 审核操作 */
.review-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.review-actions .btn {
    flex: 1;
}

/* 娴姩鎿嶄綔鎸夐挳 */
.fab {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
}

.fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.3);
}

.fab:active {
    transform: translateY(0) scale(0.98);
}

/* 椤甸潰鏍囬 */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.page-header .back-btn {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.page-header .back-btn:hover {
    background: var(--primary-alpha);
    border-color: var(--primary);
    transform: translateX(-2px);
}

.page-header .back-btn i {
    font-size: 20px;
    color: var(--text);
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* 閰嶇疆鍒楄〃 */
.config-list {
    margin-top: 12px;
}

.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.config-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--primary-alpha);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item span {
    font-size: 14px;
    font-weight: 500;
}

.config-item div {
    display: flex;
    gap: 8px;
}

/* 鏃ュ織鍒楄〃 */
.log-list {
    max-height: 320px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 12px;
    transition: var(--transition);
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 8px;
}

.log-user {
    width: 70px;
    color: var(--text);
    font-weight: 600;
}

.log-action {
    width: 90px;
    color: var(--primary);
    font-weight: 600;
}

.log-module {
    flex: 1;
    color: var(--text-light);
}

.log-time {
    color: var(--text-lighter);
    font-size: 11px;
}

/* 澶村儚涓婁紶 */
.avatar-upload {
    position: relative;
}

.avatar-upload input {
    display: none;
}

/* 鏉冮檺缂栬緫寮圭獥鏍峰紡 */
.permission-list {
    max-height: 320px;
    overflow-y: auto;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.permission-item:hover {
    background: var(--primary-alpha);
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.permission-item label {
    flex: 1;
    font-size: 14px;
    cursor: pointer;
}

/* 妫€鏌ラ」鐩紪杈?*/
.category-edit-list {
    max-height: 220px;
    overflow-y: auto;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.category-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.category-edit-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.category-edit-item input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.category-edit-item input[type="text"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.delete-cat-btn {
    color: var(--error);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: var(--transition);
}

.delete-cat-btn:hover {
    transform: scale(1.2);
}

/* 澶村儚鍦嗗舰鏄剧ず */
.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.header-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* 棣栭〉浠〃鐩樻牱寮?*/
.home-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.home-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.home-welcome::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.welcome-text h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.user-badge {
    position: absolute;
    top: 28px;
    right: 28px;
}

.badge-role {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* 首页全新炫酷样式 - 现代渐变科技风 */
/* .home-hero styles moved to inline area for flexibility */

/* 浮动光球 */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.2);
    top: -40px;
    right: -40px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 120px;
    height: 120px;
    background: rgba(255, 183, 76, 0.3);
    bottom: -30px;
    left: 10%;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    top: 30%;
    left: -30px;
    animation-delay: 5s;
}

.hero-orb-4 {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.3);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.home-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 24px;
    padding: 20px 24px 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.35);
    animation: heroGradient 8s ease infinite;
    background-size: 200% 200%;
    min-height: 140px;
}

.home-hero.hero-morning {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    animation: heroGradient 8s ease infinite, morningGlow 3s ease-in-out infinite;
}

.home-hero.hero-noon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: heroGradient 8s ease infinite, noonGlow 3s ease-in-out infinite;
}

.home-hero.hero-afternoon {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    animation: heroGradient 8s ease infinite, afternoonGlow 3s ease-in-out infinite;
}

.home-hero.hero-night {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    animation: heroGradient 8s ease infinite, nightGlow 3s ease-in-out infinite;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes morningGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 107, 53, 0.35), 0 0 20px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.3); }
}

@keyframes noonGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(245, 87, 108, 0.35), 0 0 20px rgba(245, 87, 108, 0.2); }
    50% { box-shadow: 0 10px 40px rgba(245, 87, 108, 0.5), 0 0 40px rgba(245, 87, 108, 0.3); }
}

@keyframes afternoonGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 106, 0, 0.35), 0 0 20px rgba(255, 106, 0, 0.2); }
    50% { box-shadow: 0 10px 40px rgba(255, 106, 0, 0.5), 0 0 40px rgba(255, 106, 0, 0.3); }
}

@keyframes nightGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(22, 33, 62, 0.5), 0 0 20px rgba(26, 26, 46, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(22, 33, 62, 0.6), 0 0 40px rgba(26, 26, 46, 0.4); }
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat1 6s ease-in-out infinite;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat2 8s ease-in-out infinite;
}

.home-hero .medal-effect {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 183, 77, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: medalPulse 3s ease-in-out infinite;
}

.home-hero .medal-effect::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 183, 77, 0.3));
    border-radius: 50%;
    animation: medalShine 2s ease-in-out infinite;
}

@keyframes medalPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes medalShine {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(-10px, 10px) scale(1.1); opacity: 1; }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(10px, -10px) scale(1.05); opacity: 0.8; }
}

.home-hero .hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.hero-user-info {
    flex: 1;
    min-width: 0;
}

.hero-right {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-greeting {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
    font-weight: 400;
}

.hero-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 统计卡片 */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.home-stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.home-stat-card:active {
    transform: scale(0.96);
}

.home-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.home-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-stat-card:hover::before {
    opacity: 1;
}

.stat-stores::before { background: linear-gradient(90deg, #ff6b35, #e55a2b); }
.stat-employees::before { background: linear-gradient(90deg, #e55a2b, #9c27b0); }
.stat-sales::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-profit::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-pending::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-inspection::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.stat-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    position: relative;
    transition: transform 0.3s;
}

.home-stat-card:hover .stat-icon-bg {
    transform: scale(1.1) rotate(5deg);
}

.stat-stores .stat-icon-bg { background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%); color: #fff; }
.stat-employees .stat-icon-bg { background: linear-gradient(135deg, #e55a2b 0%, #9c27b0 100%); color: #fff; }
.stat-sales .stat-icon-bg { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: #fff; }
.stat-profit .stat-icon-bg { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); color: #fff; }
.stat-pending .stat-icon-bg { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); color: #fff; }
.stat-inspection .stat-icon-bg { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); color: #fff; }
.stat-submitted .stat-number { color: #10b981; }
.stat-pending .stat-number { color: #ef4444; }
.stat-approved .stat-number { color: #10b981; }
.stat-rejected .stat-number { color: #ef4444; }
.stat-approved::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-rejected::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.stat-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-change {
    margin-top: 8px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-change span {
    color: rgba(255, 255, 255, 0.95);
}

.stat-change .change-label {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 2px;
}

.stat-change .change-up {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stat-change .change-down {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* 首页待办和公告 - 现代卡片风格 */
.home-section {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 14px;
}

.home-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateX(4px);
}

.todo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.todo-content {
    flex: 1;
}

.todo-text {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.todo-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.todo-item > i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: transform 0.3s;
}

.todo-item:hover > i {
    transform: translateX(4px);
    color: var(--primary);
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateX(4px);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.notice-item:hover {
    background: #f0f0ff;
}

.notice-item.notice-unread {
    background: #eef2ff;
    border-left: 3px solid #ff6b35;
}

.notice-item.notice-unread .notice-title {
    font-weight: 700;
    color: #333;
}

.notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 快捷操作 */
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.home-action-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-action-card:active {
    transform: scale(0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.action-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a5c 100%);
    color: #fff;
}

.action-text {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 14px;
}

.home-section-title i {
    color: #ff6b35;
}

.dash-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dash-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dash-stores .dash-icon { background: var(--primary-alpha); color: var(--primary); }
.dash-employees .dash-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.dash-sales .dash-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.dash-profit .dash-icon { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.dash-pending .dash-icon { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.dash-inspection .dash-icon { background: var(--primary-alpha); color: var(--primary); }

.dash-info {
    display: flex;
    flex-direction: column;
}

.dash-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dash-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.section-title i {
    color: var(--primary);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.action-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-alpha);
    background: var(--primary-alpha);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.action-item:hover .action-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.action-item span {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* 手机端优化 */
@media (max-width: 480px) {
    .login-container {
        padding: 24px 16px;
    }

    .login-form {
        padding: 28px 24px;
    }

    .main-content {
        padding: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .page-header h2 {
        font-size: 17px;
    }

    .page-header {
        padding: 12px;
    }

    .bottom-nav {
        height: 65px;
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }

    .nav-item {
        padding: 8px 12px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item span {
        font-size: 11px;
    }

    .fab {
        right: 16px;
        bottom: 85px;
        width: 50px;
        height: 50px;
    }

    .page-card-new {
        padding: 16px;
        margin: 8px;
        border-radius: 16px;
    }

    .list-item-new {
        padding: 14px;
    }

    .detail-item {
        padding: 12px 0;
    }

    .form-group-new {
        margin-bottom: 14px;
    }

    .form-input-new {
        padding: 11px 12px;
    }

    .btn-primary-new {
        padding: 14px 20px;
        font-size: 15px;
    }

    .home-stat-card {
        padding: 14px 10px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-title {
        font-size: 11px;
    }

    .home-hero {
        padding: 24px 16px;
    }

    .hero-name {
        font-size: 22px;
    }

    .hero-greeting {
        font-size: 14px;
    }

    .notice-card-item {
        padding: 14px;
    }

    .notice-detail-page {
        padding: 16px;
        margin: 8px;
    }

    .notice-detail-title {
        font-size: 18px;
    }

    .notice-editor-page {
        margin: 8px;
    }

    .emp-form-page {
        padding: 8px;
    }

    .form-section-card {
        padding: 16px;
        border-radius: 14px;
    }

    /* 输入框问题修复 */
    input, select, textarea {
        font-size: 16px !important;
        -webkit-font-size: 16px;
    }

    input:focus, select:focus, textarea:focus {
        font-size: 16px !important;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-alpha), 0 0 20px rgba(255, 107, 53, 0.2);
        animation: inputPulse 1.5s ease-in-out infinite;
    }
}

/* 杈撳叆妗嗘牱寮?- 淇杈撳叆闂 */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="email"],
textarea,
select {
    -webkit-appearance: none;
    appearance: none;
}

/* 杈撳叆妗嗗崰浣嶇棰滆壊 */
::placeholder {
    color: var(--text-lighter);
    opacity: 1;
}

/* 婊氬姩鏉＄編鍖?*/
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 设置页面手风琴样式 */
.s-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.s-section {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.s-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.s-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.s-section-header:active {
    background: rgba(0,0,0,0.03);
}

.s-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.s-section-info {
    flex: 1;
    min-width: 0;
}

.s-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
}

.s-section-sub {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 2px;
}

.s-chevron {
    font-size: 20px;
    color: #bbb;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.s-section-body {
    background: #fafbfc;
    overflow: hidden;
    max-height: 800px;
    padding: 0 16px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.s-section-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.s-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s;
}

.s-item:last-child {
    margin-bottom: 0;
}

.s-item:hover {
    border-color: #e0e0e0;
}

.s-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    min-width: 0;
}

.s-item-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.s-item-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    white-space: nowrap;
}

.s-badge-success {
    background: #d1fae5;
    color: #059669;
}

.s-badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.s-badge-warn {
    background: #fef3c7;
    color: #d97706;
}

.s-dot-success {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    margin-right: 2px;
}

.s-dot-off {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    margin-right: 2px;
}

.s-btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.s-btn-text:hover {
    background: #f0f0ff;
}

.s-btn-text-danger {
    color: #ef4444;
}

.s-btn-text-danger:hover {
    background: #fef2f2;
}

.s-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.s-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.s-btn-primary:hover {
    background: #5a6fd6;
}

.s-add-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.s-add-form input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.s-add-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha), 0 0 20px rgba(255, 107, 53, 0.2);
    animation: inputPulse 1.5s ease-in-out infinite;
}

.s-add-form select {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    min-width: 65px;
    flex-shrink: 0;
}

.s-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    margin-top: 10px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.s-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8f9ff;
}

.s-log-list {
    max-height: 300px;
    overflow-y: auto;
}

.s-log-list::-webkit-scrollbar {
    width: 4px;
}

.s-log-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.s-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.s-log-item:hover {
    border-color: var(--primary);
    background: #f8f9ff;
}

.s-log-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.s-log-user {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.s-log-action {
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.s-log-time {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.s-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.s-page-info {
    font-size: 13px;
    color: #666;
    line-height: 36px;
}

.s-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 13px;
}

.s-section-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
}

.s-section-danger .s-section-header {
    background: none;
}

.s-danger-text {
    color: #991b1b;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.s-danger-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.s-danger-btn:hover {
    background: #dc2626;
    transform: scale(1.02);
}

/* 申请页面样式 */
.app-page {
    padding: 16px;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #fff;
}

.app-card-header i {
    font-size: 22px;
}

.app-card-header .title {
    font-size: 15px;
    font-weight: 600;
}

.app-card-header .count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.app-card-body {
    padding: 16px;
    background: #fafbfc;
}

.app-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.app-form-card .form-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.app-list-item:hover {
    border-color: #ff6b35;
    background: #f8f9ff;
}

.app-list-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.app-list-item .item-info {
    flex: 1;
    min-width: 0;
}

.app-list-item .item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.app-list-item .item-meta {
    font-size: 12px;
    color: #888;
}

.app-list-item .item-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.app-list-item .item-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.app-list-item .item-status.approved {
    background: #d1fae5;
    color: #059669;
}

.app-list-item .item-status.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* 折叠卡片样式 */
.collapse-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.collapse-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #fff;
    cursor: pointer;
    transition: filter 0.2s;
}

.collapse-card-header:hover {
    filter: brightness(1.05);
}

.collapse-card-header i.header-icon {
    font-size: 22px;
}

.collapse-card-header .header-title {
    font-size: 15px;
    font-weight: 600;
}

.collapse-card-header .header-count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.collapse-card-header .header-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.collapse-card-header .header-arrow.collapsed {
    transform: rotate(-90deg);
}

.collapse-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapse-card-body.collapsed {
    max-height: 0;
}

.collapse-card-body.expanded {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.date-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9ff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}

.date-filter-bar .filter-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.date-filter-bar input[type="date"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.date-filter-bar .filter-separator {
    color: #999;
    font-size: 12px;
}

.date-filter-bar .filter-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.date-filter-bar .filter-btn:hover {
    opacity: 0.9;
}

.date-filter-bar .filter-btn:active {
    opacity: 0.8;
}

.collapsed-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafbfc;
    font-size: 13px;
    color: #666;
}

.collapsed-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.collapsed-summary .summary-item i {
    font-size: 16px;
}

.collapsed-summary .summary-approved {
    color: #059669;
}

.collapsed-summary .summary-rejected {
    color: #dc2626;
}

.app-list-container {
    padding: 12px 16px;
    background: #fafbfc;
}

.app-list-container .app-list-item:last-child {
    margin-bottom: 0;
}

.role-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
}

.role-badge.manager {
    background: #ff6b35;
    color: #fff;
}

.role-badge.employee {
    background: #10b981;
    color: #fff;
}

/* 员工页面样式 */
.emp-page {
    padding: 16px;
}

.emp-header-card {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    color: #fff;
}

.emp-header-card .emp-count {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.emp-header-card .emp-label {
    font-size: 13px;
    opacity: 0.8;
}

.emp-list-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.emp-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.emp-list-item:last-child {
    border-bottom: none;
}

.emp-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
}

.emp-group-header:first-child {
    border-top: none;
}

.emp-group-count {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.emp-list-item:hover {
    background: #f8f9ff;
}

.emp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 14px;
    flex-shrink: 0;
}

.emp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    margin: 0 auto;
    cursor: pointer;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.emp-info {
    flex: 1;
    min-width: 0;
}

.emp-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emp-meta {
    font-size: 13px;
    color: #888;
}

.emp-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.emp-status.on {
    background: #d1fae5;
    color: #059669;
}

.emp-status.off {
    background: #f3f4f6;
    color: #9ca3af;
}

/* 流水页面样式 */
.flow-page {
    padding: 16px;
}

.flow-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.flow-tab {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.flow-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
}

.flow-tab:not(.active) {
    background: #f3f4f6;
    color: #666;
}

.flow-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.flow-filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.flow-filter-row input,
.flow-filter-row select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
}

.flow-result-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.flow-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.flow-total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.flow-total.income {
    color: #059669;
}

.flow-total.expense {
    color: #dc2626;
}

.flow-record-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.flow-record-item:last-child {
    border-bottom: none;
}

.flow-record-item:hover {
    background: #f8f9ff;
}

.flow-record-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.flow-record-icon.income {
    background: #d1fae5;
    color: #059669;
}

.flow-record-icon.expense {
    background: #fee2e2;
    color: #dc2626;
}

.flow-record-info {
    flex: 1;
    min-width: 0;
}

.flow-record-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.flow-record-meta {
    font-size: 12px;
    color: #888;
}

.flow-record-amount {
    font-size: 16px;
    font-weight: 600;
}

.flow-record-amount.income {
    color: #059669;
}

.flow-record-amount.expense {
    color: #dc2626;
}

/* 个人资料页面样式 */
.profile-page {
    padding: 20px;
}

.profile-avatar-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid #ff6b35;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-overlay i {
    font-size: 28px;
    color: #fff;
}

.profile-name-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-name-input {
    text-align: center;
    border: none;
    border-bottom: 2px solid #ff6b35;
    background: transparent;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    padding: 8px 16px;
    outline: none;
    width: 200px;
}

.profile-role-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 头像编辑器样式 */
.avatar-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a2e;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.avatar-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
}

.avatar-editor-header .title {
    font-weight: 600;
    font-size: 17px;
}

.avatar-editor-header span:first-child,
.avatar-editor-header span:last-child {
    color: #ff6b35;
    cursor: pointer;
    padding: 8px 12px;
}

.avatar-editor-header span:last-child {
    color: #10b981;
    font-weight: 600;
}

.avatar-editor-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.avatar-editor-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    transition: transform 0.3s, filter 0.3s;
}

.avatar-editor-tools {
    background: #16162a;
    padding: 16px 20px 30px;
    border-radius: 20px 20px 0 0;
    max-height: 50vh;
    overflow-y: auto;
}

.tool-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #252540;
    padding: 4px;
    border-radius: 12px;
}

.tool-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
}

.tool-content {
    display: none;
}

.tool-content.active {
    display: block;
}

.tool-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-row:last-child {
    margin-bottom: 0;
}

.tool-row .tool-label {
    color: #888;
    font-size: 12px;
    min-width: 50px;
}

.tool-buttons {
    display: flex;
    gap: 8px;
}

.tool-buttons button {
    padding: 10px 14px;
    background: #252540;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-buttons button:active {
    background: #ff6b35;
    transform: scale(0.95);
}

.tool-slider {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-slider input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #252540;
    border-radius: 2px;
    outline: none;
}

.tool-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 50%;
    cursor: pointer;
}

.tool-slider span {
    color: #ff6b35;
    font-size: 12px;
    min-width: 35px;
    text-align: right;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.filter-item {
    text-align: center;
    cursor: pointer;
}

.filter-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.filter-item:active .filter-preview {
    border-color: #ff6b35;
}

.filter-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-name {
    font-size: 11px;
    color: #888;
}

.filter-item:active .filter-name {
    color: #ff6b35;
}

/* 记账页面样式 */
.acc-page {
    padding: 16px;
}

.acc-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.acc-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.acc-form-header i {
    font-size: 24px;
    color: #ff6b35;
}

.acc-form-header .title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.acc-type-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}

.acc-type-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #666;
}

.acc-type-btn.active {
    background: #fff;
    color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.acc-list-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.acc-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
}

.acc-list-header i {
    font-size: 20px;
}

.acc-list-header .title {
    font-size: 15px;
    font-weight: 600;
}

/* 报表页面样式 */
.rpt-page {
    padding: 16px;
}

.rpt-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.rpt-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.rpt-summary-card.sales {
    border-top: 3px solid #ff6b35;
}

.rpt-summary-card.income {
    border-top: 3px solid #10b981;
}

.rpt-summary-card.expense {
    border-top: 3px solid #ef4444;
}

.rpt-summary-card .value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.rpt-summary-card .label {
    font-size: 12px;
    color: #888;
}

.rpt-chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.rpt-chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.rpt-chart-header i {
    font-size: 20px;
    color: #ff6b35;
}

.rpt-chart-header .title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rpt-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rpt-channel-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.rpt-channel-item .channel-name {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.rpt-channel-item .channel-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rpt-category-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.rpt-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #fff;
}

.rpt-category-header.income {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.rpt-category-header.expense {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.rpt-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.rpt-category-item:last-child {
    border-bottom: none;
}

.rpt-category-item .cat-name {
    font-size: 14px;
    color: #333;
}

.rpt-category-item .cat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.rpt-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 报表统计卡片 */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.report-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.report-stat-card.sales {
    border-top: 3px solid #ff6b35;
}

.report-stat-card.income {
    border-top: 3px solid #10b981;
}

.report-stat-card.expense {
    border-top: 3px solid #ef4444;
}

.report-stat-card.profit {
    border-top: 3px solid #f59e0b;
}

.report-stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.report-stat-card .stat-icon i {
    font-size: 28px;
}

.report-stat-card.sales .stat-icon i {
    color: #ff6b35;
}

.report-stat-card.income .stat-icon i {
    color: #10b981;
}

.report-stat-card.expense .stat-icon i {
    color: #ef4444;
}

.report-stat-card.profit .stat-icon i {
    color: #f59e0b;
}

.report-stat-card .stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.report-stat-card .stat-value {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    word-break: keep-all;
    white-space: nowrap;
}

.report-stat-card .stat-chinese {
    font-size: 9px;
    color: #888;
    margin-top: 2px;
    word-break: keep-all;
    white-space: nowrap;
}

.report-stat-card .stat-desc {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* 报表趋势图 */
.trend-chart-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding: 10px 0;
    gap: 8px;
}

.trend-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.trend-bar {
    width: 100%;
    max-width: 30px;
    background: linear-gradient(180deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 4px 4px 0 0;
    margin-top: auto;
    min-height: 4px;
}

.trend-label {
    font-size: 10px;
    color: #888;
    margin-top: 8px;
}

.trend-bar-value {
    font-size: 10px;
    color: #ff6b35;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* 报表饼图 */
.donut-chart-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
}

.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    background: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.donut-total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.donut-label {
    font-size: 10px;
    color: #888;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend-label {
    flex: 1;
}

.donut-legend-value {
    font-weight: 600;
    color: #333;
}

.donut-legend-pct {
    color: #888;
    font-size: 12px;
    min-width: 45px;
    text-align: right;
}

/* 报表分类列表 */
.rpt-category-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stat-card-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stat-card-value.positive {
    color: #059669;
}

.stat-card-value.negative {
    color: #dc2626;
}

/* 甜甜圈图例 */
.donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.donut-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* 通用页面标题栏 */
.page-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
}

.page-title-bar i {
    font-size: 24px;
}

.page-title-bar .title {
    font-size: 17px;
    font-weight: 600;
}

/* 统一按钮样式 */
.btn-primary-new {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.btn-primary-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* 主要按钮统一流动光线动画 - 橙色渐变按钮 */
.btn-primary,
.btn-primary-new,
.btn-primary-small,
.publish-submit-btn,
.inspection-submit-btn,
.sales-submit-btn,
.account-submit-btn,
.btn-query-new,
.inv-query-btn,
.s-btn-primary,
.btn-cancel-new {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-primary-new::before,
.btn-primary-small::before,
.publish-submit-btn::before,
.inspection-submit-btn::before,
.sales-submit-btn::before,
.account-submit-btn::before,
.btn-query-new::before,
.inv-query-btn::before,
.s-btn-primary::before,
.btn-cancel-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}

/* 通用提交按钮动画 */
.publish-submit-btn, .inspection-submit-btn, .sales-submit-btn, .account-submit-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.publish-submit-btn::before, .inspection-submit-btn::before, .sales-submit-btn::before, .account-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.btn-primary-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.btn-primary-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-cancel-new {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-cancel-new:hover {
    background: #e2e8f0;
}

.btn-query-new {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-query-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.btn-query-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* 通用卡片样式 */
.page-card-new {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.page-card-title-new {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-card-title-new i {
    color: #ff6b35;
    font-size: 18px;
}

/* 选择妗?*/
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}

/* 璁拌处璁板綍鍒楄〃鏍峰紡 */
.account-record-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}
.account-record-item:active {
    transform: scale(0.98);
    background: #fafafa;
}
.account-record-item .record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.account-record-item .record-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}
.account-record-item .record-amount {
    font-size: 18px;
    font-weight: 700;
}
.account-record-item .record-body {
    margin-bottom: 10px;
}
.account-record-item .record-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}
.account-record-item .record-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-record-item .record-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}
.account-record-item .record-operator,
.account-record-item .record-date,
.account-record-item .record-photo-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}
.account-record-item .record-photo-badge {
    background: #e6f7ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* 璁拌处璇︽儏鍗＄墖鏍峰紡 */
.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.detail-card .detail-amount {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.detail-card .detail-amount-value {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}
.detail-card .detail-info-list {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.detail-card .detail-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.detail-card .detail-info-item:last-child {
    border-bottom: none;
}
.detail-card .detail-info-label {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-card .detail-info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}
.detail-card .detail-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.detail-card .photo-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.detail-card .photo-item:hover {
    transform: scale(1.05);
}

/* Detail Modal */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.detail-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.detail-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

.detail-modal-close {
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

.detail-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.detail-modal-body {
    padding: 16px 20px 20px;
}

.detail-modal-body select,
.detail-modal-body input,
.detail-modal-body textarea {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.detail-modal-body select:focus,
.detail-modal-body input:focus,
.detail-modal-body textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.detail-modal-body .detail-amount {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-modal-body .detail-amount-value {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-modal-body .detail-info-list {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.detail-modal-body .detail-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f7f7f7;
}

.detail-modal-body .detail-info-item:last-child {
    border-bottom: none;
}

.detail-modal-body .detail-info-label {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.detail-modal-body .detail-info-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.detail-modal-body .detail-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.detail-modal-body .photo-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-modal-body .photo-item:hover {
    transform: scale(1.08);
}

.detail-modal-body .file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.detail-modal-body .file-preview-icon {
    margin-bottom: 4px;
}

.detail-modal-body .file-preview-name {
    font-size: 10px;
    color: #fff;
    text-align: center;
    padding: 0 4px;
    word-break: break-all;
    line-height: 1.2;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 楗煎浘鏍峰紡 */
.pie-chart-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pie-chart-container .pie-legend {
    flex: 1;
    min-width: 200px;
}
.legend-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}
.legend-label {
    color: #666;
    margin-right: 8px;
}
.legend-value {
    color: #333;
    font-weight: 500;
}

/* 岗位编辑页面样式 */
.edit-container {
    padding: 15px;
    padding-bottom: 100px;
}

.section-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #ff6b35;
}

.member-count {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.permission-item:hover {
    background: #f0f0f0;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
}

.permission-item label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.member-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.member-phone {
    font-size: 13px;
    color: #999;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove {
    background: #fff3f3;
    color: #ff4d4f;
}

.btn-edit {
    background: #f0f5ff;
    color: #ff6b35;
}

.btn-edit:hover {
    background: #ff6b35;
    color: #fff;
}

.btn-remove:hover {
    background: #ff4d4f;
    color: #fff;
}

.btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.empty-hint {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-hint i {
    font-size: 32px;
    color: #ddd;
}

.select-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
    margin-bottom: 10px;
}

.select-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.fixed-bottom {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

/* 用户菜单弹窗 */
.user-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.2s;
}

.user-menu-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: #fff;
    border-radius: 20px;
    padding: 8px;
    z-index: 1000;
    animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.user-menu-sheet .menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-sheet .menu-item:active {
    background: #f5f5f5;
}

.user-menu-sheet .menu-item i {
    font-size: 20px;
    color: #ff6b35;
}

.user-menu-sheet .menu-item-danger i {
    color: #ef4444;
}

.user-menu-sheet .menu-item-danger {
    color: #ef4444;
}

.menu-cancel {
    margin-top: 8px;
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 15px;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    border-radius: 12px;
}

.menu-cancel:active {
    background: #f5f5f5;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 发布公告表单样式 */
/* 发布公告编辑器 */
.notice-editor-page {
    background: #fff;
    margin: 12px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.notice-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.tag-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.emoji-trigger-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker-area {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-picker-area.show {
    display: block;
}

.emoji-row-title {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji-cell {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    gap: 4px;
}

.emoji-cell .emoji-icon {
    font-size: 20px;
}

.emoji-cell .emoji-label {
    font-size: 11px;
    color: #666;
}

.emoji-cell:hover {
    background: #f3f4f6;
}

.emoji-cell.selected {
    background: #eff6ff;
    box-shadow: 0 0 0 2px #3b82f6;
}

.tag-selector span {
    font-size: 13px;
    color: #374151;
}

.tag-picker-box {
    position: absolute;
    top: 100%;
    left: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    z-index: 100;
}

.tag-picker-box.show {
    display: grid;
}

.tag-option {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tag-option:hover {
    background: #f3f4f6;
}

.tag-option.selected {
    background: #eff6ff;
    color: #3b82f6;
}

.notice-title-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
}

.notice-title-input:focus {
    border-color: #ff6b35;
    outline: none;
}

/* 富文本编辑器 */
.rich-text-editor {
    border-bottom: 1px solid #f0f0f0;
}

.editor-toolbar-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
}

.editor-toolbar-bar button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4b5563;
}

.font-size-select {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.editor-toolbar-bar button:hover {
    background: #e5e7eb;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 8px;
}

.rich-editor-area {
    min-height: 180px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.8;
    outline: none;
}

.rich-editor-area:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

/* 选项区域 */
.notice-options-section {
    padding: 16px;
}

.option-row {
    margin-bottom: 18px;
}

.option-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.notice-options-section select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.upload-area-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-add-icon {
    width: 70px;
    height: 70px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 24px;
    transition: all 0.2s;
}

.upload-add-icon:active {
    background: #f9fafb;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 13px;
}

.file-chip i:first-child {
    color: #ff6b35;
}

.file-chip .ri-close-circle {
    color: #9ca3af;
    cursor: pointer;
}

.publish-submit-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 公告卡片样式 */
.notice-card-item {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.notice-card-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.notice-card-item.notice-unread {
    border-left: 3px solid #ff6b35;
    background: #f8f9ff;
}

.notice-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.notice-actions-mobile {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notice-edit-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notice-edit-btn:hover {
    background: #3b82f6;
    color: #fff;
}

.notice-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notice-delete-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* 编辑公告表单区域 */
.notice-form-section {
    background: #fff;
    margin: 12px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.notice-form-section .form-group-new {
    margin-bottom: 16px;
}

.notice-form-section .form-group-new label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.notice-form-section .form-input-new {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    box-sizing: border-box;
}

.notice-form-section .form-input-new:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
}

/* 公告附件显示 */
.notice-attachments-section {
    background: #fff;
    margin: 12px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.notice-attachments-section .form-group-new label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 500;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.attachment-item:hover {
    background: #e5e7eb;
    transform: translateX(4px);
}

.attachment-item i {
    color: #ff6b35;
    font-size: 18px;
}

.attachment-item .ri-download-line {
    margin-left: auto;
    color: #9ca3af;
    font-size: 16px;
}

/* 公告详情页 */
.notice-detail-page {
    background: #fff;
    margin: 12px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.notice-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.5;
}

.notice-detail-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.notice-detail-meta span {
    margin-right: 16px;
}

.notice-target-tag {
    background: #eff6ff;
    color: #3b82f6;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.notice-detail-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
    word-wrap: break-word;
}

.notice-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.notice-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.notice-detail-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.notice-detail-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-preview-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.preview-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.notice-detail-attachments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.notice-detail-attachments .detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

/* 添加员工表单页面 */
.emp-form-page {
    padding: 12px;
}

.form-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: #ff6b35;
    font-size: 18px;
}

.form-group-new {
    margin-bottom: 16px;
}

.form-group-new:last-child {
    margin-bottom: 0;
}

.form-group-new label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group-new .required {
    color: #ef4444;
}

.form-input-new {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-input-new:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input-new::placeholder {
    color: #9ca3af;
}

.form-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-upload-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.form-group-new textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-group-new textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group-new textarea::placeholder {
    color: #9ca3af;
}

.photo-upload-new .upload-btn-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 120px;
    border: 2px dashed #c7d2fe;
    border-radius: 14px;
    cursor: pointer;
    background: #f5f3ff;
    transition: all 0.2s;
    padding: 16px;
}

.photo-upload-new .upload-btn-new:hover {
    border-color: #ff6b35;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: translateY(-1px);
}

.photo-upload-new .upload-btn-new i {
    font-size: 38px;
    color: #ff6b35;
}

.photo-upload-new .upload-btn-new span {
    font-size: 14px;
    color: #ff6b35;
    margin-top: 2px;
}

.photo-upload-new {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-upload-new .photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.photo-upload-new .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.photo-upload-new .photo-item:hover img {
    transform: scale(1.05);
}

.photo-upload-new .photo-item .delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.photo-upload-new .photo-item .delete-btn:hover {
    background: #e55a2b;
    transform: scale(1.1);
}

.photo-upload-new .photo-item.file-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ff;
    border: 1px dashed #c7d2fe;
}

.photo-upload-new .photo-item.file-item .file-placeholder {
    font-size: 12px;
    color: #667eea;
    text-align: center;
    padding: 8px;
    word-break: break-all;
}

.form-info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-info-card i {
    color: #3b82f6;
    font-size: 20px;
}

.form-info-card strong {
    color: #ff6b35;
}

.btn-save-employee {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.2s;
}

.btn-save-employee:active {
    transform: scale(0.98);
}

/* PWA 安装提示横幅 */
#pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-banner-content {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.pwa-banner-content i:first-child {
    font-size: 28px;
    color: #fff;
}

.pwa-banner-content span {
    flex: 1;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

#pwa-install-btn {
    background: #fff;
    color: #ff6b35;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#pwa-install-btn:active {
    transform: scale(0.95);
}

#pwa-close-btn {
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
}

#pwa-close-btn:hover {
    color: #fff;
}

/* 流水页面合计栏 */
.flow-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    margin-top: 12px;
}

.flow-total-bar .income {
    color: #86efac;
    font-weight: 600;
    font-size: 16px;
}

.flow-total-bar .expense {
    color: #fca5a5;
    font-weight: 600;
    font-size: 16px;
}

/* ==================== 库存管理页面 ==================== */
.inventory-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.inv-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.inv-tab i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.inv-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
}

.inventory-content {
    padding: 0 12px 12px;
}

.inv-section {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inv-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.inv-card-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-card-header i {
    font-size: 18px;
    color: #ff6b35;
}

.inv-form-group {
    margin-bottom: 12px;
}

.inv-form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.inv-form-group label .required {
    color: #f56c6c;
}

.inv-table-container {
    overflow-x: auto;
    margin: 12px 0;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 800px;
}

.inv-table th {
    background: #f8f9fa;
    padding: 10px 8px;
    text-align: left;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.inv-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.inv-table input, .inv-table select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

.inv-table input:focus, .inv-table select:focus {
    outline: none;
    border-color: #ff6b35;
}

.inv-select {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
}

.inv-input {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    width: 80px;
    box-sizing: border-box;
}

.inv-input.qty-input, .inv-input.check-input, .inv-input.aux-qty-input {
    width: 60px;
}

.inv-input.category-input, .inv-input.name-input {
    width: 100px;
}

.inv-input.spec-input {
    width: 80px;
}

.inv-input.price-input {
    width: 90px;
}

.inv-select {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    min-width: 60px;
}

.inv-select.unit-select, .inv-select.aux-unit-select {
    min-width: 70px;
    width: 70px;
}

.inv-total-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0;
}

.inv-total-row span:nth-child(2),
.inv-total-row span:nth-child(3),
.inv-total-row span:nth-child(4) {
    color: #ff6b35;
    font-weight: 600;
}

.inv-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-upload-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.inv-upload-btn i {
    font-size: 24px;
}

.inv-file-preview {
    margin-top: 12px;
}

.inv-file-item {
    position: relative;
    display: inline-block;
}

.inv-file-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.inv-file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #f56c6c;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
}

.inv-scan-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    color: #ff6b35;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-scan-area:hover {
    border-color: #ff6b35;
    background: #f8f9ff;
}

.inv-scan-area i {
    font-size: 48px;
    margin-bottom: 8px;
}

.inv-scan-result {
    margin-top: 16px;
}

.inv-scan-text {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

.inv-records-list {
    max-height: 300px;
    overflow-y: auto;
}

.inv-record-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.inv-record-item:hover {
    background: #f8f9ff;
}

.inv-record-item:last-child {
    border-bottom: none;
}

.inv-record-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.inv-record-date {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.inv-record-total {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

.inv-record-meta {
    font-size: 11px;
    color: #999;
}

.inv-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
}

.inv-btn-delete {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fee2e2;
    color: #f56c6c;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.inv-btn-delete:hover {
    background: #f56c6c;
    color: #fff;
}

.inv-btn-minus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b35;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.inv-btn-minus:hover {
    background: #5a6fd6;
}

.balance-cell {
    font-weight: 600;
    color: #059669;
}

.inv-negative {
    color: #f56c6c;
}

.inv-query-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.inv-date-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    width: 110px;
}

.inv-date-sep {
    color: #999;
    font-size: 12px;
}

.inv-keyword-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    min-width: 100px;
}

.inv-query-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.inv-query-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
}

.inv-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.inv-btn-edit {
    padding: 4px 10px;
    background: #e8f0ff;
    color: #ff6b35;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.inv-btn-edit:hover {
    background: #ff6b35;
    color: #fff;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-form {
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-footer {
    margin-top: 16px;
}

.spec-td, .amount-td {
    font-size: 12px;
    color: #666;
}

.ocr-preview-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.ocr-preview-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.flow-total-bar .record-count {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

/* 申请类型编辑UI样式 */
.field-card {
    animation: fieldSlideIn 0.3s ease;
}

@keyframes fieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scope-card,
.scope-card-add {
    animation: cardPopIn 0.3s ease;
}

@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.template-btn {
    position: relative;
    overflow: hidden;
}

.template-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.template-btn:hover::before {
    left: 100%;
}

/* 弹窗内表单优化 */
.detail-modal-body input[type="text"]:focus,
.detail-modal-body select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

.thumb-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.thumb-wrap.thumb-img {
    cursor: pointer;
    transition: transform 0.2s;
}

.thumb-wrap.thumb-img:hover {
    transform: scale(1.05);
}

.thumb-wrap.thumb-img img {
    display: block;
    transition: opacity 0.3s;
}

.thumb-wrap.thumb-img .thumb-loading {
    opacity: 0;
}

.thumb-wrap.thumb-img.thumb-loaded img {
    opacity: 1;
}

.thumb-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 200%;
    animation: skeletonShimmer 1.5s ease infinite;
    color: #9ca3af;
    font-size: 20px;
    z-index: 1;
    pointer-events: none;
}

.thumb-wrap.thumb-loaded .thumb-skeleton {
    display: none;
}

.thumb-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #f87171;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.thumb-wrap.thumb-failed .thumb-error {
    display: flex;
}

.thumb-wrap.thumb-failed img {
    opacity: 0;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.thumb-wrap.thumb-file {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 4px;
    padding: 8px;
}

.thumb-wrap.thumb-file:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumb-wrap.thumb-file-sm {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.thumb-file-ext {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.thumb-file-name {
    font-size: 9px;
    color: #6b7280;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.detail-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-photos-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
