/* ============================================================
   LogiMAT 2027 静态单页样式
   ------------------------------------------------------------
   版式约定：
   - 拉丁字符与数字使用自托管 Archivo（变量字体，latin 子集），
     中文回落到系统字体（PingFang SC / 微软雅黑），见 index.html 的
     --fp-font-family 令牌；
   - 字号 / 行高 / 阅读宽度 / 纵向节奏统一定义在下方
     body.lm-static-page 的类型令牌中，组件样式只引用令牌；
   - 颜色、间距、圆角、阴影继续使用 index.html 的设计系统变量。
   ============================================================ */

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo/archivo-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.lm-static-page {
    /* 类型角色：display（Hero）> title（面板/CTA）> section（小节）
       > card（图表/卡片标题）> lead（导语）> body > small > meta */
    --lm-type-display: clamp(2rem, 1.6rem + 1.7vw, 3.25rem);       /* 32 → 52 */
    --lm-type-title: clamp(1.625rem, 1.4rem + 0.95vw, 2.25rem);    /* 26 → 36 */
    --lm-type-section: clamp(1.25rem, 1.12rem + 0.5vw, 1.625rem);  /* 20 → 26 */
    --lm-type-card: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);    /* 18 → 20 */
    --lm-type-lead: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);        /* 16 → 18 */
    --lm-type-body: 1rem;
    --lm-type-small: 0.9375rem;  /* 15 */
    --lm-type-meta: 0.8125rem;   /* 13 */

    /* 阅读宽度：导语约 32–38 个汉字 / 65–75 个拉丁字符 */
    --lm-measure-lead: 34em;
    --lm-measure-body: 40em;

    /* 纵向节奏：head 用于“标题→自己的内容”，block 用于“无关区块之间” */
    --lm-section-y: clamp(56px, 6.5vw, 96px);
    --lm-head-gap: clamp(24px, 3vw, 40px);
    --lm-block-gap: clamp(40px, 4.6vw, 64px);

    line-height: 1.7;
}

html[lang="en"] body.lm-static-page {
    line-height: 1.65;
}

/* 文本选中与滚动条：浏览器自带部分也跟随页面配色 */
body.lm-static-page ::selection {
    background: rgba(109, 40, 217, 0.18);
    color: inherit;
}

html {
    scrollbar-color: #a78bfa #f2f0f7;
    scrollbar-width: thin;
}

/* 键盘焦点：统一可见的 focus ring，深色区块使用白色描边 */
body.lm-static-page a:focus-visible,
body.lm-static-page button:focus-visible {
    outline: 3px solid rgba(109, 40, 217, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

body.lm-static-page .site-header a:focus-visible,
body.lm-static-page .site-header button:focus-visible,
body.lm-static-page .lm-hero a:focus-visible,
body.lm-static-page .lm-cta a:focus-visible {
    outline-color: #ffffff;
}

/* 页头 Mega Menu：靠右的三项改为右对齐，避免 780px 面板在 1440/1280 下溢出视口。
   --mm-shift / --mm-arrow-x 由 main.js 在悬停时计算：面板贴到视口边缘时
   水平平移，并让小箭头始终指向触发它的菜单项。
   断点取 1051px 而非 992px —— 1050px 以下 .main-navigation 是抽屉，
   .megamenu 为 static（index.css），不能套用这里的绝对定位位移。 */
@media (min-width: 1051px) {
    .main-navigation .menu-item .megamenu {
        max-width: calc(100vw - 48px);
        transform: translateX(calc(-50% + var(--mm-shift, 0px)));
    }

    .main-navigation .menu-item:nth-last-child(-n + 3) .megamenu {
        left: auto;
        right: 0;
        transform: translateX(var(--mm-shift, 0px));
    }

    .main-navigation .menu-item .megamenu::before {
        left: var(--mm-arrow-x, 50%);
        transform: translateX(-50%);
    }
}

/* ---------- Hero ---------- */
.lm-hero {
    position: relative;
    z-index: 0;
    /* 背景图（WebP，2.0MB PNG → 117KB）；深色底作为兜底，
       图片未加载时不会白底白字 */
    background-color: #020022;
    background-image: url("../images/logimat/slide01_pic01.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--fp-color-text-inverse);
    padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* .lm-hero 是 flex 容器，.container 作为 flex item 会按内容宽度撑开；
   显式给 100% 宽度，避免窄屏（<460px）时整块内容被视口裁切。 */
.lm-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.lm-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(90, 48, 232, 0.45) 0%, rgba(2, 0, 34, 0.9) 70%);
    pointer-events: none;
}

.lm-hero__content {
    max-width: 46rem;
    animation: lmFadeUp 0.9s ease-out both;
}

@keyframes lmFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lm-hero__head {
    display: flex;
    align-items: center;
    gap: var(--fp-space-md);
    flex-wrap: wrap;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.lm-hero__logos {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
}

.lm-hero__logo {
    font-weight: 700;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.lm-hero__logo--logimat { color: var(--fp-color-text-inverse); }
/* FAIRPLUS 字标在深色照片上改用 accent，保证可读 */
.lm-hero__logo--fairplus { color: var(--fp-color-accent); }

.lm-hero__logo-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    font-weight: 400;
    line-height: 1;
}

.lm-hero__year {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    color: var(--fp-color-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.lm-hero__title {
    font-size: var(--lm-type-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: clamp(12px, 1.6vw, 20px);
    text-wrap: balance;
    text-shadow: 0 2px 20px rgba(2, 0, 34, 0.35);
}

html[lang="en"] .lm-hero__title {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lm-hero__subtitle {
    font-size: var(--lm-type-lead);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 36em;
    margin-bottom: clamp(16px, 2vw, 24px);
    text-wrap: pretty;
}

.lm-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(24px, 3vw, 32px);
    font-size: var(--lm-type-small);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.lm-hero__meta-sep { color: var(--fp-color-accent); }

.lm-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.lm-btn-primary,
.lm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border-radius: var(--fp-radius-md);
    font-size: var(--lm-type-small);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lm-btn-primary {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    color: var(--fp-color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.lm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--fp-shadow-lg);
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%);
}

.lm-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fp-color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.lm-btn-secondary:hover { background: var(--fp-color-text-inverse); color: var(--fp-color-bg-dark); }

.lm-btn-primary:active,
.lm-btn-secondary:active { transform: translateY(0); }

/* ---------- 语言切换 ---------- */
.lm-langbar__switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: var(--fp-space-sm);
}

.lm-lang-btn {
    background: transparent;
    color: var(--fp-color-text-secondary);
    border: 1px solid var(--fp-color-border-dark);
    border-radius: var(--fp-radius-full);
    padding: 5px 14px;
    min-height: 32px;
    font-family: inherit;
    font-size: var(--lm-type-meta);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color var(--fp-transition-base), border-color var(--fp-transition-base), background-color var(--fp-transition-base);
}

.lm-lang-btn:hover {
    color: var(--fp-color-primary);
    border-color: var(--fp-color-primary-light);
}

.lm-lang-btn.is-active {
    background: var(--fp-color-primary);
    border-color: var(--fp-color-primary);
    color: var(--fp-color-text-inverse);
}

/* ---------- Tab 导航（吸顶时停在页头下方） ---------- */
.lm-tabs {
    background: var(--fp-color-bg);
    border-bottom: 1px solid var(--fp-color-border);
    position: sticky;
    top: var(--header-h, 96px);
    z-index: 50;
}

.lm-tabs__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fp-space-lg);
    flex-wrap: wrap;
}

.lm-tabs__list {
    display: flex;
    gap: var(--fp-space-xs);
    overflow-x: auto;
    min-width: 0;
    padding: var(--fp-space-sm) 0 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}

.lm-tabs__list::-webkit-scrollbar { display: none; }

.lm-tab {
    position: relative;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 10px 18px 14px;
    min-height: 44px;
    font-family: inherit;
    font-size: var(--lm-type-small);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    /* 配合 .lm-tabs__list 的 scroll-snap-type，窄屏横向滚动时吸附到居中位置 */
    scroll-snap-align: center;
    color: var(--fp-color-text-secondary);
    cursor: pointer;
    transition: color var(--fp-transition-base);
    white-space: nowrap;
    scroll-snap-align: start;
}

.lm-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-gradient-secondary);
    transition: width var(--fp-transition-base), left var(--fp-transition-base);
}

.lm-tab:hover { color: var(--fp-color-primary); }

.lm-tab.is-active { color: var(--fp-color-primary); }

.lm-tab.is-active::after { width: 100%; left: 0; }

/* ---------- Tab 面板 ---------- */
.lm-panel {
    position: relative;
    z-index: 1;
    display: none;
    padding: var(--lm-section-y) 0;
    animation: lmPanelIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    /* 锚点定位：留出吸顶页头 + Tab 条的高度 */
    scroll-margin-top: calc(var(--header-h, 96px) + 96px);
}

.lm-panel.is-active { display: block; }

@keyframes lmPanelIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lm-panel:nth-of-type(even) { background: var(--fp-color-bg-alt); }
.lm-panel:nth-of-type(odd)  { background: var(--fp-color-bg); }

.lm-panel__head {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto var(--lm-head-gap);
}

.lm-panel__title {
    font-size: var(--lm-type-title);
    font-weight: 700;
    color: var(--fp-color-text);
    line-height: 1.35;
    margin-bottom: 12px;
    text-wrap: balance;
}

html[lang="en"] .lm-panel__title {
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lm-panel__subtitle {
    font-size: var(--lm-type-lead);
    line-height: 1.7;
    color: var(--fp-color-text-secondary);
    max-width: var(--lm-measure-lead);
    margin: 0 auto;
    text-wrap: pretty;
}

.lm-subtitle {
    font-size: var(--lm-type-section);
    font-weight: 600;
    color: var(--fp-color-text);
    line-height: 1.4;
    text-align: center;
    margin: clamp(56px, 6vw, 72px) 0 24px;
    text-wrap: balance;
}

/* ---------- 五大板块 ---------- */
.lm-grid { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.lm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.lm-grid--5 { grid-template-columns: repeat(5, 1fr); }

.lm-module {
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    padding: clamp(20px, 2vw, 28px) var(--fp-space-md);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lm-module:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-lg);
    border-color: var(--fp-color-primary-light);
}

.lm-module__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-color-primary);
    color: var(--fp-color-text-inverse);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.lm-module__name {
    font-weight: 600;
    font-size: var(--lm-type-body);
    line-height: 1.5;
    color: var(--fp-color-text);
}

/* ---------- 双展介绍 ---------- */
.lm-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 24px);
    margin-top: var(--lm-block-gap);
}

.lm-dual__card {
    border-radius: var(--fp-radius-lg);
    padding: clamp(24px, 3vw, 36px);
    color: var(--fp-color-text-inverse);
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-dual__card:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-lg); }

.lm-dual__card--logimat  { background: linear-gradient(199deg, #020022 0%, #50396D 100%); }
/* 亮紫端压暗一档，保证 15px 白字 ≥ 4.5:1 */
.lm-dual__card--fairplus { background: linear-gradient(135deg, #5A30E8, #7C3AED); }

.lm-dual__brand {
    display: block;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: var(--fp-space-md);
}

.lm-dual__list { list-style: none; padding: 0; margin: 0; }

.lm-dual__list li {
    position: relative;
    padding-left: 22px;
    font-size: var(--lm-type-small);
    line-height: 1.7;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.lm-dual__list li:last-child { margin-bottom: 0; }

.lm-dual__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-color-accent);
}

/* ---------- 统计数据 ---------- */
.lm-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 24px);
    margin-bottom: clamp(24px, 3vw, 32px);
}

.lm-stats--4 { grid-template-columns: repeat(4, 1fr); }

.lm-stat {
    position: relative;
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
    text-align: center;
    padding: clamp(24px, 2.6vw, 32px) clamp(16px, 2vw, 24px);
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-stat:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-md); }

.lm-stat--compact { padding: clamp(20px, 2.2vw, 24px); }

/* 统计卡顶部品牌色条 + 数字渐变（--stat-a / --stat-b 控制配色） */
.lm-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
    background: linear-gradient(90deg, var(--stat-a, var(--fp-color-primary)), var(--stat-b, #a78bfa));
}

/* 数字用深一档的色阶，渐变两端都满足大号文字 ≥ 3:1 对比 */
.lm-stats--4 .lm-stat:nth-child(1) { --stat-a: #6d28d9; --stat-b: #7c3aed; }
.lm-stats--4 .lm-stat:nth-child(2) { --stat-a: #047857; --stat-b: #059669; }
.lm-stats--4 .lm-stat:nth-child(3) { --stat-a: #92400e; --stat-b: #b45309; }
.lm-stats--4 .lm-stat:nth-child(4) { --stat-a: #1d4ed8; --stat-b: #2563eb; }

.lm-stat__value {
    font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--fp-color-primary);
    background: linear-gradient(90deg, var(--stat-a, var(--fp-color-primary)), var(--stat-b, #7c3aed));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.lm-stat__label {
    font-size: var(--lm-type-small);
    line-height: 1.5;
    color: var(--fp-color-text-secondary);
    font-weight: 500;
}

.lm-stat__hint {
    font-size: var(--lm-type-meta);
    line-height: 1.5;
    color: var(--fp-color-text-secondary);
    margin-top: 6px;
}

.lm-stat__unit {
    font-size: 0.5em;
    font-weight: 600;
    margin-left: 2px;
}

/* ---------- 案例卡片（品牌色变体） ---------- */
.lm-case {
    position: relative;
    overflow: hidden;
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
    padding: clamp(24px, 2.6vw, 32px) clamp(18px, 2.2vw, 24px);
    text-align: center;
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-case:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-md); }

.lm-case__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.lm-case__icon { width: 34px; height: 18px; flex: none; }

.lm-case__logo {
    display: block;
    font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--fp-color-primary);
}

.lm-case__desc {
    font-size: var(--lm-type-small);
    line-height: 1.65;
    color: var(--fp-color-text-secondary);
    max-width: 26em;
    margin: 0 auto;
}

/* Amazon — 深蓝黑 + 橙色 smile */
.lm-case--amazon {
    background: linear-gradient(135deg, #131a22 0%, #232f3e 55%, #37475a 100%);
    border-color: rgba(255, 153, 0, .35);
}
.lm-case--amazon .lm-case__logo { color: #ff9900; }
.lm-case--amazon .lm-case__desc { color: rgba(255, 255, 255, .88); }
.lm-case--amazon:hover { box-shadow: 0 12px 26px rgba(255, 153, 0, .28); }

/* DHL — 黄底红字 */
.lm-case--dhl {
    background: linear-gradient(135deg, #ffd100 0%, #ffcc00 45%, #ffe45e 100%);
    border-color: rgba(212, 5, 17, .25);
}
.lm-case--dhl .lm-case__logo { color: #d40511; }
.lm-case--dhl .lm-case__desc { color: #7a1f1f; }
.lm-case--dhl:hover { box-shadow: 0 12px 26px rgba(255, 204, 0, .35); }

/* Cainiao — 菜鸟橙渐变（压深到白字 ≥ 4.5:1，原 #ff6a00 仅 2.87:1） */
.lm-case--cainiao {
    background: linear-gradient(135deg, #c2410c 0%, #b45309 55%, #9a3412 100%);
    border-color: rgba(194, 65, 12, .45);
}
.lm-case--cainiao .lm-case__logo { color: #fff; }
.lm-case--cainiao .lm-case__desc { color: rgba(255, 255, 255, .95); }
.lm-case--cainiao:hover { box-shadow: 0 12px 26px rgba(154, 52, 18, .35); }

/* ---------- 条形图 ---------- */
.lm-chart-block {
    margin-top: clamp(32px, 4vw, 44px);
    padding: clamp(20px, 2.6vw, 32px);
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
}

.lm-chart-block__title {
    font-size: var(--lm-type-card);
    font-weight: 600;
    line-height: 1.4;
    color: var(--fp-color-text);
    margin-bottom: clamp(18px, 2.2vw, 24px);
    text-align: center;
    text-wrap: balance;
}

.lm-chart-block__title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: 0.08em;
    background: linear-gradient(135deg, #6d28d9, #6366f1);
}

.lm-bars { display: flex; flex-direction: column; gap: 18px; }

.lm-bar {
    display: grid;
    grid-template-columns: 88px 1fr 104px;
    align-items: center;
    gap: 14px;
}

.lm-bar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--lm-type-small);
    font-weight: 600;
    color: var(--fp-color-text);
}

.lm-bar__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: linear-gradient(135deg, var(--bar-a, #7c3aed), var(--bar-b, #c084fc));
}

.lm-bar__track {
    background: var(--fp-color-bg-alt);
    border-radius: var(--fp-radius-full);
    height: 20px;
    overflow: hidden;
}

.lm-bar:nth-child(1) { --bar-a: #7c3aed; --bar-b: #c084fc; }
.lm-bar:nth-child(2) { --bar-a: #2563eb; --bar-b: #38bdf8; }
.lm-bar:nth-child(3) { --bar-a: #059669; --bar-b: #34d399; }

.lm-bar__fill {
    height: 100%;
    width: 0;
    border-radius: var(--fp-radius-full);
    background: linear-gradient(90deg, var(--bar-a, #7c3aed), var(--bar-b, #c084fc));
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-bar__value {
    font-size: var(--lm-type-small);
    font-weight: 600;
    color: var(--fp-color-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- 演示区两大赛道 ---------- */
.lm-quota { text-align: center; margin-bottom: clamp(24px, 3vw, 32px); }

.lm-quota__badge {
    display: inline-block;
    background: var(--fp-color-primary);
    color: var(--fp-color-text-inverse);
    border-radius: var(--fp-radius-full);
    padding: 10px 28px;
    font-weight: 600;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.lm-track { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }

.lm-track__card {
    border-radius: var(--fp-radius-lg);
    padding: clamp(24px, 3vw, 36px);
    color: var(--fp-color-text-inverse);
    position: relative;
    overflow: hidden;
}

.lm-track__card--a { background: linear-gradient(199deg, #020022 0%, #50396D 100%); }
/* 与双展卡一致：亮紫端压暗，保证白字对比 */
.lm-track__card--b { background: linear-gradient(135deg, #5A30E8, #7C3AED); }

.lm-track__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--fp-radius-full);
    padding: 5px 14px;
    font-size: var(--lm-type-meta);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.lm-track__list { list-style: none; padding: 0; margin: 0; }

.lm-track__list li {
    position: relative;
    padding-left: 28px;
    font-size: var(--lm-type-small);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 10px;
}

.lm-track__list li:last-child { margin-bottom: 0; }

.lm-track__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fp-color-accent);
    font-weight: 700;
}

/* ---------- 参展理由 ---------- */
.lm-reasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
    margin-top: 0;
}

.lm-reason {
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    padding: clamp(22px, 2.4vw, 28px) var(--fp-space-md);
    text-align: center;
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-reason:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-lg); }

.lm-reason__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-color-primary);
    color: var(--fp-color-text-inverse);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.lm-reason__title {
    font-weight: 600;
    font-size: var(--lm-type-body);
    line-height: 1.5;
    color: var(--fp-color-text);
    margin-bottom: 4px;
}

.lm-reason__desc {
    font-size: var(--lm-type-meta);
    line-height: 1.6;
    color: var(--fp-color-text-secondary);
}

/* ---------- 图表悬浮提示 ---------- */
.lm-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: var(--fp-color-bg-dark);
    color: var(--fp-color-text-inverse);
    padding: var(--fp-space-sm) var(--fp-space-md);
    border-radius: var(--fp-radius-md);
    font-size: var(--lm-type-meta);
    box-shadow: var(--fp-shadow-lg);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--fp-transition-fast), transform var(--fp-transition-fast);
    white-space: nowrap;
    max-width: 280px;
}

.lm-tooltip.is-visible { opacity: 1; transform: translateY(0); }

.lm-tooltip__name { font-weight: 600; }
.lm-tooltip__val { font-weight: 600; color: var(--fp-color-accent); margin-left: 6px; }

/* ---------- 环形图 ---------- */
.lm-donut-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 24px);
    margin-bottom: var(--lm-block-gap);
}

.lm-donut-card {
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
    padding: clamp(20px, 2.6vw, 32px);
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-donut-card:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-md); }

.lm-donut-card__title {
    font-size: var(--lm-type-card);
    font-weight: 600;
    line-height: 1.4;
    color: var(--fp-color-text);
    text-align: center;
    text-wrap: balance;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.lm-donut {
    width: 200px;
    height: 200px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-color-bg);
    position: relative;
    margin: 0 auto clamp(16px, 2vw, 24px);
}

.lm-donut svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 内孔：必须与 SVG 扇区的内沿半径一致。
   扇区 viewBox 为 "-14 -14 128 128"（见 logimat-2027.js initDonuts），
   容器 200px → 缩放比 200/128 = 1.5625，
   内沿半径 = (50 - 28/2) × 1.5625 = 56.25px  → inset = 100 - 56.25 = 43.75px */
.lm-donut::after {
    content: "";
    position: absolute;
    inset: 43.75px;
    background: var(--fp-color-bg);
    border-radius: var(--fp-radius-full);
    pointer-events: none;
}

.lm-donut__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 700;
    color: var(--fp-color-text);
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* SVG 扇区：悬浮聚焦 + 绘制动画 */
.lm-donut__seg {
    cursor: pointer;
    pointer-events: stroke;
    transition: opacity var(--fp-transition-base), filter var(--fp-transition-base), stroke-dasharray 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-donut--focus .lm-donut__seg { opacity: 0.5; }
.lm-donut--focus .lm-donut__seg.is-active { opacity: 1; filter: brightness(1.12); }

.lm-donut-legend { list-style: none; padding: 0; margin: 0; }

.lm-donut-legend li {
    display: flex;
    align-items: center;
    gap: var(--fp-space-sm);
    font-size: var(--lm-type-small);
    line-height: 1.6;
    color: var(--fp-color-text-secondary);
    margin-bottom: 4px;
    padding: 2px 6px;
    margin-left: -6px;
    border-radius: var(--fp-radius-md);
    transition: background var(--fp-transition-fast);
}

.lm-donut-legend li.is-active { background: var(--fp-color-bg-alt); }

.lm-donut-legend__dot { width: 10px; height: 10px; border-radius: var(--fp-radius-full); flex-shrink: 0; }
.lm-donut-legend__pct {
    margin-left: auto;
    font-weight: 600;
    color: var(--fp-color-text);
    font-variant-numeric: tabular-nums;
}

/* ---------- 行业 TOP ---------- */
.lm-industry {
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
    padding: clamp(20px, 2.6vw, 32px);
    margin-bottom: var(--lm-block-gap);
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-industry:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-md); }

.lm-industry__title {
    font-size: var(--lm-type-card);
    font-weight: 600;
    line-height: 1.4;
    color: var(--fp-color-text);
    text-align: center;
    text-wrap: balance;
    margin-bottom: clamp(18px, 2.2vw, 24px);
}

.lm-industry__list { display: flex; flex-direction: column; gap: 14px; }

.lm-industry__item {
    display: grid;
    grid-template-columns: 132px 1fr 68px;
    align-items: center;
    gap: 14px;
    min-height: 44px;
}

.lm-industry__name {
    font-weight: 500;
    font-size: var(--lm-type-small);
    color: var(--fp-color-text);
}

.lm-industry__track {
    background: var(--fp-color-bg-alt);
    border-radius: var(--fp-radius-full);
    height: 16px;
    overflow: hidden;
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-industry__item:hover .lm-industry__track { transform: scaleY(1.25); box-shadow: var(--fp-shadow-sm); }
.lm-industry__item:hover .lm-industry__fill { filter: brightness(1.1); }

.lm-industry__fill {
    height: 100%;
    width: 0;
    background: var(--fp-gradient-primary);
    border-radius: var(--fp-radius-full);
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-industry__pct {
    font-weight: 600;
    font-size: var(--lm-type-small);
    color: var(--fp-color-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- 参展商证言 ---------- */
.lm-testimonial {
    background: var(--fp-color-bg-dark);
    color: var(--fp-color-text-inverse);
    border-radius: var(--fp-radius-lg);
    padding: clamp(28px, 3.4vw, 40px);
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
}

.lm-testimonial__quote {
    font-size: var(--lm-type-lead);
    line-height: 1.7;
    margin-bottom: 14px;
    text-wrap: pretty;
}

.lm-testimonial__author {
    color: var(--fp-color-accent);
    font-weight: 600;
    font-size: var(--lm-type-small);
}

/* ---------- 国际买家 ---------- */
.lm-club { text-align: center; margin-bottom: var(--lm-head-gap); }

.lm-club__badge {
    display: inline-block;
    background: linear-gradient(135deg, #5A30E8, #7C3AED);
    color: var(--fp-color-text-inverse);
    border-radius: var(--fp-radius-full);
    padding: 10px 28px;
    font-weight: 600;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: var(--fp-space-md);
}

.lm-club__desc {
    color: var(--fp-color-text-secondary);
    font-size: var(--lm-type-body);
    line-height: 1.7;
    max-width: var(--lm-measure-lead);
    margin-left: auto;
    margin-right: auto;
}

.lm-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }

.lm-benefit {
    background: var(--fp-color-bg);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-sm);
    text-align: center;
    padding: clamp(22px, 2.4vw, 28px) var(--fp-space-md);
    transition: transform var(--fp-transition-base), box-shadow var(--fp-transition-base);
}

.lm-benefit:hover { transform: translateY(-4px); box-shadow: var(--fp-shadow-md); }

.lm-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--fp-radius-full);
    background: var(--fp-color-bg-alt);
    color: var(--fp-color-primary);
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.lm-benefit__title {
    font-weight: 600;
    font-size: var(--lm-type-body);
    line-height: 1.5;
    color: var(--fp-color-text);
    margin-bottom: 4px;
}

.lm-benefit__desc {
    font-size: var(--lm-type-meta);
    line-height: 1.6;
    color: var(--fp-color-text-secondary);
}

/* ---------- CTA 结尾 ---------- */
.lm-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* 背景图（WebP，2.1MB PNG → 185KB），深色底兜底 */
    background-color: #020022;
    background-image: url("../images/logimat/slide08_pic01.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--fp-color-text-inverse);
    padding: clamp(56px, 7vw, 96px) 0;
    text-align: center;
}

/* CTA 专属背景遮罩 —— 不复用 .lm-hero__overlay,避免定位上下文/样式联动隐患 */
/* 双层遮罩:底层竖向渐变把背景图整体染成页面主色(紫 #5A30E8 + 深蓝 #020022),上层保留紫色光晕 */
.lm-cta__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 0, 34, 0.78) 0%, rgba(90, 48, 232, 0.58) 45%, rgba(2, 0, 34, 0.85) 100%),
        radial-gradient(ellipse at 70% 20%, rgba(90, 48, 232, 0.45) 0%, rgba(2, 0, 34, 0.9) 70%);
    pointer-events: none;
}

.lm-cta__title {
    font-size: var(--lm-type-title);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    text-wrap: balance;
}

html[lang="en"] .lm-cta__title {
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lm-cta__subtitle {
    font-size: var(--lm-type-lead);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
}

.lm-cta__meta {
    max-width: var(--lm-measure-lead);
    margin: 0 auto 20px;
    color: var(--fp-color-accent);
    font-weight: 600;
    font-size: var(--lm-type-small);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.lm-cta__note {
    font-size: var(--lm-type-meta);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: var(--lm-measure-body);
    margin: 0 auto var(--fp-space-xl);
}

.lm-cta__form {
    max-width: 40rem;
    margin: 0 auto var(--fp-space-xl);
    background: var(--fp-color-bg);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-xl);
    padding: clamp(24px, 3vw, 32px);
    text-align: left;
}

.lm-cta__form-title {
    font-size: var(--lm-type-card);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--fp-color-text);
    margin: 0 0 20px;
}

/* 参展 / 买家咨询 联系信息 */
.lm-cta__contact-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fp-color-text);
    margin-bottom: 6px;
}

.lm-cta__contact-email {
    font-size: var(--lm-type-small);
    line-height: 1.6;
    color: var(--fp-color-text-secondary);
    margin-bottom: 4px;
}

.lm-cta__contact-phone {
    font-size: var(--lm-type-small);
    line-height: 1.6;
    color: var(--fp-color-text-secondary);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

/* ---------- 滚动入场动画 ---------- */
.lm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.lm-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 页脚与侧栏的排版微调 ---------- */
body.lm-static-page .footer-date {
    font-size: var(--lm-type-body);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

body.lm-static-page .footer-section h4 {
    font-size: var(--lm-type-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
}

body.lm-static-page .footer-links a {
    font-size: var(--lm-type-meta);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
}

body.lm-static-page .footer-contact .contact-item,
body.lm-static-page .footer-contact .contact-org {
    font-size: var(--lm-type-meta);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

body.lm-static-page .footer-copyright,
body.lm-static-page .footer-copyright a,
body.lm-static-page .footer-bottom-links a {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.66);
}

body.lm-static-page .footer-copyright a {
    white-space: nowrap;
}

body.lm-static-page .fp-sidebar-item span {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .lm-grid--5 { grid-template-columns: repeat(3, 1fr); }
    .lm-grid--4, .lm-stats--4, .lm-reasons, .lm-benefits { grid-template-columns: repeat(2, 1fr); }
    .lm-track, .lm-dual, .lm-donut-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .lm-hero {
        min-height: 420px;
        padding: 48px 0 40px;
    }

    .lm-hero__title { font-size: clamp(1.75rem, 1.35rem + 2.4vw, 2rem); }
    .lm-hero__subtitle { font-size: 1rem; }
    .lm-hero__meta { font-size: var(--lm-type-meta); }

    /* Tab 与语言切换同排：Tab 区横向滚动，语言切换常驻 */
    .lm-tabs__bar {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .lm-tabs__list {
        flex: 1 1 auto;
        gap: 2px;
        padding: 4px 0 0;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    }

    .lm-tab {
        padding: 8px 12px 12px;
        font-size: var(--lm-type-meta);
    }

    .lm-langbar__switcher {
        margin-left: 0;
        flex: none;
        padding-right: 0;
    }

    .lm-lang-btn { padding: 4px 12px; }

    .lm-panel { scroll-margin-top: calc(var(--header-h, 72px) + 84px); }

    .lm-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .lm-grid--3, .lm-grid--4, .lm-stats, .lm-stats--4, .lm-reasons, .lm-benefits { grid-template-columns: 1fr; }
    .lm-stats { grid-template-columns: 1fr 1fr; }

    .lm-bar { grid-template-columns: 64px 1fr 84px; gap: 10px; }
    .lm-bar__label, .lm-bar__value { font-size: var(--lm-type-meta); }

    .lm-industry__item { grid-template-columns: 104px 1fr 56px; gap: 10px; }
    .lm-industry__name, .lm-industry__pct { font-size: var(--lm-type-meta); }

    .lm-donut { width: 176px; height: 176px; }
    /* 移动端容器 176px → 缩放比 176/128 = 1.375，内沿半径 49.5px → inset 38.5px */
    .lm-donut::after { inset: 38.5px; }
}

@media (max-width: 480px) {
    .lm-hero { min-height: 380px; }
    .lm-hero__logos { gap: 8px; }
    .lm-hero__cta { gap: 10px; }
    .lm-hero__cta .lm-btn-primary, .lm-hero__cta .lm-btn-secondary,
    .lm-cta .lm-btn-primary, .lm-cta .lm-btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    .lm-cta__form { padding: 20px; }

    /* 5 个 Tab 需要完整的 342px：把语言切换拆到独立一行，
       否则 Tab 窗口只剩 ~231px，只能露出 2.5 个入口 */
    .lm-tabs__bar { flex-wrap: wrap; row-gap: 4px; }
    .lm-tabs__list { flex: 1 1 100%; order: 1; }
    .lm-langbar__switcher { order: 2; margin-left: auto; margin-right: 0; }
    .lm-lang-btn { padding: 4px 12px; min-height: 36px; }
    .lm-panel { scroll-margin-top: calc(var(--header-h, 72px) + 118px); }

    /* 概览的 5 个 2–4 字短标签卡：压缩纵向密度 */
    .lm-grid { gap: 12px; }
    .lm-module { padding: 16px 10px; }
    .lm-module__icon { width: 44px; height: 44px; margin-bottom: 8px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
    .lm-hero__content,
    .lm-panel { animation: none; }
    .lm-reveal { opacity: 1; transform: none; transition: none; }
    .lm-bar__fill, .lm-industry__fill, .lm-donut__seg { transition: none; }
    html { scroll-behavior: auto; }
}
