/* ===== 页面专属：服务项目 ===== */
.page-products {
  --card-radius: 6px;
  --card-border-width: 3px;
  --card-padding: 1.25rem;
  --card-max-width: 580px;
  --chart-height: 8px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 1.5rem 1rem 3rem;
  min-height: 60vh;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.page-products .breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.page-products .breadcrumb li {
  display: flex;
  align-items: center;
}
.page-products .breadcrumb li + li::before {
  content: "·";
  margin: 0 0.4rem;
  color: #999;
}
.page-products .breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.page-products .breadcrumb a:hover {
  text-decoration: underline;
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--text-dark);
  font-weight: 600;
}

/* ---------- 页面标题 ---------- */
.page-products .page-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

/* ---------- 服务概览 ---------- */
.page-products .service-overview {
  margin-bottom: 2.5rem;
  background: rgba(27,122,61,0.04);
  border: 1px solid rgba(27,122,61,0.15);
  border-radius: var(--card-radius);
  padding: 1.5rem 1.25rem;
  position: relative;
}
.page-products .service-overview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1rem;
  right: 1rem;
  height: var(--card-border-width);
  background: var(--green);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.page-products .overview-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page-products .overview-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.page-products .overview-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 65ch;
}
.page-products .overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.page-products .stat-item {
  display: flex;
  flex-direction: column;
}
.page-products .stat-figure {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}
.page-products .stat-label {
  font-size: 0.8rem;
  color: #666;
}
.page-products .overview-image {
  flex-shrink: 0;
  text-align: center;
}
.page-products .overview-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  object-fit: contain;
  max-height: 400px;
  width: auto;
}

/* ---------- 服务卡片网格 ---------- */
.page-products .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* ---------- 卡片基础 ---------- */
.page-products .service-card {
  position: relative;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  max-width: var(--card-max-width);
  overflow: hidden;
}
.page-products .service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}
/* 纸张叠层效果 */
.page-products .service-card::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

/* 顶部强调色线 */
.page-products .card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--card-border-width);
  background: var(--card-accent, var(--green));
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  z-index: 1;
}

/* 卡片主体 */
.page-products .card-body {
  position: relative;
  z-index: 1;
  padding: var(--card-padding);
  background: var(--card-accent-bg, transparent);
}

/* 卡片头部元信息 */
.page-products .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.page-products .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.03);
}
.page-products .card-icon svg {
  display: block;
}

/* 卡片标题 */
.page-products .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

/* 卡片描述 */
.page-products .card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 1rem;
  max-width: 55ch;
}

/* 卡片可视化区域 */
.page-products .card-visual {
  margin-bottom: 0.75rem;
}
.page-products .card-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.05);
  object-fit: cover;
  margin-bottom: 0.85rem;
  background: #f0f0f0;
}

/* 条形图 */
.page-products .card-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0,0,0,0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.04);
}
.page-products .chart-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-products .chart-label {
  width: 5.5em;
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  flex-shrink: 0;
}
.page-products .chart-track {
  flex: 1;
  height: var(--chart-height);
  background: #e9ecef;
  border-radius: calc(var(--chart-height) / 2);
  overflow: hidden;
}
.page-products .chart-fill {
  height: 100%;
  border-radius: calc(var(--chart-height) / 2);
  transition: width 0.5s ease;
}
.page-products .chart-value {
  width: 3.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  flex-shrink: 0;
}

/* ---------- 卡片使用技巧（折叠） ---------- */
.page-products .card-tips {
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(0,0,0,0.08);
  padding-top: 0.5rem;
}
.page-products .card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-accent, var(--green));
  cursor: pointer;
  padding: 0.2rem 0;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}
.page-products .card-toggle:hover {
  opacity: 0.75;
}
.page-products .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}
.page-products .service-card[data-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}
.page-products .card-tips-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.page-products .service-card[data-expanded="true"] .card-tips-content {
  max-height: 120px;
  opacity: 1;
}
.page-products .card-tips-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  margin: 0.4rem 0 0;
  padding: 0.3rem 0.5rem;
  background: rgba(0,0,0,0.02);
  border-radius: var(--border-radius);
}

/* ---------- 相关链接 ---------- */
.page-products .related-section {
  padding-top: 1.5rem;
  border-top: 2px solid rgba(27,122,61,0.15);
}
.page-products .related-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.page-products .related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-products .related-links li {
  margin: 0;
}
.page-products .related-links .button {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  font-family: var(--font-body);
}
.page-products .button-primary {
  background: var(--green);
  color: var(--text-light);
  border: 1px solid var(--green);
}
.page-products .button-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}
.page-products .button-secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.page-products .button-secondary:hover {
  background: rgba(27,122,61,0.08);
}

/* ===== 桌面端（≥768px） ===== */
@media (min-width: 768px) {
  .page-products {
    padding: 2rem 2.5rem 4rem;
  }
  .page-products .page-title {
    font-size: 2.2rem;
  }
  .page-products .overview-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  .page-products .overview-text {
    flex: 1;
  }
  .page-products .overview-image {
    width: 240px;
    flex-shrink: 0;
  }
  .page-products .overview-img {
    max-height: 480px;
  }
  .page-products .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .page-products .service-card {
    max-width: none;
  }
  .page-products .related-links {
    gap: 1rem;
  }
}

/* ===== 大桌面端（≥1024px） ===== */
@media (min-width: 1024px) {
  .page-products {
    padding: 2.5rem 4rem 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  .page-products .overview-stats {
    gap: 2rem 2.5rem;
  }
  .page-products .stat-figure {
    font-size: 1.75rem;
  }
  .page-products .services-grid {
    gap: 2.25rem;
  }
  .page-products .card-body {
    padding: 1.5rem 1.75rem;
  }
}

.page-products {
  --card-accent: transparent;
  --card-accent-bg: transparent;
}
