@charset "UTF-8";

/* ============================================================
   BoCloud 新闻模块 —— 列表页 + 详情页共用样式（js + css + html）
   说明：仅原生 CSS，不依赖预处理器 / 框架。
   基础重置与容器在 base.css，页头 / 页脚在 header.css / footer.css。
   文件结构：列表页（Hero / 列表 / 卡片 / 分页）→ 详情页（Hero / 正文 / CTA）。
   ============================================================ */

/* ============================================================
   Hero 区
   ============================================================ */
.news-hero {
  position: relative;
  overflow: hidden;
  height: 649px;
  background-color: #eef2ff;
  background-image: url("../img/news-bg@2x.png");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.news-hero .hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 649px;
  min-height: auto;
  padding-top: 206px;
  box-sizing: border-box;
}

/* 背景图已含右侧玻璃面板装饰，隐藏 CSS 占位块 */
.news-hero .hero-visual {
  display: none;
}

.news-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0;
}

/* 眉标：AlibabaPuHuiTiR / 14 / 行高 20 / 字距 14
   该页是独立模板，不加载 Vue 侧样式，故此处写字面量字体链（无自托管字体时落到系统字体） */
.news-hero .hero-eyebrow {
  font-family: "AlibabaPuHuiTi", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 14px;
  color: #0a57f8;
  text-transform: none;
}

.news-hero .hero-title {
  margin: 21px 0 36px;
  font-size: 68px;
  line-height: 94px;
  font-weight: 800;
  color: #0c041c;
}

.news-hero .hero-title em {
  font-style: normal;
  color: #0a57f8;
}

.news-hero .hero-divider {
  width: 44px;
  height: 4px;
  margin: 0 0 22px;
  border-radius: 2px;
  background: #0a57f8;
}

.news-hero .hero-sub {
  font-size: 16px;
  color: #5b6472;
}

/* ============================================================
   列表区
   ============================================================ */
.news-section {
  position: relative;
  z-index: 2;
  margin-top: -128px;
  padding: 0 0 38px;
  /*background-color: #f5f7fb;*/
  background-image: url("../img/news-bg-bottom@2x.png");
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #191c3d;
}

.section-head .section-count {
  font-size: 14px;
  color: #8a94a6;
}

/* 卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px -14px rgba(30, 72, 130, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -22px rgba(30, 72, 130, 0.4);
}

/* 整卡点击热区：链接绝对定位铺满卡片（CMS 模板中 if/else 分支内保持标签完整） */
.card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* 封面：后台封面图铺满 148 高处，图片缺失时展示占位渐变 */
.card-cover {
  height: 148px;
  overflow: hidden;
  background-color: #dfe6f5;
  background-image: linear-gradient(135deg, #e6ecfb, #cdd8f2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 24px 20px;
}

.card-tag {
  align-self: flex-start;
  padding: 0 8px;
  border-radius: 4px;
  background: #e2ecfe;
  color: #154afb;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
}

.card-title {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #0c041c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.card-summary {
  margin-top: 12px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(12, 4, 28, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部信息：无上边框，至少留 24 的间距，始终贴在卡片底部 */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(12, 4, 28, 0.5);
}

.card-date svg {
  width: 15px;
  height: 15px;
}

/* 箭头：直接用整张圆形徽标图（含浅蓝底 + 右上箭） */
.card-arrow {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  transition: opacity 0.2s ease;
}

.news-card:hover .card-arrow {
  opacity: 0.85;
}

/* 空状态 */
.news-empty {
  padding: 60px 0;
  text-align: center;
  color: #9aa3b2;
  font-size: 15px;
}

/* ============================================================
   分页（简约）
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #5b6472;
  background: #fff;
  border: 1px solid #e6eaf2;
  transition: all 0.2s ease;
}

.pagination a:hover {
  color: #0a57f8;
  border-color: #cdd8f5;
}

.pagination .current,
.pagination .active {
  color: #fff;
  background: #0a57f8;
  border-color: #0a57f8;
}

.pagination .disabled {
  color: #c2c8d2;
  pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 小屏不沿用 649 定高与负边距，避免内容被挤压 */
  .news-hero {
    height: auto;
  }

  .news-hero .hero-inner {
    height: auto;
    padding: 140px 24px 48px;
  }

  .news-hero .hero-eyebrow {
    letter-spacing: 6px;
  }

  .news-hero .hero-title {
    margin: 16px 0 24px;
    font-size: 40px;
    line-height: 56px;
  }

  .news-section {
    margin-top: 0;
    padding-top: 40px;
  }
}

@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================================
   新闻详情页（news_show.html）
   在列表页样式基础上扩展 / 覆盖，仅两个页面共用本文件。
   ============================================================ */

/* ---------- 文章 Hero：使用整幅背景图，右侧玻璃缎带 ---------- */
.news-hero.is-detail {
  height: 450px;
  background: #eef2ff url("../img/news-detail-bg@2x.png") no-repeat right center / cover;
}

/* 内容整体宽 1056，Hero 固定高 450、上内边距 127 */
.news-hero.is-detail .hero-inner {
  position: relative;
  height: 450px;
  min-height: auto;
  max-width: 1056px;
  align-items: stretch;
  padding: 0;
}

/* 背景图已含装饰元素，隐藏列表页那套 CSS 玻璃占位块 */
.news-hero.is-detail .hero-visual {
  display: none;
}

.news-hero.is-detail .hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 127px 0 0;
  box-sizing: border-box;
}

/* 眉标：NEWS · 企业动态（固定文案） */
.news-hero.is-detail .detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: none;
  color: #344154;
}

.news-hero.is-detail .eyebrow-tag {
  color: #0a57f8;
  font-weight: 800;
  letter-spacing: 1px;
}

.news-hero.is-detail .eyebrow-dot {
  color: #c2c8d2;
}

.news-hero.is-detail .eyebrow-cat {
  color: #344154;
}

/* 文章大标题：字号 36，行高 50，最大宽度占容器 50% */
.news-hero.is-detail .hero-title {
  max-width: 50%;
  margin-top: 18px;
  font-size: 36px;
  line-height: 50px;
  font-weight: 800;
  color: #191c3d;
}

/* 分割线 + 发布时间：整体距 Hero 下边框 65 */
.news-hero.is-detail .hero-foot {
  position: absolute;
  left: 0;
  bottom: 65px;
}

.news-hero.is-detail .hero-divider {
  width: 34px;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: #0a57f8;
}

.news-hero.is-detail .hero-meta {
  margin-top: 16px;
  font-size: 15px;
  line-height: 17px;
  color: #344154;
}

/* ---------- 正文区 ---------- */
.article-body {
  background: #fff;
}

.article-container {
  max-width: 1056px;
  margin: 0 auto;
  padding: 60px 0 100px;
}

/* 正文顶部：标题 + 发布时间（居中） */
.article-head {
  text-align: center;
}

.article-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 44px;
  font-weight: 700;
  color: #191c3d;
}

.article-time {
  margin-bottom: 64px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.5);
}

/* 后台富文本 {model.content} 统一排版：用后代选择器兜底各类标签 */
.article-content {
  color: #2b3245;
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}

.article-content p {
  margin: 0;
}

.article-content h2 {
  margin: 36px 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #191c3d;
}

.article-content h3 {
  margin: 30px 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: #191c3d;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 12px;
}

.article-content a {
  color: #0a57f8;
  text-decoration: underline;
  word-break: break-all;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: #f2f6ff;
  border-left: 4px solid #0a57f8;
  border-radius: 8px;
  color: #191c3d;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article-content th,
.article-content td {
  border: 1px solid #e6eaf2;
  padding: 10px 14px;
}

/* ---------- CTA 深色带（正文以下、页脚以上，全宽独立区块） ---------- */
.cta-band {
  width: 100%;
  height: 260px;
  padding: 50px 0 0;
  box-sizing: border-box;
  color: #fff;
  background-color: #0a1628;
  background-image: url("../img/with-bocloud-bg@2x.png");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-inner {
  max-width: 1056px;
  margin: 0 auto;
  padding: 0;
}

/* 品牌：白色博云 logo + BOCLOUD */
.cta-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-logo {
  display: block;
  height: 22px;
  width: auto;
}

.cta-brand-en {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(127, 180, 255, 0.5);
}

.cta-title {
  max-width: 640px;
  margin-top: 16px;
  font-size: 30px;
  font-weight: 800;
  line-height: 42px;
  color: #fff;
}

.cta-desc {
  max-width: 560px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 21px;
  color: #bfd2ed;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
  width: 126px;
  height: 30px;
  padding: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
  /* 双背景实现「圆角 + 渐变描边」：内层铺满填充色，外层铺到边框区充当描边 */
  border: 1px solid transparent;
  border-radius: 15px;
  background-image:
    linear-gradient(90deg, #2478fd 0%, #3370fb 57.44%, #9b8ffb 100%),
    linear-gradient(
      85deg,
      rgba(63, 168, 242, 1) 0%,
      rgba(118, 184, 253, 1) 50%,
      rgba(182, 174, 251, 1) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: inset 0px 1px 10px 0px rgba(255, 255, 255, 0.5);
  transition: filter 0.2s ease;
}

.cta-btn:hover {
  filter: brightness(1.1);
}

.cta-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1104px) {
  .news-hero.is-detail .hero-inner {
    padding: 0 24px;
  }

  .article-container {
    padding: 60px 24px 100px;
  }

  .cta-inner {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .news-hero.is-detail {
    height: auto;
    background-position: center;
  }

  .news-hero.is-detail .hero-inner {
    height: auto;
    padding: 100px 20px 40px;
  }

  .news-hero.is-detail .hero-copy {
    padding: 0;
  }

  .news-hero.is-detail .hero-foot {
    position: static;
    margin-top: 24px;
  }

  .news-hero.is-detail .hero-title {
    max-width: 100%;
    font-size: 26px;
    line-height: 38px;
  }

  .article-container {
    padding: 40px 20px 56px;
  }

  .article-title {
    font-size: 24px;
    line-height: 34px;
  }

  .cta-band {
    height: auto;
    padding: 56px 0;
    background-position: center;
  }

  .cta-title {
    font-size: 24px;
    line-height: 30px;
  }
}
