/* 关于我们内页（仅配合 all.css，勿引用 index.css） */

.page-about {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 48px;
}

.about-page-hero {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 20px;
}

.about-breadcrumb {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.about-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.about-breadcrumb a:hover {
  text-decoration: underline;
}

.about-breadcrumb span[aria-hidden="true"] {
  margin: 0 6px;
  opacity: 0.5;
}

.about-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.about-lead {
  margin: 0;
  max-width: 640px;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* 富文本输出区：仅约束常见标签，避免依赖编辑器内联 class */
.about-rich-html {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
  /* 在 flex/grid 子项中允许收缩，避免子内容把整行撑破 */
  min-width: 0;
  /* 长单词、URL、无空格英文等自动断行，不横向溢出 */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  /* 极宽内容（如大表格）在容器内横向滚动，不撑破页面 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 覆盖富文本内联/编辑器带来的 nowrap，强制可换行（需压过内联样式故用 !important） */
.about-rich-html * {
  white-space: normal !important;
  text-wrap: wrap !important;
}

.about-rich-html pre,
.about-rich-html code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.about-rich-html pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap !important;
  word-break: break-word;
}

.about-rich-html iframe,
.about-rich-html embed,
.about-rich-html object {
  max-width: 100%;
}

.about-rich-html h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.02em;
}

.about-rich-html > p:first-of-type {
  margin: 0 auto 36px;
  max-width: 720px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

.about-rich-html p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
}

.about-rich-html p:last-child {
  margin-bottom: 0;
}

.about-rich-html h3 {
  margin: 28px 0 12px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
}

.about-rich-html ul,
.about-rich-html ol {
  margin: 0 0 1rem;
  padding-left: 1.25em;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
}

.about-rich-html li {
  margin-bottom: 0.35em;
}

.about-rich-html a {
  color: var(--blue);
}

.about-rich-html img,
.about-rich-html video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.about-rich-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.about-rich-html th,
.about-rich-html td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  text-align: left;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 企业目标 / 企业文化：每项单独元素 */
.about-pillars {
  max-width: var(--maxw);
  margin: 40px auto 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.about-pillar {
  margin: 0;
  padding: 24px 20px 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.about-pillar-heading {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-pillar-heading::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  flex-shrink: 0;
}

.about-pillar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pillar-list li {
  margin: 0;
}

.about-pillar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  border: 1px solid rgba(30, 91, 184, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-pillar-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 91, 184, 0.08);
}

.about-pillar--culture .about-pillar-heading::before {
  background: linear-gradient(180deg, var(--purple), var(--blue));
}

.about-pillar--culture .about-pillar-item {
  background: linear-gradient(160deg, var(--purple-soft), #fff);
  border-color: rgba(124, 111, 214, 0.15);
}

.about-pillar--culture .about-pillar-item:hover {
  box-shadow: 0 6px 16px rgba(124, 111, 214, 0.12);
}

/* 服务范围 */
.scope-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .scope-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.scope-item {
  margin: 0;
  padding: 20px 18px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.scope-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--text);
}

.scope-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.scope-footnote {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 14px 18px;
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.65;
  background: var(--blue-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 91, 184, 0.1);
}

/* 荣誉资质 */
#credentials .honor-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

#credentials .honor-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(30, 91, 184, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

#credentials .honor-item:hover {
  box-shadow: 0 6px 20px rgba(30, 91, 184, 0.08);
}

#credentials .honor-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 300px;
}

#credentials .honor-thumb-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

#credentials .honor-thumb-img:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

#credentials .honor-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#credentials .honor-lightbox.is-open {
  display: flex;
}

#credentials .honor-lightbox-scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

#credentials .honor-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(1200px, 100%);
  width: 100%;
  pointer-events: none;
}

#credentials .honor-lightbox-panel .honor-lightbox-nav {
  pointer-events: auto;
}

#credentials .honor-lightbox-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

#credentials .honor-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

#credentials .honor-lightbox-caption {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f1f5f9;
}

#credentials .honor-lightbox-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

#credentials .honor-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

#credentials .honor-lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 4001;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

#credentials .honor-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  #credentials .honor-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  #credentials .honor-lightbox-panel {
    gap: 4px;
  }
}

#credentials .honor-thumb.hp-t1 {
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

#credentials .honor-thumb.hp-t2 {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
}

#credentials .honor-thumb.hp-t3 {
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
}

#credentials .honor-thumb.hp-t4 {
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
}

#credentials .honor-thumb.hp-t5 {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

#credentials .honor-thumb.hp-t6 {
  background: linear-gradient(145deg, #cffafe, #a5f3fc);
}

#credentials .honor-label {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

#credentials .credentials-cta {
  max-width: var(--maxw);
  margin: 24px auto 0;
  text-align: center;
}

#credentials .credentials-cta .linkish {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}
