/* 资源页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(13, 71, 161, 0.9)), url('../images/resources-bg.svg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-header:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 8%, transparent 8%);
    background-position: 0 0;
    background-size: 30px 30px;
    opacity: 0.3;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* 资源分类标签 */
.resource-categories {
    background-color: #fff;
    padding: 1.5rem 0;
    position: relative;
    margin-top: -30px;
    z-index: 10;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background-color: rgba(25, 118, 210, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
}

/* 资源搜索 */
.resource-search {
    padding: 3rem 0 2rem;
}

.search-resources {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-resources:hover, 
.search-resources:focus-within {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.search-resources input {
    flex: 1;
    padding: 1.2rem 1.8rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-resources button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-resources button:hover {
    background-color: var(--secondary-color);
}

.search-resources button i {
    font-size: 1.2rem;
}

/* 资源列表 */
.resources-list h2,
.community-resources h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2.2rem;
}

.resources-list h2:after,
.community-resources h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.resource-group {
    margin-bottom: 4rem;
    position: relative;
}

.resource-group h3 {
    color: var(--dark-color);
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(25, 118, 210, 0.2);
    position: relative;
    font-size: 1.6rem;
}

.resource-group h3:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resource-item {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.resource-item-visible {
    opacity: 1;
    transform: translateY(0);
}

.resource-icon {
    margin-right: 18px;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(25, 118, 210, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.resource-item:hover .resource-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    margin-bottom: 0.6rem;
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.resource-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.resource-info a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.3rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.resource-info a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.resource-info a:hover {
    color: var(--secondary-color);
}

.resource-info a:hover:after {
    width: 100%;
}

/* 华人社区资源 */
.community-resources {
    background-color: #f8f9fa;
    padding: 4rem 0;
    position: relative;
    border-radius: 30px;
    margin: 0 20px;
}

.community-resources:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

/* 网站推荐表单 */
.suggest-resource {
    padding: 4rem 0;
    position: relative;
}

.suggest-resource h2 {
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2.2rem;
}

.suggest-resource h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.suggest-resource p {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.suggest-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.suggest-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    
    .resource-categories {
        max-width: 95%;
    }
    
    .resources-list h2,
    .community-resources h2,
    .suggest-resource h2 {
        font-size: 1.8rem;
    }
    
    .resource-group h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .resource-item {
        padding: 1.5rem;
    }
    
    .resource-info h4 {
        font-size: 1.2rem;
    }
    
    .search-resources input {
        padding: 1rem 1.5rem;
    }
    
    .search-resources button {
        padding: 0 1.5rem;
    }
    
    .suggest-form {
        padding: 2rem;
    }
} 