/* ==========================================================================
   服务中心 services.html
   与小程序 services 页同构：四 tab → 分组 → 两列/四列卡片；国际商标为左大洲 + 右国家
   ========================================================================== */

.sj-head {
  background: linear-gradient(180deg, #e8fbf1 0%, #f5f8f6 100%);
  padding: 46px 0 0;
  text-align: center;
}

.sj-head h1 {
  font-size: 34px;
  font-weight: 700;
  color: #0d3d28;
  letter-spacing: 1px;
}

.sj-head p {
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.8;
  color: #4d6b5b;
}

/* 四个大类 tab */
.sj-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  border-bottom: 1px solid transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.sj-tab {
  flex: none;
  position: relative;
  padding: 14px 22px 16px;
  background: none;
  border: 0;
  font-size: 15.5px;
  color: #6b7772;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.2s;
}

.sj-tab:hover {
  color: #0f9d58;
}

.sj-tab.on {
  color: #0d3d28;
  font-weight: 700;
}

.sj-tab.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #12b76a;
}

/* 正文 */
.sj-body {
  padding: 8px 0 60px;
  background: #f5f8f6;
}

.sj-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 2px 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8a948f;
}

.sj-note .nd {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  margin-top: 8px;
}

/* 分组标题 */
.sj-sec {
  text-align: center;
  font-size: 14px;
  color: #4d6b5b;
  letter-spacing: 1.5px;
  padding: 30px 0 16px;
}

/* 卡片网格 */
.sj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sj-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sj-card:hover {
  transform: translateY(-2px);
  border-color: #cdecd9;
  box-shadow: 0 10px 24px rgba(16, 90, 55, 0.09);
}

.sj-card:active {
  transform: none;
}

.sj-card .c-l {
  min-width: 0;
}

.sj-card .c-t {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #16211c;
  line-height: 1.4;
}

.sj-card .c-p {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 9px;
}

.sj-card .c-p b {
  font-size: 17px;
  font-weight: 700;
  color: var(--price, #0f9d58);
}

.sj-card .c-p small {
  font-size: 11.5px;
  color: #9aa8a0;
}

.sj-card .c-fee {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #a9b5ae;
}

.sj-card .c-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f7f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sj-card .c-ico svg {
  width: 21px;
  height: 21px;
  stroke: #57635d;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 版权 / 专利：图标在左、无底色 */
.sj-card.plain {
  align-items: center;
  gap: 12px;
}

.sj-card.plain .c-ico {
  order: -1;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: none;
}

.sj-card.plain .c-ico svg {
  width: 28px;
  height: 28px;
  stroke: #5b6ef5;
}

.sj-card.plain .c-t {
  font-size: 14.5px;
}

.sj-card.plain .c-p {
  margin-top: 7px;
}

/* ---------------- 国际商标 ---------------- */
.intl-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 20px;
}

.intl-regions {
  background: #fff;
  border-radius: 14px;
  padding: 10px 0;
  position: sticky;
  top: 16px;
}

.intl-reg {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 15px 0 15px 14px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  color: #8a948f;
  cursor: pointer;
  text-align: left;
}

.intl-reg .bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
}

.intl-reg.on {
  color: #0d3d28;
  font-weight: 600;
}

.intl-reg.on .bar {
  background: #12b76a;
}

.intl-reg:hover {
  color: #0f9d58;
}

.intl-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.intl-cty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 18px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.intl-cty:hover {
  transform: translateY(-2px);
  border-color: #cdecd9;
  box-shadow: 0 10px 24px rgba(16, 90, 55, 0.09);
}

/* 旗帜：纯 CSS 渐变绘制，不做图片请求 */
.sj-flag,
.intl-cty .flag {
  display: block;
  width: 46px;
  height: 31px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(16, 40, 26, 0.09), 0 1px 2px rgba(16, 40, 26, 0.08);
  background-size: cover;
  background-position: center;
}

.intl-cty .c-name {
  margin-top: 12px;
  font-size: 14px;
  color: #16211c;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intl-cty .c-price {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--price, #0f9d58);
}

.intl-cty .c-price small {
  font-size: 11px;
  font-weight: 400;
  color: #9aa8a0;
}

.intl-notes {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intl-note {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
}

.intl-note strong {
  display: block;
  font-size: 14px;
  color: #16211c;
}

.intl-note span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8a948f;
}

/* ---------------- 快捷下单 ---------------- */
.qm {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
}

.qm.open {
  display: block;
}

.qm-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 18, 0.45);
}

.qm-box {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  animation: qmUp 0.26s cubic-bezier(0.24, 0.8, 0.3, 1);
}

@keyframes qmUp {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@media (min-width: 640px) {
  .qm-box {
    top: 50%;
    bottom: auto;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    animation: qmIn 0.2s ease;
  }
  @keyframes qmIn {
    from {
      opacity: 0;
      transform: translate(-50%, -46%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
}

.qm-x {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9aa8a0;
  cursor: pointer;
}

.qm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 34px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f4f1;
}

.qm-head h3 {
  font-size: 18px;
  color: #16211c;
}

.qm-head p {
  margin-top: 5px;
  font-size: 12.5px;
  color: #8a948f;
  line-height: 1.6;
}

.qm-price {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.qm-price b {
  font-size: 20px;
  color: var(--price, #0f9d58);
}

.qm-price small {
  font-size: 11.5px;
  color: #9aa8a0;
}

.qm-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f4f7f5;
}

.qm-field > span {
  flex: none;
  width: 62px;
  font-size: 13.5px;
  color: #6b7772;
}

.qm-field input,
.qm-field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 14px;
  color: #16211c;
  font-family: inherit;
  background: none;
}

.qm-tip {
  font-size: 11.5px;
  line-height: 1.7;
  color: #a9b5ae;
  padding: 14px 0 6px;
}

.qm-submit {
  width: 100%;
  margin-top: 8px;
}

.qm-err {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #e5484d;
  text-align: center;
}

/* 提交成功提示条 */
.sj-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -20px);
  z-index: 950;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: #0f2f21;
  color: #eaf7f0;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(10, 40, 26, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sj-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sj-toast b {
  color: #6ee7a8;
}

.sj-toast a {
  color: #6ee7a8;
  text-decoration: underline;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .sj-grid,
  .intl-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sj-head {
    padding-top: 30px;
  }
  .sj-head h1 {
    font-size: 26px;
  }
  .sj-head p {
    font-size: 13px;
    padding: 0 4px;
  }
  .sj-tabs {
    justify-content: flex-start;
    padding: 0 12px 0 4px;
  }
  .sj-tab {
    padding: 12px 12px 14px;
    font-size: 14.5px;
  }
  .sj-grid,
  .intl-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sj-card {
    padding: 16px 14px;
  }
  .sj-card .c-t {
    font-size: 14px;
  }
  .sj-card .c-p b {
    font-size: 16px;
  }
  .intl-wrap {
    grid-template-columns: 86px 1fr;
    gap: 8px;
  }
  .intl-reg {
    padding: 13px 0 13px 8px;
    font-size: 13px;
    gap: 6px;
  }
  .intl-notes {
    grid-template-columns: 1fr;
  }
  .intl-cty {
    padding: 16px 8px 14px;
  }
  .intl-cty .flag {
    width: 40px;
    height: 27px;
  }
  .intl-cty .c-name {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .sj-card .c-ico {
    display: none;
  }
}
