/*!
 * [二开] 内页统一版式层 (Inner Pages Remap)
 * 将仍使用旧皮肤（lh-* 粉色系）的其余内页统一映射为当前首页（ref.css）的设计语言：
 *   品牌紫 #571dae / 亮紫 #6a0ae8 / 墨色 #161615 / 描边 #ececef / 浅底 #f7f5f4
 *   现价红 #ff274d / 黑色徽章 / 描边按钮 / 胶囊主按钮
 * 本文件在 lh.css 之后最后加载；已重写的首页/分类/详情/登录/购物车使用各自
 * rf-* / gpd-* 作用域类，不受本层影响。
 */

/* ========== 通用组件 ========== */
/* 面包屑：去掉官方 1px 灰框，改为纯文字路径（与参考站一致） */
.breadcrumb {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 6px 0 16px !important;
  font-size: 12px;
}
.breadcrumb-item a:hover { color: var(--lh-brand); }
.breadcrumb-item + .breadcrumb-item::before { color: #c9c3ce; }

.form-check-input:checked { background-color: #571dae; border-color: #571dae; }
.required .form-label::after, label.required::after { color: var(--lh-red); }

.page-link { border-radius: 999px !important; border-color: #ececef; color: #161615; font-size: 13px; font-weight: 600; padding: .38rem .82rem; }
.page-link:hover { color: #571dae; border-color: #d9d4de; background: #f7f5f4; }
.page-item.active .page-link { background: #571dae; border-color: #571dae; color: #fff; }
.page-item.disabled .page-link { color: #c9c3ce; }

.list-group-item a:hover, .list-group-item:hover { color: #571dae; }
.list-group-item.active { background: #571dae; border-color: #571dae; color: #fff; }

.nav-tabs { border-bottom: 1px solid #ececef; }
.nav-tabs .nav-link { color: #615b67; }
.nav-tabs .nav-link.active { color: #571dae; background: #f1ecf7; border: 0; }

.accordion-button { border-radius: 8px !important; }
.accordion-button:not(.collapsed) { background: #f7f5f4; color: #571dae; box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-item { border-color: #ececef; border-radius: 8px; }

.card { border: 1px solid #ececef; border-radius: 10px; }
.card-header { background: #fff; border-bottom-color: #ececef; }
.table > :not(caption) > * > * { border-bottom-color: #f1eef2; }
.table thead th { color: #615b67; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }

.btn-light { background: #fff; border: 1.5px solid #161615; color: #161615; }
.btn-light:hover, .btn-light:focus { background: #161615; border-color: #161615; color: #fff; }
.btn-outline-primary:hover { background: #571dae; border-color: #571dae; }
.btn-danger { background: #ff274d; border-color: #ff274d; }
.btn-danger:hover { background: #d91f40; border-color: #d91f40; }

/* ========== 各内页 H1（无专属版式层的页面） ========== */
[id^="account-"] #content h1,
#checkout-checkout #content h1,
[id^="information-"] #content h1,
#product-compare #content h1,
#product-manufacturer-list #content h1,
#product-manufacturer-info #content h1,
#product-search #content h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #161615;
  margin-bottom: 18px;
}

/* ========== 页头 / 标题 ========== */
.lh-page-head { border-bottom-color: #ececef; margin: 4px 0 24px; }
.lh-page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #161615; }
.lh-eyebrow { color: var(--lh-brand); }
.lh-page-head::after { background: var(--lh-brand); }
.lh-section-title { font-size: 22px; font-weight: 800; color: #161615; letter-spacing: -.01em; }
.lh-section-title::before { background: var(--lh-brand); }
.lh-section-sub { color: #615b67; }
.lh-account-section-title { color: #161615; font-weight: 800; }

/* ========== 搜索面板 / 工具条 / 筛选 ========== */
.lh-search-panel { background: #fff; border: 1px solid #ececef; border-radius: 10px; padding: 26px; }
.lh-toolbar { background: #fff; border-color: #ececef; border-radius: 10px; }
.lh-toolbar .input-group-text { background: #f7f5f4; border-color: #ececef; color: #161615; }
.lh-toolbar .lh-toolbar-count { color: #615b67; }
#display-control.row { background: #fff; border-color: #ececef; border-radius: 10px; }
.lh-refine a { border-color: #ececef; border-radius: 8px; }
.lh-refine a:hover { border-color: #571dae; color: #571dae; background: #f1ecf7; }

/* ========== 商品卡（搜索/特价/品牌列表，旧 product-thumb） ========== */
.product-thumb { border-color: #ececef; border-radius: 8px; }
.product-thumb:hover { border-color: #d9d4de; box-shadow: 0 10px 28px rgba(22, 22, 21, .08); transform: translateY(-4px); }
.product-thumb .image { background: #ededed; padding: 18px; }
.product-thumb .image img { height: 220px; }
.product-thumb .description h4 a { color: #161615; }
.product-thumb .description h4 a:hover { color: var(--lh-brand); }
.lh-badge { background: #161615; color: #fff; border-radius: 0 13px 13px 0; left: 0; top: 14px; padding: 5px 12px 5px 13px; }
.lh-badge.lh-badge-new { background: #571dae; }
.lh-card-tools button:hover { color: #571dae; border-color: #d9d4de; background: #f7f5f4; }
.lh-stars { color: #571dae; }
.lh-stars .lh-stars-count { color: #8b8494; }
.rating { color: #571dae; }
.price-new { color: var(--lh-red); }
.price-tax { color: #8b8494; }
.lh-add { background: #571dae; border: 1.5px solid #571dae; color: #fff; }
.lh-add:hover { background: #6a0ae8; border-color: #6a0ae8; color: #fff; }

/* ========== 品牌页（A-Z / 品牌卡） ========== */
.lh-letter-bar { background: #fff; border-color: #ececef; border-radius: 10px; }
.lh-letter-bar a { border-color: #ececef; border-radius: 8px; }
.lh-letter-bar a:hover { background: #571dae; border-color: #571dae; color: #fff; }
.lh-brand-card { border-color: #ececef; border-radius: 10px; }
.lh-brand-card h2 { color: #571dae; }
.lh-brand-links a i { color: #bda7dd; }
.lh-brand-links a:hover { color: #571dae; }

/* ========== 对比 / 评论 ========== */
.lh-compare-wrap { border-color: #ececef; border-radius: 10px; }
.lh-compare-table thead td { background: #f1ecf7; color: #571dae; }
.lh-compare-table tbody td:first-child { background: #f7f5f4; }
.lh-review-card { border-color: #ececef; border-radius: 10px; }
#form-review { border-color: #ececef; border-radius: 10px; }

/* ========== 我的账户 ========== */
.lh-account-hero { background: linear-gradient(120deg, #571dae, #6a0ae8); border-radius: 10px; }
.lh-account-card { border-color: #ececef; border-radius: 10px; }
.lh-account-card:hover { border-color: #d9d4de; }
.lh-account-card i { background: #f1ecf7; color: #571dae; border-radius: 10px; }
.lh-account-card:hover a { color: #571dae; }
[id^="account-"] .card { border-color: #ececef; border-radius: 10px; }
[id^="account-"] #content > h1 { border-bottom-color: #ececef; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
[id^="account-"] #content > h1::after { background: var(--lh-brand); }
.lh-side-card { border-color: #ececef; border-radius: 10px; box-shadow: 0 1px 3px rgba(22, 22, 21, .04); }
.lh-side-head { background: #f1ecf7; color: #571dae; border-bottom-color: #ececef; }
.lh-side-head i { color: #571dae; }
#column-left > .list-group:first-child::before,
#column-right > .list-group:first-child::before { background: #f1ecf7; color: #571dae; }
[id^="account-"] .btn-primary,
#checkout-checkout .btn-primary { background: #571dae; border-color: #571dae; }
/* 空态下方的继续按钮居中 */
.lh-empty + .text-end { text-align: center !important; margin-top: 4px; }
.lh-empty + .text-end .btn { min-width: 200px; }
/* 空态被包在局部容器内时（收藏夹等），同样把外部按钮居中 */
[id^="account-"] #content > div:has(.lh-empty) + .text-end { text-align: center !important; margin-top: 6px; }
[id^="account-"] #content > div:has(.lh-empty) + .text-end .btn { min-width: 200px; }
/* 地址簿：返回 / 新增地址 居中于空态下方 */
#account-address #address + .row { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
#account-address #address + .row > .col { flex: 0 0 auto; width: auto; }
#account-address #address + .row .text-end { text-align: left !important; }

/* ========== 状态页 / 空态 ========== */
.lh-empty { color: #615b67; padding: 56px 20px; }
.lh-empty i {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f1ecf7;
  color: #b491dd;
  font-size: 30px;
}
.lh-empty h3 { font-size: 20px; font-weight: 800; color: #161615; margin: 0 0 8px; }
.lh-empty p { font-size: 13.5px; color: #615b67; margin: 0 0 22px; }
.lh-empty .btn { margin-top: 4px; }
.lh-state-card { border-color: #ececef; border-radius: 10px; box-shadow: 0 1px 3px rgba(22, 22, 21, .04); }
.lh-state-icon { background: #f1ecf7; color: #571dae; }
.lh-state-code { color: #ece4f5; }
.lh-state-text { color: #615b67; }
.lh-account-sub .lh-state-link { color: #571dae; }

/* ========== 表单：内页统一纵排标签（参考站风格） ========== */
.lh-form-card .row.mb-3,
[id^="account-"] .row.mb-3:has(> label),
#checkout-checkout .row.mb-3:has(> label),
#information-contact .row.mb-3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.lh-form-card .row.mb-3 > label,
[id^="account-"] .row.mb-3 > label,
#checkout-checkout .row.mb-3 > label,
#information-contact .row.mb-3 > label {
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: #161615;
  padding: 0;
  margin: 0;
}
.lh-form-card .row.mb-3 > [class*="col-sm"],
[id^="account-"] .row.mb-3:has(> label) > [class*="col-sm"],
#checkout-checkout .row.mb-3:has(> label) > [class*="col-sm"],
#information-contact .row.mb-3 > [class*="col-sm"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding: 0;
}

/* ========== 结算页 ========== */
#checkout-checkout fieldset {
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #fff;
  padding: 22px 24px 20px;
  margin-bottom: 18px;
}
#checkout-checkout legend {
  float: left;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  color: #161615;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  padding: 0;
}
#checkout-checkout h2 { font-size: 18px; font-weight: 800; color: #161615; }
#checkout-checkout .input-group > .form-control { height: 48px; border-radius: 0; }
#checkout-checkout .input-group > .input-group-text { height: 48px; border-radius: 10px 0 0 10px; background: #f7f5f4; border-color: #ececef; color: #615b67; }
#checkout-checkout .input-group > .input-group-text + .form-control { border-radius: 0 8px 8px 0; }
#checkout-checkout .input-group > .form-control + .btn { height: 48px; border-radius: 0 10px 10px 0; padding: 0 26px; font-size: 13.5px; }
#checkout-checkout .input-group > .form-control:first-child { border-radius: 8px 0 0 8px; }
#checkout-checkout .table {
  border: 1px solid #ececef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}
#checkout-checkout .table > :not(caption) > * > * { border-color: #f1eef2; padding: 12px 14px; }
#checkout-checkout .table thead th { background: #f7f5f4; color: #615b67; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
#checkout-checkout .table tfoot tr:last-child td { font-size: 16px; font-weight: 800; color: #161615; }
#checkout-checkout .table tfoot tr:last-child td:last-child { color: var(--lh-brand); }
#checkout-checkout #button-confirm { min-width: 220px; }

/* ========== 帮助条 / 联系我们 / 网站地图 / 文章 ========== */
.lh-help-strip { background: #f7f5f4; border: 1px solid #ececef; border-radius: 10px; }
.lh-help-icon { color: #571dae; }
.lh-help-arrow { color: #571dae; }
.lh-contact-card { border-color: #ececef; border-radius: 10px; }
.lh-contact-body i { color: #571dae; }
.lh-form-card { border-color: #ececef; border-radius: 10px; box-shadow: 0 1px 3px rgba(22, 22, 21, .04); }
.lh-sitemap-card { border-color: #ececef; border-radius: 10px; }
.lh-sitemap-card h3 i { color: #571dae; }
.lh-sitemap-card li a:hover { color: #571dae; }
.lh-article { color: #3d3844; }
.lh-article-lead { color: #615b67; }
.lh-blog-card { border-color: #ececef; border-radius: 10px; }
.lh-blog-card h2 a:hover { color: #571dae; }
.lh-blog-meta i { color: #571dae; }
.lh-blog-more { color: #571dae; }
.lh-blog-toolbar { background: #fff; border-color: #ececef; border-radius: 10px; }

/* ========== 面板 / 侧栏 ========== */
.lh-panel { border-color: #ececef; border-radius: 10px; }
#column-left .list-group { border-color: #ececef; border-radius: 10px; }
#column-left .list-group::before { background: #f1ecf7; color: #571dae; }
#column-right .list-group::before { background: #f1ecf7; color: #571dae; }
#column-left .list-group-item:hover { background: #f7f5f4; color: #571dae; }
#column-left .card, #column-right .card { border-color: #ececef; border-radius: 10px; }
#column-left .card-header, #column-right .card-header { border-bottom-color: #ececef; }

/* ========== 返回顶部 ========== */
.lh-backtop { background: #571dae; }
.lh-backtop:hover { background: #6a0ae8; }

/* ========== 响应式 ========== */
@media (max-width: 767px) {
  [id^="account-"] #content h1,
  #checkout-checkout #content h1,
  [id^="information-"] #content h1 { font-size: 22px; }
  .lh-page-head h1 { font-size: 22px; }
}
