* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.status-bar {
  height: 44px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 12px;
  color: #000;
  flex-shrink: 0;
}
.nav-bar {
  height: 44px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.nav-bar .back {
  position: absolute;
  left: 12px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}
.nav-bar .title { font-size: 17px; font-weight: 600; }
.page-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.has-tabbar .page-body { padding-bottom: 70px; }
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 100;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #999;
  font-size: 10px;
  gap: 2px;
}
.tabbar a.active { color: #07c160; }
.tabbar .icon { font-size: 22px; }
.banner {
  height: 140px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.card {
  background: #fff;
  border-radius: 8px;
  margin: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-row input {
  flex: 1;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}
.input-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-stack input {
  width: 100%;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}
.input-stack .btn-primary {
  width: 100%;
}
.query-history {
  display: none;
}
.query-history.has-items {
  display: block;
}
.query-history-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.query-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.query-history-chip {
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.query-history-chip:active {
  background: #e8f8ef;
  border-color: #07c160;
  color: #07c160;
}
.btn-primary {
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:disabled { background: #b8e6c8; cursor: not-allowed; }
.btn-block {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
}
.btn-outline {
  background: #fff;
  color: #07c160;
  border: 1px solid #07c160;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.quick-item {
  padding: 12px 8px;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}
.quick-item .qi-icon { font-size: 28px; margin-bottom: 4px; }
.quick-item .qi-text { font-size: 12px; }
.steps { display: flex; justify-content: space-between; gap: 8px; }
.step-item { flex: 1; text-align: center; font-size: 12px; color: #666; }
.step-num {
  width: 28px; height: 28px;
  background: #07c160; color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
}
.carrier-banner {
  margin: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  padding: 16px;
}
.carrier-banner .banner-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.carrier-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.carrier-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  cursor: pointer;
}
.carrier-chip.active {
  background: #fff;
  color: #07c160;
  font-weight: 600;
  border-color: #fff;
}
.carrier-banner-entry {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #07c160;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.carrier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.carrier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.carrier-card-list {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.carrier-card-list:last-child { border-bottom: none; }
.carrier-logo {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.carrier-logo.mobile { background: #0066cc; }
.carrier-logo.unicom { background: #e60012; }
.carrier-logo.telecom { background: #003399; }
.carrier-logo.radio { background: #5c2d91; }
.carrier-info { flex: 1; }
.carrier-name { font-weight: 600; font-size: 15px; }
.carrier-desc { font-size: 12px; color: #999; margin-top: 2px; }
.carrier-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.carrier-card-actions a,
.carrier-card-actions button {
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}
.carrier-card-actions .btn-outline {
  margin-top: 0;
}
.carrier-coming-soon {
  width: 100%;
  padding: 10px 8px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  background: #f5f5f5;
  border-radius: 6px;
}
.list-item {
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all .2s;
}
.list-item.selected {
  border-color: #07c160;
  background: #f0fff4;
}
.list-item .meta { font-size: 12px; color: #888; margin-top: 4px; }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-title-row .card-title { margin-bottom: 0; }
.btn-text-link {
  background: none;
  border: none;
  color: #07c160;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.btn-text-link:disabled { color: #ccc; cursor: not-allowed; }
.number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.number-grid .number-item {
  padding: 12px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  transition: all .2s;
}
.number-grid .number-item.selected {
  border-color: #07c160;
  background: #f0fff4;
}
.number-grid .number-item .tag { margin-left: 4px; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
  margin-left: 6px;
}
.tag.done { background: #e8f5e9; color: #2e7d32; }
.fixed-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 50;
}
.has-fixed-bottom .page-body { padding-bottom: 70px; }
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
}
.modal h3 { font-size: 17px; text-align: center; margin-bottom: 16px; }
.modal-warn {
  background: #fff7e6;
  border: 1px solid #ffb020;
  color: #d46b08;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 12px 0;
}
.modal-actions { display: flex; gap: 12px; margin-top: 16px; }
.modal-actions button { flex: 1; height: 40px; border-radius: 6px; border: none; font-size: 15px; cursor: pointer; }
.modal-actions .cancel { background: #f5f5f5; color: #666; }
.modal-actions .confirm { background: #07c160; color: #fff; }
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.copy-row .label { color: #888; font-size: 13px; }
.copy-row .value { font-weight: 600; flex: 1; margin: 0 8px; word-break: break-all; }
.copy-btn { color: #07c160; font-size: 13px; cursor: pointer; border: none; background: none; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.qr-box { text-align: center; }
.qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #999;
}
.qr-label { font-size: 12px; color: #666; margin-top: 6px; }
.qr-save-btn {
  margin-top: 8px;
  width: 100%;
  padding: 6px 0;
  font-size: 12px;
  color: #07c160;
  background: #fff;
  border: 1px solid #07c160;
  border-radius: 6px;
  cursor: pointer;
}
.toast {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
}
.toast.show { display: block; }
.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid #eee; background: #fff; }
.tab {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active { color: #07c160; border-bottom-color: #07c160; font-weight: 600; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-q {
  padding: 14px 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.faq-a {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }
.guide-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.guide-carrier-bar {
  background: #fff;
  padding: 12px 12px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.guide-carrier-tabs {
  display: flex;
  gap: 0;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
}
.guide-carrier-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
}
.guide-carrier-tab.active {
  background: #fff;
  color: #07c160;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.guide-empty {
  display: none;
  margin: 12px;
  padding: 48px 24px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}
.guide-empty.show {
  display: block;
}
.guide-empty-title {
  font-size: 15px;
  color: #999;
  line-height: 1.6;
}
.guide-video-player {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.guide-video-player video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  vertical-align: top;
  background: #111;
}
.guide-step .num {
  width: 24px; height: 24px;
  background: #07c160; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.section-hidden { display: none !important; }
.service-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: #f9f9f9; border-radius: 8px;
  margin-bottom: 10px; cursor: pointer; border: none; width: 100%; text-align: left; font-size: 14px;
}
.phone-link { color: #07c160; font-weight: 600; text-decoration: none; }
.bound-order-card {
  padding: 14px;
  border: 1px solid #e8f5e9;
  border-radius: 8px;
  background: #f0fff4;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s;
}
.bound-order-card:last-child { margin-bottom: 0; }
.bound-order-card:active { border-color: #07c160; }
.bound-order-card .bo-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.bound-order-card .bo-phone { font-size: 16px; color: #07c160; font-weight: 600; margin: 6px 0; }
.bound-order-card .bo-meta { font-size: 12px; color: #888; }
.bound-order-section.hidden { display: none; }
