:root {
  --green: #12b872;
  --green-dark: #078c55;
  --orange: #ff6b28;
  --text: #202823;
  --muted: #8c938f;
  --line: #edf0ee;
  --surface: #fff;
  --page: #f5f7f6;
}
* { box-sizing: border-box; }
html { background: #e7ebe9; }
body { margin: 0; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.phone-page { width: 100%; max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--page); position: relative; overflow-x: hidden; box-shadow: 0 0 32px rgba(0,0,0,.08); }
.home-head { min-height: 186px; padding: 18px 16px 22px; background: #daf9e7 url("bg_header.png") center top/100% 166px no-repeat; }
.nav-title { display: flex; align-items: center; justify-content: center; height: 42px; font-size: 20px; font-weight: 700; }
.search { height: 42px; margin-top: 9px; padding: 0 6px 0 15px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(13,167,96,.25); border-radius: 23px; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(0,128,77,.08); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; color: #333; background: transparent; }
.search button { border: 0; border-radius: 20px; color: #fff; background: var(--green); padding: 8px 17px; }
.section { margin: 12px 12px 0; padding: 15px 13px; background: var(--surface); border-radius: 14px; }
.category-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.category { border: 0; padding: 0; color: #626864; background: none; }
.category .bubble { width: 52px; height: 52px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg,#eefcf4,#dcf8e8); box-shadow: inset 0 0 0 1px rgba(17,184,114,.08); overflow: hidden; }
.category .bubble img { width: 100%; height: 100%; display: block; object-fit: contain; }
.category span:last-child { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.category.active { color: var(--green-dark); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 86px 86px; gap: 10px; }
.feature { border-radius: 13px; position: relative; overflow: hidden; padding: 13px; background-size: cover; background-position: center; }
.feature.live { grid-row: 1 / 3; color: #fff; background: linear-gradient(160deg,#44d49a,#0ca96c); }
.feature.open { background: #fff3dc url("bg_open_store.png") center/cover no-repeat; }
.feature.promoter { background: #e9fff2 url("bg_promoter.png") center/cover no-repeat; }
.feature h3 { margin: 0 0 5px; font-size: 17px; }
.feature p { margin: 0; max-width: 120px; opacity: .78; font-size: 11px; line-height: 1.5; }
.feature.live:after { content: "LIVE"; position: absolute; right: -8px; bottom: 13px; font-weight: 900; font-style: italic; font-size: 43px; opacity: .18; }
.banner { display: block; width: 100%; border-radius: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 1px 12px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head h2:after { content: ""; display: inline-block; width: 55px; height: 14px; margin-left: 7px; background: url("decor_hot_title.png") center/contain no-repeat; }
.section-head button { padding: 0; border: 0; color: #8b928e; background: none; font-size: 13px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.product-card { display: block; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #f0f1f0; box-shadow: 0 4px 16px rgba(27,50,38,.05); }
.product-image { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; background: linear-gradient(145deg,#f8faf9,#eff7f2); }
.product-info { padding: 9px 9px 11px; }
.product-title { height: 42px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 21px; }
.product-meta { margin-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; }
.price { color: #f04b27; font-weight: 800; font-size: 20px; }
.price small { font-size: 12px; }
.sales { color: #a3a8a5; font-size: 11px; }
.bottom-nav { position: sticky; bottom: 0; height: 62px; margin-top: 14px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: #7a817d; font-size: 11px; }
.bottom-nav a b { font-size: 20px; line-height: 1; }
.bottom-nav a.active { color: var(--green); }
.detail-head { height: 64px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; background: #e3fbec url("bg_top.png") center top/100% auto no-repeat; }
.round-btn { width: 38px; height: 38px; border: 0; display: grid; place-items: center; border-radius: 50%; color: #202823; background: rgba(255,255,255,.88); box-shadow: 0 3px 12px rgba(0,0,0,.08); font-size: 20px; }
.detail-head strong { font-size: 18px; }
.gallery { position: relative; background: #fff; }
.gallery-main { width: 100%; aspect-ratio: 1/1; display: block; object-fit: contain; padding: 24px; background: linear-gradient(145deg,#fbfdfc,#eef8f2); }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #c8ceca; }
.dots i.active { width: 17px; border-radius: 4px; background: var(--green); }
.goods-panel { margin-top: 10px; padding: 16px; background: #fff; }
.price-line { display: flex; align-items: baseline; gap: 8px; }
.price-line .price { font-size: 28px; }
.original { color: #a6aaa7; text-decoration: line-through; font-size: 13px; }
.sold { margin-left: auto; color: #9ca19e; font-size: 12px; }
.goods-title { margin: 11px 0 5px; font-size: 18px; line-height: 1.45; }
.goods-subtitle { color: #89908c; font-size: 13px; line-height: 1.55; }
.share-earn { margin: 11px 12px 0; padding: 13px 15px; border-radius: 13px; display: flex; align-items: center; background: linear-gradient(100deg,#e3fff0,#f4ffea); color: #14784e; }
.share-earn b { font-size: 15px; }
.share-earn span { margin-left: 9px; font-size: 12px; opacity: .75; }
.share-earn button { margin-left: auto; border: 0; border-radius: 16px; padding: 7px 12px; color: #fff; background: var(--green); }
.shop-card { margin: 10px 12px 0; padding: 14px; border-radius: 13px; display: flex; align-items: center; background: #fff; }
.shop-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: #dcf8e7; color: var(--green-dark); font-size: 23px; }
.shop-name { margin-left: 10px; }
.shop-name b { display: block; font-size: 15px; }
.shop-name span { color: #9ca29e; font-size: 11px; }
.shop-card button { margin-left: auto; border: 1px solid var(--green); border-radius: 17px; padding: 6px 11px; color: var(--green); background: #fff; }
.detail-content { margin-top: 10px; padding: 0 14px 92px; background: #fff; }
.tabs { height: 52px; display: flex; justify-content: center; gap: 58px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; border: 0; color: #747a76; background: none; }
.tabs button.active { color: #151a17; font-weight: 700; }
.tabs button.active:after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 24px; height: 3px; transform: translateX(-50%); border-radius: 3px; background: var(--green); }
.description { padding: 19px 1px; color: #626964; font-size: 14px; line-height: 1.8; }
.description img { width: 100%; display: block; margin-top: 14px; border-radius: 10px; }
.review { display: none; padding: 25px 0; text-align: center; color: #9aa09c; }
.action-bar { position: fixed; z-index: 8; left: 50%; bottom: 0; width: 100%; max-width: 430px; transform: translateX(-50%); min-height: 72px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
.cart-link { width: 56px; border: 0; background: none; color: #606763; font-size: 11px; }
.cart-link img { width: 26px; display: block; margin: 0 auto 3px; }
.action { flex: 1; height: 44px; border: 0; border-radius: 23px; font-weight: 700; }
.action.add { color: #0b8853; background: #dff9ea; }
.action.buy { color: #fff; background: linear-gradient(100deg,#20c47b,#08a964); }
.action-bar .action.buy:only-child { flex: none; width: 100%; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 110px; transform: translate(-50%,20px); padding: 10px 16px; border-radius: 20px; color: #fff; background: rgba(16,22,18,.82); opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (min-width: 700px) { body { padding: 24px 0; } .phone-page { border-radius: 22px; min-height: calc(100vh - 48px); } }
