/* 用户设置页面特定样式 */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #2563eb;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    width: 32px;
    height: 32px;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    width: 100%;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
}

.footer {
    background: white;
    padding: 24px 32px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-separator {
    margin: 0 8px;
    color: #cbd5e1;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.setting-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.setting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.setting-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.setting-card h3 {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.setting-card p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* 第三方账号绑定样式 */
.third-party-bindings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.binding-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.binding-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.binding-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    color: white;
}

.binding-icon.feishu {
    background: linear-gradient(135deg, #00b96b 0%, #00d084 100%);
}

.binding-icon.wechat-work {
    background: linear-gradient(135deg, #1aad19 0%, #26c625 100%);
}

.binding-icon.wechat-mp {
    background: linear-gradient(135deg, #09bb07 0%, #1ec71e 100%);
}

.binding-info {
    flex: 1;
}

.binding-info h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.binding-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.binding-btn {
    padding: 8px 20px;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.binding-btn.bind {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
}

.binding-btn.bind:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.binding-btn.bind:focus {
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.2);
}

.binding-btn.unbind {
    background: #f1f5f9;
    color: #64748b;
}

.binding-btn.unbind:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ==================== 导航按钮和抽屉样式 ==================== */

/* 导航按钮 */
.nav-trigger {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
}

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

/* 遮罩层 */
.nav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* 右侧抽屉导航 */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.nav-drawer.active {
    right: 0;
}

.nav-drawer-header {
    padding: 24px;
    background: #2563eb;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.drawer-user-info .user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.drawer-user-info .user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.drawer-user-info .user-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-info .user-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-drawer-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
}

.nav-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 24px;
    color: #2563eb;
    width: 28px;
    text-align: center;
}

.nav-item:hover {
    background: white;
    border-color: #2563eb;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-item:active {
    transform: translateX(-2px);
}

.nav-item.active {
    background: #eff6ff;
    border-color: #2563eb;
}

.nav-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}

.logout-btn {
    width: 100%;
    padding: 14px 20px;
    background: #ef4444;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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