:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #5b6472;
    --line: #e5eaf1;
    --primary: #155eef;
    --primary-dark: #0f3fbd;
    --accent: #16a085;
    --warning: #ff8a3d;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 234, 241, 0.85);
    backdrop-filter: blur(16px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.brand-logo,
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.brand-logo {
    display: block;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 14px;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 12px;
    color: #2c3440;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: #eef4ff;
}

.site-nav .nav-action {
    margin-left: 8px;
    color: #fff;
    background: var(--primary);
}

.site-nav .nav-action:hover {
    color: #fff;
    background: var(--primary-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
    background:
        radial-gradient(circle at 12% 10%, rgba(21, 94, 239, 0.12), transparent 26%),
        radial-gradient(circle at 88% 28%, rgba(22, 160, 133, 0.12), transparent 24%),
        linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.04fr) minmax(380px, 0.96fr);
    align-items: center;
    gap: 36px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero h1 {
    white-space: nowrap;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
}

.button.primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 24px rgba(21, 94, 239, 0.22);
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    color: var(--primary);
    background: #fff;
    border-color: #bfd0ff;
}

.button.secondary:hover {
    background: #eef4ff;
}

.product-visual {
    min-height: 430px;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.synergy-visual {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 52%, rgba(21, 94, 239, 0.16), transparent 36%),
        radial-gradient(circle at 82% 22%, rgba(22, 160, 133, 0.12), transparent 24%);
}

.synergy-map {
    width: 94%;
    max-width: 640px;
    height: auto;
}

.synergy-lines path,
.synergy-lines circle {
    fill: none;
    stroke: #bfd0ff;
    stroke-width: 2;
    stroke-dasharray: 8 10;
    animation: dashFlow 12s linear infinite;
}

.data-pulses circle {
    fill: var(--primary);
}

.data-pulses circle:nth-child(2),
.data-pulses circle:nth-child(5) {
    fill: var(--accent);
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -72;
    }
}

.architecture-base ellipse {
    fill: none;
    stroke: rgba(21, 94, 239, 0.16);
    stroke-width: 1.5;
}

.architecture-base ellipse:nth-child(2) {
    stroke: rgba(22, 160, 133, 0.18);
}

.architecture-base ellipse:nth-child(3) {
    stroke: rgba(255, 122, 26, 0.16);
}

.hub circle {
    fill: url("#nodeGradient");
}

.hub .hub-aura {
    fill: rgba(21, 94, 239, 0.1);
    stroke: rgba(21, 94, 239, 0.18);
    stroke-width: 1;
}

.hub path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-linecap: round;
    stroke-width: 3.5;
}

.hub text {
    fill: #fff;
    font-size: 20px;
    font-weight: 800;
}

.hub text + text {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.82;
}

.endpoint ellipse {
    fill: rgba(21, 94, 239, 0.13);
}

.icon-body,
.device-body {
    filter: drop-shadow(0 14px 18px rgba(17, 24, 39, 0.14));
}

.icon-body.blue,
.device-body.blue {
    fill: url("#iconBlue");
}

.icon-body.green,
.device-body.green {
    fill: url("#iconGreen");
}

.icon-body.orange,
.device-body.orange {
    fill: url("#iconOrange");
}

.icon-side {
    fill: rgba(17, 24, 39, 0.16);
}

.icon-top {
    fill: rgba(255, 255, 255, 0.28);
}

.device-screen {
    fill: rgba(255, 255, 255, 0.76);
}

.icon-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.section {
    padding: 76px 0;
    background: #fff;
}

.section.muted,
.page-hero {
    background: var(--bg);
}

.section-heading {
    max-width: 620px;
    margin-bottom: 28px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.product-card,
.content-panel,
.workflow-item,
.feature-list div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.product-card {
    display: block;
    min-height: 218px;
    padding: 24px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #bfd0ff;
    box-shadow: var(--shadow);
}

.card-icon {
    display: inline-grid;
    min-width: 44px;
    height: 34px;
    margin-bottom: 22px;
    padding: 0 10px;
    place-items: center;
    border-radius: 8px;
    color: var(--primary);
    background: #eef4ff;
    font-weight: 800;
    font-size: 13px;
}

.product-card p,
.workflow-item p,
.feature-copy p,
.feature-list p,
.content-panel p,
.page-hero p {
    color: var(--muted);
}

.workflow-section {
    border-top: 1px solid var(--line);
}

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

.workflow-item {
    position: relative;
    min-height: 214px;
    padding: 24px;
    overflow: hidden;
}

.workflow-item::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.08);
}

.workflow-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    font-size: 13px;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: start;
}

.feature-copy {
    max-width: 480px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.feature-list div {
    padding: 22px 24px;
}

.page-hero {
    padding: 74px 0 58px;
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(34px, 4vw, 48px);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.content-panel {
    padding: 30px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.accent-panel {
    background: #f8fbff;
}

.info-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.info-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list dt {
    color: var(--muted);
    font-size: 14px;
}

.info-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.info-list a {
    color: var(--primary);
}

.contact-card {
    background: linear-gradient(135deg, #10213d, #163f76);
    color: #fff;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-card .card-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.site-footer {
    padding: 28px 0;
    color: #d7dde8;
    background: #111827;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.site-footer p {
    margin: 6px 0 0;
    color: #9aa4b2;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    color: #d7dde8;
}

.footer-links a:hover {
    color: #fff;
}

.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.qr-modal:target {
    display: grid;
}

.qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(8px);
}

.qr-dialog {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 30px;
    border: 1px solid rgba(191, 208, 255, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.2);
    text-align: center;
}

.qr-dialog h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.qr-dialog p {
    margin-bottom: 20px;
    color: var(--muted);
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--muted);
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
}

.qr-close:hover {
    color: var(--text);
    background: #eef4ff;
}

.qr-image,
.qr-placeholder {
    width: 220px;
    height: 220px;
    margin: 0 auto 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.qr-image {
    display: block;
    padding: 10px;
}

.miniapp-code {
    object-fit: contain;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    padding: 18px;
}

.qr-placeholder span {
    display: block;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.qr-placeholder small {
    display: block;
    max-width: 160px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.qr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    color: var(--primary);
    border: 1px solid #bfd0ff;
    border-radius: 8px;
    font-weight: 700;
}

.qr-link:hover {
    background: #eef4ff;
}

@media (max-width: 960px) {
    .hero-grid,
    .feature-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-visual {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .header-container {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        white-space: normal;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .site-nav a {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .site-nav .nav-action {
        margin-left: 0;
    }

    .hero,
    .section,
    .page-hero {
        padding: 46px 0;
    }

    h1 {
        font-size: 36px;
    }

    .hero h1 {
        white-space: normal;
    }

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

    .product-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .synergy-visual {
        padding: 10px;
        min-height: 280px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .synergy-lines path,
    .synergy-lines circle {
        animation: none;
    }

    .data-pulses {
        display: none;
    }
}
