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

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

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

/* ==================== Hero Section ==================== */
.nws-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;
}

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

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

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

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

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

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

/* ==================== Section Common ==================== */
.nws-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;
}

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

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

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

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

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

.nws-page .tftech-news-card {
  padding: 40px;
  background: #ffffff;
  border-radius: 24px;
  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;
}

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

.nws-page .tftech-news-date {
  font-size: 0.85rem;
  color: var(--tftech-primary);
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nws-page .tftech-news-card h3 {
  margin: 0 0 15px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--tftech-foreground);
}

.nws-page .tftech-news-card p {
  margin: 0;
  color: var(--tftech-muted-foreground);
  font-size: 1rem;
  flex-grow: 1;
}

.nws-page .tftech-news-link {
  margin-top: 25px;
  color: var(--tftech-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.nws-page .tftech-news-card:hover .tftech-news-link {
  gap: 12px;
}

/* ==================== Featured News ==================== */
.nws-page .tftech-featured-news {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.nws-page .tftech-featured-card {
  background: linear-gradient(135deg, #0f4175 0%, #061525 100%);
  border-radius: 30px;
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nws-page .tftech-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.nws-page .tftech-featured-card h2 {
  font-size: 2.5rem;
  margin: 20px 0;
  line-height: 1.3;
  color: #fff;
}

.nws-page .tftech-featured-card p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

.nws-page .tftech-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nws-page .tftech-sidebar-item {
  background: #f8fbff;
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(15, 65, 117, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nws-page .tftech-sidebar-item:hover {
  background: #ffffff;
  box-shadow: var(--tftech-shadow-sm);
  border-color: var(--tftech-primary);
}

.nws-page .tftech-sidebar-item h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--tftech-foreground);
}

.nws-page .tftech-sidebar-item p {
  margin: 0;
  color: var(--tftech-muted-foreground);
  font-size: 0.95rem;
}

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

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

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .nws-page .tftech-grid-3,
  .nws-page .tftech-featured-news {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nws-page .tftech-hero h1 {
    font-size: 2.2rem;
  }
  .nws-page .tftech-section-head h2 {
    font-size: 1.8rem;
  }
  .nws-page .tftech-featured-card {
    padding: 40px;
  }
  .nws-page .tftech-featured-card h2 {
    font-size: 1.8rem;
  }
  .nws-page .tftech-news-card {
    padding: 30px;
  }
}
