:root {
    --fx-blue: #2878f5;
    --fx-blue-deep: #0f54d8;
    --fx-cyan: #31c8f5;
    --fx-orange: #ff9f2f;
    --fx-ink: #14213d;
    --fx-muted: #6d7b95;
    --fx-line: #e3ebf7;
    --fx-soft: #f4f8ff;
    --fx-navy: #091a3e;
    --fx-shadow: 0 24px 70px rgba(31, 78, 153, .14);
}

html { scroll-behavior: smooth; }

body.wx-function-page {
    min-width: 0;
    overflow-x: clip;
    color: var(--fx-ink);
    background: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wx-function-page *,
.wx-function-page *::before,
.wx-function-page *::after { box-sizing: border-box; }

.fx-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Header refinements */
.wx-function-page #nav { position: sticky; top: 0; z-index: 1100; }
.wx-function-page #nav .pull-right > a.item[href="/gongneng/"] { color: #fff; }
.wx-function-page #nav .pull-right > a.item[href="/gongneng/"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}
.wx-function-page #nav.wx-nav--scrolled .pull-right > a.item[href="/gongneng/"] { color: var(--fx-blue); }
.wx-function-page #nav.wx-nav--scrolled .pull-right > a.item[href="/gongneng/"]::after { background: var(--fx-blue); }
.fx-nav-toggle { display: none; }

/* Hero */
.fx-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 16%, rgba(121, 203, 255, .38), transparent 31%),
        radial-gradient(circle at 8% 92%, rgba(63, 195, 255, .20), transparent 27%),
        linear-gradient(125deg, #0d51ce 0%, #2374ef 52%, #3194fb 100%);
}
.fx-hero::before,
.fx-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}
.fx-hero::before { width: 620px; height: 620px; top: -350px; left: -120px; }
.fx-hero::after { width: 820px; height: 820px; right: -520px; bottom: -560px; }
.fx-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .93fr 1.07fr;
    gap: 70px;
    align-items: center;
    min-height: 650px;
    padding: 70px 0 100px;
}
.fx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}
.fx-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--fx-orange); }
.fx-hero h1 { margin: 0; color: #fff; font-size: 54px; line-height: 1.18; letter-spacing: -2px; font-weight: 800; }
.fx-hero h1 em { color: #ffcb72; font-style: normal; }
.fx-hero-copy > p { max-width: 585px; margin: 24px 0 0; color: rgba(255, 255, 255, .78); font-size: 18px; line-height: 1.9; }
.fx-hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.fx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fx-btn:hover { color: #fff; transform: translateY(-2px); }
.fx-btn--primary { border-color: var(--fx-orange); background: var(--fx-orange); box-shadow: 0 14px 30px rgba(255, 159, 47, .28); }
.fx-btn--ghost { background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.fx-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.fx-hero-metrics { display: flex; gap: 38px; margin-top: 36px; }
.fx-hero-metrics strong { display: block; color: #fff; font-size: 25px; line-height: 1; }
.fx-hero-metrics span { display: block; margin-top: 9px; color: rgba(255,255,255,.66); font-size: 12px; }
.fx-hero-visual { position: relative; min-height: 425px; }
.fx-dashboard {
    position: absolute;
    top: 28px;
    right: 0;
    width: 95%;
    padding: 22px 22px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 24px;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 34px 80px rgba(7, 44, 124, .32);
    backdrop-filter: blur(14px);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.fx-dashboard-top { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.fx-dashboard-top span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.fx-dashboard-top span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #57e39d; box-shadow: 0 0 0 5px rgba(87,227,157,.13); }
.fx-dashboard-top small { color: rgba(255,255,255,.65); font-size: 11px; }
.fx-dashboard-image { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 8px 20px 0; border-radius: 15px; background: #fff; overflow: hidden; }
.fx-dashboard-image img { width: 100%; height: 295px; object-fit: contain; }
.fx-float-card {
    position: absolute;
    z-index: 3;
    min-width: 138px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    color: var(--fx-ink);
    box-shadow: 0 16px 35px rgba(9,54,137,.2);
}
.fx-float-card b { display: block; color: var(--fx-blue); font-size: 20px; }
.fx-float-card span { display: block; margin-top: 4px; color: var(--fx-muted); font-size: 11px; }
.fx-float-card--one { top: 5px; right: 18px; }
.fx-float-card--two { left: -18px; bottom: 24px; }
.fx-float-card--three { right: -16px; bottom: -4px; }

/* Process overview */
.fx-flow-wrap { position: relative; z-index: 4; margin-top: -52px; }
.fx-flow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 16px;
    border: 1px solid rgba(219, 230, 247, .9);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--fx-shadow);
}
.fx-flow li { position: relative; display: flex; min-height: 82px; align-items: center; justify-content: center; gap: 11px; color: #45536c; }
.fx-flow li + li::before { content: ""; position: absolute; left: 0; width: 1px; height: 34px; background: var(--fx-line); }
.fx-flow b { display: flex; width: 35px; height: 35px; align-items: center; justify-content: center; border-radius: 11px; background: #edf5ff; color: var(--fx-blue); font-size: 12px; }
.fx-flow strong { font-size: 15px; font-weight: 700; }

/* Shared sections */
.fx-section { padding: 108px 0; }
.fx-section--soft { background: var(--fx-soft); }
.fx-section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.fx-eyebrow { display: block; margin-bottom: 14px; color: var(--fx-blue); font-size: 12px; font-weight: 800; letter-spacing: 3px; }
.fx-section-head h2 { margin: 0; color: var(--fx-ink); font-size: 38px; line-height: 1.35; font-weight: 800; }
.fx-section-head p { margin: 16px 0 0; color: var(--fx-muted); font-size: 16px; line-height: 1.85; }
.fx-anchor-wrap { position: sticky; top: 98px; z-index: 900; padding: 14px 0; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); scrollbar-width: none; }
.fx-anchor-wrap::-webkit-scrollbar { display: none; }
.fx-anchor-nav { display: flex; justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--fx-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(24,65,130,.08); }
.fx-anchor-nav a { flex: 1; padding: 11px 9px; border-radius: 9px; color: #596780; font-size: 13px; font-weight: 700; text-align: center; transition: .2s ease; }
.fx-anchor-nav a:hover { color: var(--fx-blue); background: #edf5ff; }
#orders, #purchase, #sorting, #warehouse, #delivery, #finance, #terminals, #hardware { scroll-margin-top: 180px; }

/* Capability map */
.fx-map-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; }
.fx-map-intro {
    position: relative;
    min-height: 410px;
    padding: 46px;
    overflow: hidden;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(135deg, #0f59dd, #2485f8);
    box-shadow: var(--fx-shadow);
}
.fx-map-intro::after { content: ""; position: absolute; right: -80px; bottom: -170px; width: 360px; height: 360px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.fx-map-intro span { position: relative; z-index: 2; color: #9ed0ff; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.fx-map-intro h3 { position: relative; z-index: 2; max-width: 430px; margin: 18px 0; color: #fff; font-size: 35px; line-height: 1.35; }
.fx-map-intro p { position: relative; z-index: 2; max-width: 480px; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.9; }
.fx-map-path { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.fx-map-path i { padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); font-style: normal; font-size: 12px; }
.fx-map-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-map-card { min-height: 197px; padding: 26px; border: 1px solid var(--fx-line); border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fx-map-card:hover { transform: translateY(-5px); border-color: #bdd6ff; box-shadow: 0 18px 40px rgba(35,91,178,.12); }
.fx-map-card b { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; color: var(--fx-blue); background: #edf5ff; font-size: 12px; }
.fx-map-card h3 { margin: 17px 0 7px; color: var(--fx-ink); font-size: 19px; }
.fx-map-card p { margin: 0; color: var(--fx-muted); font-size: 13px; line-height: 1.75; }

/* Feature stories */
.fx-stories { display: grid; gap: 34px; }
.fx-story {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 65px;
    align-items: center;
    min-height: 500px;
    padding: 54px;
    border: 1px solid var(--fx-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(28,72,143,.09);
}
.fx-story:nth-child(even) .fx-story-media { order: 2; }
.fx-story-media { position: relative; display: flex; min-height: 350px; align-items: center; justify-content: center; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg, #eaf3ff, #f8fbff); }
.fx-story-media::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(48,132,247,.1); filter: blur(1px); }
.fx-story-media img { position: relative; z-index: 2; width: 90%; height: 330px; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(23,55,105,.15)); transition: transform .35s ease; }
.fx-story:hover .fx-story-media img { transform: scale(1.025); }
.fx-story-copy .fx-num { display: inline-flex; align-items: center; gap: 12px; color: var(--fx-blue); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.fx-story-copy .fx-num::after { content: ""; width: 45px; height: 1px; background: #a8c9fc; }
.fx-story-copy h3 { margin: 18px 0 15px; color: var(--fx-ink); font-size: 31px; line-height: 1.35; }
.fx-story-copy > p { margin: 0; color: var(--fx-muted); font-size: 15px; line-height: 1.9; }
.fx-points { display: grid; gap: 11px; margin-top: 23px; }
.fx-points li { position: relative; padding-left: 22px; color: #43506a; font-size: 14px; line-height: 1.65; }
.fx-points li::before { content: ""; position: absolute; top: 8px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-blue); box-shadow: 0 0 0 5px #eaf3ff; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fx-tags span { padding: 7px 11px; border-radius: 7px; color: #41628e; background: #edf5ff; font-size: 12px; }

/* Terminals */
.fx-terminal-section { position: relative; overflow: hidden; color: #fff; background: var(--fx-navy); }
.fx-terminal-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(40,120,245,.34), transparent 34%); }
.fx-terminal-section .fx-container { position: relative; z-index: 2; }
.fx-terminal-section .fx-section-head h2 { color: #fff; }
.fx-terminal-section .fx-section-head p { color: #9eacca; }
.fx-terminal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fx-terminal-card { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.06); transition: transform .25s ease, border-color .25s ease; }
.fx-terminal-card:hover { transform: translateY(-5px); border-color: rgba(86,165,255,.62); }
.fx-terminal-card figure { height: 235px; margin: 0; padding: 18px; background: #fff; }
.fx-terminal-card img { width: 100%; height: 100%; object-fit: contain; }
.fx-terminal-card div { padding: 22px 24px 25px; }
.fx-terminal-card h3 { margin: 0 0 8px; color: #fff; font-size: 19px; }
.fx-terminal-card p { margin: 0; color: #9eacca; font-size: 13px; line-height: 1.75; }
.fx-terminal-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.fx-terminal-list a { padding: 10px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #c9d4eb; background: rgba(255,255,255,.05); font-size: 12px; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.fx-terminal-list a:hover { color: #fff; border-color: rgba(86,165,255,.72); background: rgba(45,126,242,.2); transform: translateY(-2px); }

/* Ecosystem and hardware */
.fx-ecosystem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx-ecosystem-card { min-height: 180px; padding: 28px; border: 1px solid var(--fx-line); border-radius: 18px; background: #fff; }
.fx-ecosystem-card b { color: var(--fx-blue); font-size: 12px; letter-spacing: 1px; }
.fx-ecosystem-card h3 { margin: 18px 0 10px; color: var(--fx-ink); font-size: 18px; }
.fx-ecosystem-card p { margin: 0; color: var(--fx-muted); font-size: 13px; line-height: 1.75; }
.fx-hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fx-hardware-card { display: grid; grid-template-columns: 1fr .9fr; align-items: center; min-height: 315px; padding: 34px; overflow: hidden; border: 1px solid var(--fx-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(28,72,143,.08); }
.fx-hardware-card h3 { margin: 0 0 12px; font-size: 24px; color: var(--fx-ink); }
.fx-hardware-card p { color: var(--fx-muted); font-size: 14px; line-height: 1.8; }
.fx-hardware-card img { width: 100%; height: 230px; object-fit: contain; }

/* CTA and footer */
.fx-cta { padding: 0 0 90px; background: var(--fx-soft); }
.fx-cta-panel { position: relative; display: flex; min-height: 255px; align-items: center; justify-content: space-between; gap: 40px; padding: 58px 64px; overflow: hidden; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #0e56d8, #2d89f7); box-shadow: var(--fx-shadow); }
.fx-cta-panel::after { content: ""; position: absolute; right: -90px; width: 340px; height: 340px; border: 65px solid rgba(255,255,255,.09); border-radius: 50%; }
.fx-cta-copy { position: relative; z-index: 2; }
.fx-cta h2 { margin: 0; color: #fff; font-size: 34px; line-height: 1.35; }
.fx-cta p { margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 15px; }
.fx-cta-actions { position: relative; z-index: 2; display: flex; gap: 12px; flex-shrink: 0; }
.fx-footer { padding: 25px 0; color: #8290a7; background: #08162f; font-size: 13px; }
.fx-footer .fx-container { display: flex; align-items: center; justify-content: space-between; }
.fx-footer nav { display: flex; gap: 24px; }
.fx-footer a { color: #9eacc2; }
.fx-footer a:hover { color: #fff; }

@media (max-width: 1180px) {
    .wx-function-page #nav { padding: 0 24px; }
    .wx-function-page #nav .pull-right .item { margin-left: 15px; font-size: 13px; }
    .wx-function-page #nav .pull-right .demoCenter { min-width: 82px; padding: 0 11px; }
    .wx-function-page #nav .pull-right .demoCenter.download { margin-left: 16px !important; }
}

@media (max-width: 1020px) {
    .fx-nav-toggle { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; background: transparent; color: #fff; font-size: 0; }
    .fx-nav-toggle::before { content: "☰"; font-size: 22px; }
    .wx-nav--scrolled .fx-nav-toggle { border-color: #d4e3fb; color: var(--fx-blue); }
    .wx-function-page #nav .pull-right { position: fixed; top: 68px; right: 16px; left: 16px; display: none; height: auto; max-height: calc(100vh - 90px); padding: 10px 18px 20px; overflow-y: auto; border: 1px solid var(--fx-line); border-radius: 16px; background: #fff; box-shadow: var(--fx-shadow); }
    .wx-function-page #nav.fx-nav-open .pull-right { display: block; }
    .wx-function-page #nav .pull-right .item { display: block; margin: 0; color: #344057; line-height: 48px; }
    .wx-function-page #nav .pull-right > a.item[href="/gongneng/"] { color: var(--fx-blue); }
    .wx-function-page #nav .pull-right > a.item[href="/gongneng/"]::after { display: none; }
    .wx-function-page #nav .pull-right .demoCenter { display: inline-flex; margin: 10px 8px 0 0 !important; }
    .wx-function-page #nav .pull-right .demoCenter.download a { color: var(--fx-blue) !important; }
    .fx-hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 60px; }
    .fx-hero-copy { text-align: center; }
    .fx-hero-copy > p { margin-right: auto; margin-left: auto; }
    .fx-hero-actions, .fx-hero-metrics { justify-content: center; }
    .fx-hero-visual { min-height: 430px; }
    .fx-dashboard { right: 2.5%; width: 95%; }
    .fx-map-grid { grid-template-columns: 1fr; }
    .fx-story { gap: 38px; padding: 42px; }
    .fx-ecosystem-grid { grid-template-columns: 1fr 1fr; }
    .fx-hardware-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .fx-container { width: min(100% - 28px, 600px); }
    .wx-function-page #nav { height: 68px; padding: 0 14px; line-height: 68px; }
    .wx-function-page #nav .pull-left, .wx-function-page #nav .pull-left img { height: 44px; }
    .wx-function-page #nav .pull-right { top: 64px; }
    .fx-hero { min-height: auto; }
    .fx-hero-grid { min-height: auto; padding: 56px 0 96px; }
    .fx-kicker { margin-bottom: 16px; font-size: 10px; letter-spacing: 1.4px; }
    .fx-hero h1 { font-size: 37px; letter-spacing: -1px; }
    .fx-hero-copy > p { margin-top: 18px; font-size: 15px; line-height: 1.75; }
    .fx-hero-actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
    .fx-btn { width: 100%; }
    .fx-hero-metrics { gap: 22px; justify-content: space-between; margin-top: 30px; text-align: left; }
    .fx-hero-metrics strong { font-size: 21px; }
    .fx-hero-visual { min-height: 295px; }
    .fx-dashboard { top: 18px; right: 0; width: 100%; padding: 13px; border-radius: 18px; transform: none; }
    .fx-dashboard-image { min-height: 210px; padding: 6px; }
    .fx-dashboard-image img { height: 205px; }
    .fx-float-card { min-width: 112px; padding: 9px 11px; }
    .fx-float-card b { font-size: 15px; }
    .fx-float-card--one { right: -4px; }
    .fx-float-card--two { left: -5px; bottom: 3px; }
    .fx-float-card--three { display: none; }
    .fx-flow-wrap { margin-top: -40px; }
    .fx-flow { grid-template-columns: repeat(4, 1fr); padding: 10px; }
    .fx-flow li { min-height: 68px; flex-direction: column; gap: 4px; }
    .fx-flow li + li::before { display: none; }
    .fx-flow li:nth-child(n+5) { grid-column: span 1; }
    .fx-flow b { width: 29px; height: 29px; border-radius: 9px; font-size: 10px; }
    .fx-flow strong { font-size: 12px; }
    .fx-section { padding: 76px 0; }
    .fx-section-head { margin-bottom: 34px; }
    .fx-section-head h2 { font-size: 29px; }
    .fx-section-head p { font-size: 14px; }
    .fx-anchor-wrap { top: 67px; overflow-x: auto; }
    .fx-anchor-nav { width: max-content; min-width: 720px; justify-content: flex-start; }
    .fx-anchor-nav a { min-width: 84px; }
    .fx-map-intro { min-height: 350px; padding: 34px 28px; }
    .fx-map-intro h3 { font-size: 28px; }
    .fx-map-cards { grid-template-columns: 1fr; }
    .fx-map-card { min-height: 0; }
    .fx-story { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 20px; border-radius: 21px; }
    .fx-story:nth-child(even) .fx-story-media { order: 0; }
    .fx-story-media { min-height: 260px; border-radius: 16px; }
    .fx-story-media img { width: 96%; height: 250px; }
    .fx-story-copy { padding: 5px 6px 14px; }
    .fx-story-copy h3 { font-size: 25px; }
    .fx-terminal-grid { grid-template-columns: 1fr; }
    .fx-terminal-card figure { height: 250px; }
    .fx-ecosystem-grid { grid-template-columns: 1fr; }
    .fx-hardware-card { grid-template-columns: 1fr; gap: 10px; padding: 28px; }
    .fx-hardware-card img { height: 210px; }
    .fx-cta { padding-bottom: 60px; }
    .fx-cta-panel { flex-direction: column; align-items: stretch; padding: 38px 26px; text-align: center; }
    .fx-cta h2 { font-size: 28px; }
    .fx-cta-actions { flex-direction: column; }
    .fx-footer .fx-container { flex-direction: column; gap: 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-story-media img, .fx-map-card, .fx-terminal-card, .fx-btn { transition: none; }
}
