﻿/**
 * ============================================================
 *  security.css · 网站安全运维页
 *  区块：服务卡片 / 运维案例 / 详情页对齐公司动态
 * ============================================================
 */

.page-banner .sec-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(21, 94, 239, .22);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.sec-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sec-service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dce4ef;
  padding: clamp(26px, 2.8vw, 36px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.sec-service-card:hover {
  border-color: rgba(21, 94, 239, .35);
  box-shadow: 0 18px 48px rgba(21, 48, 87, .08);
  transform: translateY(-3px);
}

.sec-service-card.is-accent {
  border-top: 3px solid #155eef;
}

.sec-service-card.is-primary {
  border-top: 3px solid #155eef;
}

.sec-service-card.is-green {
  border-top: 3px solid #155eef;
}

.sec-service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ef;
  background: #f5f8fc;
  color: #155eef;
  font-size: 24px;
  margin-bottom: 20px;
}

.sec-service-card.is-accent .sec-service-icon {
  color: #155eef;
}

.sec-service-card.is-green .sec-service-icon {
  color: #155eef;
}

.sec-service-card h3 {
  margin: 0;
  color: #15233d;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.sec-service-lead {
  margin: 10px 0 0;
  color: #566681;
  font-size: 15px;
  line-height: 1.7;
}

.sec-service-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.sec-service-list li {
  position: relative;
  padding-left: 18px;
  color: #566681;
  font-size: 14px;
  line-height: 1.6;
}

.sec-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: #155eef;
}

.sec-service-card.is-accent .sec-service-list li::before {
  background: #155eef;
}

.sec-service-card.is-green .sec-service-list li::before {
  background: #155eef;
}

.sec-service-card .btn {
  margin-top: 28px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 22px;
}

.sec-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sec-case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #dce4ef;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.sec-case-card:hover {
  border-color: rgba(21, 94, 239, .35);
  box-shadow: 0 16px 40px rgba(21, 48, 87, .08);
  transform: translateY(-3px);
}

.sec-case-card:hover .sec-case-body h3 {
  color: #155eef;
}

.sec-case-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1a34;
}

.sec-case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.sec-case-card:hover .sec-case-cover img {
  transform: scale(1.04);
}

.sec-case-body {
  padding: 22px 24px 26px;
}

.sec-case-body h3 {
  margin: 0;
  color: #15233d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.sec-case-body p {
  margin: 10px 0 0;
  color: #566681;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .sec-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sec-case-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 运维案例详情（对齐公司动态详情） ---------- */
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.news-detail-main {
  background: #fff;
  border: 1px solid #dce4ef;
  padding: clamp(28px, 3vw, 48px);
}

.news-detail-main .editor {
  float: none !important;
  width: 100% !important;
  color: #566681;
  font-size: 15px;
  line-height: 1.85;
}

/* 富文本兜底：后台编辑器常见标签，不依赖复杂自定义结构 */
.news-detail-main .editor p {
  margin: 0 0 16px;
}

.news-detail-main .editor strong,
.news-detail-main .editor b {
  color: #15233d;
  font-weight: 600;
}

.news-detail-main .editor h1,
.news-detail-main .editor h2,
.news-detail-main .editor h3,
.news-detail-main .editor h4 {
  color: #15233d;
  font-weight: 600;
  margin: 28px 0 12px;
  line-height: 1.35;
}

.news-detail-main .editor h2 {
  font-size: 20px;
}

.news-detail-main .editor ul,
.news-detail-main .editor ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.news-detail-main .editor li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.news-detail-main .editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 24px;
}

.news-side {
  border: 1px solid #dce4ef;
  background: #fff;
  padding: 24px;
}

.news-side h4 {
  margin: 0 0 20px;
  color: #15233d;
  font-size: 16px;
  font-weight: 600;
}

.news-side-list {
  display: grid;
  gap: 16px;
}

.news-side-item {
  display: block;
  border: 1px solid #dce4ef;
  background: #fff;
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.news-side-item:hover {
  border-color: rgba(21, 94, 239, .35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 48, 87, .06);
}

.news-side-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1a34;
}

.news-side-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.news-side-item:hover .news-side-cover img {
  transform: scale(1.05);
}

.sec-side-cover {
  background: #0b1a34;
}

.news-side-body {
  padding: 14px 14px 16px;
}

.news-side-body h3 {
  margin: 0 0 8px;
  color: #15233d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-side-item:hover .news-side-body h3 {
  color: #155eef;
}

.news-side-body p {
  margin: 0;
  color: #8090a6;
  font-size: 12px;
}

.news-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dce4ef;
}

.news-pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #dce4ef;
  background: #f8fafc;
  color: #566681;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.news-pager a:hover {
  border-color: rgba(21, 94, 239, .35);
  color: #155eef;
  background: #fff;
}

.news-pager .back {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-side-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .news-side-list {
    grid-template-columns: 1fr;
  }

  .news-pager .back {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
