* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; background: #f3f6fb; color: #172033; }
header { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 10vw; background: #fff; border-bottom: 1px solid #e7edf5; }
header a { color: #2563eb; text-decoration: none; }
main { width: min(1080px, 92vw); margin: 32px auto; display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid #e1e8f2; border-radius: 8px; padding: 22px; box-shadow: 0 10px 30px rgba(20, 42, 80, .06); }
.narrow { max-width: 420px; margin: 15vh auto; }
h1, h2 { margin: 0 0 16px; }
.muted { color: #697589; }
.notice { padding: 12px 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; margin: 12px 0; }
.error { padding: 10px 12px; color: #b91c1c; background: #fee2e2; border-radius: 6px; margin-bottom: 12px; }
form { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
label { display: grid; gap: 6px; color: #4b5563; }
select, input, textarea { border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 10px; font: inherit; }
select, input { height: 40px; min-width: 220px; }
textarea { width: 100%; padding: 10px; resize: vertical; }
button { height: 40px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; padding: 0 18px; cursor: pointer; }
.result { margin-top: 16px; white-space: pre-wrap; }
.quote { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid div { border: 1px solid #e5e7eb; border-radius: 6px; padding: 14px; display: grid; gap: 6px; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); align-items: start; }
.settings-form .wide, .settings-form .actions { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.check-row input { min-width: 0; width: 18px; height: 18px; }
.inline-form { margin-top: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #e5e7eb; padding: 10px; vertical-align: top; }
@media (max-width: 700px) {
  header { padding: 0 5vw; }
  select, input, button { width: 100%; min-width: 0; }
  form { display: grid; }
  .settings-form { grid-template-columns: 1fr; }
}

.store-body { background: #e9edf4; overflow: hidden; }
.store-shell { width: min(100%, 1180px); height: 100dvh; margin: 0; padding: 16px; display: grid; grid-template-rows: minmax(0, 1fr); gap: 16px; }
.store-card { background: #f6f8fb; min-height: 0; height: 100%; box-shadow: 0 16px 50px rgba(15, 38, 80, .12); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.store-hero { min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: #2475d1; color: #fff; border-radius: 0 0 14px 14px; }
.store-hero strong { display: block; font-size: 20px; line-height: 1.25; }
.store-hero span { display: block; margin-top: 4px; font-weight: 700; }
.store-hero a { margin-left: auto; color: #fff; text-decoration: none; font-size: 14px; opacity: .9; }
.brand-mark { width: 64px; height: 40px; display: grid; place-items: center; border-radius: 5px; background: #3aa1f2; font-size: 28px; font-weight: 800; }
.store-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 22px 24px 8px; }
.tab { height: 42px; color: #0d5bbb; background: #fff; border-radius: 8px; font-weight: 700; }
.tab.active { color: #0e356f; background: transparent; border-bottom: 2px solid #ff7b36; border-radius: 0; }
.tab:disabled { opacity: .75; }
.step-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 8px; }
.step-head h1 { margin: 0; font-size: 21px; }
.icon-btn { width: auto; height: 34px; padding: 0 12px; border-radius: 18px; background: #e7f2ff; color: #1f7ae0; }
.country-bar { padding: 0 24px 12px; }
.country-bar label { color: #49617f; font-size: 14px; }
.country-bar select { width: 100%; height: 42px; margin-top: 6px; background: #fff; }
.search-box { margin: 0 24px 16px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; background: #fff; border: 2px solid #2794ff; border-radius: 25px; }
.search-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #1673db; background: #e8f3ff; border-radius: 50%; font-size: 22px; }
.search-box input { min-width: 0; width: 100%; border: 0; padding: 0; outline: 0; background: transparent; font-size: 16px; }
.store-workspace { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(360px, 440px) minmax(420px, 1fr); gap: 18px; padding: 0 24px 18px; overflow: hidden; }
.service-column, .offer-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #f6f8fb; }
.service-list { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.service-row { width: 100%; min-height: 58px; height: auto; display: grid; grid-template-columns: 28px 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-bottom: 1px solid #edf1f6; border-radius: 0; background: #fff; color: #07152b; text-align: left; cursor: pointer; }
.service-row:hover { background: #f7fbff; }
.service-row:last-child { border-bottom: 0; }
.favorite { color: #33567d; font-size: 25px; line-height: 1; }
.app-badge { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: hsl(var(--badge-hue), 78%, 53%); color: #fff; font-size: 15px; font-weight: 800; }
.service-title { min-width: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.service-title small { display: block; margin-top: 3px; color: #5f6f85; font-size: 12px; font-weight: 500; }
.service-meta { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.service-meta b { font-size: 18px; }
.service-meta small { color: #00a23d; font-size: 12px; }
.show-all { display: block; flex: 0 0 auto; margin: 14px auto 0; width: auto; background: transparent; color: #1f73d4; }
.empty-state { padding: 18px; color: #6b7890; text-align: center; }
.selected-panel { flex: 0 0 auto; margin: 14px 0 0; }
.offer-panel { padding-top: 0; }
.step-head.compact { padding-top: 20px; }
.selected-summary { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #dce6f3; border-radius: 12px; }
.selected-summary strong, .selected-summary span { display: block; }
.selected-summary span, .summary-price small { color: #68758a; font-size: 13px; }
.summary-price { display: grid; justify-items: end; gap: 3px; }
.summary-price b { font-size: 22px; }
.wide-btn { width: 100%; margin-top: 12px; }
.order-card { display: none; margin: 0 12px; background: #fff; border: 1px solid #e1e8f2; border-radius: 8px; padding: 18px; }
.order-card form { display: grid; grid-template-columns: 1fr auto; }
.order-card input { min-width: 0; width: 100%; }
@media (min-width: 900px) {
  html, body.store-body { width: 100%; height: 100%; overflow: hidden; }
  .store-body { background: #e5ebf4; }
  .store-shell {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 16px;
    bottom: 16px;
    width: min(1180px, 66.666vw);
    min-width: 860px;
    margin: 0;
    padding: 0;
    height: auto;
    display: grid;
  }
  .store-card {
    height: 100%;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .store-hero { border-radius: 0 0 14px 14px; }
  .store-tabs { flex: 0 0 auto; }
  .step-head,
  .search-box,
  .show-all,
  .selected-panel { flex: 0 0 auto; }
  .service-column > .service-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9cb7d9 #eef4fb;
  }
  .offer-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .offer-panel .step-head { flex: 0 0 auto; }
  .offer-panel .service-list {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    margin-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .service-list::-webkit-scrollbar { width: 9px; }
  .service-list::-webkit-scrollbar-track { background: #eef4fb; border-radius: 10px; }
  .service-list::-webkit-scrollbar-thumb { background: #9cb7d9; border-radius: 10px; border: 2px solid #eef4fb; }
  .order-card { display: none; }
}
@media (max-width: 899px) {
  html, body.store-body { height: 100%; overflow: hidden; }
  .store-shell { position: fixed; inset: 0; width: 100%; height: 100dvh; padding: 0; }
  .store-card { border-radius: 0; box-shadow: none; }
  .store-workspace { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 14px; }
  .service-column { min-height: 0; }
  .service-column > .service-list { flex: 1 1 42dvh; min-height: 150px; overflow-y: auto; scrollbar-width: thin; }
  .offer-panel { min-height: 0; }
  .offer-panel .service-list { flex: 1 1 28dvh; min-height: 130px; overflow-y: auto; scrollbar-width: thin; }
  .order-card { display: none; }
}
@media (max-width: 460px) {
  .store-tabs { gap: 6px; padding-left: 16px; padding-right: 16px; }
  .step-head, .country-bar { padding-left: 16px; padding-right: 16px; }
  .search-box { margin-left: 16px; margin-right: 16px; }
  .service-row { grid-template-columns: 24px 30px 1fr auto; gap: 8px; padding: 8px 10px; }
  .service-title { font-size: 16px; }
  .service-meta b { font-size: 16px; }
}
