/* 首页防伪查询（resources/views/welcome.blade.php）样式，结构对齐原站 h5 #/e 与 #/base */
/* 结构与样式对齐原站 h5：#/e 查询页（data-v-9fbdb442）与 #/base 结果页（data-v-46a4f077） */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.4; color: #2c3e50; background: #fff; -webkit-font-smoothing: antialiased; }
body.is-base { background: #f3f6fa; }
img { border: 0; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }

/* ───── 查询页 #/e ───── */
.box { width: 100%; max-width: 750px; min-height: 100vh; margin: 0 auto; background: #fff; }
.banner img { display: block; width: 100%; height: auto; }
.search_input { display: flex; margin: 20px; font-size: 16px; }
.search_input .col-15 { flex: 0 0 62.5%; padding-right: 5px; }
.search_input .col-9 { flex: 0 0 37.5%; padding-left: 5px; }
.input { -webkit-appearance: none; appearance: none; display: inline-block; width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; color: #606266; font: inherit; font-size: 16px; line-height: 35px; outline: none; transition: border-color .2s cubic-bezier(.645, .045, .355, 1); }
.input::placeholder { color: #c0c4cc; }
.input:focus { border-color: #409eff; }
.input:focus-visible { box-shadow: 0 0 0 2px rgba(64, 158, 255, .25); }
.search_btn { height: 40px; padding: 0 20px; }
.button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 3px; background: #409eff; color: #fff; font: inherit; font-size: 16px; line-height: 40px; text-align: center; cursor: pointer; }
.button:active { filter: brightness(.95); }
.button:focus-visible { outline: 2px solid #1f6fd0; outline-offset: 2px; }
.search_mode { padding: 40px 20px; }
.mode_box { padding: 10px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; }
.mode_box a { display: block; }
.mode_box img { display: block; max-width: 100%; height: auto; }

/* 扫码按钮：对齐原站 .search_input img（absolute; right:3px; 垂直居中; 30×30） */
.search-field { position: relative; }
.search-field .input { padding-right: 35px; }
.scan-btn { position: absolute; top: 50%; right: 3px; width: 30px; height: 30px; padding: 0; border: 0; background: none; transform: translateY(-50%); cursor: pointer; }
.scan-btn img { display: block; width: 30px; height: 30px; }
.scan-btn:focus-visible { outline: 2px solid #409eff; outline-offset: 1px; border-radius: 3px; }

/* 扫码取景层（原站为微信原生扫码界面，此处为最简全屏取景） */
.scanner { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; color: #fff; }
.scanner-reader { width: 100%; max-width: 480px; }
.scanner-reader video { display: block; width: 100% !important; }
.scanner-tip { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.scanner-close { position: absolute; top: 12px; left: 12px; padding: 8px 12px; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.scanner-close:focus-visible { outline: 2px solid #fff; }

/* 错误弹窗：原站 data-v-9fbdb442 .errorBase / .errorShow */
.errorBase { position: fixed; inset: 0; z-index: 1000000; background: rgba(0, 0, 0, .5); }
.errorShow { position: absolute; top: 50%; left: 50%; width: 90%; max-width: 675px; padding: 25px 15px; border-radius: 10px; background: #fff; font-size: 18px; word-wrap: break-word; transform: translate(-50%, -50%); }
.errorShow p { margin: 0; }

/* ───── 验证/结果页 #/base（原站 data-v-46a4f077 + 全局工具类） ───── */
.background-gray { position: relative; max-width: 750px; min-height: 100vh; margin: 0 auto; background: #f3f6fa; }
.baseBox { position: relative; width: 100%; padding: 12px 0; }
.card, .pic-card { margin: 0 12px 12px; border-radius: 8px; background: #fff; overflow: hidden; }
.card { padding: 12px; word-break: break-all; }
.card p { margin: 0; }
.font-big { font-size: 15px; }
.font-weight { font-weight: 700; }
.parse-font { font-size: 14px; }
.margin-top { margin: 14px 0 0; }
.margin-right { margin-right: 12px; }
.margin-bottom_twn { margin-bottom: 10px; }
.margin-small { margin-left: 8px; }
.display-center { display: flex; align-items: center; }
.flex-column { display: flex; flex-direction: column; justify-content: space-between; }
.flexd { flex: 1; min-width: 0; }
.text-center { text-align: center; }
.btn-padding { padding: 8px; }
.img { width: 45px; height: 45px; flex-shrink: 0; }
.img-result { width: 60px; height: 60px; object-fit: contain; }
.info-content { padding-bottom: 14px; }
.company-head { padding-bottom: 14px; }
.verify-row { margin-right: 5%; }
.verify-row .fwm-label { width: 60%; font-size: 14px; }
.verify-row .input { color: #2c3e50; font-size: 14px; }
.verify-btn { display: block; box-sizing: content-box; width: 100%; border: 0; border-radius: 0; background: #ffc940; color: #000b1a; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.verify-btn:active { filter: brightness(.95); }
.verify-btn:focus-visible { outline: 2px solid #000b1a; outline-offset: -4px; }
.fwm { font-size: 14px; color: #000b1a; }
.pic-card a, .pic-card img { display: block; width: 100%; }
.pic-card img { height: auto; }
/* 顶部轮播：对齐原站 yd-slider（3s 自动切换、无缝循环、图片原比例、垂直居中） */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; align-items: center; transition: transform .4s ease; }
.slider-item { flex: 0 0 100%; }
.slider-item img { width: 100%; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 5px; z-index: 2; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.slider-dots span { width: 6px; height: 6px; margin: 2px; border-radius: 100%; background: #b7d0e1; }
.slider-dots span.active { width: 14px; border-radius: 100px; background: #ff0005; }
/* 键盘焦点：卡片 overflow:hidden 会裁掉外描边，改为内描边 */
.slider-item:focus-visible, .pic-card a:focus-visible, .mode_box a:focus-visible { outline: 3px solid #409eff; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }

/* 轻提示：对齐原站 YDUI $dialog.toast（yd-dialog-white-mask / yd-toast） */
.yd-dialog-white-mask { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; pointer-events: none; visibility: hidden; }
.yd-dialog-white-mask.show { visibility: visible; }
.yd-toast { min-width: 124px; max-width: 80%; padding-top: 27px; border-radius: 3px; background: rgba(40, 40, 40, .85); color: #fff; text-align: center; animation: yd-kf-zoom-in .06s ease forwards; }
.yd-toast-none-icon { padding-top: 10px; }
.yd-toast-none-icon .yd-toast-content { padding: 0 36px 10px; }
.yd-toast-content { margin: 0; padding: 0 15px 22px; font-size: 14px; line-height: 22px; word-break: break-all; }
.yd-toast-error-icon { display: block; margin-bottom: 6px; }
.yd-toast-error-icon::after { content: ""; display: inline-block; width: 35px; height: 35px; background: url("../images/biocyte/toast-error.png") no-repeat; background-size: 35px 35px; }
@keyframes yd-kf-zoom-in { 0% { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .yd-toast { animation: none; } }
