

:root {
  
  --primary: #ff6a00;
  --primary-dark: #e85d00;
  --primary-light: #fff3e6;
  --accent: #ff4000;
  --accent-light: #fff0e6;

  
  --success: #12b76a;
  --warning: #f79009;
  --danger: #f04438;
  --info: #06aed4;

  
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e4e7ed;
  --text: #1f2329;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-4: #c9cdd4;

  
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(31, 35, 41, .06);
  --shadow-lg: 0 8px 24px rgba(31, 35, 41, .10);
  --sidebar-w: 220px;
  --header-h: 60px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; overflow-anchor: none; overflow-x: hidden; overflow-x: clip; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }


.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text); font-size: 14px; line-height: 1.4;
  transition: all .2s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; opacity: 1; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #e85d00; color: #fff; opacity: 1; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #d92d20; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }


.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px;
}
.card-hover { transition: all .25s; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }


.badge {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 12px; line-height: 20px; font-weight: 500;
}
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: #e6f9f0; color: var(--success); }
.badge-orange { background: var(--accent-light); color: var(--accent); }
.badge-red    { background: #feeceb; color: var(--danger); }
.badge-gray   { background: #f2f3f5; color: var(--text-3); }


.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th {
  background: #fafbfc; color: var(--text-2); font-weight: 600; text-align: left;
  padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #f2f3f5; vertical-align: middle; }
.table tr:hover td { background: #fafbfd; }
.table .thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #f2f3f5; }


.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-item .required::before { content: '*'; color: var(--danger); margin-right: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; background: #fff; transition: border .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 106, 0, .14); }
.textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }


.pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 32px auto 8px; width: calc(100% - 60px); padding: 4px 0; }
.pagination .btn { min-width: 52px; height: 50px; padding: 0 18px; font-size: 15px; border-radius: 8px; border: 1px solid #e2e6ec; background: #fff; color: #3d4757; font-weight: 500; cursor: pointer; transition: all .18s ease; display: inline-flex; align-items: center; justify-content: center; }
.pagination .btn:hover { border-color: var(--primary); color: var(--primary); background: #fff7f0; }
.pagination .btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(255,106,0,.28); }

.pagination .pages { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pagination .pages .btn { flex: 1; min-width: 0; height: 48px; padding: 0 6px; font-size: 14.5px; }

.pagination .btn.disabled, .pagination .btn:disabled { opacity: 1; cursor: default; border-color: #e2e6ec; background: #fff; color: #3d4757; }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }


.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; }
.modal-head .close { cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; }
.modal-body { padding: 20px; max-height: 65vh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }


#toast-box { position: fixed; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  padding: 12px 26px; border-radius: 10px; background: #1f2329; color: #fff;
  font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.22); animation: toast-pop .34s cubic-bezier(.34,1.56,.64,1); max-width: 80vw;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warn { background: var(--warning); }
@keyframes toast-pop { 0% { opacity: 0; transform: translateY(-24px) scale(.86); } 60% { opacity: 1; transform: translateY(6px) scale(1.05); } 80% { transform: translateY(-3px) scale(1); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.toast.out { animation: toast-out .26s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px) scale(.92); } }


.empty { text-align: center; padding: 48px 16px; color: var(--text-3); }
.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.loading { text-align: center; padding: 40px; color: var(--text-3); }
.loading::before {
  content: ''; display: inline-block; width: 22px; height: 22px; margin-right: 10px;
  border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
  vertical-align: -5px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.stat-card .icon {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.stat-card .value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-card .label { font-size: 13px; color: var(--text-3); }


.site-top {
  background: linear-gradient(135deg, #0b1f3a 0%, #123055 55%, #1a3f6e 100%);
  color: #fff; font-size: 13px;
}
.site-top .inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.site-top a { color: rgba(255,255,255,.85); margin-left: 16px; }
.site-top a:hover { color: #fff; }

.site-header {
  background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.site-header { background: #fff; border-bottom: 1px solid #eef0f3; position: sticky; top: 0; z-index: 100; }
.site-header .inner { display: flex; align-items: center; gap: 28px; padding: 18px 0; height: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.search-bar { flex: none; width: 680px; margin-left: auto; display: flex; border: 2px solid var(--primary); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(16,42,104,.06); }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #ff6a00, #ff8f3d); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }

.search-bar input { flex: 1; border: none; outline: none; padding: 0 20px; font-size: 14px; height: 44px; box-sizing: border-box; }
.search-bar .btn { border: none; border-radius: 0 4px 4px 0; padding: 0 30px; font-size: 15px; font-weight: 600; height: 44px; }

.site-nav { background: #fff; border-bottom: 1px solid var(--border); }
.site-nav .inner { display: flex; align-items: center; height: 44px; gap: 4px; }
.site-nav a { color: var(--text); font-size: 15px; padding: 0 18px; height: 44px; line-height: 44px; position: relative; }
.site-nav a:hover { color: var(--primary); }
.site-nav a.active { color: var(--primary); font-weight: 400; }


.hero { margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 360px; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: center; padding: 0 60px; }
.hero .slide.active { opacity: 1; }
.hero .slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .slide .mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,80,.72) 0%, rgba(10,30,80,.35) 55%, rgba(10,30,80,0) 100%); }
.hero .slide .text { position: relative; z-index: 1; color: #fff; max-width: 520px; }
.hero .slide .t1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.hero .slide .t2 { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.hero .dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero .dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s; }
.hero .dots i.active { background: #fff; }


.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin: 20px 0 28px; }
.cat-strip .item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 8px; text-align: center; cursor: pointer; transition: all .2s; }
.cat-strip .item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-strip .icon { font-size: 28px; margin-bottom: 6px; }
.cat-strip .name { font-size: 14px; color: var(--text); font-weight: 500; }
.cat-strip .count { font-size: 12px; color: var(--text-3); }

.cat-strip a { display: block; text-align: center; padding: 8px 4px; font-size: 15.5px; color: var(--text); font-weight: 500; transition: color .18s; border: none; background: none; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-strip a:hover { color: var(--primary); transform: none; }
.cat-strip a.on { color: var(--primary); font-weight: 700; background: none; border: none; }


.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 16px; }
.sec-head .title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sec-head .title::before { content: ''; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.sec-head .more { color: var(--text-3); font-size: 13px; }


.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 14px; }
@media (max-width: 1280px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.prod-card {
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  overflow: hidden; cursor: pointer; transition: box-shadow .25s, transform .25s; position: relative;
}
.prod-card:hover { box-shadow: 0 10px 25px rgba(176,0,191,.15); transform: translateY(-2px); border: 1px solid #FF552E; background: #FFF5EB; }
.prod-card .thumb { width: 100%; height: 300px; object-fit: fill; background: #fff; transition: opacity .3s ease; }
.prod-card:hover .thumb { opacity: .7; }
.prod-card .body { padding: 10px 12px 12px; }
.prod-card .name { font-size: 13px; color: var(--text); height: 40px; line-height: 20px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-card .price { color: #ff4000; font-size: 18px; font-weight: 700; }
.prod-card .meta { color: var(--text-3); font-size: 12px; }
.prod-card .body { padding: 12px 14px 14px; }
.prod-card .name { font-size: 14px; color: var(--text); height: 42px; line-height: 21px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-card .price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.prod-card .price-row .stock { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.prod-card .price { color: var(--accent); font-size: 20px; font-weight: 700; }
.prod-card .price small { font-size: 12px; font-weight: 400; }
.prod-card .market { color: var(--text-4); font-size: 12px; text-decoration: line-through; }
.prod-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--text-3); font-size: 12px; }
.prod-card .tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.prod-card .sales-tag { position: absolute; top: 10px; right: 10px; z-index: 2; }

.prod-actions { display: flex; gap: 8px; margin-top: 10px; }
.prod-btn { flex: 1; height: 34px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all .18s ease; border: 1px solid #e2e6ec; background: #fff; color: #3d4757; }
.prod-btn:hover { transform: translateY(-1px); }
.prod-add { background: #fff7f0; border-color: var(--primary); color: var(--primary); }
.prod-add:hover { background: var(--primary); color: #fff; }

.prod-chat { background: #f0f6ff; border-color: #2f6bff; color: #2f6bff; }
.prod-chat:hover { background: #2f6bff; color: #fff; }


.detail-layout { display: grid; grid-template-columns: minmax(520px, 560px) minmax(0, 1fr); gap: 28px; margin-top: 16px; }

.detail-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 14px; align-items: start; }
.detail-bottom .db-left { min-width: 0; min-height: 640px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.detail-bottom .db-left .detail-tabs { margin-top: 0; border-radius: 0; }
.detail-bottom .tab-pane { padding: 24px 16px 18px; }
.detail-bottom .tab-pane .card { border: none; box-shadow: none; border-radius: 0; padding: 0; }
.detail-bottom .db-right { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 16px 16px; position: sticky; top: 80px; }
.detail-bottom .db-right .sec-head { border-bottom: 1px solid var(--border); padding: 23px 0 15px; margin: 0 0 12px; }
.detail-bottom .db-right .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

.detail-bottom .db-right .thumb-wrap { height: 150px; }
.detail-bottom .db-right .prod-card .thumb { height: 150px; object-fit: fill; }
.detail-bottom .db-right .prod-card .body { padding: 8px 10px 10px; }
.detail-bottom .db-right .prod-card .name { font-size: 12px; height: 32px; line-height: 16px; }
.detail-bottom .db-right .prod-card .price { font-size: 14px; }
.detail-bottom .db-right .prod-card .meta { font-size: 11px; }
.detail-bottom .db-right .prod-card .prod-btn { font-size: 12px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .detail-bottom { grid-template-columns: 1fr; } .detail-bottom .db-right .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.gallery .main { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); background: #f2f3f5; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.gallery .thumbs img.active { border-color: var(--primary); }
.detail-info { display: flex; flex-direction: column; min-width: 0; }
.detail-info .title { font-size: 28px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; color: #1f2329; letter-spacing: .3px; text-rendering: optimizeLegibility; overflow-wrap: break-word; word-break: break-word; }
.detail-info .title:hover { color: #1f2329; }
.detail-info .sub { color: var(--text-3); font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-info .sub .sub-shop { color: #0166d3; font-weight: 600; text-decoration: none; }
.detail-info .sub .sub-shop:hover { color: var(--primary); }
.brand-tag { display: inline-block; background: #fff3e8; color: var(--primary); font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.trade-note { border: 1px solid #eef0f3; border-radius: 10px; padding: 12px 16px; margin-top: 16px; background: #fafbfc; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.trade-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0 24px; background: linear-gradient(180deg,#fafcff,#fff); border: 1px solid #eef2f7; border-radius: 12px; padding: 4px 16px; width: 100%; box-sizing: border-box; margin-top: 6px; flex: 1; }
.trade-note .tn-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef2f7; align-items: center; transition: background .18s; border-radius: 8px; padding-left: 6px; padding-right: 6px; min-width: 0; }
.trade-note .tn-row > div { flex: 1; min-width: 0; }
.trade-note .tn-row:hover { background: #fff8f2; }
.trade-note .tn-row:nth-last-child(-n+2) { border-bottom: none; }
.trade-note .tn-ico { font-size: 20px; line-height: 1.4; width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: linear-gradient(135deg,#fff0e6,#ffe8d6); border: 1px solid #ffdcc0; }
.trade-note .tn-row:nth-child(2) .tn-ico { background: linear-gradient(135deg,#e8f4ff,#dceeff); border-color: #c8e4ff; }
.trade-note .tn-row:nth-child(3) .tn-ico { background: linear-gradient(135deg,#e9f9ef,#dcf5e4); border-color: #c5ecd2; }
.trade-note .tn-row:nth-child(4) .tn-ico { background: linear-gradient(135deg,#f3edff,#e9e0ff); border-color: #d8c9ff; }
.trade-note .tn-row b { color: #1d2636; font-size: 14.5px; }
.trade-note .tn-row p { color: var(--text-3); font-size: 12.5px; margin: 3px 0 0; }
.trade-note b { font-size: 14px; color: #111; }
.trade-note p { font-size: 12.5px; color: #7b8aa3; margin: 2px 0 0; line-height: 1.5; }
.price-box { background: linear-gradient(135deg, #fff5ec, #fff); border: 1px solid #ffdfc0; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.price-box .now { color: var(--accent); font-size: 32px; font-weight: 800; }
.price-box .market { color: var(--text-3); text-decoration: line-through; font-size: 14px; }
.price-box .sales { color: var(--text-3); font-size: 13px; }
.info-list { border-top: 1px dashed var(--border); padding-top: 14px; }
.info-list .row { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 14px; }
.info-list .row b { color: var(--text); font-weight: 600; width: 72px; flex-shrink: 0; }
.buy-bar { display: flex; gap: 12px; margin-top: 4px; }
.buy-bar > * { flex: 1; min-width: 0; }
.qty-box { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: 0 0 120px; }
.qty-box button { width: 36px; height: 42px; flex: none; border: none; background: #fafbfc; font-size: 18px; color: var(--text-2); }
.qty-box input { width: 48px; height: 42px; flex: none; border: none; text-align: center; outline: none; }
.buy-bar .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.news-list .item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.news-list .item:last-child { border-bottom: none; }
.news-list .cover { width: 160px; height: 100px; object-fit: cover; border-radius: var(--radius); background: #f2f3f5; flex-shrink: 0; }
.news-list .title { font-size: 16px; font-weight: 600; color: var(--text); }
.news-list .summary { color: var(--text-3); font-size: 13px; margin: 6px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-list .meta { color: var(--text-4); font-size: 12px; }


.site-footer { background: #101828; color: #98a2b3; margin-top: 48px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 36px 0 28px; }
@media (max-width: 768px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #98a2b3; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: 12px; color: #667085; }


.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
  width: var(--sidebar-w); background: #0e2a47; color: #d0d5dd; flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
}
.admin-side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; font-weight: 700; color: #fff; }
.admin-side .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #ff6a00, #ff8f3d); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.admin-side .menu { flex: 1; overflow-y: auto; padding: 12px 0; }
.admin-side .menu .group { padding: 10px 20px 4px; font-size: 12px; color: #667085; }
.admin-side .menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: #d0d5dd;
  font-size: 14px; border-left: 3px solid transparent; transition: all .15s;
}
.admin-side .menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-side .menu a.active { background: rgba(255,106,0,.16); color: #fff; border-left-color: var(--primary); }
.admin-side .menu a .ico { width: 18px; text-align: center; }
.admin-side .foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #667085; }

.admin-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.admin-header {
  height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.admin-header .title { font-size: 16px; font-weight: 600; }
.admin-header .right { display: flex; align-items: center; gap: 14px; }
.admin-header .user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.admin-header .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.admin-content { padding: 24px; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.page-head h2 { font-size: 20px; font-weight: 700; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 160px; }


.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0b1f3a 0%, #123055 50%, #1a3f6e 100%); padding: 20px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(8,20,60,.35); padding: 40px 36px; }
.login-card .logo { justify-content: center; margin-bottom: 8px; }
.login-card .slogan { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 28px; }


.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-danger { color: var(--danger); } .text-success { color: var(--success); } .text-warn { color: var(--warning); }
.text-accent { color: var(--accent); } .text-primary { color: var(--primary); }
.text-3 { color: var(--text-3); } .text-2 { color: var(--text-2); }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-3); }


.top-bar { background: #fff; color: var(--text-2); border-bottom: 1px solid #eef0f3; font-size: 12px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.top-links { display: flex; gap: 24px; }
.top-links a { color: var(--text-2); transition: color .2s; }
.top-links a:hover { color: var(--primary); }
.top-right { display: flex; align-items: center; gap: 0; position: relative; }
.top-right .ha-link { font-size: 12.5px; color: var(--text-2); padding: 0 16px; border-right: 1px solid #eef0f3; line-height: 36px; display: block; white-space: nowrap; }
.top-right .ha-link:hover { color: var(--primary); }
.top-right .ha-link:last-child { border-right: none; }
.top-right .lang-switch { padding: 0 14px; }
.top-right .lang-btn { background: none; border: none; color: var(--text-2); font-size: 12.5px; cursor: pointer; line-height: 36px; padding: 0; }
.top-right .lang-btn:hover { color: var(--primary); }

.lang-switch { display: inline-flex; align-items: center; margin: 0 6px; }
.lang-switch .lang-select { width: auto; min-width: 88px; padding: 5px 10px; font-size: 13px; line-height: 20px; height: 30px; border: 1px solid #d9dee5; border-radius: 6px; background: #fff; color: var(--text-2); cursor: pointer; margin: 0; box-shadow: 0 1px 2px rgba(10,40,120,.04); }
.lang-switch .lang-select:hover { border-color: var(--primary); color: var(--primary); }
.top-right .lang-switch { position: relative; padding: 0 14px; }
.top-links .lang-switch { margin-right: 4px; }
.top-right .lang-menu { top: 40px; right: 6px; left: auto; min-width: 160px; max-height: 320px; overflow-y: auto; z-index: 300; }
.top-right .user-menu { margin: 0 16px 0 0; }
.top-right .user-menu .ha-link { border-right: none; padding: 0; }

.site-header { background: #fff; border-bottom: 1px solid #eef0f3; position: sticky; top: 0; z-index: 100; }
.site-header .inner { display: flex; align-items: center; gap: 14px; height: auto; max-width: 1440px; margin: 0 auto; padding: 22px 24px; transition: padding .25s ease; }
.site-header.shrink .inner { padding: 6px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.logo img { height: 40px; width: auto; display: block; }
.logo .mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #ff6a00, #ff8f3d); box-shadow: 0 4px 12px rgba(255,106,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }

.cart-entry { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; background: var(--primary); color: #fff !important; font-size: 15px; font-weight: 600; border-radius: 6px; transition: background .2s; white-space: nowrap; }
.cart-entry:hover { background: var(--primary-dark); }
.cart-entry .cart-badge { position: static; display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--primary); font-size: 12px; line-height: 18px; justify-content: center; }
.cart-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4000; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ha-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 18px; padding: 7px 16px; transition: all .2s; }
.ha-item:hover { color: var(--primary); border-color: var(--primary); background: rgba(255,106,0,.05); }

.site-nav { background: #fff; border-bottom: 1px solid #eef0f3; box-shadow: 0 2px 8px rgba(10,40,120,.04); }
.site-nav .inner { display: flex; align-items: stretch; height: 52px; position: relative; }
.nav-links { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; }

.nav-links a { flex: 1; min-width: 0; text-align: center; color: var(--text); font-size: 16.5px; padding: 0 8px; height: 52px; line-height: 52px; position: relative; font-weight: 500; transition: color .2s; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 400; }


.cat-panel { display: none; position: absolute; top: 50px; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--primary); border-radius: 0 0 12px 12px; box-shadow: 0 16px 40px rgba(10,40,120,.14); padding: 18px 22px; z-index: 99; }
.cat-panel.open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
.cp-col { border-right: 1px dashed var(--border); padding-right: 20px; }
.cp-col:last-child { border-right: none; }
.cp-top { display: block; font-size: 15px; font-weight: 700; color: var(--primary); padding: 6px 0 10px; border-bottom: 2px solid rgba(255,106,0,.16); margin-bottom: 8px; }
.cp-top:hover { color: #0f2a6e; }
.cp-subs { display: flex; flex-wrap: wrap; }
.cp-subs a { display: inline-block; font-size: 13px; color: var(--text-2); padding: 5px 12px; margin: 2px 0; border-radius: 14px; transition: all .15s; }
.cp-subs a:hover { color: var(--primary); background: rgba(255,106,0,.08); }


.main-wrap { position: relative; }


.container { max-width: 1440px; padding: 0 24px; }
.site-main { max-width: 1440px; margin: 0 auto; padding: 18px 24px 40px; }


.lang-switch { position: relative; margin: 0 10px; }
.lang-btn { background: none; border: none; color: var(--text-2); font-size: 13.5px; cursor: pointer; padding: 4px 6px; }
.lang-btn:hover { color: var(--primary); }
.lang-switch { position: relative; }
.lang-menu { position: absolute; left: 0; transform: none; top: calc(100% + 8px); background: #fff; border: none;
  border-radius: 8px; box-shadow: 0 8px 28px rgba(10,40,120,.14); min-width: 168px; display: none; z-index: 9999; padding: 4px 0; }
.lang-menu.open { display: block; }
.lang-menu a { display: block; height: 26px; line-height: 26px; padding: 0 12px; margin: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.lang-menu a:hover { background: #f5f7fa; color: var(--primary); }
.lang-menu a.active { color: #ff4d4f; background: #fff1f0; font-weight: 600; }


.user-menu { position: relative; }
.user-drop { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 170px; display: none; z-index: 200; padding: 6px 0; }
.user-menu:hover .user-drop, .user-drop.open { display: block; }
.user-drop a { display: block; padding: 9px 16px; font-size: 13px; color: var(--text-2); }
.user-drop a:hover { background: var(--primary-light); color: var(--primary); }

.cart-badge { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 4px; }


.account-layout { display: flex; gap: 18px; align-items: flex-start; }
.account-side { width: 210px; flex: 0 0 210px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 0; }
.account-side .side-title { padding: 12px 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
.account-side a { display: flex; padding: 11px 18px; color: var(--text-2); font-size: 14px; }
.account-side a:hover { background: var(--primary-light); color: var(--primary); }
.account-side a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.account-body { flex: 1; min-width: 0; }


.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }


.st-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.st-pending { background: #fff3e6; color: #e85d00; }
.st-paid, .st-confirmed, .st-shipped, .st-delivered { background: #e6f7ee; color: #0b8a4d; }
.st-canceled { background: #fee; color: #d92d20; }


.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-table th { background: #fafbfc; color: var(--text-2); font-weight: 500; }
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-stepper button { width: 28px; height: 28px; border: none; background: #fff; cursor: pointer; }
.qty-stepper input { width: 44px; height: 28px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

.summary-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }


.stars { color: #f79009; letter-spacing: 2px; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border); }


@media (max-width: 900px) {
  .account-layout { flex-direction: column; }
  .account-side { width: 100%; flex: none; }
  .form-grid { grid-template-columns: 1fr; }
}


.total-row { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.total-row b { color: #ff4000; font-size: 20px; margin-left: 4px; }


.assurance {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 16px 0 2px;
  padding: 13px 16px; background: linear-gradient(180deg,#fffdf8,#fff7ec); border: 1px solid #ffdfb8; border-radius: 10px;
  width: 100%; box-sizing: border-box;
}
.assurance span { flex: 1; justify-content: center; text-align: center; font-size: 13px; color: #a86400; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; white-space: normal; min-width: 0; line-height: 1.35; }


.shop-card {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-top: 12px; background: #fff;
}
.shop-card .sc-info { display: flex; flex-direction: column; gap: 3px; }
.shop-card b { font-size: 15px; }


.btn-wish { border: 1px solid #ffb3a0 !important; color: #ff4000 !important; background: #fff8f5 !important; }
.btn-wish.wished { background: #fff0e6 !important; border-color: #ff4000 !important; }


.main-wrap { position: relative; background: transparent; border-radius: 5px; overflow: hidden; }
.main-wrap .main { position: relative; z-index: 0; transition: opacity .3s ease, visibility .3s ease; }
.main-wrap .main.hide { opacity: 0; visibility: hidden; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.25); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 5;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transition: opacity .2s;
}
.video-play:hover { opacity: .85; }
.video-play svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.video-box { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 5px; background: transparent; object-fit: contain; z-index: 5; }


.info-list { border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 14px; }
.info-list .row { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); font-size: 13.5px; }
.info-list .row b { color: var(--text); font-weight: 600; width: 72px; flex-shrink: 0; }


.btn-chat { border: 1px solid #b3d4ff !important; color: #1a5cff !important; background: #f5f9ff !important; }
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: 620px; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 16px; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; background: #fafbfc; }
.c-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f2f3f5; cursor: pointer; align-items: center; }
.c-item:hover { background: #f2f6ff; }
.c-item.active { background: #eef4ff; border-left: 3px solid var(--primary); }
.c-item .av { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.c-item .nm { font-size: 14px; font-weight: 600; color: var(--text); }
.c-item .lm { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.c-item .unread { background: #f5222d; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: auto; }
.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.cp-head { padding: 12px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.cp-body { flex: 1; overflow-y: auto; padding: 16px; background: #f7f8fa; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg.mine { justify-content: flex-end; }
.msg .bubble { max-width: 70%; padding: 9px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg .tm { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.cp-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.cp-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; }



.thumb-wrap { position: relative; overflow: hidden; display: block; background: #f2f3f5; height: 300px; }
.thumb-wrap::after {
  content: ''; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55) 48%, rgba(255,255,255,.85) 50%, transparent 52%);
  transform: rotate(8deg); opacity: 0; pointer-events: none;
}
.prod-card:hover .thumb-wrap::after { animation: flashSweep .9s ease; }
@keyframes flashSweep { 0% { left: -80%; opacity: 1; } 100% { left: 160%; opacity: 0; } }


.list-layout { display: flex; gap: 16px; margin-top: 14px; align-items: flex-start; }


.cat-strip { display: flex; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 4px; margin: 14px 0 0; }
.cat-strip a { display: inline-block; text-align: center; color: #000; text-decoration: none; font-size: 15px; height: 52px; line-height: 52px; padding: 0 18px; transition: color .15s, font-weight .15s; }
.cat-strip a:hover { color: #FA4600; }
.cat-strip a.on, .cat-strip a.on:hover { font-weight: bold; color: #FA4600; }


.list-main { flex: 1; min-width: 0; }
.ct-title { font-size: 15px; font-weight: 700; color: var(--text); padding: 4px 6px 10px; border-bottom: 2px solid #f2f3f5; margin-bottom: 10px; }
.ct-item { margin-bottom: 2px; }
.ct-item > a { display: block; padding: 8px 10px; font-size: 13.5px; color: var(--text); border-radius: 6px; transition: all .15s; }
.ct-item > a:hover { color: var(--primary); background: var(--primary-light); }
.ct-item.cur > a.on { color: var(--primary); font-weight: 700; background: var(--primary-light); border-left: 3px solid var(--primary); }
.ct-branch { margin-left: 0; }
.ct-item.anc > a { font-weight: 600; }
.ct-sub a { display: block; padding: 6px 10px 6px 26px; font-size: 13px; color: var(--text-2); border-radius: 6px; }
.ct-sub a:hover { color: var(--primary); background: var(--primary-light); }
.ct-sub a.on { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); padding: 2px 4px 10px; border-bottom: 2px solid #f2f3f5; margin-bottom: 10px; flex-wrap: wrap; }
.crumb a { color: var(--text-2); }
.crumb a.on { color: var(--primary); font-weight: 700; }
.crumb span { color: var(--text-4); }


.card img { max-width: 100%; height: auto !important; }
.card p { line-height: 1.7; }
.card iframe, .card video { max-width: 100%; }

@media (max-width: 900px) {
  .list-layout { flex-direction: column; }
  .cat-side { width: 100%; position: static; max-height: none; }
}


.site-header .header-actions { display: flex; align-items: center; gap: 18px; margin-left: 0; flex-shrink: 0; }
.ha-link { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ha-link:hover { color: var(--primary); }
.site-header .lang-switch { position: relative; }
.site-header .lang-btn { background: none; border: none; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; padding: 6px 4px; }
.site-header .lang-btn:hover { color: var(--primary); }
.site-header .lang-menu { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(10,40,120,.16); min-width: 168px; display: none; z-index: 9999; overflow: hidden; padding: 6px 0; }
.site-header .lang-menu.open { display: block; }

.site-header .lang-menu a { display: block; padding: 11px 16px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.site-header .lang-menu a:hover { background: var(--primary-light); color: var(--primary); }
.site-header .user-menu { position: relative; }
.site-header .user-drop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(10,40,120,.16); min-width: 180px; display: none; z-index: 9999; padding: 6px 0; }
.site-header .user-menu:hover .user-drop { display: block; }
.user-drop a { display: block; padding: 10px 18px; font-size: 13.5px; color: var(--text); }
.user-drop a:hover { background: var(--primary-light); color: var(--primary); }


.detail-tabs { display: flex; border-bottom: 1px solid var(--border); margin-top: 24px; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.dt-tab { padding: 14px 28px; font-size: 16px; font-weight: 600; color: var(--text-2); background: none; border: 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.dt-tab:hover { color: var(--primary); }
.dt-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #FFF5EB; }
.tab-pane { padding: 4px 0 16px; }
.tab-pane .card { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.rich { line-height: 1.9; font-size: 14px; color: var(--text-2); }
.rich .detail-img { position: relative; display: block; width: fit-content; max-width: 100%; margin: 20px auto; border-radius: 10px; overflow: hidden; }
.rich .detail-img img { max-width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rich .detail-img::after { content: 'Global Mall'; position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(0,0,0,.5); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 3px; padding: 8px 22px; border-radius: 8px; pointer-events: none; user-select: none; }


.cat-banner { margin: 14px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: #f2f3f5; }
.cat-banner img { width: 100%; display: block; height: auto; object-fit: contain; }


.sf-wrap { max-width:1220px; margin:0 auto; padding:18px 12px; }
.sf-banner { width:100%; height:auto; min-height:120px; object-fit:cover; border-radius:10px; margin-bottom:14px; }
.sf-head { position:relative; display:flex; gap:20px; align-items:flex-start; padding:0; border-radius:12px; color:#fff; overflow:hidden; background-size:cover; background-position:center; }
.sf-head-mask { position:absolute; inset:0; background:linear-gradient(90deg, rgba(6,20,60,.82), rgba(10,40,110,.55) 55%, rgba(20,70,160,.35)); }
.sf-head-in { position:relative; z-index:2; display:flex; gap:20px; align-items:flex-start; padding:24px 28px; width:100%; box-sizing:border-box; }
.sf-chat { flex:none; margin-left:auto; align-self:center; height:44px; padding:0 26px; border-radius:10px; font-size:14px; font-weight:600; box-shadow:0 6px 18px rgba(0,0,0,.25); }
.sf-logo { width:96px; height:96px; border-radius:50%; object-fit:cover; border:3px solid rgba(255,255,255,.55); background:#fff; flex:none; }
.sf-meta { flex:1; min-width:0; }
.sf-name { font-size:22px; font-weight:800; margin:0 0 8px; }
.sf-stats { display:flex; flex-wrap:wrap; gap:16px; font-size:13px; color:#dbe7ff; margin-bottom:8px; }
.sf-star { color:#ffc53d; font-weight:700; }
.sf-cnt { background:rgba(255,255,255,.14); padding:1px 10px; border-radius:12px; }
.sf-desc { font-size:13px; color:#c7d6ff; line-height:1.7; margin-bottom:8px; }
.sf-contact { font-size:13px; color:#9fb4e8; }
.sf-cats { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; }
.sf-cat { padding:5px 14px; border:1px solid #e3e6ec; border-radius:16px; font-size:13px; color:#3b4252; background:#fff; transition:.18s; }
.sf-cat em { font-style:normal; color:#9aa2b1; margin-left:3px; font-size:12px; }
.sf-cat.on, .sf-cat:hover { border-color:#ff6a00; color:#ff6a00; background:#fff7f0; }


.back-top { position: fixed; right: 4px; bottom: 96px; border:0;background: transparent;border-radius:5px; cursor: pointer; z-index: 1000; box-shadow: 0 6px 18px rgba(255,106,0,.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); }


.auth-wrap { min-height: calc(100vh - 430px); display: flex; align-items: center; justify-content: center; padding: 36px 16px 52px; }
.auth-box { width: 100%; border: none; border-radius: 16px; box-shadow: 0 18px 60px rgba(15,45,120,.10), 0 2px 10px rgba(15,45,120,.04); padding: 34px 38px 30px; background: #fff; position: relative; overflow: hidden; }
.auth-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), #ffa94d, var(--primary)); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h3 { font-size: 26px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: .3px; }
.auth-head .auth-sub { font-size: 13px; color: var(--text-3); margin: 8px 0 0; line-height: 1.6; }
.auth-sec-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 22px 0 14px; padding-left: 10px; border-left: 3px solid var(--primary); line-height: 1.2; }
.auth-box .field { margin-top: 16px; }
.auth-box .field label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; display: block; }
.auth-box .field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e3e7ee; border-radius: 10px; background: #fafbfd; font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; box-sizing: border-box; }
.auth-box .field input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.auth-box .btn-block { width: 100%; height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: .5px; margin-top: 22px; }
.auth-links { display: flex; justify-content: center; gap: 26px; margin-top: 20px; font-size: 13px; }
.auth-links a { color: var(--text-3); position: relative; transition: color .2s; }
.auth-links a:hover { color: var(--primary); }
.auth-links a + a::before { content: '·'; position: absolute; left: -16px; color: #d5dae3; }
.auth-alt { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-alt a { color: var(--primary); font-weight: 600; }

.auth-ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 10px; border: 1.5px solid var(--primary); background: #fff7f0; color: var(--primary); font-size: 15px; font-weight: 600; letter-spacing: .5px; margin-top: 12px; transition: all .2s; box-sizing: border-box; }
.auth-ghost:hover { background: var(--primary); color: #fff; }

.auth-modal { border-radius: 16px; overflow: hidden; }
.auth-modal .modal-head { background: linear-gradient(135deg, #fff7f0, #ffffff); border-bottom: 1px solid #ffe9d8; padding: 18px 22px; }
.auth-modal .modal-head span:first-child { color: var(--primary); font-size: 18px; letter-spacing: .3px; }
.auth-modal .modal-body { padding: 22px 24px 6px; }
.auth-modal .field label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; display: block; }
.auth-modal .field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #e3e7ee; border-radius: 10px; background: #fafbfd; font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; box-sizing: border-box; }
.auth-modal .field input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.auth-modal .modal-foot { justify-content: center; padding: 16px 24px 22px; gap: 12px; }
.auth-modal .modal-foot .btn { height: 44px; padding: 0 30px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.auth-modal .modal-foot .btn-primary { min-width: 150px; }


.thumb-wrap { position: relative; }
.find-similar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(6px);
  width: 90%; height: 38px; line-height: 38px; text-align: center;
  padding: 0; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255, 85, 46, .95); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(255, 85, 46, .35);
  opacity: 0; transition: all .18s ease; pointer-events: none; z-index: 3;
  margin-bottom: 20px;
}
.prod-card:hover .find-similar { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.find-similar:hover { background: #ff4000; }

@media (hover: none) { .find-similar { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; } }

.detail-bottom .db-right .find-similar { width: 90%; height: 32px; line-height: 32px; font-size: 11px; bottom: 8px; }
