/* ============================================================
   page-mac-yun-zu-yong.css — 下单页 · 左配置 + 右 sticky 摘要
   ============================================================ */

html.theme-apple-minimal #home-nav {
  position: sticky;
  top: 0;
}

#page-rent {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  background: #fafafa;
}

@media (min-width: 1024px) {
  #page-rent {
    padding-bottom: 3rem;
  }
}

#page-rent .co-summary__fine a,
#page-rent .co-trust a {
  color: #2997ff;
  font-weight: 500;
  text-decoration: none;
}

#page-rent .co-trust a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#page-rent .co-trust a i {
  width: 13px;
  height: 13px;
}

/* —— 页头 —— */
.co-top {
  padding: 1.5rem 0 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
}

.co-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #86868b;
}

.co-crumb a {
  color: #515154;
  text-decoration: none;
  font-weight: 500;
}

.co-crumb a:hover {
  color: #1d1d1f;
}

.co-crumb span[aria-hidden] {
  opacity: 0.45;
}

.co-top__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.co-top__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #86868b;
  max-width: 36rem;
}

.co-top__lead strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* —— 双栏布局 —— */
.co-layout {
  display: grid;
  gap: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1rem;
}

@media (min-width: 1024px) {
  .co-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

.co-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* —— 配置区块 —— */
.co-block__head {
  margin-bottom: 1rem;
}

.co-block__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
}

.co-block__optional {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
}

.co-block__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #86868b;
}

/* —— 计费周期 —— */
.co-period-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-period-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.co-period {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #515154;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.co-period:hover {
  color: #1d1d1f;
}

.co-period.active {
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.co-period-hint {
  margin: 0;
  font-size: 13px;
  color: #86868b;
}

/* —— 机型卡片 —— */
.co-plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .co-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.co-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem;
  background: #fff;
  border: 1.5px solid #e5e5ea;
  border-radius: 1.5rem;
  cursor: pointer;
  outline: none;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.co-plan:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.co-plan.pricing-card--selected {
  border-color: #1d1d1f;
  box-shadow: 0 0 0 1px #1d1d1f, 0 12px 32px rgba(0, 0, 0, 0.08);
}

.co-plan--featured {
  background: #1d1d1f;
  border-color: transparent;
  color: #fff;
}

.co-plan--featured.pricing-card--selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d1d1f, 0 16px 40px rgba(0, 0, 0, 0.18);
}

.co-plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #1d1d1f;
  background: #fff;
  width: fit-content;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.co-plan__badge-icon {
  width: 11px;
  height: 11px;
  fill: #1d1d1f;
  color: #1d1d1f;
}

.co-plan__tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}

.co-plan--featured .co-plan__tag {
  color: rgba(255, 255, 255, 0.55);
}

.co-plan__name {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.co-plan__price {
  margin: 0 0 14px;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.co-plan__per {
  font-size: 0.9rem;
  font-weight: 500;
  color: #86868b;
}

.co-plan--featured .co-plan__per {
  color: rgba(255, 255, 255, 0.55);
}

.co-plan__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-plan__specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #515154;
}

.co-plan--featured .co-plan__specs li {
  color: #d1d1d6;
}

.co-plan__specs i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* —— 机房 —— */
.co-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.co-region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid #e5e5ea;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #515154;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.co-region__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.co-region:hover {
  border-color: #d2d2d7;
}

.co-region.is-active {
  border-color: #1d1d1f;
  background: #1d1d1f;
  color: #fff;
}

.co-region-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #86868b;
}

.co-region-status.is-ok {
  color: #1d1d1f;
  font-weight: 600;
}

/* —— 加购 —— */
.co-addon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 1.25rem;
}

.co-addon {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.co-addon:hover {
  background: #f5f5f7;
}

.co-addon.selected {
  background: #f5f5f7;
}

.co-addon__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f5f5f7;
  color: #1d1d1f;
}

.co-addon__ico--accent {
  background: #eef6ff;
  color: #2997ff;
}

.co-addon__ico i {
  width: 17px;
  height: 17px;
}

.co-addon__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.co-addon__copy small {
  font-size: 12px;
  color: #86868b;
}

.co-addon__price {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  white-space: nowrap;
}

.co-addon__per {
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
}

.co-addon__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d2d2d7;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.co-addon.selected .co-addon__check {
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.co-addon.selected .co-addon__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* —— 信任条 —— */
.co-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.co-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
}

.co-trust i {
  width: 14px;
  height: 14px;
}

/* —— 订单摘要（桌面 sticky） —— */
.co-rail {
  z-index: 40;
}

@media (min-width: 1024px) {
  .co-rail {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

.co-summary {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.co-summary__eyebrow {
  margin: 0 0 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
}

.co-summary__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5ea;
}

.co-summary__flag {
  font-size: 1.5rem;
  line-height: 1;
}

.co-summary__product {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
}

.co-summary__sub {
  margin: 0;
  font-size: 12px;
  color: #86868b;
}

.co-summary__mobile-line {
  display: none;
}

.co-summary__dl {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.co-summary__row dt {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  flex-shrink: 0;
}

.co-summary__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: right;
}

.co-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
}

.co-summary__total-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
}

.co-summary__total-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.co-summary__pay {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1d1d1f;
  cursor: pointer;
  transition: background 0.15s ease;
}

.co-summary__pay:hover:not(:disabled) {
  background: #000;
}

.co-summary__pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.co-summary__fine {
  margin: 12px 0 0;
  font-size: 11px;
  text-align: center;
  color: #86868b;
  line-height: 1.5;
}

.co-summary__dc {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #515154;
}

/* —— 移动端：贴底精简条 —— */
@media (max-width: 1023px) {
  .co-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, rgba(250, 250, 250, 0.85) 20%, #fafafa 40%);
    pointer-events: none;
  }

  .co-summary {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 1.25rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  }

  .co-summary__eyebrow--desktop,
  .co-summary__head--desktop,
  .co-summary__dl--desktop,
  .co-summary__fine--desktop,
  .co-summary__dc--desktop {
    display: none;
  }

  .co-summary__mobile-line {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #515154;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .co-summary__total {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 0;
    border: none;
    align-items: baseline;
    gap: 8px;
  }

  .co-summary__total-label {
    font-size: 11px;
  }

  .co-summary__total-num {
    font-size: 1.35rem;
  }

  .co-summary__pay {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: auto;
    padding: 12px 18px;
    white-space: nowrap;
  }

  .co-page-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* —— 支付弹层 —— */
body.pay-method-modal-open {
  overflow: hidden;
}

.pay-method-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay-method-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.pay-method-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 22px;
  border-radius: 1.25rem;
  border: 1px solid #e5e5ea;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.15);
}

.pay-method-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: center;
  color: #1d1d1f;
}

.pay-method-modal-lead {
  font-size: 14px;
  color: #86868b;
  line-height: 1.55;
  margin: 0 0 12px;
  text-align: center;
}

.pay-method-order-recap {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
}

.pay-method-order-recap__head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
}

.pay-method-order-recap__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-method-order-recap__dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.pay-method-order-recap__dl dt {
  color: #86868b;
  font-weight: 600;
}

.pay-method-order-recap__dl dd {
  margin: 0;
  color: #1d1d1f;
  font-weight: 600;
  text-align: right;
}

.pay-method-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method-option {
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #fff;
}

.pay-method-option:hover {
  border-color: #d2d2d7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pay-method-option-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
}

.pay-method-option-main {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
}

.pay-method-option-sub {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
}

.pay-method-cancel {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #515154;
}

@media (max-width: 639px) {
  .co-addon {
    grid-template-columns: 1fr auto auto;
  }

  .co-addon__ico {
    display: none;
  }
}
