.tms-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tms-breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.tms-breadcrumb a {
  color: #1a56db;
  text-decoration: none;
}

.tms-breadcrumb span {
  margin: 0 0.35rem;
}

.tms-single__brand {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a56db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tms-single__sku {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.tms-single__title-zh {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

.tms-single__title-ja {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: #6b7280;
}

.tms-single__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.tms-single__card,
.tms-single__tags {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
}

.tms-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.tms-meta dt {
  font-weight: 600;
  color: #374151;
}

.tms-meta dd {
  margin: 0;
}

.tms-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tms-tag-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tms-tag-group__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.tms-tag-group__empty,
.tms-tag-group__value {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.tms-tag-group__value {
  color: #111827;
}

.tms-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem 0 0;
}

.tms-single__actions .tms-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.tms-single__actions .tms-btn--amazon {
  /* 與「加入比較」同高；避免 <a> 被主題額外撐高 */
  margin: 0;
}

.tms-related-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.tms-related-links__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.tms-related-links__amazon {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.tms-related-links__amazon .tms-btn--amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.tms-related-links__amazon .tms-related-links__hint {
  margin: 0.65rem 0 0;
}

.tms-related-links__group + .tms-related-links__group {
  margin-top: 1rem;
}

.tms-related-links__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.tms-related-links__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
}

.tms-related-links__list a {
  color: #1a56db;
  text-decoration: none;
}

.tms-related-links__list a:hover {
  text-decoration: underline;
}

.tms-related-links__empty {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.tms-related-links__hint {
  color: #9ca3af;
  font-size: 0.8125rem;
}

.tms-amazon-sticky {
  display: none;
}

@media (max-width: 720px) {
  .tms-amazon-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }

  .tms-single {
    padding-bottom: 5.5rem;
  }
}

.tms-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: default;
}

.tms-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.tms-related {
  margin-top: 2.5rem;
}

.tms-related h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tms-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.tms-related-row {
  display: grid;
  grid-template-columns: 4.5rem 6.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.85rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e5e7eb;
}

.tms-related-row:last-child {
  border-bottom: none;
}

.tms-related-row:hover {
  background: #f0f7ff;
}

.tms-related-row__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a56db;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tms-related-row__sku {
  font-weight: 700;
  font-size: 0.9rem;
}

.tms-related-row__names {
  min-width: 0;
}

.tms-related-row__name-zh {
  font-size: 0.9rem;
  line-height: 1.35;
}

.tms-related-row__name-ja {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.35;
}

.tms-related-row__price {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: #111827;
}

@media (max-width: 640px) {
  .tms-related-row {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
  }

  .tms-related-row__brand {
    grid-column: 1;
  }

  .tms-related-row__sku {
    grid-column: 2;
    justify-self: end;
  }

  .tms-related-row__names {
    grid-column: 1 / -1;
  }

  .tms-related-row__price {
    grid-column: 1 / -1;
  }
}

.tms-single__feedback {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

.tms-single__feedback a {
  color: #1a56db;
}

.tms-single__actions {
  margin-top: 0.75rem;
}

.tms-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.tms-archive__ja-ref {
  color: #6b7280;
  font-size: 0.875rem;
}

