﻿/* 新闻	 card 样式 */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /*    max-width: 360px;*/
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #E8E8E8;
}

.image-scale {
  overflow: hidden;
  border-radius: 10px;
}
.image-scale img{
  transition: all 0.3s ease;
}
.image-scale:hover img{
  transform: scale(1.02);
}
.text-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}
.card:hover {
  /* transform: translateY(-4px); */
  box-shadow:  0px 2px 27.7px rgba(89, 114, 179, 0.25);;
  cursor: pointer;
  border-color: transparent;
}
.card:hover .card__title {
  color: var(--color-main);
}
.card:hover .card__image {
  /* transform: scale(1.05); */
  /* box-shadow:  0px 2px 27.7px rgba(89, 114, 179, 0.25);; */
}
/* .card:hover .card__image img {
  transform: scale(1.05);
} */
/* 图片部分 */
.card__image {
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  height: 176px;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* border-radius: 10px; */
}
.card__tag1 {
  position: absolute;
  left: 18px;
  bottom: 20px;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 24, 65, 0.42);
  border: 1px solid #0072c4;
  border-radius: 4px;
}
/* 图片文字覆盖 */
.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 70%);
}
.card__highlight {
  color: #00aaff;
}
/* 正文部分 */
.card__content {
  padding: 16px 20px;
  flex: 1;
  /* display: flex; */
  flex-direction: column;
  /* border-left: 1px solid #e8e8e8; */
  /* border-right: 1px solid #e8e8e8; */
  /* border-bottom: 1px solid #e8e8e8; */
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 10px 0;
  line-height: 1.3;
  color: #111;
  min-height: 2.4em;
}
.card__meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}
.card__date {
  margin-right: 6px;
}
.card__description {
  margin: 0 0 12px 0;
  flex-grow: 1;
  /* he Xpedition product family has introduced has token-based add-on licensing; */
  font-family: "HarmonyOS Sans";
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  /* or 22px */
  color: #191919;
}
.card__tag {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  background-color: #ededed;
  color: #828282;
  padding: 6px 16px;
  display: inline-block;
  text-align: center;
  border-radius: 50px;
  font-size: 12px;
  line-height: 12px;
  color: #191919;
}
.article-list {
  /* background: #f8fafc; 背景淡灰 */
  border-radius: 6px;
  overflow: hidden;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
}
.article-list__header {
}
.image-scale-wrapper{
  width: 605px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
}
.article-list__title {
  font-size: 16px;
  font-weight: 600;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 24px;
  /* or 80% */
  color: #333333;
  padding: 45px 40px 30px 25px;
  /* color: #fff; */
  margin: 0;
}
.article-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-list__item {
  /* border-bottom: 1px solid #e5e7eb; */
}
.article-list__link {
  display: flex;
  gap: 20px;
  padding: 0px 22px 38px 22px;
  text-decoration: none;
  align-items: center;
  transition: background 0.2s;
}
.article-list__link:hover {
  background: #ffffff;
}
.article-list__image {
  width: 145px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border:1px solid #E8E8E8;
  transition: all 0.3s ease;
}
.article-list__item:hover .article-list__image{
  transform: scale(1.05);
}
.article-list__content {
  display: flex;
  flex-direction: column;
  height: 90px;
  justify-content: space-between;
  padding: 8px 0;
}
.article-list__headline {
  margin: 0 0 4px;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
}
.article-list__link:hover .article-list__headline {
  color: var(--color-main); /* hover 时变为主题色 */
}
.article-list__date {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #828282;
}
/* 分享和点赞区域 */
.share-actions {
  /* margin-top: 2rem; */
  /* border-top: 1px solid #e5e7eb; */
  /* padding-top: 1.5rem; */
}
.share-actions__row {
  display: flex;
  align-items: center;
}
.share-actions__votes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-actions__btn {
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.15rem 0.75rem;
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.share-actions__btn::after {
  content: attr(data-count);
  margin-left: 0.25rem;
  font-size: 13px;
}
.share-actions__btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}
.share-actions__btn:active {
  transform: scale(0.96);
}
.share-actions__btn--up.share-actions__btn--active {
  color: #0d9488;
  border-color: #0d9488;
  background-color: rgba(13, 148, 136, 0.05);
}
.share-actions__btn--down.share-actions__btn--active {
  color: #ef4444;
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}
.share-actions__btn i {
  font-size: 16px;
  transition: transform 0.2s ease;
}
.share-actions__btn--active i {
  transform: scale(1.2);
}
.share-actions__label {
  font-size: 14px;
  color: #333;
  margin-right: 0.25rem;
}
.share-actions__dot {
  font-size: 1.2rem;
  margin: 0 0.25rem;
  color: #333;
}
.share-actions__icon-btn {
  text-align: center;
  color: #333333;
  background: #ebebeb;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.share-actions__icon-btn svg {
  fill: #333333;
}
.share-actions__icon-btn:hover {
  background: #353535;
  color: #fff;
}
.share-actions__icon-btn:hover svg {
  fill: #fff;
}

/* 点赞动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.share-actions__btn--animate i {
  animation: pulse 0.4s ease-in-out;
}
/* 广告栏 */
.quote-card {
  width: 100%;
  border-radius: 2px;
  padding: 16px 30px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 88, 234, 0.7) 0%, #004dcb 100%);
  border-radius: 10px;
}
.quote-card__title {
  text-align: center;
  margin: 2px 0 14px;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-card__subtitle {
  text-align: center;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}
.quote-card__group {
  margin-bottom: 12px;
}
.quote-card__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-card__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
}
.quote-card__input,
.quote-card__select,
.quote-card__unit,
.quote-card__sep {
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: #fff;
  color: #2a2f33;
  font-size: 14px;
  padding: 0 12px;
  box-sizing: border-box;
  outline: none; /* 去掉默认的黑色聚焦边框 */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-card__input:focus,
.quote-card__select:focus {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(11, 110, 116, 0.15);
}
.quote-card__input {
  min-width: 0;
}
.quote-card__input::placeholder {
  color: #96a3a9;
}
.quote-card__sep,
.quote-card__unit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
}
.quote-card__sep {
  color: #5b6a70;
}
.quote-card__unit {
  color: #2a2f33;
  border-left: 1px solid #c2c2c2;
}
.quote-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quote-card__select {
  width: 100%;
  border: 1px solid #c2c2c2;
  appearance: none;
  background: #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23606c70" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>')
    no-repeat right 10px center;
  padding-right: 32px;
}
.quote-card__btn {
  margin-top: 10px;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--color-main);
  /* border: 1px solid var(--color-main); */
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quote-card__btn .fa {
  font-size: 14px;
}
.ah-header__nav-item {
  position: relative;
}
.ah-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  color: #263238;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-header__nav-link--active {
}
.ah-header__caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.ah-header__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e6ecef;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: none;
  z-index: 1000;
}
.ah-header__dropdown-item {
  list-style: none;
}
.ah-header__dropdown-link {
  display: block;
  padding: 10px 14px;
  color: #263238;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-header__dropdown-link:hover {
  background: #f1f7f7;
  color: #0e9898;
}
.ah-header__nav-item:hover .ah-header__dropdown,
.ah-header__nav-item:focus-within .ah-header__dropdown {
  display: block;
}
.ah-header__nav-item:hover .ah-header__caret,
.ah-header__nav-item:focus-within .ah-header__caret {
  transform: rotate(225deg);
}
.ah-side-menu {
  /* 移除 sticky，应用到内层 nav */
}
.ah-side-menu__section-title {
  text-align: left;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-size: 15px;
  line-height: 18px;
  color: #333;
  padding: 4px 10px;
}
.ah-side-menu__item span {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-size: 15px;
  line-height: 1.5em;
}
.aivonBtn:hover img {
  content: url("/aivon/static/img/Blog/home_hover.png");
}
/* Newsletter Subscription Section */
.aiv-newsletter {
  background-color: #f5f7fa;
  padding: 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/aivon/static/img/Blog/bg_email.png") no-repeat
    center center;
  background-size: cover;
}

.aiv-newsletter__container {
  width: 1300px;
  margin: 0 auto;
  padding: 30px 90px;
  display: flex;
  align-items: center;
  gap: 80px;
  background-color: #fff;
}

.aiv-newsletter__logo {
  flex-shrink: 0;
}

.aiv-newsletter__logo-img {
  width: 199px;
  height: auto;
  display: block;
}

.aiv-newsletter__content {
  flex: 1;
  max-width: 600px;
}

.aiv-newsletter__text {
  font-size: 16px;
  line-height: 1.6;
  color: #1a202c;
  margin-bottom: 12px;
}

.aiv-newsletter__form {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.aiv-newsletter__input {
  flex: 1;
  padding: 14px 20px;
  min-width: 660px;
  font-size: 16px;
  border: 1px solid #e8ecef;
  border-right: none;
  border-radius: 4px 0 0 4px;
  background-color: #ffffff;
  color: #1a202c;
  outline: none;
  transition: all 0.3s ease;
}

.aiv-newsletter__input::placeholder {
  color: #718096;
}

.aiv-newsletter__input:focus {
  border-color: #0066ff;
}

.aiv-newsletter__button {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #0066ff;
  border: 1px solid #0066ff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.aiv-newsletter__button:hover {
  background-color: #0052cc;
  border-color: #0052cc;
}

.aiv-newsletter__button:active {
  transform: translateY(1px);
}

.aiv-newsletter__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.aiv-newsletter__button:hover .aiv-newsletter__arrow {
  transform: translateX(4px);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .aiv-newsletter__container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .aiv-newsletter__logo-img {
    width: 200px;
  }

  .aiv-newsletter__form {
    flex-direction: column;
  }

  .aiv-newsletter__input {
    border-right: 1px solid #e8ecef;
    border-radius: 4px;
  }

  .aiv-newsletter__button {
    border-radius: 4px;
    justify-content: center;
  }
}
/* Electrical Sense Section */
.aiv-electrical-section {
  background-color: #eff5ff;
}

.aiv-electrical-content {
  background-color: #edf2f7;
  border-radius: 8px;
  padding: 18px 10px 20px;
}

.aiv-electrical-content__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a202c;
  margin-bottom: 24px;
  padding-left: 18px;
}

.aiv-electrical-content__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aiv-electrical-content__item {
  position: relative;
  margin-bottom: 16px;
  line-height: 1.6;
}

.aiv-electrical-content__item:last-child {
  margin-bottom: 0;
}

.aiv-electrical-content__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a202c;
  text-decoration: underline;
  text-decoration-color: #1a202c;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 34px;
  /* or 243% */
  text-indent: 30px;
  text-decoration-line: underline;

  color: #191919;
}
