/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-bottom: 60px; /* 为固定页脚留出空间 */
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(69, 104, 184, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(233, 30, 99, 0.1) 0%, transparent 20%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 70%;
}

/* 当前页面高亮 */
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 70%;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

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

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.login-header {
    padding: 32px 32px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.login-content {
    padding: 32px;
}

.login-actions {
    margin-top: 24px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-footer p {
    margin: 0;
}

/* 调试信息样式 */
.debug-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 14px;
    overflow: hidden;
}

.debug-header {
    padding: 12px 16px;
    background: #e9ecef;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.toggle-debug {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.debug-content {
    padding: 16px;
    display: none;
    color: #495057;
}

/* 移动端导航样式 */

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:focus {
    outline: none;
}

/* 移动端下拉菜单 */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-dropdown-menu.show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover {
    background-color: #f8f9fa;
    padding-left: 24px;
}

.mobile-dropdown-menu a.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    padding-left: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 调整导航栏 */
    nav {
        padding: 0 1rem;
        position: relative;
    }
    
    /* 隐藏桌面导航链接 */
    .nav-links {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }
    
    /* 调整logo大小 */
    .logo h1 {
        font-size: 1.25rem;
    }
    
    /* 调整主内容区域 */
    main {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    /* 下拉菜单适配 */
    .mobile-dropdown-menu {
        width: 200px;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    /* 移动端更小屏幕适配 */
    nav {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    /* 下拉菜单适配 */
    .mobile-dropdown-menu {
        width: 100%;
        right: 0;
        border-radius: 0;
    }
}

/* 所有应用页面样式 */
.all-apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 筛选器样式 */
.apps-filters {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0 16px;
    border: 1px solid #e9ecef;
    min-width: 300px;
    flex: 1;
}

.search-bar input {
    flex: 1;
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background: #5a6268;
}

.filter-options {
    display: flex;
    gap: 16px;
}

.filter-options select {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-options select:focus {
    border-color: #4dabf7;
}

/* 应用卡片容器 */
.all-apps-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 24px;
}

.all-apps-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-apps-card .card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.all-apps-card .card-body {
    padding: 24px 32px;
}

/* 应用网格布局 */
.apps-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* 单个应用卡片 */
.app-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #4dabf7;
}

.app-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.app-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-badge {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.app-card-body {
    padding: 20px;
}

.app-name {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.app-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.created-date {
    font-size: 13px;
    color: #6c757d;
}

.btn-view-details {
    background: #4dabf7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-view-details:hover {
    background: #339af0;
}

/* 未找到应用提示 */
#no-apps-found {
    text-align: center;
    padding: 60px 20px;
}

#no-apps-found h3 {
    margin: 16px 0 8px 0;
    color: #495057;
    font-size: 18px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* 应用详情样式 */
.app-detail-content {
    padding: 24px;
}

.detail-header {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.detail-logo img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.detail-info h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #212529;
}

.detail-client-id {
    margin: 0 0 12px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.detail-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.category-tag {
    background: #4dabf7;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.created-info {
    color: #6c757d;
    font-size: 14px;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
}

.features-list {
    margin: 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #212529;
    font-size: 14px;
}

.info-item a {
    color: #4dabf7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: #339af0;
    text-decoration: underline;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: #343a40;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.3s ease;
    max-width: 300px;
}

.notification.show {
    right: 20px;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .all-apps-container {
        padding: 16px;
    }
    
    .apps-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        min-width: auto;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-options select {
        width: 100%;
    }
    
    .all-apps-card .card-header,
    .all-apps-card .card-body {
        padding: 20px;
    }
    
    .apps-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-card-header {
        padding: 16px;
    }
    
    .app-card-body,
    .app-card-footer {
        padding: 16px;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content.modal-lg {
        width: 95%;
        max-height: 90vh;
    }
    
    .app-detail-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .all-apps-card .card-header h2 {
        font-size: 20px;
    }
    
    .app-name {
        font-size: 16px;
    }
    
    .detail-info h2 {
        font-size: 20px;
    }
}

.debug-content p {
    margin: 8px 0;
    word-break: break-all;
}

/* 页面标题样式 */
.page-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    position: relative;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 卡片基础样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.card-header h2, .card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

/* 个人资料页面样式 */
.profile-page {
    max-width: 900px;
    margin: 0 auto;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 用户信息网格 */
.user-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background-color: #e9ecef;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* 身份验证因素样式 */
.auth-factors {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.factors-placeholder {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* 表单样式增强 */
.profile-edit-form,
.password-change-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

/* 按钮加载状态 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none !important;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:disabled .btn-text {
    display: none !important;
}

.btn:disabled .btn-loading {
    display: inline-block !important;
}

/* 密码强度指示器增强 */
.password-strength {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.strength-weak {
    width: 33%;
    height: 100%;
    background-color: #dc3545;
    transition: width 0.3s ease;
}

.strength-medium {
    width: 66%;
    height: 100%;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.strength-strong {
    width: 100%;
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.password-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

/* 表单组聚焦效果 */
.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group.focused label {
    color: #007bff;
    font-weight: 600;
}

/* 输入框动画效果 */
.form-group input {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    background-color: #fff;
}

.form-group input:hover {
    border-color: #007bff;
}

.form-group input::placeholder {
    color: #aaa;
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder {
    color: #ddd;
}

/* 输入框占位符 */
.form-group input {
    padding-left: 15px;
    padding-right: 15px;
    height: 45px;
    border-radius: 8px;
    font-size: 1rem;
}

/* 表单标签样式 */
.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #3a5be0;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

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

.btn-primary {
    background-color: #4a6cf7;
}

.btn-primary:hover {
    background-color: #3a5be0;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 登录按钮样式 */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4a6cf7, #3a5be0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
    background: linear-gradient(135deg, #3a5be0, #2d48b4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

.btn-login.btn-pressed {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

/* 文本链接样式 */
.text-link {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a6cf7;
    transition: width 0.3s ease;
}

.text-link:hover {
    color: #3a5be0;
}

.text-link:hover::after {
    width: 100%;
}

/* 消息提示样式 */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 首页样式 */
.home-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.home-container h1 {
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
}

/* 未登录状态卡片 */
.hero-card {
    background: linear-gradient(135deg, #4a90e2 0%, #5c6bc0 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hero-card .card-body {
    text-align: center;
    padding: 50px 40px;
}

.hero-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-card .btn-primary {
    background-color: white;
    color: #4a90e2;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-card .btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 功能特点卡片 */
.features-card {
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.feature-item:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4a90e2;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 已登录用户欢迎卡片 */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.welcome-card .card-header {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.welcome-card .card-header h2 {
    color: white;
    font-size: 1.8rem;
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-avatar {
    font-size: 5rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-details h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.user-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* 快速操作卡片 */
.quick-actions-card {
    background-color: #fff;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-action-item {
    display: block;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-action-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-color: #4a90e2;
}

.action-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #4a90e2;
}

.quick-action-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.quick-action-item p {
    font-size: 0.9rem;
    color: #666;
}

/* 账户信息卡片 */
.account-info-card {
    background-color: #fff;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.stat-value.status-active {
    color: #28a745;
}

.stat-value.status-inactive {
    color: #dc3545;
}

/* 系统信息卡片 */
.system-info-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.system-info-card .card-body {
    padding: 15px 25px;
    text-align: center;
}

.system-version {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .home-container h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero-card .card-body {
        padding: 40px 25px;
    }
    
    .hero-card h2 {
        font-size: 1.6rem;
    }
    
    .feature-grid,
    .quick-actions-grid,
    .account-stats {
        grid-template-columns: 1fr;
    }
    
    .welcome-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .user-avatar {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }
    
    .user-details h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 20px 15px;
    }
    
    .card-header {
        padding: 15px 15px;
    }
    
    .feature-item,
    .quick-action-item {
        padding: 20px 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.action-card,
.stat-item {
    animation: fadeIn 0.3s ease-out;
}

/* 密码强度指示器 */
.password-strength {
    width: 100%;
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-weak {
    width: 33%;
    height: 100%;
    background-color: #dc3545;
}

.strength-medium {
    width: 66%;
    height: 100%;
    background-color: #ffc107;
}

.strength-strong {
    width: 100%;
    height: 100%;
    background-color: #28a745;
}

/* 授权应用页面样式 */
.authorized-apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.page-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.authorized-apps-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authorized-apps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.card-body {
    padding: 32px;
}

/* 应用列表样式 */
.apps-list-header {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 1fr;
    gap: 20px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.app-item {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    align-items: center;
}

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

.app-item:hover {
    background-color: #f8f9fa;
}

.app-name-col {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.client-id {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* 访问权限样式 */
.scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scope-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scope-tag svg {
    opacity: 0.7;
}

/* 操作按钮样式 */
.btn-revoke {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-revoke:hover {
    background: #dc3545;
    color: white;
}

.btn-revoke:active {
    transform: scale(0.98);
}

/* 加载和空状态样式 */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.1rem;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #495057;
}

.warning-text {
    font-size: 0.95rem;
    color: #6c757d;
    padding: 12px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .authorized-apps-container {
        padding: 30px 15px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .apps-list-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        display: none;
    }
    
    .app-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    
    .app-name-col {
        order: 1;
    }
    
    .app-access-col {
        order: 2;
    }
    
    .app-last-access-col {
        order: 3;
        font-size: 0.9rem;
        color: #6c757d;
    }
    
    .app-action-col {
        order: 4;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .authorized-apps-container {
        padding: 20px 10px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .card-header, .card-body {
        padding: 20px;
    }
    
    .app-item {
        padding: 20px;
    }
    
    .app-icon {
        width: 40px;
        height: 40px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}