﻿/* 枢策商城 PC 模板公共样式 */
body { background: var(--pc-bg, #f5f6f7); }

/* 顶部 */
.pc-top { background: #111827; color: #fff; }
.pc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pc-nav { height: 66px; display: flex; align-items: center; gap: 30px; }
.pc-nav a.pc-brand { color: #fff; font-size: 20px; font-weight: 700; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pc-nav nav { display: flex; gap: 20px; flex-wrap: nowrap; flex: 0 0 auto; }
.pc-nav nav a { color: #cbd5e1; font-size: 14px; white-space: nowrap; }
.pc-nav nav a:hover, .pc-nav nav a.active { color: #fff; }
.pc-search { margin-left: auto; display: flex; gap: 8px; min-width: 0; }
.pc-search input { width: 240px; min-width: 120px; height: 36px; border: 0; border-radius: 7px; padding: 0 12px; font-size: 13px; }
.pc-search button { height: 36px; border: 0; border-radius: 7px; background: var(--primary, #ff4400); color: #fff; padding: 0 16px; cursor: pointer; }

/* 主体 */
.pc-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin: 22px 0 28px; }
.pc-main.wide { grid-template-columns: minmax(0, 1fr); }
.pc-side { background: #fff; border-radius: 12px; padding: 14px 12px; height: fit-content; }
.pc-side-ad { margin-top: 14px; border-top: 1px solid #f0f2f5; padding-top: 12px; }
.pc-side-ad a { display: block; position: relative; border-radius: 8px; overflow: hidden; }
.pc-side-ad img { width: 100%; display: block; border-radius: 8px; }
.pc-side-ad-tag { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; }
.pc-side h3 { margin: 0 0 8px; font-size: 15px; }
.pc-cat { display: block; padding: 8px 10px; border-radius: 6px; color: #374151; font-size: 13px; }
.pc-cat:hover { background: var(--primary-soft, #fff5f2); color: var(--primary, #ff4400); }
.pc-cat.active { background: #fff1ec; color: var(--primary, #ff4400); font-weight: 600; }
.pc-cat.child { padding-left: 24px; font-size: 12px; color: #6b7280; }
.pc-section { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.pc-section h3 { margin: 0 0 14px; font-size: 17px; }
.pc-banner img { width: 100%; display: block; border-radius: 12px; }
.pc-notice { background: #fff7ed; color: #9a3412; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* 商品栅格 */
.pc-goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pc-goods .goods-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eef0f3; }
.pc-goods .goods-card .thumb { width: 100%; height: 190px; object-fit: cover; display: block; background: #f0f0f0; }
.pc-goods .goods-card .info { padding: 10px 12px 12px; }
.pc-goods .goods-card .name { font-size: 14px; height: 40px; overflow: hidden; line-height: 1.45; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 面包屑 */
.pc-crumb { font-size: 13px; color: #6b7280; margin: 18px 0 12px; }
.pc-crumb a { color: #6b7280; }
.pc-crumb span { margin: 0 6px; }

/* 页脚 */
.pc-footer { border-top: 1px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 13px; padding: 24px 0; }
.pc-footer .pc-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pc-empty { color: #6b7280; font-size: 14px; padding: 20px 0; }

/* 详情 */
.pc-detail { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 28px; background: #fff; border-radius: 12px; padding: 22px; }
.pc-detail .hero { width: 100%; border-radius: 10px; background: #f2f3f5; object-fit: cover; display: block; }
.pc-detail .hero-box { position: relative; }
.pc-detail .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pc-detail .thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.pc-detail .thumbs img.active { border-color: var(--primary, #ff4400); }
.pc-detail h1 { font-size: 22px; margin: 0 0 10px; line-height: 1.45; }
.pc-detail .price-row { background: #fff7f4; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.pc-detail .price-row .big { color: var(--primary, #ff4400); font-size: 28px; font-weight: 700; }
.pc-detail .price-row .old { color: #9ca3af; text-decoration: line-through; margin-left: 10px; }
.pc-detail .meta { font-size: 13px; color: #6b7280; display: flex; gap: 24px; flex-wrap: wrap; }
.pc-detail .field { margin-top: 16px; }
.pc-detail .field .label { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.pc-detail .buy-row { margin-top: 22px; display: flex; gap: 12px; }
.pc-detail .buy-row .btn { min-width: 150px; height: 44px; }
.pc-detail .sku-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-detail .sku-list .sku { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pc-detail .sku-list .sku.active { border-color: var(--primary, #ff4400); color: var(--primary, #ff4400); background: var(--primary-soft, #fff5f2); }
.pc-detail .sku-list .sku.disabled { color: #c7c9cc; background: #fafafa; cursor: not-allowed; }
.pc-desc { background: #fff; border-radius: 12px; padding: 22px; margin: 16px 0 28px; }
.pc-desc h3 { margin: 0 0 14px; font-size: 17px; }
.pc-desc .rich-content img { max-width: 100%; height: auto; }
.pc-qty { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.pc-qty button { width: 36px; height: 36px; border: 0; background: #fafafa; cursor: pointer; font-size: 16px; }
.pc-qty span { width: 52px; text-align: center; font-size: 14px; }

@media (max-width: 1024px) {
  .pc-detail { grid-template-columns: 1fr; }
  .pc-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pc-main { grid-template-columns: 1fr; }
  .pc-side { display: none; }
  .pc-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-nav nav { display: none; }
}

/* 首页增强 */
.pc-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin: 22px 0 0; }
.pc-hero .pc-side { height: 100%; }

.pc-carousel { position: relative; height: 340px; border-radius: 14px; overflow: hidden; background: #111827; }
.pc-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.pc-carousel .slide.active { opacity: 1; pointer-events: auto; }
.pc-carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-carousel .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,39,.72) 0%, rgba(17,24,39,.35) 52%, rgba(17,24,39,.05) 100%); }
.pc-carousel .copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 52px; color: #fff; max-width: 560px; }
.pc-carousel .copy .kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
.pc-carousel .copy h2 { font-size: 32px; line-height: 1.35; margin: 12px 0 10px; }
.pc-carousel .copy p { font-size: 14px; line-height: 1.8; opacity: .88; margin: 0 0 18px; }
.pc-carousel .copy .btn { align-self: flex-start; height: 40px; padding: 0 22px; }
.pc-carousel .dots { position: absolute; left: 52px; bottom: 20px; display: flex; gap: 8px; z-index: 3; }
.pc-carousel .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s; }
.pc-carousel .dots button.active { width: 22px; background: #fff; }
.pc-carousel .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(17,24,39,.35); color: #fff; font-size: 18px; cursor: pointer; z-index: 3; opacity: 0; transition: opacity .3s; }
.pc-carousel:hover .arrow { opacity: 1; }
.pc-carousel .arrow.prev { left: 14px; }
.pc-carousel .arrow.next { right: 14px; }

.pc-service { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.pc-service .item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 14px 16px; }
.pc-service .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #fff1ec; color: var(--primary, #ff4400); flex: none; }
.pc-service .t { font-size: 14px; font-weight: 600; }
.pc-service .s { font-size: 12px; color: #9ca3af; margin-top: 3px; }

.pc-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-sec-head h3 { margin: 0; font-size: 19px; }
.pc-sec-head .sub { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.pc-sec-head .more { font-size: 13px; color: #6b7280; }
.pc-sec-head .more:hover { color: var(--primary, #ff4400); }

.pc-flash { background: linear-gradient(180deg, #fff6f2 0%, #ffffff 62%); border: 1px solid #ffe3d6; }
.pc-flash .countdown { display: inline-flex; align-items: center; gap: 6px; background: #1f2937; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.pc-flash .countdown b { color: #ffd166; font-weight: 600; }
.pc-flash .pc-goods { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pc-goods .goods-card { transition: transform .18s ease, box-shadow .18s ease; }
.pc-goods .goods-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,24,39,.09); }
.pc-goods .goods-card .name { color: #1f2937; }

/* 页脚增强 */
.pc-footer { background: #111827; color: #9ca3af; border-top: 0; padding: 34px 0 0; margin-top: 26px; }
.pc-footer a { color: #9ca3af; }
.pc-footer a:hover { color: #fff; }
.pc-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 26px; }
.pc-footer-cols h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.pc-footer-cols .links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.pc-footer-cols .about { font-size: 13px; line-height: 1.9; }
.pc-footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pc-footer-bar { border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; padding: 18px 0 22px; font-size: 12px; color: #8b93a1; text-align: center; line-height: 1.9; }
.pc-footer-bar span { display: block; }
.pc-footer-bar .pc-wrap { display: block; padding: 0; }

/* 宽屏布局：面向 1920 及以上的主流桌面 */
.pc-wrap { max-width: 1440px; padding: 0 28px; }
.pc-nav { height: 70px; gap: 34px; }
.pc-nav a.pc-brand { font-size: 21px; }
.pc-nav nav { gap: 24px; }
.pc-nav nav a { font-size: 15px; }
.pc-search input { width: 300px; height: 38px; }
.pc-search button { height: 38px; padding: 0 20px; }

.pc-main { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.pc-side { padding: 16px 14px; }
.pc-side h3 { font-size: 16px; }
.pc-cat { padding: 9px 11px; font-size: 13.5px; }

.pc-section { padding: 20px 22px; margin-bottom: 18px; }
.pc-section h3 { font-size: 18px; }

.pc-hero { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.pc-carousel { height: 400px; }
.pc-carousel .copy { padding: 0 64px; max-width: 640px; }
.pc-carousel .copy h2 { font-size: 36px; }
.pc-carousel .copy p { font-size: 15px; }

.pc-service .item { padding: 16px 18px; }
.pc-service .t { font-size: 15px; }
.pc-service .s { font-size: 12.5px; }

.pc-goods { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pc-goods .goods-card .thumb { height: 215px; }
.pc-goods .goods-card .info { padding: 12px 14px 14px; }
.pc-goods .goods-card .name { font-size: 14.5px; height: 42px; }

.pc-detail { grid-template-columns: 520px minmax(0, 1fr); gap: 32px; }

.pc-footer-cols { gap: 44px; }

@media (max-width: 1560px) {
  .pc-goods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1440px) {
  .pc-nav { gap: 20px; }
  .pc-nav nav { gap: 14px; }
  .pc-nav nav a { font-size: 14px; }
  .pc-search input { width: 180px; }
}

@media (max-width: 1280px) {
  .pc-wrap { max-width: 1200px; }
  .pc-nav { gap: 14px; }
  .pc-nav nav { gap: 11px; }
  .pc-nav nav a { font-size: 13px; }
  .pc-search input { width: 130px; }
  .pc-search button { padding: 0 12px; }
  .pc-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-carousel { height: 340px; }
  .pc-carousel .copy h2 { font-size: 30px; }
  .pc-detail { grid-template-columns: 460px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .pc-main, .pc-hero { grid-template-columns: 1fr; }
  .pc-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-carousel { height: 260px; }
  .pc-carousel .copy { padding: 0 26px; }
  .pc-carousel .copy h2 { font-size: 22px; }
  .pc-detail { grid-template-columns: 1fr; }
}

/* 首页首屏等高：分类侧栏与轮播一致 */
.pc-hero { align-items: stretch; --hero-h: 400px; }
.pc-hero .pc-side {
  height: var(--hero-h);
  max-height: var(--hero-h);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.pc-hero .pc-side::-webkit-scrollbar { width: 4px; }
.pc-hero .pc-side::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 999px; }
.pc-hero .pc-carousel { height: var(--hero-h); }

@media (max-width: 1280px) {
  .pc-hero { --hero-h: 340px; }
}
@media (max-width: 980px) {
  .pc-hero { --hero-h: auto; }
  .pc-hero .pc-side { height: auto; max-height: none; overflow: visible; }
  .pc-hero .pc-carousel { height: 260px; }
}

/* 分类侧栏：不滚动，底部更多 */
.pc-side-fixed .pc-side-list { flex: 1; min-height: 0; overflow: hidden; }
.pc-side-more { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 11px 4px; font-size: 12.5px; color: #6b7280; border-top: 1px solid #f3f4f6; }
.pc-side-more:hover { color: var(--primary, #ff4400); }

/* ---- RTL / 维吾尔语 · 藏语字体 ---- */
[dir="rtl"] body { font-family: "Microsoft Uighur", "Segoe UI", Tahoma, sans-serif; }
[lang="bo"] body { font-family: "Microsoft Himalaya", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .header .title { direction: rtl; }
[dir="rtl"] .header a.muted { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .pc-crumb { direction: rtl; }
[dir="rtl"] .pc-search input { text-align: right; }
[dir="rtl"] .pc-carousel .copy { text-align: right; }
[dir="rtl"] .pc-carousel .veil { background: linear-gradient(270deg, rgba(17,24,39,.72) 0%, rgba(17,24,39,.35) 52%, rgba(17,24,39,.05) 100%); }