:root{
  --green:#0b463b;--green-2:#155448;--green-soft:#e9f0eb;--gold:#b8893f;
  --gold-deep:#976d2f;--gold-soft:#eee0c3;--ink:#123a34;--muted:#737b74;
  --paper:#f5f2e9;--surface:#fffdf9;--line:#e8e1d4;
  --shadow:0 10px 30px rgba(24,54,44,.075);--shadow-raised:0 18px 44px rgba(24,54,44,.12);
  --radius-sm:12px;--radius-md:16px;--radius-lg:20px;--ease:cubic-bezier(.2,.7,.2,1)
}
html{color-scheme:light;background:#e8e5dc;scroll-behavior:smooth}
body{background:radial-gradient(circle at 18% 4%,rgba(255,253,247,.96),transparent 35%),linear-gradient(145deg,#dcd9cf,#efede7 55%,#d8d7d0);font-synthesis:none;-webkit-font-smoothing:antialiased}
.phone{background:linear-gradient(180deg,#f8f6f0 0,#f5f2e9 32%,#f5f2e9 100%);box-shadow:0 24px 80px rgba(18,45,37,.16)}
.page{padding:20px 16px calc(100px + env(safe-area-inset-bottom));min-height:calc(100dvh - 68px)}
.page.active{animation:page-in .28s var(--ease) both}.home-head{min-height:54px;margin-bottom:13px}
.brand-lockup{display:grid;gap:1px}.brand-lockup small{font-size:10px;line-height:1.4;color:#858a82;letter-spacing:1.8px}
.brand{font-size:31px;line-height:1.05;letter-spacing:3px;color:#083f37}
.search-wrap{height:46px;padding:0 16px;border:1px solid rgba(11,70,59,.08);background:rgba(255,255,255,.88);box-shadow:0 7px 22px rgba(24,54,44,.055),inset 0 0 0 1px rgba(255,255,255,.65);transition:border-color .18s var(--ease),box-shadow .18s var(--ease)}
.search-wrap .icon{width:16px;height:16px}.search-wrap input{font-size:16px}.search-wrap input::placeholder{color:#989e98}
.banner{margin-top:14px;aspect-ratio:1.98/1;border-radius:var(--radius-lg);box-shadow:0 14px 34px rgba(25,52,42,.12);isolation:isolate}
.banner:after{content:"";position:absolute;inset:0;z-index:2;border:1px solid rgba(255,255,255,.5);border-radius:inherit;box-shadow:inset 0 -28px 50px rgba(15,51,42,.08);pointer-events:none}
.banner-track{transition:transform .42s var(--ease)}.dots{z-index:3;bottom:3px;gap:0}
.dots button:after{width:6px;height:6px;background:rgba(255,255,255,.64);box-shadow:0 1px 4px rgba(0,0,0,.16)}.dots button.on:after{width:15px;border-radius:5px;background:#fff;transform:none}
.slogan{height:62px;margin:13px 4px 14px;gap:10px;border-top:0;border-bottom:1px solid rgba(184,137,63,.2)}
.slogan span{width:27px;height:27px;background:rgba(255,253,249,.7);box-shadow:0 4px 12px rgba(184,137,63,.08)}.slogan strong{font-size:16px;letter-spacing:.7px}
.quick-grid{gap:17px 5px;padding:19px 9px 18px;border:1px solid rgba(184,137,63,.11);border-radius:var(--radius-lg);background:rgba(255,253,249,.94);box-shadow:var(--shadow)}
.quick-grid button{min-height:76px;padding:2px 0;color:#173f38;font-size:12px;transition:transform .16s var(--ease),color .16s var(--ease)}
.quick-grid img{width:49px;height:49px;margin-bottom:8px;border:1px solid rgba(184,137,63,.13);border-radius:15px;box-shadow:0 6px 14px rgba(35,58,49,.08)}
.tongue-card{position:relative;height:92px;margin:15px 0 19px;padding:0 16px 0 18px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-lg);background:linear-gradient(128deg,#0a4439,#1d5a4a 66%,#526b4e);color:#fff;box-shadow:0 14px 32px rgba(11,70,59,.17)}
.tongue-card:before{content:"元";position:absolute;right:71px;top:-30px;color:rgba(255,255,255,.035);font-family:KaiTi,serif;font-size:120px;line-height:1}
.tongue-card span,.tongue-card b,.tongue-card i{position:relative;z-index:1}.tongue-card span{gap:6px}.tongue-card strong{font-size:17px;letter-spacing:.3px}.tongue-card small{color:rgba(255,255,255,.7);font-size:12px}
.tongue-card b{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#d5af66,#ac7b36);box-shadow:0 8px 18px rgba(0,0,0,.15)}.tongue-card i{color:rgba(255,255,255,.68)}
.home-zone{margin-bottom:16px;padding:13px;border:1px solid rgba(184,137,63,.1);border-radius:var(--radius-lg);background:rgba(255,253,249,.96);box-shadow:var(--shadow)}
.home-zone .section-cover{height:116px;border-radius:var(--radius-md)}.section-cover:after{content:none;display:none;background:none}.section-cover img{opacity:1}
.zone-cats{gap:9px;margin:11px 0}.zone-cats button{height:52px;min-height:52px;padding-left:10px;border:1px solid rgba(184,137,63,.08);border-radius:11px;background:#f8f5ed;color:#304a43}.zone-cats img{height:40px;border-radius:8px}
.zone-products{gap:10px;scroll-snap-type:x proximity}.zone-product{flex-basis:121px;min-height:158px;border:1px solid rgba(11,70,59,.055);border-radius:12px;background:#faf8f2;scroll-snap-align:start}.zone-product img{width:121px;height:88px}
.zone-product b{height:37px;padding:6px 8px 0;color:#253f39}.zone-product strong{padding-left:8px;color:#173f38;font-variant-numeric:tabular-nums}.zone-product i{right:7px;bottom:7px;width:25px;height:25px;background:var(--green);box-shadow:0 5px 12px rgba(11,70,59,.18)}
.zone-more{height:38px;margin-top:11px;border:1px solid rgba(184,137,63,.12);border-radius:11px;background:#f6f1e7;color:var(--gold-deep);font-weight:650}
.product-grid{gap:12px}.product-card{border:1px solid rgba(184,137,63,.09);border-radius:var(--radius-md);box-shadow:var(--shadow)}.product-card img{background:#f2efe7}.product-card h3{margin:10px 11px 4px;color:#213d37}.product-card p{margin:0 11px;color:#173f38;font-variant-numeric:tabular-nums}
.plain-head h1{font-size:27px;letter-spacing:.3px}.plain-head p{color:var(--muted)}
.catalog aside{background:#efebe2}.catalog aside button{height:52px;border-radius:0 12px 12px 0}.catalog aside button.active{box-shadow:4px 7px 18px rgba(28,53,45,.06)}
.catalog-hero{height:92px;padding:18px;border-radius:var(--radius-md);background:linear-gradient(130deg,#0a4439,#2b6555);box-shadow:0 10px 24px rgba(11,70,59,.15)}
.catalog-chip{background:var(--green-soft);color:var(--green);border:1px solid rgba(11,70,59,.08)}
.catalog-item,.cart-item,.data-card,.sub-product,.course-card,.material-info,.settings-list{border:1px solid rgba(184,137,63,.09);border-radius:var(--radius-md);box-shadow:0 7px 22px rgba(24,54,44,.055)}
.catalog-item button,.sub-product button{background:var(--green);box-shadow:0 6px 14px rgba(11,70,59,.18)}
.profile-page{background:var(--paper)}
.profile-top{position:relative;overflow:hidden;height:auto;min-height:235px;margin:-20px -16px 18px;padding:22px 18px 24px;border-radius:0;color:#fff;background:linear-gradient(165deg,#3a8f7a 0%,#1d6b5a 36%,#145246 68%,#2a7a66 100%);background-size:180% 180%;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);animation:profile-sheen 14s ease-in-out infinite}
.profile-top:before,.profile-top:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.profile-top:before{width:240px;height:240px;top:-72px;right:-48px;background:radial-gradient(circle,rgba(241,214,150,.32) 0,rgba(241,214,150,0) 70%);animation:profile-orb 11s ease-in-out infinite}
.profile-top:after{width:200px;height:200px;left:-64px;bottom:-86px;background:radial-gradient(circle,rgba(255,255,255,.16) 0,rgba(255,255,255,0) 72%);animation:profile-orb 15s ease-in-out infinite reverse}
.profile-top>*{position:relative;z-index:1}
.profile-top .user-row h1,.profile-top .user-row p,.profile-top .asset-row{color:#fff}
.profile-top .user-row p{color:rgba(255,255,255,.78)}
.asset-row{border-radius:var(--radius-md);background:rgba(255,255,255,.1);backdrop-filter:blur(10px)}
@keyframes profile-sheen{0%,100%{background-position:0% 42%}50%{background-position:100% 58%}}
@keyframes profile-orb{0%,100%{transform:translate3d(0,0,0) scale(1);opacity:.85}50%{transform:translate3d(-18px,12px,0) scale(1.08);opacity:1}}
.profile-card,.feature-card{border:1px solid rgba(184,137,63,.1);border-radius:var(--radius-lg);box-shadow:var(--shadow)}
.feature-card{min-height:102px;padding:17px;background:linear-gradient(120deg,#fffaf0,#edf3eb)}.feature-card strong{background:var(--green);box-shadow:0 7px 16px rgba(11,70,59,.14)}.service-icon{border-radius:13px;background:#faf5e9}
.tabbar{height:calc(70px + env(safe-area-inset-bottom));padding:2px 7px env(safe-area-inset-bottom);border-top:1px solid rgba(11,70,59,.08);background:rgba(255,255,255,.91);box-shadow:0 -12px 32px rgba(26,52,43,.07);backdrop-filter:blur(18px) saturate(1.15)}
.tabbar button{position:relative;min-height:52px;border-radius:15px;transition:background .18s var(--ease),color .18s var(--ease)}.tabbar button.active{background:linear-gradient(180deg,rgba(11,70,59,.09),rgba(11,70,59,.015));color:var(--green)}.tabbar svg{width:23px;height:23px;stroke-width:1.75}
.cart-bar{bottom:calc(70px + env(safe-area-inset-bottom));height:66px;border-top-color:rgba(11,70,59,.08);box-shadow:0 -10px 26px rgba(28,53,45,.055)}
dialog{border:1px solid rgba(255,255,255,.75);border-radius:22px;box-shadow:0 28px 90px rgba(6,35,29,.32)}.dialog-body{padding:20px}.dialog-body button{min-height:44px;box-shadow:0 8px 18px rgba(11,70,59,.17)}
.sub-head{height:76px;background:rgba(255,253,249,.9);border-bottom:1px solid rgba(11,70,59,.06);backdrop-filter:blur(16px)}
button{transition:opacity .14s var(--ease),transform .14s var(--ease),filter .14s var(--ease)}button:active{opacity:1;filter:brightness(.96);transform:scale(.985)}
.wechat-pay-button{width:100%;min-height:46px;margin-top:14px;border:0;border-radius:13px;background:linear-gradient(135deg,#0b8f52,#07a958);color:#fff;font-size:16px;font-weight:700;letter-spacing:.2px;box-shadow:0 9px 22px rgba(9,151,82,.2)}
.wechat-pay-button:disabled,#checkout:disabled{opacity:.58;cursor:wait}
@keyframes page-in{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:431px){.phone{margin:20px auto;border:1px solid rgba(255,255,255,.65);border-radius:24px}.tabbar{border-radius:0 0 24px 24px}}
@media(max-width:360px){.brand{font-size:28px}.brand-lockup small{letter-spacing:1.2px}.quick-grid{padding-left:5px;padding-right:5px}.quick-grid img{width:45px;height:45px}.tongue-card{padding-left:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.page.active{animation:none}.banner-track{transition:none}.profile-top,.profile-top:before,.profile-top:after{animation:none}}

/* Product detail */
.product-detail-page{padding:0 0 88px;background:#f5f2e9}
.product-detail-page .sub-head{margin:0;position:sticky;top:0;z-index:8}
.product-detail-body{min-height:60vh}
.pd-gallery{position:relative;aspect-ratio:1/1;background:#fff;overflow:hidden}
.pd-gallery-track{display:flex;height:100%;transition:transform .35s ease}
.pd-gallery-track>*{flex:0 0 100%;width:100%;height:100%;object-fit:cover;background:#111;display:block}
.pd-gallery video{object-fit:cover}
.pd-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px}
.pd-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45)}
.pd-dots i.on{background:#fff;transform:scale(1.2)}
.pd-card{margin:12px 14px;padding:16px;border-radius:14px;background:#fff}
.pd-price-row{display:flex;align-items:baseline;gap:8px}
.pd-price{font-size:28px;font-weight:800;color:#0f473d}
.pd-origin{color:#a0a39a;text-decoration:line-through;font-size:13px}
.pd-sales{margin-left:auto;color:#92958e;font-size:12px}
.pd-title-row{display:flex;gap:10px;align-items:flex-start;margin-top:12px}
.pd-title-row h2{flex:1;margin:0;font-size:18px;line-height:1.4}
.pd-share{border:0;background:none;padding:0;min-width:40px;display:grid;place-items:center;gap:2px;color:#5d6661;font-size:11px}
.pd-share svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}
.pd-sub{margin:8px 0 0;color:#8d918a;font-size:13px;line-height:1.5}
.pd-tag{display:inline-block;margin-top:10px;padding:4px 10px;border-radius:8px;background:#f3f0e6;color:#8a7345;font-size:12px;font-weight:650}
.pd-trust{margin:0 14px 12px;padding:12px 14px;border-radius:12px;background:linear-gradient(100deg,#eef6f1,#f7faf6);display:flex;align-items:center;gap:10px;color:#1f5a4c}
.pd-trust b{font-size:14px}.pd-trust span{color:#628078;font-size:12px}
.pd-rows{margin:0 14px 12px;border-radius:12px;background:#fff;overflow:hidden}
.pd-rows button{width:100%;min-height:48px;padding:12px 14px;border:0;border-bottom:1px solid #f0eee7;background:#fff;display:flex;align-items:center;gap:10px;text-align:left;font-size:13px}
.pd-rows button:last-child{border:0}
.pd-rows em{font-style:normal;color:#7a847e;min-width:36px}
.pd-rows span{flex:1;color:#314540}.pd-rows i{font-style:normal;color:#b7bbb4}
.pd-review{margin:0 14px 12px;padding:16px;border-radius:14px;background:#fff}
.pd-review header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.pd-review h3{margin:0;font-size:16px}.pd-review small{color:#8d918a}
.pd-review-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.pd-review-tags span{padding:6px 12px;border-radius:16px;background:#f6f3ea;color:#5f6a64;font-size:12px}
.pd-review-empty{text-align:center;padding:18px 8px;color:#94988f}
.pd-review-empty b{display:block;margin-bottom:6px;color:#4d5651}
.pd-detail{margin:0 14px 20px;padding:16px;border-radius:14px;background:#fff}
.pd-detail h3{margin:0 0 12px;font-size:16px}
.pd-detail-images img,.pd-detail-html img{display:block;width:100%;height:auto;margin:0 0 8px;border-radius:4px}
.pd-detail-html{font-size:14px;line-height:1.6;color:#314540;overflow:hidden}
.pd-detail-html p{margin:0 0 8px}
.pd-sku-panel{display:none;margin:0 14px 12px;padding:14px;border-radius:12px;background:#fff}
.pd-sku-panel.open{display:block}
.pd-sku-list{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.pd-sku-list button{height:34px;padding:0 12px;border:1px solid #e4e1d7;border-radius:18px;background:#f8f7f2;font-size:12px}
.pd-sku-list button.on{border-color:#0f473d;background:#e8f0ed;color:#0f473d;font-weight:700}
.pd-qty{display:flex;align-items:center;justify-content:space-between}
.pd-qty>div{display:flex;align-items:center;border:1px solid #e5e3db;border-radius:18px;overflow:hidden}
.pd-qty button{width:34px;height:30px;border:0;background:#fff;font-size:16px}
.pd-qty span{width:36px;text-align:center;font-size:13px}
.product-detail-bar{position:fixed;z-index:9;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,430px);height:calc(72px + env(safe-area-inset-bottom));padding:12px 14px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:110px 1fr;gap:10px;background:rgba(255,255,255,.96);border-top:1px solid #eee;box-shadow:0 -8px 24px rgba(0,0,0,.05)}
.product-detail-page:not(.active) .product-detail-bar{display:none}
.pd-cart{border:1px solid #0f473d;border-radius:24px;background:#fff;color:#0f473d;font-weight:650}
.pd-add{border:0;border-radius:24px;background:#0f473d;color:#fff;font-weight:700}
.share-sheet{position:absolute;inset:0;z-index:40}
.share-sheet[hidden]{display:none}
.share-sheet-mask{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.share-sheet-panel{position:absolute;left:0;right:0;bottom:0;width:100%;padding:18px 16px calc(16px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fff}
.share-sheet-panel h3{margin:0 0 16px;text-align:center;font-size:16px}
.share-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.share-actions button{border:0;background:none;display:grid;place-items:center;gap:8px;font-size:12px;color:#40514c}
.share-ico{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:15px;font-weight:700;color:#fff}
.share-ico.wechat{background:#2aae67}.share-ico.link{background:#6f7672}.share-ico.poster{background:#c9a56a}
.share-cancel{width:100%;height:44px;border:0;border-radius:12px;background:#f3f1ea;color:#40514c;font-weight:650}
.share-poster-dialog{width:min(calc(100% - 32px),360px);padding:12px;text-align:center}
.share-poster-dialog canvas,.share-poster-dialog img{width:100%;height:auto;border-radius:10px;background:#fff}
.share-poster-actions{margin-top:10px}
.share-poster-actions button{width:100%;height:42px;border:0;border-radius:12px;background:#0f473d;color:#fff}