/* ============================================================
   站点样式表 static/app.css
   绿色主按钮、深蓝点缀、卡片式布局
   ============================================================ */
* { 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; }

/* 导航 Tab */
.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 */
.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; }

/* 商品详情页：JS 驱动横向轮播（手指滑动 / 鼠标拖动 / 箭头 / 圆点） */
.swiper { position: relative; background: #000; overflow: hidden; }   /* 超出部分裁掉 */
.swiper-track {
    display: flex;                       /* 横向并排 */
    transition: transform .3s ease;      /* 切换动画 */
    will-change: transform;
    cursor: grab;                        /* 提示可拖动 */
    touch-action: pan-y;                 /* 允许纵向滚动页面，横向交给 JS */
}
.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 */
.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.css 复用部分样式 */
.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; }
/* ===== hj2 门户金刚区版（组合一 A+E）追加样式 2026-10-21 ===== */
:root{--hj2-ink:#2F2A24;--hj2-cream:#F7F4EE;--hj2-card:#FFFFFF;--hj2-gold:#B08A3E;--hj2-line:#E8E2D6;--hj2-sub:#8A8177}
body{background:var(--hj2-cream)}
/* 站头：固定搜索胶囊顶栏 */
.hj2-top{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--hj2-cream);border-bottom:1px solid var(--hj2-line)}
.hj2-burger{flex:0 0 34px;height:34px;line-height:34px;text-align:center;background:var(--hj2-ink);color:#F5E9CF;border-radius:8px;font-size:17px;text-decoration:none}
.hj2-search{flex:1;display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;background:#fff;border:1px solid var(--hj2-line);border-radius:17px}
.hj2-search .brand{font-size:13px;font-weight:700;color:var(--hj2-ink);white-space:nowrap}
.hj2-search i{width:1px;height:16px;background:var(--hj2-line)}
.hj2-search input{flex:1;border:0;outline:0;background:transparent;font-size:12px;color:#999}
.hj2-toplink{flex:0 0 auto;font-size:13px;color:var(--hj2-ink);text-decoration:none}
/* 通栏窄banner */
.hj2-bn{display:block;margin:10px 12px 0;border-radius:10px;overflow:hidden}
.hj2-bn img{display:block;width:100%;height:132px;object-fit:cover}
/* 金刚区宫格 */
.hj2-kw{display:flex;flex-wrap:wrap;margin:12px 8px 4px;background:var(--hj2-card);border-radius:12px;padding:10px 0 6px}
.hj2-kw a{width:20%;text-align:center;text-decoration:none;margin-bottom:10px}
.hj2-kw .zi{display:block;width:38px;height:38px;line-height:38px;margin:0 auto 5px;border-radius:10px;color:#fff;font-size:15px;font-weight:700}
.hj2-c1 .zi{background:#B08A3E}.hj2-c2 .zi{background:#7A8B6F}.hj2-c3 .zi{background:#A4744C}.hj2-c4 .zi{background:#5E7C8A}.hj2-c5 .zi{background:#8B6F5E}
.hj2-kw .nm{font-size:11px;color:var(--hj2-ink)}
/* 服务细条 */
.hj2-serve{margin:8px 12px;padding:7px 10px;font-size:11px;color:var(--hj2-sub);background:var(--hj2-card);border:1px dashed var(--hj2-line);border-radius:8px;text-align:center}
/* 楼层 */
.hj2-fhead{margin:14px 0 0;padding:11px 0;background:#EFEAE0;text-align:center}
.hj2-fhead b{font-size:15px;color:var(--hj2-ink);letter-spacing:1px}
.hj2-fhead span{display:block;font-size:11px;color:var(--hj2-sub);margin-top:2px}
.hj2-grid{display:flex;flex-wrap:wrap;background:var(--hj2-card)}
.hj2-it{width:50%;box-sizing:border-box;padding:12px 10px;text-align:center;text-decoration:none;border-bottom:1px solid #F1EDE4}
.hj2-it:nth-child(2n+1){border-right:1px solid #F1EDE4}
.hj2-it img{display:block;width:120px;height:120px;object-fit:cover;margin:0 auto;border-radius:6px}
.hj2-it .t{margin-top:8px;font-size:13px;color:var(--hj2-ink);line-height:1.45;height:38px;overflow:hidden}
.hj2-it .pr{margin-top:4px;font-size:16px;font-weight:700;color:var(--hj2-gold)}
.hj2-it .pr i{font-style:normal;font-size:11px;margin-right:1px}
.hj2-more{display:block;text-align:center;padding:9px 0;font-size:12px;color:var(--hj2-sub);background:var(--hj2-card);text-decoration:none;border-top:1px solid #F1EDE4}
/* 导购长文 */
.hj2-guide{margin:14px 12px;padding:12px;background:var(--hj2-card);border-radius:10px}
.hj2-guide h4{margin:0 0 8px;font-size:14px;color:var(--hj2-ink);text-align:center;letter-spacing:1px}
.hj2-guide p{margin:0 0 6px;font-size:12px;line-height:1.8;color:#6B655D}
/* 分类页：横滑带 */
.hj2-catnav{display:flex;overflow-x:auto;background:var(--hj2-cream);padding:9px 8px;gap:8px;-webkit-overflow-scrolling:touch}
.hj2-catnav a{flex:0 0 auto;padding:5px 13px;font-size:13px;color:var(--hj2-ink);background:#fff;border:1px solid var(--hj2-line);border-radius:14px;text-decoration:none}
.hj2-catnav a.on{background:var(--hj2-gold);border-color:var(--hj2-gold);color:#fff;font-weight:600}
.hj2-lead{margin:10px 12px 0;font-size:12px;color:var(--hj2-sub);line-height:1.7}
/* 详情页：深底金签 */
.hj2p .swiper{background:#fff}
.hj2-pricecard{display:flex;align-items:center;justify-content:space-between;margin:10px 12px 0;padding:13px 15px;border-radius:12px;background:linear-gradient(135deg,#262019,#3A322A)}
.hj2-pricecard .big{font-size:24px;font-weight:800;color:#F0C88A}
.hj2-pricecard .big i{font-style:normal;font-size:13px;margin-right:2px}
.hj2-pricecard .old{margin-left:8px;font-size:12px;color:#B9AE9C;text-decoration:line-through}
.hj2-pricecard .st{text-align:right;font-size:11px;color:#C9BFAF;line-height:1.7}
.hj2-info{margin:10px 12px 0;padding:12px;background:var(--hj2-card);border-radius:10px}
.hj2-ptitle{font-size:15px;font-weight:600;color:var(--hj2-ink);line-height:1.55}
.hj2-tags{margin-top:8px}
.hj2-tags span{display:inline-block;margin-right:6px;padding:2px 8px;font-size:10px;color:var(--hj2-gold);border:1px solid #D9C79A;border-radius:9px}
.hj2-specrow{display:flex;align-items:center;justify-content:space-between;margin:10px 12px 0;padding:11px 13px;background:var(--hj2-card);border-radius:10px;text-decoration:none}
.hj2-specrow .lb{font-size:13px;color:var(--hj2-sub)}
.hj2-specrow .vv{flex:1;margin:0 10px;font-size:13px;color:var(--hj2-ink)}
.hj2-specrow .ar{color:#C4BCB0}
.hj2-panel{margin:10px 12px 0;padding:12px;background:var(--hj2-card);border-radius:10px}
.hj2-panel h4{margin:0 0 8px;text-align:center;font-size:14px;color:var(--hj2-ink);letter-spacing:1px}
.hj2-panel p{margin:0 0 6px;font-size:12px;line-height:1.8;color:#6B655D}
@media (max-width:360px){.hj2-it img{width:100px;height:100px}}
