/* workspace_homepage.css - 工作台首页样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.homepage-container {
    width: 100%;
    margin: 0;
    padding: 40px 40px 40px 40px;
}

/* ========== 顶部功能区 ========== */
.features-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.greeting {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #6981EA;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(105, 129, 234, 0.3);
}

.guide-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 129, 234, 0.4);
}

.message-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    min-width: 200px;
    flex: 0 0 auto;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.05);
}

/* 不同颜色的渐变背景 */
.blue-gradient {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.cyan-gradient {
    background: linear-gradient(135deg, #50C878 0%, #3CB371 100%);
}

.teal-gradient {
    background: linear-gradient(135deg, #20B2AA 0%, #008B8B 100%);
}

.feature-icon-svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.95);
    stroke-width: 2.5;
}

.feature-content {
    text-align: left;
    flex: 1;
}

.feature-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* 推荐标签 */
.recommend-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

/* ========== 中间使用方法区 ========== */
.usage-section {
    margin-bottom: 60px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.more-link {
    color: #7c3aed;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #5b21b6;
}

/* ========== 工作空间左右分栏布局 ========== */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

/* 移动端响应式 */
@media (max-width: 968px) {
    .workspace-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 我的资料区域 */
.my-materials-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 0; /* 防止 Grid 子项被内容撑开 */
    overflow: hidden; /* 隐藏超出部分 */
}

/* 学习小组区域 */
.study-groups-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 0; /* 防止 Grid 子项被内容撑开 */
    overflow: hidden; /* 隐藏超出部分 */
}

/* 分栏布局中的section-title调整 */
.workspace-grid .section-title {
    margin-bottom: 16px;
}

.workspace-grid .section-title h2 {
    font-size: 18px;
}

/* 标题和数量显示 */
.title-with-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.materials-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #6980EA;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 20px;
}

/* 添加内容按钮 */
.add-content-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-content-btn:hover {
    background: #e8e8e8;
    color: #333;
}

/* 纵向滚动容器 - 我的资料 */
.materials-scroll-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    max-height: 280px; /* 两排卡片的高度 */
}

/* 当容器为空时隐藏滚动容器，避免大面积空白 */
.materials-scroll-wrapper:empty {
    display: none;
}

.materials-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.materials-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.materials-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.materials-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 移动端响应式 - 资料卡片 */
@media (max-width: 1200px) {
    .materials-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .materials-list-container {
        grid-template-columns: 1fr;
    }
}

.material-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 120px; /* 确保卡片有最小高度 */
}

.material-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.material-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.material-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.material-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* 不同类型的背景色 - 参考firstpage样式 */
.material-icon.lib {
    background: #007BFD;
}

.material-icon.folder {
    background: #007BFD;
}

.material-icon.card {
    background: #30AEE8;
}

.material-icon.practice {
    background: #FE9603;
}

.material-icon.file {
    background: #32C958;
}

.material-icon.pdf {
    background: #FE9603;
}

.material-icon.image,
.material-icon.images {
    background: #ec6575;
}

.material-icon.link {
    background: #007BFD;
}

.material-icon.text {
    background: #5A55D6;
}

/* 无背景色的图标样式 */
.material-icon-no-bg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-icon-no-bg img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.material-info {
    flex: 1;
    min-width: 0;
}

.material-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.material-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.material-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.material-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    font-weight: 500;
}

.material-type-badge.primary {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.material-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}

.material-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 统一空状态样式 - 左右两侧一致 */
.empty-materials,
.empty-groups {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-materials .empty-text,
.empty-groups .empty-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.empty-materials .empty-desc,
.empty-groups .empty-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.empty-materials .empty-action,
.empty-groups .empty-action {
    padding: 8px 20px;
    background: #6980EA;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-materials .empty-action:hover,
.empty-groups .empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 128, 234, 0.4);
    background: #5a70d9;
}

/* 纵向滚动容器 - 学习小组 */
.groups-scroll-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    max-height: 280px; /* 两排卡片的高度 */
}

/* 当容器为空时隐藏滚动容器，避免大面积空白 */
.groups-scroll-wrapper:empty {
    display: none;
}

.groups-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.groups-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.groups-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.groups-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 移动端响应式 - 小组卡片 */
@media (max-width: 1200px) {
    .groups-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .groups-list-container {
        grid-template-columns: 1fr;
    }
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.group-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 120px; /* 确保卡片有最小高度 */
}

.group-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #7c3aed;
    transform: translateY(-2px);
}

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

.group-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
    min-width: 0;
}

.group-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.group-tag {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.group-category {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.group-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空图标样式（已废弃，不再使用） */
.empty-icon {
    display: none;
}

.usage-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.usage-grid::-webkit-scrollbar {
    height: 6px;
}

.usage-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.usage-grid::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.usage-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    flex: 0 0 320px;
    min-width: 320px;
}

.usage-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.usage-image {
    display: none;
}

.usage-content {
    padding: 24px 20px;
}

.usage-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.usage-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ========== 底部资源列表区 ========== */
.resources-section {
    margin-bottom: 60px;
}

/* 第一级：资源标签（考研、考公等） - 大卡片样式 */
.resource-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.resource-tabs::-webkit-scrollbar {
    height: 6px;
}

.resource-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.resource-tab {
    min-width: 180px;
    padding: 16px 24px;
    border: 1px solid #e8e8e8;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-tab:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.resource-tab.active {
    background: #667EEA;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.resource-tab-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.resource-tab.active .resource-tab-title {
    color: white;
}

.resource-tab-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-tab.active .resource-tab-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* 第二级：内容类型分类标签 */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.category-tab {
    padding: 10px 24px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.category-tab:hover {
    border-color: #667EEA;
    color: #667EEA;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.category-tab.active {
    background: #667EEA;
    color: white;
    border-color: #667EEA;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.resource-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    position: relative;
}

.resource-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* 资源类型标签 */
.resource-type-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    border-radius: 0 8px 0 4px;
    font-size: 11px;
    font-weight: 400;
    z-index: 10;
    opacity: 0.85;
}

.resource-type-badge.folder {
    background: #8b94c5;
    color: white;
}

.resource-type-badge.card-group {
    background: #e89fb8;
    color: white;
}

.resource-type-badge.practice {
    background: #7db8d4;
    color: white;
}

.resource-type-badge.words {
    background: #81c9a8;
    color: white;
}

.resource-type-badge.pdf {
    background: #e5a08b;
    color: white;
}

.resource-type-badge.url {
    background: #7bb5c4;
    color: white;
}

.resource-type-badge.default {
    background: #b5c9ca;
    color: white;
}

.resource-image {
    width: 100%;
    height: auto;
    padding: 0;
    background: white;
    display: none;
}

.resource-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.resource-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.resource-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.resource-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.knowledge-count {
    color: #666;
    font-size: 12px;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 4px;
}

.author:hover {
    background-color: #f5f5f5;
    color: #333;
}

.author-avatar {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 当 author-avatar 是 img 元素本身时 */
img.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid #f0f0f0;
}

/* 当 img 在 author-avatar 容器内时 */
.author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid #f0f0f0;
}

.like-count {
    margin-left: auto;
    color: #f56565;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 48px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 加载状态 ========== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-state p {
    color: #999;
    font-size: 14px;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.empty-state p {
    color: #999;
    font-size: 16px;
}

/* ========== 错误状态 ========== */
.error-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.error-state p {
    color: #f56565;
    font-size: 16px;
}

/* ========== 时间样式 ========== */
.create-time {
    color: #999;
    font-size: 12px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .usage-grid {
        flex-wrap: wrap;
    }
    
    .usage-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 20px 16px;
    }
    
    .greeting {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .usage-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .usage-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
}

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

.feature-card,
.usage-card,
.resource-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 每个卡片依次延迟出现 */
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

