/* 产品介绍页独立样式，不影响 Compose/WASM 应用的 app.html。 */
:root {
    --bg: #f7f8f5;
    --ink: #15181c;
    --muted: #5d6672;
    --line: rgba(21, 24, 28, 0.12);
    --panel: #ffffff;
    --deep: #101418;
    --deep-2: #171c22;
    --jade: #45bf86;
    --red: #ff4f55;
    --amber: #f08a24;
    --cyan: #8bc7d1;
    --blue: #4c63d9;
    --shadow: 0 18px 54px rgba(16, 20, 24, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "AlibabaPuHuiTi", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 20, 24, 0.76);
    color: #f8fafc;
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--amber);
    color: #111418;
}

.brand-name {
    font-size: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(248, 250, 252, 0.78);
    font-size: 14px;
}

.site-nav a:hover {
    color: #ffffff;
}

.header-cta,
.primary-cta,
.secondary-cta,
.pricing-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.header-cta {
    padding: 0 18px;
    color: #111418;
    background: #ffffff;
}

.hero-section {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #f8fafc;
    background: var(--deep);
}

.hero-chart {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* 页头图表背景使用真实应用截图，替代旧的 CSS 绘制图表元素。 */
    background: url("intro-hero-chart.png") right 4vw center / min(66vw, 1220px) auto no-repeat;
    opacity: 1;
}

/* 旧版页头图表节点保留在 HTML 中作为结构兼容，但当前由截图背景承载视觉内容。 */
.hero-chart > * {
    display: none;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(139, 199, 209, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 199, 209, 0.10) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 20, 24, 0.96) 0%, rgba(16, 20, 24, 0.82) 43%, rgba(16, 20, 24, 0.22) 100%),
        linear-gradient(180deg, rgba(16, 20, 24, 0.42), rgba(16, 20, 24, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 48px));
    padding: 168px 0 108px;
    margin-left: max(32px, calc((100vw - 1180px) / 2));
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 0;
    font-size: 72px;
    line-height: 1.05;
    font-weight: 900;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(248, 250, 252, 0.84);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.primary-cta {
    padding: 0 26px;
    color: #111418;
    background: var(--amber);
    box-shadow: 0 12px 32px rgba(240, 138, 36, 0.28);
}

.secondary-cta {
    padding: 0 22px;
    border: 1px solid rgba(248, 250, 252, 0.28);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hero-proof span {
    padding: 8px 12px;
    border: 1px solid rgba(139, 199, 209, 0.30);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.82);
    background: rgba(139, 199, 209, 0.08);
    font-size: 13px;
}

/* 首屏图表元素使用真实产品语言：K线、线段、中枢与买卖点。 */
.pivot,
.segment,
.trade-point,
.candle,
.price-label {
    position: absolute;
}

.pivot {
    border: 2px solid rgba(139, 199, 209, 0.48);
    background: rgba(139, 199, 209, 0.10);
}

.pivot-left {
    right: 22%;
    top: 265px;
    width: 270px;
    height: 92px;
}

.pivot-right {
    right: 6%;
    top: 430px;
    width: 260px;
    height: 84px;
}

.segment {
    height: 3px;
    transform-origin: left center;
    background: rgba(112, 122, 236, 0.88);
    box-shadow: 0 0 14px rgba(112, 122, 236, 0.28);
}

.segment-a {
    right: 31%;
    top: 520px;
    width: 470px;
    transform: rotate(-49deg);
}

.segment-b {
    right: 17%;
    top: 190px;
    width: 360px;
    transform: rotate(42deg);
}

.segment-c {
    right: 8%;
    top: 510px;
    width: 320px;
    transform: rotate(-34deg);
}

.segment-d {
    right: 1%;
    top: 355px;
    width: 270px;
    transform: rotate(28deg);
}

.trade-point {
    padding: 5px 9px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.buy-one,
.buy-three {
    background: var(--red);
}

.sell-two {
    background: var(--jade);
}

.buy-one {
    right: 34%;
    top: 526px;
}

.buy-three {
    right: 13%;
    top: 524px;
    border: 2px solid var(--blue);
    box-shadow: 0 0 0 2px rgba(76, 99, 217, 0.36);
}

.sell-two {
    right: 19%;
    top: 220px;
}

.candle {
    width: 12px;
    border-radius: 2px;
}

.candle::before {
    content: "";
    position: absolute;
    left: 5px;
    top: -22px;
    width: 2px;
    height: calc(100% + 44px);
    background: currentColor;
    opacity: 0.62;
}

.candle.up {
    background: var(--red);
    color: var(--red);
}

.candle.down {
    background: var(--jade);
    color: var(--jade);
}

.c1 { right: 40%; top: 455px; height: 74px; }
.c2 { right: 36%; top: 362px; height: 118px; }
.c3 { right: 31%; top: 286px; height: 82px; }
.c4 { right: 25%; top: 218px; height: 138px; }
.c5 { right: 20%; top: 295px; height: 86px; }
.c6 { right: 16%; top: 360px; height: 122px; }
.c7 { right: 11%; top: 435px; height: 74px; }
.c8 { right: 8%; top: 380px; height: 92px; }
.c9 { right: 5%; top: 310px; height: 132px; }
.c10 { right: 2%; top: 244px; height: 166px; }

.price-label {
    color: rgba(214, 232, 246, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.p1 { right: 39%; top: 535px; }
.p2 { right: 19%; top: 183px; }
.p3 { right: 11%; top: 568px; }

.section-band {
    background: #ffffff;
}

.section-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 88px 0;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
}

h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 900;
}

h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

p {
    color: var(--muted);
}

.problem-list {
    display: grid;
    gap: 18px;
}

.problem-list p {
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid var(--amber);
    font-size: 17px;
}

.workflow-grid,
.feature-grid,
.audience-grid,
.pricing-grid {
    display: grid;
    gap: 18px;
    margin-top: 38px;
}

.workflow-grid {
    /* 工作流区固定在原有内容宽度内展示四个步骤，避免新增步骤换到第二行。 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workflow-grid article,
.feature-grid article,
.audience-grid article,
.pricing-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 1px 0 rgba(16, 20, 24, 0.02);
}

.workflow-grid article {
    /* 四列布局下收紧卡片内边距，保证信息密度与整体宽度同时可控。 */
    padding: 24px;
}

.step-number {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--amber);
    font-weight: 900;
}

.workflow-grid h3 {
    font-size: 19px;
}

.workflow-grid p {
    font-size: 15px;
    line-height: 1.72;
}

.workflow-grid p,
.feature-grid p,
.audience-grid p {
    margin: 12px 0 0;
}

.section-heading {
    max-width: 760px;
}

.section-heading p:last-child {
    margin-top: 16px;
    font-size: 17px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
    padding: 26px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #111418;
    background: rgba(69, 191, 134, 0.22);
    font-weight: 900;
}

.audience-section {
    background: var(--deep-2);
    color: #f8fafc;
}

.audience-section h2,
.audience-section h3 {
    color: #f8fafc;
}

.audience-section p {
    color: rgba(248, 250, 252, 0.72);
}

.audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid article {
    padding: 28px;
    border-color: rgba(248, 250, 252, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 30px;
}

.pricing-card.featured {
    border-color: rgba(240, 138, 36, 0.66);
    box-shadow: var(--shadow);
}

.tier-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111418;
    background: var(--amber);
    font-size: 12px;
    font-weight: 900;
}

.tier-desc {
    margin: 6px 0 22px;
}

.pricing-card ul {
    display: grid;
    gap: 12px;
    min-height: 160px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.pricing-card li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
}

.pricing-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jade);
}

.pricing-card a {
    width: 100%;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #f4f6f1;
}

.pricing-card.featured a {
    border-color: var(--amber);
    background: var(--amber);
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 800;
}

details p {
    margin: 0;
    padding: 0 20px 20px;
}

.final-cta-section {
    background: var(--deep);
    color: #f8fafc;
}

.final-cta {
    text-align: center;
}

.final-cta h2 {
    color: #f8fafc;
}

.final-cta p:not(.section-kicker) {
    max-width: 620px;
    margin: 16px auto 30px;
    color: rgba(248, 250, 252, 0.74);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 24px;
    padding: 34px max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.site-footer p {
    margin: 6px 0 0;
}

/* 页脚左侧公司与备案信息为辅助信息，降低字号避免在小卡片区域中过度抢占视觉焦点。 */
.site-footer > div p {
    font-size: 13px;
    line-height: 1.45;
}

.risk-warning {
    justify-self: end;
    max-width: 680px;
    text-align: right;
    font-size: 14px;
}

@media (max-width: 980px) {
    .site-header {
        padding: 0 22px;
    }

    .site-nav {
        display: none;
    }

    .hero-section {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 138px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-copy {
        font-size: 18px;
    }

    .pivot-left,
    .pivot-right,
    .segment,
    .candle,
    .price-label,
    .trade-point {
        opacity: 0.58;
    }

    .two-column,
    .workflow-grid,
    .feature-grid,
    .audience-grid,
    .pricing-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .risk-warning {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 64px;
    }

    .brand-name {
        font-size: 16px;
    }

    .header-cta {
        min-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .hero-section {
        min-height: 640px;
    }

    .hero-content {
        width: calc(100% - 36px);
        padding: 124px 0 72px;
        margin-left: 18px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
    }

    .section-inner {
        width: calc(100% - 36px);
        padding: 64px 0;
    }

    h2 {
        font-size: 32px;
    }

    .workflow-grid article,
    .feature-grid article,
    .audience-grid article,
    .pricing-card {
        padding: 22px;
    }
}
