:root {
    --brand: #4b5bd6;          /* 主蓝紫 */
    --brand-light: #eef0fc;
    --brand-deep: #2e3a9e;
    --text: #22304a;
    --text-sub: #5b6b8c;
    --bg: #f5f6fc;
    --line: #dfe3f3;
    --placeholder-bg: #e8ecfb;
    --placeholder-border: #9aa8e8;
    --success: #1f9d6b;
    --error: #d4493f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a {
    color: var(--brand);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 锚点跳转时为吸顶导航预留偏移 */
section,
header.hero {
    scroll-margin-top: 80px;
}

/* 顶部导航 */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6%;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--brand-deep);
}

.nav-logo .nav-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
}

.nav-logo .logo-sub {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    padding: 4px 2px;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links a.is-current {
    color: var(--brand);
    font-weight: 600;
}

.nav-cta {
    background: var(--brand);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
}

.nav-cta:hover {
    background: var(--brand-deep);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.language-switcher {
    flex: 0 0 120px;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 20px;
    background: #eef1f7;
    color: var(--text);
}

.language-switcher-icon,
.language-switcher-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.language-switcher-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-switcher select {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 36px;
    padding: 0 2px 0 0;
    border: 0;
    border-radius: 18px;
    color: var(--text);
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-overflow: ellipsis;
}

.language-switcher option {
    color: #222;
    background: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 通用区块 */
section {
    padding: 60px 6%;
}

.section-tag {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-deep);
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
}

h1 {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 800;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sub {
    color: var(--text-sub);
    font-size: 15px;
}

/* ===== 首页 Hero ===== */
.hero {
    background: linear-gradient(135deg, #eef1ff 0%, #f6f4ff 50%, #eaf3ff 100%);
    padding: 70px 6%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 .hl {
    color: var(--brand);
}

.hero p.lead {
    font-size: 17px;
    color: var(--text-sub);
    margin: 18px 0 28px;
    max-width: 520px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 26px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-deep);
}

.btn-ghost {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}

.btn-ghost:hover {
    background: var(--brand-light);
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(75, 91, 214, .18);
}

.hero-carousel-viewport {
    position: absolute;
    inset: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .6s ease, transform .45s ease, filter .28s ease;
}

.hero-img.is-active {
    opacity: 1;
}

.hero-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(34, 48, 74, .55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-carousel-button:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(34, 48, 74, .82);
}

.hero-carousel-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.hero-carousel-previous {
    left: 14px;
}

.hero-carousel-next {
    right: 14px;
}

@media (hover: hover) and (pointer: fine) {
    .hero-carousel:hover .hero-img.is-active {
        transform: scale(1.02);
    }
}

.hero-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-carousel-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.hero-carousel-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .hero-img,
    .hero-carousel-button {
        transition: none;
    }

    .hero-carousel-button:hover {
        transform: translateY(-50%);
    }

    .partner-carousel {
        scroll-behavior: auto;
    }
}

@media (max-width: 600px) {
    .hero-carousel-button {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .hero-carousel-previous {
        left: 8px;
    }

    .hero-carousel-next {
        right: 8px;
    }
}

/* 核心优势 4 图卡 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.advantage-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    box-shadow: 0 2px 12px rgba(30, 40, 90, .08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.advantage-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .48s cubic-bezier(.2, .7, .3, 1), filter .28s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(30, 40, 90, .18);
}

.advantage-card:hover img {
    transform: scale(1.06);
}

.advantage-card .adv-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(30, 50, 130, .9) 0%, rgba(30, 50, 130, .4) 60%, transparent 100%);
}

.advantage-card .adv-overlay b {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: inline-block;
    transition: transform .28s ease;
}

.advantage-card:hover .adv-overlay b {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .advantage-card,
    .advantage-card img,
    .advantage-card .adv-overlay b {
        transition: none;
    }

    .advantage-card:hover,
    .advantage-card:hover img,
    .advantage-card:hover .adv-overlay b {
        transform: none;
    }
}

/* 双栏 */
.two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-intro-layout {
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.about-intro-frame {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(30, 40, 90, .12);
}

.two-col img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.about-img {
    min-height: 320px;
    max-height: 420px;
}

/* Banner */
.cta-banner {
    background: linear-gradient(120deg, var(--brand-deep), var(--brand));
    color: #fff;
    border-radius: 14px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-banner h3 {
    color: #fff;
}

.cta-banner .btn {
    background: #fff;
    color: var(--brand-deep);
}

.cta-banner .btn:hover {
    background: var(--brand-light);
}

/* 我们的使命 */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mission-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(30, 40, 90, .06);
    border-left: 4px solid var(--brand);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

@media (hover: hover) {
    .mission-card:hover {
        transform: translateY(-4px);
        background: #fbfbff;
        box-shadow: 0 12px 26px rgba(30, 40, 90, .12);
        border-left-color: var(--brand-deep);
    }

    .mission-card:hover .mission-no {
        opacity: .55;
    }
}

.mission-card .mission-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.mission-card .mission-no {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    opacity: .3;
    transition: opacity .25s ease;
}

.mission-card h4 {
    font-size: 18px;
    font-weight: 700;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* 权威背书 */
.endorsement-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.endorsement-figure {
    width: 100%;
    max-width: 680px;
    margin: 0;
}

.endorsement-image-frame {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #f3f5fa;
    box-shadow: 0 4px 18px rgba(30, 40, 90, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.endorsement-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, filter .28s ease;
}

.endorsement-figure figcaption {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 13px;
    text-align: center;
}

.endorsement-copy {
    display: block;
    width: min(100%, 680px);
    margin: 14px auto 0;
    color: var(--text-sub);
    font-size: 17px;
    line-height: 1.85;
    text-align: center !important;
    max-width: 100%;
}

.endorsement-copy-single-line {
    white-space: nowrap;
}

.home-about-details,
.home-about-endorsement,
.home-about-partners {
    background: #f8f9fd;
}

.home-endorsement-layout {
    margin-top: 16px;
}

.home-endorsement-copy {
    width: 100%;
}

.home-about-section {
    background: #fff;
}

.home-about-layout {
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.home-about-copy .sub {
    max-width: 580px;
    margin-top: 14px;
}

.home-about-copy .home-about-description + .home-about-description {
    margin-top: 12px;
}

.home-about-copy .btn {
    margin-top: 24px;
}

@media (hover: hover) {
    .about-intro-img,
    .endorsement-img {
        transition: transform .4s ease, box-shadow .4s ease, filter .28s ease;
    }

    .about-intro-frame:hover .about-intro-img,
    .endorsement-image-frame:hover .endorsement-img {
        transform: scale(1.02);
    }

    .about-intro-frame:hover,
    .endorsement-image-frame:hover {
        box-shadow: 0 14px 32px rgba(30, 40, 90, .2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mission-card,
    .mission-card .mission-no,
    .about-intro-img,
    .about-intro-frame,
    .endorsement-image-frame,
    .endorsement-img,
    .partner-carousel,
    .partner-card,
    .partner-photo,
    .partner-dot,
    .partner-arrow {
        transition: none;
    }

    .mission-card:hover,
    .about-intro-frame:hover .about-intro-img,
    .endorsement-image-frame:hover .endorsement-img,
    .partner-card:hover,
    .partner-card:hover .partner-photo {
        transform: none;
    }
}

/* 合作院校横向滚动 */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.partner-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.partner-carousel::-webkit-scrollbar {
    display: none;
}

.partner-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(30, 40, 90, .05);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.partner-photo-frame {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f2f4f9;
}

.partner-card .partner-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease, filter .28s ease;
}

.partner-card .partner-name {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    border-top: 1px solid var(--line);
    line-height: 1.4;
    min-height: 60px;
}

.partner-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.partner-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 0 3px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.partner-arrow:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(75, 91, 214, .2);
}

.partner-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #cdd3e3;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.partner-dot.active {
    width: 20px;
    background: var(--brand);
}

.partner-arrow:focus-visible,
.partner-dot:focus-visible,
.partner-carousel:focus-visible {
    outline: 3px solid rgba(75, 91, 214, .4);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .endorsement-copy-single-line {
        white-space: normal;
    }
    .partner-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 600px) {
    .partner-card {
        flex-basis: 100%;
    }
}

@media (hover: hover) and (pointer: fine) {
    .partner-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(30, 40, 90, .14);
    }

    .partner-card:hover .partner-photo {
        transform: scale(1.02);
    }
}

/* ===== 在线留言 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    margin-top: 24px;
    align-items: start;
}

.contact-info-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.contact-info-list li b {
    min-width: 80px;
    color: var(--text);
}

.contact-info-list li span {
    color: var(--text-sub);
}

.contact-info-list li a {
    color: var(--text-sub);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.contact-info-list li a:hover,
.contact-info-list li a:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.message-form {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(75, 91, 214, .08);
}

.form-row {
    margin-bottom: 18px;
}

.form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-row label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(75, 91, 214, .12);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.field-error {
    display: none;
    font-size: 12.5px;
    color: var(--error);
    margin-top: 4px;
}

.form-row.invalid input,
.form-row.invalid textarea {
    border-color: var(--error);
}

.form-row.invalid .field-error {
    display: block;
}

.form-result {
    display: none;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-result.success {
    display: block;
    background: #eafaf2;
    color: var(--success);
    border: 1px solid #bfe6d2;
}

.form-result.fail {
    display: block;
    background: #fdeeec;
    color: var(--error);
    border: 1px solid #f4cbc7;
}

.form-submit {
    width: 100%;
    padding: 13px;
    border-radius: 24px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--brand-deep);
}

.form-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* SEO 文案区 */
.seo-copy {
    background: #fff;
    padding: 40px 6%;
    border-top: 1px solid var(--line);
}

.seo-copy .seo-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 2;
}

.seo-copy h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.seo-copy p + p {
    margin-top: 10px;
}

/* ============================================================
   页脚（大页脚：品牌介绍 / 快速导航 / 联系方式 / 二维码）
   ============================================================ */
footer {
    background: #1c2340;
    color: #aab2d0;
    font-size: 13px;
}

footer .foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 6% 36px;
    display: grid;
    grid-template-columns: 1.35fr .8fr 1.35fr 1.5fr;
    gap: 28px;
}

footer .foot-title {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
}

/* 品牌介绍列 */
footer .foot-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
}

footer .foot-logo-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
}

footer .foot-logo-sub {
    font-size: 11px;
    font-weight: 400;
    color: #aab2d0;
}

footer .foot-desc {
    margin-top: 16px;
    line-height: 2;
}

footer .foot-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    list-style: none;
    line-height: 1;
}

footer .foot-social a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

footer .foot-social a:hover,
footer .foot-social a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

footer .foot-social a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .75);
    outline-offset: 3px;
}

footer .foot-social img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* 快速导航列 */
footer .foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .foot-links a {
    color: #cfd5ee;
}

footer .foot-links a:hover {
    color: #fff;
}

/* 联系方式列 */
footer .foot-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

footer .foot-contact-label {
    display: block;
    color: #8b94bd;
    font-size: 12px;
    margin-bottom: 2px;
}

footer .foot-contact a {
    color: #cfd5ee;
}

footer .foot-contact a:hover {
    color: #fff;
}

/* 二维码列 */
footer .foot-qr-list {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

footer .foot-qr {
    flex: 0 0 110px;
    text-align: center;
}

footer .foot-qr-ph,
footer .foot-qr-img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
}

/* 深色背景下的二维码占位框，风格与全站 .ph 虚线占位一致 */
footer .foot-qr-ph {
    background: rgba(255, 255, 255, .06);
    border: 2px dashed rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aab2d0;
    font-size: 12px;
    line-height: 1.8;
    padding: 8px;
}

/* 真实二维码图片：白底卡片，便于扫码识别 */
footer .foot-qr-img {
    background: #fff;
    padding: 8px;
    object-fit: contain;
}

footer .foot-qr figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: #cfd5ee;
}

/* 底部版权条 */
footer .foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 6%;
    text-align: center;
}

footer .foot-bottom p {
    line-height: 1.9;
}

footer .foot-meta {
    font-size: 12px;
    opacity: .7;
}

/* 响应式 */
@media (max-width: 900px) {
    .language-switcher select { max-width: 145px; }
    .hero,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-head-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .advantage-grid,
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row.two {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }

    .nav {
        justify-content: center;
        text-align: center;
    }

    /* 大页脚：四列改两列 */
    footer .foot-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    footer .foot-qr-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .advantage-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    /* 大页脚：两列改单列 */
    footer .foot-inner {
        grid-template-columns: 1fr;
        padding: 40px 8% 28px;
    }

    footer .foot-qr-list {
        justify-content: flex-start;
    }
}

/* ============================================================
   内页通用：页头、浅底板块、图片占位框
   ============================================================ */
.page-light {
    background: #fff;
}

.page-head {
    background: #fff;
}

.page-head-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    transition: filter .28s ease;
}

.page-head-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 40px;
}

.page-head-copy {
    min-width: 0;
}

.page-head-image-frame {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(30, 40, 90, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.page-head-image-frame .page-head-img {
    transition: transform .35s ease, filter .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .page-head-image-frame:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(30, 40, 90, .18);
    }

    .page-head-image-frame:hover .page-head-img {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-head-image-frame,
    .page-head-image-frame .page-head-img {
        transition-duration: .01ms;
    }
}

/* 无配图页头（如联系我们） */
.page-head-simple {
    padding-bottom: 48px;
}

/* 培训、师资、企业合作和校园活动统一标题横幅 */
.page-banner {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    padding: 48px 6%;
    background: linear-gradient(135deg, #f3f2fc 0%, #eef1ff 100%);
    text-align: center;
}

.page-banner-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-banner-title {
    color: var(--brand);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.25;
}

.page-banner-sub {
    margin-top: 16px;
    color: var(--text-sub);
    font-size: 18px;
    line-height: 1.7;
}

/* ============================================================
   关于我们页面
   ============================================================ */
.about-text,
.about-endorsement {
    max-width: 1100px;
    margin: 0 auto;
}

.about-intro-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 2;
}

.about-text p + p {
    margin-top: 14px;
}

.mission-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
}

.mission-subtitle {
    text-align: center;
    margin-top: 8px;
}

/* 浅色 CTA 横幅（首页联系入口，区别于紫色主 CTA） */
.cta-banner-light {
    background: linear-gradient(120deg, #5d6ce0, #7a6cf0);
}

/* ============================================================
   联系我们页面
   ============================================================ */
/* 网格内左侧 Google 地图：与右侧信息栏等高，圆角裁切 */
.contact-map {
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* 独立在线留言表单区（地图/联系方式下方） */
.contact-form-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.contact-form-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
}

.map-ph {
    min-height: 360px;
    border-radius: 14px;
    font-size: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.ph {
    background: var(--placeholder-bg);
    border: 2px dashed var(--placeholder-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7cc4;
    font-size: 13px;
    text-align: center;
    padding: 20px;
    min-height: 120px;
    line-height: 1.8;
}

/* ============================================================
   培训中心页面
   ============================================================ */
.course-banner {
    background: linear-gradient(135deg, #e8eefc 0%, #e0e9fb 60%, #eaf2fd 100%);
    padding: 60px 6%;
}

.course-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.course-banner-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a2a6c;
}

.course-banner-sub {
    margin-top: 12px;
    font-size: 16px;
    color: #4a5a8c;
}

.course-banner-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform .35s ease, filter .28s ease;
}

.course-tabs-section {
    background: #fff;
    padding: 30px 6%;
}

.course-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.course-tab-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.course-tab {
    padding: 12px 40px;
    border-radius: 30px;
    background: #f0f2fa;
    color: #5b6b8c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background .2s, color .2s;
}

.course-tab.active {
    background: #6c5ce7;
    color: #fff;
}

.course-block-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.course-block-gap {
    margin-top: 10px;
}

.course-block-desc {
    color: #6b7a99;
    margin-bottom: 20px;
    font-size: 14px;
}

.course-position {
    color: #6b7a99;
    margin-bottom: 6px;
    font-size: 16px;
}

.course-paragraph {
    font-size: 18px;
    color: #5b6b8c;
    line-height: 1.9;
    margin-bottom: 20px;
}

.course-wide-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 30px;
    transition: filter .28s ease;
}

.course-ph {
    min-height: 280px;
    border-radius: 14px;
    margin-bottom: 30px;
    font-size: 15px;
}

.hsk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.hsk-item {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
}

.hsk-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hsk-badge {
    background: #6c5ce7;
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.hsk-item p {
    font-size: 14px;
    color: #5b6b8c;
    line-height: 1.8;
}

.course-info-box {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.course-info-text {
    font-size: 13px;
    color: #5b6b8c;
    margin-top: 4px;
}

.course-info-schedule {
    font-size: 13px;
    color: #5b6b8c;
    line-height: 1.8;
    text-align: right;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cert-card {
    background: #fff;
    border: 1px solid #e8ecfb;
    border-radius: 14px;
    overflow: hidden;
}

.cert-file {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #f4f6ff 0%, #e9edff 100%);
    color: var(--brand-deep);
    font-size: 14px;
    font-weight: 600;
}

.cert-file:hover {
    background: linear-gradient(135deg, #e9edff 0%, #dde3ff 100%);
}

.cert-file-icon {
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 8px;
}

.cert-info {
    padding: 16px;
}

.cert-info b {
    font-size: 14px;
}

.cert-info p {
    font-size: 12px;
    color: #6b7a99;
    margin-top: 4px;
}

.cert-note {
    font-size: 13px;
    color: #6b7a99;
}

/* 培训中心：按图片内容比例展示，并提供轻微悬停反馈。 */
.course-banner-photo-frame,
.course-photo-frame {
    overflow: hidden;
    border-radius: 14px;
    background: #f2f4f9;
    box-shadow: 0 8px 28px rgba(46, 58, 158, .12);
}

.course-banner-photo-frame {
    width: 100%;
    max-width: 770px;
    aspect-ratio: 4 / 3;
    justify-self: end;
}

.course-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .28s ease;
}

.course-banner-photo-frame .course-image {
    object-position: center;
}

.hsk-certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 22px 0 30px;
}

.hsk-certificate-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e8ecfb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 40, 90, .07);
}

.hsk-certificate-frame {
    overflow: hidden;
    aspect-ratio: 1.43 / 1;
    background: #f6f5f0;
}

.hsk-certificate-frame > a {
    display: block;
    height: 100%;
}

.hsk-certificate-frame .course-image {
    object-fit: contain;
}

.hsk-certificate-card figcaption {
    padding: 10px 14px;
    color: var(--text);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.course-module {
    padding: 22px 0 26px;
    border-bottom: 1px solid var(--line);
}

.course-module:first-child {
    padding-top: 0;
}

.course-module:last-of-type {
    border-bottom: 0;
}

.course-photo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 34px;
}

.course-module .course-photo-layout {
    margin-bottom: 0;
}

.course-module-hsk .hsk-summary {
    margin-bottom: 18px;
}

.course-photo-layout-language {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.course-copy .course-position {
    margin: 0 0 10px;
}

.course-copy .course-paragraph {
    margin: 0;
}

.course-photo-layout .course-paragraph {
    margin: 0;
}

.course-photo-frame-classroom {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.course-photo-frame-language {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 32px;
    aspect-ratio: 16 / 9;
}

.course-photo-layout-language .course-photo-frame-language {
    max-width: none;
    margin: 0;
}

.course-photo-layout-language .course-photo-frame-indonesian-beginner {
    aspect-ratio: 3 / 2;
}

.course-photo-layout-language .course-photo-frame-indonesian-intermediate {
    aspect-ratio: 4 / 3;
}

.course-photo-layout-language .course-image {
    object-fit: contain;
}

.course-photo-layout-skill {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.course-photo-frame-skill {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.certificate-carousel {
    max-width: 1200px;
    margin: 0 auto 24px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.certificate-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ecfb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(30, 40, 90, .08);
}

.certificate-window {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.414 / 1;
    background: #f6f7fb;
}

.certificate-page {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: #fff;
}

.certificate-page.is-active {
    display: block;
}

.certificate-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease, filter .28s ease;
}

.certificate-card-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--text-sub);
    font-size: 13px;
}

.certificate-card-caption strong {
    color: var(--text);
}

.certificate-card-page {
    display: none;
    flex: 0 0 auto;
    font-size: 12px;
}

.certificate-card-page.is-active {
    display: inline;
}

.certificate-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}

.certificate-arrow {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-deep);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.certificate-arrow {
    font-size: 24px;
    line-height: 1;
}

.certificate-arrow:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(75, 91, 214, .2);
}

.certificate-counter {
    min-width: 42px;
    color: var(--text-sub);
    font-size: 13px;
    text-align: center;
}

.certificate-arrow:focus-visible,
.certificate-page:focus-visible {
    outline: 3px solid rgba(75, 91, 214, .4);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .course-banner-photo-frame:hover .course-image,
    .course-photo-frame:hover .course-image,
    .hsk-certificate-card:hover .course-image,
    .certificate-card:hover .certificate-page.is-active img {
        transform: scale(1.035);
        filter: brightness(1.04) saturate(1.04);
    }
}

/* ============================================================
   师资力量页面
   ============================================================ */
.teacher-section-gap {
    margin-top: 0;
}

/* 板块标题右侧的说明文字 */
.teacher-slider-hint {
    font-size: 13px;
    color: var(--text-sub);
}

/* 教师卡片（语言教师网格与技能教师网格共用） */
.teacher-card-v2 {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(30, 40, 90, .05);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.teacher-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(30, 40, 90, .12);
}

.t-photo-wrap {
    position: relative;
    background: var(--placeholder-bg);
    aspect-ratio: 3 / 4;
    /* 高度仅由固定宽高比决定，图片绝对定位铺满，杜绝不同源图比例撑出不同高度 */
    overflow: hidden;
}

.t-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 源图比例略有差异（0.67-0.81），锚点偏上，保证脸部与肩部在各卡片中展示范围一致 */
    object-position: center 22%;
    transition: transform .38s ease, filter .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .teacher-card-v2:hover .t-photo {
        transform: scale(1.045);
    }
}

.t-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.t-desc,
.t-degree {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
}

.t-degree {
    display: block;
}

/* 技能培训教师静态三卡片网格（不使用轮播） */
.teacher-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

/* 语言教师轮播 */
.teacher-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.teacher-carousel-viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.teacher-carousel-track {
    --teacher-gap: 18px;
    display: flex;
    align-items: stretch;
    gap: var(--teacher-gap);
    transform: translateX(0);
    transition: transform .35s ease;
    will-change: transform;
}

#languageTeacherCarousel .teacher-card-v2 {
    height: auto;
    align-self: stretch;
}

#languageTeacherCarousel .t-info {
    flex: 1 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .teacher-carousel-track {
        transition-duration: .01ms;
    }
}

.teacher-carousel-track .teacher-card-v2 {
    flex: 0 0 calc((100% - 2 * var(--teacher-gap)) / 3);
    min-width: 0;
}

.teacher-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.teacher-carousel-controls .t-dots {
    margin-top: 0;
}

.teacher-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #dce3f5;
    border-radius: 50%;
    color: var(--brand);
    background: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.teacher-carousel-arrow:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.06);
}

.teacher-carousel-arrow:focus-visible {
    outline: 3px solid rgba(74, 92, 220, .3);
    outline-offset: 2px;
}

/* 指示点：当前项拉成长胶囊，每个点代表一页 */
.t-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.t-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: #c6cdf0;
    transition: width .25s, border-radius .25s, background .25s;
}

.t-dot.active {
    width: 26px;
    border-radius: 5px;
    background: var(--brand);
}

@media (max-width: 980px) {
    .teacher-static-grid {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-carousel-track .teacher-card-v2 {
        flex-basis: calc((100% - var(--teacher-gap)) / 2);
    }
}

@media (max-width: 640px) {
    .teacher-slider-hint {
        display: none;
    }

    .teacher-static-grid {
        grid-template-columns: 1fr;
    }

    .teacher-carousel-track .teacher-card-v2 {
        flex-basis: 100%;
    }

    .teacher-carousel {
        padding: 0 8px;
    }

}

.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 940px;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
}

.dev-card {
    padding: 10px;
    border: 1px solid #e2e7f3;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 40, 90, .05);
}

.dev-img {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    height: auto;
    object-fit: contain;
    border: 1px solid #edf0f6;
    border-radius: 9px;
    background: #f7f8fb;
    transition: transform .4s ease, filter .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .dev-card:hover .dev-img {
        transform: scale(1.045);
    }
}

.dev-info {
    padding: 20px;
}

.dev-info h4 {
    font-size: 17px;
    font-weight: 700;
}

/* ============================================================
   企业合作页面
   ============================================================ */
.coop-carousel {
    --coop-gap: 22px;
    margin-top: 20px;
}

.coop-viewport {
    overflow: hidden;
    border-radius: 16px;
    padding: 4px;
}

.coop-track {
    display: flex;
    gap: var(--coop-gap);
    align-items: stretch;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
    touch-action: pan-y;
}

.coop-card {
    flex: 0 0 calc((100% - 2 * var(--coop-gap)) / 3);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(30, 40, 90, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.coop-photo-frame {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef1f8;
}

.coop-card .coop-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .4s ease, filter .28s ease;
}

.coop-card-info {
    padding: 18px 20px 22px;
}

.coop-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.coop-text {
    font-size: 14px;
    color: #5b6b8c;
    line-height: 1.9;
    margin: 0;
}

.coop-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.coop-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.coop-arrow:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(75, 91, 214, .22);
}

.coop-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.coop-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cdd3e3;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.coop-dot.active {
    width: 22px;
    background: var(--brand);
}

.coop-arrow:focus-visible,
.coop-dot:focus-visible,
.coop-carousel:focus-visible {
    outline: 3px solid rgba(75, 91, 214, .4);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .coop-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(30, 40, 90, .14);
    }

    .coop-card:hover .coop-img {
        transform: scale(1.04);
    }
}

.cta-sub {
    opacity: .85;
    font-size: 14px;
    margin-top: 6px;
}

.partner-sub {
    margin-top: 6px;
}

.partner-scene-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.partner-scene {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.partner-scene img {
    width: 100%;
    transition: filter .28s ease;
}

.partner-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 18px;
    overflow: hidden;
    background: #fff;
}

.partner-logo-frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .partner-scene:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(30, 40, 90, .12);
    }

}

.partner-scene figcaption {
    padding: 10px 8px;
    font-size: 12.5px;
    text-align: center;
    color: var(--text);
    line-height: 1.4;
}

/* ============================================================
   校园活动页面
   ============================================================ */
.activity-title {
    font-size: 22px;
    font-weight: 800;
}

.activity-desc {
    font-size: 14px;
    color: #5b6b8c;
    margin: 8px 0 20px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.activity-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .28s ease;
}

.activity-photo-card {
    aspect-ratio: 4 / 3;
    min-height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--placeholder-bg);
    box-shadow: 0 2px 10px rgba(30, 40, 90, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* 正文照片统一提供轻微悬停反馈；品牌标识保持清晰、静止。 */
@media (hover: hover) and (pointer: fine) {
    .hero-img:hover,
    .advantage-card img:hover,
    .about-intro-img:hover,
    .endorsement-img:hover,
    .page-head-img:hover,
    .course-banner-img:hover,
    .course-wide-img:hover,
    .t-photo:hover,
    .dev-img:hover,
    .coop-img:hover,
    .activity-photo:hover {
        filter: brightness(1.045) saturate(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel:hover .hero-img.is-active,
    .coop-card:hover,
    .coop-card:hover .coop-img,
    .page-head-image-frame:hover,
    .page-head-image-frame:hover .page-head-img,
    .teacher-card-v2:hover .t-photo,
    .dev-card:hover .dev-img,
    .partner-scene:hover,
    .partner-scene:hover img,
    .course-banner-photo-frame:hover .course-image,
    .course-photo-frame:hover .course-image,
    .hsk-certificate-card:hover .course-image,
    .certificate-card:hover .certificate-page.is-active img {
        transform: none;
    }

    .page-head-img,
    .coop-track,
    .coop-card,
    .coop-card .coop-img,
    .coop-arrow,
    .coop-dot,
    .endorsement-img,
    .course-banner-img,
    .course-wide-img,
    .coop-img,
    .t-photo,
    .dev-img,
    .partner-scene,
    .partner-scene img,
    .course-image,
    .certificate-page img {
        transition-duration: .01ms;
    }
}

@media (hover: hover) and (pointer: fine) {
    .activity-photo-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(30, 40, 90, .16);
    }

    .activity-photo-card:hover .activity-photo {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-photo-card,
    .activity-photo {
        transition-duration: .01ms;
    }
}

.activity-placeholder {
    border-radius: 10px;
    font-size: 13px;
}

.activity-section-gap {
    margin-top: 40px;
}

.activity-note {
    margin-top: 24px;
    font-size: 13px;
    color: #6b7a99;
}

/* ============================================================
   内页响应式
   ============================================================ */
@media (max-width: 900px) {
    .page-banner {
        min-height: 210px;
    }

    .page-banner-title {
        font-size: 42px;
    }

    .page-banner-sub {
        font-size: 17px;
    }

    .course-banner-inner {
        grid-template-columns: 1fr;
    }

    .coop-card {
        flex-basis: calc((100% - var(--coop-gap)) / 2);
    }

    .hsk-grid,
    .dev-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-photo-layout,
    .course-photo-layout-skill {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-paragraph {
        font-size: 16px;
    }

    .course-banner-photo-frame {
        justify-self: center;
    }

    .course-photo-frame-classroom,
    .course-photo-frame-skill {
        width: 100%;
        max-width: 680px;
        justify-self: center;
    }

    .partner-scene-wall {
        grid-template-columns: 1fr 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr 1fr;
    }

    .course-banner-title {
        font-size: 32px;
    }

    .page-head-img,
    .course-banner-img {
        width: 100%;
        max-width: 770px;
        justify-self: center;
    }

    .course-wide-img,
    .coop-img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .page-banner {
        min-height: 190px;
        padding: 40px 7%;
    }

    .page-banner-title {
        font-size: 34px;
    }

    .page-banner-sub {
        margin-top: 12px;
        font-size: 16px;
    }

    .hsk-certificate-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .certificate-controls {
        gap: 10px;
    }

    .coop-carousel {
        --coop-gap: 14px;
    }

    .coop-card {
        flex-basis: 100%;
    }

    .coop-card-info {
        padding: 16px 16px 20px;
    }

    .coop-title {
        font-size: 18px;
    }

    .partner-logo-frame {
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coop-track,
    .coop-card,
    .coop-card .coop-img,
    .coop-arrow,
    .coop-dot {
        transition-duration: .01ms;
    }
}
