/* 登录/注册弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-modal-header {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.login-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.login-modal-close:hover {
    opacity: 1;
}

/* 登录/注册标签 */
.login-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-tab.active {
    background: #fff;
    color: #FF6B35;
    border-bottom: 2px solid #FF6B35;
}

/* 表单样式 */
.login-form {
    display: none;
    padding: 20px;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

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

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 80px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #E55A2B, #E68A1A);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 错误弹窗样式 */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.error-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: errorModalSlideIn 0.3s ease-out;
}

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

.error-modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 20px;
}

.error-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.error-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.error-modal-close:hover {
    opacity: 1;
}

.error-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.error-modal-body p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.error-modal-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.error-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #d63031);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-modal-content {
        width: 95%;
        margin: 0 10px;
        max-width: 320px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .captcha-img {
        width: 70px;
        height: 40px;
    }
}

/* PC端容器样式 */
@media (min-width: 701px) {
    .page-container {
        max-width: 1320px;
        margin: 0 auto;
        background: #fff;
        min-height: auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    body {
        padding-bottom: 0;
    }

    .bottom-nav {
        display: none !important;
    }

    .page-container > * {
        margin-bottom: 0;
    }

    .page-container > *:last-child {
        margin-bottom: 40px;
    }

    .navbar {
        background: #fff !important;
        border-bottom: 1px solid #e9ecef;
    }

    footer {
        background: #f8f9fa !important;
        border-top: 1px solid #e9ecef;
    }

    .page-container {
        padding-top: 20px;
    }

    .page-container {
        margin-top: 0;
    }

    .navbar {
        position: sticky !important;
        top: 0;
        z-index: 1030;
    }
}

/* 顶部标题栏 */
.header {
    background: #fff;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (min-width: 701px) {
    .header {
        display: none;
    }

    .search-bar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .header {
        display: block;
    }

    .search-bar {
        display: block;
    }
}

.navbar {
    display: none !important;
}

@media (min-width: 992px) {
    .navbar {
        display: block !important;
    }

    .navbar .container.d-none.d-lg-flex {
        display: flex !important;
    }

    .navbar .container-fluid.d-lg-none {
        display: none !important;
    }
}

.header h1 {
    font-size: 18px;
    color: #000;
    margin: 0;
}

/* 搜索栏 */
.search-bar {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

@media (min-width: 701px) {
    .search-bar {
        display: none;
    }
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input i {
    color: #999;
    font-size: 16px;
}

.search-input input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #000;
    background: transparent;
}

.search-input input::placeholder {
    color: #666;
}

/* 幻灯片轮播 */
.carousel-section {
    margin: 10px 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

@media (min-width: 701px) {
    .carousel-section {
        margin: 20px 40px 20px 40px;
        border-radius: 20px;
    }

    .carousel-item {
        min-height: 300px;
    }
}

.carousel-item {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    padding: 30px 16px;
    text-align: center;
    color: #fff;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-link:hover {
    text-decoration: none;
    color: inherit;
}

.carousel-content {
    position: relative;
    z-index: 2;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 并排图片布局 */
.feature-cards {
    display: flex;
    gap: 10px;
    margin: 0 10px 10px 10px;
    flex-direction: row;
}

@media (min-width: 701px) {
    .feature-cards {
        margin: 0 40px 20px 40px;
        gap: 20px;
    }

    .feature-card {
        height: 200px;
        border-radius: 20px;
    }
}

.feature-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    min-width: 0;
    flex-shrink: 0;
}

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

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 滚动信息 */
.scroll-info {
    margin: 0 10px 10px 10px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 701px) {
    .scroll-info {
        margin: 0 40px 20px 40px;
        border-radius: 16px;
        padding: 16px 24px;
    }
}

.scroll-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background-color: #fff;
    z-index: 10;
    pointer-events: none;
}

.scroll-icon {
    color: #666;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    background: #fff;
}

.scroll-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 20px;
    z-index: 15;
}

.scroll-text {
    font-size: 14px;
    color: #000;
    white-space: nowrap;
    display: inline-block;
    position: absolute;
    z-index: 15;
    width: max-content;
    transform: translateX(100%);
    animation: scroll-text 10s linear infinite;
    top: 0;
    left: 0;
    line-height: 20px;
    animation-fill-mode: both;
    right: 0;
}

.scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, #fff 0%, #fff 70%, transparent 70%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 分类网格 */
.category-section {
    margin: 0 8px 8px 8px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (min-width: 701px) {
    .category-section {
        margin: 0 40px 20px 40px;
        border-radius: 16px;
        padding: 20px 16px;
    }

    .category-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .category-name {
        font-size: 16px;
        margin-top: 8px;
    }

    .category-item:hover .category-icon {
        transform: scale(1.15);
    }
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #000;
}

.category-title i {
    color: #666;
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: #000;
    display: block;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 14px;
    color: #000;
    line-height: 1.1;
}

/* 统计信息 */
.stats-section {
    margin: 0 10px 10px 10px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

@media (min-width: 701px) {
    .stats-section {
        margin: 0 40px 20px 40px;
        border-radius: 20px;
        padding: 24px;
    }

    .stats-item {
        padding: 15px 0;
    }

    .stats-label {
        font-size: 16px;
    }

    .stats-value {
        font-size: 16px;
    }
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.stats-label {
    font-size: 14px;
    color: #000;
}

.stats-value {
    font-size: 14px;
    color: #666;
    text-align: left;
}

/* 图片列表 */
.resource-list {
    margin: 0 10px 10px 10px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0;
}

@media (min-width: 701px) {
    .resource-list {
        margin: 0 40px 20px 40px;
        border-radius: 20px;
    }

    .resource-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .resource-image {
        height: 200px;
    }

    .resource-info {
        padding: 15px;
    }

    .resource-title {
        font-size: 16px;
        max-height: 48px;
    }

    .resource-meta {
        font-size: 14px;
    }
}

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

.list-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #000;
}

.list-title i {
    color: #666;
    font-size: 8px;
}

.list-more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    padding: 12px;
}

.resource-item {
    padding: 0;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    margin: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.resource-item:hover {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.resource-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.resource-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.resource-image {
    width: 100%;
    height: 275px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.resource-info {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.resource-title {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 40px;
    text-align: left;
}

.resource-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 11px;
    color: #666;
    flex-wrap: nowrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-item i {
    font-size: 10px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.tag-stage {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-subject {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag-category {
    background: #e8f5e9;
    color: #388e3c;
}

.tag-version {
    background: #fff3e0;
    color: #f57c00;
}

.resource-meta .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
}

.resource-meta .stat-item i {
    font-size: 11px;
}

.price {
    color: #666;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.nav-item.active {
    color: #000;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 用户头像样式 */
.user-avatar-container {
    position: relative;
    z-index: 9998;
}

.user-avatar-wrapper {
    position: relative;
    z-index: 9998;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.user-avatar.online {
    border-color: #28a745;
}

.user-avatar.offline {
    border-color: #6c757d;
    opacity: 0.7;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-indicator.online {
    background-color: #28a745;
}

.status-indicator.offline {
    background-color: #6c757d;
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

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

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

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-item.username {
    font-weight: 600;
    color: #007bff;
    cursor: default;
}

.dropdown-item.username:hover {
    background-color: transparent;
    color: #007bff;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}

.dropdown-item:hover i {
    color: inherit;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-buttons .btn {
    font-size: 12px;
    padding: 4px 12px;
}

/* 中等屏幕优化 */
@media (min-width: 701px) and (max-width: 1320px) {
    .page-container {
        margin: 0 20px;
    }

    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .status-indicator {
        width: 10px;
        height: 10px;
    }

    .user-dropdown-menu {
        min-width: 140px;
        right: -10px;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .carousel-section {
        margin: 8px 8px;
    }

    .scroll-info {
        margin: 0 8px 8px 8px;
    }

    .category-section {
        margin: 0 8px 8px 8px;
    }

    .stats-section {
        margin: 0 8px 8px 8px;
    }

    .resource-list {
        margin: 0 8px 8px 8px;
    }

    .feature-cards {
        margin: 0 8px 8px 8px;
    }

    .feature-card {
        height: 100px;
    }

    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin: 0 auto 3px;
    }

    .category-name {
        font-size: 14px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .resource-item {
        padding: 0;
        margin: 0;
    }

    .resource-content {
        flex-direction: column;
    }

    .resource-image {
        width: 100%;
        height: 275px;
        font-size: 20px;
    }

    .resource-info {
        padding: 10px;
        gap: 6px;
    }

    .resource-title {
        font-size: 14px;
        max-height: 40px;
    }

    .resource-meta {
        gap: 12px;
        font-size: 11px;
        flex-wrap: nowrap;
    }

    .meta-item {
        gap: 3px;
        flex: 1;
    }

    .meta-item i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
    }

    .user-dropdown-menu {
        min-width: 120px;
        right: -15px;
    }

    .dropdown-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .carousel-section {
        margin: 6px 6px;
    }

    .scroll-info {
        margin: 0 6px 6px 6px;
    }

    .category-section {
        margin: 0 6px 6px 6px;
    }

    .stats-section {
        margin: 0 6px 6px 6px;
    }

    .resource-list {
        margin: 0 6px 6px 6px;
    }

    .feature-cards {
        margin: 0 6px 6px 6px;
        gap: 6px;
    }

    .feature-card {
        height: 80px;
    }

    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin: 0 auto 3px;
    }

    .category-name {
        font-size: 14px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .resource-item {
        padding: 0;
        margin: 0;
    }

    .resource-image {
        width: 100%;
        height: 275px;
        font-size: 16px;
    }

    .resource-info {
        padding: 10px;
        gap: 6px;
    }

    .resource-title {
        font-size: 14px;
        max-height: 40px;
    }

    .resource-meta {
        gap: 12px;
        font-size: 11px;
        flex-wrap: nowrap;
    }

    .meta-item {
        gap: 3px;
        flex: 1;
    }
}
