/* =========================
  News Common (List & Archive)
========================= */

/* News Archive Page */
.news-archive {
  background: url('../../backgrounds/news.png') center top / cover no-repeat;
  background-color: #f8fbff;
}

/* Home News Section - Truncate top (show bottom) */
.news-section {
  background: url('../../backgrounds/news.png') center bottom / cover no-repeat;
  background-color: #f8fbff;
}

/* News List */
.news-list {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.news-list-item {
  border-bottom: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.news-list-item:hover {
  background-color: #fcfdfe;
  transform: translateX(8px);
}

.news-list-item a {
  display: flex;
  align-items: center;
  padding: 32px 16px;
  text-decoration: none;
}

.news-list-date {
  width: 150px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", serif;
}

.news-list-title {
  flex: 1;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
  color: var(--blue);
}

@media (max-width: 767px) {
  .news-list-item a {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 12px;
  }
  
  .news-list-item:hover {
    transform: none;
  }
  
  .news-list-date {
    width: auto;
    margin-bottom: 10px;
    font-size: 13px;
  }
  
  .news-list-title {
    font-size: 15px;
  }
}

/* =========================
  News Detail Page
========================= */
.news-detail-page {
  background: url('../../backgrounds/news.png') center top / cover no-repeat;
  background-color: #f8fbff;
  min-height: 100vh;
}

.news-detail-container {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
}

/* Heading Section */
.news-detail-heading {
  text-align: center;
  padding: 100px 0 60px;
}

.news-detail-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.news-detail-heading h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.3;
  color: var(--navy);
}

.news-detail-heading-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 24px auto 0;
}

/* Article Layout */
.news-detail-section {
  position: relative;
  padding-bottom: 120px;
}

.news-article-card {
  background: #fff;
  padding: 60px 80px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(6, 40, 74, 0.08);
  border: 1px solid rgba(220, 233, 242, 0.5);
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.news-article-meta time {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", serif;
}

.news-article-category {
  background: #eef7ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.news-article-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 40px;
}

.news-article-image {
  margin: 0 -40px 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.news-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content Body */
.news-article-body {
  font-size: 17px;
  line-height: 2.1;
  color: #2c3e50;
}

.news-article-body p {
  margin-bottom: 30px;
}

.news-article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 60px 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.news-article-body h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-article-body h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background: var(--blue);
  border-radius: 2px;
}

.news-article-body ul, 
.news-article-body ol {
  margin: 30px 0;
  padding-left: 20px;
}

.news-article-body li {
  margin-bottom: 12px;
}

.news-article-body blockquote {
  margin: 40px 0;
  padding: 30px 40px;
  background: #f4f9fc;
  border-left: 5px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}

/* Footer Section */
.news-article-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-share span {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.news-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
}

.news-share a:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-3px);
}

.news-back-link {
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.news-back-link span {
  font-size: 20px;
  line-height: 1;
}

.news-back-link:hover {
  color: var(--blue);
}

/* Post Navigation */
.news-post-nav {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-post-nav-item {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(220, 233, 242, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-post-nav-item:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 15px 40px rgba(6, 40, 74, 0.08);
}

.news-post-nav-item span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.news-post-nav-item strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 700;
}

.news-post-next {
  text-align: right;
}

/* Responsive News Detail */
@media (max-width: 991px) {
  .news-article-card {
    padding: 50px 40px;
  }
  
  .news-article-image {
    margin: 0 -20px 40px;
  }
}

@media (max-width: 767px) {
  .news-detail-hero {
    padding: 80px 0 120px;
  }
  
  .news-article-card {
    padding: 35px 25px;
    margin-top: -60px;
    border-radius: 16px;
  }
  
  .news-article-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .news-article-body {
    font-size: 15px;
  }
  
  .news-article-footer {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  
  .news-post-nav {
    grid-template-columns: 1fr;
  }

  /* 补充：详情页标题区 */
  .news-detail-heading {
    padding: 70px 0 40px;
  }

  .news-detail-container {
    width: calc(100% - 32px);
  }

  .news-article-body blockquote {
    padding: 20px 18px;
    margin: 28px 0;
  }
}
