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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.5;
    color: #333;
    padding: 15px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
}

/* 资源网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 资源卡片 */
.resource-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 封面图片区域 */
.resource-cover {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

 

/* 资源标题 */
.resource-title {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

/* 资源描述 */
.resource-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1;
}

/* 资源元信息 */
.resource-meta {
    margin-bottom: 15px;
}

.tag {
    background: #e8f0fe;
    color: #007AFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}

/* 按钮 */
.btn {
    display: block;
    padding: 12px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    margin: 6px 0;
}

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

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

.btn-pay {
    background: #ff6b6b;
    color: white;
}

.btn-pay:hover {
    background: #ff5252;
}

/* 付费说明 */
.pay-note {
    text-align: center;
    color: white;
    font-size: 1em;
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* H5适配 - 小屏幕 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-card {
        padding: 18px;
    }
    
  
    
    .resource-title {
        font-size: 1.3em;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.95em;
    }
}

/* 超小屏幕 */
@media (max-width: 380px) {
   
    
    .resource-title {
        font-size: 1.2em;
    }
    
    .resource-desc {
        font-size: 0.9em;
    }
}