:root {
  color-scheme: light;
  --paper: #f7f1e6;
  --paper-soft: #fbf8f0;
  --surface: #fffdf7;
  --surface-warm: #f2e7d6;
  --ink: #253126;
  --text: #3f4d42;
  --muted: #667367;
  --sage: #6f866b;
  --sage-deep: #314b37;
  --sage-soft: #dfe8dc;
  --copper: #a45d36;
  --copper-deep: #7d4228;
  --brass: #c2a357;
  --cream: #fff6df;
  --line: rgba(82, 99, 77, 0.18);
  --line-strong: rgba(111, 134, 107, 0.38);
  --shadow: 0 18px 54px rgba(68, 55, 36, 0.13);
  --shadow-hover: 0 28px 78px rgba(68, 55, 36, 0.18);
  --radius: 8px;
  --max: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(111, 134, 107, 0.10), transparent 34%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 54%, #f3eadb 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 134, 107, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 134, 107, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(37, 49, 38, 0.52), transparent 72%);
}

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

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

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--sage-deep);
  font-size: 12px;
  text-transform: uppercase;
  background: #eee4d2;
}

td {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(82, 99, 77, 0.16);
  background: rgba(251, 248, 240, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 44px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 22px;
}

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

.brand img,
.site-footer img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: left center;
  filter: hue-rotate(-96deg) saturate(0.54) brightness(0.76) contrast(1.08);
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
}

.brand::after {
  content: "JINYE";
  color: var(--sage-deep);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand:hover img {
  transform: translateX(4px);
  filter: hue-rotate(-96deg) saturate(0.64) brightness(0.80) contrast(1.12);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--copper);
  transition: transform 260ms var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sage-deep);
  background: rgba(111, 134, 107, 0.12);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.button,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.nav-cta {
  padding: 10px 16px;
  color: var(--cream);
  background: var(--sage-deep);
  box-shadow: 0 14px 30px rgba(49, 75, 55, 0.20);
}

.nav-cta:hover,
.button.primary:hover,
form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(49, 75, 55, 0.24);
}

.section {
  padding: 90px 0;
}

.section.tight {
  padding: 42px 0 66px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--sage);
}

.lead {
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 0.52fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(34px, 5vw, 70px);
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.7vw, 54px);
}

.hero {
  min-height: 600px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 86px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/rolling-mill.jpg") center / cover no-repeat;
  filter: saturate(0.78) sepia(0.2) brightness(1.05);
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 241, 230, 0.96) 0%, rgba(247, 241, 230, 0.82) 42%, rgba(247, 241, 230, 0.34) 100%),
    linear-gradient(180deg, rgba(247, 241, 230, 0.15), rgba(247, 241, 230, 0.88));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.hero-content {
  max-width: 780px;
}

.hero h1 {
  margin-top: 16px;
  color: var(--sage-deep);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: var(--copper);
}

.hero .lead {
  max-width: 680px;
  margin-top: 24px;
}

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

.button {
  min-width: 168px;
  padding: 12px 20px;
  border: 1px solid transparent;
}

.button.primary,
form button {
  color: var(--cream);
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.button.secondary {
  color: var(--sage-deep);
  background: rgba(255, 253, 247, 0.72);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 93, 54, 0.45);
  box-shadow: 0 18px 38px rgba(68, 55, 36, 0.12);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric,
.value-card,
.stat-card,
.contact-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.80);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 126px;
  padding: 24px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.metric::after,
.value-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--brass), var(--copper));
  opacity: 0.86;
}

.metric strong {
  color: var(--sage-deep);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
}

.metric span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.product-card,
.blog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
}

.product-card:hover,
.blog-card:hover,
.value-card:hover,
.stat-card:hover,
.contact-card:hover,
.side-panel:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.product-card > a,
.blog-card > a {
  display: block;
  overflow: hidden;
}

.product-card img,
.blog-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.84) sepia(0.12);
  transition: transform 520ms var(--ease), filter 320ms ease;
}

.product-card:hover img,
.blog-card:hover img {
  transform: scale(1.045);
  filter: saturate(0.96) sepia(0.08);
}

.product-card-body,
.blog-card-body {
  padding: 24px;
}

.product-card h2,
.product-card h3,
.blog-card h2 {
  margin-top: 14px;
  font-size: clamp(24px, 2.7vw, 34px);
}

.product-card p,
.blog-card p {
  margin-top: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(111, 134, 107, 0.28);
  color: var(--sage-deep);
  background: var(--sage-soft);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tab {
  background: rgba(255, 253, 247, 0.86);
  color: var(--text);
  cursor: default;
}

.tab.active,
.tab:hover {
  color: var(--cream);
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list span {
  color: var(--muted);
}

.spec-list b {
  color: var(--sage-deep);
  text-align: right;
}

.price,
.number {
  display: inline-flex;
  margin-top: 20px;
  color: var(--copper-deep);
  font-weight: 900;
}

.number {
  margin-top: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
}

.band {
  background:
    linear-gradient(135deg, rgba(223, 232, 220, 0.88), rgba(242, 231, 214, 0.86)),
    var(--surface-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split,
.inquiry-section,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 0.9fr);
}

.split h2,
.inquiry-section h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.6vw, 64px);
}

.split .lead,
.inquiry-section .lead {
  margin-top: 18px;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 253, 247, 0.66);
  border-radius: calc(var(--radius) - 2px);
  z-index: 1;
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(0.86) sepia(0.12);
  transition: transform 560ms var(--ease);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.process {
  display: grid;
  gap: 14px;
}

.process li {
  position: relative;
  padding: 20px 20px 20px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.76);
  transition: transform 260ms var(--ease), border-color 260ms ease, box-shadow 260ms var(--ease);
}

.process li:hover {
  transform: translateX(5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.process b {
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--copper-deep);
  font-size: 16px;
}

.process h3 {
  font-size: 21px;
}

.process p {
  margin-top: 8px;
}

.value-grid,
.stat-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-card,
.stat-card,
.contact-card,
.side-panel {
  position: relative;
  padding: 24px;
  transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms var(--ease);
}

.value-card h3,
.stat-card h3,
.contact-card h3 {
  margin-top: 14px;
  font-size: 22px;
}

.stat-card strong {
  color: var(--sage-deep);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.value-card p,
.stat-card p,
.contact-card p {
  margin-top: 12px;
}

.contact-card a,
.inline-link {
  color: var(--copper-deep);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(164, 93, 54, 0.28);
  text-underline-offset: 4px;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}

.contact-card a:hover,
.inline-link:hover {
  color: var(--sage-deep);
  text-decoration-color: rgba(49, 75, 55, 0.45);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 82px;
  background:
    linear-gradient(100deg, rgba(247, 241, 230, 0.96), rgba(247, 241, 230, 0.74)),
    url("https://storage.googleapis.com/cg-webase/media/1779814162574-38c215df.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero.about-hero,
.page-hero.products-hero,
.page-hero.blog-hero,
.page-hero.contact-hero {
  background:
    linear-gradient(100deg, rgba(247, 241, 230, 0.97), rgba(247, 241, 230, 0.76)),
    url("../images/rolling-mill.jpg") center / cover no-repeat;
}

.page-hero.blog-hero,
.page-hero.contact-hero {
  background:
    linear-gradient(100deg, rgba(247, 241, 230, 0.97), rgba(247, 241, 230, 0.78)),
    url("https://storage.googleapis.com/cg-webase/media/1779814162574-38c215df.jpg") center / cover no-repeat;
}

.page-hero .container {
  max-width: min(940px, calc(100% - 44px));
  margin-left: max(22px, calc((100vw - var(--max)) / 2));
}

.page-hero h1 {
  max-width: 920px;
  margin-top: 12px;
  color: var(--sage-deep);
}

.page-hero .lead {
  max-width: 780px;
  margin-top: 22px;
}

.crumbs {
  margin-bottom: 24px;
  color: var(--copper-deep);
  font-size: 14px;
  font-weight: 850;
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: rgba(164, 93, 54, 0.25);
  text-underline-offset: 3px;
}

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

.blog-card img {
  height: 230px;
}

.blog-card h2 {
  font-size: 24px;
}

.article-layout {
  align-items: start;
  grid-template-columns: minmax(0, 0.94fr) 340px;
}

.article-body {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.article-body .hero-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.86) sepia(0.12);
}

.article-body h2 {
  margin-top: 34px;
  font-size: clamp(26px, 3vw, 38px);
}

.article-body p,
.article-body li {
  color: var(--text);
  font-size: 17px;
}

.article-body p {
  margin-top: 15px;
}

.article-body ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-left: 20px;
  list-style: disc;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.side-panel h2,
.side-panel h3 {
  font-size: 22px;
}

.side-panel p,
.side-panel ul {
  margin-top: 14px;
}

form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(82, 99, 77, 0.26);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf7;
  padding: 12px 13px;
  font: inherit;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #7c867b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(164, 93, 54, 0.58);
  box-shadow: 0 0 0 4px rgba(164, 93, 54, 0.12);
}

textarea {
  min-height: 126px;
  resize: vertical;
}

form button {
  width: 100%;
  border: 0;
  padding: 12px 20px;
  font: inherit;
}

.site-footer {
  padding: 58px 0 28px;
  color: var(--cream);
  background-color: #4f623f;
  background-image:
    linear-gradient(135deg, #4f623f, #6a5538 56%, #74442f);
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #fff4dc;
}

.site-footer h3 {
  color: #fff8e8;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 246, 223, 0.26);
}

.footer-grid p {
  max-width: 360px;
  margin-top: 18px;
}

.footer-grid > div:first-child::before {
  content: "JINYE";
  display: block;
  margin-top: 14px;
  color: #fff8e8;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.footer-grid ul {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.site-footer a {
  transition: color 220ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.copyright {
  margin-top: 22px;
  font-size: 13px;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms var(--ease) var(--reveal-delay, 0ms),
    transform 700ms var(--ease) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-cta {
    display: none;
  }

  .section-head,
  .split,
  .split.reverse,
  .inquiry-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .container,
  .nav,
  .page-hero .container {
    width: min(100% - 28px, var(--max));
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 560px;
    padding: 90px 0 66px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247, 241, 230, 0.96), rgba(247, 241, 230, 0.82)),
      linear-gradient(90deg, rgba(247, 241, 230, 0.96), rgba(247, 241, 230, 0.56));
  }

  .page-hero {
    padding: 82px 0 58px;
  }

  .product-grid,
  .metric-strip,
  .value-grid,
  .stat-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card img,
  .blog-card img,
  .article-body .hero-image {
    height: 240px;
  }

  .image-frame img {
    min-height: 300px;
  }

  .article-body {
    padding: 18px;
  }

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

@media (max-width: 520px) {
  .brand img,
  .site-footer img {
    width: 48px;
    height: 48px;
  }

  .brand::after {
    font-size: 21px;
  }

  .nav-links {
    font-size: 13px;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .product-card-body,
  .blog-card-body,
  .metric,
  .value-card,
  .stat-card,
  .contact-card,
  .side-panel,
  form {
    padding: 20px;
  }
}
