:root {
    --brand: #16836f;
    --brand-dark: #0d5f52;
    --brand-soft: #e9f7f3;
    --ink: #19322d;
    --muted: #6d7f7b;
    --surface: #ffffff;
    --canvas: #f5f8f7;
    --line: #dce7e4;
    --warning-soft: #fff6dc;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.brand-text {
    color: var(--brand) !important;
}

.bg-brand {
    background-color: var(--brand) !important;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

.public-navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(220, 231, 228, .85);
    backdrop-filter: blur(14px);
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #20a68e, #116d5d);
    box-shadow: 0 8px 20px rgba(22, 131, 111, .22);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 68px;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 255, 255, .38) 0, rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, #dff5ee 0%, #eef9f5 52%, #fff8e9 100%);
}

.hero::after {
    position: absolute;
    right: -80px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    content: "";
    border: 50px solid rgba(22, 131, 111, .06);
    border-radius: 50%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(22, 131, 111, .14);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(2.25rem, 6vw, 4.7rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.hero-lead {
    max-width: 580px;
    color: #536a65;
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-panel,
.section-card,
.form-shell {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(220, 231, 228, .9);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(38, 73, 66, .08);
}

.hero-panel {
    position: relative;
    z-index: 1;
    padding: 1.3rem;
}

.service-visual {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.7rem;
    color: #fff;
    background: linear-gradient(155deg, #197f6d, #0e5449);
    border-radius: 18px;
}

.service-visual .visual-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: var(--brand-dark);
    background: #effbf7;
    border-radius: 20px;
    font-size: 1.8rem;
}

.mini-stat {
    padding: .9rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border-radius: 14px;
}

.section-space {
    padding: 76px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 720;
    letter-spacing: -.025em;
}

.step-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.step-number {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 13px;
    font-weight: 700;
}

.product-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card {
    position: relative;
    height: 100%;
    padding: 1.35rem;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 18px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #9dcfc3;
}

.product-option input:checked + .product-card {
    border-color: var(--brand);
    box-shadow: 0 10px 25px rgba(22, 131, 111, .13);
}

.product-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #fff;
    background: #cedbd8;
    border-radius: 50%;
}

.product-option input:checked + .product-card .product-check {
    background: var(--brand);
}

.price {
    color: var(--brand-dark);
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -.04em;
}

.price small {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 0;
}

.form-shell {
    padding: clamp(1.2rem, 4vw, 2.4rem);
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--line);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: #68b9a7;
    box-shadow: 0 0 0 .22rem rgba(22, 131, 111, .11);
}

.summary-box {
    padding: 1.2rem;
    background: var(--brand-soft);
    border: 1px solid #d1ebe4;
    border-radius: 16px;
}

.mobile-submit {
    display: none;
}

.success-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.4rem;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-size: 2.1rem;
    box-shadow: 0 12px 30px rgba(22, 131, 111, .25);
}

/* Admin */
.admin-body {
    min-height: 100vh;
    background: #f4f7f6;
}

.admin-sidebar {
    position: fixed;
    z-index: 1030;
    top: 0;
    bottom: 0;
    left: 0;
    width: 248px;
    padding: 1.3rem 1rem;
    color: #d8ebe6;
    background: #123c34;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .25rem;
    padding: .78rem .9rem;
    color: #bcd1cc;
    border-radius: 11px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.admin-main {
    min-height: 100vh;
    margin-left: 248px;
}

.admin-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    padding: .9rem 1.5rem;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.admin-content {
    padding: 1.5rem;
}

.metric-card {
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(40, 70, 64, .04);
}

.metric-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 13px;
    font-size: 1.2rem;
}

.metric-value {
    margin-top: .9rem;
    font-size: 1.65rem;
    font-weight: 740;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(40, 70, 64, .035);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.table > :not(caption) > * > * {
    padding: .85rem 1rem;
    border-color: #edf2f0;
}

.table thead th {
    color: #71817e;
    background: #fbfcfc;
    font-size: .8rem;
    font-weight: 650;
    white-space: nowrap;
}

.empty-state {
    padding: 3.5rem 1rem;
    color: var(--muted);
    text-align: center;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    padding: 1rem;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 131, 111, .17), transparent 32%),
        #eff5f3;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(29, 61, 54, .12);
}

@media (max-width: 991.98px) {
    .hero {
        padding: 58px 0 52px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    body.public-order-page {
        padding-bottom: 76px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .section-space {
        padding: 52px 0;
    }

    .hero-panel {
        padding: .8rem;
    }

    .service-visual {
        min-height: 265px;
        padding: 1.25rem;
    }

    .form-shell {
        border-radius: 18px;
    }

    .desktop-submit {
        display: none;
    }

    .mobile-submit {
        position: fixed;
        z-index: 1025;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .7rem 1rem;
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(42, 68, 62, .08);
        backdrop-filter: blur(12px);
    }

    .admin-content,
    .admin-topbar {
        padding-right: .85rem;
        padding-left: .85rem;
    }
}

