/* ============================================================
   新闻页面样式 - news.html & news-detail pages
   复用主站 CSS 变量和基础样式
   ============================================================ */

/* ---------- News List Page ---------- */

.news-page-hero {
  background: var(--dark-bg);
  padding: calc(var(--nav-height) + 80px) 60px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(17, 76, 224, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.news-page-hero-inner {
  position: relative;
  z-index: 1;
}

.news-page-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0;
}

.news-page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* News Tabs */
.news-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.news-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 24px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.news-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.news-tab.active {
  background: linear-gradient(135deg, var(--brand), #3B7BF7);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(17, 76, 224, 0.3);
}

/* Tab panels */
.news-tab-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.news-tab-panel.active {
  display: flex;
}

/* News List */
.news-page-list {
  background: var(--light-bg);
  padding: 60px;
}

.news-page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* News List Card — horizontal layout */
.news-list-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.news-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.news-list-card-img {
  overflow: hidden;
  position: relative;
}

.news-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list-card-img .img-placeholder {
  min-height: 100%;
  border: none;
  border-radius: 0;
}

.news-list-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.news-list-card-date {
  color: var(--text-muted);
}

.news-list-card-cat {
  color: var(--brand);
  font-weight: 500;
}

.news-list-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.news-list-card:hover .news-list-card-title {
  color: var(--brand);
}

.news-list-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-list-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: color var(--transition);
}

.news-list-card:hover .news-list-card-link {
  color: var(--brand-dark);
}


/* ---------- Article Detail Page ---------- */

.article-header {
  background: var(--dark-bg);
  padding: calc(var(--nav-height) + 60px) 60px 48px;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(17, 76, 224, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.article-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.article-back {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--brand-light);
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-date {
  color: var(--text-secondary);
}

.article-cat {
  color: var(--brand-light);
  font-weight: 500;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Article Body */
.article-body {
  background: var(--light-bg);
  padding: 60px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.article-content .article-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #2D3748;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--light-border);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 16px;
}

.article-content ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-content ul li {
  padding-left: 20px;
  position: relative;
  line-height: 1.8;
  color: #4A5568;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.article-content ul li strong {
  color: var(--text-dark);
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--light-surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 16px;
  line-height: 1.8;
  color: #4A5568;
}

.article-content blockquote strong {
  color: var(--brand);
}

/* Engine Cards (inside article) */
.article-engine-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}

.article-engine-card {
  padding: 24px;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--brand);
}

.article-engine-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.article-engine-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Mission / Vision Block */
.article-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--light-border);
}

.article-mission-item {
  padding: 24px;
  background: var(--dark-bg);
  border-radius: var(--radius-md);
  text-align: center;
}

.article-mission-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.article-mission-item p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Article Images */
.article-content .article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 24px 0 32px;
  display: block;
}

.article-content .article-img--hero {
  margin-top: 0;
  margin-bottom: 32px;
}

.article-content .article-img-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: -16px 0 32px;
}

.article-content .article-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}

.article-content .article-img-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* ---------- Highlight Boxes ---------- */
.article-highlight-box {
  margin: 24px 0 32px;
  padding: 28px 32px;
  background: rgba(17, 76, 224, 0.06);
  border: 1px solid rgba(17, 76, 224, 0.15);
  border-radius: 12px;
}
.article-note {
  font-size: 0.85rem;
  color: #999;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.article-highlight-box h2 {
  margin-top: 24px;
  border-left: none;
  padding-left: 0;
}

.article-highlight-box h2:first-child {
  margin-top: 0;
}

.article-highlight-box p:last-child {
  margin-bottom: 0;
}

.article-phase-box {
  margin: 24px 0 32px;
  padding: 28px 32px;
  background: rgba(17, 76, 224, 0.06);
  border-radius: 12px;
}

.article-phase-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .news-list-card {
    grid-template-columns: 240px 1fr;
  }

  .article-engine-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .news-tabs {
    gap: 8px;
  }
  .news-tab {
    font-size: 13px;
    padding: 8px 16px;
  }

  .news-page-hero {
    padding: calc(var(--nav-height) + 48px) 24px 40px;
  }

  .news-page-title {
    font-size: 32px;
  }

  .news-page-list {
    padding: 32px 24px;
  }

  .news-list-card {
    grid-template-columns: 1fr;
  }

  .news-list-card-img .img-placeholder {
    min-height: 180px;
  }

  .news-list-card-body {
    padding: 24px;
  }

  .article-header {
    padding: calc(var(--nav-height) + 40px) 24px 32px;
  }

  .article-title {
    font-size: 26px;
  }

  .article-body {
    padding: 32px 24px;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-mission {
    grid-template-columns: 1fr;
  }

  .article-highlight-box,
  .article-phase-box {
    padding: 20px 16px;
  }
}
