* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: #333;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f5f5;
}

.card {
  background: #fff;
  border-radius: 10px;
}

.hidden {
  display: none !important;
}

.empty-state {
  padding: 28px 16px;
  color: #999;
  text-align: center;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}

.notice-bar img {
  width: 18px;
  height: 18px;
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 8px 0;
}

.shortcut-card {
  display: flex;
  justify-content: space-between;
  min-height: 90px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #366ef6;
  color: #fff;
  text-align: left;
}

.shortcut-title {
  font-size: 15px;
  font-weight: 600;
}

.shortcut-line {
  width: 40px;
  height: 5px;
  margin-top: 8px;
  border-radius: 8px;
  background: #fff;
}

.shortcut-btn {
  display: inline-block;
  margin-top: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #366ef6;
  font-size: 10px;
}

.shortcut-card img {
  align-self: flex-end;
  width: 72px;
}

.section {
  width: calc(100% - 16px);
  margin: 10px auto 0;
}

.blue-banner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(135deg, #4287f7 0%, #346af6 100%);
  color: #fff;
  font-size: 18px;
}

.blue-banner small {
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 15px 12px 8px;
  background: #fff;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-item {
  flex: none;
  padding: 4px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #333;
}

.tab-item.active {
  color: #307bfa;
  border-bottom-color: #307bfa;
}

.goods-list {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f5f7fb;
}

.goods-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 96, 194, 0.08);
}

.goods-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
}

.goods-card img {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
}

.goods-title {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.goods-head-main {
  min-width: 0;
}

.goods-meta {
  margin-top: 8px;
  color: #222;
  font-size: 13px;
}

.goods-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.goods-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f8ff;
  font-size: 12px;
}

.goods-badge.orange {
  background: #fff3e7;
  color: #ec8a1d;
}

.goods-badge.blue {
  background: #eef4ff;
  color: #307bfa;
}

.goods-badge.green {
  background: #edf8ea;
  color: #67a92f;
}

.goods-badge.solid {
  font-weight: 600;
}

.goods-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 12px;
}

.goods-metric {
  padding: 12px 6px 10px;
  text-align: center;
}

.goods-metric + .goods-metric {
  border-left: 1px solid #edf0f6;
}

.goods-metric strong {
  display: block;
  color: #2a5ff6;
  font-size: 18px;
  font-weight: 700;
}

.goods-metric:first-child strong {
  color: #ef2b2b;
}

.goods-metric span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.goods-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.goods-action {
  flex: none;
  min-width: 102px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4287f7 0%, #2f68f5 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 38px;
  text-align: center;
}

@media (max-width: 380px) {
  .goods-head {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .goods-card img {
    width: 112px;
    height: 112px;
  }

  .goods-metric strong {
    font-size: 16px;
  }

  .goods-metric span {
    font-size: 11px;
  }
}

.faq-card {
  padding: 16px 14px;
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
}

.faq-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.faq-q {
  font-weight: 600;
}

.faq-a {
  margin-top: 6px;
  color: #666;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100vw);
  transform: translateX(-50%);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 12px;
}

.bottom-nav img {
  width: 22px;
  height: 22px;
}

.hero-image,
.detail-image {
  display: block;
  width: min(430px, 100vw);
  margin: 0 auto;
}

.detail-panel {
  width: min(430px, 100vw);
  margin: -10px auto 0;
  padding-bottom: 28px;
  border-radius: 12px 12px 0 0;
  background: #2f7afa;
}

.detail-summary-card {
  width: calc(100% - 28px);
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 63, 151, 0.12);
}

.detail-header {
  color: #111827;
}

.back-link {
  color: #2f7afa;
  font-size: 13px;
}

.detail-name {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.detail-subtitle {
  margin-top: 6px;
  color: #222;
  font-size: 15px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.summary-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.summary-badge.orange {
  background: #fff3e7;
  color: #ec8a1d;
}

.summary-badge.green {
  background: #edf8ea;
  color: #67a92f;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #edf0f6;
  border-radius: 14px;
}

.detail-metric {
  padding: 14px 6px 12px;
  text-align: center;
}

.detail-metric + .detail-metric {
  border-left: 1px solid #edf0f6;
}

.detail-metric strong {
  display: block;
  color: #2a5ff6;
  font-size: 18px;
  font-weight: 700;
}

.detail-metric:first-child strong {
  color: #ef2b2b;
}

.detail-metric span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-tags-plain {
  margin-top: 14px;
}

.detail-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
}

.detail-tag.white {
  background: #fff;
  color: #2f7afa;
}

.detail-tag.plain {
  background: #eef4ff;
  color: #307bfa;
}

.detail-tip {
  margin: 0 16px 12px;
  color: #2f7afa;
  font-size: 11px;
}

.form-card {
  width: calc(100% - 28px);
  margin: 0 auto;
  padding: 18px 16px 16px;
  border-radius: 12px;
  background: #fff;
}

.form-item {
  margin-bottom: 12px;
}

.form-item label {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-size: 13px;
}

.form-item input,
.form-item textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: -2px 0 12px;
  color: #666;
  font-size: 12px;
}

.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f7afa;
}

.agreement {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  color: #666;
  font-size: 12px;
}

.submit-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 10px;
  border: 0;
  border-radius: 999px;
  background: #2f7afa;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .detail-metric strong {
    font-size: 16px;
  }

  .detail-metric span {
    font-size: 11px;
  }
}

.top-cover {
  display: block;
  width: 100%;
}

.center-note {
  width: 90%;
  margin: 8px auto 0;
  padding: 15px;
  text-align: center;
}

.qrcode-box {
  width: 160px;
  height: 160px;
  margin: 12px auto 0;
}

.qrcode-box img {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.wechat-text {
  margin-top: 16px;
  color: #666;
  font-size: 16px;
  text-align: center;
}

.fixed-primary-btn {
  position: fixed;
  left: 50%;
  bottom: 100px;
  width: min(388px, calc(100vw - 32px));
  padding: 15px 10px;
  border: 0;
  border-radius: 30px;
  background: #0055ff;
  color: #fff;
  font-size: 15px;
  transform: translateX(-50%);
}

.extra-card {
  width: 90%;
  margin: 18px auto 0;
  padding: 15px;
}

.extra-title {
  font-size: 15px;
  font-weight: 600;
}

.extra-text {
  margin-top: 10px;
  color: #666;
  white-space: pre-wrap;
}

.search-header {
  padding-top: 100px;
  margin-bottom: 14px;
}

.search-header img {
  display: block;
  width: 90%;
  margin: 0 auto;
}

.search-box {
  width: 80%;
  margin: 0 auto;
}

.search-box input,
.search-box button {
  width: 100%;
  height: 44px;
  border-radius: 999px;
}

.search-box input {
  padding: 0 18px;
  border: 0;
}

.search-box button {
  margin-top: 18px;
  border: 0;
  background: #2189fe;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.order-title {
  height: 44px;
  margin-top: 22px;
  line-height: 44px;
  text-align: center;
  background: #1960ff;
  color: #fff;
  font-size: 18px;
}

.order-item {
  margin: 12px 12px 0;
  padding: 16px 14px;
  border-radius: 12px;
  background: #fff;
}

.order-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.order-status {
  padding: 1px 6px;
  border-radius: 3px;
  background: #28d350;
  color: #fff;
  font-size: 12px;
}

.order-line {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

.dialog-mask.show {
  display: flex;
}

.dialog-card {
  width: min(680px, 100%);
  max-height: 70vh;
  padding: 18px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
}

.dialog-title {
  font-size: 18px;
  font-weight: 700;
}

.dialog-content {
  margin-top: 12px;
  color: #4b5563;
  white-space: pre-wrap;
}

.dialog-close {
  margin-top: 14px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #2f7afa;
  color: #fff;
}

.usage-notice-card {
  width: min(360px, calc(100vw - 48px));
  padding: 28px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f66ff 0%, #2d5bf0 100%);
  box-shadow: 0 18px 50px rgba(17, 44, 134, 0.28);
}

.usage-notice-title {
  margin-bottom: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.usage-notice-content {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
}

.usage-notice-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2f66ff;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .shortcut-row {
    grid-template-columns: 1fr;
  }

  .blue-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.legacy-number-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legacy-number-row input {
  flex: 1;
  min-width: 0;
}

.legacy-number-dialog {
  width: min(420px, calc(100vw - 32px));
}

.legacy-number-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.legacy-number-tip {
  color: #6b7280;
  font-size: 12px;
}

.legacy-number-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legacy-number-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.legacy-number-item strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.legacy-number-item span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

/* ===== synced from sq29-clone product detail ===== */
.sq-detail-page {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 92px;
  background: #f5f5f5;
}

.sq-detail-hero {
  position: relative;
}

.sq-detail-hero img {
  width: 100%;
  display: block;
}

.sq-detail-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(53, 103, 216, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sq-detail-summary {
  position: relative;
  z-index: 1;
  margin: -16px 10px 0;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.sq-summary-head {
  margin-bottom: 14px;
}

.sq-summary-name {
  color: #1f2937;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.sq-summary-subtitle {
  margin-top: 6px;
  color: #8a94a6;
  font-size: 14px;
  line-height: 1.5;
}

.sq-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e9dcc0;
  border-radius: 10px;
  overflow: hidden;
  background: #fbf7ea;
}

.sq-summary-metric {
  padding: 10px 6px 12px;
  text-align: center;
  border-right: 1px solid #e9dcc0;
}

.sq-summary-metric:last-child {
  border-right: none;
}

.sq-summary-metric span {
  display: block;
  color: #b1811f;
  font-size: 13px;
  line-height: 1.4;
}

.sq-summary-metric strong {
  display: block;
  margin-top: 8px;
  color: #a36f09;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.sq-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px;
}

.sq-detail-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #3567d8;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.sq-detail-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3567d8;
  color: #fff;
  font-size: 12px;
}

.sq-order-card,
.sq-tab-panel {
  margin: 0 10px 10px;
  border-radius: 12px;
  background: #fff;
}

.sq-order-card {
  padding: 14px 12px;
}

.sq-order-title,
.sq-order-dialog-title {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.sq-order-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  padding: 18px 14px 16px;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
}

.sq-order-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.sq-order-dialog .sq-order-dialog-title {
  padding-right: 28px;
  text-align: center;
  font-size: 22px;
}

.sq-order-section {
  margin-top: 14px;
}

.sq-order-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.sq-order-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3567d8;
  color: #fff;
  font-size: 12px;
}

.sq-order-tips {
  margin: 8px 0 0;
  color: #f54200;
  font-size: 14px;
}

.sq-order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sq-order-label {
  flex: none;
  width: 74px;
  color: #333;
  font-size: 14px;
}

.sq-order-control {
  flex: 1;
  min-width: 0;
}

.sq-order-control input,
.sq-order-control textarea {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  outline: none;
}

.sq-order-control textarea {
  resize: vertical;
  min-height: 70px;
  padding-top: 2px;
}

.sq-order-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sq-order-area-grid .sq-order-control {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fa;
}

.sq-order-area-grid .sq-order-control input {
  cursor: pointer;
}

.sq-order-area-grid .sq-order-control input.is-locked {
  color: #94a3b8;
  cursor: not-allowed;
}

.sq-address-picker {
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #fff;
  overflow: hidden;
  align-self: flex-end;
  margin-top: auto;
}

.dialog-mask.address-picker-open {
  z-index: 60;
  align-items: flex-end;
  padding: 0;
}

.sq-address-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.sq-address-picker-head strong {
  color: #111827;
  font-size: 17px;
}

.sq-address-picker-head button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
}

.sq-address-picker-list {
  flex: 1;
  min-height: 240px;
  max-height: 55vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
}

.sq-address-picker-item {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 15px;
  text-align: left;
}

.sq-address-picker-item.active {
  color: #3567d8;
  font-weight: 700;
  background: #f5f8ff;
}

.sq-address-picker-empty {
  padding: 28px 16px;
  color: #94a3b8;
  text-align: center;
}

.sq-order-area-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.sq-inline-btn {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3567d8;
  font-size: 13px;
}

.sq-order-agreement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: #666;
  font-size: 12px;
}

.sq-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0063ff;
  font-size: 12px;
}

.sq-submit-btn {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: #3567d8;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.sq-detail-tabs {
  display: flex;
  justify-content: space-around;
  margin: 10px 10px 0;
}

.sq-tab-btn {
  position: relative;
  flex: 1;
  padding: 14px 16px;
  border: 0;
  background: #f5f5f5;
  color: #000;
  font-size: 16px;
}

.sq-tab-btn:first-child {
  border-top-left-radius: 10px;
}

.sq-tab-btn:last-child {
  border-top-right-radius: 10px;
}

.sq-tab-btn.active {
  color: #3567d8;
  font-weight: 700;
  background: #fff;
}

.sq-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #3567d8 transparent transparent;
}

.sq-tab-panel {
  display: none;
  padding: 0;
  overflow: hidden;
}

.sq-tab-panel.active {
  display: block;
}

.sq-auto-plan-card {
  padding: 14px 12px 0;
}

.sq-auto-plan-shell {
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 10, 28, 0.96) 0%, rgba(19, 33, 76, 0.96) 62%, rgba(69, 21, 63, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sq-auto-plan-panel {
  padding: 24px 24px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.sq-auto-plan-title {
  margin-bottom: 18px;
  color: #111827;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
}

.sq-auto-plan-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.35);
}

.sq-auto-plan-row span {
  color: #111827;
  font-size: 18px;
}

.sq-auto-plan-row strong {
  color: #df1a1a;
  font-size: 28px;
  font-weight: 700;
  justify-self: center;
}

.sq-auto-plan-row strong.small {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.sq-auto-plan-row em {
  color: #374151;
  font-size: 15px;
  font-style: normal;
}

.sq-auto-plan-subtitle {
  margin-top: 16px;
  color: #e85a5a;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.sq-auto-plan-notes {
  margin-top: 10px;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
}

.sq-auto-plan-notes p {
  margin: 0;
}

.sq-auto-plan-notes p + p {
  margin-top: 8px;
}

.sq-detail-poster img {
  width: 100%;
  display: block;
}

.sq-detail-fallback {
  padding: 16px;
  color: #4b5563;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
}

.sq-info-box {
  padding: 14px 14px 10px;
}

.sq-info-box + .sq-info-box {
  border-top: 1px solid #f3f4f6;
}

.sq-info-title {
  position: relative;
  padding: 0 0 0 14px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.sq-info-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 4px 0 4px;
  border-color: #3567d8 transparent transparent transparent;
}

.sq-info-content {
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.sq-info-link {
  color: #3567d8;
  font-weight: 600;
  text-decoration: none;
}

.sq-info-link:hover {
  text-decoration: underline;
}

.sq-faq-list {
  padding: 10px;
}

.sq-faq-item + .sq-faq-item {
  margin-top: 8px;
}

.sq-faq-question {
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  text-align: left;
}

.sq-faq-question strong {
  margin-right: 6px;
  color: #3567d8;
}

.sq-faq-answer {
  display: none;
  padding: 0 12px 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.sq-faq-answer.show {
  display: block;
}

.sq-fixed-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(430px, 100vw);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.08);
}

.sq-fixed-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sq-fixed-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  color: #111827;
  font-size: 12px;
  line-height: 1.4;
}

.sq-fixed-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #edf3ff;
  color: #3567d8;
  font-size: 15px;
}

.sq-fixed-link-icon-image {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  object-fit: contain;
}

.sq-fixed-link strong {
  font-size: 12px;
  font-weight: 600;
}

.sq-fixed-btn {
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(210deg, #3462d2 0%, #579dff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.sq-share-dialog {
  width: min(340px, calc(100vw - 40px));
  padding: 18px;
  border-radius: 14px;
  background: #fff;
}

.sq-share-image {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
}

.sq-share-link {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

.sq-share-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 380px) {
  .sq-detail-actions {
    grid-template-columns: 1fr;
  }

  .sq-order-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sq-order-label {
    width: auto;
  }

  .sq-order-area-grid {
    grid-template-columns: 1fr;
  }

  .sq-detail-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .sq-fixed-links {
    gap: 8px;
  }

  .sq-fixed-link {
    min-width: 54px;
  }

  .sq-order-dialog {
    width: calc(100vw - 20px);
    max-height: 88vh;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sq-auto-plan-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sq-auto-plan-title {
    font-size: 24px;
  }

  .sq-auto-plan-row {
    grid-template-columns: 48px 1fr auto;
  }

  .sq-auto-plan-row span {
    font-size: 16px;
  }

  .sq-auto-plan-row strong {
    font-size: 24px;
  }

  .sq-auto-plan-row strong.small {
    font-size: 15px;
  }

  .sq-tab-btn {
    flex: 0 0 calc(33.333% - 3px);
    padding-left: 8px;
    padding-right: 8px;
  }
}

.sq-number-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-number-control input[type="text"] {
  flex: 1;
  min-width: 0;
}

.sq-number-dialog {
  width: min(420px, calc(100vw - 32px));
}

.sq-number-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.sq-number-tip {
  color: #6b7280;
  font-size: 12px;
}

.sq-number-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sq-number-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.sq-number-item strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.sq-number-item span {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}
