/* ============================================================
   定价页 v4
   独立命名空间 .ubp-：不依赖模板的 .price-* / .ub-* 类，
   也不使用 header / footer / section 等会被旧模板命中的裸标签。
   v4 改为价目表结构：整块四列报价 + 条纹对比表 + 手风琴 FAQ。
   ============================================================ */

body.price {
  background: #fff;
}

.ubp {
  --ubp-ink: #1d2129;
  --ubp-body: #4e5969;
  --ubp-muted: #86909c;
  --ubp-faint: #a9b0bd;
  --ubp-line: #e5e6eb;
  --ubp-line-soft: #f2f3f5;
  --ubp-blue: #2254f5;
  --ubp-blue-dark: #1a43d0;
  --ubp-soft: #f7f8fa;
  --ubp-red: #f53f3f;
  width: 100%;
  color: var(--ubp-ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ubp *,
.ubp *::before,
.ubp *::after {
  box-sizing: border-box;
}

.ubp-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ubp h1,
.ubp h2,
.ubp p,
.ubp dl,
.ubp dd,
.ubp dt,
.ubp ul {
  margin: 0;
  padding: 0;
}

.ubp ul {
  list-style: none;
}

.ubp a {
  text-decoration: none;
}

.ubp-num,
.ubp-amount,
.ubp-spec dd,
.ubp-table td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- 页头 ---------- */

.ubp-hero {
  padding: 62px 0 32px;
  text-align: center;
}

.ubp-h1 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ubp-ink);
}

.ubp-sub {
  max-width: 720px;
  margin: 16px auto 0 !important;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ubp-body);
}

/* ---------- 周期切换 ---------- */

.ubp-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.ubp-period {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ubp-line);
  border-radius: 8px;
  background: #fff;
}

.ubp-period button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ubp-body);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.ubp-period button:hover {
  color: var(--ubp-blue);
}

.ubp-period button.is-active {
  background: var(--ubp-blue);
  color: #fff;
}

.ubp-period button:focus-visible {
  outline: 2px solid var(--ubp-blue);
  outline-offset: 2px;
}

.ubp-off {
  padding: 0 5px;
  border-radius: 3px;
  background: #fff1f0;
  color: var(--ubp-red);
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}

.ubp-period button.is-active .ubp-off {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ubp-note {
  font-size: 12.5px;
  color: var(--ubp-muted);
}

/* ---------- 报价表 ---------- */

.ubp-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ubp-line);
  border-radius: 12px;
  background: #fff;
}

.ubp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
  border-left: 1px solid var(--ubp-line);
}

.ubp-plan:first-child {
  border-left: 0;
}

.ubp-plan.is-featured {
  background: #f8faff;
}

.ubp-plan.is-featured::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--ubp-blue);
  content: "";
}

.ubp-plan-head {
  min-height: 46px;
}

.ubp-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ubp-pick {
  padding: 0 6px;
  border-radius: 3px;
  background: #e8f3ff;
  color: var(--ubp-blue);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.ubp-plan-for {
  margin-top: 6px !important;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ubp-muted);
}

.ubp-was {
  margin-top: 15px;
  height: 18px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ubp-muted);
  text-decoration: line-through;
}

.ubp-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px !important;
}

.ubp-amount {
  color: var(--ubp-ink);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.ubp-unit {
  font-size: 13px;
  color: var(--ubp-muted);
}

.ubp-bill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px !important;
  min-height: 20px;
  font-size: 12.5px;
  color: var(--ubp-body);
}

.ubp-off-txt {
  color: var(--ubp-red);
  font-size: 12px;
  font-weight: 600;
}

.ubp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ubp-btn-line {
  border-color: #d9dde5;
  background: #fff;
  color: var(--ubp-ink);
}

.ubp-btn-line:hover {
  border-color: var(--ubp-blue);
  color: var(--ubp-blue);
}

.ubp-btn-solid {
  background: var(--ubp-blue);
  color: #fff;
}

.ubp-btn-solid:hover {
  background: var(--ubp-blue-dark);
}

.ubp-btn:focus-visible {
  outline: 2px solid var(--ubp-blue);
  outline-offset: 2px;
}

.ubp-spec {
  margin-top: 20px !important;
  padding-top: 6px;
  border-top: 1px solid var(--ubp-line-soft);
}

.ubp-spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

.ubp-spec dt {
  color: var(--ubp-muted);
}

.ubp-spec dd {
  color: var(--ubp-ink);
  font-weight: 500;
}

.ubp-inc {
  margin-top: 20px !important;
  font-size: 12px;
  color: var(--ubp-faint);
}

.ubp-list {
  margin-top: 6px;
  flex: 1 1 auto;
}

.ubp-list li {
  position: relative;
  padding: 3px 0 3px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ubp-body);
}

.ubp-list li::before {
  position: absolute;
  top: 10px;
  left: 3px;
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid var(--ubp-blue);
  border-left: 1.5px solid var(--ubp-blue);
  transform: rotate(-45deg);
  content: "";
}

.ubp-included {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ubp-body);
}

.ubp-included-label {
  font-weight: 600;
  color: var(--ubp-ink);
}

.ubp-included span + span::before {
  margin-right: 10px;
  color: #c9cdd4;
  content: "·";
}

.ubp-included .ubp-included-label + span::before {
  margin: 0;
  content: none;
}

.ubp-terms {
  margin-top: 10px !important;
  font-size: 12px;
  color: var(--ubp-faint);
}

/* ---------- 对比表 ---------- */

.ubp-sec-head {
  margin: 64px 0 20px;
}

.ubp-sec-head h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.ubp-sec-head p {
  margin-top: 8px !important;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ubp-muted);
}

.ubp-swipe {
  display: none;
  margin-bottom: 10px !important;
  font-size: 12px;
  color: var(--ubp-muted);
}

.ubp-tablewrap {
  border: 1px solid var(--ubp-line);
  border-radius: 10px;
  background: #fff;
}

.ubp-table {
  width: 100%;
  min-width: 720px;
  border-spacing: 0 3px;
  border-collapse: separate;
  table-layout: fixed;
}

.ubp-table th,
.ubp-table td {
  text-align: center;
  vertical-align: middle;
}

/* 桌面端让表头吸在站点导航下方；窄屏容器可横向滚动，表头改为普通流 */
.ubp-table thead th {
  position: sticky;
  top: 80px;
  z-index: 3;
  padding: 16px 12px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ubp-ink);
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--ubp-line), 0 6px 12px -10px rgba(15, 26, 51, 0.25);
}

.ubp-table thead th:first-child {
  width: 26%;
  border-radius: 9px 0 0 0;
}

.ubp-table thead th:last-child {
  border-radius: 0 9px 0 0;
}

.ubp-table thead .ubp-th-label {
  padding-left: 18px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ubp-muted);
}

.ubp-table thead th.is-pick {
  color: var(--ubp-blue);
}

.ubp-row td {
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ubp-ink);
  background: #fff;
}

.ubp-row.is-alt td {
  background: var(--ubp-soft);
}

.ubp-row td:first-child {
  border-radius: 6px 0 0 6px;
}

.ubp-row td:last-child {
  border-radius: 0 6px 6px 0;
}

.ubp-row .ubp-td-label {
  position: sticky;
  left: 0;
  z-index: 2;
  padding-left: 18px;
  text-align: left;
  font-weight: 400;
  color: var(--ubp-body);
}

.ubp-row td.is-pick {
  color: var(--ubp-blue);
  font-weight: 500;
}

.ubp-row td.is-pick .ubp-no {
  color: #c9cdd4;
}

.ubp-yes {
  color: var(--ubp-blue);
  font-size: 14px;
  font-weight: 600;
}

.ubp-no {
  color: #c9cdd4;
  font-size: 13px;
}

.ubp-group td {
  padding: 18px 18px 4px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ubp-muted);
}

/* ---------- FAQ ---------- */

.ubp-faq {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  margin-top: 76px;
  padding-top: 44px;
  border-top: 1px solid var(--ubp-line);
}

.ubp-faq-side h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.ubp-faq-side p {
  margin-top: 10px !important;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ubp-muted);
}

.ubp-q {
  border-bottom: 1px solid var(--ubp-line);
}

.ubp-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ubp-ink);
  cursor: pointer;
  list-style: none;
}

.ubp-q summary::-webkit-details-marker {
  display: none;
}

.ubp-q summary::after {
  flex: none;
  color: var(--ubp-muted);
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
  content: "+";
}

.ubp-q[open] summary::after {
  content: "\2212";
}

.ubp-q summary:focus-visible {
  outline: 2px solid var(--ubp-blue);
  outline-offset: 2px;
}

.ubp-q p {
  max-width: 760px;
  padding-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ubp-body);
}

/* ---------- 收尾 ---------- */

.ubp-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 70px 0 60px;
  padding: 36px 40px;
  border-radius: 14px;
  background: #101c33;
}

.ubp-end h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.ubp-end p {
  max-width: 540px;
  margin-top: 10px !important;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.ubp-end-act {
  display: flex;
  flex: none;
  gap: 12px;
}

.ubp-end .ubp-btn {
  width: auto;
  margin-top: 0;
  padding: 0 26px;
}

.ubp-btn-light {
  background: #fff;
  color: #101c33;
}

.ubp-btn-light:hover {
  background: #e8ecf5;
}

.ubp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
}

.ubp-btn-ghost:hover {
  border-color: #fff;
}

/* ---------- 站点导航 ----------
   body 上同时有 .ub-page，pages-unb1-wp1.css 会把导航间距改宽，
   1024 宽度下与 logo 挤在一起。这里恢复成全站默认的紧凑间距。 */

body.price.ub-page header .header-nav > li {
  margin: 0 4px !important;
}

body.price.ub-page header .header-nav > li > a {
  padding: 0 6px !important;
  letter-spacing: normal !important;
}

/* ---------- 自适应 ---------- */

@media (max-width: 1080px) {
  .ubp-plan {
    padding: 22px 16px 20px;
  }

  .ubp-plan-name {
    font-size: 15px;
  }

  .ubp-plan-for {
    font-size: 12px;
  }

  .ubp-amount {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .ubp-spec > div,
  .ubp-list li {
    font-size: 12.5px;
  }

  .ubp-spec > div {
    gap: 8px;
  }

  .ubp-btn {
    height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .ubp-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ubp-table thead th {
    position: static;
  }

  .ubp-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubp-plan:nth-child(3) {
    border-left: 0;
  }

  .ubp-plan:nth-child(n + 3) {
    border-top: 1px solid var(--ubp-line);
  }

  .ubp-plan.is-featured::before {
    border-radius: 0;
  }

  .ubp-faq {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .ubp-swipe {
    display: block;
  }

  .ubp-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .ubp-hero {
    padding: 40px 0 24px;
  }

  .ubp-h1 {
    font-size: 25px;
    letter-spacing: -0.2px;
  }

  .ubp-sub {
    font-size: 14px;
  }

  .ubp-period {
    display: flex;
    width: 100%;
    max-width: 420px;
  }

  .ubp-period button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
  }

  .ubp-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .ubp-plan {
    border-left: 0;
  }

  .ubp-plan + .ubp-plan {
    border-top: 1px solid var(--ubp-line);
  }

  .ubp-plan.is-featured::before {
    border-radius: 0;
  }

  .ubp-sec-head {
    margin-top: 56px;
  }

  .ubp-faq {
    margin-top: 56px;
    padding-top: 32px;
  }

  .ubp-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 56px 0 64px;
    padding: 28px 24px;
  }

  .ubp-end h2 {
    font-size: 20px;
  }

  .ubp-end-act {
    width: 100%;
  }

  .ubp-end .ubp-btn {
    flex: 1 1 0;
    padding: 0 12px;
  }
}
