/* 我的页面样式 */
.profile-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 80px;
}

/* 用户信息卡片 */
.user-info-card {
    background: linear-gradient(135deg, #7BC4A3 0%, #97D3B6 100%);
    padding: 40px 20px 30px;
    margin-bottom: 12px;
}

.user-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.user-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-info-arrow {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.user-info-arrow:hover {
    opacity: 1;
}

/* 功能区域 */
.profile-actions {
    margin: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-action-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
}

.profile-action-item:active {
    background: #f5f5f5;
}

/* 权限区域 */
.permissions-section {
    background: white;
    border-radius: 12px;
    margin: 0 16px 12px;
    padding: 20px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.permissions-section:active {
    background: #f9f9f9;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

/* 权限列表 */
.permission-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.permission-name {
    font-size: 15px;
    color: var(--text-color);
}

.permission-expire {
    font-size: 14px;
    color: #999;
}

.permission-expire.expired {
    color: #ff4444;
}

.permission-expire.expiring {
    color: #ff9800;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

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

.empty-state-text {
    font-size: 16px;
    line-height: 1.6;
}

/* 抽屉样式 */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer-overlay.active {
    display: flex;
    align-items: flex-end;
    opacity: 1;
}

.drawer-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.drawer-overlay.active .drawer-content {
    transform: translateY(0);
}

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

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

.drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close:hover {
    background: #e0e0e0;
}

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.drawer-item {
    padding: 16px;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
}

.drawer-item:active {
    background: #e0e0e0;
}

.drawer-item.logout-item {
    color: #ff4444;
    font-weight: 600;
    text-align: center;
}

/* 抽屉中的权限列表 */
.drawer-body .permission-list {
    gap: 8px;
}

.drawer-body .permission-item {
    padding: 16px;
    border-radius: 12px;
    background: #f5f5f5;
    border-bottom: none;
}

.drawer-body .permission-name {
    font-size: 16px;
}

.drawer-body .permission-expire {
    font-size: 14px;
}

@media (max-width: 768px) {
    .user-name {
        font-size: 22px;
    }
}
