* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f8f9fa; color: #333; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
#app { flex: 1; overflow: hidden; position: relative; }

/* 页面容器层 */
.page-container { display: none; height: 100%; width: 100%; position: absolute; top: 0; left: 0; }
.page-container.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 为查询页面配置高级玻璃感动态底色 */
#tab-search {
    background-color: #fcfcfc;
    background-image: 
      radial-gradient(at 10% 10%, rgba(220, 235, 255, 0.7) 0px, transparent 50%),
      radial-gradient(at 90% 90%, rgba(225, 245, 235, 0.7) 0px, transparent 50%),
      radial-gradient(at 10% 90%, rgba(230, 225, 255, 0.6) 0px, transparent 50%);
}

/* 底部三向导航栏 */
.bottom-nav { height: 60px; background: #fff; display: flex; border-top: 1px solid #eee; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #888; cursor: pointer; transition: color 0.2s; }
.nav-item.active { color: #1a73e8; font-weight: 500;}
.nav-icon { width: 24px; height: 24px; margin-bottom: 4px; object-fit: contain; }

/* 旧机查询界面 UI (极简高逼格) */
.search-top { height: 35%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 30px; }
.logo { font-size: 26px; font-weight: 800; background: linear-gradient(135deg, #202124 0%, #3c4043 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 28px; letter-spacing: 1px; text-align: center; }
.search-box { width: 85%; max-width: 500px; position: relative; }
.search-box input { width: 100%; height: 50px; border-radius: 25px; border: 1px solid #dfe1e5; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); padding: 0 40px 0 20px; font-size: 15px; outline: none; transition: box-shadow 0.2s, border-color 0.2s; box-shadow: 0 4px 12px rgba(32,33,36,0.05); }
.search-box input:focus { box-shadow: 0 6px 16px rgba(32,33,36,0.1); border-color: #fff; background: rgba(255,255,255,0.9); }
.search-box input:disabled { background: #f1f3f4; color: #ea4335; border-color: #fce8e6; text-align: center; }
.clear-btn { position: absolute; right: 15px; top: 15px; font-size: 20px; color: #9aa0a6; cursor: pointer; display: none; line-height: 1; user-select: none; }
.clear-btn:hover { color: #5f6368; }

/* 联想滑动框 */
.suggestion-box { position: absolute; top: 60px; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.12); max-height: 250px; overflow-y: auto; z-index: 50; display: none; }
.suggestion-item { padding: 14px 20px; font-size: 14px; color: #3c4043; cursor: pointer; border-bottom: 1px solid #f8f9fa; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item:active { background-color: #f8f9fa; }
.highlight-text { color: #1a73e8; font-weight: bold; }

/* 强制在移动端展示定制防沉浸式柔和排版的滚动条，让用户永远知道可以向下滑动 */
.suggestion-box::-webkit-scrollbar { width: 14px; }
/* 为轨道上下增加边距，完美避开上下两端的圆角 */
.suggestion-box::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
/* 利用透明边框和 background-clip 将滚动条向左挤压，避开右侧边缘 */
.suggestion-box::-webkit-scrollbar-thumb { background: #dcdfe3; border-radius: 10px; border: 4px solid transparent; background-clip: padding-box; }
.suggestion-box::-webkit-scrollbar-thumb:hover { background: #c0c4cc; border: 4px solid transparent; background-clip: padding-box; }

/* 查询结果卡片 */
.result-bottom { height: 65%; padding: 0 20px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }
.result-card { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); width: 90%; max-width: 500px; padding: 35px 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); text-align: center; transform: translateY(30px); opacity: 0; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin-bottom: 20px; }
.result-card.show { transform: translateY(0); opacity: 1; display: block; }
.hidden { display: none !important; }
.result-label { font-size: 14px; color: #5f6368; margin-bottom: 12px; }
.result-price { font-size: 52px; font-weight: 800; color: #ea4335; margin-bottom: 15px; letter-spacing: -1px; }
.result-title { font-size: 18px; font-weight: 600; color: #202124; margin-bottom: 25px; }
.result-tip { font-size: 12px; color: #80868b; background: rgba(248,249,250,0.8); display: block; width: fit-content; margin: 0 auto 5px; padding: 6px 14px; border-radius: 20px; }

/* 随机横幅字样 */
.result-random-slogan { margin-top: 15px; font-size: 13px; color: #1a73e8; font-weight: bold; background: rgba(232, 240, 254, 0.8); display: block; width: fit-content; margin: 15px auto 0; padding: 8px 18px; border-radius: 20px; box-shadow: 0 4px 10px rgba(26,115,232,0.15); animation: pulse 2s infinite; }

/* 接口防刷警告与引流小字 */
.result-limit-tip { margin-top: 18px; font-size: 11px; color: #9aa0a6; line-height: 1.5; padding: 0 5px; letter-spacing: 0.5px; }
.result-limit-tip span { color: #ea4335; font-weight: bold; }

/* 版权文字 */
.footer-copyright { width: 100%; text-align: center; font-size: 12px; color: #bdc1c6; padding: 20px 0; margin-top: auto; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* 联系我们页面排版 */
.contact-section { background: #fff; margin: 15px; padding: 22px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.contact-section h2 { font-size: 17px; margin-bottom: 15px; color: #202124; border-bottom: 1.5px solid #f1f3f4; padding-bottom: 10px; }
.contact-section p { font-size: 14px; color: #5f6368; line-height: 1.7; }
.center-align { text-align: center; }

/* 回收流程视图层 */
.flow-chart { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 15px 0; }
.flow-step { background: #f8f9fa; padding: 12px 15px; border-radius: 10px; width: 100%; text-align: center; font-size: 14px; font-weight: 500; color: #3c4043; border: 1px solid #f1f3f4; }
.flow-step.highlight { background: #e8f0fe; color: #1a73e8; border-color: #d2e3fc; font-weight: bold; box-shadow: 0 2px 6px rgba(26,115,232,0.1); }
.flow-arrow { color: #dadce0; font-size: 18px; transform: scaleY(0.8); }

/* 二维码与专属联系底边 */
.qr-code { width: 160px; height: 160px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); margin: 15px 0; object-fit: cover; }
.address { font-size: 14px; color: #5f6368; margin-bottom: 12px; line-height: 1.6; font-weight: 500;}
.contact-phone { font-size: 18px; font-weight: bold; margin-bottom: 25px; }
.contact-phone a { color: #1a73e8; text-decoration: none; }
.footer-note { font-size: 12px; color: #9aa0a6; border-top: 1px dashed #eee; padding-top: 15px; margin-top: 5px; }
