@import "../../common/base/index.css";
@import "../../common/layout/index.css";
@import "../../common/header/index.css";
@import "../../common/footer/index.css";

/* 英雄横幅 */
.hero {
  position: relative;
}
.hero .mask{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
}

.hero-banner {
  position: relative;
}
.hero-bg {
  height: 300px;
  background: url("/hilook/static/image/temp/bg1.jpg") center/cover no-repeat;
  filter: brightness(0.6);
  background-attachment: fixed;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}
/* 客户案例 */
.customer-cases {
  background: #fff;
  overflow: hidden;
}
.cases-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}
.cases-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.case-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.case-nav-item:hover {
  background: #f3f4f6;
}
.case-nav-item.active {
  background: #111827;
  color: #fff;
}
.case-nav-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.5rem;
}

.case-nav-item span {
  font-size: 0.875rem;
  text-align: center;
}
.case-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 4rem;
}
.case-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 1rem;
}
.case-left .section-title {
  font-size: 1.25rem;
}
.case-main-photo {
  height: 320px;
  width: 320px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.case-right {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.case-right h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}
.case-section {
  margin-bottom: 1.5rem;
}
.case-section h4 {
  display: inline;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}
.case-section p {
  display: inline;
  color: #6b7280;
  line-height: 1.6;
}

/* 公司产品介绍 */
.about-products {
  background: #fff;
}

.products-intro {
  color: #4b5563;
  line-height: 2.5;
  margin-bottom: 1.5rem;
}
.products-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-item {
  line-height: 2;
  color: #111827;
}
.feature-item strong {
  font-weight: 800;
}
.feature-item span {
  color: #4b5563;
}
.products-visual img {
  max-height: 420px;
  margin: 0 auto;
}

/* 公司优势 */
.about-advantages {
  position: relative;
}
.adv-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/hilook/static/image/temp/bg1.jpg") center/cover no-repeat;
  background-attachment: fixed;
  border-radius: 16px;
  padding: 3rem 1rem;
}
.adv-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}
.adv-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.adv-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2d2d2d;
  color: #e5e7eb;
  border-radius: 9999px;
  font-weight: 600;
}
.adv-tab.is-active {
  background: #fff;
  color: #111827;
}
.adv-list {
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.adv-item {
  line-height: 1.9;
  margin-bottom: 0.75rem;
}
.adv-item strong {
  color: #fe5b15;
  margin-right: 0.5rem;
}
.adv-visual {
  width: 100%;
  aspect-ratio: 16/9;
}
.adv-visual img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.adv-panels {
  margin-top: 1rem;
}
.adv-panel {
  display: none;
}
.adv-panel.is-active {
  display: block;
}
.adv-tab {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.adv-tab:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 工作流程 */
.workflow-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2rem;
}
.workflow-timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline-line {
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 2px;
  background: #111827;
}
.workflow-item {
  position: relative;
  margin: 2rem 0;
}
.workflow-item.left {
  padding-left: 2rem;
}
.workflow-item.right {
  padding-left: 2rem;
}

.workflow-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.15);
}

.workflow-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin-left: 4rem;
}
.workflow-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-media img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.workflow-content h3 {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.workflow-content p {
  color: #4b5563;
  line-height: 1.7;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .cases-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case-content {
    flex-direction: column;
    align-items: center;
  }
  .cases-sidebar {
    flex-direction: row;
    justify-content: center;
  }
  .case-nav-item {
    flex-direction: row;
    text-align: left;
  }
  .case-nav-photo {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .products-title {
    font-size: 2rem;
  }
  .adv-title {
    font-size: 1.75rem;
  }
  .adv-tabs {
    flex-direction: column;
    align-items: center;
  }
  .workflow-card {
    grid-template-columns: 200px 1fr;
    margin-left: 0rem;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    height: 300px;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .cases-sidebar {
    flex-direction: column;
  }
  .case-nav-item {
    flex-direction: column;
    text-align: center;
  }
  .case-nav-photo {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .feature-item {
    grid-template-columns: 1fr;
  }
  .products-title {
    font-size: 1.75rem;
  }
  .products-visual img {
    max-height: 360px;
  }
  .adv-item {
    grid-template-columns: 1fr;
  }
  .adv-bg {
    padding: 2rem 1rem;
  }
  .workflow-timeline {
    padding-left: 1.25rem;
  }
  .timeline-line {
    left: 16px;
  }
  .workflow-item::before {
    left: -12px;
  }
  .workflow-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-bg {
    height: 250px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .case-nav-item {
    padding: 0.5rem;
  }
  .products-title {
    font-size: 1.5rem;
  }
  .products-visual img {
    max-height: 300px;
  }
  .adv-title {
    font-size: 1.5rem;
  }
  .case-main-photo {
    height: 200px;
    width: 200px;
  }
}
