/* Homepage hero + media centre, 2026-08-12. Scoped to avoid affecting protected modules. */
:root {
    --qiai-hm-green: #17633f;
    --qiai-hm-ink: #16241d;
    --qiai-hm-copy: #435149;
    --qiai-hm-line: rgba(33, 56, 44, 0.16);
    --qiai-hm-silver: #eef2ef;
}

.qiai-home-hero-v2,
.qiai-home-media {
    color: var(--qiai-hm-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.qiai-home-hero-v2 {
    position: relative;
    min-height: 780px;
    padding: 0 !important;
    overflow: hidden;
    isolation: isolate;
    background: #edf1ef;
}

.qiai-home-hero-v2__image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 57% 50%;
    filter: saturate(0.72) contrast(0.96) brightness(1.12);
    transform: scale(1.015);
}

.qiai-home-hero-v2__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(248, 250, 249, 1) 0%, rgba(248, 250, 249, 0.98) 27%, rgba(248, 250, 249, 0.89) 39%, rgba(248, 250, 249, 0.30) 59%, rgba(244, 247, 245, 0.06) 100%),
        linear-gradient(0deg, rgba(231, 236, 233, 0.28), transparent 42%);
}

.qiai-home-hero-v2__inner,
.qiai-home-media__inner {
    width: min(1248px, calc(100% - 64px));
    margin: 0 auto;
}

.qiai-home-hero-v2__inner {
    position: relative;
    min-height: 780px;
}

.qiai-home-hero-v2__copy {
    width: 620px;
    padding-top: clamp(205px, 22vh, 232px);
    opacity: 0;
    transform: translateY(18px);
    animation: qiai-hm-enter 560ms ease-out 80ms forwards;
}

.qiai-home-hero-v2__eyebrow,
.qiai-home-media__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 19px;
    color: var(--qiai-hm-green);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.qiai-home-hero-v2__eyebrow span {
    width: 28px;
    height: 1px;
    background: var(--qiai-hm-green);
}

.qiai-home-hero-v2 h1 {
    margin: 0;
    color: var(--qiai-hm-ink);
    font-size: clamp(60px, 4.75vw, 76px);
    font-weight: 650;
    line-height: 0.98;
    text-wrap: balance;
}

.qiai-home-hero-v2 h1 span {
    display: block;
}

.qiai-home-hero-v2 h1 em {
    color: var(--qiai-hm-green);
    font-style: normal;
    font-weight: 580;
}

.qiai-home-hero-v2__lead {
    margin: 25px 0 0;
    color: #24332b;
    font-size: 20px;
    line-height: 1.62;
    text-wrap: pretty;
}

.qiai-home-hero-v2__lead span {
    display: block;
}

.qiai-home-hero-v2__actions {
    display: flex;
    gap: 14px;
    margin-top: 25px;
}

.qiai-home-hero-v2__action {
    display: inline-flex;
    min-width: 166px;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 20px;
    border: 1px solid rgba(23, 99, 63, 0.45);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.52);
    color: #203128;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

.qiai-home-hero-v2__action--primary {
    border-color: var(--qiai-hm-green);
    background: var(--qiai-hm-green);
    color: #fff;
}

.qiai-home-hero-v2__action:hover,
.qiai-home-hero-v2__action:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 52, 37, 0.14);
}

.qiai-home-hero-v2__action:active {
    transform: translateY(0) scale(0.985);
}

.qiai-home-hero-v2__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 580px;
    margin: 30px 0 0;
}

.qiai-home-hero-v2__metrics div {
    padding: 0 19px;
    border-left: 1px solid var(--qiai-hm-line);
}

.qiai-home-hero-v2__metrics div:first-child {
    padding-left: 0;
    border-left: 0;
}

.qiai-home-hero-v2__metrics dt {
    color: #1c2d24;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
}

.qiai-home-hero-v2__metrics dt strong {
    margin: 0 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.qiai-home-hero-v2__metrics dd {
    margin: 8px 0 0;
    color: #68756e;
    font-size: 12px;
    line-height: 1.35;
}

.qiai-home-hero-v2__evidence {
    margin: 18px 0 0;
    color: #738078;
    font-size: 11px;
}

.qiai-home-hero-v2__evidence a {
    color: #355e48;
    text-underline-offset: 3px;
}

.qiai-home-hero-v2__console {
    position: absolute;
    right: 0;
    bottom: 28px;
    display: grid;
    grid-template-columns: 1.42fr repeat(4, 1fr);
    width: min(810px, 67%);
    min-height: 84px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 4px;
    background: rgba(20, 31, 25, 0.74);
    box-shadow: 0 18px 44px rgba(13, 29, 20, 0.20);
}

.qiai-home-hero-v2__console a {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 15px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.qiai-home-hero-v2__console a:first-child {
    padding-left: 54px;
    border-left: 0;
}

.qiai-home-hero-v2__console a::after {
    position: absolute;
    right: 16px;
    bottom: 8px;
    left: 16px;
    height: 2px;
    background: #b7d2c4;
    content: "";
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: left;
    transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.qiai-home-hero-v2__console a:hover,
.qiai-home-hero-v2__console a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.qiai-home-hero-v2__console a:hover::after,
.qiai-home-hero-v2__console a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.qiai-home-hero-v2__console strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qiai-home-hero-v2__console small {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
}

.qiai-home-hero-v2__console-icon {
    position: absolute;
    left: 17px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    font-size: 9px;
}

.qiai-home-hero-v2__scroll {
    position: absolute;
    bottom: 34px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(30, 51, 40, 0.66);
    font-size: 9px;
    text-decoration: none;
}

.qiai-home-hero-v2__scroll span {
    width: 24px;
    height: 1px;
    background: currentColor;
}

.qiai-home-media {
    padding: 104px 0 116px;
    overflow: hidden;
    background: #f7f8f7;
}

.qiai-home-media__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: end;
    gap: 80px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--qiai-hm-line);
}

.qiai-home-media__header h2 {
    margin: 0;
    color: var(--qiai-hm-ink);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 45px;
    font-weight: 500;
    line-height: 1.14;
    text-wrap: balance;
}

.qiai-home-media__header > p {
    margin: 0;
    color: #657169;
    font-size: 14px;
    line-height: 1.8;
    text-wrap: pretty;
}

.qiai-home-media__selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    border: 1px solid var(--qiai-hm-line);
    background: rgba(255, 255, 255, 0.72);
}

.qiai-home-media__tab {
    position: relative;
    display: flex;
    min-width: 0;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border: 0;
    border-left: 1px solid var(--qiai-hm-line);
    background: transparent;
    color: #526058;
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

.qiai-home-media__tab:first-child {
    border-left: 0;
}

.qiai-home-media__tab::after {
    position: absolute;
    right: 24px;
    bottom: -1px;
    left: 24px;
    height: 3px;
    background: var(--qiai-hm-green);
    content: "";
    opacity: 0;
    transform: scaleX(0.12);
    transform-origin: left;
    transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.qiai-home-media__tab:hover,
.qiai-home-media__tab:focus-visible {
    z-index: 1;
    background: #fff;
    color: var(--qiai-hm-ink);
    box-shadow: 0 14px 30px rgba(31, 55, 42, 0.09);
    transform: translateY(-3px);
}

.qiai-home-media__tab:active {
    transform: translateY(0) scale(0.992);
}

.qiai-home-media__tab.is-active {
    background: #fff;
    color: var(--qiai-hm-green);
}

.qiai-home-media__tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.qiai-home-media__tab span {
    display: block;
    min-width: 0;
}

.qiai-home-media__tab small,
.qiai-home-media__tab strong {
    display: block;
}

.qiai-home-media__tab small {
    margin-bottom: 8px;
    color: #8b958f;
    font-size: 9px;
    font-weight: 500;
}

.qiai-home-media__tab strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qiai-home-media__tab em {
    color: #89938d;
    font-size: 10px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.qiai-home-media__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
    gap: 0;
    margin-top: 22px;
    border: 1px solid var(--qiai-hm-line);
    background: #fff;
    box-shadow: 0 24px 56px rgba(29, 49, 39, 0.10);
}

.qiai-home-media__stage.qiai-media-enter {
    animation: qiai-media-enter 420ms ease-out both;
}

.qiai-home-media__screen {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #101713;
    aspect-ratio: 16 / 9;
}

.qiai-home-media__screen video {
    display: block;
    width: 100%;
    height: 100%;
    background: #101713;
    object-fit: cover;
}

.qiai-home-media__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(250, 252, 251, 0.90);
    color: var(--qiai-hm-green);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease-out, opacity 180ms ease-out, box-shadow 180ms ease-out;
}

.qiai-home-media__play svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qiai-home-media__play circle {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1;
}

.qiai-home-media__play path {
    fill: currentColor;
}

.qiai-home-media__play:hover,
.qiai-home-media__play:focus-visible {
    box-shadow: 0 12px 32px rgba(7, 25, 15, 0.22);
    transform: translate(-50%, -50%) scale(1.08);
}

.qiai-home-media__screen.is-playing .qiai-home-media__play {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
}

.qiai-home-media__screen-label {
    position: absolute;
    top: 22px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    pointer-events: none;
}

.qiai-home-media__screen-label span {
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.36);
}

.qiai-home-media__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.20);
    pointer-events: none;
}

.qiai-home-media__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #d6e3dc;
    transform: scaleX(0);
    transform-origin: left;
}

.qiai-home-media__detail {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 42px 42px 38px;
    border-left: 1px solid var(--qiai-hm-line);
}

.qiai-home-media__source {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7a8880;
}

.qiai-home-media__source > span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.qiai-home-media__source em {
    padding-left: 12px;
    border-left: 1px solid var(--qiai-hm-line);
    font-size: 10px;
    font-style: normal;
}

.qiai-home-media__kicker {
    margin: 34px 0 12px;
    color: var(--qiai-hm-green);
    font-size: 11px;
    font-weight: 700;
}

.qiai-home-media__detail h3 {
    margin: 0;
    color: var(--qiai-hm-ink);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 31px;
    font-weight: 500;
    line-height: 1.28;
    text-wrap: balance;
}

.qiai-home-media__detail > p:not(.qiai-home-media__kicker) {
    margin: 18px 0 0;
    color: #66736b;
    font-size: 13px;
    line-height: 1.82;
    text-wrap: pretty;
}

.qiai-home-media__detail ul {
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid var(--qiai-hm-line);
    list-style: none;
}

.qiai-home-media__detail li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(33, 56, 44, 0.09);
    color: #8a948e;
    font-size: 11px;
}

.qiai-home-media__detail li strong {
    color: #34453b;
    font-size: 12px;
    font-weight: 550;
}

.qiai-home-media__detail > a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 22px;
    margin-top: 28px;
    padding-bottom: 6px;
    border-bottom: 1px solid #789181;
    color: #355e48;
    font-size: 12px;
    text-decoration: none;
    transition: transform 180ms ease-out, color 180ms ease-out;
}

.qiai-home-media__detail > a:hover,
.qiai-home-media__detail > a:focus-visible {
    color: var(--qiai-hm-green);
    transform: translateX(3px);
}

.qiai-home-hero-v2 a:focus-visible,
.qiai-home-hero-v2 button:focus-visible,
.qiai-home-media a:focus-visible,
.qiai-home-media button:focus-visible,
.qiai-home-media__stage:focus-visible {
    outline: 2px solid #0c7043;
    outline-offset: 3px;
}

@keyframes qiai-hm-enter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes qiai-media-enter {
    from { opacity: 0.76; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1680px) {
    .qiai-home-hero-v2,
    .qiai-home-hero-v2__inner { min-height: 820px; }
    .qiai-home-hero-v2__copy { padding-top: 220px; }
}

@media (max-width: 1280px) {
    .qiai-home-hero-v2__inner,
    .qiai-home-media__inner { width: 1160px; }
    .qiai-home-hero-v2__copy { width: 590px; padding-top: 205px; }
    .qiai-home-hero-v2 h1 { font-size: 62px; }
    .qiai-home-hero-v2__console { width: 760px; }
    .qiai-home-media__stage { grid-template-columns: minmax(0, 1.72fr) 360px; }
    .qiai-home-media__detail { padding: 34px 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .qiai-home-hero-v2__copy,
    .qiai-home-media__stage.qiai-media-enter {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    .qiai-home-hero-v2 *,
    .qiai-home-media * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
