/* ===== 页面专属：服务项目 (page-products) ===== */
.page-products {
  --color-red: #E63946;
  --color-red-dark: #c02d39;
  --color-blue: #1D3557;
  --color-blue-light: #2a4a7f;
  --color-gold: #F4A261;
  --color-dark: #2B2D42;
  --color-light-gray: #F8F9FA;
  --color-white: #FFFFFF;
  --color-green: #2A9D8F;
  --color-yellow: #E9C46A;
  --font-heading: "Oswald","Bebas Neue",sans-serif;
  --font-body: "Noto Sans SC","Microsoft YaHei",sans-serif;
  --font-data: "Fira Code","Consolas",monospace;
  --container-max: 1200px;
  --radius-btn: 50px;
  --radius-card: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --step-line-color: rgba(230,57,70,0.25);
}

/* ---------- 容器与基础 ---------- */
.page-products .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  padding: 16px 0 8px;
}
.page-products .breadcrumb a {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity var(--transition);
}
.page-products .breadcrumb a:hover {
  opacity: 0.7;
}
.page-products .breadcrumb .sep {
  color: rgba(255,255,255,0.3);
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--color-white);
  font-weight: 600;
}

/* ---------- 英雄区 ---------- */
.page-products .services-hero {
  background: linear-gradient(135deg, var(--color-blue) 0%, #0f1f33 100%);
  color: var(--color-white);
  padding: 24px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-products .services-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,162,97,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-products .hero-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.page-products .hero-text {
  flex: 1;
}
.page-products .hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: var(--color-white);
  text-transform: uppercase;
}
.page-products .hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 0 18px;
}
.page-products .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-products .hero-tag {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: var(--color-gold);
}
.page-products .hero-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 480px;
}
.page-products .hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
}

/* ---------- 服务路径区 ---------- */
.page-products .service-path {
  padding: 48px 0 56px;
  background: var(--color-light-gray);
  position: relative;
}
.page-products .service-path.path-alt {
  background: var(--color-white);
}
.page-products .service-path .container {
  display: flex;
  gap: 24px;
  flex-direction: column;
}
.page-products .path-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}
.page-products .step-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-red);
  opacity: 0.35;
  letter-spacing: 2px;
}
.page-products .step-line {
  display: none;
}
.page-products .path-content {
  flex: 1;
}
.page-products .path-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}
.page-products .path-alt .path-content h2 {
  color: var(--color-blue);
}
.page-products .path-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  max-width: 640px;
  margin: 0 0 28px;
}

/* ---------- 服务卡片行 ---------- */
.page-products .service-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.page-products .service-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.page-products .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.page-products .path-alt .service-card {
  background: var(--color-light-gray);
}
.page-products .card-icon-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 36px;
}
.page-products .icon-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.page-products .icon-dot.red {
  background: var(--color-red);
}
.page-products .icon-dot.yellow {
  background: var(--color-yellow);
}
.page-products .icon-change,
.page-products .icon-data,
.page-products .icon-filter,
.page-products .icon-chart,
.page-products .icon-compare {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-blue);
  font-weight: 700;
}
.page-products .card-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 6px;
}
.page-products .card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 12px;
  flex: 1;
}
.page-products .card-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-btn);
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  align-self: flex-start;
}
.page-products .path-alt .card-tag {
  background: var(--color-blue);
}

/* ---------- 路径详情 ---------- */
.page-products .path-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 2px dashed rgba(0,0,0,0.06);
}
.page-products .detail-text {
  flex: 1;
}
.page-products .detail-text p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 10px;
}
.page-products .detail-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 360px;
}
.page-products .detail-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.page-products .detail-secondary {
  border-top-color: transparent;
  padding-top: 0;
  flex-direction: column-reverse;
}

/* ---------- 筛选演示 ---------- */
.page-products .filter-demo {
  background: var(--color-light-gray);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(0,0,0,0.05);
}
.page-products .path-alt .filter-demo {
  background: var(--color-white);
}
.page-products .filter-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-products .filter-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: #999;
}
.page-products .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.page-products .filter-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-products .filter-btn {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-btn);
  background: var(--color-white);
  border: 1px solid #ddd;
  font-family: var(--font-data);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  color: #555;
  user-select: none;
}
.page-products .filter-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.page-products #fd-all:checked ~ .filter-tabs label[for="fd-all"],
.page-products #fd-redyellow:checked ~ .filter-tabs label[for="fd-redyellow"],
.page-products #fd-lineup:checked ~ .filter-tabs label[for="fd-lineup"],
.page-products #fd-stats:checked ~ .filter-tabs label[for="fd-stats"] {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.page-products .filter-panels {
  position: relative;
}
.page-products .filter-panel {
  display: none;
  padding: 16px 14px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
  animation: fadePanel 0.25s ease;
}
.page-products .path-alt .filter-panel {
  background: var(--color-light-gray);
}
@keyframes fadePanel {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-products .filter-panel p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 14px;
}
.page-products #fd-all:checked ~ .filter-panels .panel-all,
.page-products #fd-redyellow:checked ~ .filter-panels .panel-redyellow,
.page-products #fd-lineup:checked ~ .filter-panels .panel-lineup,
.page-products #fd-stats:checked ~ .filter-panels .panel-stats {
  display: block;
}
.page-products .panel-chart-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-products .chart-bar {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.page-products .chart-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--pct,50) * 1%);
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  pointer-events: none;
}
.page-products .chart-bar.bar-red { background: var(--color-red); }
.page-products .chart-bar.bar-yellow { background: var(--color-yellow); color: #333; }
.page-products .chart-bar.bar-blue { background: var(--color-blue); }
.page-products .chart-bar.bar-green { background: var(--color-green); }
.page-products .chart-bar.bar-red::before { background: rgba(255,255,255,0.20); }
.page-products .chart-bar.bar-yellow::before { background: rgba(0,0,0,0.08); }
.page-products .chart-bar.bar-blue::before { background: rgba(255,255,255,0.12); }
.page-products .chart-bar.bar-green::before { background: rgba(255,255,255,0.15); }

/* ---------- 联系区 ---------- */
.page-products .service-connect {
  background: linear-gradient(135deg, var(--color-blue) 0%, #0f1f33 100%);
  color: var(--color-white);
  padding: 48px 0 52px;
}
.page-products .service-connect .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-products .service-connect .path-step {
  margin-bottom: 0;
}
.page-products .service-connect .step-num {
  color: var(--color-gold);
  opacity: 0.5;
}
.page-products .connect-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.page-products .connect-text {
  flex: 1;
}
.page-products .connect-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.page-products .connect-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  margin: 0 0 18px;
  max-width: 540px;
}
.page-products .connect-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.page-products .connect-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--color-white);
  font-family: var(--font-data);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  max-width: 420px;
}
.page-products .connect-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--color-gold);
}
.page-products .connect-note {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 0 !important;
}
.page-products .connect-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
}
.page-products .connect-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}

/* ---------- 底部CTA ---------- */
.page-products .services-cta {
  padding: 28px 0;
  background: var(--color-light-gray);
  text-align: center;
}
.page-products .services-cta p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
}
.page-products .services-cta a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.page-products .services-cta a:hover {
  border-bottom-color: var(--color-red);
}

/* ===== 响应式：平板 640px+ ===== */
@media (min-width: 640px) {
  .page-products .service-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .page-products .hero-grid {
    flex-direction: row;
    align-items: center;
  }
  .page-products .hero-text h1 {
    font-size: 3rem;
  }
  .page-products .path-detail {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-products .detail-secondary {
    flex-direction: row;
  }
  .page-products .connect-grid {
    flex-direction: row;
    align-items: center;
  }
  .page-products .filter-demo {
    padding: 24px 22px;
  }
  .page-products .filter-panel {
    padding: 18px 16px;
  }
}

/* ===== 响应式：桌面 960px+ ===== */
@media (min-width: 960px) {
  .page-products .services-hero {
    padding: 32px 0 64px;
  }
  .page-products .hero-text h1 {
    font-size: 3.8rem;
  }
  .page-products .hero-sub {
    font-size: 1.1rem;
  }
  .page-products .service-path {
    padding: 64px 0 72px;
  }
  .page-products .service-path .container {
    flex-direction: row;
    gap: 40px;
  }
  .page-products .path-step {
    flex-direction: column;
    align-items: center;
    width: 60px;
    padding-top: 6px;
  }
  .page-products .step-num {
    font-size: 3.6rem;
    opacity: 0.30;
  }
  .page-products .step-line {
    display: block;
    width: 2px;
    flex: 1;
    min-height: 60px;
    background: var(--step-line-color);
    border-radius: 2px;
  }
  .page-products .step-line-end {
    background: transparent;
  }
  .page-products .path-content h2 {
    font-size: 2.2rem;
  }
  .page-products .service-connect {
    padding: 60px 0;
  }
  .page-products .service-connect .container {
    flex-direction: row;
    gap: 40px;
  }
  .page-products .connect-text h2 {
    font-size: 2.2rem;
  }
  .page-products .connect-text p {
    font-size: 1rem;
  }
  .page-products .connect-btn {
    font-size: 0.9rem;
    padding: 12px 28px;
  }
  .page-products .services-cta {
    padding: 36px 0;
  }
}

/* ===== 大屏辅助 ===== */
@media (min-width: 1200px) {
  .page-products .hero-text h1 {
    font-size: 4.4rem;
  }
  .page-products .path-content h2 {
    font-size: 2.5rem;
  }
}

/* ===== 窄屏安全 ===== */
@media (max-width: 420px) {
  .page-products .hero-text h1 {
    font-size: 1.8rem;
  }
  .page-products .step-num {
    font-size: 2rem;
  }
  .page-products .filter-tabs {
    gap: 6px;
  }
  .page-products .filter-btn {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  .page-products .connect-btn {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
}

.page-products {
  --pct: 1rem;
}
