/* index.css — IM(茵葩萌) 首页样式
   tokens / hero / stats / roadmap / capability / scene / news / gallery / cta / responsive
   Loaded by addons/cms/view/default/index.html
*/
body.is-homepage {
    padding-top: 0;
}

.cms-index-page {
    --page-bg: #fff8ef;
    --surface: #ffffff;
    --surface-alt: #fff2de;
    --line: rgba(36, 24, 16, 0.08);
    --text-main: #2f241d;
    --text-soft: #70584a;
    --brand: #ff8a3d;
    --brand-deep: #f56722;
    --brand-yellow: #ffd25f;
    --brand-red: #ff6b5c;
    --brand-blue: #5b79ff;
    --brand-green: #32b88a;
    --brand-purple: #8f6bff;
    --shadow-lg: 0 28px 80px rgba(182, 96, 33, 0.16);
    --shadow-md: 0 16px 42px rgba(182, 96, 33, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 210, 95, 0.38), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.22), transparent 24%),
        var(--page-bg);
    color: var(--text-main);
    overflow: hidden;
}

.cms-index-page .container {
    position: relative;
    z-index: 2;
}

.cms-index-page a:hover,
.cms-index-page a:focus {
    text-decoration: none;
}

.cms-index-page a:focus-visible,
.hero-swiper-button-prev:focus-visible,
.hero-swiper-button-next:focus-visible,
.section-more-btn:focus-visible {
    outline: 3px solid var(--brand-deep);
    outline-offset: 3px;
    border-radius: 12px;
}

.hero-section {
    position: relative;
    padding: 0;
    margin-top: -70px;
}

/* 顶部与深色导航衔接的渐变遮罩，消除彩色 banner 四角外露 */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.15) 75%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-shell {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.hero-orb-left {
    width: 220px;
    height: 220px;
    left: -60px;
    top: 80px;
    background: rgba(255, 210, 95, 0.32);
}

.hero-orb-right {
    width: 320px;
    height: 320px;
    right: -110px;
    top: -30px;
    background: rgba(255, 107, 92, 0.16);
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.12);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-title {
    margin: 22px 0 18px;
    font-size: 54px;
    line-height: 1.14;
    font-weight: 800;
    color: #2d231d;
}

.hero-desc {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    min-width: 188px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    transform: translateY(-2px);
}

.hero-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 18px 28px rgba(245, 103, 34, 0.22);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    color: #fff;
    box-shadow: 0 22px 34px rgba(245, 103, 34, 0.28);
}

.hero-btn-secondary {
    background: #fff;
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(47, 36, 29, 0.08);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    color: var(--text-main);
    background: #fff7ee;
}

.hero-btn-secondary-light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-btn-secondary-light:hover,
.hero-btn-secondary-light:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 26px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.hero-tags i {
    color: var(--brand-deep);
    margin-right: 6px;
}

/* 首页轮播图：全宽展示 */
.hero-swiper {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: auto;
    height: calc(70vh + 81px);
    box-shadow: none;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (min-width: 992px) {
    .hero-section {
        margin-top: 0;
    }

    .hero-swiper .swiper-slide[data-swiper-slide-index="1"] .hero-slide-img {
        object-position: center top;
    }
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    z-index: 1;
}

.hero-slide-text {
    position: relative;
    z-index: 2;
    padding: 110px 60px 60px;
    color: #fff;
}

.hero-slide-text-light h3,
.hero-slide-text-light p {
    color: #fff;
}

.hero-slide-text h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 12px 0 10px;
    line-height: 1.2;
    white-space: pre-line;
}

.hero-slide-text p {
    font-size: 16px;
    opacity: 0.92;
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
    white-space: pre-line;
}

.hero-slide-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-swiper-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.hero-swiper-button-prev,
.hero-swiper-button-next {
    color: #fff;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
}

.hero-swiper-button-prev:hover,
.hero-swiper-button-next:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.75);
    transform: translateY(-50%) scale(1.08);
}

.hero-swiper-button-prev strong,
.hero-swiper-button-next strong {
    font-size: 22px;
    line-height: 1;
}

.hero-swiper-button-prev:after,
.hero-swiper-button-next:after {
    display: none;
}

@media (max-width: 991px) {
    .hero-swiper {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .hero-slide-text {
        padding: 100px 40px 40px;
    }
    .hero-slide-text h3 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: -58px;
    }
    .hero-swiper {
        aspect-ratio: 4 / 3;
        height: auto;
        border-radius: 0;
    }
    .hero-slide-text {
        padding: 85px 22px 28px;
    }
    .hero-slide-text h3 {
        font-size: 22px;
    }
    .hero-swiper-button-prev,
    .hero-swiper-button-next {
        width: 42px;
        height: 42px;
    }
    .hero-swiper-button-prev strong,
    .hero-swiper-button-next strong {
        font-size: 18px;
    }
}

.hero-visual {
    position: relative;
    min-height: 520px;
    padding: 24px 0;
}

.hero-main-card {
    position: relative;
    margin-left: auto;
    max-width: 440px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7eb 100%);
    border: 1px solid rgba(255, 138, 61, 0.16);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.hero-main-card-top,
.hero-main-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-mini-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(91, 121, 255, 0.12);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
}

.hero-mini-pill-light {
    background: rgba(255, 210, 95, 0.22);
    color: #9c6a00;
}

.hero-main-card-body {
    padding: 24px 0 10px;
    text-align: center;
}

.hero-main-image {
    max-width: 100%;
    width: 88%;
    filter: drop-shadow(0 18px 26px rgba(255, 138, 61, 0.22));
}

.hero-metric {
    flex: 1;
    min-width: 110px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(47, 36, 29, 0.06);
}

.hero-metric strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.hero-metric span {
    color: var(--text-soft);
    font-size: 12px;
}

/* 右侧竖排指标卡片 */
.hero-metrics-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 480px;
    height: 100%;
}

.hero-metric-vertical {
    flex: none;
    padding: 20px 22px;
}

.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 240px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.hero-floating-card i {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd25f 0%, #ff9d47 100%);
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-floating-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.hero-floating-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.hero-floating-card-top {
    top: 10px;
    left: 10px;
}

.hero-floating-card-bottom {
    right: -20px;
    bottom: 10px;
}

.section-block.stats-section {
    padding: 34px 0 38px;
}

@media (min-width: 992px) {
    .section-block.stats-section {
        min-height: calc(30vh - 81px);
        padding: 10px 0;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
}

@media (min-width: 1200px) {
    .stats-section .container {
        width: 1230px;
        max-width: 100%;
    }
}

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

.stats-card {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(47, 36, 29, 0.06);
    border-radius: 25px;
    padding: 26px 24px;
    box-shadow: 0 10px 28px rgba(160, 98, 50, 0.08);
}

.stats-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.stats-card span {
    display: block;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}

.section-block {
    padding: 50px 0;
}

.section-heading {
    margin-bottom: 34px;
}

.section-title {
    margin: 18px 0 12px;
    font-size: 38px;
    line-height: 1.28;
    font-weight: 800;
    color: #2d231d;
    text-wrap: balance;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.85;
}

.roadmap-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 243, 226, 0.8));
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.roadmap-card,
.capability-card,
.scene-card,
.news-card,
.matrix-panel {
    background: var(--surface);
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(164, 96, 38, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roadmap-card:hover,
.capability-card:hover,
.scene-card:hover,
.news-card:hover,
.matrix-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(164, 96, 38, 0.12);
}

.roadmap-card {
    padding: 30px 24px;
}

.roadmap-step {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brand-deep);
    font-size: 28px;
    font-weight: 800;
}

.roadmap-card h3,
.capability-card h3,
.scene-content h3,
.news-body h3,
.matrix-panel h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #2f241d;
}

.roadmap-card p,
.capability-card p,
.scene-content p,
.news-body p,
.matrix-panel p,
.cta-desc {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.85;
}

.capability-grid > div {
    margin-bottom: 24px;
}

.capability-card {
    height: 100%;
    padding: 28px 24px;
}

.capability-icon {
    width: 62px;
    height: 62px;
    line-height: 62px;
    text-align: center;
    border-radius: 20px;
    color: #fff;
    font-size: 24px;
    margin-bottom: 18px;
}

.capability-icon-orange { background: linear-gradient(135deg, #ffb347 0%, #ff8a3d 100%); }
.capability-icon-blue { background: linear-gradient(135deg, #6ea8ff 0%, #5b79ff 100%); }
.capability-icon-red { background: linear-gradient(135deg, #ff8d74 0%, #ff6b5c 100%); }
.capability-icon-green { background: linear-gradient(135deg, #53d0a4 0%, #32b88a 100%); }
.capability-icon-purple { background: linear-gradient(135deg, #aa8bff 0%, #8f6bff 100%); }
.capability-icon-yellow { background: linear-gradient(135deg, #ffd86e 0%, #f2b72c 100%); }

.capability-link,
.matrix-link,
.section-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--brand-deep);
    font-weight: 700;
    transition: gap 0.2s ease;
}

.capability-link:hover,
.matrix-link:hover,
.section-more-btn:hover {
    color: var(--brand-deep);
    gap: 12px;
}

.matrix-section {
    background: linear-gradient(180deg, #fff8ef 0%, #fff2de 100%);
}

.matrix-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 20px;
}

.matrix-panel {
    padding: 30px 24px;
    min-height: 220px;
}

.matrix-panel-primary {
    grid-row: span 2;
    background:
        radial-gradient(circle at top right, rgba(255, 210, 95, 0.26), transparent 28%),
        linear-gradient(160deg, #ffffff 0%, #fff2da 100%);
}

.matrix-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.12);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
}

.scene-cover {
    height: 198px;
    border-radius: 26px 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.scene-cover-a { background: linear-gradient(135deg, #ffb95b 0%, #ff8a3d 100%); }
.scene-cover-b { background: linear-gradient(135deg, #6ca8ff 0%, #6676ff 100%); }
.scene-cover-c { background: linear-gradient(135deg, #ff8b85 0%, #ff6b5c 100%); }

.scene-content {
    padding: 28px 24px 26px;
}

.news-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,248,239,0.92));
}

.news-section .row > div {
    margin-bottom: 24px;
}

.news-card {
    height: 100%;
    overflow: hidden;
}

.news-thumb {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #fff5e6;
}

.news-thumb-empty {
    position: relative;
    background: linear-gradient(135deg, #ffe6c4 0%, #fff3df 100%);
}

.news-thumb-empty::after {
    content: "\f03e";
    font-family: FontAwesome;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: rgba(245, 103, 34, 0.35);
}

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

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

.news-body {
    padding: 24px;
}

.news-date {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
}

.news-body h3 a {
    color: #2f241d;
}

.section-action {
    margin-top: 10px;
}

.section-more-btn {
    padding: 13px 28px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(160, 98, 50, 0.08);
}

/* ---- 推荐课程 ---- */
.course-section .row > div {
    margin-bottom: 24px;
}

.course-card {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(164, 96, 38, 0.08);
    color: var(--text-main);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover,
.course-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(164, 96, 38, 0.12);
}

.course-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #fff5e6;
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.course-card:hover .course-cover img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8a3d 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(245, 103, 34, 0.28);
}

.course-body {
    padding: 22px 22px 24px;
}

.course-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    color: #2f241d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-section {
    width: 80%;
    margin: 0 auto 78px;
    padding: 48px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7eb 0%, #ffffff 50%, #fff3df 100%);
    border: 1px solid rgba(255, 138, 61, 0.08);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.home-gallery-section .gallery-marquee {
    width: 100%;
    overflow: hidden;
    padding: 16px 0;
    cursor: grab;
}

.home-gallery-section .gallery-marquee + .gallery-marquee {
    margin-top: 12px;
}

.home-gallery-section .gallery-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    will-change: transform;
}

.home-gallery-section .gallery-track .gallery-card {
    position: relative;
    width: 280px;
    height: 198px;
    flex: 0 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(164, 96, 38, 0.14);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #2f241d;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-gallery-section .gallery-track .gallery-card-image {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #f5f5f5;
}

.home-gallery-section .gallery-track .gallery-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px 28px 0 0;
    transition: transform 0.3s ease;
}

.home-gallery-section .gallery-track .gallery-card-title {
    box-sizing: border-box;
    display: -webkit-box;
    position: static;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    flex: 0 0 50px;
    padding: 6px 12px;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 28px 28px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-gallery-section .gallery-track .gallery-card:hover,
.home-gallery-section .gallery-track .gallery-card:focus {
    color: #2f241d;
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(164, 96, 38, 0.2);
}

.home-gallery-section .gallery-track .gallery-card:hover .gallery-card-image img,
.home-gallery-section .gallery-track .gallery-card:focus .gallery-card-image img {
    transform: scale(1.04);
}

.cta-section {
    padding: 0 0 96px;
}

.cta-box {
    padding: 56px 42px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 210, 95, 0.2), transparent 28%),
        linear-gradient(135deg, #ff8a3d 0%, #ff7043 52%, #ff5a67 100%);
    box-shadow: 0 28px 64px rgba(233, 96, 46, 0.24);
}

.section-kicker-light {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.cta-title {
    margin: 20px auto 14px;
    max-width: 760px;
    color: #fff;
    font-size: 40px;
    line-height: 1.32;
    font-weight: 800;
}

.cta-desc {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.9);
}

.cta-actions {
    justify-content: center;
}

@media (max-width: 1199px) {
    .hero-title {
        font-size: 46px;
    }

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

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

    .matrix-panel-primary {
        grid-row: auto;
        grid-column: span 2;
    }

    .hero-floating-card-bottom {
        right: 0;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 96px;
    }

    .hero-shell {
        border-radius: 28px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-visual {
        min-height: auto;
        margin-top: 32px;
    }

    .hero-main-card {
        margin: 0 auto;
    }

    .hero-floating-card {
        position: static;
        width: auto;
        margin-top: 18px;
    }

    .hero-metrics-column {
        min-height: 380px;
        margin-top: 24px;
    }

    .section-title,
    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero-shell {
        border-radius: 28px;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-desc,
    .section-subtitle {
        font-size: 15px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        min-width: 0;
    }

    .stats-grid,
    .roadmap-grid,
    .matrix-layout {
        grid-template-columns: 1fr;
    }

    .matrix-panel-primary {
        grid-column: auto;
    }

    .section-block {
        padding: 60px 0;
    }

    .section-title,
    .cta-title {
        font-size: 28px;
    }

    .gallery-section {
        width: 92%;
        padding: 34px 22px;
        margin-bottom: 60px;
    }

    .home-gallery-section .gallery-track .gallery-card {
        width: 220px;
        height: 156px;
        flex-basis: auto;
    }

    .home-gallery-section .gallery-track .gallery-card-title {
        height: 39px;
        min-height: 39px;
        max-height: 39px;
        flex-basis: 39px;
        padding: 3px 10px;
        font-size: 12px;
    }

    .hero-metrics-column {
        min-height: auto;
        gap: 12px;
    }

    .hero-metric-vertical {
        padding: 16px 18px;
    }

    .cta-box {
        padding: 42px 22px;
        border-radius: 28px;
    }
}

/* ========================================================
   IM 首页动态效果增强
   - 滚动揭示动画（IntersectionObserver 驱动）
   - 卡片 3D 倾斜 + 鼠标光斑
   - 数字滚动计数器
   - Hero Ken Burns / 鼠标视差
   - 浮动光斑背景
   - 磁吸按钮
   - 回到顶部按钮 + 进度环
   - 鼠标跟随光晕
   ======================================================== */

/* ---- 全局背景浮动光斑 ---- */
.page-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.page-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}
.page-bg-orb-1 {
    width: 480px; height: 480px;
    left: -120px; top: 8%;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.55), transparent 70%);
    animation: orb-float-a 18s ease-in-out infinite;
}
.page-bg-orb-2 {
    width: 520px; height: 520px;
    right: -160px; top: 32%;
    background: radial-gradient(circle, rgba(255, 107, 92, 0.45), transparent 70%);
    animation: orb-float-b 22s ease-in-out infinite;
}
.page-bg-orb-3 {
    width: 420px; height: 420px;
    left: 35%; bottom: 4%;
    background: radial-gradient(circle, rgba(91, 121, 255, 0.32), transparent 70%);
    animation: orb-float-c 26s ease-in-out infinite;
}
@keyframes orb-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes orb-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-80px, 60px) scale(0.92); }
}
@keyframes orb-float-c {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50%      { transform: translate(-30%, -60px) scale(1.1); }
}

/* ---- 滚动揭示动画（仅当 JS 已启用时才隐藏内容，避免 JS 失败导致页面空白） ---- */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.js [data-reveal="fade-up"]    { transform: translate3d(0, 36px, 0); }
.js [data-reveal="fade-down"]  { transform: translate3d(0, -36px, 0); }
.js [data-reveal="fade-left"]  { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="fade-right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="zoom-in"]    { transform: scale(0.92); }

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* 群组错落延迟 */
.js [data-reveal-group] > [data-reveal]:nth-child(1)  { transition-delay: 0.05s; }
.js [data-reveal-group] > [data-reveal]:nth-child(2)  { transition-delay: 0.15s; }
.js [data-reveal-group] > [data-reveal]:nth-child(3)  { transition-delay: 0.25s; }
.js [data-reveal-group] > [data-reveal]:nth-child(4)  { transition-delay: 0.35s; }
.js [data-reveal-group] > [data-reveal]:nth-child(5)  { transition-delay: 0.42s; }
.js [data-reveal-group] > [data-reveal]:nth-child(6)  { transition-delay: 0.48s; }
.js [data-reveal-group] > [data-reveal]:nth-child(n+7){ transition-delay: 0.55s; }

/* ---- Hero 增强 ---- */
.hero-section {
    overflow: hidden;
    perspective: 1000px;
}

.hero-shell {
    transform-style: preserve-3d;
}

.hero-swiper {
    position: relative;
}

/* Ken Burns 慢速推近 */
.hero-swiper .swiper-slide-active .hero-slide-img,
.hero-swiper .swiper-slide-duplicate-active .hero-slide-img {
    animation: hero-kenburns 9s ease-out forwards;
}
@keyframes hero-kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

/* 文字光标跟随：跟随鼠标轻微移动 */
.hero-shell .hero-swiper {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hero 文字入场动画 */
.hero-slide-text {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: hero-text-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}
@keyframes hero-text-in {
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-slide-text h3 {
    background: linear-gradient(120deg, #ffffff 0%, #ffe8d2 50%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hero-title-shimmer 5s linear infinite;
    text-shadow: none;
}
@keyframes hero-title-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

.hero-slide-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
    animation: hero-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ---- 统计区 ---- */
.stats-card {
    display: flex;
    align-items: center;
    gap: 17px;
    position: relative;
    overflow: hidden;
}
.stats-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.45) 50%, transparent 75%);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.stats-card:hover::before { left: 130%; }

.stats-icon {
    width: 59px; height: 59px;
    border-radius: 19px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 23px;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(245, 103, 34, 0.25);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stats-card:hover .stats-icon { transform: rotate(-8deg) scale(1.08); }

.stats-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stats-content strong {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stats-content span {
    color: var(--text-soft);
    font-size: 15px;
}

/* ---- 成长路径卡片增强 ---- */
.roadmap-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.roadmap-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    transform: translate(0, 0);
}
.roadmap-card:hover .roadmap-glow {
    opacity: 1;
    transform: translate(20%, 20%);
}
.roadmap-step {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.4s ease;
    display: inline-block;
}
.roadmap-card:hover .roadmap-step {
    transform: translateX(6px);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- 核心能力卡片增强 ---- */
.capability-card {
    position: relative;
    transform-style: preserve-3d;
}
.capability-card::after {
    content: "";
    position: absolute;
    left: 24px; right: 24px; bottom: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.capability-card:hover::after { transform: scaleX(1); }

.capability-icon {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.capability-icon::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}
.capability-card:hover .capability-icon { transform: scale(1.06) rotate(-4deg); }
.capability-card:hover .capability-icon::after { left: 140%; }

/* ---- 课程卡片增强 ---- */
.course-card {
    position: relative;
    transform-style: preserve-3d;
}
.course-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s ease;
    pointer-events: none;
}
.course-card:hover .course-shine { left: 140%; }

.course-body {
    position: relative;
}
.course-arrow {
    position: absolute;
    right: 22px; bottom: 22px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 138, 61, 0.12);
    color: var(--brand-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.4s ease, color 0.4s ease;
    opacity: 0.6;
}
.course-card:hover .course-arrow {
    transform: translateX(6px) rotate(-45deg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    opacity: 1;
}

/* ---- 资讯卡片增强 ---- */
.news-card {
    position: relative;
    transform-style: preserve-3d;
}
.news-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.85s ease;
    pointer-events: none;
}
.news-card:hover .news-shine { transform: translateX(100%); }
.news-thumb { position: relative; overflow: hidden; }
.news-body h3 a {
    background-image: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-deep) 100%);
    background-size: 0 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding-bottom: 2px;
}
.news-card:hover .news-body h3 a { background-size: 100% 1.5px; }

/* ---- 应用场景卡片增强 ---- */
.scene-card {
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}
.scene-cover {
    position: relative;
    overflow: hidden;
}
.scene-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s ease;
    pointer-events: none;
}
.scene-card:hover .scene-shine { left: 140%; }
.scene-cover i {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    z-index: 1;
}
.scene-card:hover .scene-cover i {
    transform: scale(1.18) rotate(-6deg);
}

/* ---- 场景卡：有图态（图+链接） ---- */
.scene-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.scene-card-link:hover { color: inherit; }
.scene-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.scene-card:hover .scene-cover-img { transform: scale(1.08); }
.scene-card-has-image .scene-cover {
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.55) 100%), var(--brand);
}
.scene-cover-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.scene-go {
    position: absolute;
    bottom: 16px;
    right: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, background 0.3s ease;
}
.scene-card-link:hover .scene-go {
    transform: translateX(4px);
    background: #fff;
}

/* ---- 作品展示画廊：添加光晕与遮罩 ---- */
.gallery-section {
    position: relative;
}
.gallery-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 138, 61, 0.08), transparent 50%),
        radial-gradient(circle at 88% 78%, rgba(255, 107, 92, 0.08), transparent 50%);
    pointer-events: none;
}
.gallery-section > * { position: relative; z-index: 1; }

/* ---- 按钮磁吸效果 ---- */
.magnetic-btn {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
}
.magnetic-btn i {
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.magnetic-btn:hover i {
    transform: translateX(4px);
}
.section-more-btn {
    position: relative;
    overflow: hidden;
}
.section-more-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 138, 61, 0.2) 50%, transparent 70%);
    transition: left 0.6s ease;
}
.section-more-btn:hover::before { left: 100%; }

/* ---- CTA 增强 ---- */
.cta-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}
.cta-glow-1 {
    width: 280px; height: 280px;
    top: -90px; left: -90px;
    background: radial-gradient(circle, rgba(255, 210, 95, 0.55), transparent 70%);
    animation: cta-glow-a 12s ease-in-out infinite;
}
.cta-glow-2 {
    width: 320px; height: 320px;
    bottom: -110px; right: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 70%);
    animation: cta-glow-b 14s ease-in-out infinite;
}
@keyframes cta-glow-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes cta-glow-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, -50px) scale(0.9); }
}
.cta-title {
    background: linear-gradient(120deg, #ffffff 0%, #ffe8d2 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: cta-shimmer 6s linear infinite;
}
@keyframes cta-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ---- 3D 倾斜卡片 ---- */
[data-tilt] {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---- 回到顶部按钮 ---- */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 16px 36px rgba(245, 103, 34, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 22px 44px rgba(245, 103, 34, 0.45);
}
.back-to-top:active { transform: translateY(0) scale(0.96); }
.back-to-top i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.back-to-top:hover i { transform: translateY(-2px); }
.back-to-top-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 1;
    pointer-events: none;
}
.back-to-top-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 97.4;
    stroke-dashoffset: 97.4;
    transition: stroke-dashoffset 0.15s linear;
}

/* ---- 鼠标跟随光晕 ---- */
.cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: transform;
    mix-blend-mode: screen;
}
.cursor-glow.is-active { opacity: 1; }

/* ---- 标题入场装饰：下划线扫过 ---- */
.section-heading {
    position: relative;
}
.section-kicker {
    position: relative;
    overflow: hidden;
}
.section-kicker::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.6) 50%, transparent 75%);
    transition: left 0.6s ease;
}
.section-heading.is-visible .section-kicker::before {
    animation: kicker-shine 1.4s ease 0.3s;
}
@keyframes kicker-shine {
    from { left: -100%; }
    to   { left: 130%; }
}

/* ---- 标题下划线装饰 ---- */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
}
.section-heading.is-visible .section-title::after,
[data-reveal="fade-up"].is-visible .section-title::after {
    width: 56px;
}

/* ---- 减少动画偏好：完全尊重系统设置 ---- */
@media (prefers-reduced-motion: reduce) {
    .page-bg-orb,
    .cta-glow,
    .hero-slide-text,
    .hero-slide-text h3,
    .hero-slide-badge,
    .hero-swiper .swiper-slide-active .hero-slide-img,
    .hero-swiper .swiper-slide-duplicate-active .hero-slide-img,
    .cta-title,
    .section-heading.is-visible .section-kicker::before {
        animation: none !important;
    }
    .js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .cursor-glow { display: none; }
    .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
    .stats-card::before,
    .capability-card::after,
    .course-shine,
    .news-shine,
    .scene-shine,
    .section-more-btn::before { transition: none !important; }
}

/* ---- 移动端 / 触屏：禁用光晕、磁吸、3D 倾斜等 ---- */
@media (max-width: 991px), (hover: none) {
    .cursor-glow { display: none; }
    [data-tilt] { transform: none !important; }
    .magnetic-btn { transform: none !important; }
    .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; font-size: 16px; }
}

/* ========================================================
   IM 首页 学习体验三轨（课程 / 工具 / 场景）
   - .experience-section + .experience-track + .track-head
   - .tool-card / .tool-cover / .tool-content / .tool-icon-mini
   - 响应式 grid
   ======================================================== */
.experience-section {
    background: linear-gradient(180deg, #fffaf2 0%, #fff 60%, #fff7eb 100%);
}

.experience-track + .experience-track {
    margin-top: 44px;
}

.track-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.track-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(91, 121, 255, 0.12));
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(47, 36, 29, 0.06);
}

.experience-track-tools .track-kicker {
    background: linear-gradient(135deg, rgba(91, 121, 255, 0.14), rgba(143, 107, 255, 0.14));
}

.experience-track-scenes .track-kicker {
    background: linear-gradient(135deg, rgba(255, 107, 92, 0.14), rgba(255, 138, 61, 0.14));
}

.track-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(47, 36, 29, 0.18), transparent);
}

/* 工具卡片（保留通用的 hover 上浮 + 底部色条） */
.tool-card {
    position: relative;
    height: 100%;
    background: var(--surface);
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(164, 96, 38, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(164, 96, 38, 0.12);
}

.tool-card::after {
    content: "";
    position: absolute;
    left: 24px; right: 24px; bottom: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tool-card:hover::after { transform: scaleX(1); }

.tool-cover {
    height: 132px;
    border-radius: 26px 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    position: relative;
    overflow: hidden;
}

.tool-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tool-card:hover .tool-cover-img { transform: scale(1.08); }

.tool-card-has-image .tool-cover {
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.55) 100%), var(--brand);
}

.tool-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s ease;
    pointer-events: none;
    z-index: 1;
}

.tool-card:hover .tool-shine { left: 140%; }

.tool-content {
    padding: 22px 24px 26px;
    position: relative;
}

.tool-icon-mini {
    position: absolute;
    top: -22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 26px rgba(47, 36, 29, 0.18);
}

.tool-content h3 {
    margin: 16px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    color: #2f241d;
}

.tool-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    height: 100%;
}
.tool-card-link:hover { color: inherit; }

.tool-go {
    position: absolute;
    bottom: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 138, 61, 0.12);
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.tool-card-link:hover .tool-go {
    transform: translateX(4px);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
}

/* 体验区 grid padding 与之前的 row 体系对齐 */
.experience-grid > div {
    margin-bottom: 24px;
}

/* 响应式 */
@media (max-width: 1199px) {
    .experience-grid { row-gap: 16px; }
}

@media (max-width: 767px) {
    .track-head {
        gap: 10px;
        margin-bottom: 16px;
    }
    .track-line { display: none; }
    .tool-cover { height: 110px; font-size: 32px; }
    .tool-content { padding: 20px 18px 22px; }
    .experience-track + .experience-track { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .tool-card,
    .tool-cover-img,
    .tool-card::after,
    .tool-shine,
    .tool-go { transition: none !important; }
}

/* ========================================================
   IM 首页 证书墙 section
   - .certificate-section
   - .certificate-card  / .certificate-thumb / .certificate-body
   - hover 上浮 + 角落图标
   - 响应式
   ======================================================== */
.certificate-section {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 210, 95, 0.16), transparent 40%),
        radial-gradient(circle at 92% 80%, rgba(255, 138, 61, 0.12), transparent 40%),
        linear-gradient(180deg, #fffaf2 0%, #fff 100%);
}

.certificate-grid > div {
    margin-bottom: 24px;
}

.certificate-card {
    position: relative;
    display: block;
    height: 100%;
    background: var(--surface);
    border-radius: 22px;
    border: 1px solid rgba(47, 36, 29, 0.08);
    box-shadow: 0 14px 36px rgba(164, 96, 38, 0.08);
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}

.certificate-card:hover,
.certificate-card:focus {
    color: inherit;
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(164, 96, 38, 0.16);
}

.certificate-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s ease;
    pointer-events: none;
    z-index: 1;
}

.certificate-card:hover .certificate-shine { left: 140%; }

.certificate-corner {
    position: absolute;
    top: 14px; left: 14px;
    width: 36px; height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd25f 0%, #ff8a3d 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(245, 103, 34, 0.32);
}

.certificate-thumb {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #fff5e0 0%, #ffe8d2 100%);
    overflow: hidden;
}

.certificate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.certificate-thumb-img-failed { display: none; }

.certificate-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 103, 34, 0.45);
    font-size: 56px;
}

.certificate-body {
    padding: 20px 22px 22px;
    position: relative;
}

.certificate-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    color: #2f241d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certificate-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.certificate-meta i {
    margin-right: 4px;
    color: var(--brand-deep);
}

.certificate-arrow {
    position: absolute;
    right: 18px; bottom: 18px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 138, 61, 0.12);
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.certificate-card:hover .certificate-arrow {
    transform: translateX(4px) rotate(-45deg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
}

@media (max-width: 991px) {
    .certificate-thumb { height: 180px; }
}

@media (max-width: 767px) {
    .certificate-thumb { height: 160px; }
    .certificate-body { padding: 16px 18px 18px; }
    .certificate-arrow { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .certificate-card,
    .certificate-thumb img,
    .certificate-shine,
    .certificate-arrow { transition: none !important; }
}

/* ========================================================
   IM 首页 课程 section（招牌 + 进阶 两块）
   - .course-group / .course-group-grid
   - 招牌组：2 列大卡
   - 进阶组：自适应列
   ======================================================== */
.course-group + .course-group {
    margin-top: 36px;
}

.course-group-subtitle {
    margin: -8px 0 22px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.course-group-grid > div {
    margin-bottom: 24px;
}

/* 招牌课程 - 大卡布局，桌面 2 列 */
.course-group-grid-highlight {
    row-gap: 24px;
}

.course-card-highlight {
    border-radius: 28px;
}

.course-card-highlight .course-cover {
    height: 220px;
}

.course-card-highlight .course-body {
    padding: 26px 26px 28px;
}

.course-card-highlight .course-body h3 {
    font-size: 22px;
    -webkit-line-clamp: 2;
}

.course-card-highlight .course-body p {
    font-size: 15px;
    -webkit-line-clamp: 3;
}

@media (max-width: 991px) {
    .course-card-highlight .course-cover { height: 200px; }
}

@media (max-width: 767px) {
    .course-card-highlight .course-cover { height: 180px; }
    .course-card-highlight .course-body { padding: 22px 20px 24px; }
}

/* ============================================================
   隐藏 swiper 自带的预加载动画（仅针对 lazy preloader，不影响 hero）
   - 仅在存在 .swiper-lazy-preloader 节点时生效
   - 不影响其他 swiper 功能
   ============================================================ */
.swiper-lazy-preloader {
    display: none !important;
}
