/* 维修保养专页 — 继承首页品牌样式，仅补本页区块 */

/* 首页/维修 Hero：旧主题 craftsman 底图 + 深色蒙版 + 白字 */
.hero--weixiu {
  background: #0f172a;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero--weixiu::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.2) 45%,
    var(--bg) 100%
  );
}

.hero--weixiu .hero__bg img {
  object-position: center 28%;
  filter: saturate(0.85) brightness(0.72);
  opacity: 1;
  transform: scale(1.02);
}

.hero--weixiu .hero__mask {
  background:
    linear-gradient(
      105deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.82) 38%,
      rgba(30, 41, 59, 0.62) 62%,
      rgba(15, 23, 42, 0.42) 82%,
      rgba(15, 23, 42, 0.28) 100%
    ),
    radial-gradient(ellipse 70% 80% at 88% 30%, rgba(208, 32, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 8% 90%, rgba(0, 160, 16, 0.1), transparent 50%);
}

.hero--weixiu .hero__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero--weixiu h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero--weixiu .hero__lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero--weixiu .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero--weixiu .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* 维修 Hero 右侧不放产品图，改为入口清单 */
.hero--weixiu .hero__visual {
  min-height: auto;
  display: block;
  align-self: center;
}

@media (max-width: 768px) {
  .hero--weixiu {
    padding-bottom: 96px;
  }

  .hero--weixiu::after {
    height: 96px;
  }

  .hero--weixiu .hero__mask {
    background:
      linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.78) 55%,
        rgba(15, 23, 42, 0.7) 100%
      ),
      radial-gradient(ellipse 70% 50% at 50% 0%, rgba(208, 32, 0, 0.12), transparent 60%);
  }

  .hero--weixiu .hero__bg img {
    object-position: center 22%;
  }
}

/* Hero 右侧：入口清单（非卡片堆） */
.wx-entries {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.wx-entries--panel {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 20px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.wx-entries__label {
  margin: 0 0 4px;
  padding: 0 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.wx-entries--panel .wx-entry {
  padding-left: 8px;
  padding-right: 8px;
}

.wx-entries--panel .wx-entries__foot {
  padding-left: 8px;
  flex-wrap: nowrap;
  row-gap: 6px;
  column-gap: 6px;
  font-size: 0.8125rem;
}

.wx-entries__sep {
  opacity: 0.45;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .wx-entries--panel {
    max-width: none;
  }

  .wx-entries--panel .wx-entries__foot {
    flex-wrap: wrap;
  }
}

.wx-entry {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: padding-left 0.25s var(--ease), background 0.2s;
}

.wx-entry:hover {
  color: inherit;
  padding-left: 8px;
  background: var(--brand-red-soft);
}

.wx-entry__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-soft);
  color: var(--primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.wx-entry__icon svg,
.wx-entry__icon i {
  width: 20px;
  height: 20px;
}

.wx-entry:nth-of-type(2) .wx-entry__icon {
  background: rgba(0, 160, 16, 0.1);
  color: var(--secondary);
}

.wx-entry:nth-of-type(3) .wx-entry__icon {
  background: rgba(208, 32, 0, 0.08);
  color: var(--primary);
}

.wx-entry:nth-of-type(4) .wx-entry__icon {
  background: rgba(0, 160, 16, 0.12);
  color: var(--secondary);
}

.wx-entry b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}

.wx-entry small {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.wx-entry__go {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.wx-entries__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 4px 4px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.wx-entries__foot a {
  font-weight: 700;
}

/* 寄修流程：杂志编号分栏（桌面 / 移动统一） */
.wx-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.wx-process li {
  margin: 0;
  padding: 32px 20px 28px;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.25s var(--ease);
}

.wx-process li:last-child {
  border-right: none;
}

.wx-process li:hover {
  background: var(--brand-red-soft);
}

.wx-process__num {
  display: block;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  line-height: 1;
}

.wx-process strong {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.wx-process p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-3);
}

.wx-process a {
  color: var(--primary);
  font-weight: 700;
}

.section-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.section-note a {
  font-weight: 700;
}

/* 双品牌专修（对齐 local brand-cards） */
.wx-brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.wx-brand {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.wx-brand:hover {
  transform: translateY(-6px);
  border-color: rgba(208, 32, 0, 0.28);
  box-shadow: 0 18px 36px rgba(208, 32, 0, 0.1);
}

.wx-brand__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 30px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.wx-brand__visual::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 20px;
  bottom: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  filter: blur(15px);
  z-index: 0;
  pointer-events: none;
}

.wx-brand__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 300px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.55s var(--ease);
}

.wx-brand:hover .wx-brand__visual img {
  transform: scale(1.05);
}

.wx-brand__body {
  padding: 24px 32px 32px;
  text-align: center;
}

.wx-brand__mark {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.wx-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 700;
}

.wx-brand ul {
  list-style: none;
  margin: 0 auto 16px;
  padding: 0;
  max-width: 280px;
  text-align: left;
}

.wx-brand li {
  position: relative;
  padding: 6px 0 6px 1.25em;
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wx-brand li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--secondary);
  font-weight: 700;
}

.wx-brand__note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.65;
}

.wx-brand__note a {
  color: var(--primary);
  font-weight: 700;
}

/* 价格卡网格（对齐 local price-grid） */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
}

.price-card--hot {
  border-color: var(--primary);
  background: var(--brand-red-soft);
}

.price-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 12px;
}

.price-card__amount span {
  font-size: 0.95rem;
  font-weight: 600;
}

.price-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.price-card a {
  color: var(--primary);
  font-weight: 700;
}

.price-details {
  max-width: 820px;
  margin: 0 auto;
}

.price-details summary {
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  padding: 12px;
  list-style: none;
}

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

.price-details[open] summary {
  margin-bottom: 8px;
}

.price-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.price-table th {
  background: #fafafa;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-note {
  margin: 16px 4px 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-3);
}

.price-note a {
  color: var(--primary);
  font-weight: 700;
}

/* 为什么选择吉康：四栏要点 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.why-item {
  text-align: center;
  padding: 12px 10px 8px;
}

.why-item i {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  color: var(--primary);
  stroke-width: 1.6;
}

.why-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.why-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-3);
}

.why-item a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.why-item a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 22rem;
  }
}

/* 送修前须知：三栏边界卡 */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.promise-card {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-card:last-child {
  border-right: none;
}

.promise-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 18px;
}

.promise-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 14px;
}

.promise-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.75;
}

.promise-card__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.promise-card__link:hover {
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise-card {
    border-right: none;
  }
}

@media (max-width: 1024px) {
  .hero--weixiu .hero__visual {
    order: 0; /* 维修页：文案在上，入口在下 */
  }

  .wx-entries--panel {
    margin-right: auto;
  }

  .wx-process {
    grid-template-columns: 1fr 1fr;
  }

  .wx-process li:nth-child(2n) {
    border-right: none;
  }

  .wx-brands {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .wx-process {
    grid-template-columns: 1fr;
  }

  .wx-process li {
    border-right: none;
    padding: 28px 20px 24px;
  }

  .wx-process strong {
    font-size: 1.2rem;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
}
