* { 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: #f5f5f5; color: #333; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 60px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.search-bar { display: flex; align-items: center; background: #16305a; padding: 10px 14px; }
.search-bar input { flex: 1; border: none; border-radius: 18px; padding: 8px 14px; font-size: 14px; outline: none; }
.nav-tabs { display: flex; gap: 18px; background: #16305a; color: #d8d8d8; padding: 10px 14px 12px; font-size: 15px; }
.nav-tabs a.active { color: #fff; font-weight: bold; }
.banner { margin: 10px; border-radius: 10px; overflow: hidden; }
.banner img { width: 100%; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 12px 8px; }
.sec-head h3 { font-size: 17px; }
.sec-head span { font-size: 12px; color: #999; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.goods-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.goods-card .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.goods-card .info { padding: 8px 10px 12px; }
.goods-card .name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-card .price { color: #333; font-weight: bold; margin: 6px 0 8px; }
.btn-primary { display: block; width: 100%; background: #14a327; color: #fff; border: none; border-radius: 24px; padding: 12px; font-size: 16px; text-align: center; cursor: pointer; }
.btn-buy { background: #16305a; color: #fff; border: none; border-radius: 14px; padding: 6px 16px; font-size: 13px; }
.swiper { position: relative; background: #000; overflow: hidden; }   
.swiper-track {
    display: flex;                       
    transition: transform .3s ease;      
    will-change: transform;
    cursor: grab;                        
    touch-action: pan-y;                 
}
.swiper-track.dragging { transition: none; cursor: grabbing; }        
.swiper .swiper-slide { flex: 0 0 100%; }                            
.swiper .swiper-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.swiper .counter { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; border-radius: 12px; padding: 2px 10px; pointer-events: none; }
.swiper .arrow-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; line-height: 28px; text-align: center;
    background: rgba(0,0,0,.35); color: #fff; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.swiper .arrow-btn.prev { left: 8px; }
.swiper .arrow-btn.next { right: 8px; }
.swiper .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.swiper .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.swiper .dots i.on { background: #fff; width: 14px; border-radius: 3px; }
.pd-price-row { display: flex; gap: 6px; padding: 8px 12px 0; align-items: center; flex-wrap: wrap; }
.tag { background: #eef3fb; color: #16305a; border: 1px solid #16305a; border-radius: 14px; font-size: 12px; padding: 3px 10px; }
.pd-price { font-size: 20px; font-weight: bold; }
.pd-title { font-size: 16px; font-weight: bold; padding: 6px 12px; line-height: 1.5; }
.pd-meta { display: flex; justify-content: space-between; color: #999; font-size: 12px; padding: 0 12px 10px; }
.card { background: #fff; border-radius: 10px; margin: 10px 12px; padding: 12px; }
.spec-row { display: flex; justify-content: space-between; align-items: center; }
.arrow { color: #ccc; }
.spec-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 99; }
.spec-panel { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 14px 14px 0 0; padding: 14px; display: none; z-index: 100; max-height: 70vh; overflow: auto; }
.spec-item { display: inline-block; border: 1px solid #16305a; color: #16305a; border-radius: 14px; padding: 5px 12px; font-size: 13px; margin: 4px 6px 4px 0; cursor: pointer; }
.spec-item.on { background: #16305a; color: #fff; }
.num-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.num-ctrl button { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 6px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; align-items: center; padding: 8px 12px; gap: 8px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); z-index: 90; }
.bottom-bar .op { text-align: center; font-size: 11px; color: #666; width: 44px; }
.bottom-bar .op .ico { font-size: 18px; }
.btn-cart { flex: 1; background: #9aa6bd; color: #fff; border: none; border-radius: 22px; padding: 11px; font-size: 15px; }
.btn-buy2 { flex: 1; background: #16305a; color: #fff; border: none; border-radius: 22px; padding: 11px; font-size: 15px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 90; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: #888; }
.tabbar a .ico { font-size: 20px; display: block; }
.tabbar a.active { color: #16305a; }
.form-item { display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #eee; padding: 14px 16px; }
.form-item input { flex: 1; border: none; outline: none; font-size: 15px; }
.cell { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.me-head { background: #16305a; color: #fff; padding: 18px 16px 0; }
.me-stats { display: flex; text-align: center; padding: 14px 0; }
.me-stats div { flex: 1; }
.me-stats b { display: block; font-size: 18px; }
.me-stats span { font-size: 12px; color: #cfd8ea; }
.order-grid { display: flex; background: #fff; padding: 12px 0; margin-top: 10px; }
.order-grid a { flex: 1; text-align: center; font-size: 12px; color: #555; position: relative; }
.order-grid .ico { font-size: 22px; display: block; margin-bottom: 4px; }
.order-grid .badge { position: absolute; top: -6px; right: 18%; background: #e33; color: #fff; font-size: 10px; border-radius: 10px; padding: 0 5px; }
.admin-wrap { max-width: 100%; }
.admin-nav { background: #1f2d3d; color: #fff; }
.admin-nav a { color: #c6cbd4; display: block; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-nav a.active { background: #16305a; color: #fff; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid #eee; padding: 10px; font-size: 13px; text-align: left; }
.table th { background: #f8f9fb; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.btn-del { color: #e33; border-color: #e33; }

body.lc-home, body.lc-cat, body.lc-pbody { background: #F5F4EF; }
.lc-mast { background: #fff; padding: 14px 14px 12px; }
.lc-brand { display: flex; align-items: center; gap: 10px; }
.lc-logo { width: 40px; height: 40px; border-radius: 10px; background: #22352B; color: #F3EDDD; font-size: 20px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.lc-bname b { display: block; font-size: 17px; color: #26302B; letter-spacing: 1px; }
.lc-bname i { display: block; font-style: normal; font-size: 11px; color: #8B938D; margin-top: 2px; letter-spacing: 2px; }
.lc-searchpill { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; border: 1px solid #D8DED6; border-radius: 18px; padding: 8px 14px; font-size: 13px; color: #8B938D; background: #FAFAF7; }
.lc-searchpill span { color: #2F7D5B; font-size: 15px; }
.lc-sticky { position: sticky; top: 0; z-index: 50; display: flex; gap: 4px; background: #fff; padding: 10px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid #EFEFE9; }
.lc-sticky::-webkit-scrollbar { display: none; }
.lc-sticky { scrollbar-width: none; }
.lc-sticky a { flex: 0 0 auto; font-size: 14px; color: #5C665F; padding: 4px 10px; border-radius: 14px; position: relative; }
.lc-sticky a.on { color: #2F7D5B; font-weight: bold; background: #EBF3EE; }
.lc-floor { background: #fff; margin-top: 10px; padding: 14px 12px 16px; scroll-margin-top: 52px; }
.lc-floor-hd { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.lc-no { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 26px; color: #D4D9D2; line-height: 1; }
.lc-ft b { display: block; font-size: 18px; color: #26302B; letter-spacing: 1px; }
.lc-ft i { display: block; font-style: normal; font-size: 11px; color: #8B938D; margin-top: 3px; }
.lc-more { margin-left: auto; font-size: 12px; color: #8B938D; border: 1px solid #E3E7E1; border-radius: 12px; padding: 3px 10px; }
.lc-hero { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.lc-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lc-hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(20,30,25,.78)); color: #fff; }
.lc-hero-txt b { display: block; font-size: 15px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.lc-hero-txt p { font-size: 11px; color: rgba(255,255,255,.75); margin: 3px 0 4px; letter-spacing: 1px; }
.lc-hero-price em { font-style: normal; font-size: 17px; font-weight: bold; color: #F3EDDD; }
.lc-hero-price s { font-size: 11px; color: rgba(255,255,255,.55); margin-left: 6px; }
.lc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lc-cell { background: #fff; border: 1px solid #F0F1EC; border-radius: 10px; overflow: hidden; }
.lc-grid2 .lc-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #F2F2ED; }
.lc-cell b { display: block; font-size: 12px; color: #33393B; font-weight: normal; line-height: 1.4; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 0 8px; margin-top: 7px; }
.lc-cell-price { padding: 4px 8px 9px; }
.lc-cell-price em { font-style: normal; font-size: 14px; font-weight: bold; color: #2F7D5B; }
.lc-cell-price s { font-size: 10px; color: #B5BCB4; margin-left: 5px; }
.lc-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lc-grid3 .lc-cell { border: none; background: #F7F8F4; }
.lc-grid3 .lc-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #EFEFEA; }
.lc-grid3 .lc-cell b { font-size: 11px; padding: 0 6px; }
.lc-grid3 .lc-cell-price { padding: 3px 6px 8px; }
.lc-grid3 .lc-cell-price em { font-size: 12px; }
.lc-strip { text-align: center; font-size: 11px; color: #9AA39B; letter-spacing: 1px; padding: 12px 0 2px; }
.lc-guide, .lc-notice { background: #fff; margin: 12px 10px 0; border-radius: 12px; padding: 14px; }
.lc-guide h4, .lc-notice h4, .lc-panel h4 { font-size: 14px; color: #26302B; margin-bottom: 8px; letter-spacing: 1px; }
.lc-guide p, .lc-notice p { font-size: 12px; color: #6E7770; line-height: 1.8; margin-bottom: 6px; }
.lc-cat-head { background: #fff; padding: 14px 14px 12px; }
.lc-cat-head b { display: block; font-size: 18px; color: #26302B; letter-spacing: 1px; }
.lc-cat-head i { display: block; font-style: normal; font-size: 11px; color: #8B938D; margin-top: 3px; }
.lc-cat .lc-sticky { border-top: 1px solid #EFEFE9; }
.lc-cat .lc-hero { margin: 10px 10px 0; }
.lc-cat .lc-grid2 { padding: 10px 10px 0; margin-top: 0; }
.lc-empty { text-align: center; color: #9AA39B; font-size: 13px; padding: 50px 0; letter-spacing: 1px; }
.lc-gallery .swiper { background: #14201A; }
.lc-gallery .swiper-slide img { aspect-ratio: 4 / 3; }
.lc-pricecard { background: linear-gradient(135deg, #22352B 0%, #17241D 100%); color: #F3EDDD; padding: 16px 14px 14px; }
.lc-priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.lc-cur { font-size: 15px; color: #D8C99B; }
.lc-big { font-size: 30px; font-weight: bold; color: #F3EDDD; letter-spacing: 1px; font-family: Georgia, "Times New Roman", serif; }
.lc-orig { font-size: 11px; color: rgba(243,237,221,.5); margin-left: 8px; }
.lc-pricemeta { display: flex; justify-content: space-between; font-size: 11px; color: rgba(243,237,221,.55); margin-top: 10px; border-top: 1px dashed rgba(243,237,221,.18); padding-top: 9px; }
.lc-infocard { background: #fff; margin: 10px; border-radius: 12px; padding: 14px; }
.lc-title { font-size: 16px; color: #26302B; line-height: 1.55; font-weight: bold; }
.lc-specrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lc-chip { border: 1px solid #C9D6CD; color: #3E5A4C; border-radius: 12px; font-size: 11px; padding: 3px 10px; background: #F7FAF7; }
.lc-chip-more { border-style: dashed; color: #8B938D; }
.lc-chosen { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #F0F1EC; font-size: 13px; color: #33393B; }
.lc-lab { font-size: 11px; color: #9AA39B; }
.lc-serve { margin-top: 10px; font-size: 11px; color: #2F7D5B; background: #F2F8F4; border-radius: 8px; padding: 8px 10px; letter-spacing: .5px; }
.lc-panel { background: #fff; margin: 0 10px 10px; border-radius: 12px; padding: 14px; }
.lc-panel .lc-rich { font-size: 13px; color: #4A524D; line-height: 1.7; }
.lc-panel .lc-rich img { border-radius: 8px; margin: 6px 0; }
.lc-pbody .btn-cart { background: #5B6B62; }
.lc-pbody .btn-buy2 { background: #2F7D5B; }
.lc-pbody .spec-item { border-color: #C9D6CD; color: #3E5A4C; }
.lc-pbody .spec-item.on { background: #2F7D5B; border-color: #2F7D5B; }
.lc-pbody .bottom-bar .op { color: #6E7770; }
.lc-pbody .pd-price { color: #22352B; }
.lc-trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lc-trust span { font-size: 11px; color: #2F7D5B; border: 1px solid #C9D6CD; background: #F2F8F4; border-radius: 12px; padding: 4px 10px; }
.lc-floor.lc-mode-a { background: #F7F4EC; }
.lc-floor.lc-mode-b { background: #FFFFFF; border-top: 1px dashed #D8D1BC; border-bottom: 1px dashed #D8D1BC; }

/* ===== 桌面自适应（2026-10-22 修：原 480px 窄条 → 全屏） ===== */
@media (min-width: 768px) {
  /* 放开 480 限宽，两侧留 40px 呼吸；保留底部 60px 给固定栏 */
  body { max-width: none; margin: 0; padding: 0 40px 60px; box-shadow: none; }
  /* 固定栏同步全宽，内边距对齐内容区，避免"内容全屏、底栏卡中间" */
  .bottom-bar, .tabbar, .spec-panel { max-width: none; margin: 0; }
  .bottom-bar, .tabbar { padding-left: 40px; padding-right: 40px; }
  .spec-panel { padding-left: 40px; padding-right: 40px; }
  /* 商品网格 2 列 → 4 列 */
  .goods-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .lc-grid2 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .lc-grid3 { grid-template-columns: repeat(6, 1fr); }
  /* 详情页用居中舒适列宽，避免商品图被拉满屏 */
  body.lc-pbody { max-width: 1080px; margin: 0 auto; }
  .swiper { max-width: 620px; margin: 0 auto; }
  .swiper .swiper-slide img { aspect-ratio: 1; }
  /* hero 大图在桌面限高，避免首屏只剩一张图 */
  .lc-hero img { aspect-ratio: auto; height: 420px; object-fit: cover; object-position: center 42%; }
  .lc-hero-txt b { font-size: 19px; }
}
@media (min-width: 1500px) {
  /* 宽屏再密一档，避免卡片过大 */
  .goods-grid, .lc-grid2 { grid-template-columns: repeat(5, 1fr); }
  .lc-grid3 { grid-template-columns: repeat(8, 1fr); }
}

@media (min-width: 1920px) {
  body { max-width: 1800px; margin: 0 auto; }
}
