/* ================ 主页专用样式 - 移动端优先 ================ */

/* ========== 通用区域标题样式 ========== */
.home-section-title {
  letter-spacing: 0.25rem;
  font-size: 24px;
  font-weight: 700;
  border-top: 1px solid transparent;
  margin-bottom: 8px;
  text-align: center;
  padding: 0 20px;
}

.home-section-english {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  padding: 0 20px;
}

/* ========== Hero 区域 - 基础样式（移动端） ========== */
.home-hero {
  background-image: url(../images/background-faqs.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 60px;
}

.home-hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: var(--black);
}

.home-hero__title {
  font-size: 24px;
  font-weight: 500;
  margin: 40px 0 16px 0;
  border-top: 1px solid transparent;
  line-height: 1.3;
}

.home-hero__title span {
  color: var(--red);
  display: block;
  text-align: center;
  margin: 8px 0;
}

.home-hero__slogan {
  position: relative;
  display: inline-block;
  margin: 0 0 16px 0;
}

.home-hero__slogan i {
  position: relative;
  font-size: 18px;
  color: var(--blue);
  z-index: 1;
}

.home-hero__slogan svg {
  position: absolute;
  bottom: -0.75em;
  left: -0.5em;
  width: calc(100% + 1em);
  height: 1em;
  color: rgb(147, 197, 253);
  pointer-events: none;
}

.home-hero__slogan svg path {
  fill: currentColor;
}

.home-hero__btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 24px 0;
}

.home-hero__btn-group a {
  width: 100%;
  max-width: 200px;
  padding: 0 20px;
  border-radius: 1.25rem;
  height: 42px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* 免费试用按钮 */
.home-hero__btn-group a:first-child {
  background-color: var(--blue);
  color: white;
  border: none;
}

.home-hero__btn-group a:first-child:hover {
  background-color: #1d4ed8;
}

/* 在线演示按钮 */
.home-hero__btn-group a:last-child {
  background-color: white;
  color: #2563eb;
  border: 1px solid #2563eb;
  box-sizing: border-box;
}

.home-hero__btn-group a:last-child:hover {
  background-color: var(--light-gray);
}

.home-hero__btn-group svg {
  width: 0.75rem;
  height: 0.75rem;
}

.home-hero__platform {
  font-size: 14px;
  margin-top: 20px;
}

.home-hero__win {
  width: 100%;
  max-width: 100%;
}

/* ========== 产品中心区域 - 基础样式（移动端） ========== */
.home-product {
  background-image: url(../images/background-features.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 0;
}

.home-product__group {
  max-width: var(--max-width);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.home-product__card {
  background-color: white;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-product__card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: .5rem .5rem 0 0;
}

.home-product__card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 8px 0;
}

.home-product__card p {
  font-size: 14px;
  margin: 0 16px 16px;
  text-align: left;
  line-height: 1.4;
  color: var(--gray);
}

.home-product__card:hover {
  background-color: var(--gray);
  transform: translateY(-4px);
}

.home-product__card:hover h3,
.home-product__card:hover p {
  color: white;
}

/* ========== 应用案例区域 - 基础样式（移动端） ========== */
.home-application {
  background-image: url(../images/background-faqs.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 0;
}

.home-application ul {
  max-width: var(--max-width);
  list-style: none;
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.home-application li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-application li a {
  display: block;
  width: 100%;
  max-width: 320px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
}

.home-application li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.home-application li img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.home-application li .item-title {
  margin: 12px 0;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.4em;
  text-align: center;
  height: auto;
  white-space: normal;
}

/* ========== 新闻中心区域 - 基础样式（移动端） ========== */
.home-news {
  background-image: url(../images/background-features.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 0;
}

.home-news__group {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.home-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  height: auto;
  flex: 1;
  min-width: auto;
}

/* 置顶新闻样式 - 移动端 */
.home-news ul.news-list.sticky li {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news ul.news-list.sticky li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.home-news ul.news-list.sticky li a {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 8px;
}

.home-news ul.news-list.sticky li img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.home-news ul.news-list.sticky li:hover img {
  transform: scale(1.05);
}

.home-news ul.sticky .news-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  width: 100%;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  margin-top: 0;
}

.home-news ul.sticky .news-label .title {
  position: relative;
  font-size: 1.25rem;
  height: auto;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 8px 0;
  padding: 0;
  background-color: transparent;
}

.home-news ul.sticky .news-label .title span {
  display: none;
}

.home-news ul.sticky .news-label h3 {
  font-size: 18px;
  height: auto;
  line-height: 1.4;
  font-weight: 700;
  padding: 0;
  background-color: transparent;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-news ul.sticky .news-label p {
  margin: 8px 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  max-height: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-news ul.news-list.sticky li .news-date {
  display: block;
  text-align: left;
  padding: 0;
  font-size: 12px;
  color: #666;
}

/* 最新新闻样式 - 移动端 */
.home-news ul.news-list.recent {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-news ul.news-list.recent li a {
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 0;
  height: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.home-news ul.news-list.recent li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-news ul.news-list.recent li img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.home-news ul.news-list.recent li a:hover img {
  transform: scale(1.05);
}

.home-news ul.news-list.recent li .news-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.home-news ul.news-list.recent li .news-label h3 {
  font-size: 18px;
  line-height: 1.4;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-news ul.news-list.recent li .news-label p {
  font-size: 14px;
  line-height: 1.4;
  max-height: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.home-news ul.news-list.recent li .news-date {
  align-self: flex-end;
  font-size: 12px;
  color: #666;
}

/* ========== 合作伙伴区域 - 基础样式（移动端） ========== */
.home-partners {
  text-align: center;
  padding: 40px 0;
}

.home-partners__group {
  max-width: var(--max-width);
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
  align-items: center;
}

.home-partners__group img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

/* ========== 侧边栏样式 - 基础样式（移动端隐藏） ========== */
.side-bar {
  display: none;
}

/* ========== 返回顶部按钮 - 基础样式（移动端） ========== */
.back-to-top {
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background-color: rgba(220, 38, 38, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.back-to-top:hover {
  background-color: #b91c1c;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========== Footer 样式 - 基础样式（移动端） ========== */
footer {
  width: 100%;
  background-color: #f3f4f6;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-content-ja {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.qrcodes {
  display: flex;
  gap: 2rem;
  text-align: center;
}

.qrcode-item img {
  width: 8rem;
  height: auto;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  font-size: 0.875rem;
  color: #64748b;
  width: 100%;
}

.footer-links span,
.footer-links a {
  margin-right: 0.5rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
}

/* ================ 桌面端样式 (1200px及以上) ================ */
@media (min-width: 1200px) {

  /* 通用区域标题样式 - 桌面端 */
  .home-section-title {
    font-size: 32px;
    margin-bottom: 0;
    text-align: center;
    padding: 0;
  }

  .home-section-english {
    font-size: 18px;
    margin-bottom: 0;
    text-align: center;
    padding: 0;
  }

  /* Hero 区域 - 桌面端 */
  .home-hero {
    padding-top: 72px;
  }

  .home-hero__content {
    padding-bottom: 64px;
    padding: 40px 0;
  }

  .home-hero__title {
    font-size: 48px;
    margin: 100px 0 16px 0;
    line-height: normal;
  }

  .home-hero__title span {
    display: inline;
    margin: 0;
  }

  .home-hero__slogan i {
    font-size: 32px;
  }

  .home-hero__btn-group {
    flex-direction: row;
    gap: 1.5rem;
    margin: 20px 0;
  }

  .home-hero__btn-group a {
    width: auto;
    max-width: none;
    padding: 0 1.25rem;
    justify-content: center;
  }

  .home-hero__platform {
    font-size: 20px;
    margin-top: 0;
  }

  .home-hero__win {
    max-width: var(--max-width);
  }

  /* 产品中心区域 - 桌面端 */
  .home-product {
    padding: 4rem 0;
  }

  .home-product__group {
    margin: 4rem auto 0;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    padding: 0;
  }

  .home-product__card {
    width: 30rem;
    max-width: none;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .home-product__card img {
    width: 30rem;
    height: 20rem;
    max-height: none;
  }

  .home-product__card h3 {
    font-size: 24px;
    margin: 1rem 0;
  }

  .home-product__card p {
    font-size: 1rem;
    margin: 0 2rem 2rem;
    line-height: 1.5rem;
  }

  .home-product__card:hover {
    transform: translateY(-0.5rem);
  }

  /* 应用案例区域 - 桌面端 */
  .home-application {
    padding: 4rem 0;
  }

  .home-application ul {
    margin: 4rem auto 0;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-gap: 2rem 0;
  }

  .home-application li a {
    width: 320px;
    max-width: none;
  }

  .home-application li a:hover {
    transform: translateY(-8px);
  }

  .home-application li img {
    width: 320px;
    height: 180px;
    max-height: none;
  }

  .home-application li .item-title {
    margin: 1rem 0;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.4em;
    height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 新闻中心区域 - 桌面端 */
  .home-news {
    padding: 4rem 0;
  }

  .home-news__group {
    padding: 40px 20px;
    flex-direction: row;
    gap: 2rem;
  }

  .home-news ul {
    height: 480px;
    min-width: 300px;
  }

  /* 置顶新闻样式 - 桌面端 */
  .home-news ul.news-list.sticky li {
    height: 100%;
    min-height: auto;
  }

  .home-news ul.news-list.sticky li:hover {
    transform: translateY(-8px);
  }

  .home-news ul.news-list.sticky li a {
    margin-bottom: 16px;
  }

  .home-news ul.news-list.sticky li img {
    height: 100%;
  }

  .home-news ul.sticky .news-label {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 90%;
    padding: 3rem 0 .5rem 0;
  }

  .home-news ul.sticky .news-label .title {
    font-size: 1.25rem;
    height: 3rem;
    line-height: 3rem;
    margin: 0;
    padding: 0;
    background-color: #c7d2fe;
  }

  .home-news ul.sticky .news-label .title span {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-25%);
    display: block;
    width: 3rem;
    height: 3rem;
    border-right: 4px solid var(--blue);
  }

  .home-news ul.sticky .news-label h3 {
    font-size: 1.25rem;
    height: 3rem;
    line-height: 3rem;
    padding: 0 .5rem 0 3.5rem;
    background-color: #c7d2fe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-news ul.sticky .news-label p {
    margin: 1rem 0;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    max-height: 4.5rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.5rem * 3);
  }

  .home-news ul.news-list.sticky li .news-date {
    text-align: right;
    padding-right: 1rem;
    font-size: 1rem;
    color: inherit;
  }

  /* 最新新闻样式 - 桌面端 */
  .home-news ul.news-list.recent {
    justify-content: space-between;
    gap: 0;
  }

  .home-news ul.news-list.recent li a {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 0;
  }

  .home-news ul.news-list.recent li a:hover {
    transform: translateY(-5px);
  }

  .home-news ul.news-list.recent li img {
    width: 9rem;
    height: 9rem;
    flex-shrink: 0;
    flex-grow: 0;
  }

  .home-news ul.news-list.recent li .news-label {
    position: static;
    padding: 1rem;
    background: transparent;
  }

  .home-news ul.news-list.recent li .news-label h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
    height: 1.5rem;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .home-news ul.news-list.recent li .news-label p {
    font-size: 1rem;
    line-height: 1.5rem;
    max-height: 3rem;
    max-height: calc(1.5rem * 2);
    margin-bottom: 0;
  }

  .home-news ul.news-list.recent li .news-date {
    font-size: 1rem;
    color: inherit;
  }

  /* 合作伙伴区域 - 桌面端 */
  .home-partners {
    padding: 4rem 0;
  }

  .home-partners__group {
    margin: 2.5rem auto;
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
  }

  .home-partners__group img {
    width: auto;
    max-width: none;
  }

  /* 侧边栏样式 - 桌面端显示 */
  .side-bar {
    position: fixed;
    right: 2px;
    top: 50%;
    z-index: 10;
    display: block;
  }

  .side-bar ul {
    list-style: none;
  }

  .side-item {
    display: block;
    width: 70px;
    height: 70px;
    background-color: #eee;
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    padding: 8px 4px 4px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .side-item:hover {
    background-color: #0066cc;
    color: white;
  }

  .side-item svg {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    display: block;
  }

  .hover-image {
    display: none;
    position: absolute;
    left: -150px;
    top: 0;
    width: auto;
    height: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
  }

  .side-item:hover .hover-image {
    display: block;
  }

  .phone-number {
    display: none;
    position: absolute;
    right: 70px;
    top: 0;
    width: 170px;
    height: 70px;
    line-height: 70px;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    background-color: #f8f9fa;
    padding-left: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .side-item:hover .phone-number {
    display: block;
    color: #333;
  }

  /* 返回顶部按钮 - 桌面端 */
  .back-to-top {
    width: 50px;
    height: 50px;
  }

  .back-to-top svg {
    width: 24px;
    height: 24px;
  }

  /* Footer 样式 - 桌面端 */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-content-ja {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .footer-links {
    margin-top: 0;
    text-align: center;
  }
}