/* 辍学相关页面样式 */

/* 页面头部 */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 快速帮助 */
.help-section {
    padding: 60px 0;
    background-color: #fff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.help-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.help-card:hover::before {
    transform: scaleX(1);
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.help-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.help-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.help-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.help-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.help-link:hover {
    color: #40a9ff;
}

.help-link::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.help-link:hover::after {
    transform: translateX(5px);
}

/* 分类导航 */
.category-nav {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 24px;
    border: 2px solid #e6f7ff;
    background-color: #fff;
    color: #1890ff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-tab:hover {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.category-tab.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* 文章列表 */
.articles-section {
    padding: 60px 0;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-date {
    color: #999;
}

.article-reads {
    color: #666;
}

.read-more {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: #40a9ff;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.page-btn.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-btn.next {
    background-color: #f5f5f5;
    color: #666;
}

.page-btn.next:hover {
    background-color: #e6f7ff;
    color: #1890ff;
    border-color: #1890ff;
}

/* 紧急帮助 */
.emergency-help {
    padding: 80px 0;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.emergency-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.emergency-content p {
    color: #856404;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.emergency-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background-color: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.emergency-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .help-card {
        padding: 30px 20px;
    }

    .category-tabs {
        gap: 15px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .emergency-links {
        flex-direction: column;
        align-items: center;
    }

    .emergency-btn {
        width: 200px;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }

    .help-section {
        padding: 40px 0;
    }

    .articles-section {
        padding: 40px 0;
    }

    .category-nav {
        padding: 20px 0;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        width: 200px;
        text-align: center;
    }

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 15px;
    }

    .emergency-help {
        padding: 40px 0;
    }

    .emergency-content p {
        font-size: 16px;
    }

    .emergency-btn {
        width: 100%;
        max-width: 250px;
    }
} 