:root {
  color: #252a32;
  background: #eaf1f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #eaf1f3; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.app-shell {
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
  background: #f2f7f8;
  box-shadow: 0 0 28px rgba(31, 52, 65, .12);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 44px;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  background: #0b91ee;
}

.topbar-title { display: grid; overflow: hidden; justify-items: center; text-align: center; font-size: 18px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.topbar-logo-image { width: 104px; height: 30px; object-fit: contain; }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; color: inherit; background: transparent; font-size: 23px; }
.icon-button.service { font-size: 24px; }

.hero { position: relative; overflow: hidden; padding: 0 10px 10px; background: #0b91ee; }
.hero img { width: 100%; aspect-ratio: 18 / 7; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 18px rgba(0, 99, 180, .25); }
.section { margin: 10px; overflow: hidden; border-radius: 8px; background: #fff; }
.section-title { margin: 0; padding: 14px 16px; border-bottom: 1px solid #edf0f2; text-align: center; font-size: 16px; font-weight: 500; }
.section-footer { display: block; padding: 14px; border-top: 1px solid #edf0f2; color: #0b91ee; text-align: center; font-size: 14px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; padding: 16px 8px 18px; }
.category-link { display: grid; justify-items: center; gap: 8px; min-width: 0; color: #60656d; font-size: 13px; }
.category-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 5px 10px rgba(42, 62, 72, .18); }
.category-icon .iconfont { font-size: 31px; }
.category-label { width: 100%; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.city-icon { background: #b45d51; }
.city-icon .iconfont { font-size: 28px; }
.digital-icon { background: #f5aa00; }

.notice { display: grid; grid-template-columns: 64px 1fr 18px; align-items: center; min-height: 52px; padding: 0 12px; }
.notice strong img { width: 58px; height: auto; }
.notice span { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.chevron { color: #c5cbd0; font-size: 22px; }

.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hot-card { min-width: 0; padding: 14px 6px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; text-align: center; }
.hot-card:nth-child(3n) { border-right: 0; }
.hot-card img { width: 68px; height: 42px; margin: 0 auto 8px; object-fit: contain; }
.hot-card strong, .hot-card span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-card strong { font-size: 13px; font-weight: 500; }
.hot-card span { margin-top: 4px; color: #ef4056; font-size: 12px; }

.tabs { position: sticky; z-index: 15; top: 44px; display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #e6eaed; background: #fff; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-width: 64px; padding: 14px 12px 11px; border: 0; border-bottom: 3px solid transparent; color: #616771; background: #fff; }
.tab.active { border-bottom-color: #0b91ee; color: #0b91ee; }
.catalog-tools { padding: 10px; background: #fff; }
.search { width: 100%; height: 40px; padding: 0 14px; border: 1px solid #dfe5e9; border-radius: 6px; outline: 0; background: #f6f8f9; }
.search:focus { border-color: #0b91ee; background: #fff; }

.card-list { margin: 10px; overflow: hidden; border-radius: 8px; background: #fff; }
.card-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 22px; align-items: center; min-height: 82px; padding: 10px 14px; border-bottom: 1px solid #edf0f2; }
.card-row:last-child { border-bottom: 0; }
.card-row img { width: 64px; height: 44px; object-fit: contain; }
.card-row-copy { min-width: 0; }
.card-row h3 { margin: 0; overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.card-row p { margin: 7px 0 0; color: #ef4056; font-size: 14px; }
.empty { padding: 46px 20px; color: #89919a; text-align: center; }

.detail-head { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 20px 18px; background: #fff; }
.detail-head img { width: 88px; height: 60px; object-fit: contain; }
.card-art-placeholder { display: grid; width: 88px; height: 60px; place-items: center; border: 1px solid #dce8ed; border-radius: 6px; color: #0b91ee; background: #eef7fa; font-size: 14px; font-weight: 600; }
.detail-head h1 { margin: 0 0 8px; font-size: 20px; }
.detail-head p { margin: 0; color: #ef4056; }
.form-section { margin: 10px; padding: 16px; border-radius: 8px; background: #fff; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; margin-bottom: 10px; color: #4b525b; font-size: 14px; }
.segmented, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.segment, .chip { min-width: 72px; height: 38px; padding: 0 14px; border: 1px solid #d9e0e4; border-radius: 5px; color: #4c535b; background: #fff; }
.segment.active, .chip.active { border-color: #0b91ee; color: #0b91ee; background: #eef8ff; }
.text-input, .textarea, .select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dce2e6; border-radius: 5px; outline: 0; background: #fff; }
.text-input.invalid { border-color: #ef4056; background: #fff8f9; }
.field-error { margin: 6px 0 0; color: #ef4056; font-size: 12px; }
.textarea { min-height: 100px; resize: vertical; }
.quantity { display: inline-grid; grid-template-columns: 40px 52px 40px; height: 38px; }
.quantity button, .quantity output { display: grid; place-items: center; border: 1px solid #dce2e6; background: #fff; }
.quantity button:first-child { border-radius: 5px 0 0 5px; }
.quantity button:last-child { border-radius: 0 5px 5px 0; }
.quantity output { border-right: 0; border-left: 0; }
.estimate { display: flex; justify-content: space-between; margin: 16px 0; padding: 14px 0; border-top: 1px solid #edf0f2; color: #626870; }
.estimate strong { color: #ef4056; font-size: 20px; }
.primary-button { width: 100%; height: 46px; border: 0; border-radius: 6px; color: #fff; background: #0b91ee; font-size: 16px; font-weight: 600; }
.primary-button:active { background: #087bc9; }
.detail-notes { margin: 10px; padding: 16px 18px; border-radius: 8px; background: #fff; }
.detail-notes h2 { margin: 0 0 12px; font-size: 16px; }
.detail-notes ol { margin: 0; padding-left: 20px; color: #6a717a; font-size: 14px; line-height: 1.8; }

.help-menu { margin: 10px; overflow: hidden; border-radius: 8px; background: #fff; }
.help-link { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; min-height: 72px; padding: 8px 14px; border-bottom: 1px solid #edf0f2; }
.help-link:last-child { border-bottom: 0; }
.help-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 5px; color: #fff; font-weight: 600; }
.article { margin: 10px; padding: 20px 18px; border-radius: 8px; background: #fff; }
.article h1 { margin: 0 0 18px; font-size: 21px; }
.article p, .article li { color: #5d646d; font-size: 15px; line-height: 1.8; }
.steps-list { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 34px 1fr; align-items: center; counter-increment: step; }
.steps-list li::before { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #0b91ee; content: counter(step); }
.faq-item { border-bottom: 1px solid #edf0f2; }
.faq-question { display: grid; grid-template-columns: 1fr 24px; width: 100%; padding: 15px 0; border: 0; text-align: left; background: #fff; }
.faq-answer { display: none; margin: 0 0 16px; color: #69717b; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .chevron { transform: rotate(90deg); }

.store-hero { padding: 28px 18px 22px; color: #fff; background: #0b91ee; }
.store-hero h1 { margin: 0 0 8px; font-size: 25px; }
.store-hero p { margin: 0 0 20px; opacity: .82; }
.city-picker { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 7px; color: #252a32; background: #fff; }
.city-picker select { border: 0; outline: 0; background: transparent; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.store-card { min-width: 0; padding: 14px 8px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; text-align: center; }
.store-card:nth-child(3n) { border-right: 0; }
.store-card img { width: 64px; height: 44px; margin: auto; object-fit: contain; }
.store-card .card-art-placeholder { width: 64px; height: 44px; margin: auto; font-size: 12px; }
.store-card span { display: block; margin-top: 8px; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

.bottom-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 480px); height: calc(58px + env(safe-area-inset-bottom)); margin: auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e1e6e9; background: rgba(255,255,255,.98); }
.nav-item { display: grid; align-content: center; justify-items: center; gap: 3px; color: #646b73; font-size: 12px; }
.nav-item .iconfont { height: 22px; font-size: 22px; line-height: 22px; }
.nav-item.active { color: #0b91ee; }

.auth-shell { padding-bottom: 0; background: #fff; }
.auth-page { min-height: calc(100dvh - 44px); padding: 30px; background: #fff; }
.auth-login { padding-top: 42px; }
.auth-brand { width: 200px; height: 58px; margin: 0 auto 40px; object-fit: contain; }
.auth-brand-small { width: 170px; height: 50px; margin-bottom: 32px; }
.auth-form { display: grid; gap: 20px; margin-top: 26px; }
.auth-login .auth-form { margin-top: 0; }
.auth-input { width: 100%; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 24px; outline: 0; color: #333941; background: #f3f6f7; }
.auth-input::placeholder { color: #a9afb3; }
.auth-input:focus { border-color: #89c9f5; background: #fff; }
.auth-password-field { position: relative; display: block; }
.auth-password-field .auth-input { padding-right: 54px; }
.auth-eye { position: absolute; top: 0; right: 8px; display: grid; width: 40px; height: 44px; place-items: center; border: 0; background: transparent; }
.auth-eye::before { width: 18px; height: 10px; border: 2px solid #c4ccd0; border-radius: 50%; content: ""; }
.auth-eye::after { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #c4ccd0; content: ""; }
.auth-eye.visible::before { border-color: #0b91ee; }
.auth-eye.visible::after { background: #0b91ee; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid transparent; border-radius: 24px; background: #f3f6f7; }
.auth-code-row:focus-within { border-color: #89c9f5; background: #fff; }
.auth-code-row .auth-input { min-width: 0; border: 0; background: transparent; }
.auth-code-row button { height: 44px; padding: 0 18px 0 10px; border: 0; color: #0b91ee; background: transparent; white-space: nowrap; }
.auth-code-row button:disabled { color: #9ba4a9; }
.auth-captcha { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 12px 0 15px; border: 1px solid #c7cdd1; border-radius: 24px; color: #747b80; background: #fff; text-align: left; }
.captcha-dot { width: 12px; height: 12px; margin-right: 16px; border-radius: 50%; background: #aebfcd; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.captcha-reset { margin-left: auto; color: #9cabb2; font-size: 27px; font-style: normal; line-height: 1; }
.auth-captcha.verified { border-color: #28d474; color: #159e52; }
.auth-captcha.verified .captcha-dot { background: #28d474; }
.auth-captcha.verified .captcha-reset { color: #28d474; }
.auth-primary { width: 100%; height: 44px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(90deg, #42ec6e, #20d071); box-shadow: 0 8px 16px rgba(32, 208, 113, .2); font-size: 16px; }
.auth-primary:active { filter: brightness(.96); }
.auth-help-links, .auth-switch-link { display: flex; justify-content: center; gap: 8px; margin-top: 20px; color: #999fa3; font-size: 14px; }
.auth-help-links a, .auth-switch-link a, .auth-agreement a { color: #0b91ee; }
.auth-agreement { margin-top: 18px; color: #a1a7ab; text-align: center; font-size: 12px; line-height: 1.7; }
.auth-agreement p { margin: 0; }
.auth-signup { padding-top: 30px; }
.auth-signup .auth-form { margin-top: 0; }
.password-strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 140px; margin: 7px auto -10px; }
.password-strength span { height: 3px; background: #e4e7e9; }
.password-strength[data-level="1"] span:nth-child(1) { background: #f15b64; }
.password-strength[data-level="2"] span:nth-child(-n+2) { background: #f0ad32; }
.password-strength[data-level="3"] span { background: #28d474; }
.auth-forgot { padding-top: 38px; }

.service-sheet { position: fixed; z-index: 40; inset: 0; display: none; align-items: end; background: rgba(16, 27, 34, .45); }
.service-sheet.open { display: flex; }
.sheet-panel { width: min(100%, 480px); margin: 0 auto; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.sheet-group { overflow: hidden; margin-top: 8px; border-radius: 8px; background: #fff; }
.sheet-title, .sheet-action { display: block; width: 100%; padding: 15px; border: 0; border-bottom: 1px solid #edf0f2; text-align: center; background: #fff; }
.sheet-title { color: #90979f; font-size: 13px; }
.sheet-action:last-child { border-bottom: 0; }
.toast { position: fixed; z-index: 60; right: 20px; bottom: 82px; left: 20px; width: fit-content; max-width: 360px; margin: auto; padding: 11px 16px; border-radius: 6px; color: #fff; background: rgba(22, 31, 38, .92); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100dvh - 36px); }
  .bottom-nav { bottom: 18px; }
}

@media (max-width: 360px) {
  .auth-page { padding-right: 20px; padding-left: 20px; }
}
