/* ============================================================
   pages.css — 各页面专属样式，全部使用 theme.css 中的变量
   ============================================================ */

/* ========== 商品详情（items.html） ========== */
.product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}
.product-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.product-gallery:hover img { transform: scale(1.02); }
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  flex: 0 0 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; background: var(--bg-soft);
  transition: border-color 0.2s;
  position: relative;
}
.gallery-thumbs .thumb.active { border-color: var(--brand-primary); }
.gallery-thumbs .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.product-title {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0 0 12px 0; line-height: 1.35;
}
.product-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 14px;
}
.product-meta span strong { color: var(--text-heading); }
.product-price {
  font-size: 26px; font-weight: 700; color: var(--color-danger);
  margin: 8px 0 18px;
}
.product-price small {
  font-size: 14px; color: var(--text-muted); font-weight: 400; margin-left: 6px;
}
.qty-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.qty-input {
  width: 80px; height: 42px;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-input);
  text-align: center; font-weight: 600; padding: 0;
}
.btn-add-cart {
  height: 42px; line-height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff; font-weight: 500;
  padding: 0 28px;
  transition: background 0.2s, transform 0.1s;
}
.btn-add-cart:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}
.product-note {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  background: var(--bg-soft-2); border-radius: var(--radius-md);
  padding: 14px 16px; margin-top: 6px;
}
.product-note a { color: var(--text-heading); font-weight: 500; text-decoration: underline; }
.desc-block h2 {
  font-size: 16px; font-weight: 600; color: var(--text-heading); margin: 0;
}
.promo-links {
  display: block;          /* 不用 flex */
  margin-top: 16px;
}
.promo-links a {
  display: block;          /* 每个 a 独占一行 */
  width: 40%;
  height: 60px;
  margin-bottom: 2px;     /* 上下间距 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  transition: transform 0.15s;
}
.promo-links a:last-child {
  margin-bottom: 0;
}
.promo-links a:hover {
  transform: translateY(-2px);
}
.promo-links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== 订单详情（user_order_detail.html） ========== */
.order-wrap { max-width: 1100px; margin: 0 auto; }
.order-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.order-header .oh-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: 0 0 auto;
}
.order-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0; line-height: 1.3;
}
.order-header p {
  font-size: 13px; color: var(--text-muted); margin: 4px 0 0;
}
.order-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-warning-bg);
  border: 1px solid #f7e0b0;
  color: #7a5b1e;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  margin-left: auto;
}
.order-status-badge.done {
  background: var(--color-success-bg);
  border-color: #b8e6cc;
  color: #1e7a4a;
}
.order-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.order-main { flex: 1 1 620px; min-width: 0; }
.order-side {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 900px) {
  .order-side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .order-side .side-img { flex: 1 1 calc(50% - 7px); }
}
.info-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 18px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}
.info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-item.full { grid-column: 1 / -1; }
.info-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.4px;
  font-weight: 500;
}
.info-value {
  font-size: 14px; color: var(--text-heading); font-weight: 500;
  word-break: break-word;
}
.info-value.mono {
  font-family: var(--font-mono); letter-spacing: 0.3px; font-size: 13.5px;
}
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table thead th {
  background: var(--bg-soft-2);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px 10px;
  text-align: left;
  border-bottom: 2px solid var(--border-soft);
  white-space: nowrap;
}
.order-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text-primary);
}
.order-table tbody tr:last-child td { border-bottom: none; }
.order-table tbody tr:hover { background: var(--bg-soft-2); }
.order-table .cell-img img {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer; display: block;
  transition: transform 0.2s;
}
.order-table .cell-img img:hover { transform: scale(1.05); }
.order-table .cell-title {
  font-weight: 500; color: var(--text-heading); text-decoration: none;
}
.order-table .cell-title:hover { text-decoration: underline; }
.order-table .cell-attr {
  display: block; font-size: 12px; color: var(--text-muted);
  margin-top: 4px; font-family: var(--font-mono);
}
.order-table .cell-price { white-space: nowrap; }
.order-table .cell-qty { text-align: center; font-weight: 600; color: var(--text-heading); }
.order-table .cell-sub {
  text-align: right; font-weight: 600; color: var(--text-heading); white-space: nowrap;
}
.order-table tfoot td {
  padding: 10px; font-size: 13.5px;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-soft);
}
.order-table tfoot td.label { text-align: right; font-weight: 500; }
.order-table tfoot td.value {
  text-align: right; font-weight: 600; color: var(--text-heading); white-space: nowrap;
}
.order-table tfoot tr.grand td {
  border-top: 2px solid var(--border-input);
  font-size: 15px; color: var(--text-heading);
}
.order-table tfoot tr.grand td.value {
  font-size: 17px; color: var(--color-success);
}
.order-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.order-note {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13.5px;
  color: #7a5b1e;
  line-height: 1.7;
  margin-top: 20px;
}
.order-note strong { color: #5a4213; font-weight: 600; }
.order-note ul { margin: 8px 0 0; padding-left: 20px; }
.order-note ul li { margin-bottom: 6px; }

/* ========== 购物车（cart_list.html） ========== */
.order-steps {
  display: flex; justify-content: space-between;
  padding: 0; margin: 0 0 20px 0;
  list-style: none; position: relative;
}
.order-steps::before {
  content: ''; position: absolute;
  top: 22px; left: 8%; right: 8%;
  height: 2px; background: #e6e6e6; z-index: 0;
}
.order-steps li {
  text-align: center; position: relative; flex: 1; z-index: 1;
}
.order-steps .circle {
  display: inline-block;
  width: 36px; height: 36px; line-height: 36px;
  border-radius: 50%;
  background: #e6e6e6; color: #999;
  font-weight: bold;
}
.order-steps p { margin-top: 8px; font-size: 14px; color: #999; }
.order-steps li.done .circle { background: var(--color-success); color: #fff; }
.order-steps li.done p { color: var(--color-success); }
.order-steps li.active .circle {
  background: var(--color-info); color: #fff;
  box-shadow: 0 0 8px rgba(30,159,255,.6);
}
.order-steps li.active p { color: var(--color-info); font-weight: bold; }
@media (max-width: 768px) {
  .order-steps p { display: none; }
  .order-steps li.active p { display: block; font-size: 12px; }
}
.cart-wrap { width: 100%; font-size: 14px; }
.cart-head, .cart-row {
  display: grid;
  grid-template-columns: 60px 120px 1.5fr 120px 160px 120px 80px;
  align-items: center;
}
.cart-head {
  font-weight: bold;
  background: var(--bg-soft-2);
  padding: 10px 0;
  border-bottom: 2px solid var(--border-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cart-head > div, .cart-row > div { padding: 10px; }
.cart-row { border-bottom: 1px solid var(--border-soft); }
.cart-row:last-child { border-bottom: none; }
.col-img img {
  width: 100px; max-width: 100%;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.col-title a {
  font-weight: 600; display: block;
  color: var(--text-heading); transition: color 0.15s;
}
.col-title a:hover { color: var(--brand-primary-hover); }
.item-attr span {
  display: inline-block; margin-right: 6px;
  color: var(--text-muted); font-size: 12px;
}
.qty-box { display: flex; align-items: center; gap: 4px; }
.qty-box .layui-btn {
  background: var(--bg-soft-2); border: 1px solid var(--border-input);
  color: var(--text-heading); font-weight: 600;
}
.qty-box .layui-btn:hover {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
}
.qty-box input {
  width: 50px; text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
}
.m-label { display: none; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pc-only { display: grid; }
@media screen and (max-width: 768px) {
  .pc-only { display: none; }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 10px; padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--bg-card);
  }
  .cart-row > div { padding: 0; }
  .m-label { display: block; }
  .col-img img { width: 100%; max-width: 200px; }
  .col-del { text-align: right; }
  .qty-box .layui-btn {
    min-width: 36px; height: 36px; line-height: 36px; font-size: 18px;
  }
  .qty-box input { height: 36px; font-size: 16px; }
}
.cart-summary {
  max-width: 480px; margin-left: auto; margin-top: 20px;
  font-size: 14px;
  background: var(--bg-soft-2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.summary-row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-secondary); }
.summary-value { text-align: right; font-weight: 500; color: var(--text-heading); }
.summary-value.discount { color: #ff5722; }
.summary-row.total {
  border-top: 2px solid var(--border-input);
  border-bottom: none;
  margin-top: 10px; padding-top: 12px;
}
.summary-row.total .summary-label { font-weight: 600; color: var(--text-heading); }
.summary-row.total .summary-value {
  font-size: 18px; font-weight: bold; color: var(--color-success);
}
.summary-row.CartID { padding-top: 8px; font-size: 12px; color: var(--text-muted); }
.summary-row.CartID .summary-value { color: var(--text-secondary); font-weight: 400; }
@media screen and (max-width: 768px) {
  .cart-summary {
    max-width: 100%; margin-left: 0; padding: 12px;
    border: 1px solid var(--border-soft);
  }
  .summary-row { grid-template-columns: 1fr 1fr; }
}
.checkout-title {
  font-size: 18px; font-weight: 600; color: var(--text-heading);
  padding: 12px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.checkout-actions { text-align: center; margin-top: 30px; }
.checkout-actions .layui-btn {
  min-width: 220px; height: 44px; line-height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #fff; font-size: 16px; font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}
.checkout-actions .layui-btn:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}
.cart-wrap + .checkout-title ~ form .layui-input,
.cart-wrap + .checkout-title ~ form .layui-textarea,
.cart-wrap + .checkout-title ~ form .layui-select {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border-input);
  background: var(--bg-soft-2);
  height: 42px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cart-wrap + .checkout-title ~ form .layui-textarea {
  height: auto; min-height: 100px; padding: 12px 16px;
}
.cart-wrap + .checkout-title ~ form .layui-input:focus,
.cart-wrap + .checkout-title ~ form .layui-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 42, 63, 0.08);
}
.cart-wrap + .checkout-title ~ form .layui-form-label {
  background: var(--bg-soft-2);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-color: var(--border-input);
  color: var(--text-heading);
  font-weight: 500;
}
.cart-wrap + .checkout-title ~ form .layui-input-block { margin-left: 110px; }
@media (max-width: 640px) {
  .cart-wrap + .checkout-title ~ form .layui-form-label {
    width: 100%; text-align: left;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .cart-wrap + .checkout-title ~ form .layui-input-block { margin-left: 0; }
  .cart-wrap + .checkout-title ~ form .layui-input,
  .cart-wrap + .checkout-title ~ form .layui-textarea,
  .cart-wrap + .checkout-title ~ form .layui-select {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  }
}

/* ========== 联系我们（contact_us.html） ========== */
.contact-wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.contact-form-side { flex: 1 1 600px; min-width: 0; }
.contact-side {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 20px;
}
@media (max-width: 900px) {
  .contact-side { position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .contact-side .side-img { flex: 1 1 calc(50% - 7px); }
}
.contact-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 22px;
}
.contact-header .ct-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: 0 0 auto;
}
.contact-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0; line-height: 1.3;
}
.contact-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.contact-info-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.contact-info-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex: 1 1 200px;
  transition: all 0.15s;
}
.contact-info-item:hover {
  background: var(--bg-card); border-color: var(--border-input);
  box-shadow: 0 6px 14px -8px rgba(20, 40, 70, 0.12);
}
.contact-info-item .ci-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex: 0 0 auto;
}
.contact-info-item .ci-text {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5; min-width: 0;
}
.contact-info-item .ci-text strong {
  display: block; font-size: 13px; color: var(--text-heading);
  font-weight: 600; margin-bottom: 2px;
}
.contact-form .layui-form-label {
  width: 110px; padding: 10px 15px;
  background: var(--bg-soft-2);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-color: var(--border-input);
  font-weight: 500; color: var(--text-heading); font-size: 13px;
}
.contact-form .layui-input-block { margin-left: 140px; }
.contact-form .layui-input,
.contact-form .layui-textarea {
  height: 44px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-color: var(--border-input);
  background: var(--bg-soft-2);
  padding: 0 16px; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form .layui-textarea {
  height: auto; min-height: 120px; padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.contact-form .layui-input:focus,
.contact-form .layui-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 42, 63, 0.08);
}
.contact-form .layui-form-item { margin-bottom: 18px; }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row .layui-input-inline { margin: 0; }
.captcha-row img {
  height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-input); cursor: pointer;
  transition: border-color 0.15s;
}
.captcha-row img:hover { border-color: var(--brand-primary); }
.captcha-tip { font-size: 12px; color: var(--text-muted); }
.btn-submit {
  height: 46px; line-height: 44px;
  border-radius: var(--radius-md) !important;
  background: var(--brand-primary) !important;
  border: 1px solid var(--brand-primary) !important;
  color: #fff !important;
  font-size: 15px; font-weight: 500;
  padding: 0 36px;
  transition: background 0.2s, transform 0.1s;
}
.btn-submit:hover {
  background: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
}
.btn-reset {
  height: 46px; line-height: 44px;
  border-radius: var(--radius-md) !important;
  background: var(--bg-soft-2) !important;
  border: 1px solid var(--border-input) !important;
  color: var(--text-heading) !important;
  font-size: 15px; font-weight: 500;
  padding: 0 28px;
  transition: background 0.2s;
}
.btn-reset:hover {
  background: var(--bg-soft) !important;
  border-color: var(--border-hover) !important;
}
.contact-side .side-img {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.contact-side .side-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s;
}
.contact-side .side-img:hover img { transform: scale(1.03); }
.quick-contact {
  background: var(--brand-primary); color: #e9f0fa;
  border-radius: var(--radius-md); padding: 20px;
}
.quick-contact h3 {
  font-size: 15px; font-weight: 600; color: #ffffff;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.quick-contact ul { list-style: none; margin: 0; padding: 0; }
.quick-contact ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13.5px; color: #dce6f5;
}
.quick-contact ul li i {
  font-size: 16px; color: #b6c8e0; width: 20px; flex: 0 0 auto;
}
.quick-contact ul li a {
  color: #dce6f5; text-decoration: none; transition: color 0.15s;
}
.quick-contact ul li a:hover { color: #ffffff; text-decoration: underline; }
@media (max-width: 640px) {
  .contact-form .layui-form-label {
    width: 100%; text-align: left;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .contact-form .layui-input-block { margin-left: 0; }
  .contact-form .layui-input,
  .contact-form .layui-textarea {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
}

/* ========== FAQ（faq.html） ========== */
.faq-wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.faq-main { flex: 1 1 620px; min-width: 0; }
.faq-side {
  flex: 0 0 300px;
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 20px;
}
@media (max-width: 900px) {
  .faq-side { position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .faq-side .side-img { flex: 1 1 calc(50% - 7px); }
}
.faq-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 20px;
}
.faq-header .faq-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: 0 0 auto;
}
.faq-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0; line-height: 1.3;
}
.faq-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.faq-wrap .layui-collapse { border: none !important; background: transparent; }
.faq-wrap .layui-colla-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--border-soft) !important;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-wrap .layui-colla-item:hover {
  border-color: var(--border-input) !important;
  box-shadow: 0 6px 16px -8px rgba(20, 40, 70, 0.12);
}
.faq-wrap .layui-colla-title {
  padding: 16px 46px 16px 52px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text-heading) !important;
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  line-height: 1.5 !important;
  position: relative;
  transition: background 0.15s;
  display: flex; align-items: center;
}
.faq-wrap .layui-colla-title:hover { background: var(--bg-soft-2) !important; }
.faq-wrap .layui-colla-title .faq-q-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: 0 0 auto; line-height: 1;
}
.faq-wrap .layui-colla-title .layui-colla-icon {
  position: absolute !important;
  right: 18px !important; top: 50% !important;
  transform: translateY(-50%);
  font-size: 14px !important;
  color: var(--text-muted) !important;
  left: auto !important;
}
.faq-wrap .layui-colla-content {
  padding: 4px 20px 18px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.75 !important;
  background: var(--bg-card) !important;
  border-top: 1px dashed var(--border-soft);
}
.faq-wrap .layui-colla-content p { margin: 0 0 10px; }
.faq-wrap .layui-colla-content p:last-child { margin-bottom: 0; }
.faq-wrap .layui-colla-content strong { color: var(--text-heading); }
.faq-wrap .layui-colla-content ul { margin: 0 0 10px; padding-left: 22px; }
.faq-wrap .layui-colla-content ul li { margin-bottom: 6px; }
.faq-side .side-img {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.faq-side .side-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s;
}
.faq-side .side-img:hover img { transform: scale(1.03); }
.side-help {
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px; text-align: center;
}
.side-help .help-icon {
  width: 44px; height: 44px; line-height: 44px;
  margin: 0 auto 10px;
  border-radius: var(--radius-md);
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.side-help h3 {
  font-size: 15px; font-weight: 600; color: var(--text-heading);
  margin: 0 0 6px;
}
.side-help p {
  font-size: 13px; color: var(--text-secondary);
  margin: 0 0 14px; line-height: 1.6;
}
.side-help a.btn-contact {
  display: inline-block;
  background: var(--brand-primary); color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background 0.2s;
}
.side-help a.btn-contact:hover { background: var(--brand-primary-hover); }

/* ========== 支付政策（help.html） ========== */
.policy-header {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0 18px;
}
.policy-header .policy-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: 0 0 auto;
}
.policy-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0; line-height: 1.3;
}
.policy-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.policy-layout { display: flex; gap: 28px; flex-wrap: wrap; }
.policy-content {
  flex: 1 1 520px; min-width: 0;
  font-size: 14px; color: var(--text-primary); line-height: 1.75;
}
.policy-side {
  flex: 0 0 280px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 768px) {
  .policy-side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .policy-side .side-img { flex: 1 1 calc(50% - 7px); }
}
.side-img {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.side-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s;
}
.side-img:hover img { transform: scale(1.03); }
.pay-methods {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 18px 0 6px;
}
.pay-method {
  flex: 1 1 160px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.15s;
}
.pay-method:hover {
  background: var(--bg-card);
  border-color: var(--border-input);
  box-shadow: 0 6px 14px -8px rgba(20, 40, 70, 0.12);
}
.pay-method .pm-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex: 0 0 auto;
}
.pay-method .pm-text strong {
  display: block; font-size: 14px; color: var(--text-heading);
  font-weight: 600; line-height: 1.3;
}
.pay-method .pm-text small { font-size: 12px; color: var(--text-muted); }
.policy-content h2 {
  font-size: 17px; font-weight: 700; color: var(--text-heading);
  margin: 28px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.policy-content h2::before {
  content: ''; display: inline-block;
  width: 4px; height: 18px; border-radius: 2px;
  background: var(--brand-primary);
}
.policy-content p { margin: 0 0 12px; }
.policy-content p a {
  color: var(--text-heading); font-weight: 500; text-decoration: underline;
}
.policy-content ul { margin: 0 0 12px; padding-left: 22px; }
.policy-content ul li { margin-bottom: 8px; }
.policy-content strong { color: var(--text-heading); font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 8px; }
.step-item {
  display: flex; gap: 14px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.15s;
}
.step-item:hover {
  background: var(--bg-card);
  border-color: var(--border-input);
  box-shadow: 0 6px 14px -8px rgba(20, 40, 70, 0.12);
}
.step-num {
  width: 30px; height: 30px; line-height: 30px;
  border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  font-size: 14px; font-weight: 700;
  text-align: center; flex: 0 0 auto;
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-body strong {
  display: block; font-size: 14px; color: var(--text-heading);
  font-weight: 600; margin-bottom: 4px;
}
.step-body p {
  font-size: 13.5px; color: var(--text-secondary);
  margin: 0; line-height: 1.65;
}
.tip-box {
  background: var(--bg-soft-2);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 16px 0;
}

/* ========== 404（error.html） ========== */
.error-wrap {
  max-width: 760px; margin: 0 auto;
  text-align: center; padding: 16px 0 8px;
}
.error-visual {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; gap: 8px;
}
.error-visual .digit {
  font-size: 96px; font-weight: 800; line-height: 1;
  color: var(--text-heading); letter-spacing: -4px;
}
.error-visual .digit.middle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-soft); color: var(--text-heading);
  font-size: 44px; letter-spacing: 0;
}
.error-visual .digit.middle i { font-size: 44px; }
.error-title {
  font-size: 26px; font-weight: 700; color: var(--text-heading);
  margin: 0 0 10px;
}
.error-sub {
  font-size: 15px; color: var(--text-secondary);
  margin: 0 0 6px; line-height: 1.65;
}
.error-sub strong { color: var(--text-heading); }
.error-tip {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13.5px;
  color: #7a5b1e; line-height: 1.7;
  margin: 24px auto 0;
  text-align: left; max-width: 540px;
}
.error-tip i {
  font-size: 16px; margin-right: 6px;
  vertical-align: middle; color: var(--color-warning);
}
.error-links {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 28px 0 8px;
}
.error-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-heading); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.15s;
}
.error-links a:hover {
  background: var(--bg-card);
  border-color: var(--border-input);
  box-shadow: 0 6px 14px -8px rgba(20, 40, 70, 0.12);
  transform: translateY(-1px);
}
.error-links a i { font-size: 16px; color: var(--text-heading); }
.error-illustration {
  max-width: 380px; margin: 28px auto 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft);
}
.error-illustration img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .error-visual .digit { font-size: 72px; }
  .error-visual .digit.middle { width: 72px; height: 72px; font-size: 34px; }
  .error-visual .digit.middle i { font-size: 34px; }
  .error-title { font-size: 22px; }
  .error-links { flex-direction: column; }
  .error-links a { justify-content: center; }
}

/* ========== 订单查询（user_order_login.html） ========== */
.order-query-wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: stretch; }
.order-form-side { flex: 1 1 440px; min-width: 0; }
.order-form-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 22px;
}
.order-form-header .of-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: 0 0 auto;
}
.order-form-header h1 {
  font-size: 22px; font-weight: 700; color: var(--text-heading);
  margin: 0; line-height: 1.3;
}
.order-form-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.field-group { margin-bottom: 20px; }
.field-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-heading); margin-bottom: 8px;
}
.field-group label .req { color: var(--color-danger); margin-left: 2px; }
.field-group .layui-input {
  height: 46px;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-input);
  background: var(--bg-soft-2);
  padding: 0 16px; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-group .layui-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 42, 63, 0.08);
}
.field-group .input-tip { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.pwd-wrap { position: relative; }
.pwd-wrap .pwd-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.pwd-wrap .pwd-toggle:hover { color: var(--text-heading); background: var(--bg-soft); }
.btn-query {
  width: 100%; height: 46px; line-height: 44px;
  border-radius: var(--radius-md) !important;
  background: var(--brand-primary) !important;
  border: 1px solid var(--brand-primary) !important;
  color: #fff !important;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}
.btn-query:hover {
  background: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
}
.btn-query:active { transform: translateY(1px); }
.query-help {
  margin-top: 18px; font-size: 13px;
  color: var(--text-secondary);
  text-align: center; line-height: 1.7;
}
.query-help a { color: var(--text-heading); font-weight: 500; text-decoration: underline; }
.query-help a:hover { color: var(--brand-primary-hover); }
.order-side {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 14px;
}
.order-side .side-img {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.order-side .side-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s;
}
.order-side .side-img:hover img { transform: scale(1.03); }
.side-tip {
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.side-tip strong {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-heading); font-weight: 600;
  font-size: 14px; margin-bottom: 8px;
}
.side-tip strong i { font-size: 18px; color: var(--text-heading); }
.side-tip ul { margin: 0; padding-left: 20px; }
.side-tip ul li { margin-bottom: 6px; }
@media (max-width: 768px) {
  .order-side { flex: 1 1 100%; }
  .order-side .side-img { aspect-ratio: 16 / 9; }
}

/* ========== 下单成功（result_cart.html） ========== */
.success-wrap { max-width: 760px; margin: 0 auto; }
.success-header { text-align: center; padding: 16px 0 24px; }
.success-icon {
  width: 76px; height: 76px; line-height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(39, 174, 96, 0.35);
}
.success-title {
  font-size: 26px; font-weight: 700; color: var(--text-heading);
  margin: 0 0 8px;
}
.success-sub { font-size: 14px; color: var(--text-secondary); margin: 0; }
.order-info-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.order-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-soft);
  flex-wrap: wrap; gap: 10px;
}
.order-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-info-row:first-child { padding-top: 0; }
.order-info-label {
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.order-info-label i { font-size: 16px; color: var(--text-heading); }
.order-info-value {
  font-size: 15px; font-weight: 600; color: var(--text-heading);
  display: flex; align-items: center; gap: 10px;
  word-break: break-all;
}
.order-info-value.mono { font-family: var(--font-mono); letter-spacing: 0.5px; }
.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: 0.4rem;
  color: var(--text-secondary);
  font-size: 12px; padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.copy-btn:hover {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
}
.copy-btn.copied {
  background: var(--color-success-bg); color: var(--color-success); border-color: #b8e6cc;
}
.success-tip {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13.5px;
  color: #7a5b1e; line-height: 1.7;
  margin-bottom: 24px;
}
.success-tip strong { color: #5a4213; font-weight: 600; }
.success-tip i {
  font-size: 16px; margin-right: 6px;
  vertical-align: middle; color: var(--color-warning);
}
.success-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.success-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 32px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s; cursor: pointer;
  border: 1px solid transparent; min-width: 180px;
}
.btn-primary {
  background: var(--brand-primary); border-color: var(--brand-primary); color: #fff !important;
}
.btn-primary:hover {
  background: var(--brand-primary-hover); border-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-soft-2); border-color: var(--border-input); color: var(--text-heading) !important;
}
.btn-ghost:hover {
  background: var(--bg-soft); border-color: var(--border-hover);
  transform: translateY(-1px);
}
.success-summary {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px dashed var(--border-soft);
}
.summary-item {
  flex: 1 1 200px;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.summary-item .si-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex: 0 0 auto;
}
.summary-item .si-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.summary-item .si-text strong {
  display: block; font-size: 13px; color: var(--text-heading);
  font-weight: 600; margin-bottom: 2px;
}
@media (max-width: 640px) {
  .success-title { font-size: 22px; }
  .order-info-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .order-info-value { font-size: 14px; width: 100%; justify-content: space-between; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; min-width: 0; }
}

/* ========== 首页 News ========== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border-soft);
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-date {
  flex: 0 0 auto; font-size: 12px; color: var(--text-muted); min-width: 92px;
}
.news-list .news-date i { font-size: 12px; margin-right: 4px; vertical-align: middle; }
.news-list .news-title {
  flex: 1 1 auto; font-size: 14px; font-weight: 500;
  color: var(--text-heading); line-height: 1.5;
}
.news-list .news-title a { color: inherit; transition: color 0.15s; }
.news-list .news-title a:hover { color: var(--brand-primary-hover); text-decoration: underline; }
@media (max-width: 768px) {
  .news-list li { flex-direction: column; gap: 4px; }
}

/* ========== 列表页排序条 ========== */
.sort-bar {
  display: flex; justify-content: flex-end;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.sort-bar .layui-btn {
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  font-size: 13px;
  height: 34px; line-height: 32px;
  padding: 0 14px;
  transition: all 0.15s;
}
.sort-bar .layui-btn:hover {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
}
.sort-bar .layui-btn i { font-size: 12px; }

/* ========== 通用分页（Layui laypage 容器） ========== */
#pageContainer {
  display: flex; justify-content: center;
}
#pageInfo {
  text-align: center; color: var(--text-muted);
  font-size: 13px; margin-top: 8px;
}

/* 搜索结果提示条 */
.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--bg-soft-2);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 6px 14px;
  width: fit-content;
}
.search-hint strong { color: var(--text-heading); font-weight: 600; }
.search-hint .clear-search {
  margin-left: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--border-input);
}
.search-hint .clear-search:hover {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

    /* ===== 浮动购物车汇总 ===== */
    .cart-summary-float {
      position: fixed;
      z-index: 900;
      background: #fff;
      border: 1px solid #e6e6e6;
      border-radius: 10px;
      box-shadow: 0 6px 24px rgba(0,0,0,.12);
      padding: 14px 16px;
      display: none;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .2s, transform .2s;
      font-size: 14px;
      color: #333;
    }
    .cart-summary-float.show {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    .cart-summary-float .float-row {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      line-height: 22px;
    }
    .cart-summary-float .float-row + .float-row { margin-top: 4px; }
    .cart-summary-float .float-label { color: #8a9bb3; }
    .cart-summary-float .float-value { font-weight: 500; }
    .cart-summary-float .float-total {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #eee;
      font-size: 16px;
    }
    .cart-summary-float .float-total .float-value {
      color: #e4393c;
      font-weight: 700;
      font-size: 18px;
    }

    @media (min-width: 769px) {
      .cart-summary-float {
        right: 24px;
        bottom: 24px;
        min-width: 220px;
      }
    }

    @media (max-width: 768px) {
      .cart-summary-float {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 10px 14px;
        box-shadow: 0 -4px 16px rgba(0,0,0,.10);
      }
      .cart-summary-float .float-row { line-height: 20px; }
      .cart-summary-float .float-total { font-size: 15px; margin-top: 6px; padding-top: 6px; }
      .cart-summary-float .float-total .float-value { font-size: 17px; }
      body.has-cart-float { padding-bottom: 96px; }
    }