:root {
  --bg-soft: #f3f2fc;
  --text-main: #2b2b2f;
  --text-sub: #666773;
  --accent: #d2a04f;
  --panel-height: 564px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: #fff;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(var(--container), calc(100% - 120px));
  margin: 0 auto;
}

.hero {
  height: var(--panel-height);
  background: url("assets/banner.jpg") center center / cover no-repeat;
  position: relative;
}

.top-bar {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand {
  width: 78px;
  height: 28px;
}

.hero-scan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(90, 91, 103, 0.22);
  background: rgba(255, 255, 255, 0.68);
  color: #565767;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-scan-btn:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(90, 91, 103, 0.35);
  color: #3f404d;
}

.panel {
  min-height: var(--panel-height);
}

.panel-alt {
  background: var(--bg-soft);
}

.panel-inner {
  min-height: var(--panel-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.panel-copy {
  width: 520px;
}

.panel-copy-wide {
  width: 560px;
}

.panel-copy h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.panel-copy h2 img {
  display: inline-block;
  width: 169px;
  height: 37px;
  vertical-align: middle;
  margin-left: 14px;
  transform: translateY(-3px);
}

.panel-copy p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-sub);
}

.panel-copy .lead {
  margin-top: 18px;
}

.accent {
  color: var(--accent);
}

.copy-qr {
  width: 137px;
  height: 137px;
  margin-top: 18px;
}

.panel-media {
  width: 700px;
}

.media-mini {
  width: 700px;
}

.media-mini img {
  width: 700px;
}

.media-recipes {
  width: 745px;
  margin-right: -120px;
}

.media-recipes img {
  width: 745px;
}

.media-consult {
  width: 760px;
}

.media-consult img {
  width: 760px;
}

.media-additive {
  width: 745px;
}

.media-additive img {
  width: 745px;
}

.media-lab {
  width: 724px;
}

.media-lab img {
  width: 724px;
}

.feature-row,
.service-row,
.triple-row {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}

.feature-item,
.service-item,
.triple-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.feature-item img,
.service-item img {
  width: 78px;
  height: 78px;
}

.feature-item span,
.service-item span,
.triple-item span {
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-main);
  white-space: nowrap;
}

.triple-item img {
  width: 120px;
  height: 95px;
}

.footer {
  height: 419px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 72px;
}

.footer img {
  width: 164px;
  height: 164px;
}

.footer p {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #9b9ca9;
}

.footer p span {
  display: inline-block;
  width: 120px;
  height: 1px;
  background: #cfd0da;
}

.site-record {
  margin-top: 82px;
  width: min(var(--container), calc(100% - 200px));
  border-top: 1px solid #ececf3;
  padding-top: 18px;
}

.site-record p {
  margin: 0;
  font-size: 11px;
  line-height: 1;
  color: #a5a7b4;
  justify-content: center;
  gap: 12px;
}

.site-record i {
  color: #b8bac7;
  font-style: normal;
}

.site-record img {
  width: 16px;
  height: 16px;
}

.record-link,
.record-link:visited,
.record-link:hover,
.record-link:active {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1600px) {
  :root {
    --container: 1180px;
  }

  .panel-copy h2 {
    font-size: 52px;
  }

  .panel-copy p {
    font-size: 16px;
  }

  .feature-item span,
  .service-item span,
  .triple-item span,
  .footer p {
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  :root {
    --panel-height: auto;
  }

  .container {
    width: min(100%, calc(100% - 48px));
  }

  .hero {
    height: 240px;
    background-position: 54% center;
  }

  .top-bar {
    padding-top: 14px;
  }

  .brand {
    width: 56px;
    height: 20px;
  }

  .copy-qr,
  .footer img {
    width: 108px;
    height: 108px;
  }

  .hero-scan-btn {
    font-size: 10px;
    min-width: 66px;
    height: 26px;
    padding: 0 10px;
  }

  .panel {
    padding: 30px 0;
  }

  .panel-inner {
    min-height: 0;
    flex-direction: column;
    gap: 20px;
  }

  .panel:nth-child(odd) .panel-inner {
    flex-direction: column-reverse;
  }

  .panel-copy,
  .panel-copy-wide,
  .panel-media,
  .media-mini,
  .media-recipes,
  .media-consult,
  .media-additive,
  .media-lab,
  .media-mini img,
  .media-recipes img,
  .media-consult img,
  .media-additive img,
  .media-lab img {
    width: 100%;
    margin-right: 0;
  }

  .panel-copy h2 {
    font-size: 34px;
  }

  .panel-copy h2 img {
    width: 102px;
    height: auto;
    margin-left: 8px;
  }

  .panel-copy p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.7;
  }

  .feature-row,
  .service-row,
  .triple-row {
    margin-top: 18px;
    gap: 12px;
    justify-content: space-between;
  }

  .feature-item,
  .service-item,
  .triple-item {
    flex: 1;
    gap: 8px;
  }

  .feature-item img,
  .service-item img {
    width: 52px;
    height: 52px;
  }

  .triple-item img {
    width: 70px;
    height: 55px;
  }

  .feature-item span,
  .service-item span,
  .triple-item span {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
  }

  .footer {
    height: 220px;
    padding-top: 20px;
  }

  .footer p {
    font-size: 13px;
    gap: 8px;
    margin-top: 16px;
  }

  .footer p span {
    width: 46px;
  }

  .site-record {
    margin-top: 24px;
    width: min(100%, calc(100% - 48px));
    padding-top: 10px;
  }

  .site-record p {
    font-size: 10px;
    line-height: 1.5;
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-record img {
    width: 12px;
    height: 12px;
  }
}
