* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:#f5f6f7; color:#333; font-size:14px; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
.btn { display:block; width:100%; height:46px; line-height:46px; text-align:center; background:#B9000E; color:#fff; border:none; border-radius:23px; font-size:16px; cursor:pointer; }
.btn.gray { background:#ccc; }
.btn.ghost { background:#fff; color:#333; border:1px solid #ddd; }
input,textarea,select { width:100%; border:1px solid #e5e5e5; border-radius:8px; padding:10px 12px; font-size:14px; outline:none; background:#fff; }
.row { display:flex; align-items:center; }
.space { justify-content:space-between; }
.mt10 { margin-top:10px; } .mt20 { margin-top:20px; }
.grow { flex:1; }
.text-red { color:#B9000E; } .text-gray { color:#999; } .text-small { font-size:12px; }
.form-item { margin:0 16px; padding:10px 0; border-bottom:1px solid #eee; }
.form-item label { display:block; font-size:13px; color:#666; margin-bottom:6px; }
.page-header { background:#B9000E; color:#fff; padding:14px 16px; position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:8px; }
.page-header .back { font-size:20px; }
.page-header .title { flex:1; text-align:center; font-size:17px; }
.card { background:#fff; border-radius:12px; padding:14px; margin:12px; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.empty { text-align:center; color:#999; padding:40px 0; }
.badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; color:#fff; }
.badge-gold { background:#C9A227; }
.badge-blue { background:#2E5FA3; }
.badge-green { background:#2E9E5B; }
.badge-purple { background:#6A3EA1; }
.badge-silver { background:#8E9BA7; }
.badge-gray { background:#8A8A8A; }
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid #eee; display:flex; height:54px; z-index:20; padding-bottom:env(safe-area-inset-bottom); }
.bottom-nav a { flex:1; text-align:center; color:#999; font-size:11px; padding-top:6px; }
.bottom-nav a.on { color:#B9000E; }
.bottom-nav .ico { font-size:20px; display:block; }
.product-grid { display:flex; flex-wrap:wrap; padding:0 4px; }
.product-grid .p { width:48%; margin:1%; background:#fff; border-radius:8px; overflow:hidden; }
.product-grid .p img { width:100%; height:150px; object-fit:cover; }
.product-grid .p .nm { padding:6px; font-size:13px; height:40px; overflow:hidden; }
.product-grid .p .pr { padding:0 6px 8px; color:#B9000E; font-weight:bold; font-size:15px; }
.qtybox { display:inline-flex; align-items:center; gap:8px; }
.qtybox .cnt { min-width:24px; text-align:center; }

/* 首页轮播（自研 scroll-snap，可左右滑动） */
.carousel { width:95%; margin:10px auto; border-radius:10px; overflow:hidden; position:relative; background:#f2f2f2; }
.carousel .swiper-container { width:100%; }
.carousel .track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.carousel .track::-webkit-scrollbar { display:none; }
.carousel .track .swiper-slide { flex:0 0 100%; width:100%; scroll-snap-align:start; }
.carousel .swiper-slide img { width:100%; height:180px; object-fit:cover; display:block; }
.carousel .dots { position:absolute; bottom:10px; left:0; right:0; text-align:center; z-index:5; }
.carousel .dots i { display:inline-block; width:7px; height:7px; border-radius:50%; background:#fff; opacity:.55; margin:0 4px; }
.carousel .dots i.on { background:#B9000E; opacity:1; }

/* 首页公告滚动 */
.notice-bar { width:95%; margin:8px auto; background:url('/images/organic/notice_bg.png') center/cover no-repeat; border:1px solid #b7d8b7; border-radius:8px; display:flex; align-items:center; padding:9px 10px; overflow:hidden; }
.notice-bar .n-ico { font-size:16px; margin-right:8px; flex-shrink:0; }
.notice-bar .n-box { flex:1; overflow:hidden; height:22px; line-height:22px; }
.notice-bar .n-box a { color:#2e7d32; font-size:13px; white-space:nowrap; font-weight:bold; }
.notice-bar .n-more { color:#2e7d32; font-size:12px; flex-shrink:0; margin-left:8px; }

/* 首页广告条 */
.h-ad { width:94%; margin:12px auto; display:block; border-radius:10px; overflow:hidden; }
.h-ad img { width:100%; max-height:110px; object-fit:cover; }

/* 首页图片流（两列） */
.feed-grid { display:flex; flex-wrap:wrap; padding:0 8px; }
.feed-grid .f { width:48.5%; margin:0.75%; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.feed-grid .f img { width:100%; height:150px; object-fit:cover; }
.feed-grid .f .f-t { padding:8px 10px 2px; font-size:14px; font-weight:bold; }
.feed-grid .f .f-s { padding:0 10px 10px; font-size:12px; color:#888; }
.feed-head { width:94%; margin:14px auto 6px; display:flex; justify-content:space-between; align-items:center; }
.feed-head .t { font-size:16px; font-weight:bold; color:#333; }
.feed-head .t::before { content:'◆'; color:#B9000E; margin-right:6px; }
.feed-head a { color:#999; font-size:12px; }
