:root {
  --company-green: #0b6f69;
  --company-green-dark: #075650;
  --company-green-soft: #eaf6f5;
  --company-bg: #f3f6f8;
  --company-line: #e2e8ec;
  --company-text: #172126;
  --company-muted: #66737c;
  --company-shadow: 0 5px 18px rgba(23, 47, 62, 0.065);
}

.company-detail-view {
  background: var(--company-bg);
  color: var(--company-text);
}

.company-detail-view .topbar {
  min-height: 58px;
  border-bottom-color: #e7ecef;
  box-shadow: 0 2px 12px rgba(24, 46, 61, 0.04);
}

.company-detail-view main {
  min-height: calc(100vh - 58px);
}

.company-detail-view .section.page-hero {
  width: min(100%, var(--page-frame-width));
  min-height: 0;
  padding: 18px 24px 44px;
}

.company-detail-view #company-page {
  width: 100%;
}

.company-profile-shell {
  display: grid;
  gap: 14px;
}

.company-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #77848d;
  font-size: 13px;
}

.company-breadcrumb a:hover,
.company-breadcrumb strong {
  color: var(--company-green);
}

.company-reference-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  overflow: hidden;
  padding: 26px 32px;
  border: 1px solid #dce6ec;
  border-radius: 7px;
  background: #fff url("../system-assets/banners/global-network.jpg") center 48% / cover no-repeat;
  box-shadow: var(--company-shadow);
}

.company-hero-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  max-width: 790px;
}

.company-reference-hero .company-page-logo {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  padding: 8px;
  border: 1px solid rgba(11, 111, 105, 0.16);
  border-radius: 7px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(30, 64, 84, 0.08);
}

.company-hero-copy {
  min-width: 0;
}

.company-hero-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.company-hero-heading h1 {
  margin: 0;
  color: #111a1f;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.company-hero-heading > span {
  padding: 4px 9px;
  border: 1px solid #cce6e3;
  border-radius: 999px;
  color: var(--company-green);
  background: rgba(234, 246, 245, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.company-hero-copy > p {
  max-width: 650px;
  margin: 12px 0 16px;
  color: #44525b;
  font-size: 14px;
  line-height: 1.7;
}

.company-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.company-hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a7780;
  font-size: 12px;
}

.company-hero-metrics svg {
  color: var(--company-green);
}

.company-hero-metrics strong {
  color: #243138;
  font-size: 13px;
}

.company-hero-actions {
  display: grid;
  flex: 0 0 170px;
  gap: 9px;
}

.company-hero-actions .btn,
.company-bottom-cta .btn {
  gap: 8px;
  white-space: nowrap;
}

.company-cooperate-btn {
  min-height: 46px;
  background: var(--company-green);
}

.company-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-quick-action {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 20px;
  border: 1px solid var(--company-line);
  border-radius: 7px;
  color: var(--company-text);
  background: #fff;
  box-shadow: var(--company-shadow);
  text-align: left;
  cursor: pointer;
}

.company-quick-action:hover {
  border-color: #a8d4d0;
  transform: translateY(-1px);
}

.company-quick-action:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.company-quick-icon,
.company-fact-icon {
  display: grid;
  place-items: center;
  color: var(--company-green);
  background: var(--company-green-soft);
}

.company-quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.company-quick-action strong,
.company-quick-action small {
  display: block;
}

.company-quick-action strong {
  margin-bottom: 2px;
  font-size: 16px;
}

.company-quick-action small {
  color: var(--company-muted);
  font-size: 12px;
}

.company-quick-action > svg {
  color: var(--company-green-dark);
}

.company-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.company-reference-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--company-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--company-shadow);
}

.company-reference-card h2,
.company-reference-card h3 {
  color: #202c32;
  letter-spacing: 0;
}

.company-reference-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.company-overview-card > p {
  margin: 0 0 16px;
  color: #52616a;
  font-size: 13px;
  line-height: 1.75;
}

.company-overview-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.company-overview-card .expo-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.company-overview-card .expo-field-grid > div {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
}

.company-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding-top: 3px;
}

.company-fact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.company-fact-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.company-fact small,
.company-fact strong {
  display: block;
}

.company-fact small {
  margin-bottom: 3px;
  color: #7a8790;
  font-size: 11px;
}

.company-fact strong {
  color: #334149;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.company-service-card {
  padding-bottom: 16px;
}

.company-service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.company-service-columns > .expo-field-grid,
.company-service-columns .supplier-extra-profile .expo-field-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.company-service-columns .expo-field-grid > div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
}

.company-service-columns .expo-field-grid dt {
  color: #334149;
  font-weight: 700;
}

.company-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 14px;
}

.company-service-tags .tag {
  border-color: #d8ebe9;
  color: var(--company-green-dark);
  background: #f2f9f8;
}

.company-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.company-showcase-grid > :only-child {
  grid-column: 1 / -1;
}

.company-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.company-section-heading h2 {
  margin: 0;
}

.company-section-heading > span {
  color: #819099;
  font-size: 12px;
}

.company-honor-section,
.company-case-section {
  overflow: hidden;
}

.company-honor-section .company-honor-list {
  gap: 10px;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.company-honor-section .company-honor-list::-webkit-scrollbar {
  display: none;
}

.company-honor-section .company-honor-card {
  min-width: 176px;
  max-width: 176px;
  padding: 8px;
  border-color: #e3e9ed;
  border-radius: 6px;
  box-shadow: none;
}

.company-honor-section .company-honor-image {
  aspect-ratio: 4 / 2.7;
  background: #f5f7f8;
}

.company-case-section .company-page-cases {
  grid-template-columns: 1fr;
}

.company-case-section .company-case-card {
  gap: 0;
  border-color: #e3e9ed;
  border-radius: 6px;
}

.company-case-section .company-case-copy {
  padding: 10px 12px 12px;
}

.company-case-section .company-case-copy h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.company-case-section .company-case-copy span {
  display: block;
  color: #71808a;
  font-size: 12px;
}

.company-intro-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
}

.company-intro-visual {
  overflow: hidden;
  min-height: 180px;
  border: 1px solid #e4eaee;
  border-radius: 6px;
  background: #edf5fb;
}

.company-intro-visual img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 45%;
}

.company-intro-copy .rich-content {
  color: #4f5e67;
  font-size: 13px;
  line-height: 1.8;
}

.company-intro-copy .rich-content > :first-child {
  margin-top: 0;
}

.company-intro-copy .rich-content > :last-child {
  margin-bottom: 0;
}

.company-news-section .article-row-rich {
  grid-template-columns: 110px 58px minmax(0, 1fr) auto;
  border-radius: 6px;
  box-shadow: none;
}

.company-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border-radius: 7px;
  color: #fff;
  background: var(--company-green-dark);
}

.company-bottom-cta strong,
.company-bottom-cta span {
  display: block;
}

.company-bottom-cta strong {
  font-size: 18px;
}

.company-bottom-cta span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.company-bottom-cta > div:last-child {
  display: flex;
  gap: 10px;
}

.company-bottom-cta .btn.secondary {
  min-width: 130px;
  color: var(--company-green-dark);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .company-reference-hero {
    align-items: flex-start;
  }

  .company-hero-actions {
    flex-basis: 138px;
  }

  .company-overview-grid,
  .company-showcase-grid,
  .company-intro-section {
    grid-template-columns: 1fr;
  }

  .company-showcase-grid > * {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .company-detail-view {
    overflow-x: hidden;
  }

  .company-detail-view .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 16px;
  }

  .company-detail-view .topbar .brand,
  .company-detail-view .topbar .user-badge {
    flex: 0 0 auto;
  }

  .company-detail-view .topbar .nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .company-detail-view .topbar .nav::-webkit-scrollbar {
    display: none;
  }

  .company-detail-view .topbar .nav a {
    flex: 0 0 auto;
  }

  .company-profile-shell,
  .company-reference-hero,
  .company-reference-card {
    min-width: 0;
    max-width: 100%;
  }

  .company-detail-view .section.page-hero {
    padding: 12px 14px 30px;
  }

  .company-reference-hero {
    display: grid;
    padding: 22px 18px;
    background-position: 58% 45%;
  }

  .company-hero-main {
    align-items: flex-start;
    gap: 15px;
  }

  .company-reference-hero .company-page-logo {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .company-hero-heading h1 {
    font-size: 23px;
  }

  .company-hero-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .company-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-quick-grid {
    grid-template-columns: 1fr;
  }

  .company-quick-action {
    min-height: 68px;
  }

  .company-overview-card .expo-field-grid,
  .company-facts-grid,
  .company-service-columns {
    grid-template-columns: 1fr;
  }

  .company-service-columns .expo-field-grid > div {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .company-intro-visual img {
    height: 170px;
  }

  .company-news-section .article-row-rich {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }

  .company-news-section .article-row-thumb {
    display: none;
  }

  .company-bottom-cta {
    display: grid;
  }

  .company-bottom-cta > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .company-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }

  .company-breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .company-hero-main {
    display: grid;
  }

  .company-hero-actions {
    grid-template-columns: 1fr;
  }

  .company-hero-metrics {
    display: grid;
    gap: 7px;
  }

  .company-reference-card {
    padding: 17px 15px;
  }

  .company-service-columns .expo-field-grid > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* 企业动态：保持企业主页的紧凑阅读密度，避免继承知识库的列表尺寸。 */
.company-detail-view .company-news-list .article-row {
  grid-template-columns: 74px 68px minmax(0, 1fr) auto;
  min-height: 92px;
  gap: 14px;
  padding: 12px 14px;
}

.company-detail-view .company-news-list .article-date {
  color: #5e7573;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.company-detail-view .company-news-list .article-row-thumb {
  width: 62px;
  height: 62px;
  border-color: #dce9e6;
  border-radius: 5px;
}

.company-detail-view .company-news-list .article-row-copy {
  gap: 4px;
}

.company-detail-view .company-news-list .article-row-copy strong {
  color: #183b39;
  font-size: 14px;
}

.company-detail-view .company-news-list .article-row-copy small {
  color: #6a807d;
  line-height: 1.5;
}

.company-detail-view .company-news-list .article-row em {
  padding: 4px 7px;
  border-radius: 4px;
  background: #e8f5f1;
  color: #08766c;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 680px) {
  .company-detail-view .company-news-list .article-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }
  .company-detail-view .company-news-list .article-row-thumb { display: none; }
  .company-detail-view .company-news-list .article-row em { grid-column: 2; justify-self: start; }
}
