/* ==================== Partners 页专属样式（ptr-page 命名空间，100% 对齐 html-case/pages/partners.html） ==================== */

/* 关闭全局强制滚动吸附 */
html:root {
  scroll-snap-type: none !important;
}

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

/* ==================== Hero Section ==================== */
.ptr-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;
  padding: 0;
}

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

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

.ptr-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%);
}

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

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

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

/* Hero 统计条 */
.ptr-page .tftech-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.ptr-page .tftech-stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ptr-page .tftech-stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.ptr-page .tftech-stat-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* ==================== Section Common ==================== */
.ptr-page .tftech-section {
  min-height: auto;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  transform: none;
  opacity: 1;
  position: relative;
  background: #ffffff;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: visible;
}

.ptr-page .tftech-section.is-active {
  transform: scale(1);
  opacity: 1;
}

.ptr-page .tftech-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.ptr-page .tftech-section-head h2 {
  font-size: 2.5rem;
  margin: 0 0 16px;
  color: var(--tftech-foreground);
  font-weight: 700;
}

.ptr-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;
}

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

.ptr-page .tftech-brand-item {
  height: 120px;
  background: #ffffff;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tftech-primary);
  border: 1px solid rgba(15, 65, 117, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.ptr-page .tftech-brand-item:hover {
  background: var(--tftech-primary);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(15, 65, 117, 0.1);
}

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

.ptr-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;
}

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

.ptr-page .tftech-feature-card h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--tftech-foreground);
}

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

.ptr-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;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.ptr-page .tftech-feature-card:hover .tftech-icon {
  background: var(--tftech-primary);
  color: #fff;
}

/* ==================== Split Layout ==================== */
.ptr-page .tftech-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.ptr-page .tftech-info-panel {
  padding: 40px;
  background: #f8fbff;
  border-radius: 30px;
  border: 1px solid rgba(15, 65, 117, 0.05);
}

.ptr-page .tftech-info-panel h2 {
  color: var(--tftech-primary);
  font-size: 2rem;
  margin: 15px 0 25px;
}

.ptr-page .tftech-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.ptr-page .tftech-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--tftech-muted-foreground);
  font-size: 1.05rem;
}

.ptr-page .tftech-list li i {
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==================== Form Card ==================== */
.ptr-page .tftech-form-card {
  padding: 40px;
  background: #ffffff;
  border-radius: 25px;
  border: 1px solid rgba(15, 65, 117, 0.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

.ptr-page .tftech-form-card h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--tftech-primary);
}

.ptr-page .tftech-form-group {
  margin-bottom: 20px;
}

.ptr-page .tftech-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tftech-muted-foreground);
  margin-bottom: 8px;
}

.ptr-page .tftech-form-group input,
.ptr-page .tftech-form-group select,
.ptr-page .tftech-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--tftech-border);
  background: #fbfdff;
  color: var(--tftech-foreground);
  transition: all 0.3s ease;
}

.ptr-page .tftech-form-group input:focus,
.ptr-page .tftech-form-group select:focus,
.ptr-page .tftech-form-group textarea:focus {
  outline: none;
  border-color: var(--tftech-primary);
  box-shadow: 0 0 0 4px var(--tftech-ring);
}

.ptr-page .tftech-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.ptr-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;
  width: 100%;
  border: none;
  cursor: pointer;
}

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

/* ==================== 提交成功弹窗 ==================== */
.ptr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 30, 53, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ptr-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ptr-modal-box {
  width: min(420px, calc(100% - 40px));
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ptr-modal-overlay.is-open .ptr-modal-box {
  transform: translateY(0) scale(1);
}

.ptr-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  animation: ptr-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ptr-modal-box h3 {
  font-size: 1.4rem;
  color: var(--tftech-foreground);
  margin: 0 0 10px;
}

.ptr-modal-box p {
  color: var(--tftech-muted-foreground);
  font-size: 0.95rem;
  margin: 0 0 28px;
  line-height: 1.7;
}

.ptr-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--tftech-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ptr-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 65, 117, 0.3);
}

@keyframes ptr-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .ptr-page .tftech-grid-3,
  .ptr-page .tftech-split,
  .ptr-page .tftech-brand-wall,
  .ptr-page .tftech-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ptr-page .tftech-grid-3,
  .ptr-page .tftech-split,
  .ptr-page .tftech-brand-wall,
  .ptr-page .tftech-stats-strip {
    grid-template-columns: 1fr;
  }
  .ptr-page .tftech-hero h1 {
    font-size: 2.2rem;
  }
  .ptr-page .tftech-section-head h2 {
    font-size: 1.8rem;
  }
  .ptr-page .tftech-hero-content {
    padding-top: 60px;
  }
  .ptr-page .tftech-form-card,
  .ptr-page .tftech-info-panel {
    padding: 30px;
  }
}

/* 合作功能项 */
.ptr-page .tftech-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}
.ptr-page .tftech-spec-item {
  background: #ffffff;
  padding: 24px;
  border-radius: 15px;
  border: 1px solid rgba(15, 65, 117, 0.05);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.18);
}
.ptr-page .tftech-spec-item strong {
  display: block;
  color: var(--tftech-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}
.ptr-page .tftech-spec-item span {
  font-size: 0.9rem;
  color: var(--tftech-muted-foreground);
}
@media (max-width: 768px) {
  .ptr-page .tftech-spec-grid {
    grid-template-columns: 1fr;
  }
}
