/* 2026-08-24：首页工具与产品详情操作区最终对齐 */
.priority-tools .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-tools .tool-card {
  min-height: 92px;
  padding: 12px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.priority-tools .tool-card img,
.priority-tools .tool-card .tool-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.priority-tools .tool-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.priority-tools .tool-card small {
  display: none;
}

.detail-actions {
  display: grid;
  grid-template-columns: 0.78fr 0.72fr 1.12fr 1.12fr;
  gap: 7px;
  margin: 12px 0 10px;
}

.detail-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 7px 5px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.detail-actions .detail-action-icon {
  font-size: 16px;
  line-height: 1;
}

.detail-actions #detailConsult {
  color: #0d55a6;
  background: #ffffff;
  border: 1px solid #9dbde2;
}

.detail-actions #detailShare {
  color: #805000;
  background: #fff2cd;
  border: 1px solid #f1c96b;
}

.detail-actions #detailAddCart {
  color: #0d55a6;
  background: #e8f1ff;
  border: 1px solid #c3d8f3;
}

.detail-actions #detailBuyNow {
  color: #ffffff;
  background: #125ab3;
  border: 1px solid #125ab3;
}

.detail-all-products {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 14px;
  color: #125ab3;
  background: #ffffff;
  border: 1px solid #b7cbe3;
  font-weight: 700;
}

@media (max-width: 360px) {
  .detail-actions {
    gap: 5px;
    grid-template-columns: 0.76fr 0.68fr 1.16fr 1.16fr;
  }

  .detail-actions button {
    padding-inline: 3px;
    font-size: 12px;
  }
}

/* 2026-08-27：首页常用工具与产品卡统一尺寸，去除重复动作提示。 */
.priority-tools {
  margin-top: 18px;
}

.priority-tools .priority-title {
  margin: 0 0 10px;
}

.category-grid button,
.priority-tools .priority-tool {
  box-sizing: border-box;
  min-height: 112px;
  padding: 14px 8px;
  border-radius: 16px;
}

.priority-tool-grid {
  gap: 8px;
  margin-top: 0;
}

.priority-tools .priority-tool,
.priority-tools .priority-tool-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-width: 1px;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
}

.priority-tool-icon,
.priority-tools .priority-tool > .priority-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 7px;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.priority-tools .priority-tool > strong {
  display: block;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.priority-tools .priority-tool > small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
}

.priority-tools .merchant-guides-entry {
  border-color: #cfe6d9;
  background: linear-gradient(145deg, #ffffff, #effaf4);
}

.priority-tools .merchant-guides-entry .priority-tool-icon {
  color: #168653;
  background: #dff5e8;
}

.priority-tools .points-entry {
  border-color: #cedefa;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}

.priority-tools .points-entry .priority-tool-icon {
  color: #1764c0;
  background: #dfeeff;
}

.priority-tools .priority-tool-main {
  border-color: #f0d3ac;
  background: linear-gradient(145deg, #ffffff, #fff4e6);
}

.priority-tools .priority-tool-main .priority-tool-icon {
  color: #c96a0a;
  background: #ffe6c7;
}

/* 2026-08-30：左上角极简导航浮条预览方案。 */
.phone {
  position: relative;
}

.mini-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.mini-header > strong {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-header .capsule {
  justify-self: end;
}

.mini-header .mini-nav-trigger,
.mini-header > button:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.mini-header .mini-nav-trigger {
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: 800;
}

.mini-header .mini-nav-trigger:active,
.quick-nav-list button:active,
.quick-nav-secondary button:active,
.quick-search button:active,
.quick-search-result:active {
  transform: scale(0.98);
}

.quick-nav {
  position: absolute;
  inset: 52px 0 68px;
  z-index: 40;
  pointer-events: none;
}

.quick-nav-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.quick-nav-panel {
  position: absolute;
  top: 8px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  box-sizing: border-box;
  width: 292px;
  max-width: calc(100% - 24px);
  overflow: visible;
  padding: 8px;
  border: 1px solid rgba(182, 205, 232, 0.82);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow:
    0 18px 38px rgba(14, 47, 88, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  scrollbar-width: none;
}

.quick-nav-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(182, 205, 232, 0.82);
  border-left: 1px solid rgba(182, 205, 232, 0.82);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.quick-nav-panel::-webkit-scrollbar {
  display: none;
}

.quick-nav-row,
.quick-nav-list,
.quick-nav-secondary {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-nav-row {
  min-width: 0;
}

.quick-nav-secondary {
  gap: 6px;
  justify-content: center;
  padding-top: 7px;
  border-top: 1px solid #e8eef6;
}

.quick-nav-list button,
.quick-nav-secondary button {
  display: block;
  min-width: 0;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.quick-nav-list button[data-quick-open="home"] {
  color: #0b4da2;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(14, 86, 172, 0.12);
}

.quick-nav-secondary button {
  flex: 1 1 0;
  min-width: 0;
  color: #0b4da2;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  border: 1px solid #d9e8f8;
  box-shadow: 0 6px 14px rgba(14, 86, 172, 0.08);
}

.quick-nav-list button:hover,
.quick-nav-secondary button:hover {
  background: #eaf3ff;
}

.quick-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #dfeaf7;
  border-radius: 15px;
  background: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.quick-search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid #6f8fb8;
  border-radius: 999px;
  transform: translateY(-55%);
  pointer-events: none;
}

.quick-search::after {
  content: "";
  position: absolute;
  top: calc(50% + 5px);
  left: 28px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #6f8fb8;
  transform: rotate(45deg);
  pointer-events: none;
}

.quick-search input,
.quick-search button {
  min-height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.quick-search input {
  min-width: 0;
  padding: 0 10px 0 31px;
  border: 1px solid #d8e3f0;
  background: #ffffff;
  color: #172033;
  outline: none;
}

.quick-search input:focus {
  border-color: #0b66d8;
  box-shadow: 0 0 0 2px rgba(11, 102, 216, 0.12);
}

.quick-search button {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, #1265c4, #0b4da2);
  box-shadow: 0 8px 16px rgba(11, 77, 162, 0.2);
}

.quick-search-results {
  display: grid;
  gap: 5px;
  width: 100%;
  max-height: 184px;
  overflow-y: auto;
  padding: 1px 0 0;
  border-top: 0;
}

.quick-search-empty {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(243, 247, 252, 0.86);
  color: #697789;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.quick-search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #edf3fa;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  color: #172033;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quick-search-result:hover {
  border-color: #cfe0f4;
  box-shadow: 0 8px 18px rgba(14, 86, 172, 0.1);
  transform: translateY(-1px);
}

.quick-search-result small,
.quick-search-result strong,
.quick-search-result em {
  display: block;
  min-width: 0;
}

.quick-search-result small {
  padding: 3px 0;
  border-radius: 8px;
  background: #e8f1ff;
  color: #0b4da2;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.quick-search-result strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-search-result em {
  margin-top: 2px;
  overflow: hidden;
  color: #697789;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .mini-header {
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    gap: 6px;
  }

  .mini-header .mini-nav-trigger {
    width: 32px;
    height: 32px;
  }

  .quick-nav-panel {
    left: 10px;
  }
}

/* 2026-08-27：新增常用教程入口，并恢复首页我的订单。 */
.home-order-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid #f2d6a7;
  border-radius: 16px;
  background: #fffaf0;
  color: #172033;
  text-align: left;
  box-shadow: 0 7px 18px rgba(120, 73, 12, 0.055);
  box-sizing: border-box;
}

.home-order-entry span,
.home-order-entry strong,
.home-order-entry small {
  display: block;
  min-width: 0;
}

.home-order-entry strong {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.home-order-entry small {
  margin-top: 7px;
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.home-order-entry b {
  color: #0b4da2;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.priority-tools .tutorials-entry {
  border-color: #d7dcfb;
  background: linear-gradient(145deg, #ffffff, #f1f4ff);
}

.priority-tools .tutorials-entry .priority-tool-icon {
  color: #4c58c7;
  background: #e5e9ff;
}

.tutorials-screen .page-head,
.tutorial-detail-screen .tutorial-detail-head {
  margin-bottom: 14px;
}

.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  text-align: left;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
  box-sizing: border-box;
}

.tutorial-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f2f6fb;
  object-fit: cover;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.tutorial-card div {
  min-width: 0;
}

.tutorial-card small,
.tutorial-card strong,
.tutorial-card p,
.tutorial-card b {
  display: block;
}

.tutorial-card small {
  color: #0b4da2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.tutorial-card strong {
  margin-top: 5px;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.tutorial-card p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.tutorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tutorial-tags b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1764c0;
  font-size: 11px;
  line-height: 1.25;
}

.tutorial-card i {
  color: #9aa6b7;
  font-size: 26px;
  font-style: normal;
  line-height: 1;
}

.tutorial-detail-head {
  padding: 18px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
}

.tutorial-detail-head span,
.tutorial-detail-head small {
  display: block;
}

.tutorial-detail-head span {
  color: #1764c0;
  font-size: 13px;
  font-weight: 900;
}

.tutorial-detail-head h1 {
  margin: 7px 0 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
}

.tutorial-detail-head p {
  margin: 9px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.tutorial-detail-head small {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f0d3ac;
  border-radius: 12px;
  background: #fff8e8;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.tutorial-detail-cover {
  margin-bottom: 14px;
}

.tutorial-cover-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
}

.tutorial-cover-image img {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-detail-cover:not([hidden]) + .tutorial-step-list {
  margin-top: 0;
}

.tutorial-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.tutorial-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
}

.tutorial-step > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0b4da2;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.tutorial-step div {
  min-width: 0;
}

.tutorial-step strong {
  display: block;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.tutorial-step p {
  margin: 7px 0 0;
  color: #4b5568;
  font-size: 14px;
  line-height: 1.55;
}

.tutorial-step-image {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f2f6fb;
  overflow: hidden;
}

.tutorial-step-image img {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-share {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #0b4da2;
  font-weight: 800;
}

.detail-actions .customer-service-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0 auto;
  font-size: 0;
  line-height: 1;
}

.customer-service-icon-arc {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid #0d55a6;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.customer-service-icon-pad {
  position: absolute;
  top: 9px;
  width: 4px;
  height: 7px;
  border-radius: 3px;
  background: #0d55a6;
}

.customer-service-icon-pad-left {
  left: 2px;
}

.customer-service-icon-pad-right {
  right: 2px;
}

.customer-service-icon-mic {
  position: absolute;
  right: 4px;
  bottom: 1px;
  width: 8px;
  height: 5px;
  border-right: 2px solid #0d55a6;
  border-bottom: 2px solid #0d55a6;
  border-radius: 0 0 5px 0;
  box-sizing: border-box;
}
.priority-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.priority-tool {
  min-width: 0;
  min-height: 94px;
  padding: 13px 10px;
  border: 1px solid #d9e5f6;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15, 72, 140, 0.07);
}

.priority-tool span,
.priority-tool strong,
.priority-tool small {
  display: block;
  min-width: 0;
}

.priority-tool strong {
  font-size: 15px;
  line-height: 1.25;
  color: #13233a;
}

.priority-tool small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: #667085;
}

.priority-tool b {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1;
  color: #125ab3;
}

.priority-tool-main {
  border-color: #b7d1f2;
  background: #f4f8ff;
}

@media (max-width: 360px) {
  .priority-tool-grid {
    gap: 6px;
  }

  .priority-tool {
    min-height: 90px;
    padding: 11px 8px;
  }

  .priority-tool strong {
    font-size: 14px;
  }
}

/* 2026-08-26 final preview/formal parity overrides */
.priority-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.priority-tool,
.priority-tool-main {
  grid-column: auto;
  min-width: 0;
  min-height: 86px;
  padding: 11px 8px;
  border: 1px solid #d9e5f6;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 22px rgba(15, 72, 140, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.priority-tool-main {
  grid-column: auto;
  border-color: #cfe0fa;
  background: linear-gradient(135deg, #fff, #eef5ff);
}

.merchant-guides-entry {
  border-color: #d5e6dd;
  background: linear-gradient(135deg, #fff, #eefaf4);
}

.points-entry {
  border-color: #e8dcc4;
  background: linear-gradient(135deg, #fff, #fff8e7);
}

.priority-tool strong {
  font-size: 15px;
  line-height: 1.25;
}

.priority-tool small {
  display: none;
}

.priority-tool b {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1;
  color: #0b4da2;
}

.bottom-actions {
  display: block;
}

.detail-actions {
  display: grid;
  grid-template-columns: 0.78fr 0.68fr 1.1fr 1.1fr;
  gap: 7px;
  margin: 12px 0 10px;
}

.detail-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 5px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* 2026-08-26：显示完整性兜底，防止旧规则和缓存造成预览内容挤出或显示不全 */
.screen {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.screen.active {
  display: block;
}

.detail-actions {
  display: grid;
  grid-template-columns: 0.78fr 0.68fr 1.1fr 1.1fr;
  gap: 7px;
  margin: 12px 0 10px;
}

.detail-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 5px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  box-sizing: border-box;
}

.detail-all-products {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.preview-address-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 66px;
  margin: 0 0 12px;
  padding: 14px 18px;
  box-sizing: border-box;
  text-align: left;
}

.preview-address-entry > span {
  min-width: 0;
}

.preview-address-entry strong,
.preview-address-entry small {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-address-entry b {
  justify-self: end;
  white-space: nowrap;
}

.preview-cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.preview-cart-actions button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.preview-cart-list,
.preview-cart-summary,
.preview-cart-empty {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  .preview-address-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    gap: 8px;
    box-sizing: border-box;
  }

  .preview-address-entry strong {
    font-size: 17px;
  }

  .preview-address-entry small {
    font-size: 12px;
  }

  .preview-cart-actions {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    width: 100%;
    max-width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }
}

/* 2026-08-27：首页咨询入口右对齐并收紧，与正式小程序保持一致。 */
.hero-actions {
  justify-content: flex-end;
}

.hero-actions .home-consult-compact {
  flex: 0 0 auto;
  width: auto;
  min-width: 94px;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
}

/* 2026-08-27：紧凑规格与操作栏（正式版/预览统一） */
.detail-variants {
  gap: 6px;
}

.detail-variant {
  min-height: 44px;
  padding: 7px 10px;
  background: #f8faff;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
}

.detail-variant.active {
  border-color: #1764c0;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(23, 100, 192, 0.08);
}

.purchase-refund-notice {
  margin: 6px 0 0;
  padding: 6px 9px;
  background: #fff8e8;
  border: 1px solid #f2d49b;
  border-radius: 9px;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.detail-actions {
  display: grid;
  grid-template-columns: 52px 52px minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 6px;
  margin: 10px 0 6px;
  padding: 6px;
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 55, 98, 0.08);
}

.detail-actions button {
  height: 44px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.1;
}

.detail-actions #detailConsult,
.detail-actions #detailShare {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10.5px;
}

.detail-actions .detail-action-icon {
  font-size: 15px;
}

.detail-actions .detail-action-label {
  display: block;
  line-height: 1.1;
}

.detail-actions #detailAddCart {
  color: #0d55a6;
  background: #eaf2ff;
  border: 1px solid #c4daf5;
}

.detail-actions #detailBuyNow {
  color: #fff;
  background: #125ab3;
  border: 1px solid #125ab3;
}

.detail-all-products {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin: 4px auto 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 12px;
}

@media (max-width: 360px) {
  .detail-actions {
    grid-template-columns: 48px 48px minmax(0, 1fr) minmax(0, 1.08fr);
  }
}

/* 2026-08-27：首页常用工具最终覆盖。 */
.priority-tools {
  margin-top: 18px;
}

.priority-tools .priority-title {
  margin: 0 0 10px;
}

.category-grid button,
.priority-tools .priority-tool {
  box-sizing: border-box;
  min-height: 112px;
  padding: 14px 8px;
  border-radius: 16px;
}

.priority-tools .priority-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.priority-tools .priority-tool,
.priority-tools .priority-tool-main {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-width: 1px;
  box-shadow: 0 7px 18px rgba(15, 72, 140, 0.065);
}

.priority-tools .priority-tool > .priority-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 7px;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.priority-tools .priority-tool > strong {
  display: block;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.priority-tools .priority-tool > small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
}

.priority-tools .merchant-guides-entry {
  border-color: #cfe6d9;
  background: linear-gradient(145deg, #ffffff, #effaf4);
}

.priority-tools .merchant-guides-entry .priority-tool-icon {
  color: #168653;
  background: #dff5e8;
}

.priority-tools .points-entry {
  border-color: #cedefa;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}

.priority-tools .points-entry .priority-tool-icon {
  color: #1764c0;
  background: #dfeeff;
}

.priority-tools .priority-tool-main {
  border-color: #f0d3ac;
  background: linear-gradient(145deg, #ffffff, #fff4e6);
}

.priority-tools .priority-tool-main .priority-tool-icon {
  color: #c96a0a;
  background: #ffe6c7;
}
