/* ===================================================
   ffwz.html - 企业信息发布 / 武术培训列表页样式
   =================================================== */

:root {
    --primary-color: #ff6600;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e5e5e5;
    --header-bg: #fff;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
}

/* ========== 栏目标题 ========== */
.navtitle {
    max-width: 1240px;
    margin: 0 auto 5px;
    padding: 18px 20px 15px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navtitle::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6600, #ff9800);
    flex-shrink: 0;
}

/* ========== 服务列表 ========== */
.services-container {
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 封面图 */
.service-cover {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-cover img {
    transform: scale(1.05);
}

/* 卡片信息区域 */
.service-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-title a {
    color: #222;
    transition: color 0.2s;
}

.service-title a:hover {
    color: var(--primary-color);
}

.service-author {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-author i {
    font-size: 12px;
}

.service-intro {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.service-footer {
    padding: 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-tag {
    background: #fff3e6;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.service-date {
    font-size: 12px;
    color: #bbb;
}

/* ========== 武术培训模块 ========== */
.wushu-section {
    max-width: 1240px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.wushu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
}

.wushu-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wushu-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #c62828, #b71c1c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.wushu-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.wushu-subtitle {
    font-size: 13px;
    color: #aaa;
    margin: 2px 0 0;
    letter-spacing: 2px;
}

.wushu-filter {
    display: flex;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 4px;
}

.wushu-filter a {
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.wushu-filter a:hover {
    color: #c62828;
}

.wushu-filter a.active {
    background: #c62828;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

/* 网格 */
.wushu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* 卡片 */
.wushu-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wushu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(198, 40, 40, 0.2);
}

.wushu-cover {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
}

.wushu-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.wushu-card:hover .wushu-cover img {
    transform: scale(1.08);
}

.wushu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.wushu-card:hover .wushu-overlay {
    opacity: 1;
}

.wushu-view-btn {
    padding: 8px 22px;
    border: 2px solid #ff6f00;
    border-radius: 4px;
    color: #ff6f00;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.wushu-view-btn:hover {
    background: #ff6f00;
    color: #fff;
}

/* 卡身 */
.wushu-body {
    padding: 18px;
}

.wushu-level {
    margin-bottom: 8px;
    font-size: 13px;
    color: #ffc107;
}

.wushu-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wushu-name a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.wushu-name a:hover {
    color: #ff6f00;
}

.wushu-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wushu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #2a2a3e;
}

.wushu-tag {
    display: inline-block;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 12px;
    background: #2a1f1f;
    border: 1px solid #c62828;
    color: #ef5350;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.wushu-qrcode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.wushu-qrcode:hover {
    color: #ff6f00;
}

/* ========== 分页 ========== */
.pagination-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-simple li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-simple li a:hover {
    background: #f0f0f0;
    color: #ff6600;
    border-color: #ff6600;
}

.pagination-simple li.active a {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    font-weight: 600;
}

.pagination-simple li.disabled a {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wushu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .navtitle {
        font-size: 18px;
        padding: 12px 15px 10px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-cover {
        height: 200px;
    }
    .wushu-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wushu-filter {
        width: 100%;
        overflow-x: auto;
    }
    .wushu-filter a {
        padding: 6px 14px;
        font-size: 12px;
    }
    .wushu-grid {
        grid-template-columns: 1fr;
    }
    .wushu-title {
        font-size: 20px;
    }
}
