.tk-sg {
  max-width: 720px; margin: 24px auto; padding: 22px;
  border: 1px solid #e2e8f2; border-radius: 16px; background: #fff;
  font-size: 15px; color: #1b2740;
}
.tk-sg-head { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.tk-sg-calc {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: #f5f8fd; border: 1px solid #e2e8f2; border-radius: 12px;
  padding: 16px; margin-bottom: 20px;
}
.tk-sg-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #5b6b86; }
.tk-sg-calc input, .tk-sg-calc select {
  border: 1px solid #d5ddea; border-radius: 9px; padding: 10px 12px; font-size: 15px;
  background: #fff; color: #1b2740; outline: none;
}
.tk-sg-calc input:focus, .tk-sg-calc select:focus { border-color: #1b47a0; }
#tk-sg-go {
  grid-column: 1 / -1; border: 0; cursor: pointer; border-radius: 10px;
  background: #0f2a5c; color: #fff; font-size: 15px; font-weight: 600; padding: 13px;
  transition: background .15s;
}
#tk-sg-go:hover { background: #1a4a94; }
.tk-sg-out { grid-column: 1 / -1; min-height: 22px; font-size: 14px; color: #7a8399; }
.tk-sg-out--ok { color: #0b7a44; }
.tk-sg-big { font-size: 22px; padding: 0 4px; }
.tk-sg-sub { color: #5b6b86; font-size: 12.5px; }

.tk-sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-sg-table th, .tk-sg-table td { border-bottom: 1px solid #eef1f7; padding: 9px 8px; text-align: center; }
.tk-sg-table th { background: #f5f8fd; color: #5b6b86; font-weight: 600; font-size: 12.5px; }

.tk-sg-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #fff8ec; border: 1px solid #f5e2c0; color: #8a6320; font-size: 13px; line-height: 1.6;
}

@media (max-width: 620px) {
  .tk-sg-calc { grid-template-columns: 1fr; }
  .tk-sg-table { font-size: 12.5px; }
}

/* 商品页:尺码助手按钮 + 弹层 */
.tk-sg-open {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #cfd9e8; border-radius: 9px; background: #fff;
  color: #0f2a5c; font-size: 14px; font-weight: 600;
  padding: 9px 14px; margin: 6px 0 12px; cursor: pointer; transition: .15s;
}
.tk-sg-open:hover { background: #f2f6ff; border-color: #1b47a0; }
.tk-sg-modal {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(8, 18, 38, .6);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.tk-sg-modal-inner {
  position: relative; background: #fff; border-radius: 16px;
  max-width: 760px; width: 100%; max-height: 90vh; overflow: auto;
}
.tk-sg-modal-inner .tk-sg { margin: 0; border: 0; }
.tk-sg-x {
  position: absolute; top: 8px; right: 14px; z-index: 2;
  border: 0; background: transparent; font-size: 26px; line-height: 1;
  color: #5b6b86; cursor: pointer;
}
.tk-sg-x:hover { color: #0f2a5c; }
