/*--------------------------------------------------------------
# 正和网络 · 内容页 / 在线留言样式
# 与 styles.css 中的「Homepage refresh」同属一套设计语言，
# 作用域统一挂在 .home-refresh 下，页面 body 使用
# class="home-refresh subpage" 即可。
--------------------------------------------------------------*/

/* ============================ 内容页头部 ============================ */

.home-refresh .page-hero {
  background:
    linear-gradient(90deg, rgba(2, 12, 32, 0.96) 0%, rgba(3, 64, 153, 0.88) 55%, rgba(2, 12, 32, 0.55) 100%),
    url("../../images/page-bg.jpg") center center / cover no-repeat;
  color: #ffffff;
  margin-top: -120px;
  overflow: hidden;
  padding: 170px 0 74px;
}

.home-refresh .page-hero-inner {
  max-width: 860px;
}

.home-refresh .page-hero h1 {
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 16px;
}

.home-refresh .page-hero p {
  color: #dbe7f8;
  font-size: 17px;
  line-height: 1.85;
  margin: 0;
}

.home-refresh .page-crumbs {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.home-refresh .page-crumbs li {
  align-items: center;
  color: #b8c9e2;
  display: inline-flex;
}

.home-refresh .page-crumbs li + li::before {
  color: rgba(255, 255, 255, 0.38);
  content: "/";
  margin: 0 10px;
}

.home-refresh .page-crumbs a {
  color: #8ee0c2;
}

.home-refresh .page-crumbs a:hover {
  color: #ffffff;
}

/* ============================ 通用区块 ============================ */

.home-refresh .content-section {
  background: #ffffff;
}

.home-refresh .soft-section {
  background: #f6f9fd;
}

.home-refresh .lead-text {
  color: #3c4a61;
  font-size: 17px;
  line-height: 1.95;
}

.home-refresh .info-card {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  height: 100%;
  padding: 28px;
}

.home-refresh .info-card > i {
  align-items: center;
  background: #e9f1ff;
  border-radius: 8px;
  color: #034099;
  display: inline-flex;
  font-size: 24px;
  height: 50px;
  justify-content: center;
  margin-bottom: 18px;
  width: 50px;
}

.home-refresh .info-card h3 {
  color: #17233a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.home-refresh .info-card p {
  color: #5d6b82;
  line-height: 1.8;
  margin: 0;
}

.home-refresh .info-card ul {
  color: #32415a;
  line-height: 1.9;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-refresh .info-card ul li {
  padding-left: 20px;
  position: relative;
}

.home-refresh .info-card ul li::before {
  color: #10b981;
  content: "•";
  font-size: 15px;
  left: 2px;
  line-height: 1.6;
  position: absolute;
}

/* ============================ 提示条 ============================ */

.home-refresh .zh-alert {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  padding: 14px 18px;
}

.home-refresh .zh-alert-success {
  background: #ecfdf5;
  border: 1px solid #b7ebd3;
  color: #0f766e;
}

.home-refresh .zh-alert-error {
  background: #fef2f2;
  border: 1px solid #fecdd3;
  color: #b42318;
}

.home-refresh .zh-alert-info {
  background: #eef5ff;
  border: 1px solid #cfe0f8;
  color: #1e3a66;
}

/* ============================ 表单补充 ============================ */

.home-refresh .hp-field {
  height: 1px !important;
  left: -9999px !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  width: 1px !important;
}

.home-refresh .form-control.is-invalid,
.home-refresh .contact-form .form-control.is-invalid {
  border-color: #e11d48;
}

.home-refresh .field-error {
  color: #e11d48;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}

.home-refresh .form-hint {
  color: #7b8798;
  font-size: 13px;
  line-height: 1.75;
  margin: 14px 0 0;
}

.home-refresh .form-label-sm {
  color: #17233a;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-refresh .zh-form-msg {
  display: none;
}

.home-refresh .zh-form-msg.is-visible {
  display: block;
}

.home-refresh .contact-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

/* ============================ 留言板 ============================ */

.home-refresh .board-summary {
  align-items: center;
  color: #5d6b82;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-refresh .board-summary strong {
  color: #034099;
  font-size: 20px;
}

.home-refresh .board-list {
  display: grid;
  gap: 16px;
}

.home-refresh .board-item {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-refresh .board-item:hover {
  border-color: rgba(3, 64, 153, 0.28);
  box-shadow: 0 14px 34px rgba(21, 40, 74, 0.07);
}

.home-refresh .board-item-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.home-refresh .board-name {
  align-items: center;
  color: #17233a;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
}

.home-refresh .board-name i {
  color: #034099;
}

.home-refresh .board-type {
  background: #e9f1ff;
  border-radius: 999px;
  color: #034099;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
}

.home-refresh .board-time {
  color: #8a97ab;
  font-size: 13px;
  margin-left: auto;
}

.home-refresh .board-content {
  color: #32415a;
  line-height: 1.9;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-line;
  word-break: break-word;
}

.home-refresh .board-reply {
  background: #f2f8ff;
  border-left: 3px solid #034099;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  padding: 16px 18px;
}

.home-refresh .board-reply strong {
  align-items: center;
  color: #034099;
  display: flex;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 8px;
}

.home-refresh .board-reply p {
  color: #32415a;
  line-height: 1.85;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-line;
  word-break: break-word;
}

.home-refresh .board-empty {
  background: #ffffff;
  border: 1px dashed #d5dfec;
  border-radius: 8px;
  color: #5d6b82;
  line-height: 1.8;
  padding: 46px 24px;
  text-align: center;
}

.home-refresh .board-empty i {
  color: #c3d2e6;
  display: block;
  font-size: 40px;
  margin-bottom: 14px;
}

/* ============================ 首页留言墙 ============================ */

.home-refresh .wall-section {
  background: #071a36;
}

.home-refresh .wall-section .section-header h2 {
  color: #ffffff;
}

.home-refresh .wall-section .section-header h2 span {
  color: #8ee0c2;
}

.home-refresh .wall-section .section-header p {
  color: #cdd9eb;
}

.home-refresh .wall-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-refresh .wall-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.home-refresh .wall-item-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.home-refresh .wall-item-head strong {
  color: #ffffff;
  font-size: 15px;
}

.home-refresh .wall-item-head span {
  background: rgba(142, 224, 194, 0.16);
  border-radius: 999px;
  color: #8ee0c2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.home-refresh .wall-item-head em {
  color: #9fb2cd;
  font-size: 12px;
  font-style: normal;
  margin-left: auto;
}

.home-refresh .wall-item p {
  color: #e3edfb;
  line-height: 1.85;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.home-refresh .wall-item .wall-reply {
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  color: #8ee0c2;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  padding-top: 14px;
  white-space: pre-line;
}

.home-refresh .wall-empty {
  color: #cdd9eb;
  line-height: 1.9;
  text-align: center;
}

.home-refresh .wall-actions {
  margin-top: 30px;
  text-align: center;
}

/* ============================ 通用按钮 ============================ */

.home-refresh .zh-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  color: #034099;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
  padding: 14px 26px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-refresh .zh-btn:hover {
  background: #8ee0c2;
  border-color: #8ee0c2;
  color: #06224b;
}

.home-refresh .zh-btn-outline {
  background: transparent;
  border-color: #cfdceb;
  color: #034099;
}

.home-refresh .zh-btn-outline:hover {
  background: #034099;
  border-color: #034099;
  color: #ffffff;
}

/* ============================ 分页 ============================ */

.home-refresh .zh-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.home-refresh .zh-pagination a,
.home-refresh .zh-pagination span {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #32415a;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
}

.home-refresh .zh-pagination a:hover {
  border-color: #034099;
  color: #034099;
}

.home-refresh .zh-pagination .is-active {
  background: #034099;
  border-color: #034099;
  color: #ffffff;
}

.home-refresh .zh-pagination .is-disabled {
  color: #b6c1d1;
}

/* ============================ 响应式 ============================ */

/* 小屏幕下顶部信息条会被隐藏，页头不需要再向上偏移 120px */
@media (max-width: 787px) {
  .home-refresh .page-hero {
    margin-top: -80px;
  }
}

@media (max-width: 991px) {
  .home-refresh .page-hero {
    padding: 150px 0 60px;
  }

  .home-refresh .page-hero h1 {
    font-size: 32px;
  }

  .home-refresh .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-refresh .page-hero {
    padding: 140px 0 52px;
  }

  .home-refresh .page-hero h1 {
    font-size: 26px;
  }

  .home-refresh .page-hero p {
    font-size: 15px;
  }

  .home-refresh .board-item {
    padding: 20px;
  }

  .home-refresh .board-time {
    margin-left: 0;
    width: 100%;
  }

  .home-refresh .wall-grid {
    grid-template-columns: 1fr;
  }

  .home-refresh .info-card {
    padding: 22px;
  }
}

/* ============================ 开源软件栏目 ============================ */

.home-refresh .os-project {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(21, 40, 74, 0.05);
  padding: 34px;
}

.home-refresh .os-project-head {
  align-items: center;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
  padding-bottom: 22px;
}

.home-refresh .os-project-icon {
  align-items: center;
  background: #034099;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 60px;
  font-size: 28px;
  height: 60px;
  justify-content: center;
}

.home-refresh .os-project-title {
  flex: 1 1 320px;
}

.home-refresh .os-project-title h2 {
  color: #17233a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}

.home-refresh .os-tagline {
  color: #0f766e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.home-refresh .os-badge {
  background: #ecfdf5;
  border: 1px solid #c9f0df;
  border-radius: 999px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 14px;
  white-space: nowrap;
}

.home-refresh .os-block {
  margin-top: 24px;
}

.home-refresh .os-label {
  align-items: center;
  color: #034099;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
}

.home-refresh .os-label i {
  font-size: 16px;
}

.home-refresh .os-block .lead-text {
  margin: 0;
}

.home-refresh .os-block .case-feature-grid {
  margin-top: 0;
}

.home-refresh .os-note {
  color: #5d6b82;
  line-height: 1.8;
  margin: 0;
}

.home-refresh .os-pending {
  align-items: center;
  background: #f6f9fd;
  border: 1px dashed #d5dfec;
  border-radius: 8px;
  color: #8a97ab;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
}

/* 演示截图 */

.home-refresh .os-shot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-refresh .os-shot {
  background: #eef3f9;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.home-refresh .os-shot img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.home-refresh .os-shot:hover img {
  transform: scale(1.03);
}

.home-refresh .os-shot-empty {
  align-items: center;
  background: #f6f9fd;
  border: 1px dashed #d5dfec;
  border-radius: 8px;
  color: #5d6b82;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 38px 22px;
  text-align: center;
}

.home-refresh .os-shot-empty i {
  color: #c3d2e6;
  font-size: 34px;
}

.home-refresh .os-shot-empty p {
  line-height: 1.8;
  margin: 0;
  max-width: 560px;
}

/* 仓库 / 下载 / 演示 链接 */

.home-refresh .os-links {
  border-top: 1px dashed #e0e8f2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
}

.home-refresh .os-link {
  align-items: center;
  background: #034099;
  border: 1px solid #034099;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-refresh .os-link:hover {
  background: #062f70;
  border-color: #062f70;
  color: #ffffff;
}

.home-refresh .os-link-ghost {
  background: #ffffff;
  border-color: #cfdceb;
  color: #034099;
}

.home-refresh .os-link-ghost:hover {
  background: #034099;
  border-color: #034099;
  color: #ffffff;
}

.home-refresh .os-link-pending,
.home-refresh .os-link-pending:hover {
  background: #f4f7fb;
  border: 1px dashed #d5dfec;
  color: #8a97ab;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .home-refresh .os-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-refresh .os-project {
    padding: 20px;
  }

  .home-refresh .os-project-title h2 {
    font-size: 22px;
  }

  .home-refresh .os-project-icon {
    flex-basis: 50px;
    font-size: 24px;
    height: 50px;
  }

  .home-refresh .os-shot-grid {
    grid-template-columns: 1fr;
  }

  .home-refresh .os-links .os-link {
    justify-content: center;
    width: 100%;
  }
}
