/* 同城页面 */
    #page-nearby {
background: #F0F1F3; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
}
    #page-nearby .nearby-container, #page-product-detail .nearby-container {
width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #F0F1F3;
}

    #page-nearby .sticky-header, #page-product-detail .sticky-header {
position: sticky; top: 0; z-index: 50; background: #F0F1F3;
      padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0; margin-bottom: 12px;
}
    #page-nearby .sticky-header .top-row, #page-product-detail .sticky-header .top-row {
margin-bottom: 12px;
}
    #page-nearby .sticky-header .search-bar, #page-product-detail .sticky-header .search-bar {
margin-bottom: 0;
}
    #page-nearby .nearby-header, #page-product-detail .nearby-header {
padding: 0 16px;
}

    #page-nearby .top-row, #page-product-detail .top-row {
display: flex; align-items: center; justify-content: space-between;
}
    #page-nearby .logo-area, #page-product-detail .logo-area {
width: 96px; height: 32px; background: transparent; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #A0A4A8;
}
    #page-nearby .right-actions, #page-product-detail .right-actions {
display: flex; align-items: center; gap: 8px; flex-shrink: 0; justify-content: flex-end;
}

    #page-nearby .login-btn, #page-product-detail .login-btn {
width: 70px; height: 32px; background: #FF5C39; color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.1s, opacity 0.2s; border: none; flex-shrink: 0;
}
    #page-nearby .login-btn:active, #page-product-detail .login-btn:active {
transform: scale(0.95);
}
    #page-nearby .login-btn.hidden, #page-product-detail .login-btn.hidden {
display: none;
}
    #page-nearby .user-avatar, #page-product-detail .user-avatar {
width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #E8EAED;
}
    #page-nearby .user-name, #page-product-detail .user-name {
font-size: 14px; font-weight: 600; color: #1A1C1E; white-space: nowrap; flex-shrink: 0;
}

    #page-nearby .search-bar, #page-product-detail .search-bar {
height: 42px; background: #FFFFFF; border-radius: 21px; display: flex; align-items: center; padding: 0 16px; gap: 8px; margin-bottom: 0;
}
    #page-nearby .search-bar svg, #page-product-detail .search-bar svg {
width: 18px; height: 18px; fill: none; stroke: #A0A4A8; stroke-width: 2;
}
    #page-nearby .search-bar input, #page-product-detail .search-bar input {
flex: 1; border: none; background: none; outline: none; font-size: 14px; color: #1A1C1E;
}
    #page-nearby .search-bar input::placeholder, #page-product-detail .search-bar input::placeholder {
color: #A0A4A8;
}

    #page-nearby .banner-carousel, #page-product-detail .banner-carousel {
position: relative; width: 100%; height: 140px; background: #FFFFFF; border-radius: 10px; overflow: hidden; margin-bottom: 6px;
}
    #page-nearby .banner-track, #page-product-detail .banner-track {
display: flex; width: 100%; height: 100%; transition: transform 0.3s ease; will-change: transform;
}
    #page-nearby .banner-item, #page-product-detail .banner-item {
flex: 0 0 100%; width: 100%; height: 100%; background: #D9DDE3; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #6A6E74;
}
    #page-nearby .banner-dots, #page-product-detail .banner-dots {
position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px;
}
    #page-nearby .banner-dot, #page-product-detail .banner-dot {
width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.2s;
}
    #page-nearby .banner-dot.active, #page-product-detail .banner-dot.active {
background: #fff; width: 16px; border-radius: 3px;
}

    #page-nearby .notice-bar, #page-product-detail .notice-bar {
height: 32px; background: #FFFFFF; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; gap: 8px; margin-bottom: 16px; overflow: hidden;
}
    #page-nearby .notice-icon svg, #page-product-detail .notice-icon svg {
width: 16px; height: 16px; fill: #FF5C39;
}
    #page-nearby .notice-text, #page-product-detail .notice-text {
flex: 1; overflow: hidden; white-space: nowrap; position: relative;
}
    #page-nearby .notice-text-inner, #page-product-detail .notice-text-inner {
display: inline-block; padding-left: 100%; animation: nearby-marquee 12s linear infinite; font-size: 13px; color: #6A6E74;
}
    @keyframes nearby-marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

    #page-nearby .category-section, #page-product-detail .category-section {
display: flex; flex-direction: column; padding: 0 16px; margin-bottom: 0;
}
    #page-nearby .category-grid, #page-product-detail .category-grid {
display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; overflow: hidden; transition: max-height 0.3s ease;
}
    #page-nearby .category-grid.collapsed, #page-product-detail .category-grid.collapsed {
max-height: 168px;
}
    #page-nearby .category-grid.expanded, #page-product-detail .category-grid.expanded {
max-height: 264px;
}
    #page-nearby .category-item, #page-product-detail .category-item {
display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; cursor: pointer; transition: transform 0.1s;
}
    #page-nearby .category-item:active, #page-product-detail .category-item:active {
transform: scale(0.95);
}
    #page-nearby .cat-icon, #page-product-detail .cat-icon {
width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
    #page-nearby .cat-icon svg, #page-product-detail .cat-icon svg {
width: 18px; height: 18px; fill: #6A6E74; transition: fill 0.2s;
}
    #page-nearby .cat-name, #page-product-detail .cat-name {
font-size: 11px; color: #6A6E74; transition: color 0.2s; white-space: nowrap;
}
    #page-nearby .category-item.selected .cat-name, #page-product-detail .category-item.selected .cat-name {
color: #FF5C39; font-weight: 500;
}

    #page-nearby .category-toggle-row, #page-product-detail .category-toggle-row {
display: flex; justify-content: flex-end; margin-top: 16px; margin-bottom: 16px;
}
    #page-nearby .category-toggle-btn, #page-product-detail .category-toggle-btn {
display: flex; align-items: center; gap: 2px; cursor: pointer; color: #FF5C39; font-size: 11px; user-select: none;
}
    #page-nearby .category-toggle-btn svg, #page-product-detail .category-toggle-btn svg {
width: 18px; height: 18px; fill: #FF5C39; transition: transform 0.3s;
}
    #page-nearby .category-toggle-btn.open svg, #page-product-detail .category-toggle-btn.open svg {
transform: rotate(180deg);
}

    #page-nearby .product-section, #page-product-detail .product-section {
padding: 0 16px 16px;
}
    #page-nearby .product-grid, #page-product-detail .product-grid, #page-profile .product-grid {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
    #page-nearby .product-card, #page-product-detail .product-card, #page-profile .product-card {
background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: transform 0.1s; cursor: pointer;
}
    #page-nearby .product-card:active, #page-product-detail .product-card:active, #page-profile .product-card:active {
transform: scale(0.96);
}
    #page-nearby .product-image, #page-product-detail .product-image, #page-profile .product-image {
width: 100%; aspect-ratio: 1; background: #E8EAED; position: relative; overflow: hidden;
}
    #page-nearby .product-image img, #page-product-detail .product-image img, #page-profile .product-image img {
width: 100%; height: 100%; object-fit: cover;
}
    #page-nearby .product-badge, #page-product-detail .product-badge, #page-profile .product-badge {
position: absolute; top: 8px; left: 8px; background: #FF5C39; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
    #page-nearby .product-info, #page-product-detail .product-info, #page-profile .product-info {
padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
    #page-nearby .product-title, #page-product-detail .product-title, #page-profile .product-title {
font-size: 14px; color: #1A1C1E; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
    #page-nearby .product-price-row, #page-product-detail .product-price-row, #page-profile .product-price-row {
display: flex; align-items: baseline; justify-content: space-between;
}
    #page-nearby .price, #page-product-detail .price, #page-profile .price {
font-size: 18px; font-weight: 700; color: #FF5C39;
}
    #page-nearby .price-symbol, #page-product-detail .price-symbol, #page-profile .price-symbol {
font-size: 14px;
}
    /* ★2026-10-10 售罄价格区（我的页收藏 / 客服加号面板商品列表共用）：灰字、不显示价格。
       ⚠️ 必须排在 `.price` 之后覆盖其橙色（同等特异度、后者胜）。 */
    #page-nearby .price-sold-out, #page-product-detail .price-sold-out, #page-profile .price-sold-out, #page-messages .price-sold-out {
font-size: 15px; font-weight: 700; color: #A0A4A8;
}
    #page-nearby .meta-text, #page-product-detail .meta-text, #page-profile .meta-text {
font-size: 12px; color: #A0A4A8;
}
    #page-nearby .end-tip, #page-product-detail .end-tip {
text-align: center; padding: 20px 0; font-size: 13px; color: #A0A4A8;
}

    /* 登录弹窗 */
    .auth-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
    .auth-overlay.show {
opacity: 1; pointer-events: auto;
}
    .auth-card {
width: 320px; background: #fff; border-radius: 14px; padding: 28px 24px 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.25); position: relative; max-height: 90vh; overflow-y: auto;
}
    .auth-title {
font-size: 22px; font-weight: 700; color: #1A1C1E; margin-bottom: 18px; text-align: center; letter-spacing: 0.5px;
}
    .auth-input-group {
margin-bottom: 14px;
}
    .auth-input {
width: 100%; height: 44px; border: 1.5px solid #E0E3E6; border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; transition: border 0.2s; background: #FAFBFC;
}
    .auth-input:focus {
border-color: #FF5C39; background: #fff;
}
    .captcha-row {
display: flex; gap: 10px; align-items: stretch; margin-bottom: 4px;
}
    .captcha-row .auth-input {
flex: 1;
}
    .captcha-canvas-wrap {
width: 100px; height: 44px; border-radius: 10px; overflow: hidden; cursor: pointer; flex-shrink: 0; border: 1.5px solid #E0E3E6; position: relative;
}
    .captcha-canvas-wrap canvas,
    .captcha-canvas-wrap img {
display: block; width: 100%; height: 100%;
}
    /* ★2026-10-10：验证码改服务端图片后，加载失败给"可点击重试"的可见态（防死图）。
       ⚠️ 行高必须与容器实际高度一致（皮肤层 `.captcha-canvas-wrap{height:48px}`）——
          写成 44px 会让文案偏上（自查发现）。 */
    .captcha-canvas-wrap img.is-failed {
background: #F1F3F5; color: #8A8F99; font-size: 11px; text-align: center; line-height: 48px;
}
    .auth-check-row {
display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; color: #6A6E74;
}
    .auth-check-row input[type=\"checkbox\"] {
accent-color: #FF5C39; width: 15px; height: 15px;
}
    .auth-check-row .link-text {
color: #FF5C39;
}
    .auth-btn {
width: 100%; height: 46px; background: #FF5C39; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px; letter-spacing: 0.5px;
}
    .auth-btn:active {
opacity: 0.9;
}
    .auth-switch {
text-align: center; margin-top: 14px; font-size: 13px; color: #6A6E74;
}
    .auth-switch span {
color: #FF5C39; cursor: pointer; font-weight: 600;
}
    .auth-error {
display: none; margin-top: 10px; font-size: 13px; line-height: 1.4; color: #D93025; text-align: center; word-break: break-word;
}
    .auth-btn[disabled] {
opacity: 0.6; cursor: default;
}
    .auth-close {
position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
    .auth-close:active {
background: #F0F1F3;
}

    .password-wrapper {
position: relative;
}
    .password-wrapper .auth-input {
padding-right: 40px;
}
    .toggle-password {
position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0;
}

    /* 搜索子页面 */
    #page-nearby .nearby-subpages, #page-product-detail .nearby-subpages {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 300;
      pointer-events: none; opacity: 0;
      display: flex; flex-direction: column;
}
    #page-nearby .nearby-subpages.show, #page-product-detail .nearby-subpages.show {
pointer-events: auto; opacity: 1;
}
    #page-nearby .subpage-full, #page-product-detail .subpage-full {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background: #F0F1F3; display: flex; flex-direction: column;
      opacity: 0; pointer-events: none;
}
    #page-nearby .subpage-full.active, #page-product-detail .subpage-full.active {
opacity: 1; pointer-events: auto;
}
    #page-nearby .sub-header, #page-product-detail .sub-header {
display: flex; align-items: center;
      padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
      background: #F0F1F3; gap: 12px;
}
    #page-nearby .sub-back, #page-product-detail .sub-back {
width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
    #page-nearby .sub-back svg, #page-product-detail .sub-back svg {
width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2.5;
}
    #page-nearby .sub-search-bar, #page-product-detail .sub-search-bar {
flex: 1; height: 42px; background: #fff; border-radius: 21px;
      display: flex; align-items: center; padding: 0 8px 0 16px; gap: 8px;
      border: 1.5px solid #E0E3E6;
}
    #page-nearby .sub-search-bar input, #page-product-detail .sub-search-bar input {
flex: 1; border: none; outline: none; font-size: 14px; color: #1A1C1E; background: none;
}
    #page-nearby .sub-search-bar.readonly input, #page-product-detail .sub-search-bar.readonly input {
color: #6A6E74; pointer-events: none;
}
    #page-nearby .sub-search-bar button, #page-product-detail .sub-search-bar button {
background: #FF5C39; color: #fff; border: none; border-radius: 16px;
      padding: 0 16px; height: 32px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
    #page-nearby .sub-content, #page-product-detail .sub-content {
flex: 1; overflow-y: auto; padding: 16px;
}
    #page-nearby .sp-tag-group, #page-product-detail .sp-tag-group {
margin-bottom: 20px;
}
    #page-nearby .sp-tag-title, #page-product-detail .sp-tag-title {
font-size: 13px; color: #888; margin-bottom: 10px;
}
    #page-nearby .sp-tags, #page-product-detail .sp-tags {
display: flex; flex-wrap: wrap; gap: 8px;
}
    #page-nearby .sp-tag, #page-product-detail .sp-tag {
padding: 6px 14px; background: #F0F1F3; border-radius: 16px; font-size: 13px; color: #333; cursor: pointer; transition: background 0.15s;
}
    #page-nearby .sp-tag:active, #page-product-detail .sp-tag:active {
background: #e0e1e4;
}

    #page-nearby .result-content, #page-product-detail .result-content {
padding: 12px 16px;
}
    #page-nearby .result-content .product-grid, #page-product-detail .result-content .product-grid {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}

    /* 商品详情页样式 */
    #page-product-detail {
background: #F0F1F3;
      color: #1A1C1E;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      align-items: stretch;
      justify-content: flex-start;
}
    #page-nearby .detail-scroll, #page-product-detail .detail-scroll {
flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
      position: relative;
}
    #page-product-detail .detail-fixed-header {
position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%) translateY(-100%);
      width: 100%;
      max-width: 430px;
      z-index: 50;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
      gap: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      color: #1A1C1E;
}
    #page-product-detail .detail-fixed-header.visible {
opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
}
    #page-product-detail .fixed-back {
width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
    #page-product-detail .fixed-back svg {
width: 22px; height: 22px; fill: none; stroke: #1A1C1E; stroke-width: 2.5;
}
    #page-product-detail .fixed-tabs {
flex: 1; display: flex; align-items: center; gap: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
    #page-product-detail .fixed-tabs::-webkit-scrollbar {
display: none;
}
    #page-product-detail .fixed-tab {
padding: 4px 14px; font-size: 14px; color: #6A6E74; cursor: pointer; font-weight: 500; flex-shrink: 0; transition: color 0.15s;
}
    #page-product-detail .fixed-tab.active {
color: #FF5C39; font-weight: 700;
}
    #page-nearby .fixed-actions, #page-product-detail .fixed-actions {
display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
    #page-nearby .fixed-more, #page-product-detail .fixed-more {
width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
    #page-nearby .fixed-more svg, #page-product-detail .fixed-more svg {
width: 22px; height: 22px; fill: #1A1C1E;
}

    #page-nearby .media-section, #page-product-detail .media-section {
width: 100%;
      aspect-ratio: 1 / 1;
      background: #E8EAED;
      position: relative;
      overflow: hidden;
      border-radius: 0 0 12px 12px;
}
    #page-nearby .media-track, #page-product-detail .media-track {
display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
    #page-nearby .media-slide, #page-product-detail .media-slide {
flex: 0 0 100%;
      width: 100%;
      height: 100%;
      position: relative;
      background: #fff;
}
    #page-nearby .media-slide img, #page-product-detail .media-slide img {
width: 100%; height: 100%; object-fit: cover;
}
    #page-nearby .media-slide video, #page-product-detail .media-slide video {
width: 100%;
      height: 100%;
      object-fit: contain;
      background: #fff;
      display: block;
}
    #page-nearby #galleryPanel, #page-product-detail #galleryPanel, #page-nearby #videoPanel, #page-product-detail #videoPanel {
width: 100%;
      height: 100%;
      position: relative;
}
    #page-nearby .media-play-btn, #page-product-detail .media-play-btn {
position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 48px; height: 48px;
      background: rgba(0,0,0,0.5);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      z-index: 2;
      pointer-events: auto;
      font-size: 20px;
}
    #page-nearby .media-dots, #page-product-detail .media-dots {
position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
}
    #page-nearby .media-dot, #page-product-detail .media-dot {
width: 6px; height: 6px;
      border-radius: 50%;
      background: rgba(0,0,0,0.5);
      transition: background 0.2s;
}
    #page-nearby .media-dot.active, #page-product-detail .media-dot.active {
background: #FF5C39; width: 16px; border-radius: 3px;
}
    #page-nearby .media-more-btn, #page-product-detail .media-more-btn {
position: absolute;
      top: 12px; right: 12px;
      width: 32px; height: 32px;
      background: rgba(0,0,0,0.4);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 5;
      transition: opacity 0.2s;
      color: #fff;
}
    #page-nearby .media-back-btn, #page-product-detail .media-back-btn {
position: absolute;
      top: 12px; left: 12px;
      width: 32px; height: 32px;
      background: rgba(0,0,0,0.4);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 5;
      transition: opacity 0.2s;
}
    #page-nearby .media-back-btn svg, #page-product-detail .media-back-btn svg {
width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.5;
}

    #page-nearby .media-sound-btn, #page-product-detail .media-sound-btn {
position: absolute; bottom: 12px; right: 12px;
      width: 32px; height: 32px;
      background: rgba(0,0,0,0.5);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 3;
}

    #page-nearby .info-card, #page-product-detail .info-card {
background: #fff; margin: 12px; border-radius: 12px; padding: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
    #page-nearby .price-area, #page-product-detail .price-area {
display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
    #page-nearby .price-current, #page-product-detail .price-current {
font-size: 28px; font-weight: 700; color: #FF5C39;
}
    #page-nearby .price-original, #page-product-detail .price-original {
font-size: 14px; color: #A0A4A8; text-decoration: line-through;
}
    #page-nearby .sales-text, #page-product-detail .sales-text {
margin-left: auto; font-size: 13px; color: #A0A4A8;
}
    #page-nearby .product-title-detail, #page-product-detail .product-title-detail {
font-size: 16px; font-weight: 600; color: #1A1C1E; margin-bottom: 10px; line-height: 1.4;
}
    #page-nearby .tag-row, #page-product-detail .tag-row {
display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
    #page-nearby .service-tag, #page-product-detail .service-tag {
background: #FFF1EE; color: #FF5C39; font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
    #page-nearby .params-table, #page-product-detail .params-table {
width: 100%; border-collapse: collapse; font-size: 13px; color: #6A6E74;
}
    #page-nearby .params-table td, #page-product-detail .params-table td {
padding: 6px 4px; border-bottom: 1px solid #F0F1F3;
}
    #page-nearby .params-table td:first-child, #page-product-detail .params-table td:first-child {
color: #A0A4A8; width: 60px;
}

    #page-nearby .detail-section-block, #page-product-detail .detail-section-block {
background: #fff; margin: 0 12px 12px; border-radius: 12px; padding: 16px;
}
    #page-nearby .detail-images img, #page-product-detail .detail-images img {
width: 100%; border-radius: 8px; margin-bottom: 8px; cursor: pointer;
}
    #page-nearby .detail-images video, #page-product-detail .detail-images video {
width: 100%; border-radius: 8px; background: #000;
}

    #page-nearby .review-item, #page-product-detail .review-item, #reviewOverlay .review-item {
border-bottom: 1px solid #F0F1F3; padding: 12px 0;
}
    #page-nearby .review-item:last-child, #page-product-detail .review-item:last-child, #reviewOverlay .review-item:last-child {
border-bottom: none;
}
    #page-nearby .review-header, #page-product-detail .review-header, #reviewOverlay .review-header {
display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
    #page-nearby .review-avatar, #page-product-detail .review-avatar, #reviewOverlay .review-avatar {
width: 28px; height: 28px; background: #E8EAED; border-radius: 50%; flex-shrink: 0;
}
    #page-nearby .review-name, #page-product-detail .review-name, #reviewOverlay .review-name {
font-size: 13px; font-weight: 600; color: #1A1C1E;
}
    #page-nearby .review-stars, #page-product-detail .review-stars, #reviewOverlay .review-stars {
display: flex; gap: 2px; margin-left: auto;
}
    #page-nearby .review-stars svg, #page-product-detail .review-stars svg, #reviewOverlay .review-stars svg {
width: 14px; height: 14px; fill: #FF5C39;
}
    #page-nearby .review-stars svg.empty-star, #page-product-detail .review-stars svg.empty-star, #reviewOverlay .review-stars svg.empty-star {
fill: none; stroke: #FF5C39; stroke-width: 1.5;
}
    #page-nearby .review-content, #page-product-detail .review-content, #reviewOverlay .review-content {
font-size: 13px; color: #6A6E74; margin-bottom: 6px; line-height: 1.4;
}
    #page-nearby .review-images, #page-product-detail .review-images, #reviewOverlay .review-images {
display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
}
    #page-nearby .review-images img, #page-product-detail .review-images img, #reviewOverlay .review-images img {
width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex-shrink: 0; cursor: pointer;
}
    #page-nearby .review-spec, #page-product-detail .review-spec, #reviewOverlay .review-spec {
font-size: 11px; color: #A0A4A8; background: #F0F1F3; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px;
}
    #page-nearby .view-more-reviews, #page-product-detail .view-more-reviews {
text-align: center; padding: 10px; color: #FF5C39; font-size: 13px; cursor: pointer;
}

    #page-nearby .recommend-title, #page-product-detail .recommend-title {
font-size: 16px; font-weight: 600; padding: 0 16px 8px; color: #1A1C1E;
}
    #page-nearby .recommend-grid, #page-product-detail .recommend-grid {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px;
}
    #page-nearby .recommend-grid .product-card, #page-product-detail .recommend-grid .product-card {
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    #page-product-detail .detail-bottom-bar {
flex-shrink: 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.06);
      display: flex; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px;
}
    #page-product-detail .btn-favorite {
flex: 1; height: 40px; background: #fff; border: 1.5px solid #FF5C39; color: #FF5C39; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.1s, background 0.1s;
}
    #page-product-detail .btn-favorite:active {
transform: scale(0.96); background: #FFF1EE;
}
    #page-product-detail .btn-contact {
flex: 1; height: 40px; background: #FF5C39; border: none; color: #fff; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.1s, background 0.1s;
}
    #page-product-detail .btn-contact:active {
transform: scale(0.96); background: #E04A2E;
}

    .lightbox {
position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 1000; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transition: opacity 0.2s; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
    .lightbox::-webkit-scrollbar { display: none; }
    .lightbox.show {
opacity: 1; pointer-events: auto;
}
    .lightbox-img-wrap {
display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100%;
}
    .lightbox img {
display: block; flex-shrink: 0;
/* ⚠ 2026-10-01 共享媒体查看器（`assets/js/shared/media-viewer.js`）：
   缩放/位移以 `transform` 叠加在本行注明的布局尺寸（`width/height`）之上，
   故需要独立的合成层 —— `will-change:transform` 由 JS 在放大时动态加、还原时移除。
   `touch-action` 同样由 JS 动态切换（未放大 `pan-y` → 长图可上下滚；放大后 `none` → 全手势交给平移）。 */
}
    /* 本规格（商品详情 / 评价图）的沉浸式控件为 **44×44 + rgba(60,60,60,.85) 底**
       （公示/聊天规格是 36×36 + rgba(0,0,0,.6)）—— 逐值照搬改造前的 `.lightbox-close`。
       通用样式见 `assets/css/circle.css` 的「沉浸式控件」段（两处共用同一组 `.mv-*` 类）。 */
    .lightbox .mv-back, .lightbox .mv-more {
top: 20px; width: 44px; height: 44px; background: rgba(60,60,60,0.85);
}
    .lightbox .mv-back {
left: 16px;
}
    .lightbox .mv-menu {
top: 72px;
}
    .lightbox .mv-indicator {
bottom: 24px;
}

    /* 媒体切换按钮 */
    #page-nearby .media-switch, #page-product-detail .media-switch {
display: flex;
      justify-content: center;
      gap: 12px;
      margin: 10px 12px 0;
}
    #page-nearby .switch-btn, #page-product-detail .switch-btn {
padding: 6px 20px;
      background: #F0F1F3;
      border-radius: 16px;
      font-size: 13px;
      color: #6A6E74;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
}
    #page-nearby .switch-btn.active, #page-product-detail .switch-btn.active {
background: #FF5C39;
      color: #fff;
      font-weight: 600;
}

    /* 规格浮窗 */
    .spec-overlay {
position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 600;
      display: none;
      align-items: flex-end;
      justify-content: center;
}
    .spec-overlay.show {
display: flex;
}
    .spec-panel {
width: 100%;
      max-width: 430px;
      background: #fff;
      border-radius: 16px 16px 0 0;
      padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
    .spec-title {
font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #1A1C1E;
}
    .spec-list {
display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
    .spec-item {
padding: 8px 18px;
      border: 1.5px solid #E0E3E6;
      border-radius: 8px;
      font-size: 14px;
      color: #1A1C1E;
      background: #F8F9FA;
      cursor: pointer;
      transition: 0.15s;
      white-space: nowrap;
}
    .spec-item.selected {
border-color: #FF5C39;
      background: #FFF1EE;
      color: #FF5C39;
}
    .spec-close-btn {
width: 100%;
      height: 44px;
      background: #FF5C39;
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
}

    /* 评论详情抽屉 */
    .review-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); z-index: 600;
      display: none; align-items: flex-end; justify-content: center;
}
    .review-overlay.show {
display: flex;
}
    .review-panel {
width: 100%; max-width: 430px;
      max-height: 70vh;
      background: #fff; border-radius: 16px 16px 0 0;
      padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
      display: flex; flex-direction: column;
}
    .review-panel-header {
display: flex; align-items: center; justify-content: flex-start;
      position: relative; margin-bottom: 4px; flex-shrink: 0;
}
    .review-panel-title {
font-size: 16px; font-weight: 600; color: #1A1C1E;
}
    .review-panel-close {
position: absolute; right: 0; top: 50%; transform: translateY(-50%);
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #6A6E74; font-size: 16px;
}
    .review-panel-scroll {
flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
      padding: 8px 4px 0;
}

    /* 更多工具浮窗与分享浮窗 */
    .tool-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); z-index: 600;
      display: none; align-items: flex-end; justify-content: center;
}
    .tool-overlay.show {
display: flex;
}
    .tool-panel {
width: 100%; max-width: 430px;
      background: #fff; border-radius: 16px 16px 0 0;
      padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
      position: relative;
}
    .tool-close {
position: absolute; top: 16px; right: 16px;
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #6A6E74;
}
    .tool-close:active {
background: #F0F1F3;
}
    .tool-title {
font-size: 16px; font-weight: 600; color: #1A1C1E;
      text-align: center; margin-bottom: 24px;
}
    .tool-grid {
display: flex; justify-content: space-around; gap: 8px;
}
    .tool-item {
display: flex; flex-direction: column; align-items: center;
      cursor: pointer; transition: transform 0.1s; user-select: none;
      flex: 1; max-width: 64px;
}
    .tool-item:active {
transform: scale(0.92);
}
    .tool-icon {
width: 48px; height: 48px; border-radius: 12px;
      background: #F5F6F8; display: flex; align-items: center;
      justify-content: center; margin-bottom: 6px;
}
    .tool-icon svg {
width: 24px; height: 24px; fill: none; stroke: #6A6E74; stroke-width: 2;
}
    .tool-label {
font-size: 12px; color: #6A6E74;
}
    .tool-item.favorited .tool-icon svg {
fill: #FF5C39; stroke: #FF5C39;
}
    .tool-item.favorited .tool-label {
color: #FF5C39;
}

    .share-panel .share-link-row {
display: flex; align-items: center; gap: 10px;
      margin-top: 8px;
}
    .share-link-input {
flex: 1; height: 40px; background: #F0F1F3; border-radius: 10px;
      padding: 0 12px; font-size: 13px; color: #6A6E74; border: none;
      outline: none; pointer-events: none;
}
    .share-copy-btn {
height: 40px; padding: 0 16px; background: #FF5C39;
      color: #fff; border: none; border-radius: 10px; font-size: 14px;
      font-weight: 600; cursor: pointer; white-space: nowrap;
}
    .share-copy-btn:active {
opacity: 0.9;
}

    /* 横屏适配 */
    @media (orientation: landscape) {
      
      
      
      .detail-fixed-header {
left: 50%; transform: translateX(-50%) translateY(-100%); max-width: 500px;
}
      .detail-fixed-header.visible {
transform: translateX(-50%) translateY(0);
}
      .spec-panel {
max-width: 430px; margin: 0 auto;
}
      .tool-panel {
max-width: 430px; margin: 0 auto;
}
    }