/* ============================================================
   闽西职业技术学院汀州校区 - 内页统一样式 v1.0
   所有内页（新闻、通知、联系我们等）共享样式
   ============================================================ */

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-lighter);
}

/* ==================== 页面板块 ==================== */
.page-section {
    padding: 60px 0;
    background: var(--bg-page);
}

.page-section:nth-child(odd) {
    background: var(--bg-white);
}

/* ==================== 页面标题 ==================== */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--primary);
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-medium);
    margin-top: -20px;
    margin-bottom: 32px;
}

/* ==================== 新闻列表页 ==================== */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.news-card-thumb {
    height: 200px;
    overflow: hidden;
    background: var(--bg-page);
    position: relative;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-summary {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 新闻详情页 ==================== */
.news-article {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-article-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.news-article-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 16px;
}

.news-article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.news-article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-article-meta i {
    color: var(--primary);
}

.news-article-category {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.news-article-cover {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
}

.news-article-cover img {
    width: 100%;
    object-fit: cover;
}

.news-article-content {
    line-height: 1.8;
    color: var(--text);
    font-size: 15px;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-dark);
}

.news-article-content p {
    margin-bottom: 1em;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.news-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.news-article-content table th,
.news-article-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.news-article-content table th {
    background: var(--primary-bg);
    font-weight: 600;
    color: var(--primary);
}

/* ==================== 通知公告列表 ==================== */
.notice-list-container {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.notice-list-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.notice-list-item:hover {
    background: var(--primary-bg);
    padding-left: 28px;
}

.notice-list-item:last-child {
    border-bottom: none;
}

.notice-list-date {
    min-width: 80px;
    text-align: center;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    flex-shrink: 0;
    transition: var(--transition);
}

.notice-list-item:hover .notice-list-date {
    background: var(--primary);
    color: var(--text-white);
}

.notice-list-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    transition: var(--transition);
}

.notice-list-item:hover .notice-list-title {
    color: var(--primary);
}

.notice-list-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.tag-new {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-white);
    animation: pulseBadge 2s ease infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

/* ==================== 联系我们页面 ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-card h3 i {
    color: var(--primary);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.contact-info-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px;
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form-card h3 i {
    color: var(--primary);
}

/* ==================== 搜索/筛选栏 ==================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-control {
    max-width: 240px;
}

.filter-bar .form-select {
    max-width: 160px;
}

.filter-bar .btn {
    white-space: nowrap;
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(26,58,110,0.18);
}

.pagination .active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== 空状态提示 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 15px;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1024px) {
    .news-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .news-article {
        padding: 24px;
    }
    
    .news-article-title {
        font-size: 20px;
    }
    
    .news-card-thumb {
        height: 180px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .news-article {
        padding: 16px;
    }
    
    .news-article-title {
        font-size: 18px;
    }
    
    .news-card-body {
        padding: 16px;
    }
    
    .notice-list-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .notice-list-date {
        min-width: 60px;
        font-size: 12px;
        padding: 6px 8px;
    }
}
