/* ==========================================================
   JSPET 强生宠儿 官方官网 共享样式
   纯静态多页站点 · 搜索引擎友好（源码直出语义化结构）
   ========================================================== */

:root {
  --blue: #0154b4;
  --blue-dark: #013f8a;
  --blue-light: #e8f1fb;
  --ink: #1b1b1b;
  --body: #3d3d3d;
  --muted: #8a8a8a;
  --bg: #f2f3f5;
  --line: #e6e8ec;
  --footer: #1d1d1f;
  --radius: 14px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero 横幅 ---------- */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.38) 46%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: -1;
}

.hero__inner {
  width: 100%;
  padding: 96px 0 110px;
}

.hero__title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__subtitle {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__line {
  margin-top: 26px;
  width: 56px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
}

/* ---------- 顶部导航（蓝色胶囊，叠在 Hero 下沿） ---------- */
.navbar {
  position: relative;
  z-index: 20;
  margin-top: -34px;
}

.navbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue);
  border-radius: 999px;
  padding: 14px 34px;
  box-shadow: 0 12px 30px rgba(1, 84, 180, 0.28);
}

.navbar__logo img {
  height: 42px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  flex-wrap: wrap;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar__link:hover { color: #fff; }

.navbar__link.active {
  color: #fff;
  font-weight: 700;
  border-bottom-color: #fff;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.section-head__en {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.section-head__cn {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.title-bar {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 16px 0 22px;
}

/* ---------- 品牌介绍（首页） ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--bg);
}

.intro__text {
  background: #fff;
  padding: 52px 56px;
}

.intro__text h2 {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}

.intro__text p {
  margin-bottom: 16px;
  color: var(--body);
}

.intro__text .en-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.intro__media {
  position: relative;
  min-height: 320px;
}

.intro__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 产品系列横幅（首页） ---------- */
.series {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 360px;
}

.series__label {
  background: #dedfe2;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.series__label .en {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.series__label .cn {
  margin-top: 14px;
  font-size: 19px;
  color: var(--body);
  letter-spacing: 1px;
}

.series__media { min-height: 320px; }

.series__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ---------- 新闻卡片（首页） ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.news-card__img { aspect-ratio: 392 / 267; overflow: hidden; }

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body { padding: 22px 24px 26px; text-align: center; }

.news-card__tag {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 产品中心：分类标签 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.tabs__item {
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  color: var(--body);
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tabs__item:hover { color: var(--blue); }

.tabs__item.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.product-card__img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f4f8fd, #e8f1fb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.product-card__img img {
  max-width: 82%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__img .placeholder {
  color: #b9cde6;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
}

.product-card__img .placeholder strong {
  display: block;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 6px;
}

.product-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.product-card__desc {
  font-size: 13px;
  color: var(--muted);
}

.product-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--blue);
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card__more .arrow { transition: transform 0.2s ease; }

.product-card:hover .product-card__more .arrow { transform: translateX(4px); }

/* ---------- 公司历程 ---------- */
.honors {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 48px;
}

.honors img { width: 100%; height: auto; }

.history-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--body);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.timeline__year {
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
}

.timeline__text { color: var(--body); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-text h2 {
  font-size: 24px;
  color: var(--ink);
}

.about-text p { margin-bottom: 20px; }

.about-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-media__figure img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-media__figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--body);
}

.about-media__circles {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.about-media__circles img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}

.about-media__circles figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- 联系我们 ---------- */
.contact-wrap {
  text-align: center;
  padding: 60px 0 80px;
}

.contact-wrap h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  letter-spacing: 1px;
}

.contact-wrap .sub {
  margin-top: 12px;
  color: var(--body);
}

.contact-qr {
  margin: 44px auto 0;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.contact-qr img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--footer);
  color: #b9b9bd;
  padding: 56px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer__logo img { height: 48px; width: auto; margin-bottom: 18px; }

.footer__col h3 {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer__nav li { margin-bottom: 12px; }

.footer__nav a { font-size: 14px; color: #b9b9bd; transition: color 0.2s ease; }

.footer__nav a:hover { color: #fff; }

.footer__contact p { font-size: 14px; margin-bottom: 12px; }

.footer__contact strong { color: #fff; font-weight: 600; }

.footer__qr { margin-top: 20px; }

.footer__qr img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.footer__qr span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #b9b9bd;
}

.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #333336;
  font-size: 12px;
  color: #7a7a7e;
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .intro,
  .series,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

  .intro__text { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .hero { min-height: 340px; }
  .hero__inner { padding: 72px 0 96px; }

  .navbar { margin-top: -26px; }
  .navbar__bar {
    border-radius: 24px;
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .navbar__links { gap: 16px; }

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

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

  .timeline__item { grid-template-columns: 1fr; gap: 6px; }

  .section { padding: 48px 0; }
}
