:root {
  color-scheme: light;
  --bg: #17181a;
  --bg-soft: #24272a;
  --panel: #f6f3ed;
  --panel-2: #ece6dc;
  --text: #f8f5ef;
  --ink: #17181a;
  --muted: #d9d0c3;
  --accent: #00a676;
  --accent-2: #d79a2b;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #151617 0%, #202225 45%, #f3efe7 45%, #f3efe7 100%);
  min-height: 100vh;
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 60px;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 27, 0.72);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 24px;
  color: #d9d0c3;
  font-size: 0.94rem;
}

.breadcrumb a {
  color: #f8f5ef;
}

.breadcrumb strong {
  color: var(--accent-2);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 42px 0 24px;
}

.hero-card,
.panel,
.card,
.contact,
details {
  border: 1px solid var(--line);
  background: rgba(246, 243, 237, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.hero-card,
.contact {
  border-radius: var(--radius);
  padding: 28px;
}

.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 120px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 28px;
  margin-top: 42px;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.08) 100%),
    url("./assets/precision-bearings-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.home-hero .hero-copy {
  max-width: 780px;
}

.product-visual-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 42px 0 28px;
  color: var(--text);
}

.product-visual-hero .lead {
  color: #f1e8dc;
}

.product-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-photo figcaption {
  padding: 10px 14px;
  color: #5f5b54;
  font-size: 0.92rem;
}

.section .product-photo {
  width: min(100%, 920px);
  margin: 0 auto;
}

.section .product-photo img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 560px;
  padding: 10px 14px;
  background: #fffdf8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #83d7ff);
  color: #06111d;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-card h2,
.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.hero-card ul {
  padding-left: 18px;
  line-height: 1.9;
  color: var(--ink);
}

.hero-card p,
.panel p,
.card p,
details p,
.contact p {
  color: #5f5b54;
  line-height: 1.8;
}

.hero-copy .lead {
  color: #f1e8dc;
}

.section {
  padding: 22px 0;
  color: var(--ink);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p:not(.eyebrow) {
  color: #5f5b54;
  line-height: 1.8;
}

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

.card {
  display: block;
  padding: 22px;
  border-radius: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card span {
  display: inline-block;
  margin-top: 8px;
  color: #00795f;
  font-weight: 700;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 166, 118, 0.36);
  background: #fffaf1;
}

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

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

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

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

.selection-grid a,
.faq-list a {
  color: #00795f;
  font-weight: 700;
}

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

.series-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(23, 24, 26, 0.12);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
}

.series-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.series-card span {
  color: #5f5b54;
  line-height: 1.6;
  font-size: 0.94rem;
}

.section-cta {
  margin-top: 18px;
}

.page-hero {
  margin: 42px 0 12px;
  padding: 36px;
  border-radius: 8px;
  background: #17181a;
  color: #f8f5ef;
}

.page-hero h1 {
  max-width: 880px;
}

.page-hero p {
  max-width: 760px;
  color: #d9d0c3;
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quick-links a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 9px 13px;
  color: #f8f5ef;
}

.parameter-section .section-heading p {
  color: #5f5b54;
  line-height: 1.8;
}

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

.product-index a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(23, 24, 26, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
}

.product-index span {
  color: #5f5b54;
  line-height: 1.5;
  font-size: 0.92rem;
}

.product-parameters {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.product-title {
  max-width: 880px;
}

.product-title p:not(.eyebrow),
.series-block p {
  color: #5f5b54;
  line-height: 1.8;
}

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

.series-block {
  padding: 18px;
  border: 1px solid rgba(23, 24, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
}

.series-block h3 {
  margin-bottom: 8px;
}

.compact-table table {
  min-width: 640px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 24, 26, 0.14);
  border-radius: 8px;
  background: #fffaf1;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(23, 24, 26, 0.1);
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

th {
  background: #ebe2d4;
}

td a {
  color: #00795f;
  font-weight: 700;
}

.content-band {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  border-radius: 8px;
  background: #17181a;
  color: #f8f5ef;
}

.content-band p {
  color: #d9d0c3;
  line-height: 1.9;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(23, 24, 26, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.88);
}

.trust-panel p {
  color: #5f5b54;
  line-height: 1.85;
}

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

.proof-grid span {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(23, 24, 26, 0.1);
  border-radius: 12px;
  background: #fffdf8;
  color: #5f5b54;
}

.proof-grid strong {
  display: block;
  color: #00795f;
  font-size: 1.45rem;
  line-height: 1.2;
}

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

.mini-list strong {
  width: 100%;
  margin-bottom: 4px;
}

.mini-list span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  color: #f8f5ef;
}

.panel {
  padding: 22px;
  border-radius: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 22px;
  border-radius: 18px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .hero,
  .product-visual-hero,
  .cards,
  .grid-2,
  .selection-grid,
  .application-grid,
  .case-grid,
  .diagram-grid,
  .product-index,
  .series-grid,
  .series-catalog,
  .trust-panel,
  .content-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    display: grid;
  }

  .home-hero {
    min-height: 640px;
    background-position: 58% center;
  }
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-card,
  .panel,
  .card,
  .contact,
  details {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }
}
