297 lines
		
	
	
		
			7.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			297 lines
		
	
	
		
			7.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
{include file="component/head" /}
 | 
						|
{include file="component/header-simple" /}
 | 
						|
 | 
						|
<!-- 简约现代资源列表页 -->
 | 
						|
<div class="modern-resources-page">
 | 
						|
    <!-- 简约标题区 -->
 | 
						|
    <div class="modern-header">
 | 
						|
        <div class="container">
 | 
						|
            <h1 class="modern-title">{$category.name}</h1>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <!-- 主要内容区 -->
 | 
						|
    <div class="container">
 | 
						|
        <div class="modern-layout">
 | 
						|
            <!-- 资源列表网格 -->
 | 
						|
            <div class="resource-grid" id="resourceList">
 | 
						|
                {volist name="data" id="resource"}
 | 
						|
                <div class="resource-card">
 | 
						|
                    <div class="card-image">
 | 
						|
                        <img src="{$resource.icon|default='/static/images/default-resource.jpg'}"
 | 
						|
                            alt="{$resource.name}">
 | 
						|
                        <div class="image-overlay"></div>
 | 
						|
                    </div>
 | 
						|
                    <div class="card-content">
 | 
						|
                        <div class="meta-info">
 | 
						|
                            <span class="resource-number">{$resource.number}</span>
 | 
						|
                            <time class="create-date">{$resource.create_time|date="Y-m-d"}</time>
 | 
						|
                        </div>
 | 
						|
                        <h3 class="resource-title">{$resource.name}</h3>
 | 
						|
                        <div class="card-footer">
 | 
						|
                            <div class="resource-stats">
 | 
						|
                                <span class="stat-item">
 | 
						|
                                    <i class="layui-icon layui-icon-template-1"></i>
 | 
						|
                                    <span>资源详情</span>
 | 
						|
                                </span>
 | 
						|
                            </div>
 | 
						|
                            <a href="/index/resources/detail?id={$resource.id}" class="view-more">
 | 
						|
                                <span>查看详情</span>
 | 
						|
                                <i class="layui-icon layui-icon-right"></i>
 | 
						|
                            </a>
 | 
						|
                        </div>
 | 
						|
                    </div>
 | 
						|
                </div>
 | 
						|
                {/volist}
 | 
						|
            </div>
 | 
						|
 | 
						|
            <!-- 分页 -->
 | 
						|
            <div class="pagination-container">
 | 
						|
                {$page|raw}
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
</div>
 | 
						|
 | 
						|
<style>
 | 
						|
    /* 基础样式重置 */
 | 
						|
    .modern-resources-page {
 | 
						|
        font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
 | 
						|
        color: #333;
 | 
						|
        line-height: 1.6;
 | 
						|
        background-color: #f9fafc;
 | 
						|
        padding-bottom: 60px;
 | 
						|
    }
 | 
						|
 | 
						|
    /* 标题区样式 */
 | 
						|
    .modern-header {
 | 
						|
        background: linear-gradient(135deg, #1E9FFF 0%, #0d8aff 100%);
 | 
						|
        color: white;
 | 
						|
        padding: 150px 0;
 | 
						|
        text-align: center;
 | 
						|
        margin-bottom: 40px;
 | 
						|
        position: relative;
 | 
						|
        overflow: hidden;
 | 
						|
    }
 | 
						|
 | 
						|
    .modern-header::before {
 | 
						|
        content: '';
 | 
						|
        position: absolute;
 | 
						|
        top: 0;
 | 
						|
        left: 0;
 | 
						|
        right: 0;
 | 
						|
        bottom: 0;
 | 
						|
        background: url('/static/images/pattern.png') repeat;
 | 
						|
        background-size: cover;
 | 
						|
        background-position: center;
 | 
						|
        opacity: 0.1;
 | 
						|
    }
 | 
						|
 | 
						|
    .modern-title {
 | 
						|
        font-size: 2.5rem;
 | 
						|
        font-weight: 300;
 | 
						|
        margin-bottom: 15px;
 | 
						|
        letter-spacing: 1px;
 | 
						|
        position: relative;
 | 
						|
    }
 | 
						|
 | 
						|
    .modern-subtitle {
 | 
						|
        font-size: 1.1rem;
 | 
						|
        font-weight: 300;
 | 
						|
        opacity: 0.9;
 | 
						|
        margin: 0;
 | 
						|
        position: relative;
 | 
						|
    }
 | 
						|
 | 
						|
    /* 资源网格布局 */
 | 
						|
    .resource-grid {
 | 
						|
        display: grid;
 | 
						|
        grid-template-columns: repeat(4, 1fr);
 | 
						|
        gap: 25px;
 | 
						|
        margin-bottom: 40px;
 | 
						|
    }
 | 
						|
 | 
						|
    /* 资源卡片样式 */
 | 
						|
    .resource-card {
 | 
						|
        background: white;
 | 
						|
        border-radius: 12px;
 | 
						|
        overflow: hidden;
 | 
						|
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
 | 
						|
        transition: all 0.3s ease;
 | 
						|
        display: flex;
 | 
						|
        flex-direction: column;
 | 
						|
        border: 1px solid #f0f0f0;
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-card:hover {
 | 
						|
        transform: translateY(-5px);
 | 
						|
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
 | 
						|
        border-color: #e6f7ff;
 | 
						|
    }
 | 
						|
 | 
						|
    .card-image {
 | 
						|
        height: 180px;
 | 
						|
        position: relative;
 | 
						|
        overflow: hidden;
 | 
						|
        background-color: #f5f7fa;
 | 
						|
    }
 | 
						|
 | 
						|
    .card-image img {
 | 
						|
        width: 100%;
 | 
						|
        height: 100%;
 | 
						|
        object-fit: cover;
 | 
						|
        transition: transform 0.5s ease;
 | 
						|
    }
 | 
						|
 | 
						|
    .image-overlay {
 | 
						|
        position: absolute;
 | 
						|
        top: 0;
 | 
						|
        left: 0;
 | 
						|
        right: 0;
 | 
						|
        bottom: 0;
 | 
						|
        background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-card:hover .card-image img {
 | 
						|
        transform: scale(1.05);
 | 
						|
    }
 | 
						|
 | 
						|
    .card-content {
 | 
						|
        padding: 20px;
 | 
						|
        flex: 1;
 | 
						|
        display: flex;
 | 
						|
        flex-direction: column;
 | 
						|
    }
 | 
						|
 | 
						|
    .meta-info {
 | 
						|
        display: flex;
 | 
						|
        justify-content: space-between;
 | 
						|
        margin-bottom: 12px;
 | 
						|
        font-size: 0.85rem;
 | 
						|
        color: #666;
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-number {
 | 
						|
        background: #f0f7ff;
 | 
						|
        color: #1E9FFF;
 | 
						|
        padding: 3px 10px;
 | 
						|
        border-radius: 4px;
 | 
						|
        font-size: 0.75rem;
 | 
						|
        font-weight: 500;
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-title {
 | 
						|
        font-size: 1.1rem;
 | 
						|
        font-weight: 500;
 | 
						|
        margin: 0 0 15px;
 | 
						|
        color: #333;
 | 
						|
        line-height: 1.4;
 | 
						|
    }
 | 
						|
 | 
						|
    .card-footer {
 | 
						|
        display: flex;
 | 
						|
        justify-content: space-between;
 | 
						|
        align-items: center;
 | 
						|
        margin-top: auto;
 | 
						|
        padding-top: 15px;
 | 
						|
        border-top: 1px solid #f0f0f0;
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-stats {
 | 
						|
        font-size: 0.85rem;
 | 
						|
        color: #666;
 | 
						|
    }
 | 
						|
 | 
						|
    .stat-item {
 | 
						|
        display: flex;
 | 
						|
        align-items: center;
 | 
						|
        gap: 5px;
 | 
						|
    }
 | 
						|
 | 
						|
    .stat-item i {
 | 
						|
        font-size: 1rem;
 | 
						|
        color: #1E9FFF;
 | 
						|
    }
 | 
						|
 | 
						|
    .view-more {
 | 
						|
        color: #1E9FFF;
 | 
						|
        font-size: 0.9rem;
 | 
						|
        font-weight: 500;
 | 
						|
        text-decoration: none;
 | 
						|
        display: flex;
 | 
						|
        align-items: center;
 | 
						|
        gap: 5px;
 | 
						|
    }
 | 
						|
 | 
						|
    .view-more i {
 | 
						|
        font-size: 0.8rem;
 | 
						|
        transition: transform 0.3s ease;
 | 
						|
    }
 | 
						|
 | 
						|
    .resource-card:hover .view-more i {
 | 
						|
        transform: translateX(3px);
 | 
						|
    }
 | 
						|
 | 
						|
    /* 分页样式 */
 | 
						|
    .pagination-container {
 | 
						|
        text-align: center;
 | 
						|
        margin-top: 40px;
 | 
						|
    }
 | 
						|
 | 
						|
    .pagination-container .pagination {
 | 
						|
        display: inline-flex;
 | 
						|
        gap: 5px;
 | 
						|
    }
 | 
						|
 | 
						|
    .pagination-container .pagination a,
 | 
						|
    .pagination-container .pagination span {
 | 
						|
        padding: 8px 16px;
 | 
						|
        border-radius: 4px;
 | 
						|
        background: white;
 | 
						|
        color: #666;
 | 
						|
        text-decoration: none;
 | 
						|
        transition: all 0.3s ease;
 | 
						|
        border: 1px solid #f0f0f0;
 | 
						|
    }
 | 
						|
 | 
						|
    .pagination-container .pagination a:hover {
 | 
						|
        background: #f0f7ff;
 | 
						|
        color: #1E9FFF;
 | 
						|
        border-color: #e6f7ff;
 | 
						|
    }
 | 
						|
 | 
						|
    .pagination-container .pagination .active {
 | 
						|
        background: #1E9FFF;
 | 
						|
        color: white;
 | 
						|
        border-color: #1E9FFF;
 | 
						|
    }
 | 
						|
 | 
						|
    /* 响应式设计 */
 | 
						|
    @media (max-width: 1200px) {
 | 
						|
        .resource-grid {
 | 
						|
            grid-template-columns: repeat(3, 1fr);
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    @media (max-width: 992px) {
 | 
						|
        .resource-grid {
 | 
						|
            grid-template-columns: repeat(2, 1fr);
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    @media (max-width: 576px) {
 | 
						|
        .resource-grid {
 | 
						|
            grid-template-columns: 1fr;
 | 
						|
        }
 | 
						|
        
 | 
						|
        .modern-title {
 | 
						|
            font-size: 1.8rem;
 | 
						|
        }
 | 
						|
        
 | 
						|
        .modern-subtitle {
 | 
						|
            font-size: 1rem;
 | 
						|
        }
 | 
						|
    }
 | 
						|
</style>
 | 
						|
 | 
						|
{include file="component/foot" /} |