/* ============ 模板七（index7）首页样式 ============ */
.index7-page {
    width: 100%;
    background: #fff;
}

/* 覆盖 Bootstrap 的 a:hover 下划线 */
.index7-page a,
.index7-page a:hover,
.index7-page a:focus {
    text-decoration: none;
}

.index7-page .w1200 {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
}

/* 板块标题 */
.idx7-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.idx7-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.idx7-more {
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.idx7-more:hover {
    color: #1F3A91;
}

/* ============ 图标快捷入口 ============ */
.idx7-quick {
    display: grid;
    /* 少量图标时均匀居中分布，数量多时自动收窄换行 */
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    justify-items: center;
    row-gap: 18px;
    background: #fff;
    border-radius: 8px;
    padding: 22px 0;
    margin-top: 24px;
    position: relative;
    z-index: 5;
}

.idx7-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 80px;
    padding: 5px 0;
}

.idx7-quick-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px #D7D7D7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.idx7-quick-icon img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idx7-quick-text {
    margin-top: 8px;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

.idx7-quick-item:hover .idx7-quick-icon {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px #AAAAAA;
}

.idx7-quick-item:hover .idx7-quick-text {
    color: #1F3A91;
}

/* ============ 最新资讯 / 课程通知 ============ */
.idx7-news {
    display: flex;
    gap: 24px;
    margin-top: 30px;
}

.idx7-news-left {
    width: 46%;
    flex-shrink: 0;
}

.idx7-news-swiper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

/* 每张滑块：图片铺满，标题叠在底部 */
.idx7-news-swiper .swiper-slide {
    position: relative;
    height: 100%;
}

.idx7-news-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.idx7-news-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 底部标题栏：叠在图片上，右侧留出分页指示条位置 */
.idx7-news-slide-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 42px;
    line-height: 42px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    padding: 0 96px 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* 分页指示条：固定在标题栏右侧 */
.idx7-news-pagination {
    position: absolute;
    left: auto !important;
    right: 12px !important;
    bottom: 0 !important;
    width: auto !important;
    height: 42px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.idx7-news-pagination .swiper-pagination-bullet {
    width: 14px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    margin: 0 3px !important;
    transition: background 0.2s;
}

.idx7-news-pagination .swiper-pagination-bullet-active {
    background: #ffffff !important;
}

.idx7-news-right {
    flex: 1;
    background: #fff;
    min-width: 0;
}

.idx7-news-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.idx7-news-tabbar {
    display: flex;
}

.idx7-news-tab {
    font-size: 18px;
    color: #666;
    padding: 5px 4px 0px;
    margin-right: 30px;
    cursor: pointer;
    position: relative;
}

.idx7-news-tab.active {
    color: #1F3A91;
    font-weight: bold;
}

.idx7-news-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1F3A91;
}

.idx7-news-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.idx7-news-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    text-decoration: none;
    gap: 20px;
}

.idx7-news-title {
    flex: 1;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 14px;
}

.idx7-news-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c3c9d4;
}

.idx7-news-list li a:hover .idx7-news-title {
    color: #1F3A91;
}

.idx7-news-date {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}

/* ============ 招生专业 + 招生简章 ============ */
.idx7-enroll-bg {
    background: #f1f3f8;
    margin-top: 30px;
    padding: 40px 0 45px;
}

.idx7-enroll {
    display: flex;
    gap: 24px;
}

.idx7-enroll-left {
    flex: 1;
    min-width: 0;
}

.idx7-major-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.idx7-major-card {
    background-image: url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/6ea40935-7c07-4b7d-88e7-eb42c8605b8d.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 18px;
    text-decoration: none;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.idx7-major-card:hover {
    box-shadow: 0 6px 18px rgba(31, 58, 145, 0.18);
    transform: translateY(-2px);
}

.idx7-major-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.idx7-major-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.idx7-major-tag {
    position: absolute;
    right: 14px;
    top: 16px;
    font-size: 12px;
    color: #1F3A91;
    background: #EBEEF8;
    border-radius: 3px;
    padding: 2px 8px;
}

.idx7-enroll-right {
    width: 32%;
    flex-shrink: 0;
}

.idx7-brochure-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: brochure;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.idx7-brochure-list li {
    counter-increment: brochure;
}

.idx7-brochure-list li a {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.idx7-brochure-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    min-height: 3em; /* 固定两行高度，单行标题也同高 */
}

/* 序号圆徽章 */
.idx7-brochure-list li a::before {
    content: counter(brochure);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1F3A91;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #fff;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 第一条高亮 & hover：胶囊变主题色，序号圆反色 */
.idx7-brochure-list li a:hover {
    background: #1F3A91;
    color: #fff;
    font-weight: 700;
}

/* ============ 课程中心 ============ */
.idx7-course-bg {
    background: #fff;
    padding: 40px 0 45px;
}

.idx7-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.idx7-course-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.idx7-course-card:hover {
    box-shadow: 0 8px 22px rgba(31, 58, 145, 0.2);
    transform: translateY(-3px);
}

.idx7-course-img {
    width: 100%;
    height: 152px;
    background: linear-gradient(135deg, #1F3A91, #4A63C9);
}

.idx7-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idx7-course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 0 10px;
    text-align: center;
}

.idx7-course-info {
    padding: 12px 10px 14px;
}

.idx7-course-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.idx7-course-card:hover .idx7-course-title {
    color: #1F3A91;
}

.idx7-course-teacher {
    margin-top: 10px;
    font-size: 13px;
    color: #7F7F7F;
}

/* ============ 常用下载 ============ */
.idx7-download-bg {
    background: #f1f3f8;
    padding: 40px 0 45px;
}

.idx7-download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 25px;
}

.idx7-download-card {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* 固定卡片高度，上下行一致：标题2行 + 描述3行 + 按钮 */
    height: 175px;
    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.idx7-download-card:hover {
    box-shadow: 0 4px 12px #AAAAAA;
}

.idx7-download-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 0;
}

.idx7-download-title {
    position: relative;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.idx7-download-card:hover .idx7-download-title {
    color: #1F3A91;
}

.idx7-download-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 4px;
    height: 15px;
    background-color: rgba(31, 58, 145, 1);
}

.idx7-download-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-top: 10px;
    height: calc(14px * 1.6 * 3); /* 固定占满3行，短文也占同样高度 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idx7-download-btn {
    position: relative;
    z-index: 1;
    margin-top: auto; /* 按钮贴底，卡片内上对齐内容、下对齐按钮 */
    align-self: flex-start;
    font-size: 13px;
    color: #1F3A91;
    border: 1px solid #1F3A91;
    border-radius: 3px;
    padding: 2px 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.idx7-download-btn:hover {
    background: #1F3A91;
    color: #fff;
}

/* ============ 名师推荐 ============ */
.idx7-teacher-bg {
    background: #fff url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/fd57a9ef-668b-4936-bc6a-ee7bf4e094fd.png') center center / cover no-repeat;
    padding: 40px 0;
}

.idx7-teacher-list {
    overflow: hidden;
    padding-bottom: 6px;
}

.idx7-teacher-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.idx7-teacher-group {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.idx7-teacher-card {
    flex: 0 0 auto;
    width: 214px;
    text-align: center;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(242, 242, 242, 1);
    position: relative;
    overflow: hidden;
}

.idx7-teacher-photo {
    width: 214px;
    height: 231px;
    overflow: hidden;
    background: #f0f2f5;
}

.idx7-teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* 悬停简介：盖住整张卡片，从卡片底部往上滑 */
.idx7-teacher-hover {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 58, 145, 0.8);
    color: #fff;
    padding: 16px 14px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    z-index: 2;
}

.idx7-teacher-card:hover .idx7-teacher-hover {
    transform: translateY(0);
}

.idx7-teacher-hover-desc {
    flex: 1;
    min-height: 0;
    font-size: 14px;
    line-height: 2;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
}

.idx7-teacher-hover-name {
    flex-shrink: 0;
    margin-top: 10px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.idx7-teacher-hover-name span {
    margin-left: 6px;
    font-size: 12px;
    font-weight: normal;
}

.idx7-teacher-name {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.idx7-teacher-position {
    margin-left: 6px;
    font-size: 12px;
    font-weight: normal;
    color: #888;
}

/* ============ 院校简介 ============ */
.idx7-profile-bg {
    padding: 35px 0;
    background: #f1f3f8 url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/8597f128-e459-4501-b0e6-fa1f2bc268ba.jpg') center center / cover no-repeat;
}

.idx7-profile-head {
    margin-bottom: 16px;
}

.idx7-profile-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.idx7-profile-en {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    margin: 0;
    font-size: 22px;
    color: rgba(0, 0, 0, 0.149019607843137);
    letter-spacing: 0.5px;
    line-height: 1.4;
    /* 在白盒外面，顶部与图片对齐 */
}

.idx7-profile-body {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    /* 给英文副标题留出上方空间，白盒从副标题下方开始 */
    padding-top: 28px;
}

/* 右侧校园图：上移与英文副标题顶对齐 */
.idx7-profile-img {
    width: 49%;
    height: 391px;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: -28px; /* 抵消 padding-top，与 en 顶对齐 */
    box-shadow: 0 4px 12px #AAAAAA;
}

.idx7-profile-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 左侧半透明文字层：在英文下方，叠在图片左侧 */
.idx7-profile-panel {
    position: absolute;
    left: 0;
    top: 35px; /* 英文行高下方 */
    width: 63%;
    height: calc(350px - 28px);
    z-index: 2;
    background-image:url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/8b5fbed4-b101-4823-be07-079f7e6384e7.png') ;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 20px 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.idx7-profile-content {
    font-size: 14px;
    color: #444;
    line-height: 1.9;
    text-align: justify;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
}

.idx7-profile-content p {
    margin: 0 0 0;
}

.idx7-profile-content p:last-child {
    margin-bottom: 0;
}

.idx7-profile-content img {
    display: none;
}

.idx7-profile-btn {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    color: #1F3A91;
    background: #fff;
    border: 1px solid #1F3A91;
    border-radius: 5px;
    padding: 2px 10px;
    text-decoration: none;
    transition: all 0.2s;
    transform: translateY(5px);
}

.idx7-profile-btn:hover {
    background: #1F3A91;
    color: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
    .idx7-quick {
        padding: 12px 10px;
        grid-template-columns: repeat(4, 1fr);
        row-gap: 12px;
    }

    .idx7-quick-item {
        min-width: 0;
    }

    .idx7-quick-text {
        font-size: 12px;
    }

    .idx7-news {
        flex-direction: column;
    }

    .idx7-news-left {
        width: 100%;
    }

    .idx7-news-swiper {
        height: 220px;
    }

    .idx7-enroll {
        flex-direction: column;
    }

    .idx7-enroll-right {
        width: 100%;
    }

    .idx7-major-grid {
        grid-template-columns: 1fr;
    }

    .idx7-course-grid,
    .idx7-download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .idx7-teacher-card {
        width: 150px;
    }

    .idx7-teacher-photo {
        height: 180px;
    }

    .idx7-profile-body {
        flex-direction: column;
        min-height: 0;
        align-items: stretch;
        padding-top: 0;
    }

    .idx7-profile-en {
        position: static;
        margin-bottom: 10px;
        order: 1;
    }

    .idx7-profile-panel {
        position: static;
        width: 100%;
        height: auto;
        order: 3;
        margin-top: -24px;
    }

    .idx7-profile-img {
        width: 100%;
        height: 220px;
        margin-top: 0;
        order: 2;
    }

    .idx7-profile-title {
        font-size: 22px;
    }

    .idx7-section-title {
        font-size: 19px;
    }
}
