/* 页面专用样式文件 */

/* ========== 页面布局 ========== */
.page-container {
    min-height: calc(100vh - 300px);
    background: #f8f9fa;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-header .subtitle {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

/* ========== 新闻页面样式 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #DC143C;
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: #DC143C;
}

.news-card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 课程页面样式 ========== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.course-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.course-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    position: relative;
}

.course-card-content {
    padding: 25px;
}

.course-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
}

.course-card-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.course-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.course-price {
    font-size: 24px;
    font-weight: bold;
    color: #DC143C;
}

.course-price .unit {
    font-size: 14px;
    color: #6c757d;
    font-weight: normal;
}

/* ========== 联系页面样式 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #DC143C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-details p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
}

/* ========== 报名页面样式 ========== */
.enrollment-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #DC143C;
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(220, 20, 60, 0.05);
    border-color: rgba(220, 20, 60, 0.2);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ========== 证书查询结果样式 ========== */
.certificate-result {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #28a745;
    position: relative;
    margin-top: 30px;
}

.certificate-result::before {
    content: '✓';
    position: absolute;
    top: -15px;
    left: 30px;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.certificate-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
}

.info-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* ========== 政策文件样式 ========== */
.policy-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.policy-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    cursor: pointer;
}

.policy-item:hover {
    background: #f8f9fa;
}

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

.policy-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.policy-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.policy-type {
    flex-shrink: 0;
}

.policy-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.policy-date,
.policy-publisher {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 公告页面样式 ========== */
.announcement-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #DC143C;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.announcement-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
}

.announcement-priority {
    flex-shrink: 0;
}

.announcement-content {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.announcement-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .page-wrapper {
        padding: 20px 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .contact-grid,
    .news-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .news-card-content,
    .course-card-content,
    .enrollment-form,
    .contact-info {
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .certificate-info {
        grid-template-columns: 1fr;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .announcement-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 15px 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header .subtitle {
        font-size: 16px;
    }
    
    .form-section-title {
        font-size: 18px;
    }
    
    .news-card,
    .course-card,
    .contact-item {
        margin: 0 -10px;
        border-radius: 8px;
    }
} 