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

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: #393D49;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-list a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
}

.nav-list a.active {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

.mobile-menu-toggle i {
    transition: transform 0.3s;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 300px;
    font-size: 0.9rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #ff6b35;
    color: white;
    border: 1px solid #ff6b35;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-link:hover {
    background-color: #f8f9fa;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

.btn-block {
    width: 100%;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 分类区域 */
.categories-section {
    margin: 0;
}

.categories-section h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 3px solid #007bff;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-item a {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.category-item h3 {
    margin-bottom: 0.25rem;
    color: #007bff;
    font-size: 1rem;
}

.category-item p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.resource-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 资源网格 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resource-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resource-image {
    height: 200px;
    overflow: hidden;
}

.resource-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.resource-image a:hover img {
    transform: scale(1.05);
}

.resource-info {
    padding: 0.8rem;
}

.resource-info h3,
.resource-info h4 {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-info h3 a {
    text-decoration: none;
    color: #333;
}

.resource-info h3 a:hover {
    color: #007bff;
}

.resource-desc {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.category {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* 认证页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.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;
}

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

.form-group small {
    color: #666;
    font-size: 0.8rem;
}

.text-center {
    text-align: center;
}

/* 提示框样式 */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination li a {
    display: block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination li a:hover,
.pagination li.active a {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background: #0056b3;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 英雄搜索区域样式 */
.hero-search-section {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #ecf0f1 100%);
    margin-top: 0;
    margin-bottom: 0;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, #2c3e50 0%, #34495e 40%, #bdc3c7 70%, #ecf0f1 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><polygon fill="%23bdc3c7" points="0,200 150,150 300,180 450,120 600,160 750,100 900,140 1050,80 1200,120 1200,300 0,300"/><polygon fill="%23ecf0f1" points="0,240 100,200 250,220 400,180 550,200 700,160 850,180 1000,140 1200,160 1200,300 0,300"/><polygon fill="%23ffffff" points="0,280 80,250 200,270 350,230 500,250 650,210 800,230 950,190 1200,210 1200,300 0,300"/></svg>');
    background-size: cover;
    background-position: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

/* 移除search-container样式 */

.hero-search-form {
    display: flex;
    gap: 0;
    max-width: 550px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    color: #999;
    font-size: 1rem;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.search-button {
    padding: 0.8rem 2rem;
    background: #ff6b35;
    color: white;
    border: 1px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.search-button:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 统计信息栏样式 */
.stats-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.stats-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.stat-value {
    color: #ff6600;
    font-size: 1.1rem;
}

/* 广告位样式 */
.ad-section {
    margin: 2rem 0;
}

.ad-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.ad-banner {
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    transition: transform 0.3s;
}

.ad-banner:hover {
    transform: translateY(-2px);
}

.ad-banner-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-banner-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ad-banner-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ad-banner-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ad-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.ad-content p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* 最新发布区域 */
.latest-section {
    margin: 1rem 0;
}

/* 热门下载区域 */
.popular-section {
    margin: 0.5rem 0;
}

.popular-section h2 {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.popular-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #ff6b35;
    border-radius: 2px;
}

/* 分类标签样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    position: relative;
    padding-left: 1rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #ff6b35;
    border-radius: 2px;
}

.category-tabs {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #393D49;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .nav.active {
        display: block !important;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    
    .nav-list a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-list a.active {
        background: rgba(46, 204, 113, 0.2);
        border-bottom-color: #2ecc71;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-search-section {
        height: 200px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-search-form {
        flex-direction: row;
        gap: 0;
    }
    
    .search-input-wrapper input {
        border-radius: 8px 0 0 8px;
        padding: 0.8rem 0.8rem 0.8rem 2.2rem;
    }
    
    .search-button {
        border-radius: 0 8px 8px 0;
        padding: 0.8rem 1.5rem;
    }
    
    .stats-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .stat-item {
        padding: 0.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-right: 0.3rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .ad-banners {
        grid-template-columns: 1fr;
    }
    
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* 大屏幕 - 3列 */
@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕 - 2列 */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕 - 2列 */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .footer-content {
        display: none;
    }
}

/* 超小屏幕 - 1列 */
@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
}

/* layui风格图片遮罩层样式 */
.layui-layer {
    position: fixed;
    z-index: 19891020;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: layuiFadeIn 0.3s ease-out;
}

.layui-layer-page {
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    box-shadow: none;
}

.layui-layer-photos {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

.layui-layer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layui-layer-photos-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layui-layer-photos-img {
    position: relative;
    text-align: center;
}

.layui-layer-photos-img img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: layuiZoomIn 0.3s ease-out;
}

.layui-layer-photos-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 19891021;
}

.layui-layer-photos-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 可点击图片样式 */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* layui风格动画效果 */
@keyframes layuiFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes layuiZoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-layer-photos-wrap {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .layui-layer-photos-img img {
        max-height: 85vh;
    }
    
    .layui-layer-photos-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    margin: 1rem 0;
    padding: 0.75rem 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #ccc;
    font-size: 0.8rem;
}

.breadcrumb-item:last-child .breadcrumb-separator {
    display: none;
}

/* 响应式面包屑 */
@media (max-width: 768px) {
    .breadcrumb {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-list {
        padding: 0 0.75rem;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
}

/* 标签按钮样式 */
.tab-btn {
    display: inline-block;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #009688;
}

.tab-btn.active {
    color: #009688;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #009688;
    border-radius: 1px;
}

/* 资源类型徽章样式 */
.resource-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--type-color, #007bff);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.resource-type-badge i {
    font-size: 0.7rem;
}

/* 资源项相对定位 */
.resource-item .resource-image {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .resource-type-badge {
        top: 0.25rem;
        right: 0.25rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        gap: 0.8rem;
    }
    
    .tab-btn {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
}