:root {
    --ink: #101828;
    --muted: #667085;
    --line: #d9e2ec;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --brand: #0878e6;
    --brand-deep: #0756ad;
    --accent: #13a68c;
    --warning: #f2a43a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 1120px;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(8, 120, 230, 0.08) 0 1px, transparent 1px 100%) 0 0 / 80px 80px,
        linear-gradient(180deg, rgba(16, 24, 40, 0.06) 0 1px, transparent 1px 100%) 0 0 / 80px 80px,
        #f7f9fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

.page-shell {
    width: min(1280px, calc(100vw - 80px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    background: rgba(247, 249, 252, 0.92);
    backdrop-filter: blur(16px);
}

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

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--brand-deep);
}

.nav-action,
.primary-action,
.secondary-action,
.download-card {
    cursor: pointer;
}

.nav-action {
    height: 40px;
    padding: 0 18px;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 42px;
    min-height: calc(100vh - 180px);
    padding: 48px 0 54px;
    align-items: center;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    color: var(--brand-deep);
    background: #e8f2ff;
    border: 1px solid #c7def8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: 62px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-lead {
    width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 34px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    font-weight: 800;
}

.primary-action {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 26px rgba(8, 120, 230, 0.24);
}

.secondary-action {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.proof-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 42px 0 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.proof-row div {
    padding: 18px;
    border-right: 1px solid var(--line);
}

.proof-row div:last-child {
    border-right: 0;
}

.proof-row dt {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.proof-row dd {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.product-stage {
    display: grid;
    grid-template-columns: 190px 1fr 190px;
    gap: 14px;
    min-height: 520px;
    padding: 14px;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #eef3f8;
    box-shadow: 0 28px 60px rgba(16, 24, 40, 0.16);
}

.workspace-panel,
.conversation-panel,
.insight-panel {
    border: 1px solid #d5dee9;
    border-radius: 8px;
    background: var(--surface);
}

.workspace-panel,
.insight-panel {
    padding: 16px;
}

.panel-title {
    color: #8994a4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.workspace-active {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.workspace-active img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.workspace-active strong,
.workspace-active span,
.conversation-head strong,
.conversation-head span {
    display: block;
}

.workspace-active strong {
    font-size: 15px;
}

.workspace-active span {
    margin-top: 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.workspace-menu {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.workspace-menu span {
    height: 36px;
    padding: 9px 10px;
    color: var(--muted);
    background: var(--surface-soft);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.workspace-menu .menu-current {
    color: var(--brand-deep);
    background: #e8f2ff;
}

.conversation-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.conversation-head strong {
    font-size: 18px;
}

.conversation-head span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.conversation-head i {
    padding: 5px 8px;
    color: #047857;
    background: #dff7ed;
    border-radius: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.message-list {
    display: grid;
    align-content: center;
    flex: 1;
    gap: 18px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(8, 120, 230, 0.04), transparent 42%),
        #fbfcfe;
}

.message {
    width: 72%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.message.outbound {
    justify-self: end;
    color: #fff;
    background: #155eef;
    border-color: #155eef;
}

.message span,
.message em,
.file-row b,
.file-row span {
    display: block;
}

.message span {
    font-size: 14px;
    line-height: 1.6;
}

.message em {
    margin-top: 8px;
    color: inherit;
    opacity: 0.66;
    font-size: 12px;
    font-style: normal;
}

.file-row {
    width: 74%;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: #ecfdf7;
}

.file-row b {
    font-size: 14px;
}

.file-row span {
    margin-top: 5px;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}

.composer-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.composer-line span {
    flex: 1;
    height: 38px;
    padding: 10px 12px;
    color: #98a2b3;
    background: var(--surface-soft);
    border-radius: 6px;
    font-size: 13px;
}

.composer-line button {
    width: 72px;
    height: 38px;
    color: #fff;
    background: var(--ink);
    border-radius: 6px;
    font-weight: 800;
}

.signal-row {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    font-size: 13px;
}

.signal-row span {
    color: var(--muted);
}

.signal-row strong {
    font-size: 24px;
}

.meter {
    height: 8px;
    margin-top: 12px;
    background: #e4e7ec;
    border-radius: 999px;
    overflow: hidden;
}

.meter span {
    display: block;
    width: 98%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.audit-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.audit-list p {
    margin: 0;
    padding: 12px;
    color: var(--muted);
    background: var(--surface-soft);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.capability-band,
.workflow-section,
.download-section {
    margin: 0 0 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2 {
    width: 580px;
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: right;
}

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

.capability-grid article,
.workflow-table,
.download-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.capability-grid article {
    min-height: 190px;
    padding: 28px;
}

.capability-grid b,
.workflow-table strong,
.download-card strong {
    display: block;
    font-size: 20px;
}

.capability-grid p,
.workflow-table p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.workflow-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.workflow-table div {
    min-height: 148px;
    padding: 26px;
    border-right: 1px solid var(--line);
}

.workflow-table div:last-child {
    border-right: 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.download-card {
    display: grid;
    justify-items: start;
    min-height: 172px;
    padding: 22px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(16, 24, 40, 0.12);
}

.download-card span {
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 900;
}

.download-card strong {
    margin-top: 18px;
}

.download-card em {
    align-self: end;
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.qr-card {
    cursor: default;
}

.qr-card strong {
    margin-bottom: 14px;
}

.platform-qrcode,
.platform-qrcode img {
    width: 104px;
    height: 104px;
}

.platform-qrcode:empty::before {
    content: "待配置";
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px dashed var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1240px) {
    .page-shell {
        width: calc(100vw - 48px);
    }

    .hero {
        grid-template-columns: 0.82fr 1.18fr;
        gap: 24px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .product-stage {
        grid-template-columns: 170px 1fr 170px;
    }
}
