/* 首页专属样式（Story 1.2，对齐 Figma 帧 1:3 / 63:13281，设计基准 1920 宽）
   公共组件（容器/按钮/区块标题/服务卡/Why Choose Us/联系表单/FAB）见 pages.css */

/* ---------------------------------------------------------- Hero */
.hero {
    position: relative;
    min-height: 908px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #141E1A url("../img/home/hero-bg.ffbb540aaa8e.jpg") center / cover no-repeat;
}

/* 遮罩：#00000080 → #00000033 从上到下（对齐 Gradient 节点） */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.20));
}

.hero__inner {
    position: relative;
    width: 100%;
    padding: 96px 40px 220px; /* 底部留白给 Data Strip 悬浮；横向同 .site-container（加载顺序会覆盖其 padding，须自留，Story 5.2 走查修复） */
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";
    width: 56px;
    height: 3px;
    background: var(--bess-green);
    flex: none;
}

.hero__title {
    margin: 0 0 40px;
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -1.6px;
    line-height: 1;
}

.hero__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin: 0 0 56px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.35px;
}

.hero__services li { display: flex; align-items: center; gap: 24px; }
.hero__services li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------- Data Strip（悬浮数据卡） */
.data-strip { position: relative; z-index: 2; margin-top: -160px; }

.data-strip__card {
    max-width: 1309px;
    margin: 0 auto;
    padding: 64px 51px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #F6F8F4;
    border: 1px solid #E5E8E2;
    border-radius: 9px;
}

.data-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.data-strip__item + .data-strip__item { border-left: 1px solid #E5E8E2; }

.data-strip__item img { width: 24px; height: 24px; margin-bottom: 12px; }

.data-strip__num {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: var(--bess-green);
    margin-bottom: 4px;
}

.data-strip__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.65px;
    color: #8A918A;
}

/* ---------------------------------------------------------- From Training to Real Project Support（需求 #19 三步） */
.training { padding: 100px 0; background: #fff; }

.training__card {
    display: grid;
    grid-template-columns: 757px 1fr;
    gap: 48px;
    padding: 71px 0 71px 102px;
    border-radius: 24px;
    background: #fff;
    overflow: visible;
}

.training__content { max-width: 757px; padding-right: 24px; }

.training__content h2 {
    margin: 0 0 20px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1A1A;
}

.training__content > p {
    margin: 0 0 40px;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
}

.training__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.training__step {
    position: relative;
    background: #F4F8F1;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 32px 20px 20px;
    text-align: center;
}

.training__step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bess-green);
}

.training__step-icon {
    width: 40px;
    height: 40px;
    margin: 8px auto 16px;
    display: block;
}

.training__step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
}

.training__step p {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    min-height: 38px;
}

.training__step a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--bess-green);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bess-green);
}

.training__step a img { width: 12px; height: 14px; }

.training__step a:hover { background: #F5F9F3; }

.training__aside { position: relative; padding-right: 40px; }

.training__aside > img {
    width: 100%;
    max-width: 488px;
    border-radius: 2px;
    display: block;
}

.training__floating {
    position: absolute;
    right: 0;
    bottom: 40px;
    width: 194px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(20, 30, 26, 0.16);
}

.training__floating p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.training__floating p::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bess-green);
    flex: none;
}

.training__floating p:last-child { margin: 0; }
.training__floating strong { color: var(--bess-green); font-weight: 700; }

/* ------------------------------------------- Global Service Footprint（需求 #18，静态点阵图） */
.footprint { padding: 100px 0; background: #F6F8F4; }

.footprint__map { margin-top: 64px; text-align: center; }
.footprint__map img { width: 100%; max-width: 908px; height: auto; }

.footprint__legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: #8A918A;
}

.footprint__legend li { display: flex; align-items: center; gap: 8px; }
.footprint__legend li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bess-green);
}

/* ------------------------------------------- Global Capability Map（Story 1.7，2026-08-10 设计变更） */
.capmap { padding: 100px 0; background: #F6F8F4; }

.capmap__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
}

.capmap__tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.capmap__tab {
    padding: 10px 22px;
    border: 1px solid #D5DBD3;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #4A534B;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.capmap__tab:hover { border-color: var(--bess-green); color: var(--bess-green); }

.capmap__tab.is-active {
    background: var(--bess-green);
    border-color: var(--bess-green);
    color: #fff;
}

.capmap__country {
    flex: none;
    min-width: 200px;
    padding: 10px 40px 10px 16px;
    border: 1px solid #D5DBD3;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A534B' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
    font-size: 14px;
    font-weight: 500;
    color: #4A534B;
    appearance: none;
    cursor: pointer;
}

.capmap__country:focus-visible { outline: 2px solid var(--bess-green); outline-offset: 2px; }

/* ------------------------------------------------- 地图舞台 */
.capmap__stage { position: relative; margin-top: 32px; }

.capmap__viewport {
    position: relative;
    aspect-ratio: 2752.8 / 1537.6;
    overflow: hidden;
    border: 1px solid #E3E8E1;
    border-radius: 16px;
    background: #fff;
    cursor: grab;
    touch-action: pan-y; /* 纵向仍滚动页面，横向拖拽平移地图（需求 #77） */
}

.capmap__viewport:active { cursor: grabbing; }

.capmap__canvas {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.capmap__img { width: 100%; height: 100%; display: block; user-select: none; }

.capmap__markers { position: absolute; inset: 0; }

.capmap__marker {
    position: absolute;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2.5px solid #fff;
    border-radius: 50%;
    background: var(--bess-green);
    box-shadow: 0 1px 6px rgba(20, 30, 26, 0.35);
    cursor: pointer;
    /* 反向缩放：地图放大时标记保持视觉尺寸（--capmap-inv-scale 由 JS 写入 canvas） */
    transform: translate(-50%, -50%) scale(var(--capmap-inv-scale, 1));
    transition: box-shadow .2s ease, transform .2s ease;
}

.capmap__marker::after {
    content: "";
    position: absolute;
    inset: -14px;
}

.capmap__marker:hover { box-shadow: 0 0 0 6px rgba(92, 148, 52, 0.25); }

.capmap__marker.is-selected {
    z-index: 2;
    box-shadow: 0 0 0 7px rgba(92, 148, 52, 0.35);
    transform: translate(-50%, -50%) scale(calc(var(--capmap-inv-scale, 1) * 1.55));
}

.capmap__marker--nodata { background: #B7BEB4; }

.capmap__marker[hidden] { display: none; }

/* 缩放按钮（左上角） */
.capmap__zoom {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capmap__zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #E3E8E1;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    color: #4A534B;
    box-shadow: 0 2px 10px rgba(20, 30, 26, 0.10);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.capmap__zoom-btn:hover { color: var(--bess-green); border-color: var(--bess-green); }

/* 图例（左下角） */
.capmap__legend {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 10px 16px;
    list-style: none;
    border: 1px solid #E3E8E1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 500;
    color: #6B746C;
}

.capmap__legend li { display: flex; align-items: center; gap: 8px; }

.capmap__dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(20, 30, 26, 0.25);
}

.capmap__dot--on { background: var(--bess-green); }
.capmap__dot--off { background: #B7BEB4; }

/* ------------------------------------------------- 国家信息卡 */
.capmap__card {
    position: absolute;
    z-index: 5;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 20px;
    border: 1px solid #EBEFE9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(20, 30, 26, 0.18);
}

.capmap__card[hidden] { display: none; }

.capmap__card-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #9AA39A;
    cursor: pointer;
}

.capmap__card-close:hover { color: #4A534B; background: #F0F3EE; }

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

.capmap__card-flag { font-size: 30px; line-height: 1; }

.capmap__card-title { display: flex; flex-direction: column; }
.capmap__card-title strong { font-size: 17px; color: #222A24; }
.capmap__card-title small { font-size: 12.5px; color: #8A918A; }

.capmap__card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #F0F3EE;
    font-size: 13.5px;
    color: #6B746C;
}

.capmap__card-row strong { color: #222A24; font-weight: 600; }

.capmap__card-row--total strong { color: var(--bess-green); font-size: 16px; }

.capmap__card-break { padding: 10px 0 4px; border-top: 1px solid #F0F3EE; }

.capmap__card-break h3,
.capmap__card-scope h3 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #8A918A;
}

.capmap__card-break ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.capmap__card-break li { display: flex; justify-content: space-between; font-size: 13px; color: #6B746C; }
.capmap__card-break b { color: #222A24; }

.capmap__card-scope { margin-top: 10px; padding-top: 12px; border-top: 1px solid #F0F3EE; }

.capmap__scopes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capmap__scopes li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4A534B;
}

.capmap__scopes li[hidden] { display: none; }

.capmap__scopes svg { width: 15px; height: 15px; color: var(--bess-green); flex: none; }

/* ------------------------------------------------- 统计行 */
.capmap__stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin: 48px 0 0;
    padding: 32px 0 0;
    list-style: none;
    border-top: 1px solid #E3E8E1;
}

.capmap__stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

.capmap__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--bess-green);
}

.capmap__stat-icon img,
.capmap__stat-icon svg { width: 40px; height: 40px; }

.capmap__stat-value { font-size: 32px; font-weight: 700; color: #222A24; line-height: 1; }

.capmap__stat-label { font-size: 13.5px; color: #6B746C; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
    .training__card { grid-template-columns: 1fr; padding: 48px 40px; }
    .training__content { max-width: none; }
    .training__aside { padding-right: 0; }
}

@media (max-width: 1024px) {
    .hero { min-height: 640px; }
    .hero__title { font-size: 56px; }
    .data-strip { margin-top: -100px; }
    .data-strip__card { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; margin: 0 24px; }
    .data-strip__item:nth-child(3) { border-left: none; }
    .capmap { padding: 72px 0; }
    .capmap__toolbar { flex-direction: column; align-items: stretch; margin-top: 40px; }
    .capmap__country { min-width: 0; }
    .capmap__stats { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
}

@media (max-width: 640px) {
    .hero { min-height: 560px; }
    .hero__inner { padding: 64px 24px 180px; }
    .hero__title { font-size: 40px; letter-spacing: -0.8px; }
    .hero__services { gap: 12px; }
    .hero__services li { gap: 12px; }
    .training { padding: 64px 0; }
    .training__card { padding: 40px 24px; border-radius: 16px; }
    .training__content h2 { font-size: 28px; }
    .training__steps { grid-template-columns: 1fr; }
    .training__floating { position: static; width: auto; margin-top: 16px; }
    .capmap { padding: 56px 0; }
    .capmap__tab { padding: 8px 16px; font-size: 13px; }
    .capmap__viewport { border-radius: 12px; }
    .capmap__legend { position: static; margin-top: 12px; border-radius: 12px; }
    .capmap__card { width: 280px; padding: 16px; }
    .capmap__stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; padding-top: 24px; }
    .capmap__stat-value { font-size: 26px; }
}
