:root {
  --orange: #e87522;
  --orange-dark: #bd5b17;
  --kraft: #b8793d;
  --kraft-light: #ead8bf;
  --paper: #f7efe5;
  --ink: #2b2b2b;
  --gray: #4a4a4a;
  --muted: #71675d;
  --line: #dfd2c2;
  --white: #ffffff;
  --footer: #252320;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(20px, 5vw, 72px);
  background: #303030;
  color: #f5f5f5;
  font-size: 13px;
}

.top-bar-phone {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: #202020;
  font-size: 20px;
}

.brand-text small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  padding: 15px 14px;
  border-left: 1px solid #eeeeee;
}

.site-nav a:last-child {
  border-right: 1px solid #eeeeee;
}

.site-nav a:hover {
  background: var(--orange);
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 9px 14px;
  font: inherit;
}

.hero {
  background:
    radial-gradient(circle at 20% 24%, rgba(232, 117, 34, 0.22), transparent 28%),
    linear-gradient(105deg, rgba(38, 36, 33, 0.98) 0%, rgba(43, 39, 35, 0.9) 48%, rgba(98, 67, 41, 0.72) 100%),
    #302d29;
}

.hero-inner {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
  padding: 64px 0 72px;
}

.hero-copy {
  position: relative;
  color: var(--white);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::after {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(232, 117, 34, 0.75);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero h2 {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 14px;
  background: rgba(232, 117, 34, 0.16);
  border-left: 4px solid var(--orange);
  color: #ffe4c4;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.16;
}

.hero-lead {
  max-width: 640px;
  color: #f4e9dd;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
}

.hero-contact {
  margin-top: 16px;
  color: #ffb35c;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid currentColor;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(232, 117, 34, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.hero-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 360px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 6px;
  background: #1f1d1a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.slider-track,
.slider-slide {
  position: absolute;
  inset: 0;
}

.slider-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 720ms ease, transform 1200ms ease;
}

.slider-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slider-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 24, 22, 0.36), rgba(26, 24, 22, 0.02) 48%, rgba(26, 24, 22, 0.28)),
    linear-gradient(0deg, rgba(26, 24, 22, 0.55), transparent 48%);
  pointer-events: none;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.04);
}

.slider-slide figcaption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  background: rgba(37, 35, 32, 0.72);
  color: #fff4e8;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(37, 35, 32, 0.42);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.slider-button:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.04);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

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

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
}

.slider-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--orange);
}

.quick-links {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.quick-grid a {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.quick-grid a:last-child {
  border-right: 0;
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 20px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-block,
.section-band,
.company-intro,
.factory-section,
.contact-section {
  padding: 78px 0;
}

.section-band {
  background: var(--paper);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.company-intro-heading h2,
.factory-copy h2,
.contact-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.section-heading p,
.about-copy p,
.company-intro-copy p,
.factory-copy p,
.contact-copy p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.product-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--kraft-light);
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.05);
}

.product-body {
  padding: 22px;
}

.product-body h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.product-body p {
  min-height: 78px;
  color: var(--muted);
}

.product-body a {
  display: inline-flex;
  padding: 9px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-tags span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--orange-dark);
  font-weight: 700;
}

.company-intro {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf4 0%, var(--paper) 100%);
}

.company-intro-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 0.72fr);
  gap: 34px;
  align-items: center;
}

.company-intro-heading {
  padding-top: 0;
}

.company-intro-copy {
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.72);
}

.company-intro-copy p {
  margin: 0;
  font-size: 17px;
}

.company-intro-copy p + p {
  margin-top: 12px;
}

.company-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.company-intro-points span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  counter-reset: step;
}

.process-list li {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  counter-increment: step;
}

.process-list li:last-child {
  border-right: 0;
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 34px;
  color: var(--orange);
  font-size: 32px;
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 8px;
  color: var(--muted);
}

.factory-section {
  background:
    linear-gradient(90deg, rgba(37, 35, 32, 0.94), rgba(37, 35, 32, 0.82)),
    url("../images/workshop-paperboard.png") center / cover;
  color: var(--white);
}

.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 46px;
  align-items: start;
}

.factory-copy p {
  color: #e9ded2;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.factory-grid div {
  min-height: 124px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.factory-grid strong,
.factory-grid span {
  display: block;
}

.factory-grid strong {
  margin-bottom: 8px;
  color: #ffe0bf;
  font-size: 18px;
}

.factory-grid span {
  color: #eee4d9;
}

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

.application-grid article {
  min-height: 180px;
  padding: 24px;
  border-top: 5px solid var(--orange);
  background: var(--paper);
}

.application-grid p {
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.news-grid span {
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.news-grid h3 {
  margin: 12px 0;
  font-size: 21px;
}

.news-grid p {
  color: var(--muted);
}

.news-grid a {
  color: var(--orange-dark);
  font-weight: 800;
}

.contact-section {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
}

.contact-box {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
}

.contact-box p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-box p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-box strong {
  flex: 0 0 96px;
  color: var(--ink);
}

.contact-box span {
  text-align: right;
}

.site-footer {
  background: var(--footer);
  color: #f7efe5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0 42px;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 14px;
  color: var(--white);
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 8px;
  color: #cfc5ba;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfc5ba;
}

@media (max-width: 1100px) {
  .site-nav {
    font-size: 14px;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .hero-inner,
  .about-layout,
  .company-intro-layout,
  .factory-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .application-grid,
  .quick-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 760px) {
  .top-bar {
    display: none;
  }

  .header-main {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: 84px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
  }

  .site-nav a,
  .site-nav a:last-child {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0;
  }

  .hero-slider {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .slider-slide figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    justify-content: center;
  }

  .slider-button {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .slider-prev {
    left: 12px;
  }

  .slider-next {
    right: 12px;
  }

  .quick-links {
    margin-top: 0;
  }

  .quick-grid,
  .product-grid,
  .process-list,
  .application-grid,
  .news-grid,
  .factory-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid a,
  .process-list li,
  .process-list li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-intro-copy {
    padding: 24px;
  }

  .contact-box p {
    display: block;
  }

  .contact-box span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
