/* ==================== Products 页专属样式（prd-page 命名空间，避免与全局 style.css 冲突） ==================== */

/* 关闭全局强制滚动吸附（html scroll-snap-type），产品中心可自由滚动 */
html:root {
  scroll-snap-type: none !important;
}

.prd-page .tftech-footer,
.prd-page .tftech-cta,
.prd-page .tftech-banner {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  min-height: auto;
}

/* ==================== Hero（设计稿 products.html 原样） ==================== */
.prd-page .tftech-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a1e35;
  display: flex;
  align-items: center;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  opacity: 1;
  transform: none;
}

.prd-page .tftech-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/themes/tianfeng/public/assets/images/product-infrastructure-rack.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.prd-page .tftech-hero.is-active .tftech-hero-bg {
  transform: scale(1);
}

.prd-page .tftech-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 21, 37, 0.85) 0%, rgba(11, 42, 76, 0.6) 50%, rgba(15, 65, 117, 0.3) 100%);
}

.prd-page .tftech-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.prd-page .tftech-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 24px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.prd-page .tftech-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  line-height: 1.8;
}

.prd-page .tftech-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.prd-page .tftech-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.prd-page .tftech-banner-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.prd-page .tftech-banner-scroll:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.prd-page .tftech-scroll-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  position: relative;
}

.prd-page .tftech-scroll-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-indicator 2s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

/* 覆盖全局滚动吸附与裁剪：产品中心内容较多，section 恢复正常滚动显示 */
.prd-page .tftech-section {
  min-height: auto;
  padding: 100px 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: visible;
  transform: none;
  opacity: 1;
  justify-content: flex-start;
}

.prd-page .tftech-section.is-active {
  transform: none;
  opacity: 1;
}

/* 区块标题：2.5rem（设计稿） */
.prd-page .tftech-section-head {
  margin-bottom: 56px;
}

.prd-page .tftech-section-head .tftech-kicker {
  margin-bottom: 16px;
}

.prd-page .tftech-section-head h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tftech-foreground);
  line-height: 1.2;
}

/* Kicker 小标题 */
.prd-page .tftech-kicker {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tftech-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

/* 区块描述 */
.prd-page .tftech-section-desc {
  margin: 16px auto 0;
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--tftech-muted-foreground);
  line-height: 1.7;
}

/* ==================== Grid & Cards ==================== */
.prd-page .tftech-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.prd-page .tftech-feature-card {
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 65, 117, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.prd-page .tftech-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(15, 65, 117, 0.1);
  border-color: var(--tftech-primary);
}

.prd-page .tftech-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(15, 65, 117, 0.06);
  color: var(--tftech-primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.prd-page .tftech-feature-card:hover .tftech-icon {
  background: var(--tftech-primary);
  color: #fff;
  transform: rotate(5deg);
}

.prd-page .tftech-feature-card h3 {
  font-size: 1.4rem;
  margin: 0 0 14px;
  color: var(--tftech-foreground);
}

.prd-page .tftech-feature-card p {
  color: var(--tftech-muted-foreground);
  font-size: 0.95rem;
  margin: 0;
}

/* ==================== Product Showcase ==================== */
.prd-page .tftech-product-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  background: #f8fbff;
  border-radius: 30px;
  padding: 50px;
  margin-bottom: 40px;
  border: 1px solid rgba(15, 65, 117, 0.05);
}

.prd-page .tftech-product-showcase-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.prd-page .tftech-product-showcase-media img {
  width: 100%;
  display: block;
}

.prd-page .tftech-product-showcase-copy h3 {
  font-size: 1.7rem;
  margin: 0 0 16px;
  color: var(--tftech-foreground);
}

.prd-page .tftech-product-showcase-copy > p {
  color: var(--tftech-muted-foreground);
  font-size: 1rem;
  margin: 0;
}

.prd-page .tftech-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.prd-page .tftech-spec-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(15, 65, 117, 0.05);
}

.prd-page .tftech-spec-item strong {
  display: block;
  color: var(--tftech-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.prd-page .tftech-spec-item span {
  font-size: 0.9rem;
  color: var(--tftech-muted-foreground);
}

/* ==================== Brand Wall ==================== */
.prd-page .tftech-brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.prd-page .tftech-brand-item {
  height: 100px;
  background: #ffffff;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--tftech-primary);
  border: 1px solid rgba(15, 65, 117, 0.08);
  transition: all 0.3s ease;
}

.prd-page .tftech-brand-item:hover {
  background: var(--tftech-primary);
  color: #fff;
  transform: scale(1.05);
}

/* ==================== Table ==================== */
.prd-page .tftech-table-shell {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(15, 65, 117, 0.08);
  overflow-x: auto;
}

.prd-page .tftech-table {
  width: 100%;
  border-collapse: collapse;
}

.prd-page .tftech-table th {
  text-align: left;
  padding: 18px;
  background: rgba(15, 65, 117, 0.04);
  color: var(--tftech-primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(15, 65, 117, 0.1);
  white-space: nowrap;
}

.prd-page .tftech-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(15, 65, 117, 0.05);
  color: var(--tftech-muted-foreground);
}

/* ==================== Buttons ==================== */
.prd-page .tftech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--tftech-primary);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.prd-page .tftech-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 65, 117, 0.3);
}

.prd-page .tftech-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.prd-page .tftech-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .prd-page .tftech-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .prd-page .tftech-product-showcase {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .prd-page .tftech-brand-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .prd-page .tftech-grid-3,
  .prd-page .tftech-brand-wall,
  .prd-page .tftech-spec-grid {
    grid-template-columns: 1fr;
  }
  .prd-page .tftech-section-head h2 {
    font-size: 1.8rem;
  }
}
