/* 首页样式 */

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 320px; /* IE 兜底：不支持 aspect-ratio 时不塌陷 */
  max-height: 520px;
  margin-top: 80px;
  margin-top: var(--header-height);
  overflow: hidden;
  background: #fff;
}

.banner-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide .bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  transform: none;
  transition: transform 6s ease;
}

.banner-slide.active .bg {
  transform: none;
}

.banner-slide::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: transparent;
  z-index: 1;
}

.banner-content {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 860px;
}

.banner-kicker {
  font-size: 15px;
  letter-spacing: 4px;
  opacity: 0.92;
  margin-bottom: 18px;
}

.banner-content h2 {
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 17px;
  letter-spacing: 3px;
  opacity: 0.92;
}

.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-dots span {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dots span.active {
  background: #fff;
  width: 44px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.4);
}

.banner-arrow.prev {
  left: 32px;
}

.banner-arrow.next {
  right: 32px;
}

/* ===== 企业关键数据条 ===== */
.stats-strip {
  background: var(--color-primary-dark);
  color: #fff;
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 36px 0;
}

.stats-list li {
  text-align: center;
  position: relative;
}

.stats-list li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
}

.stats-list .num {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-light);
  font-family: Georgia, 'Times New Roman', serif;
}

.stats-list .num span {
  font-size: 16px;
  margin-left: 4px;
  font-weight: 400;
}

.stats-list .label {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== 项目案例等高网格 ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 4 / 3;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover .cover,
.project-card:focus-visible .cover {
  transform: scale(1.05);
}

.project-card .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-card:hover .info,
.project-card:focus-visible .info {
  opacity: 1;
  transform: translateY(0);
}

.project-card .tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.project-card .title {
  font-size: 16px;
  letter-spacing: 1px;
}

.project-card .meta {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== 横向工艺关键词跑马灯 ===== */
.slogan-marquee {
  background: #1f1a14;
  color: var(--color-primary-light);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
}

.slogan-track {
  display: inline-block;
  animation: marquee 36s linear infinite;
}

.slogan-track span {
  display: inline-block;
  padding: 0 36px;
  font-size: 17px;
  letter-spacing: 4px;
  font-weight: 300;
}

.slogan-track .dot {
  color: var(--color-primary);
  padding: 0 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

/* ===== 主营业务 ===== */
.business-section {
  background: var(--color-bg-soft);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.business-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 28px 24px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.business-card:hover::before {
  transform: scaleX(1);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(90, 67, 33, 0.12);
}

.biz-no {
  font-size: 30px;
  font-weight: 600;
  color: #e4d9c6;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.business-card:hover .biz-no {
  color: var(--color-primary-light);
}

.business-card h3 {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.business-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.business-more h3 {
  color: #fff;
}

.business-more p {
  color: rgba(255, 255, 255, 0.75);
  -webkit-line-clamp: 3;
}

.business-more::before {
  background: var(--color-primary-light);
}

/* ===== 关于我们（双图 + 文字）===== */
.about-section {
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-sub {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 46%;
  border: 8px solid #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.about-image-sub img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.about-text .en {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: 30px;
  margin-bottom: 22px;
  color: var(--color-text);
  letter-spacing: 2px;
}

.about-text p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 14px;
  text-align: justify;
}

.about-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 公司简介摘要 ===== */
.company-summary-section {
  background: #fff;
  padding-top: 72px;
  padding-bottom: 56px;
}

.company-summary-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}

.section-title-left {
  text-align: left;
  align-items: flex-start;
}

.section-title-left::after {
  left: 0;
  transform: none;
}

.company-summary-text p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 14px;
  text-align: justify;
}

.company-summary-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.company-summary-image {
  transform: translateY(48px);
}

/* ===== 新闻动态（文字卡片）===== */
.news-section {
  background: var(--color-bg-soft);
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-card {
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  list-style: none;
  border-left: 3px solid transparent;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-left-color: var(--color-primary);
}

.news-card .body {
  padding: 24px 26px;
}

.news-card .meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card .cat {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(138, 106, 58, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 1px;
}

.news-card .date {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.news-card h3 {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-primary);
  letter-spacing: 1px;
}

/* ===== 首页项目中标模块 ===== */
.home-bid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.home-bid-list .news-item {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}

/* 大头条样式 */
.home-bid-list .bid-featured {
  grid-column: 1 / -1;
  display: block;
  text-align: center;
  padding: 10px 0 40px 0;
  margin-bottom: 10px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-bid-list .bid-featured-img {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 24px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.home-bid-list .bid-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-bid-list .bid-featured-content {
  max-width: 680px;
  margin: 0 auto;
}

.home-bid-list .bid-featured .bid-date {
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
}

.home-bid-list .bid-featured .bid-title {
  font-size: 22px;
  margin: 0 0 14px 0;
  color: #333;
  line-height: 1.4;
  font-weight: bold;
}

.home-bid-list .bid-featured .bid-intro {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.8;
}

/* 小条目样式 */
.home-bid-list .bid-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
}

.home-bid-list .bid-item-img {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.home-bid-list .bid-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-bid-list .bid-item-content {
  flex: 1;
  min-width: 0;
}

.home-bid-list .bid-item .bid-date {
  color: #999;
  font-size: 14px;
  margin-bottom: 8px;
}

.home-bid-list .bid-item .bid-title {
  font-size: 19px;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.4;
  font-weight: bold;
}

.home-bid-list .bid-item .bid-intro {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 联系条 ===== */
.contact-strip {
  background: linear-gradient(135deg, #5a4321 0%, #2a1d0e 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.contact-strip h3 {
  font-size: 26px;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.contact-strip p {
  opacity: 0.85;
  letter-spacing: 2px;
  font-size: 14px;
  max-width: 720px;
  margin: 0 auto 6px;
  line-height: 1.9;
}

.contact-strip-phones {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 16px 0 10px;
}

.contact-strip-phone {
  display: inline-block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
}

.contact-strip-phone-alt::before {
  content: '/';
  margin-right: 22px;
  font-weight: 400;
  opacity: 0.55;
}

.contact-strip-addr {
  font-size: 13px !important;
  opacity: 0.7 !important;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .banner-content h2 {
    font-size: 30px;
  }

  .banner-kicker {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .stats-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .stats-list li:nth-child(3)::before {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .company-summary-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-sub {
    right: 0;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .home-bid-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  /* Banner 手机端提高高度，避免主体展示不完整 */
  .hero-banner {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    max-height: 320px;
  }

  .banner-slide .bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    transform: none;
  }

  .banner-slide.active .bg {
    transform: none;
  }

  .banner-content {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 28px;
    transform: none;
    text-align: left;
  }

  .banner-content h2 {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .banner-content p {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.92;
  }

  .banner-kicker {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .banner-dots {
    bottom: 10px;
  }

  .stats-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 0;
  }

  .stats-list .num {
    font-size: 30px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card::after {
    opacity: 1;
  }

  .project-card .info {
    opacity: 1;
    transform: translateY(0);
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .about-image > img {
    height: 280px;
  }

  .company-summary-section {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .company-summary-image img {
    height: auto;
  }

  .company-summary-image {
    transform: none;
  }

  .about-image-sub {
    width: 52%;
    bottom: -20px;
    border-width: 6px;
  }

  .about-image-sub img {
    height: 130px;
  }

  .banner-arrow {
    display: none;
  }

  .contact-strip-phone {
    font-size: 24px;
  }

  .contact-strip-phone-alt::before {
    margin-right: 14px;
  }

  /* 项目中标模块移动端响应式 */
  .home-bid-list .bid-featured {
    padding-bottom: 20px;
  }

  .home-bid-list .bid-featured .bid-title {
    font-size: 18px;
  }
  
  .home-bid-list .bid-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
  }

  .home-bid-list .bid-item-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .home-bid-list .bid-item-content {
    text-align: left;
  }
}
