/* portal.css - 化工门户共用块样式（BEM 命名，流式布局版）
 * 适配 _LayoutPortal.cshtml 嵌套布局：每个模块为全宽 flex 块，顺序堆叠。
 * 数值参照 shouye/index.css 原型，但改为流式定位（不用绝对 margin 偏移）。
 * 包含：.page 根容器、TopBar、HeaderLogo、Nav、Breadcrumb、FriendLink、PortalFooter
 */

/* ===== .page 根容器 =====
 * 设计稿基于 1920px，内部内容保留 1:1 像素坐标；
 * 容器使用 width: 100% + overflow: hidden 防止窄屏出现横向滚动条，
 * 内容超出右侧部分会被裁剪（1920px 以下视口可见主要区域）。
 */
.page {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  min-width: 1200px;
}

/* ===== TopBar 顶部联系条 ===== */
.topbar {
  background-color: rgba(242, 242, 242, 1);
  width: 100%;
  height: 44.16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 355.2px;
  flex-shrink: 0;
}

.topbar__phone {
  width: 17.088px;
  height: 17.088px;
  flex-shrink: 0;
}

.topbar__text {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  margin-left: 1.92px;
}

.topbar__lang {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  margin-left: auto;
}

.topbar__arrow {
  width: 13.056px;
  height: 8.064px;
  margin-left: 5.952px;
  flex-shrink: 0;
}

/* ===== HeaderLogo LOGO 区 ===== */
.header-logo {
  background-color: rgba(236, 247, 255, 1);
  width: 100%;
  height: 170.112px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.header-logo__row1 {
  width: 100%;
  height: 100.032px;
  margin-top: 70.08px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.header-logo__main {
  width: 646.08px;
  height: 100.032px;
  flex-shrink: 0;
}

.header-logo__placeholder {
  overflow-wrap: break-word;
  color: rgba(41, 79, 152, 1);
  font-size: 17.856px;
  letter-spacing: 1.9px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 25.152px;
  margin: 30.912px 0 0 -157.824px;
}

.header-logo__icon1 {
  width: 189.12px;
  height: 88.128px;
  margin: 11.904px 0 0 451.968px;
  flex-shrink: 0;
}

.header-logo__icon2 {
  width: 331.008px;
  height: 68.16px;
  margin: 31.872px 0 0 15.936px;
  flex-shrink: 0;
}

/* 协会 Logo + 名称（绝对定位覆盖在 LOGO 区内） */
.header-logo__row2 {
  position: absolute;
  left: 354.048px;
  top: 44.16px;
  width: 622.08px;
  height: 82.176px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.header-logo__mini {
  width: 109.056px;
  height: 74.112px;
  margin-top: 8.064px;
  flex-shrink: 0;
}

.header-logo__mini-text {
  overflow-wrap: break-word;
  color: rgba(41, 79, 152, 1);
  font-size: 40.896px;
  font-family: PingFang-SC-Heavy, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 57.024px;
}

/* 搜索框（绝对定位在右侧） */
.header-logo__row3 {
  background-color: rgba(255, 255, 255, 1);
  position: absolute;
  left: 1081.152px;
  top: 60.096px;
  width: 472.128px;
  height: 50.112px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-logo__search-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.header-logo__search-input {
  flex: 1;
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  margin-left: 13.824px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  height: 100%;
  min-width: 0;
}

.header-logo__search-input::placeholder {
  color: rgba(102, 102, 102, 1);
  opacity: 1;
}

.header-logo__search-btn {
  background-color: rgba(218, 187, 133, 1);
  height: 50.112px;
  width: 71.04px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-logo__search-icon {
  width: 20.16px;
  height: 20.16px;
}

/* ===== Nav 主导航 ===== */
.nav {
  background-color: rgba(0, 104, 183, 1);
  width: 100%;
  height: 44.16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 347.136px;
  flex-shrink: 0;
}

.nav__item {
  display: inline-flex;
  align-items: center;
  height: 44.16px;
  padding: 0 13.824px;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 19.968px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
  margin-right: 14.976px;
}

.nav__item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav__item--active {
  background-color: rgba(213, 16, 13, 1);
  border-bottom: 3.072px solid rgba(255, 255, 255, 1);
  font-weight: bold;
}

.nav__item--active:hover {
  background-color: rgba(213, 16, 13, 0.9);
}

/* ===== Breadcrumb 面包屑 ===== */
.breadcrumb {
  background-color: rgba(245, 245, 245, 1);
  width: 100%;
  height: 49.92px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 354.816px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(221, 221, 221, 1);
}

.breadcrumb__label {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  margin-right: 7.68px;
}

.breadcrumb__item {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  text-decoration: none;
  margin-right: 5.76px;
}

.breadcrumb__item:hover {
  color: rgba(0, 104, 183, 1);
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: rgba(0, 104, 183, 1);
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
}

.breadcrumb__arrow {
  width: 5.952px;
  height: 9.984px;
  margin-right: 5.76px;
  flex-shrink: 0;
}

/* ===== FriendLink 友情链接 ===== */
.friend-link {
  background-color: rgba(0, 104, 183, 1);
  width: 100%;
  height: 80.064px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 max(16px, calc((100vw - 1200px) / 2));
  justify-content: center;
  flex-shrink: 0;
}

.friend-link__label {
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 22.08px;
  margin-right: 9.6px;
  flex-shrink: 0;
}

.friend-link__group {
  position: relative;
  background-color: rgba(0, 104, 183, 1);
  width: 212.16px;
  height: 38.016px;
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 13.824px;
  padding: 0 9.984px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.friend-link__group:hover,
.friend-link__group.is-open {
  background-color: rgba(255, 255, 255, 0.15);
}

.friend-link__group-text {
  flex: 1;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 13.824px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 20.16px;
}

.friend-link__group-arrow {
  width: 12.096px;
  height: 7.104px;
  flex-shrink: 0;
  margin-left: 5.76px;
  transition: transform .15s ease;
}

.friend-link__group.is-open .friend-link__group-arrow {
  transform: rotate(180deg);
}

/* 分类下拉：分类按钮本身是固定 5 个，下拉内容读 cms_friendlink */
.friend-link__dropdown {
  display: none;
  position: absolute;
  left: -1px;
  top: calc(100% + 6px);
  min-width: 100%;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  z-index: 30;
}

.friend-link__group.is-open .friend-link__dropdown {
  display: block;
}

.friend-link__dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.friend-link__dropdown a:hover {
  background: #f2f8fd;
  color: #0068b7;
}

.friend-link__dropdown-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== PortalFooter 底部版权 ===== */
.portal-footer {
  background-color: rgba(255, 255, 255, 1);
  position: relative;
  width: 100%;
  padding: 15.936px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.portal-footer__copyright {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: center;
  white-space: nowrap;
  line-height: 22.08px;
}

.portal-footer__sub {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 15.936px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: center;
  white-space: nowrap;
  line-height: 22.08px;
  margin-top: 9.984px;
}

.portal-footer__badge {
  position: static;
  display: inline-block;
  width: 14.016px;
  height: 16.128px;
  margin: 0 3px;
  vertical-align: -2px;
}


