/* ==========================================================================
   优奥工品 · 服务及收费页专属样式（services.html）
   以 style.css 的设计变量与公共组件为基础，不修改公共文件；
   页面级组件统一使用 fee-* / store-* / cs-* 语义前缀，避免与公共类冲突。
   ========================================================================== */

/* ---------- 公共补位：交替底色 section（style.css 未提供，仅页面内使用） ---------- */
.section--alt {
  background: var(--bg-alt);
}

/* ---------- 页面首屏（page-hero） ---------- */
.page-hero {
  align-items: center;
  background: #f2f3f5;
  display: flex;
  min-height: 64vh;
  overflow: hidden;
  position: relative;
}
.page-hero__bg {
  background-image: url(../hero.jpg);
  background-position: center 52%;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}
.page-hero__veil {
  background: radial-gradient(920px 560px at 88% 6%, rgba(180, 20, 20, .26) 0, rgba(180, 20, 20, 0) 60%),
    linear-gradient(100deg, rgba(12, 14, 17, .72), rgba(12, 14, 17, .42) 32%, rgba(12, 14, 17, .14) 64%, rgba(12, 14, 17, 0));
  inset: 0;
  position: absolute;
}
.page-hero__inner {
  padding-bottom: 60px;
  padding-top: calc(var(--header-h) + 84px);
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow {
  align-items: center;
  background: hsla(0, 0%, 100%, .05);
  border: 1px solid hsla(0, 0%, 100%, .18);
  border-radius: 100px;
  color: hsla(0, 0%, 100%, .86);
  display: inline-flex;
  font-size: 13px;
  gap: 12px;
  letter-spacing: .06em;
  margin-bottom: 22px;
  padding: 8px 18px 8px 14px;
}
.page-hero__eyebrow:before {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(180, 20, 20, .28);
  content: "";
  height: 7px;
  width: 7px;
}
.page-hero__title {
  color: #fff;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.24;
  max-width: 18em;
}
.page-hero__desc {
  color: hsla(0, 0%, 100%, .78);
  font-size: 16.5px;
  line-height: 1.95;
  margin-top: 22px;
  max-width: 680px;
}

/* 板块锚点速览 */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.anchor-nav a {
  align-items: center;
  background: hsla(0, 0%, 100%, .06);
  border: 1px solid hsla(0, 0%, 100%, .22);
  border-radius: 100px;
  color: hsla(0, 0%, 100%, .88);
  display: inline-flex;
  font-size: 13.5px;
  height: 40px;
  padding: 0 18px;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- 收费方式总览（fee） ---------- */
.fee__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.fee__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  position: relative;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.fee__card:after {
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  top: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  width: 100%;
}
.fee__card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.fee__card:hover:after {
  transform: scaleX(1);
}
.fee__tag {
  align-self: flex-start;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 5px 13px;
}
.fee__name {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}
.fee__desc {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 12px;
}
.fee__list {
  flex: 1;
  margin-top: 18px;
}
.fee__list li {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.85;
  padding-left: 18px;
  position: relative;
}
.fee__list li + li {
  margin-top: 8px;
}
.fee__list li:before {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 11px;
  width: 6px;
}
.fee__list li b {
  color: var(--ink-2);
  font-weight: 600;
}
.fee__fit {
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 13px;
  line-height: 1.8;
  margin-top: auto;
  padding-top: 16px;
}
.fee__list + .fee__fit {
  margin-top: 22px;
}
.fee__fit b {
  color: var(--ink-2);
  font-weight: 600;
}
.fee__note {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
  margin-top: 28px;
  padding: 18px 22px;
}

/* ---------- 平台店型服务矩阵（store） ---------- */
.store__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
/* 天猫工业：仅两张店型卡片，2 列等分铺满父级，视觉居中 */
#tmall .store__grid {
  grid-template-columns: repeat(2, 1fr);
}
.store__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.store__card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.store__head {
  background: linear-gradient(150deg, #15181b, #0d0f11);
  padding: 26px 26px 22px;
  position: relative;
}
.store__head:after {
  background: radial-gradient(320px 160px at 90% 0, rgba(180, 20, 20, .32), rgba(180, 20, 20, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.store__badge {
  background: rgba(180, 20, 20, .28);
  border: 1px solid rgba(217, 67, 67, .42);
  border-radius: 100px;
  color: #f0a8a8;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 13px;
  position: relative;
  z-index: 1;
}
.store__head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
}
.store__head p {
  color: hsla(0, 0%, 100%, .66);
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
/* 天猫店型：浅色头部，与京东店型形成视觉区分 */
.store__card--light .store__head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.store__card--light .store__head:after {
  display: none;
}
.store__card--light .store__head h3 {
  color: var(--ink);
}
.store__card--light .store__head p {
  color: var(--ink-3);
}
/* 天猫店型 badge：浅色头部上文字改黑色 */
.store__card--light .store__badge {
  color: #000;
}
.store__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}
.store__body h4 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.store__list {
  margin-bottom: 20px;
}
.store__list li {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.store__list li + li {
  margin-top: 6px;
}
.store__list li:before {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 11px;
  width: 5px;
}
.store__list li b {
  color: var(--ink-2);
  font-weight: 600;
}
.store__fee {
  background: var(--primary-50);
  border-radius: var(--radius);
  margin-top: auto;
  padding: 16px 18px;
}
.store__fee-label {
  color: var(--primary);
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.store__fee p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 在线客服外包（cs，深色） ---------- */
.section--cs {
  background: radial-gradient(900px 420px at 12% 0, rgba(180, 20, 20, .3) 0, rgba(180, 20, 20, 0) 62%),
    linear-gradient(160deg, #15181b, #0e1012);
}
.cs__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.cs__card {
  background: hsla(0, 0%, 100%, .045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background-color .28s ease, border-color .28s ease, transform .28s ease;
}
.cs__card:hover {
  background: hsla(0, 0%, 100%, .08);
  border-color: rgba(217, 67, 67, .55);
  transform: translateY(-6px);
}
.cs__icon {
  align-items: center;
  background: rgba(180, 20, 20, .22);
  border: 1px solid rgba(217, 67, 67, .38);
  border-radius: var(--radius);
  color: #f0a8a8;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}
.cs__icon svg {
  height: 24px;
  width: 24px;
}
.cs__card h3 {
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
}
.cs__card p {
  color: hsla(0, 0%, 100%, .72);
  font-size: 13.5px;
  line-height: 1.85;
  margin-top: 10px;
}
.cs__fee {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}
.cs__fee-item {
  background: hsla(0, 0%, 100%, .045);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.cs__fee-label {
  color: var(--primary-light);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.cs__fee-item p {
  color: hsla(0, 0%, 100%, .78);
  font-size: 13.5px;
  line-height: 1.85;
}
.cs__fit {
  border-top: 1px solid var(--line-dark);
  color: hsla(0, 0%, 100%, .55);
  font-size: 13.5px;
  line-height: 1.9;
  margin-top: 26px;
  padding-top: 20px;
}
.cs__fit b {
  color: hsla(0, 0%, 100%, .85);
  font-weight: 600;
}

/* ---------- CTA 联系板块（沿用 index 的 contact 组件，补充 QR 展示样式） ---------- */
.contact__form--qr {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.contact__form--qr h3 {
  margin: 0 0 8px;
}
.contact__qr-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  height: auto;
  margin: 0 auto 18px;
  max-width: 260px;
  width: 100%;
}
.contact__qr-tip {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.contact__qr-phone {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.contact__qr-phone a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- 响应式（与 style.css 断点对齐：1180 / 1024 / 768） ---------- */
@media (max-width: 1180px) {
  .page-hero__title {
    font-size: 42px;
  }
}
@media (max-width: 1024px) {
  .page-hero {
    min-height: 0;
  }
  .page-hero__inner {
    padding-bottom: 56px;
    padding-top: calc(var(--header-h) + 64px);
  }
  .fee__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs__fee {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .page-hero__title {
    font-size: 30px;
  }
  .page-hero__desc {
    font-size: 15px;
    margin-top: 18px;
  }
  .anchor-nav {
    gap: 10px;
    margin-top: 28px;
  }
  .anchor-nav a {
    font-size: 12.5px;
    height: 38px;
    padding: 0 14px;
  }
  .fee__grid,
  .store__grid,
  .cs__grid {
    grid-template-columns: 1fr;
  }
  /* 天猫区：ID 选择器优先级更高，需同步覆盖为单列 */
  #tmall .store__grid {
    grid-template-columns: 1fr;
  }
  .fee__card {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__bg {
    transform: none;
  }
}
