﻿* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body { font-family: -apple-system, "Helvetica Neue", Roboto, sans-serif; background: #fff; color: #fff; overflow: hidden; height: 100vh; height: 100dvh; width: 100vw; position: relative; touch-action: manipulation; display: flex; justify-content: center; align-items: stretch; }
    .app-container { max-width: 430px; width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; background: #F0F1F3; }
    .view-stack { flex: 1; position: relative; overflow: hidden; background: #F0F1F3; }
    .page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .page.active { opacity: 1; pointer-events: auto; }
    .page-light { background: linear-gradient(135deg, #F8F9FA 0%, #F0F1F3 100%); color: #1A1C1E; }
    .ambient-blob { position: absolute; border-radius: 50%; opacity: 0.04; pointer-events: none; }
    #page-messages .ambient-blob { background: #34C759; width: 220px; height: 220px; top: 30%; right: -60px; }
    #page-profile .ambient-blob { background: #FF9F9F; width: 250px; height: 250px; bottom: 20%; left: -80px; }
    /* ─── 回收页（原"原料"占位页，2026-08-17 改正式业务页）─── */
    #page-raw { background: #F0F1F3; display: block; color: #1A1C1E; }
    #page-raw .recycle-page { width: 100%; height: 100%; display: flex; flex-direction: column; background: #F0F1F3; }
    #page-raw .recycle-header { flex-shrink: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: #F0F1F3; }
    #page-raw .top-row { display: flex; align-items: center; justify-content: space-between; }
    #page-raw .logo-area { width: 96px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    #page-raw .right-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; justify-content: flex-end; }
    #page-raw .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-raw .login-btn.hidden { display: none; }
    #page-raw .login-btn:active { transform: scale(0.95); }
    #page-raw .user-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #E8EAED; }
    #page-raw .user-name { font-size: 14px; font-weight: 600; color: #1A1C1E; white-space: nowrap; flex-shrink: 0; }
    #page-raw .recycle-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 20px; }
    #page-raw .recycle-announce-card { margin-bottom: 14px; padding: 14px 14px 12px; border-radius: 12px; border: 1px solid rgba(47,107,255,0.18); border-left: 3px solid #2F6BFF; background: linear-gradient(135deg, rgba(47,107,255,0.08), rgba(102,179,255,0.04)); }
    #page-raw .recycle-announce-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
    #page-raw .recycle-announce-title { font-size: 13px; font-weight: 700; color: #2F6BFF; letter-spacing: 0.5px; }
    #page-raw .recycle-announce-highlight { font-size: 15px; font-weight: 700; color: #2F6BFF; line-height: 1.45; margin-bottom: 6px; }
    #page-raw .recycle-announce-detail { font-size: 13px; color: #6A6E74; line-height: 1.6; margin-bottom: 4px; }
    #page-raw .recycle-announce-cta { font-size: 13px; font-weight: 600; color: #2F6BFF; line-height: 1.6; margin-top: 6px; }
    #page-raw .recycle-inquiry-list { display: flex; flex-direction: column; gap: 10px; }
    #page-raw .recycle-inquiry-card { width: 100%; padding: 15px 14px; border: none; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); cursor: pointer; text-align: left; transition: transform 0.1s; }
    #page-raw .recycle-inquiry-card:active { transform: scale(0.98); }
    #page-raw .recycle-inquiry-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
    #page-raw .recycle-inquiry-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: #1A1C1E; font-size: 16px; flex-shrink: 0; }
    #page-raw .recycle-inquiry-icon svg { width: 18px; height: 18px; display: block; }
    #page-raw .recycle-inquiry-name { font-size: 14px; font-weight: 600; color: #1A1C1E; line-height: 1.42; min-width: 0; padding-right: 8px; }
    #page-raw .recycle-inquiry-action { font-size: 13px; color: #8E96A3; font-weight: 600; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 2px; }
    #page-raw .recycle-arrow { font-size: 14px; }
    #page-messages, #page-profile { background: #FFFFFF; }
    #page-nearby, #page-product-detail { background: #F0F1F3; }
    .page-title { font-size: 32px; font-weight: 300; letter-spacing: 4px; color: #fff; margin-bottom: 12px; }
    .page-light .page-title { color: #1A1C1E; }
    .page-light .accent-line { background: rgba(0,0,0,0.2); }
    .accent-line { width: 24px; height: 4px; background: #FF5C72; border-radius: 2px; margin-top: 4px; }

    /* 底导 */
    .bottom-nav { flex-shrink: 0; width: 100%; height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); transition: background 200ms ease, border-color 200ms ease; border-top: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-around; align-items: center; z-index: 200; position: relative; background: #FFFFFF; }
    .nav-icon { stroke-width: 1.5px; }
    .nav-item .nav-label { color: #6E7278; }
    .nav-item.active .nav-label { color: #FF5C39; font-weight: 600; text-shadow: none; }
    .nav-item:not(.active) .nav-icon { fill: none; stroke: #6E7278; }
    .nav-item.active .nav-icon { fill: none; stroke: #FF5C39; filter: none; }
    .nav-item:not(.active) .nav-icon .dot { fill: #6E7278; }
    .nav-item.active .nav-icon .dot { fill: #FF5C39; }
    .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform 100ms ease-out; position: relative; }
    .nav-item:active { transform: scale(0.92); opacity: 0.8; }
    /* ★2026-10-22：底导未读角标（与 App `WebBottomNav._NavBadge` 同口径：高 18 / 最小宽 18 /
       圆角 full / 客服主题深底 / 白字 11px w600 / >99 显示 99+）。数值与会话行 `.msg-unread` 同源。 */
    .nav-badge {
      position: absolute; top: 6px; left: 50%; margin-left: 6px;
      min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
      background: #0A7C73; color: #FFFFFF;
      font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
      pointer-events: none;
    }
    .nav-icon-wrapper { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
    .nav-icon { width: 24px; height: 24px; transition: all 200ms ease; }
    .nav-label { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; transition: all 200ms ease; }

    /* 全局 Toast */
    .toast {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.82); color: #fff; padding: 14px 28px; border-radius: 10px; font-size: 15px; z-index: 600; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}

