/* ==========================================================================
   唯信智慧餐厅 · 主站首页（门户）样式
   统一引导使用「唯信智慧餐厅」微信小程序
   ========================================================================== */

:root {
    --green-950: #082310;
    --green-900: #0d2f17;
    --green-800: #14532d;
    --green-700: #1b6b39;
    --green-600: #2f9e44;
    --green-500: #52c41a;
    --green-100: #e6f4e2;
    --green-50: #f5faf2;

    --orange: #fa8c16;
    --amber: #ffc53d;
    --amber-light: #ffd666;

    --ink: #17251b;
    --ink-soft: #2c3d31;
    --muted: #617064;
    --line: #dfe9db;
    --bg: #f6faf3;
    --white: #ffffff;

    --radius-lg: 26px;
    --radius: 18px;
    --radius-sm: 12px;

    --shadow-sm: 0 2px 8px rgba(16, 45, 20, .05);
    --shadow: 0 14px 40px rgba(16, 45, 20, .10);
    --shadow-lg: 0 30px 70px rgba(6, 30, 12, .22);

    --container: 1180px;
    --header-h: 72px;
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
        "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--green-600);
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section[id],
div[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 1100;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--green-800);
    color: #fff;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(16, 45, 20, .06);
}

.header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-logo {
    width: auto;
    height: 46px;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .14em;
}

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

.site-nav > a {
    position: relative;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.site-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.site-nav > a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--green-800);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(20, 83, 45, .22);
    transition: transform .2s ease, background .2s ease;
}

.nav-cta:hover {
    background: var(--green-700);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--green-800);
    transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 88px;
    color: #fff;
    background:
        radial-gradient(90% 120% at 88% 4%, rgba(82, 196, 26, .22) 0%, rgba(82, 196, 26, 0) 52%),
        radial-gradient(80% 100% at 4% 100%, rgba(250, 140, 22, .14) 0%, rgba(250, 140, 22, 0) 55%),
        linear-gradient(135deg, #0b2c15 0%, #124523 48%, #1a5c2f 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15));
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15));
    pointer-events: none;
}

.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .10);
}

.ring-a {
    width: 520px;
    height: 520px;
    right: -140px;
    top: -220px;
}

.ring-b {
    width: 320px;
    height: 320px;
    right: 60px;
    bottom: -190px;
    background: rgba(82, 196, 26, .06);
    border-color: rgba(82, 196, 26, .14);
}

.ring-c {
    width: 180px;
    height: 180px;
    left: -80px;
    top: 40%;
    border-color: rgba(255, 197, 61, .16);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 7px 15px;
    border: 1px solid rgba(183, 243, 151, .28);
    border-radius: 999px;
    background: rgba(183, 243, 151, .08);
    color: #c9f3b5;
    font-size: 13px;
    letter-spacing: .08em;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8be86a;
    box-shadow: 0 0 0 4px rgba(139, 232, 106, .16);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(139, 232, 106, .16); }
    50% { box-shadow: 0 0 0 8px rgba(139, 232, 106, .04); }
}

.hero h1 {
    font-size: clamp(40px, 4.9vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero h1 span {
    display: block;
    color: #b7f397;
}

.lead {
    max-width: 35em;
    margin-top: 22px;
    color: rgba(235, 248, 236, .82);
    font-size: 17px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    transition: transform .2s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--amber);
    color: #21300f;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.btn-primary:hover {
    background: var(--amber-light);
    color: #21300f;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    transform: translateY(-2px);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 26px;
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(235, 248, 236, .78);
    font-size: 14px;
}

.hero-points svg {
    width: 16px;
    height: 16px;
    padding: 2px;
    border-radius: 50%;
    background: rgba(183, 243, 151, .16);
    color: #b7f397;
    stroke-width: 3;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 40em;
    margin-top: 26px;
    padding: 12px 16px;
    border-left: 3px solid var(--amber);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 242, 214, .9);
    font-size: 13.5px;
    line-height: 1.7;
}

.hero-note strong {
    flex: none;
    color: var(--amber);
}

/* 小程序码卡片 */
.hero-card {
    display: flex;
    justify-content: center;
}

.qr-card {
    position: relative;
    width: 100%;
    max-width: 404px;
    padding: 24px 24px 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.qr-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .4);
    pointer-events: none;
}

.qr-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.qr-head img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex: none;
}

.qr-head strong {
    display: block;
    font-size: 17px;
    letter-spacing: .02em;
}

.qr-head span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
}

.qr-frame {
    position: relative;
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 10px;
    border: 1px dashed #cfe4c7;
    border-radius: var(--radius);
    background: #fcfffa;
    cursor: zoom-in;
    transition: border-color .2s ease, background .2s ease;
}

.qr-frame:hover {
    border-color: var(--green-500);
    background: var(--green-50);
}

.qr-frame img {
    width: 100%;
    border-radius: 10px;
}

.qr-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 83, 45, .86);
    color: #fff;
    font-size: 11px;
    letter-spacing: .06em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.qr-frame:hover .qr-zoom,
.qr-frame:focus-visible .qr-zoom {
    opacity: 1;
    transform: none;
}

.qr-caption {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.qr-caption strong {
    color: var(--green-700);
}

.qr-link {
    margin-top: 8px;
    text-align: center;
    font-size: 12.5px;
}

.qr-link a {
    color: var(--green-700);
    border-bottom: 1px solid rgba(27, 107, 57, .3);
}

.qr-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.qr-tags span {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 12px;
}

/* ==========================================================================
   提示条
   ========================================================================== */

.notice-bar {
    background: #fff8e8;
    border-bottom: 1px solid #ffe9bd;
}

.notice-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.notice-tag {
    flex: none;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
}

.notice-inner p {
    flex: 1;
    color: #7a5410;
    font-size: 14.5px;
    line-height: 1.6;
}

.notice-inner a {
    flex: none;
    color: #a35a00;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid rgba(163, 90, 0, .35);
}

/* ==========================================================================
   通用区块
   ========================================================================== */

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--bg);
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.kicker {
    margin-bottom: 12px;
    color: var(--green-600);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .22em;
}

.section-head h2,
.help h2 {
    color: var(--ink);
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

.section-head > p:last-child {
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================================
   三步使用
   ========================================================================== */

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

.step {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: #c9e2c1;
    box-shadow: var(--shadow);
}

.step-no {
    position: absolute;
    top: 16px;
    right: 22px;
    color: #e8f2e4;
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
    user-select: none;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.icon-green {
    background: #e7f7df;
    color: #2f8f1f;
}

.icon-orange {
    background: #fff1df;
    color: #e27300;
}

.icon-blue {
    background: #e6f1ff;
    color: #2471d8;
}

.step h3 {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.step p {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.step p b {
    color: var(--ink-soft);
}

.step-tip {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 10px;
    border-radius: 7px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   食堂介绍
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 56px;
    align-items: start;
}

.about-copy h2 {
    color: var(--ink);
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

.about-copy > p:not(.kicker):not(.about-note) {
    max-width: 34em;
    margin-top: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.about-tags span {
    padding: 7px 14px;
    border: 1px solid #e1efda;
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 13px;
}

.about-note {
    margin-top: 18px;
    color: #8a97a3;
    font-size: 12.5px;
    line-height: 1.7;
}

.about-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

.about-icon svg {
    width: 25px;
    height: 25px;
}

.about-item h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.about-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ==========================================================================
   系统介绍：多端角色
   ========================================================================== */

.system-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.system-role {
    padding: 20px 22px;
    border: 1px solid #d9e9d2;
    border-radius: 16px;
    background: linear-gradient(160deg, #fff 0%, #f5faf2 100%);
}

.system-role-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.system-role-head strong {
    color: var(--green-800);
    font-size: 15.5px;
}

.system-role-head span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8f5e2;
    color: var(--green-700);
    font-size: 11.5px;
}

.system-role p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* ==========================================================================
   使用指南：角色卡片与首次流程
   ========================================================================== */

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.role-card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.role-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.role-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.role-user {
    background: #e7f7df;
    color: #216b12;
}

.role-staff {
    background: #fff1df;
    color: #a95700;
}

.role-supplier {
    background: #e6f1ff;
    color: #1959b5;
}

.role-sub {
    color: var(--muted);
    font-size: 12px;
}

.role-card > p:not(.role-tip) {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.role-list li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.role-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-500);
}

.role-tip {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 12.5px;
    line-height: 1.65;
}

.flow-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    padding: 28px 32px;
    border: 1px solid #d7ead0;
    border-radius: var(--radius);
    background: linear-gradient(105deg, #f1faec 0%, #f8fdf6 60%, #fff 100%);
}

.flow-copy {
    max-width: 36em;
}

.flow-copy .kicker {
    margin-bottom: 8px;
}

.flow-copy h3 {
    color: var(--green-800);
    font-size: 20px;
    font-weight: 700;
}

.flow-copy p:not(.kicker) {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.flow-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
}

.flow-steps li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.flow-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--green-800);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   旧版“员工/供应商怎么进”提示（保留兼容，不再使用）
   ========================================================================== */

.role-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
    padding: 24px 28px;
    border: 1px solid #d7ead0;
    border-radius: var(--radius);
    background: linear-gradient(105deg, #f1faec 0%, #f8fdf6 60%, #fff 100%);
}

.role-note strong {
    color: var(--green-800);
    font-size: 16px;
}

.role-note p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    color: var(--green-700);
    font-size: 14px;
    font-weight: 700;
}

.text-link svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.text-link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   功能
   ========================================================================== */

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

.feature {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.fi-green { background: #e7f7df; color: #2f8f1f; }
.fi-orange { background: #fff1df; color: #e27300; }
.fi-blue { background: #e6f1ff; color: #2471d8; }
.fi-purple { background: #f1eaff; color: #7a42d1; }
.fi-teal { background: #e0f7f4; color: #128673; }
.fi-pink { background: #ffe9ee; color: #d63c62; }

.feature h3 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.feature p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ==========================================================================
   界面预览
   ========================================================================== */

.preview {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(70% 90% at 12% 0%, rgba(82, 196, 26, .18) 0%, transparent 60%),
        linear-gradient(160deg, #0c2d16 0%, #114020 55%, #0b2813 100%);
}

.preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}

.preview .container {
    position: relative;
    z-index: 1;
}

.section-head-light h2 {
    color: #fff;
}

.section-head-light > p:last-child {
    color: rgba(235, 248, 236, .72);
}

.section-head-light .kicker {
    color: #b7f397;
}

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

.phone {
    padding: 9px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: transform .3s ease, background .3s ease;
}

.phone:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .16);
}

.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.phone-screen img {
    width: 100%;
    aspect-ratio: 620 / 1342;
    object-fit: cover;
    object-position: top center;
}

.phone figcaption {
    padding: 14px 4px 4px;
    color: rgba(235, 248, 236, .78);
    font-size: 13px;
    text-align: center;
    letter-spacing: .02em;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-wrap {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
    gap: 56px;
    align-items: start;
}

.faq-wrap .section-head {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    margin-bottom: 0;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 23px 52px 23px 0;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
    transition: color .2s ease;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary:hover {
    color: var(--green-700);
}

.faq-list summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -7px;
    border-right: 2px solid var(--green-600);
    border-bottom: 2px solid var(--green-600);
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(225deg);
    margin-top: -3px;
}

.faq-body {
    padding: 0 52px 24px 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
}

/* ==========================================================================
   帮助区
   ========================================================================== */

.help {
    padding: 72px 0;
    background: var(--green-50);
    border-top: 1px solid #e2efdc;
}

.help-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(82, 196, 26, .22) 0%, transparent 60%),
        linear-gradient(120deg, #14532d 0%, #1a6535 100%);
    color: #fff;
    box-shadow: 0 24px 50px rgba(20, 83, 45, .18);
}

.kicker-light {
    color: #b7f397;
}

.help h2 {
    color: #fff;
}

.help-inner p {
    max-width: 40em;
    margin-top: 10px;
    color: rgba(235, 248, 236, .78);
    font-size: 15px;
}

.btn-light {
    flex: none;
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.btn-light:hover {
    background: var(--amber-light);
    color: #21300f;
    transform: translateY(-2px);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
    padding: 62px 0 26px;
    background: var(--green-950);
    color: rgba(235, 248, 236, .72);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, .7fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand img {
    width: 58px;
    height: auto;
    flex: none;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
}

.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 17px;
    letter-spacing: .02em;
}

.footer-brand p {
    margin-top: 6px;
    color: rgba(235, 248, 236, .55);
    font-size: 13px;
    line-height: 1.75;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h3 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.footer-col a,
.footer-col span {
    color: rgba(235, 248, 236, .62);
    font-size: 13.5px;
    line-height: 1.7;
}

.footer-col a:hover {
    color: #b7f397;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    color: rgba(235, 248, 236, .4);
    font-size: 12.5px;
    line-height: 1.7;
}

.footer-bottom a {
    color: rgba(235, 248, 236, .55);
}

.footer-bottom a:hover {
    color: #b7f397;
}

/* ==========================================================================
   小程序码弹窗
   ========================================================================== */

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

.qr-modal[hidden] {
    display: none;
}

.qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 22, 11, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qr-modal-panel {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    padding: 28px 26px 24px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn .24s ease both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.qr-modal-panel > img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.qr-modal-panel h3 {
    margin-top: 16px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.qr-modal-panel p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-800);
    cursor: pointer;
    transition: background .2s ease;
}

.qr-modal-close:hover {
    background: var(--green-100);
}

.qr-modal-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

/* ==========================================================================
   入场动画（内容默认可见，避免未滚动区域出现空白）
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pulse {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        gap: 44px;
    }

    .hero h1 {
        font-size: clamp(38px, 4.6vw, 52px);
    }

    .about-grid {
        gap: 40px;
    }

    .phone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
        margin: 0 auto;
    }

    .faq-wrap {
        grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
        gap: 40px;
    }
}

@media (max-width: 880px) {
    :root {
        --header-h: 64px;
    }

    .hero {
        padding: 58px 0 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

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

    .hero-card {
        justify-content: center;
    }

    .qr-card {
        max-width: 420px;
    }

    .section {
        padding: 72px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .system-roles {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .flow-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-steps {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .role-note,
    .help-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .faq-wrap .section-head {
        position: static;
        margin-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 22px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 30px rgba(16, 45, 20, .1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav > a {
        padding: 13px 2px;
        border-bottom: 1px solid #f0f5ee;
        font-size: 16px;
    }

    .site-nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: 0 !important;
        padding: 12px 20px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-text strong {
        font-size: 16.5px;
    }

    .brand-text small {
        font-size: 11px;
        letter-spacing: .08em;
    }

    .hero {
        padding: 44px 0 52px;
    }

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

    .lead {
        margin-top: 18px;
        font-size: 15.5px;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: .03em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 26px;
    }

    .btn {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .qr-card {
        max-width: 100%;
        padding: 20px;
    }

    .notice-inner {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .notice-inner p {
        flex-basis: 100%;
        order: 3;
        font-size: 13.5px;
    }

    .notice-inner a {
        margin-left: auto;
        font-size: 13px;
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .section-head h2,
    .help h2 {
        font-size: 29px;
    }

    .about-copy h2 {
        font-size: 29px;
    }

    .about-copy > p:not(.kicker):not(.about-note) {
        font-size: 15px;
    }

    .about-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .about-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .about-icon svg {
        width: 22px;
        height: 22px;
    }

    .role-card {
        padding: 22px 20px;
    }

    .flow-band {
        padding: 22px 20px;
    }

    .flow-steps li {
        flex: 1 1 calc(50% - 4px);
        justify-content: flex-start;
        white-space: normal;
    }

    .step {
        padding: 24px 22px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .feature {
        padding: 22px 18px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .feature h3 {
        font-size: 17px;
    }

    .feature p {
        font-size: 13.5px;
    }

    .phone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: 14px;
    }

    .phone {
        padding: 6px;
        border-radius: 22px;
    }

    .phone-screen {
        border-radius: 17px;
    }

    .phone figcaption {
        padding-top: 10px;
        font-size: 12px;
    }

    .faq-list summary {
        padding: 19px 42px 19px 0;
        font-size: 15.5px;
    }

    .faq-body {
        padding: 0 12px 20px 0;
        font-size: 14px;
    }

    .help {
        padding: 48px 0;
    }

    .help-inner {
        padding: 28px 24px;
    }

    .site-footer {
        padding: 46px 0 22px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 33px;
    }

    .brand-text small {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
