/* ===================================================================
   components.css — 卡片 / Hero轮播 / 表单 / 徽章 / 新闻卡 / 视频卡 / 时间轴
   =================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.05); transition: opacity 1s var(--ease), transform 6s linear;
}
.hero__slide.active { opacity: 1; transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,35,54,.92) 0%, rgba(15,35,54,.65) 45%, rgba(15,35,54,.35) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--accent-2); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero__sub { font-size: 18px; color: #d6e2ee; margin: 18px 0 30px; max-width: 640px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #aebfd0; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.hero__dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .3s; }
.hero__dots button.active { background: var(--accent-2); width: 26px; border-radius: 6px; }

/* ---------- 卡片通用 ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--steel-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--navy);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; }

/* 带图卡片 */
.media-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.media-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--steel-light); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.media-card:hover .media-card__img img { transform: scale(1.06); }
.media-card__body { padding: 20px; }
.media-card__body h3 { font-size: 17px; margin-bottom: 8px; }
.media-card__body p { font-size: 14px; }
.media-card__tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(42,157,143,.1); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- 核心业务（大卡） ---------- */
.biz-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; color: #fff; }
.biz-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.biz-card:hover .biz-card__img { transform: scale(1.08); }
.biz-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,35,54,.92), rgba(15,35,54,.15)); }
.biz-card__body { position: relative; z-index: 2; padding: 26px; }
.biz-card__body h3 { color: #fff; font-size: 21px; }
.biz-card__body p { color: #cdd9e6; font-size: 14px; margin: 8px 0 14px; }
.biz-card__body .arrow { font-size: 14px; color: var(--accent-2); font-weight: 700; }

/* ---------- 资质荣誉条 ---------- */
.badge-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge-strip .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--navy);
}
.badge-strip .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- 合作客户 Logo 墙 ---------- */
.client-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client-wall .client {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; padding: 18px 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.client-wall .client img { max-height: 44px; width: auto; filter: grayscale(1) opacity(.75); transition: filter .25s var(--ease); }
.client-wall .client:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-wall .client:hover img { filter: grayscale(0) opacity(1); }
@media (max-width: 760px) { .client-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 筛选 Tab ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-tabs button {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 14px;
  font-weight: 600; color: var(--text-soft); transition: all .2s;
}
.filter-tabs button:hover { border-color: var(--navy); color: var(--navy); }
.filter-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-field label .req { color: #d9534f; }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--text-soft); }
.form-msg { font-size: 14px; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-msg.ok { display: block; background: rgba(42,157,143,.12); color: #1c6e63; }
.form-msg.err { display: block; background: rgba(217,83,79,.1); color: #b03a36; }

/* ---------- 新闻卡 ---------- */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--steel-light); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-soft); margin-bottom: 10px; }
.news-card__cat { font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 11px; }
.news-card__cat.company { background: rgba(22,50,79,.1); color: var(--navy); }
.news-card__cat.industry { background: rgba(42,157,143,.12); color: #1c6e63; }
.news-card__body h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.news-card__body p { font-size: 14px; flex: 1; }
.news-card__more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 视频卡 ---------- */
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.video-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-deep); cursor: pointer; }
.video-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover .video-card__img img { transform: scale(1.05); }
.video-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,35,54,.35); transition: background .3s;
}
.video-card:hover .video-card__play { background: rgba(15,35,54,.2); }
.video-card__play span {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 22px; padding-left: 4px;
}
.video-card__body { padding: 18px 20px 22px; }
.video-card__body h3 { font-size: 16px; margin-bottom: 8px; }
.video-card__body p { font-size: 14px; }
.video-card__link { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* 本地 HTML5 视频播放器（电脑/手机浏览器直接播放） */
.video-card__html5 { aspect-ratio: 16/9; background: #000; }
.video-card__html5 video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- 时间轴（关于我们） ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding: 0 0 34px 30px; }
.timeline__item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.timeline__year { font-size: 20px; font-weight: 800; color: var(--navy); }
.timeline__item h4 { margin: 4px 0 6px; font-size: 16px; }
.timeline__item p { font-size: 14px; }

/* ---------- CTA 联系带 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-3)); border-radius: var(--radius); padding: 48px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #cdd9e6; margin-bottom: 26px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- 双工厂信息卡 ---------- */
.factory-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.factory-card__img { aspect-ratio: 16/10; background: var(--steel-light); }
.factory-card__body { padding: 24px; }
.factory-card__body h3 { margin-bottom: 6px; }
.factory-card__body .role { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.factory-card__body p { font-size: 14px; }

/* ---------- 地图 ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 360px; background: var(--steel-light); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- 文章正文 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; background: var(--steel-light); }
.article__meta { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; display: flex; gap: 12px; }
.article__body { font-size: 16px; line-height: 1.9; }
.article__body p { margin-bottom: 18px; color: var(--text); }
.article__body h3 { margin: 28px 0 12px; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}
