/* ===== 蓝丰优选 PC 商城 v2 —— 仿劲牛云商版式 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",sans-serif; color:#333; background:#f4f5f7; font-size:14px; }
a { color:#333; text-decoration:none; }
a:hover { color:#C8161D; }
img { display:block; max-width:100%; }
.container { width:1200px; margin:0 auto; }
:root { --green:#2E9958; --green-d:#237a46; --red:#C8161D; --red-d:#a51218; --dark:#333; }

/* 顶部条 */
.topbar { background:#f5f5f5; border-bottom:1px solid #ececec; height:32px; line-height:32px; font-size:12px; color:#888; }
.topbar .container { display:flex; justify-content:space-between; }
.tb-right a { margin-left:16px; color:#888; }
.tb-user { color:var(--red); font-weight:600; margin-right:12px; }
.tb-cert { color:#fff !important; background:var(--red); padding:2px 10px; border-radius:10px; }

/* 头部 */
.header { background:#fff; }
.hd-inner { display:flex; align-items:center; gap:32px; padding:18px 0; }
.logo { display:flex; align-items:baseline; gap:6px; }
.logo-txt { font-size:30px; font-weight:800; color:var(--red); letter-spacing:2px; }
.logo-sub { font-size:13px; color:#999; }
.search-wrap { flex:1; }
.search-form { display:flex; border:2px solid var(--red); border-radius:2px; overflow:hidden; }
.search-form input { flex:1; border:0; outline:0; padding:0 16px; height:40px; font-size:15px; }
.search-form button { width:96px; border:0; background:var(--red); color:#fff; font-size:16px; font-weight:600; cursor:pointer; }
.search-form button:hover { background:var(--red-d); }
.hot-words { margin-top:7px; font-size:12px; color:#aaa; }
.hot-words a { color:#999; margin-right:14px; }
.hd-cart a { font-size:15px; color:var(--red); font-weight:600; white-space:nowrap; }

/* 主导航：深灰 */
.navbar { background:var(--dark); }
.nav-inner { display:flex; align-items:center; height:42px; }
.nav-link { color:#fff; padding:0 22px; line-height:42px; font-size:15px; }
.nav-link:hover { color:#fff; background:#C8161D; }
.nav-cat-btn { background:var(--red); color:#fff; height:42px; line-height:42px; padding:0 26px; font-size:15px; font-weight:600; }

.main-wrap { padding:0 0 40px; }

/* Hero */
.hero { display:flex; gap:0; background:#fff; margin-top:0; }
.hero-side { width:210px; flex-shrink:0; border:1px solid #ececec; border-top:0; }
.hs-head { background:var(--red); color:#fff; height:40px; line-height:40px; text-align:center; font-weight:600; font-size:15px; }
.hs-list { list-style:none; }
.hs-item { border-bottom:1px solid #f5f5f5; position:relative; }
.hs-top { display:flex; align-items:center; justify-content:space-between; padding:9px 14px; font-size:14px; color:#333; font-weight:600; }
.hs-top:hover { color:var(--red); }
.hs-arr { color:#ccc; }
.hs-sub { padding:0 14px 8px; display:flex; flex-wrap:wrap; gap:8px; }
.hs-sub a { font-size:12px; color:#999; }
.hs-sub a:hover { color:var(--red); }

.hero-main { flex:1; padding:0 0 0 12px; }
.hero-banner { height:200px; border-radius:4px; background:linear-gradient(120deg,#C8161D,#8f0f13 70%); position:relative; overflow:hidden; display:flex; align-items:center; padding:0 50px; }
.hero-banner::after { content:""; position:absolute; right:-40px; top:-60px; width:320px; height:320px; background:rgba(255,255,255,.06); border-radius:50%; }
.hb-text { color:#fff; z-index:1; }
.hb-title { font-size:30px; font-weight:800; letter-spacing:1px; }
.hb-sub { font-size:15px; margin-top:12px; opacity:.9; }
.hb-points { display:flex; gap:34px; margin-left:auto; z-index:1; }
.hbp { text-align:center; color:#fff; }
.hbp-ic { width:52px; height:52px; line-height:52px; border-radius:50%; background:rgba(255,255,255,.16); font-size:24px; margin:0 auto 6px; }
.hbp-tx { font-size:13px; }

.hero-tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px; }
.htile { background:#fff; border:1px solid #f0f0f0; border-radius:6px; padding:8px; transition:.2s; }
.htile:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); transform:translateY(-2px); }
.htile-img { height:120px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.htile-img img { max-height:118px; }
.htile-name { font-size:13px; color:#444; margin-top:6px; height:18px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.htile-price { margin-top:4px; }
.htile-price b { color:var(--red); font-size:17px; }
.htile-price .lk { color:var(--green); font-size:12px; }

/* 服务保障条 */
.promise-bar { display:flex; background:#fff; border:1px solid #ececec; margin-top:14px; }
.pb-item { flex:1; text-align:center; padding:14px 0; font-size:14px; color:#555; border-right:1px solid #f2f2f2; }
.pb-item:last-child { border-right:0; }
.pbi { font-size:20px; margin-right:6px; }

/* 楼层 */
.floor { background:#fff; border:1px solid #ececec; border-radius:4px; padding:16px 18px 20px; margin-top:16px; }
.floor-hd { display:flex; align-items:center; justify-content:space-between; padding-bottom:12px; border-bottom:2px solid #C8161D; margin-bottom:16px; }
.fh-left { display:flex; align-items:center; gap:10px; }
.fh-bar { width:4px; height:20px; background:var(--red); border-radius:2px; }
.fh-title { font-size:20px; font-weight:800; color:#222; }
.fh-more { color:#999; font-size:13px; }
.fh-more:hover { color:var(--red); }
.floor-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }

/* 商品卡 */
.pcard { background:#fff; border:1px solid #f0f0f0; border-radius:6px; overflow:hidden; transition:.2s; display:block; }
.pcard:hover { box-shadow:0 6px 20px rgba(0,0,0,.1); border-color:#f5c6c8; transform:translateY(-2px); }
.pcard-img { width:100%; height:180px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.pcard-img img { max-width:100%; max-height:100%; object-fit:contain; }
.pcard-img .ph { font-size:44px; }
.pcard-body { padding:10px 12px 12px; }
.pcard-name { font-size:13px; color:#333; line-height:1.45; height:38px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.pcard-price { margin-top:8px; display:flex; align-items:baseline; gap:4px; }
.pc-cur { font-size:13px; color:var(--red); font-weight:700; }
.pc-num { font-size:21px; color:var(--red); font-weight:800; }
.pc-orig { font-size:12px; color:#bbb; text-decoration:line-through; }
.pc-lock { font-size:12px; color:var(--green); font-weight:600; }
.pcard-foot { margin-top:6px; display:flex; justify-content:space-between; font-size:12px; color:#aaa; }
.pf-brand { color:#999; }

/* 品牌专区 */
.brand-row { display:flex; flex-wrap:wrap; gap:12px; }
.brand-tag { padding:10px 26px; border:1px solid #e8e8e8; border-radius:4px; font-size:14px; color:#555; background:#fafafa; }
.brand-tag:hover { border-color:var(--red); color:var(--red); background:#fff; }

/* ===== 页脚 ===== */
.footer { background:#2b2b2b; color:#9a9a9a; margin-top:30px; padding:36px 0 0; }
.ft-inner { width:1200px; margin:0 auto; }
.ft-cols { display:flex; justify-content:space-between; padding-bottom:26px; }
.ft-col { min-width:140px; }
.ft-col h4 { color:#fff; font-size:15px; font-weight:600; margin:0 0 16px; }
.ft-col a { display:block; color:#9a9a9a; font-size:13px; line-height:2.1; }
.ft-col a:hover { color:#fff; }
.ft-contact { text-align:right; }
.ft-phone { font-size:24px; color:#E4393C; font-weight:800; line-height:1.2; }
.ft-note { font-size:12px; color:#888; margin-top:8px; }
.ft-bottom { border-top:1px solid #3a3a3a; padding:18px 0; display:flex; justify-content:space-between; font-size:12px; color:#777; }

/* ===== 登录/注册 ===== */
.auth-wrap { width:440px; margin:50px auto; background:#fff; border-radius:10px; padding:44px 40px; box-shadow:0 6px 30px rgba(0,0,0,.07); }
.auth-title { font-size:24px; font-weight:800; color:#C8161D; text-align:center; margin-bottom:8px; }
.auth-sub { text-align:center; color:#999; font-size:13px; margin-bottom:30px; }
.auth-field { margin-bottom:18px; }
.auth-field input { width:100%; height:46px; border:1px solid #e0e0e0; border-radius:6px; padding:0 14px; font-size:15px; outline:0; }
.auth-field input:focus { border-color:#C8161D; }
.auth-btn { width:100%; height:48px; background:#C8161D; color:#fff; border:0; border-radius:6px; font-size:17px; font-weight:700; cursor:pointer; }
.auth-btn:hover { background:#a51218; }
.auth-switch { text-align:center; margin-top:20px; font-size:13px; color:#999; }
.auth-switch a { color:#C8161D; }

/* ===== 列表页 ===== */
.list-layout { display:flex; gap:16px; }
.list-side { width:210px; flex-shrink:0; }
.side-box { background:#fff; border:1px solid #ececec; border-radius:4px; padding:14px 16px; margin-bottom:14px; }
.side-box h3 { font-size:15px; color:#222; margin:0 0 12px; border-left:3px solid #C8161D; padding-left:8px; font-weight:700; }
.side-box a { display:block; padding:6px 0; font-size:13px; color:#666; }
.side-box a.on { color:#C8161D; font-weight:700; }
.list-main { flex:1; background:#fff; border:1px solid #ececec; border-radius:4px; padding:18px; }
.sort-bar { display:flex; align-items:center; gap:8px; padding-bottom:14px; border-bottom:1px solid #f0f0f0; margin-bottom:16px; font-size:13px; }
.sort-bar a { padding:6px 14px; border:1px solid #e5e5e5; border-radius:4px; color:#666; }
.sort-bar a.on { background:#C8161D; color:#fff; border-color:#C8161D; }
.sort-bar a:hover { border-color:#C8161D; color:#C8161D; }
.sort-bar a.on:hover { color:#fff; }
.crumb { font-size:13px; color:#999; padding:12px 0; }
.crumb a { color:#999; }
.crumb a:hover { color:#C8161D; }
.pager { display:flex; gap:8px; justify-content:center; margin-top:24px; }
.pager a { padding:7px 15px; border:1px solid #e5e5e5; border-radius:4px; font-size:13px; color:#666; }
.pager a.on { background:#C8161D; color:#fff; border-color:#C8161D; }
.pager a:hover { border-color:#C8161D; color:#C8161D; }
.pager a.on:hover { color:#fff; }
.empty { text-align:center; padding:70px 0; color:#999; font-size:15px; }
.grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.grid-4 { grid-template-columns:repeat(4,1fr); }

/* ===== 详情页 ===== */
.detail-top { display:flex; gap:30px; background:#fff; border:1px solid #ececec; border-radius:4px; padding:24px; margin-bottom:16px; }
.detail-gallery { width:420px; flex-shrink:0; }
.gal-main { width:420px; height:420px; border:1px solid #f0f0f0; border-radius:6px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
.gal-main img { max-width:100%; max-height:100%; object-fit:contain; }
.gal-thumbs { display:flex; gap:8px; margin-top:10px; }
.gal-thumbs img { width:60px; height:60px; border:2px solid #f0f0f0; border-radius:4px; object-fit:contain; cursor:pointer; background:#fff; }
.gal-thumbs img.on { border-color:#C8161D; }
.detail-info { flex:1; }
.detail-title { font-size:22px; font-weight:700; color:#222; line-height:1.4; margin:0; }
.detail-sub { font-size:13px; color:#999; margin-top:8px; }
.price-box { background:#fff7f7; border-radius:6px; padding:16px 20px; margin:16px 0; }
.price-box .row { display:flex; align-items:baseline; gap:10px; }
.pb-label { font-size:14px; color:#999; }
.pb-price { font-size:34px; color:#C8161D; font-weight:800; }
.pb-orig { font-size:16px; color:#bbb; text-decoration:line-through; }
.pb-lock { font-size:16px; color:#2E9958; font-weight:700; }
.pb-cert-btn { display:inline-block; margin-top:10px; background:#C8161D; color:#fff; padding:8px 26px; border-radius:20px; font-size:14px; font-weight:600; }
.pb-cert-btn:hover { color:#fff; background:#a51218; }
.info-rows { margin:10px 0; }
.info-rows .ir { display:flex; padding:9px 0; font-size:14px; border-bottom:1px dashed #f0f0f0; }
.info-rows .ir .k { width:80px; color:#999; flex-shrink:0; }
.info-rows .ir .v { flex:1; color:#333; }
.sku-list { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; }
.sku-item { padding:8px 18px; border:1px solid #ddd; border-radius:6px; font-size:14px; cursor:pointer; color:#444; }
.sku-item.on { border-color:#C8161D; background:#fff5f5; color:#C8161D; font-weight:600; }
.buy-row { display:flex; gap:12px; margin-top:20px; align-items:center; }
.qty-box { display:flex; border:1px solid #ddd; border-radius:6px; overflow:hidden; height:48px; }
.qty-box button { width:40px; border:0; background:#f5f5f5; font-size:18px; cursor:pointer; }
.qty-box input { width:60px; border:0; text-align:center; font-size:16px; outline:0; }
.btn-buy { flex:1; background:#C8161D; color:#fff; border:0; border-radius:6px; font-size:17px; font-weight:700; cursor:pointer; height:48px; }
.btn-buy:hover { background:#a51218; }
.btn-cart { flex:1; background:#fff; color:#C8161D; border:2px solid #C8161D; border-radius:6px; font-size:17px; font-weight:700; cursor:pointer; height:48px; }
.btn-cart:hover { background:#fff5f5; }
.btn-buy:disabled { background:#ccc; cursor:not-allowed; }
.detail-body { background:#fff; border:1px solid #ececec; border-radius:4px; padding:24px; }
.detail-body h2 { font-size:18px; color:#222; margin:0 0 16px; border-left:4px solid #C8161D; padding-left:10px; font-weight:700; }
.detail-body img { max-width:100%; }

/* ===== 购物车/订单 ===== */
.cart-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #ececec; border-radius:4px; overflow:hidden; }
.cart-table th, .cart-table td { padding:14px 12px; border-bottom:1px solid #f2f2f2; font-size:14px; text-align:left; }
.cart-table th { background:#fafafa; color:#666; font-weight:600; }
.cart-table img { width:60px; height:60px; object-fit:contain; border-radius:4px; }
.cart-total { margin-top:20px; text-align:right; font-size:16px; }
.cart-total .amt { color:#C8161D; font-size:26px; font-weight:800; }
.btn-primary { display:inline-block; background:#C8161D; color:#fff; padding:12px 42px; border-radius:6px; font-size:16px; font-weight:700; border:0; cursor:pointer; margin-top:12px; }
.btn-primary:hover { background:#a51218; color:#fff; }
.order-card { background:#fff; border:1px solid #ececec; border-radius:4px; padding:18px 20px; margin-bottom:14px; }
.order-card .oh { display:flex; justify-content:space-between; color:#999; font-size:13px; border-bottom:1px solid #f2f2f2; padding-bottom:10px; margin-bottom:10px; }
.order-card .st { color:#C8161D; font-weight:700; }
