:root {
  --paper: #f3f0e8;
  --surface: #fffdfa;
  --surface-soft: #ebe9df;
  --ink: #20312a;
  --muted: #758178;
  --quiet: #a0a9a0;
  --line: #dedbd1;
  --green: #2f5d4d;
  --green-dark: #1f4135;
  --coral: #df6c4e;
  --gold: #e4bd58;
  --sky: #afd3d1;
  --shadow: 0 16px 34px rgba(31, 49, 40, 0.08);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #d9d5cc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: #d9d5cc; }
body { margin: 0; min-width: 320px; background: #d9d5cc; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(223, 108, 78, .32); outline-offset: 3px; }

.app-shell { width: min(100%, 468px); min-height: 100vh; margin: 0 auto; position: relative; overflow: hidden; background: var(--paper); box-shadow: 0 0 70px rgba(34, 47, 40, .12); }
.page { min-height: 100vh; padding: 0 20px 118px; animation: page-in .24s ease-out; }
@keyframes page-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.topbar { height: 72px; display: flex; align-items: center; gap: 12px; }
.topbar-detail { margin: 0 -20px; padding: 0 20px; background: rgba(243, 240, 232, .92); border-bottom: 1px solid var(--line); }
.brand-dot { width: 17px; height: 17px; flex: 0 0 auto; background: var(--coral); border-radius: 55% 55% 55% 5px; transform: rotate(-18deg); }
.topbar-title { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand-name { font: 700 19px/1 Georgia, "Songti SC", serif; letter-spacing: .02em; }
.demo-pill { padding: 4px 7px; color: var(--coral); background: #f8ddd3; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.topbar-spacer { width: 34px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; font-size: 22px; line-height: 1; }

.eyebrow { margin: 0 0 9px; color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Songti SC", serif; letter-spacing: -.018em; }
h1 { font-size: 38px; line-height: 1.06; margin-bottom: 13px; }
h1 em { color: var(--green); font-style: normal; }
h2 { font-size: 26px; line-height: 1.08; margin-bottom: 0; }
h3 { font-size: 15px; line-height: 1.35; margin: 0 0 5px; }
.muted, .category-head p, .cart-heading p, .showroom-copy > p:not(.eyebrow), .profile-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.65; }

.home-intro { padding: 30px 0 20px; }
.home-intro h1 { max-width: 340px; }
.home-intro .muted { margin-bottom: 0; }
.searchbox { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 5px 18px rgba(40, 61, 49, .045); }
.searchbox > span { color: var(--green); font-size: 24px; line-height: 1; transform: translateY(-2px); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.searchbox input::placeholder { color: #9ba49b; }
.searchbox kbd { padding: 4px 6px; color: var(--quiet); border: 1px solid var(--line); border-radius: 4px; font-size: 9px; }

.hero-banner { width: 100%; height: 214px; position: relative; overflow: hidden; isolation: isolate; margin: 22px 0 15px; padding: 25px; text-align: left; background: #cfdfc8; border: 1px solid #b9ccb5; border-radius: 9px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.hero-copy small { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.hero-copy strong { color: var(--green-dark); font: 700 31px/1.02 Georgia, "Songti SC", serif; }
.hero-copy > span { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.play-badge { position: absolute; z-index: 3; top: 19px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; padding-left: 3px; color: #fff; background: var(--coral); border-radius: 50%; box-shadow: 0 7px 16px rgba(223, 108, 78, .26); font-size: 14px; }
.hero-cloud { position: absolute; z-index: 0; display: block; width: 92px; height: 27px; background: rgba(255, 253, 250, .58); border-radius: 30px; }
.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; bottom: 0; background: inherit; border-radius: 50%; }
.hero-cloud::before { width: 35px; height: 35px; left: 20px; }
.hero-cloud::after { width: 28px; height: 28px; right: 12px; }
.cloud-one { right: 61px; top: 69px; }
.cloud-two { right: -18px; top: 112px; transform: scale(.7); }
.hero-hill { position: absolute; z-index: 1; right: -39px; bottom: -55px; width: 274px; height: 170px; background: #9cbe8d; border-radius: 50% 50% 0 0; transform: rotate(-10deg); }
.hero-hill::after { content: ""; position: absolute; right: 53px; top: 40px; width: 103px; height: 55px; border: 13px solid #f1d98d; border-bottom: 0; border-radius: 50% 50% 0 0; transform: rotate(10deg); }
.hero-slide { position: absolute; z-index: 3; right: 20px; bottom: 16px; color: var(--green-dark); font-size: 10px; font-weight: 800; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 36px; }
.quick-item { min-height: 108px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 11px; text-align: left; background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-icon { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; font-size: 18px; }
.quick-cart { color: #a94d39; background: #f4d5c9; }
.quick-video { color: #3f6c78; background: #d4e9e8; font-size: 10px; }
.quick-user { color: #8b6d21; background: #f2e4b9; }
.quick-item strong { margin-bottom: 5px; font-size: 12px; }
.quick-item small { color: var(--muted); font-size: 10px; white-space: nowrap; }

.section-block { margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.text-button { padding: 7px 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 800; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 5px 17px rgba(40, 61, 49, .035); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:active { transform: translateY(2px); box-shadow: none; }
.product-art { height: 158px; position: relative; overflow: hidden; background: #dbe6d6; }
.product-art-large { height: 235px; border-radius: 6px; }
.uploaded-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-sage { background: #d8e6d5; }
.art-butter { background: #f4e1aa; }
.art-clay { background: #eed7cb; }
.art-sky { background: #cce5e8; }
.art-coral { background: #f3c8b5; }
.art-sun { position: absolute; width: 30px; height: 30px; top: 15px; right: 16px; background: #f1c95f; border-radius: 50%; opacity: .92; }
.art-shape { position: absolute; display: block; }
.art-shape-a { width: 92px; height: 58px; bottom: 17px; left: 17px; background: rgba(47, 93, 77, .8); border-radius: 50% 50% 10px 10px; transform: rotate(-7deg); }
.art-shape-b { width: 64px; height: 74px; right: 24px; bottom: 11px; background: rgba(223, 108, 78, .8); border-radius: 12px 12px 28px 28px; transform: rotate(8deg); }
.art-sky .art-shape-a { background: rgba(70, 125, 137, .75); }
.art-butter .art-shape-b { background: rgba(220, 147, 69, .8); }
.art-clay .art-shape-a { background: rgba(172, 104, 83, .78); }
.art-label { position: absolute; left: 13px; top: 12px; padding: 5px 7px; color: var(--green-dark); background: rgba(255, 253, 250, .78); border-radius: 4px; font: 700 11px Georgia, serif; }
.art-caption { position: absolute; right: 11px; bottom: 8px; color: rgba(33, 67, 55, .54); font-size: 8px; letter-spacing: .12em; }
.heart-button { position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255, 253, 250, .84); border-radius: 50%; color: var(--green); font-size: 18px; }
.product-info { padding: 12px 12px 11px; }
.product-category { margin: 0 0 5px; color: var(--coral); font-size: 10px; font-weight: 800; }
.product-detail { overflow: hidden; margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-footer strong { color: var(--green-dark); font-size: 14px; }
.add-button { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 20px; line-height: 1; }
.data-note { margin: 20px 0 0; color: #999f97; font-size: 10px; line-height: 1.5; text-align: center; }

.bottom-nav { position: fixed; z-index: 8; bottom: 0; width: min(100%, 468px); height: 82px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 9px 10px max(9px, env(safe-area-inset-bottom)); background: rgba(255, 253, 250, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(32, 49, 40, .045); backdrop-filter: blur(16px); }
.nav-item { position: relative; min-width: 44px; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 1px; color: #99a198; background: transparent; font-size: 20px; }
.nav-item small { font-size: 10px; white-space: nowrap; }
.nav-item.active { color: var(--green); font-weight: 800; }
.nav-item.active::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; background: var(--coral); border-radius: 3px; }

.category-head { padding: 25px 0 18px; }
.category-head h1 { margin-bottom: 9px; }
.category-head p:last-child { margin-bottom: 0; }
.page-category .searchbox { margin-bottom: 20px; }
.category-layout { display: grid; grid-template-columns: 103px minmax(0, 1fr); gap: 15px; align-items: start; }
.subnav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 3px; }
.subnav-item { position: relative; min-height: 52px; padding: 7px 4px 7px 13px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; line-height: 1.25; }
.subnav-item span { display: block; margin-bottom: 4px; color: #b1b9b1; font-size: 9px; letter-spacing: .1em; }
.subnav-item.active { color: var(--green-dark); background: #e2ebdf; border-radius: 5px; font-weight: 800; }
.subnav-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--coral); border-radius: 2px; }
.results-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.category-results .product-grid { gap: 9px; }
.category-results .product-art { height: 106px; }
.category-results .product-info { padding: 9px; }
.category-results .product-detail { margin-bottom: 8px; }
.empty-search { grid-column: 1 / -1; min-height: 250px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.empty-search span { color: var(--coral); font-size: 34px; }
.empty-search h3 { margin: 12px 0 6px; }
.empty-search p { font-size: 11px; }

.cart-heading, .profile-card { padding: 28px 0 23px; }
.cart-heading h1 { margin-bottom: 8px; }
.cart-heading p { max-width: 290px; margin-bottom: 0; }
.empty-state { padding: 68px 0 42px; text-align: center; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-visual { position: relative; width: 150px; height: 124px; margin: 0 auto 28px; background: #e3ecde; border-radius: 50%; }
.empty-visual span { position: absolute; display: block; background: var(--green); }
.empty-visual span:nth-child(1) { width: 62px; height: 47px; left: 36px; top: 38px; border-radius: 8px 8px 20px 20px; }
.empty-visual span:nth-child(2) { width: 41px; height: 35px; left: 55px; top: 16px; background: var(--gold); border-radius: 50% 50% 8px 8px; }
.empty-visual span:nth-child(3) { width: 9px; height: 9px; left: 68px; top: 30px; background: var(--coral); border-radius: 50%; }
.secondary-button, .primary-button { min-height: 46px; padding: 0 17px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.secondary-button { color: var(--green-dark); background: #e2ebdf; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; background: var(--green); }
.primary-button span { font-size: 17px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.cart-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 35px; gap: 11px; align-items: center; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.cart-row .product-art { height: 76px; border-radius: 5px; }
.cart-row h3 { font-size: 13px; }
.cart-row p { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.cart-row strong { color: var(--green-dark); font-size: 12px; }

.video-cover { height: 370px; position: relative; overflow: hidden; isolation: isolate; margin: 0 -20px; background: #c7dbc1; }
.video-cover::before { content: ""; position: absolute; inset: 0; background: #c7dbc1; }
.video-horizon { position: absolute; left: 0; right: -20px; bottom: -27px; height: 200px; background: #557d65; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.video-horizon::after { content: ""; position: absolute; left: 56px; top: 12px; width: 150px; height: 82px; border: 18px solid #e7bc68; border-bottom: 0; border-radius: 100px 100px 0 0; transform: rotate(5deg); }
.video-kicker { position: absolute; z-index: 2; top: 23px; left: 22px; color: rgba(255, 253, 250, .9); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.video-play { position: absolute; z-index: 2; top: 45%; left: 50%; width: 68px; height: 68px; display: grid; place-items: center; padding-left: 4px; color: #fff; background: var(--coral); border: 7px solid rgba(255, 253, 250, .44); border-radius: 50%; font-size: 18px; transform: translate(-50%, -50%); }
.video-time { position: absolute; z-index: 2; right: 21px; bottom: 22px; padding: 5px 8px; color: #fff; background: rgba(35, 53, 45, .58); border-radius: 4px; font-size: 10px; }
.showroom-copy { padding: 27px 0 21px; }
.showroom-copy h1 { max-width: 325px; margin-bottom: 12px; font-size: 31px; }
.showroom-copy > p:not(.eyebrow) { max-width: 350px; margin-bottom: 18px; }
.point-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.point-list span { padding: 7px 9px; color: var(--green-dark); background: #e2ebdf; border-radius: 4px; font-size: 10px; }
.share-button { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 800; }
.related-section { padding-top: 19px; border-top: 1px solid var(--line); }
.space-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.space-card { height: 114px; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 12px; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 800; }
.space-card::before { content: ""; position: absolute; inset: 0; background: #6f9b77; }
.space-card::after { content: ""; position: absolute; right: -20px; bottom: -25px; width: 120px; height: 80px; background: #b9d3a5; border-radius: 50%; }
.space-card-two::before { background: #b8785f; }
.space-card-two::after { background: #f0d899; }
.space-card span { position: relative; z-index: 1; }

.profile-card { display: grid; grid-template-columns: 61px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 7px 0 17px; border-bottom: 1px solid var(--line); }
.avatar { width: 61px; height: 61px; display: grid; place-items: center; color: var(--green-dark); background: #dce9d5; border-radius: 50%; font: 24px Georgia, serif; }
.profile-card h1 { margin-bottom: 5px; font-size: 21px; }
.profile-card p { margin-bottom: 0; font-size: 11px; }
.login-button { padding: 10px 15px; color: #fff; background: var(--green); border-radius: 5px; font-size: 11px; font-weight: 800; }
.order-section { padding: 4px 0 23px; border-bottom: 1px solid var(--line); }
.order-demo { padding: 4px 7px; color: var(--coral); background: #f8ddd3; border-radius: 99px; font-size: 9px; font-weight: 800; }
.order-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.order-states button { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 1px solid var(--line); border-radius: 6px; }
.order-states span { color: var(--green); font: 19px Georgia, serif; }
.order-states small { color: var(--muted); font-size: 10px; }
.service-list { padding-top: 25px; }
.service-list h2 { margin-bottom: 13px; font-size: 22px; }
.service-list button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }
.service-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: #e2ebdf; border-radius: 7px; font-size: 17px; }
.service-list strong { font-size: 12px; }
.service-list small { grid-column: 2; grid-row: 2; margin-top: -7px; color: var(--muted); font-size: 10px; }
.service-list button > span:last-child { grid-column: 3; grid-row: 1 / 3; color: var(--green); font-size: 19px; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: end center; padding: 16px; background: rgba(32, 45, 38, .42); }
.privacy-modal, .product-modal { width: min(100%, 424px); position: relative; padding: 28px 22px 19px; background: var(--surface); border-radius: 12px 12px 6px 6px; box-shadow: var(--shadow); animation: sheet-in .24s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; z-index: 1; top: 10px; right: 12px; width: 38px; height: 38px; color: var(--muted); background: transparent; font-size: 24px; }
.privacy-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; color: var(--green); background: #e2ebdf; border-radius: 50%; font: 21px Georgia, serif; }
.privacy-modal h2 { margin-bottom: 10px; font-size: 24px; }
.privacy-modal > p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.privacy-check { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-check input { margin-top: 2px; accent-color: var(--green); }
.modal-cancel { display: block; width: 100%; margin-top: 12px; color: var(--muted); text-align: center; }
.product-modal { padding: 14px; }
.product-modal .product-art-large { margin-bottom: 18px; }
.product-modal-copy { padding: 0 6px 4px; }
.product-modal-copy h2 { margin-bottom: 6px; }
.product-modal-copy > p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.product-modal-copy > strong { display: block; margin-bottom: 17px; color: var(--green-dark); font-size: 18px; }
.modal-note { margin-top: 12px !important; margin-bottom: 0 !important; font-size: 10px !important; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 98px; max-width: calc(100vw - 40px); padding: 11px 15px; color: #fff; background: rgba(31, 52, 43, .94); border-radius: 6px; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 700px) {
  .app-shell { margin: 24px auto; border-radius: 14px; min-height: calc(100vh - 48px); }
  .bottom-nav { bottom: 24px; border-radius: 0 0 14px 14px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 16px; }
  .topbar-detail { margin-inline: -16px; padding-inline: 16px; }
  .hero-banner { padding-inline: 20px; }
  .hero-copy strong { font-size: 28px; }
  .category-layout { grid-template-columns: 91px minmax(0, 1fr); gap: 10px; }
  .product-grid { gap: 8px; }
}
