@import url("footer-helpers.css");

:root {
    --container: 1180px;
    --max-width: 1200px;
    --text-dark: #2b3b49;
    --muted: #6b7b87;
    --accent: #1d84ff;
    --surface-elev-1: 0 6px 18px rgba(20, 30, 40, 0.06);
    --surface-elev-2: 0 12px 34px rgba(20, 30, 40, 0.08);
    --page-bg: linear-gradient(180deg, #f3f4f7 0%, #f3f4f7 45%, #f3f4f7 100%);
}
/* Reset / base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    padding-top: 72px;
    /* offset for fixed header height */
    font-family: "Montserrat", "PingFang SC", "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Utility container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(30, 40, 50, 0.06)
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit
}

.brand-link img {
    height: 38px
}

/* Nav */
nav.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center
}

.nav-item {
    position: relative
}

.nav-item>a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none
}

.nav-item>a:hover {
    color: var(--accent)
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20, 30, 40, 0.08);
    padding: 8px 0;
    display: none;
    z-index: 70
}

.nav-item:hover>.dropdown,
.nav-item:focus-within>.dropdown {
    display: block
}

.dropdown a {
    display: block;
    padding: 8px 14px;
    color: var(--text-dark);
    text-decoration: none
}

/* Language: redesigned dropdown (copied from Index.css for page-level styling) */
.lang-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(16, 30, 40, 0.04);
    box-shadow: 0 6px 18px rgba(29, 132, 255, 0.04);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}

.lang-btn:focus { outline: 2px solid rgba(29, 132, 255, 0.12); outline-offset: 2px; }
.lang-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(29, 132, 255, 0.06); color: var(--accent); }

.lang-dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; background: #fff; border-radius: 10px; box-shadow: 0 12px 34px rgba(20, 30, 40, 0.12); padding: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; z-index: 1100; border: 1px solid rgba(16, 30, 40, 0.04); }
.lang-wrap:hover > .lang-dropdown, .lang-wrap:focus-within > .lang-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-dropdown a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text-dark); font-size: 14px; }
.lang-dropdown a + a { margin-top: 6px; }
.lang-dropdown a:hover, .lang-dropdown a:focus { background: linear-gradient(90deg, rgba(29, 132, 255, 0.06), rgba(29, 132, 255, 0.02)); color: var(--accent); outline: none; }
.lang-dropdown a:focus { box-shadow: 0 0 0 3px rgba(29, 132, 255, 0.08); }

/* Force-hide when .lang-closed is applied */
.lang-wrap.lang-closed > .lang-dropdown { opacity: 0 !important; transform: translateY(-6px) !important; pointer-events: none !important; }

/* Keep dropdown hidden after selection until mouse leaves or user re-opens */
.lang-wrap.lang-disabled > .lang-dropdown { opacity: 0 !important; transform: translateY(-6px) !important; pointer-events: none !important; }

/* Mobile nav toggle (button exists on all pages) */
.mobile-nav-toggle {
    display: none;
    font-size: 18px;
    background: transparent;
    border: 0;
    cursor: pointer
}

@media (max-width: 540px) {
    .mobile-nav-toggle {
        display: block
    }

    nav.main-nav {
        display: none
    }

    .header-inner {
        justify-content: space-between
    }
}

/* Hero / carousel */
.hero {
    width: 100%;
    background: #fff;
    padding-bottom: 8px
}

.carousel-wrap {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 0
}

.carousel-wrap[data-static="true"] {
    height: 420px;
    overflow: hidden;
    background: #f6f8fb
}

/* Ensure single static hero images fill the full-bleed banner */
.static-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.slides {
    width: 100%;
    height: 100%
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.indicators {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 10px;
    z-index: 10
}

.indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #d7dbe0;
    cursor: pointer
}

.indicators button.active {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(29, 132, 255, 0.2)
}

/* Page-scoped: ensure top-stats show horizontally on the Jieshao page */
.top-stats-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.top-stats-inner .stat {
    flex: 1 1 0;
    padding: 8px 12px;
    min-width: 120px;
}

/* Nudge the stats block slightly left and up for visual alignment on the about section */
main#academy-main .about-right .top-stats-inner {
    transform: translate(calc(-10px - 3cm), -6px);
}


/* Page-scoped: 报名与咨询 区块使用站点统一蓝色 CTA 渐变背景（仅 Jieshao 页面） */

/* Make the '报名与咨询' block full-bleed (edge-to-edge) and use blue CTA gradient */
main#academy-main section.container[aria-label="报名与咨询"] {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: none; /* override .container max-width */
    background: linear-gradient(90deg,#0b74d1 0,#127bdc 100%);
    color: #ffffff;
    padding: 40px 0 72px; /* horizontal padding handled by inner container */
    box-sizing: border-box;
    z-index: 0;
}

main#academy-main section.container[aria-label="报名与咨询"] > div[style] {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* make text inside this block white; p inline styles may override, so prefer updating HTML inline where present */
main#academy-main section.container[aria-label="报名与咨询"] .section-heading,
main#academy-main section.container[aria-label="报名与咨询"] p {
    color: #ffffff;
}

/* Keep right-side white button visible and preserve shadows */
main#academy-main section.container[aria-label="报名与咨询"] .cap-card {
    box-shadow: var(--surface-elev-1);
}

/* Keep right-side white button visible and preserve shadows */
main#academy-main section.container[aria-label="报名与咨询"] .cap-card {
    box-shadow: var(--surface-elev-1);
}

.carousel-wrap[data-static="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 20, 34, 0.06) 0%, rgba(7, 20, 34, 0.02) 30%, transparent 60%)
}

/* Page-band (breadcrumb / page title strip) - match site-wide styling */
.page-band{
    background:rgba(255,255,255,0.92);
    border-top:1px solid rgba(16,30,40,0.06);
    border-bottom:1px solid rgba(16,30,40,0.06);
}
.page-band-inner{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:16px;
    padding:14px 20px;
    max-width:1180px;
    margin:0 auto;
}
.page-band-left{font-size:13px;color:#6b7b87}
.page-band-center{font-size:18px;font-weight:700;color:#2b3b49;text-align:center;letter-spacing:0.5px}
.page-band-right{text-align:right}
.page-band-link{color:var(--text-dark);text-decoration:none}
.page-band-link:hover{color:var(--accent)}
.page-band .sep{opacity:0.65;margin:0 6px}

@media (max-width:760px){
  .page-band-inner{grid-template-columns:1fr; justify-items:start; gap:8px}
  .page-band-center{text-align:left}
  .page-band-right{display:none}
}

/* About / content blocks */
.about {
    background: #fff;
    padding: var(--about-vspace, 60px) 0;
    border-radius: 12px;
    box-shadow: var(--surface-elev-1);
    overflow: clip;
    transition: box-shadow 220ms ease, transform 220ms ease;
    height: var(--about-height, auto);
    min-height: var(--about-min-height, auto)
}

.about:hover {
    box-shadow: var(--surface-elev-2);
    transform: translateY(-4px)
}

.about-row {
    display: flex;
    gap: 36px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px
}

.about-left {
    flex: 0 0 var(--about-left-w, 40%);
    max-width: var(--about-left-max, 420px);
    height: 100%;
    position: relative
}

.about-left img,
.about-left video.about-video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20, 40, 60, 0.06);
    object-fit: var(--about-img-fit, cover)
}

.about-right {
    flex: 1 1 auto;
    color: var(--text-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 12px
}

.about-right::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(29, 132, 255, 0.95), rgba(29, 132, 255, 0.6));
    box-shadow: 0 6px 18px rgba(29, 132, 255, 0.06)
}

@media(max-width:880px) {
    .about-row {
        flex-direction: column;
        gap: 18px
    }

    .about-left {
        width: 100%;
        max-width: 100%;
        flex-basis: auto
    }

    .about-left img,
    .about-left video.about-video {
        height: auto;
        object-fit: cover
    }

    .about-right::before {
        display: none
    }
}

/* Cards */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px
}

.cap-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(16, 30, 40, 0.04);
    transition: transform 240ms ease, box-shadow 240ms ease
}

.cap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(16, 30, 40, 0.08)
}

/* Partners */
.partners {
    padding: 40px 0
}

.partners-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    position: relative
}

.partner-tile {
    display: block;
    padding: 18px;
    background: transparent;
    border-radius: 8px
}

.partner-tile img {
    max-width: 120px;
    display: block;
    filter: grayscale(80%) contrast(0.95);
    transition: transform 240ms ease, filter 240ms ease
}

.partner-tile:hover img {
    filter: none;
    transform: translateY(-6px) scale(1.02)
}

.partners-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px;
    opacity: 0.04;
    pointer-events: none
}

/* Big figure (reusable) */
.big-figure {
    --mode: centered;
    --max-width: 1280px;
    --image-max-height: 68vh;
    --radius: 12px;
    --shadow: 0 16px 36px rgba(20, 30, 40, 0.10);
    margin: 28px 0;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden
}

.big-figure-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 0
}

.big-figure[data-mode="centered"] .big-figure-inner,
.big-figure:not([data-mode]) .big-figure-inner {
    max-width: var(--max-width);
    margin: 0 auto
}

.big-figure[data-mode="full-bleed"] {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
    background: #fff
}

.big-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--image-max-height);
    object-fit: cover
}

/* Page-scoped: ensure the big-figure section on Jieshao page is centered */
main#academy-main section.big-figure.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: 32px 20px;
    box-sizing: border-box;
}

main#academy-main section.big-figure.container > div {
    max-width: calc(var(--container) - 40px);
    margin: 0 auto;
    display: flex;
    gap: 18px;
    align-items: stretch;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    main#academy-main section.big-figure.container > div {
        display: block;
    }
}

/* Footer */
.site-footer-min {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #53585a 0%, #636f74 100%);
    color: #dbeeff;
    padding: 28px 0
}

.footer-inner-min {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    box-sizing: border-box;
    position: relative
}

.footer-meta-min {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    min-width: 220px
}

.footer-meta-min .meta-copyright {
    color: #ffffff;
    font-weight: 600
}

.footer-meta-min .meta-icp {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8)
}

.footer-contact-min {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    min-width: 240px
}

.footer-contact-min a {
    background: linear-gradient(90deg, var(--accent), #7ecbff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: 600
}

.footer-contact-min a:hover {
    text-decoration: underline;
    opacity: 0.95
}

.footer-inner-min::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none
}

@media(max-width:880px) {
    .footer-inner-min {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .footer-contact-min {
        align-items: center
    }

    .footer-meta-min {
        text-align: center
    }
}

/* Video player component */
.video-player {
    border: 1px solid rgba(16, 30, 40, 0.06);
    border-radius: 8px;
    background: #000;
    display: inline-block;
    resize: both;
    overflow: auto;
    width: 640px;
    height: 360px;
    max-width: 100%;
    position: relative
}

.video-player .vp-inner {
    width: 100%;
    height: 100%;
    position: relative
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000
}

.video-player .vp-controls {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px;
    border-radius: 6px
}

/* Decorative accents */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 10px
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(29, 132, 255, 0.4));
    box-shadow: 0 6px 18px rgba(29, 132, 255, 0.08)
}

/* Responsive tweaks */
@media(max-width:1100px) {
    .about-row {
        gap: 20px
    }

    .carousel-wrap[data-static="true"] {
        height: 360px
    }
}

@media(max-width:880px) {
    .nav-list {
        gap: 14px
    }

    .capabilities-grid {
        grid-template-columns: 1fr
    }

    .video-player {
        width: 100%;
        height: 240px
    }
}
