/* ===== 产品服务页专属样式 ===== */
.page-products {
  --pp-deep: #0A1F3C;
  --pp-deep-2: #0C2447;
  --pp-gold: #C9A86A;
  --pp-red: #B85C3C;
  --pp-teal: #1B7F7A;
  --pp-sand: #F4F4F4;
  --pp-white: #FFFFFF;
  --pp-ink: #333333;
  --pp-border: rgba(10, 31, 60, 0.12);
  --pp-shadow: 0 6px 24px rgba(10, 31, 60, 0.08);
  --pp-shadow-hover: 0 14px 40px rgba(10, 31, 60, 0.16);
  --pp-radius-lg: 12px;
  --pp-radius-md: 8px;
  background: var(--pp-sand);
  color: var(--pp-ink);
  font-family: var(--font-body);
  max-width: 100%;
  overflow-x: hidden;
}

.page-products img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

/* 面包屑 */
.products-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.products-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.products-breadcrumb a:hover {
  color: var(--pp-gold);
}

.products-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.5);
}

/* 分屏外壳 */
.products-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* 侧边轨道 */
.products-rail {
  display: none;
}

.products-rail__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pp-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.products-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.products-rail__link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.products-rail__link:hover {
  background: rgba(10, 31, 60, 0.08);
  color: var(--pp-gold);
  border-left-color: var(--pp-gold);
}

.products-rail__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--pp-gold);
}

.products-rail__note {
  margin-top: 1.75rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(10, 31, 60, 0.35);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.products-rail__note a {
  color: var(--pp-gold);
  text-decoration: none;
  font-family: var(--font-heading);
}

.products-rail__note a:hover {
  color: #fff;
}

/* 内容舞台 */
.products-stage {
  min-width: 0;
}

/* 标题区 */
.products-hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 168, 106, 0.28) 0%, transparent 42%),
    linear-gradient(135deg, #0A1F3C 0%, #123A64 58%, #1B7F7A 135%);
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--pp-radius-lg);
  overflow: hidden;
}

.products-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  transform: rotate(30deg);
  border-radius: 4px;
  pointer-events: none;
}

.products-hero__content {
  position: relative;
  z-index: 1;
}

.products-hero .section-tag {
  color: var(--pp-gold);
}

.products-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.25;
  margin: 0.6rem 0 1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.products-hero__lede {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
}

.products-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.products-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.products-hero__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--pp-gold);
  line-height: 1;
}

.products-hero__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
}

/* 通用区块 */
.products-section {
  border-radius: var(--pp-radius-lg);
  padding: 2rem 1.25rem;
}

.products-section--deep {
  background: var(--pp-deep);
  color: rgba(255, 255, 255, 0.88);
}

.products-section--deep .products-section__desc {
  color: rgba(255, 255, 255, 0.72);
}

.products-section--deep .section-label {
  color: var(--pp-gold);
}

.products-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.products-section__heading h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--pp-ink);
  margin: 0.5rem 0 0;
  line-height: 1.3;
}

.products-section--deep .products-section__heading h2 {
  color: #fff;
}

.products-section__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pp-ink);
  margin-bottom: 1.75rem;
  max-width: 48rem;
}

/* 概览徽章 */
.overview-emblem {
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border: 2px solid var(--pp-gold);
  box-shadow: 0 8px 32px rgba(10, 31, 60, 0.18);
}

.overview-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 服务网格 */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-md);
  padding: 1.5rem;
  box-shadow: var(--pp-shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pp-gold);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pp-shadow-hover);
}

.service-card--info::before {
  background: linear-gradient(90deg, var(--pp-gold), var(--pp-teal));
}

.service-card--guide::before {
  background: var(--pp-teal);
}

.service-card--query::before {
  background: linear-gradient(90deg, var(--pp-red), var(--pp-gold));
}

.service-card--compare::before {
  background: linear-gradient(90deg, var(--pp-gold), var(--pp-red));
}

.service-card--info::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 106, 0.16);
  transform: rotate(30deg);
  border-radius: 4px;
}

.service-card--guide::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 12px;
  height: 12px;
  border: 2px solid var(--pp-teal);
  border-radius: 50%;
  opacity: 0.35;
}

.service-card--query::after {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -22px;
  width: 64px;
  height: 64px;
  background: rgba(184, 92, 60, 0.1);
  border-radius: 50%;
}

.service-card--compare::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 106, 0.6);
  transform: rotate(45deg);
}

.service-card__index {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--pp-gold);
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 3px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pp-deep);
  margin: 0 0 0.6rem;
}

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

.service-card__foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(51, 51, 51, 0.6);
}

/* 下载指引区 */
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.download-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.download-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--pp-radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--pp-gold);
  transition: background 0.3s, border-left-color 0.3s;
}

.download-step:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--pp-teal);
}

.download-step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pp-gold);
  line-height: 1;
  flex-shrink: 0;
}

.download-step__body h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: #fff;
  margin: 0 0 0.4rem;
}

.download-step__body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.download-support {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.9rem;
  line-height: 1.7;
}

.download-support a,
.ios-query__note a {
  color: var(--pp-gold);
  text-decoration: none;
  font-family: var(--font-heading);
}

.download-support a:hover,
.ios-query__note a:hover {
  text-decoration: underline;
}

.download-media {
  margin: 0;
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 168, 106, 0.4);
  background: rgba(10, 31, 60, 0.4);
}

.download-media img {
  display: block;
  width: 100%;
  height: auto;
}

.download-media figcaption,
.ios-query__media figcaption,
.feedback-media figcaption {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

/* iOS 查询面板 */
.ios-query-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  background: var(--pp-deep);
  border-radius: var(--pp-radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.ios-query-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  border-radius: 50%;
}

.ios-query__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.ios-query__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ios-query__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.16);
  border: 1px solid var(--pp-gold);
  color: var(--pp-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-query__list h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: #fff;
  margin: 0 0 0.3rem;
}

.ios-query__list p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.ios-query__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.8;
}

.ios-query__media {
  margin: 0;
  align-self: end;
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  background: rgba(10, 31, 60, 0.5);
  border: 1px solid rgba(201, 168, 106, 0.3);
}

.ios-query__media img {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

/* 版本对比 */
.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.compare-banner {
  margin: 0;
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  position: relative;
}

.compare-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--pp-radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  color: var(--pp-ink);
}

.compare-table caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pp-deep);
  text-align: left;
  padding: 1rem 1.25rem 0.5rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(10, 31, 60, 0.12);
  vertical-align: top;
  line-height: 1.6;
}

.compare-table thead th {
  background: var(--pp-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  white-space: nowrap;
}

.compare-table tbody th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--pp-deep);
  background: rgba(10, 31, 60, 0.04);
  white-space: nowrap;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: none;
}

.compare-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin: 0;
  padding: 1.25rem 1.25rem;
  background: rgba(10, 31, 60, 0.45);
  border-left: 4px solid var(--pp-gold);
  border-radius: 0 8px 8px 0;
}

/* 用户反馈 */
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.feedback-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feedback-stat {
  background: var(--pp-white);
  border-radius: var(--pp-radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--pp-shadow);
  border-bottom: 3px solid var(--pp-gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feedback-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--pp-shadow-hover);
}

.feedback-stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--pp-deep);
  line-height: 1.2;
  display: block;
}

.feedback-stat__num::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--pp-gold);
  margin: 0.5rem auto 0.7rem;
}

.feedback-stat__label {
  font-size: 0.75rem;
  color: rgba(51, 51, 51, 0.7);
  font-family: var(--font-heading);
  line-height: 1.6;
}

.feedback-trends {
  background: var(--pp-white);
  border-radius: var(--pp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--pp-shadow);
}

.feedback-trends h3 {
  font-family: var(--font-heading);
  color: var(--pp-deep);
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
}

.feedback-trends__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.feedback-trends__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--pp-border);
}

.feedback-trends__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feedback-trends__list p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--pp-ink);
  margin: 0;
}

.feedback-trends__list .tag {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feedback-media {
  margin: 0;
  border-radius: var(--pp-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--pp-border);
  background: var(--pp-white);
}

.feedback-media img {
  display: block;
  width: 100%;
  height: auto;
}

.feedback-media figcaption {
  color: rgba(51, 51, 51, 0.7);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-heading);
}

/* 区块间距微调 */
.section-gap + .section-gap {
  margin-top: 2.5rem;
}

/* ===== 平板及以上 ===== */
@media (min-width: 700px) {
  .products-breadcrumb {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .products-shell {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .products-hero {
    padding: 3rem 2.5rem;
  }

  .products-hero__title {
    font-size: 2.5rem;
  }

  .products-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 180px));
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .products-section {
    padding: 2.5rem 2rem;
  }

  .download-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }

  .ios-query-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    gap: 2.5rem;
    padding: 2.5rem 2.25rem;
  }

  .ios-query__media img {
    max-width: 240px;
  }

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

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

  .feedback-media {
    grid-column: 1 / -1;
  }

  .feedback-stats {
    grid-column: 1 / -1;
  }
}

/* ===== 桌面端 ===== */
@media (min-width: 1024px) {
  .page-products {
    background:
      linear-gradient(90deg, rgba(10, 31, 60, 0.04) 1px, transparent 1px) 0 0 / 52px 52px,
      var(--pp-sand);
  }

  .products-breadcrumb {
    padding: 1.5rem 2.5rem 0;
  }

  .products-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    padding: 2rem 2.5rem 5rem;
  }

  .products-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h, 76px) + 2rem);
    align-self: start;
    background: var(--pp-deep);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem 1rem;
    box-shadow: 0 14px 44px rgba(10, 31, 60, 0.2);
    max-height: calc(100vh - var(--header-h, 76px) - 4rem);
    overflow-y: auto;
  }

  .products-stage {
    min-width: 0;
  }

  .products-hero {
    padding: 3.5rem 3rem;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .products-hero__title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    max-width: 46rem;
  }

  .products-hero__lede {
    font-size: 1.0625rem;
    max-width: 50rem;
  }

  .products-section--deep {
    padding: 3rem 2.5rem;
  }

  .products-section__head--overview {
    align-items: center;
  }

  .overview-emblem {
    width: 130px;
    height: 130px;
  }

  .service-card {
    padding: 1.75rem;
  }

  .download-step {
    padding: 1.5rem;
  }

  .compare-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .compare-banner {
    grid-column: 1 / -1;
  }

  .compare-note {
    grid-column: 1 / -1;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .feedback-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .feedback-media {
    grid-column: 1 / -1;
  }
}

/* ===== 超宽屏 ===== */
@media (min-width: 1440px) {
  .products-section--deep,
  .ios-query-panel {
    border-radius: 16px;
  }

  .products-hero__content {
    max-width: 56rem;
  }
}
