/* ============================================================
   锐卓达优选 全站样式 —— 旧版式（rzd-*，仅功能页沿用）*
   松烟绿 #2E4B3F × 米浆白 #F7F4EC × 焙火赭 #A65B2B × 苔绿 #6B7F52
   2026-10-20 重排：旧版站头/旧版分类导航/旧版价目条/旧版卡片/旧版详情（仅功能页沿用）
   ============================================================ */
* { 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: #F7F4EC; color: #26302B; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 90px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 招贴站头（左章右名，非居中） ---------- */
.rzd-board { background: #2E4B3F; color: #F7F4EC; display: flex; align-items: stretch; gap: 12px; padding: 14px 14px 12px; }
.rzd-stamp { flex: 0 0 auto; border: 2px solid #D9CFA8; color: #D9CFA8; writing-mode: vertical-rl; letter-spacing: 4px; font-size: 13px; font-weight: 700; padding: 6px 3px; align-self: center; }
.rzd-board-main { flex: 1; min-width: 0; }
.rzd-shop { font-size: 22px; font-weight: 800; letter-spacing: 2px; line-height: 1.25; }
.rzd-shop-sub { font-size: 11px; color: #C9D6C6; margin-top: 4px; letter-spacing: 1px; }
.rzd-ticker { background: #243D33; color: #D9CFA8; font-size: 12px; padding: 6px 14px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 旧版分类导航（横向滚动，修竖排） ---------- */
.nav-tabs { display: flex; gap: 8px; background: #F7F4EC; padding: 10px 12px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a { white-space: nowrap; flex-shrink: 0; border: 1px solid #2E4B3F; color: #2E4B3F; font-size: 13px; padding: 5px 12px 4px; border-radius: 2px 2px 0 0; border-bottom-width: 3px; position: relative; background: #FFFDF7; }
.nav-tabs a.active { background: #2E4B3F; color: #F7F4EC; border-bottom-color: #A65B2B; }
.tabbar a { white-space: nowrap; flex-shrink: 0; }

/* ---------- 价目横条（左名右价，虚线连接） ---------- */
.rzd-list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 14px 8px; }
.rzd-list-head h3 { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.rzd-list-head h3::before { content: ""; display: inline-block; width: 14px; height: 3px; background: #A65B2B; margin-right: 8px; vertical-align: middle; }
.rzd-list-head span { font-size: 11px; color: #8B9689; }
.rzd-pricelist { background: #FFFDF7; margin: 0 12px; border: 1px solid #E4DECC; border-radius: 4px; padding: 4px 12px; }
.rzd-priceline { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #E0D8C2; }
.rzd-priceline:last-child { border-bottom: none; }
.rzd-priceline .nm { font-size: 13px; color: #26302B; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzd-priceline .fill { flex: 1; border-bottom: 1px dotted #C9C0A6; transform: translateY(-3px); }
.rzd-priceline .pr { font-size: 15px; font-weight: 800; color: #A65B2B; }
.rzd-priceline .pr i { font-style: normal; font-size: 11px; color: #8B9689; font-weight: 400; margin-left: 2px; }

/* ---------- 抽屉格楼层（两列大图+拉手条） ---------- */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 12px 4px; }
.goods-card { background: #FFFDF7; border: 1px solid #E4DECC; border-radius: 4px; overflow: hidden; position: relative; padding-bottom: 6px; }
.goods-card .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: #EDE8DA; }
.goods-card .thumb::after { content: ""; }
.goods-card .handle { height: 5px; margin: 0 26%; border-radius: 0 0 5px 5px; background: #2E4B3F; opacity: .85; }
.goods-card .info { padding: 7px 9px 2px; }
.goods-card .name { font-size: 12.5px; line-height: 1.45; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #26302B; }
.goods-card .price { color: #A65B2B; font-weight: 800; margin: 5px 0 7px; font-size: 15px; }
.goods-card .price i { font-style: normal; font-size: 10.5px; color: #8B9689; font-weight: 400; margin-left: 3px; }

/* 通用区块标题（无JS可读文字补充） */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 14px 8px; }
.sec-head h3 { font-size: 16px; font-weight: 800; }
.sec-head span { font-size: 11px; color: #8B9689; }

/* ---------- 行式列表（分类页） ---------- */
.rzd-rowlist { padding: 6px 12px; }
.rzd-row { display: flex; gap: 10px; background: #FFFDF7; border: 1px solid #E4DECC; border-radius: 4px; padding: 9px; margin-bottom: 9px; align-items: center; }
.rzd-row .thumb { width: 88px; height: 88px; object-fit: cover; background: #EDE8DA; flex: 0 0 auto; border-radius: 3px; }
.rzd-row .info { flex: 1; min-width: 0; }
.rzd-row .name { font-size: 13px; line-height: 1.45; color: #26302B; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rzd-row .price { color: #A65B2B; font-weight: 800; margin-top: 6px; font-size: 15px; }
.rzd-row .price i { font-style: normal; font-size: 10.5px; color: #8B9689; font-weight: 400; margin-left: 3px; }

/* ---------- 开市公告段 ---------- */
.rzd-note { margin: 14px 12px 6px; background: #EFEAD9; border-left: 4px solid #6B7F52; border-radius: 3px; padding: 12px 12px; font-size: 12.5px; line-height: 1.8; color: #4A554A; }
.rzd-note b { color: #2E4B3F; }
.rzd-footline { text-align: center; font-size: 11px; color: #8B9689; padding: 14px 12px 4px; line-height: 1.9; }

/* ---------- 轮播（方角白框化） ---------- */
.banner { margin: 10px 12px; border: 1px solid #E4DECC; border-radius: 4px; overflow: hidden; }
.banner img { width: 100%; }
.swiper { position: relative; background: #EDE8DA; overflow: hidden; border-bottom: 1px solid #E4DECC; }
.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: 0; bottom: 0; background: #2E4B3F; color: #F7F4EC; font-size: 12px; padding: 3px 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(46,75,63,.55); color: #F7F4EC; 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: 10px; height: 3px; background: rgba(247,244,236,.5); }
.swiper .dots i.on { background: #A65B2B; }

/* ---------- 旧版详情（详情页） ---------- */
.rzd-sheet-head { background: #2E4B3F; color: #F7F4EC; display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; font-size: 12px; letter-spacing: 1px; }
.rzd-sheet-head b { color: #D9CFA8; font-weight: 700; }
.pd-price-row { display: flex; gap: 6px; padding: 10px 14px 0; align-items: baseline; flex-wrap: wrap; }
.tag { background: #EFEAD9; color: #2E4B3F; border: 1px solid #6B7F52; font-size: 11.5px; padding: 3px 9px; border-radius: 2px; }
.pd-price { font-size: 22px; font-weight: 800; color: #A65B2B; }
.pd-price-unit { font-size: 11px; color: #8B9689; }
.pd-title { font-size: 16px; font-weight: 700; padding: 6px 14px; line-height: 1.55; }
.pd-meta { display: flex; justify-content: space-between; color: #8B9689; font-size: 12px; padding: 0 14px 8px; }
.rzd-payline { margin: 0 12px 8px; background: #EFEAD9; border: 1px dashed #6B7F52; border-radius: 3px; font-size: 11.5px; color: #2E4B3F; padding: 7px 10px; letter-spacing: .5px; }
.rzd-detail { display: flex; gap: 10px; background: #FFFDF7; border: 1px solid #E4DECC; border-radius: 4px; margin: 10px 12px; padding: 12px; }
.rzd-detail .side { writing-mode: vertical-rl; font-size: 12px; letter-spacing: 6px; color: #6B7F52; border-right: 1px solid #E4DECC; padding-right: 9px; flex: 0 0 auto; }
.rzd-detail .body { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.85; color: #3A443C; }
.rzd-remark { margin: 0 12px 12px; border: 1px dashed #A65B2B; border-radius: 3px; background: #FBF6EC; padding: 10px 12px; font-size: 12px; line-height: 1.8; color: #7A4A22; }
.rzd-remark b { letter-spacing: 1px; }
.card { background: #FFFDF7; border: 1px solid #E4DECC; border-radius: 4px; margin: 10px 12px; padding: 12px; }
.spec-row { display: flex; justify-content: space-between; align-items: center; }
.arrow { color: #B9B29A; }

/* ---------- 规格弹层 ---------- */
.spec-mask { position: fixed; inset: 0; background: rgba(38,48,43,.5); display: none; z-index: 99; }
.spec-panel { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #FFFDF7; border-radius: 8px 8px 0 0; padding: 14px; display: none; z-index: 100; max-height: 70vh; overflow: auto; }
.spec-item { display: inline-block; border: 1px solid #2E4B3F; color: #2E4B3F; padding: 5px 12px; font-size: 13px; margin: 4px 6px 4px 0; cursor: pointer; border-radius: 2px; }
.spec-item.on { background: #2E4B3F; color: #F7F4EC; }
.num-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.num-ctrl button { width: 28px; height: 28px; border: 1px solid #C9C0A6; background: #FFFDF7; border-radius: 3px; color: #2E4B3F; }

/* ---------- 底部操作栏（详情页） ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #FFFDF7; border-top: 2px solid #2E4B3F; display: flex; align-items: center; padding: 8px 12px; gap: 8px; z-index: 90; }
.bottom-bar .op { text-align: center; font-size: 11px; color: #5C665C; width: 44px; }
.bottom-bar .op .ico { font-size: 18px; }
.btn-cart { flex: 1; background: #6B7F52; color: #FFFDF7; border: none; border-radius: 3px; padding: 11px; font-size: 15px; }
.btn-buy2 { flex: 1; background: #A65B2B; color: #FFFDF7; border: none; border-radius: 3px; padding: 11px; font-size: 15px; }
.btn-primary { display: block; width: 100%; background: #2E4B3F; color: #F7F4EC; border: none; border-radius: 3px; padding: 12px; font-size: 16px; text-align: center; cursor: pointer; }
.btn-buy { background: #2E4B3F; color: #F7F4EC; border: none; border-radius: 3px; padding: 6px 14px; font-size: 12px; }

/* ---------- 流内页脚（联系/地址/备案，非 fixed） ---------- */
.rzd-foot { background: #FFFDF7; border-top: 1px solid #E4DECC; text-align: center; padding: 18px 14px 20px; font-size: 11.5px; color: #8B9689; line-height: 2; margin-top: 14px; }
.rzd-foot b { color: #2E4B3F; }
.rzd-foot a { color: #8B9689; text-decoration: underline; }

/* ---------- 底部 TabBar（横排不换行，仅 4 导航） ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #FFFDF7; display: flex; border-top: 1px solid #E4DECC; z-index: 90; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: #7A837A; white-space: nowrap; flex-shrink: 0; }
.tabbar a .ico { font-size: 20px; display: block; }
.tabbar a.active { color: #2E4B3F; font-weight: 700; }

/* ---------- 搜索栏 ---------- */
.search-bar { display: flex; align-items: center; background: #2E4B3F; padding: 0 14px; height: 0; overflow: hidden; border: none; }

/* ---------- 表单/账户/订单（功能页兼容） ---------- */
.form-item { display: flex; align-items: center; gap: 8px; background: #FFFDF7; border-bottom: 1px solid #E4DECC; padding: 14px 16px; }
.form-item input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; }
.cell { background: #FFFDF7; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #EFEAD9; }
.me-head { background: #2E4B3F; color: #F7F4EC; 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: #C9D6C6; }
.order-grid { display: flex; background: #FFFDF7; padding: 12px 0; margin-top: 10px; }
.order-grid a { flex: 1; text-align: center; font-size: 12px; color: #5C665C; position: relative; }
.order-grid .ico { font-size: 22px; display: block; margin-bottom: 4px; }
.order-grid .badge { position: absolute; top: -6px; right: 18%; background: #A65B2B; color: #FFFDF7; font-size: 10px; border-radius: 10px; padding: 0 5px; }

/* ---------- 文档页（9 个合规页） ---------- */
.rzd-doc-head { background: #2E4B3F; color: #F7F4EC; padding: 14px 16px 12px; }
.rzd-doc-head .back { font-size: 12px; color: #C9D6C6; display: inline-block; margin-bottom: 6px; }
.rzd-doc-head h1 { font-size: 19px; font-weight: 800; letter-spacing: 2px; }
.rzd-doc-meta { font-size: 11px; color: #C9D6C6; margin-top: 5px; letter-spacing: .5px; }
.rzd-doc { padding: 14px 16px 8px; font-size: 13.5px; line-height: 1.9; color: #3A443C; }
.rzd-doc h2 { font-size: 15px; color: #2E4B3F; margin: 16px 0 6px; padding-left: 9px; border-left: 4px solid #A65B2B; }
.rzd-doc p { margin-bottom: 9px; }
.rzd-doc ul { margin: 0 0 10px 18px; }
.rzd-doc li { margin-bottom: 5px; }

/* ---------- 后台兼容（admin.css 独立，保留占位） ---------- */
.admin-wrap { max-width: 100%; }
.admin-nav { background: #243D33; color: #F7F4EC; }
.admin-nav a { color: #C9D6C6; display: block; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-nav a.active { background: #2E4B3F; color: #FFFDF7; }
.table { width: 100%; border-collapse: collapse; background: #FFFDF7; }
.table th, .table td { border-bottom: 1px solid #E4DECC; padding: 10px; font-size: 13px; text-align: left; }
.table th { background: #EFEAD9; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 3px; border: 1px solid #C9C0A6; background: #FFFDF7; cursor: pointer; }
.btn-del { color: #A65B2B; border-color: #A65B2B; }
