:root {
    --green-900: #0d3b2e;
    --green-800: #155240;
    --green-700: #1a5d4c;
    --green-500: #2f8a72;
    --gold: #c9a962;
    --gold-soft: #f4e9c9;
    --ink: #18231f;
    --muted: #6b7470;
    --line: #e6ece8;
    --bg: #f3f7f4;
    --card: #ffffff;
    --shadow: 0 14px 38px rgba(13, 59, 46, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #dfe8e3;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a,
button,
input,
select {
    font: inherit;
}

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

button {
    border: 0;
}

.mini-app {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 16px 92px;
    background:
        radial-gradient(circle at 85% 5%, rgba(201, 169, 98, 0.22), transparent 28%),
        linear-gradient(180deg, #f9fcfa 0%, var(--bg) 36%, #edf5f0 100%);
    position: relative;
    overflow: hidden;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -16px;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(18px);
    background: rgba(249, 252, 250, 0.82);
    border-bottom: 1px solid rgba(230, 236, 232, 0.7);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(13, 59, 46, 0.16);
}

.brand-name {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--green-900);
}

.brand-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.header-phone {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-700);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(26, 93, 76, 0.24);
}

.phone-icon {
    width: 16px;
    height: 16px;
    display: block;
    border: 2px solid #fff;
    border-left-width: 5px;
    border-top-color: transparent;
    border-radius: 4px 4px 8px 8px;
    transform: rotate(-28deg);
}

.hero {
    margin-top: 14px;
    padding: 18px;
    color: white;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(13, 59, 46, 0.95), rgba(26, 93, 76, 0.88)),
        url("../images/cleaning/green-clean.jpg") center/cover;
    box-shadow: var(--shadow);
}

.hero-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #efe5bf;
    font-size: 11px;
    font-weight: 700;
}

.hero h1 {
    margin: 16px 0 10px;
    font-size: 29px;
    line-height: 1.16;
    letter-spacing: 0;
}

.hero p {
    margin: 0;
    font-size: 13px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.primary-btn,
.ghost-btn,
.submit-btn {
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.primary-btn,
.submit-btn {
    background: linear-gradient(135deg, #d8ba6e, var(--gold));
    color: #fff;
    box-shadow: 0 10px 24px rgba(201, 169, 98, 0.28);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
}

.hero-card {
    margin-top: 18px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.hero-card-caption {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-card-caption strong {
    font-size: 15px;
}

.hero-card-caption span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.quick-panel {
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quick-item {
    padding: 12px 8px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(13, 59, 46, 0.07);
    text-align: center;
}

.quick-item strong,
.quick-item span {
    display: block;
}

.quick-item strong {
    color: var(--green-700);
    font-size: 15px;
    margin-bottom: 3px;
}

.quick-item span {
    color: var(--muted);
    font-size: 11px;
}

.section,
.booking-card {
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 236, 232, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(13, 59, 46, 0.07);
}

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

.section-head.row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-head span {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 800;
}

.section-head h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 21px;
    line-height: 1.28;
}

.section-head em {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: #8b6c28;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.service-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-scene-card {
    position: relative;
    min-height: 142px;
    aspect-ratio: 1 / 0.84;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--green-900);
    color: white;
    text-align: left;
    border: 1px solid rgba(26, 93, 76, 0.12);
    box-shadow: 0 10px 24px rgba(13, 59, 46, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-scene-card.active {
    border-color: rgba(201, 169, 98, 0.9);
    box-shadow: 0 12px 28px rgba(13, 59, 46, 0.14);
}

.service-scene-card:active {
    transform: scale(0.98);
}

.service-scene-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-scene-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 59, 46, 0.05) 24%, rgba(13, 59, 46, 0.28) 56%, rgba(7, 33, 25, 0.88) 100%),
        linear-gradient(90deg, rgba(7, 33, 25, 0.42), rgba(7, 33, 25, 0.08));
}

.service-scene-card div {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-scene-card strong,
.service-scene-card span {
    display: block;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

.service-scene-card strong {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.service-scene-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    line-height: 1.35;
}

.price-list,
.process-list,
.case-list {
    display: grid;
    gap: 10px;
}

.price-card {
    padding: 13px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    background: #f6faf7;
}

.price-card strong,
.price-card small,
.price-card b {
    display: block;
}

.price-card strong {
    font-size: 15px;
    color: var(--ink);
}

.price-card small {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.price-card b {
    flex: 0 0 auto;
    color: var(--green-700);
    font-size: 15px;
}

.price-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff8e7;
    color: #8b6c28;
    font-size: 11px;
    line-height: 1.55;
}

.process-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas:
        "num title"
        "num desc";
    gap: 2px 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f6faf7;
}

.process-item b {
    grid-area: num;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-700);
    color: white;
    font-size: 12px;
}

.process-item span {
    grid-area: title;
    font-size: 15px;
    font-weight: 800;
    color: var(--green-900);
}

.process-item small {
    grid-area: desc;
    color: var(--muted);
    font-size: 11px;
}

.case-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #f6faf7;
}

.case-card img {
    width: 96px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.case-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.case-card strong {
    color: var(--green-900);
    font-size: 15px;
}

.case-card span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.case-list:not(.expanded) .is-extra {
    display: none;
}

.scene-more-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.scene-more-btn {
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(26, 93, 76, 0.18);
    border-radius: 999px;
    background: white;
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(13, 59, 46, 0.08);
}

.scene-more-btn svg {
    transition: transform 0.2s ease;
}

.scene-more-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.booking-card {
    background: linear-gradient(180deg, white, #f7fbf8);
}

.booking-form {
    display: grid;
    gap: 10px;
}

.booking-form label {
    display: grid;
    gap: 6px;
    color: var(--green-900);
    font-size: 12px;
    font-weight: 800;
}

.booking-form input,
.booking-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: #fbfdfb;
    color: var(--ink);
    font-size: 13px;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: rgba(26, 93, 76, 0.5);
    box-shadow: 0 0 0 3px rgba(26, 93, 76, 0.08);
}

.submit-btn {
    width: 100%;
    margin-top: 4px;
    border: 0;
}

.green-entry {
    margin-top: 12px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid rgba(26, 93, 76, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--green-900);
    box-shadow: 0 8px 22px rgba(13, 59, 46, 0.05);
}

.green-entry-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(26, 93, 76, 0.08);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 900;
}

.green-entry-copy strong,
.green-entry-copy small {
    display: block;
}

.green-entry-copy strong {
    font-size: 14px;
    line-height: 1.25;
}

.green-entry-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.green-entry-icon {
    color: rgba(26, 93, 76, 0.58);
}

.app-footer {
    padding: 24px 0 10px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}

.app-footer strong,
.app-footer span,
.app-footer a {
    display: block;
}

.app-footer strong {
    color: var(--green-900);
    font-size: 14px;
    margin-bottom: 4px;
}

.app-footer a {
    margin-top: 6px;
    color: inherit;
    text-decoration: none;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 40;
    width: min(100%, 430px);
    transform: translateX(-50%);
    padding: 8px 16px max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(230, 236, 232, 0.9);
}

.bottom-nav a {
    min-height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.bottom-nav a.active {
    color: var(--green-700);
    background: rgba(26, 93, 76, 0.1);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 80;
    width: min(330px, calc(100vw - 32px));
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(13, 59, 46, 0.94);
    color: white;
    text-align: center;
    font-size: 13px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 700px) {
    .mini-app {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 34px;
        box-shadow: 0 24px 80px rgba(13, 59, 46, 0.22);
    }

    .app-header {
        border-radius: 34px 34px 0 0;
    }
}

@media (max-width: 360px) {
    .mini-app {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-header {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .section,
    .booking-card {
        padding: 15px;
    }
}
