* {
    box-sizing: border-box;
}

:root {
    --red: #f2312a;
    --red-dark: #bd1f1a;
    --orange: #ff7a30;
    --green: #21a866;
    --ink: #172033;
    --text: #202737;
    --muted: #667085;
    --soft: #f5f7fb;
    --line: #e6eaf2;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(30, 45, 72, 0.11);
    --max: 1120px;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: rgba(242, 49, 42, 0.78) #f2f4f8;
    scrollbar-width: thin;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--white);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.72;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f2f4f8;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red), var(--orange));
    border: 3px solid #f2f4f8;
    border-radius: 999px;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 5%;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.18rem;
    white-space: nowrap;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #404a5f;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--red);
}

.nav-button {
    padding: 8px 14px;
    border: 1px solid #ffd1ce;
    border-radius: 8px;
    color: var(--red-dark) !important;
    font-weight: 800;
}

.hero {
    min-height: 520px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.72) 100%),
        url("honglu-ai-agent-hardware-hero.png") center right / cover no-repeat,
        var(--soft);
}

.hero-inner,
.section-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.hero-inner {
    padding: 92px 0 76px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: #404a5f;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.25rem, 5.4vw, 4.8rem);
}

.hero-summary {
    max-width: 720px;
    margin: 22px 0 0;
    color: #4d596d;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #ffd1ce;
    border-radius: 8px;
    color: var(--red-dark);
    font-weight: 800;
    text-decoration: none;
    background: var(--white);
    overflow: hidden;
    isolation: isolate;
    transform: translateY(0);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(242, 49, 42, 0.22);
}

main section {
    padding: 72px 0;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.8rem);
}

.section-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(30, 45, 72, 0.06);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.22rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.card li {
    margin: 8px 0;
}

.scenario-page .cta-row {
    width: fit-content;
    max-width: 100%;
    padding: 12px;
    border: 1px solid rgba(242, 49, 42, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(30, 45, 72, 0.08);
    backdrop-filter: blur(12px);
}

.scenario-page .cta-row .button {
    min-width: 136px;
}

.scenario-page .cta-row .button::before {
    content: "";
    position: absolute;
    inset: -2px auto -2px -52%;
    z-index: -1;
    width: 46%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    opacity: 0;
    transform: skewX(-18deg);
    transition:
        left 420ms ease,
        opacity 160ms ease;
}

.scenario-page .cta-row .button:hover,
.scenario-page .cta-row .button:focus-visible {
    border-color: rgba(242, 49, 42, 0.42);
    color: var(--red-dark);
    background: #fff6f5;
    box-shadow: 0 16px 34px rgba(242, 49, 42, 0.18);
    transform: translateY(-3px);
}

.scenario-page .cta-row .button-primary:hover,
.scenario-page .cta-row .button-primary:focus-visible {
    border-color: transparent;
    color: var(--white);
    background: linear-gradient(135deg, #ff4a40, #ff8a3d);
    box-shadow: 0 20px 42px rgba(242, 49, 42, 0.28);
}

.scenario-page .cta-row .button:hover::before,
.scenario-page .cta-row .button:focus-visible::before {
    left: 106%;
    opacity: 1;
}

.scenario-page .cta-row .button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 10px 22px rgba(242, 49, 42, 0.16);
}

.scenario-page .cta-row .button:focus-visible {
    outline: 3px solid rgba(242, 49, 42, 0.24);
    outline-offset: 3px;
}

.scenario-page .card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(30, 45, 72, 0.07);
}

.scenario-page .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.scenario-list .card {
    padding-top: 34px;
}

.scenario-list .card::after {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 2px 9px;
    border: 1px solid rgba(242, 49, 42, 0.18);
    border-radius: 999px;
    color: var(--red-dark);
    background: #fff6f5;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.6;
}

.scenario-list .card:nth-child(1)::after {
    content: "广西";
}

.scenario-list .card:nth-child(2)::after {
    content: "中小企业";
}

.scenario-list .card:nth-child(3)::after {
    content: "对比";
}

.scenario-list .card:nth-child(4)::after {
    content: "仓储";
}

.scenario-list .card:nth-child(5)::after {
    content: "门店";
}

.scenario-list .card:nth-child(6)::after {
    content: "巡检";
}

.scenario-list .card:nth-child(7)::after {
    content: "软硬一体";
}

.scenario-page .content-block .card {
    background:
        linear-gradient(180deg, rgba(255, 246, 245, 0.88) 0%, rgba(255, 255, 255, 0.98) 58%),
        var(--white);
    border-color: rgba(242, 49, 42, 0.18);
}

.scenario-page .scenario-faq {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.scenario-page .scenario-faq .card {
    background: #ffffff;
}

.content-block {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.site-footer {
    padding: 36px 5%;
    border-top: 1px solid var(--line);
    background: #fafbfe;
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 0.7fr;
    gap: 24px;
    color: var(--muted);
}

.footer-inner h2,
.footer-inner h3 {
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: var(--red);
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.94) 100%),
            url("honglu-ai-agent-hardware-hero.png") center bottom / cover no-repeat,
            var(--soft);
    }

    .grid,
    .grid-two,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-inner,
    .section-inner {
        width: calc(100% - 28px);
    }

    .hero-inner {
        padding: 74px 0 60px;
    }

    .cta-row .button {
        width: 100%;
    }

    .scenario-page .cta-row {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .scenario-page .cta-row .button::before {
        transition: none;
    }

    .scenario-page .cta-row .button:hover,
    .scenario-page .cta-row .button:focus-visible,
    .scenario-page .cta-row .button:active {
        transform: none;
    }
}
