/* 按钮组件 */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.btn-primary {
    background: var(--highlight-gradient);
    color: white;
    padding: 12px 24px;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: #ffffff47;
    color: whitesmoke;
    border: 1px solid var(--primary-blue);
    padding: 11px 23px;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: #865bb0b0;
    color: #3f1767;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary-large {
    background: var(--highlight-gradient);
    color: white;
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-large {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-secondary-large:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 课程卡片 */
.course-card {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* 课程卡片新增样式 */
.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.course-btn {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--primary-blue);
}

.course-reward {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 空状态和错误状态 */
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state .empty-icon svg {
    stroke: currentColor;
    fill: none;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.error-state p {
    color: #ef4444;
    font-weight: 500;
}

.course-content {
    padding: var(--spacing-lg);
}

.course-category {
    display: inline-block;
    background: var(--background-secondary);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.course-difficulty {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner {
    background: #E8F5E8;
    color: #2D7D32;
}

.difficulty-intermediate {
    background: #FFF3E0;
    color: #EF6C00;
}

.difficulty-advanced {
    background: #FFEBEE;
    color: #C62828;
}

/* 表单组件 */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

/* 警告框 */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-success {
    background: #E8F5E8;
    border-color: #4CAF50;
    color: #2D7D32;
}

.alert-error {
    background: #FFEBEE;
    border-color: #F44336;
    color: #C62828;
}

.alert-warning {
    background: #FFF3E0;
    border-color: #FF9800;
    color: #EF6C00;
}

.alert-info {
    background: #E3F2FD;
    border-color: #2196F3;
    color: #1976D2;
}

/* 内联错误动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-secondary {
    background: var(--background-secondary);
    color: var(--text-secondary);
}

.badge-success {
    background: #4CAF50;
    color: white;
}

.badge-warning {
    background: #FF9800;
    color: white;
}

.badge-danger {
    background: #F44336;
    color: white;
}

/* 进度条 */
.progress {
    width: 100%;
    height: 8px;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--highlight-gradient);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

/* 标签页 */
.tabs {
    margin-bottom: var(--spacing-lg);
}

.tab-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.tab-item {
    margin: 0;
}

.tab-link {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-link:hover,
.tab-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--background-secondary);
}

/* 搜索框 */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--background-primary);
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background: var(--text-primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 认证表单动画已移除，使用模态框统一动画 */

/* ------------------------- */
/* Modal Styles              */
/* ------------------------- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    /* 通过 class 'show' 来显示 */
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--background-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#modalTitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    position: relative;
}


/* ------------------------- */
/* Auth Form Styles          */
/* ------------------------- */

.auth-form {
    display: none; /* 默认隐藏 */
    animation: formFadeIn 0.4s ease-in-out;
}

.auth-form.active {
    display: block; /* 只显示激活的表单 */
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--background-secondary);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.auth-form .btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-form .form-switch-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-form .form-switch-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-form .form-switch-text a:hover {
    text-decoration: underline;
}

/* ------------------------- */
/* User Menu Styles          */
/* ------------------------- */

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-menu:hover .user-info {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-menu .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #4A5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-menu .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu .user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.user-menu .user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    width: 200px;
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f0f2f5;
}

.user-dropdown .dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: #555;
}

/* ------------------------- */
/* Settings Page Styles      */
/* ------------------------- */

.settings-container {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
}

.settings-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.settings-container p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.settings-card {
    background: var(--background-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.settings-card-header {
    padding: 2.5rem 3rem 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.settings-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.settings-card-header .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.settings-card-body {
    padding: 3rem;
}

.settings-card .form-group {
    margin-bottom: 2.5rem;
}

.settings-card .form-group:last-child {
    margin-bottom: 0;
}

.settings-card label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-card .form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.0625rem;
    transition: all 0.2s ease;
    background: var(--background-primary);
    max-width: 500px;
}

.settings-card .form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.avatar-section {
    background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    text-align: center;
}

.avatar-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.avatar-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
}

.avatar-upload-controls {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.avatar-upload-controls .btn-secondary {
    background: var(--background-secondary);
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.avatar-upload-controls .btn-secondary:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.5;
}

.form-hint.avatar-hint {
    margin-top: 1.25rem;
}

#emailInput[disabled] {
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-actions {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.form-actions .btn-primary {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.2);
    font-size: 1.0625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 账户管理区域 */
.account-management {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.account-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.account-option-info {
    flex: 1;
}

.account-option-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.account-option-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.account-option button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.account-option .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.account-option .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.account-option .btn-danger {
    background: #dc2626;
    color: white;
}

.account-option .btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 退出登录选项特殊样式 */
.logout-option {
    border-color: #fecaca;
    background: #fef2f2;
}

.logout-option:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.logout-option .account-option-info h3 {
    color: #dc2626;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .settings-container {
        padding: 2rem 1.5rem;
        max-width: 700px;
    }
    
    .settings-card-header,
    .settings-card-body {
        padding: 2rem;
    }
    
    .avatar-section {
        padding: 2rem;
    }
    
    .avatar-upload-wrapper {
        gap: 2rem;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .settings-container {
        padding: 1.5rem 1rem;
    }
    
    .settings-container h1 {
        font-size: 2rem;
    }
    
    .settings-container p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .settings-card-header,
    .settings-card-body {
        padding: 1.5rem;
    }
    
    .avatar-section {
        padding: 1.5rem;
    }
    
    .avatar-upload-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .avatar-preview {
        width: 80px;
        height: 80px;
    }
    
    .avatar-upload-controls {
        text-align: center;
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn-primary {
        width: 100%;
        max-width: 300px;
    }

    .account-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .account-option button {
        width: 100%;
        justify-content: center;
    }

    .settings-card {
        margin: 0 1rem;
    }

    .settings-card-header h2 {
        font-size: 1.25rem;
    }

    .account-option-info h3 {
        font-size: 1rem;
    }

    .account-option-info p {
        font-size: 0.85rem;
    }
} 

/* AI工具卡片样式 */
.tool-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 工具图片样式 */
.card-image-wrapper-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0;
}

.tool-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.tool-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.free-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10B981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    z-index: 2;
}

.tool-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.tool-category {
    background: #764ba2;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tool-points {
    color: #667eea;
    font-weight: 600;
}

/* 加载和空状态样式 */
.loading-tools, .no-tools {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
    font-size: 14px;
}

.loading-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-tools::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .tool-name {
        font-size: 13px;
    }
    
    .tool-meta {
        font-size: 10px;
    }
} 