:root {
  --ink: #14212b;
  --muted: #657481;
  --line: #dce5eb;
  --soft: #f3f7f9;
  --brand: #0b6d63;
  --brand-dark: #0c2d35;
  --metal: #c99043;
  --white: #fff;
  --shadow: 0 22px 60px rgba(23, 37, 48, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(220, 229, 235, .86);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 250px; font-weight: 850; color: var(--brand-dark); }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo span { font-size: clamp(17px, 1.6vw, 24px); }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; }
.nav a { white-space: nowrap; color: #2f4050; }
.nav a.active { color: var(--brand); }
.nav .lang { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.nav .shop {
  position: relative;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 109, 99, .22);
}
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menu-btn span { display: block; width: 21px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { position: relative; height: calc(100vh - 76px); min-height: 620px; overflow: hidden; background: #10232c; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 22, 31, .82), rgba(7, 22, 31, .24) 60%, rgba(7, 22, 31, .06)); }
.hero-copy { position: absolute; left: 5vw; top: 50%; z-index: 2; max-width: 760px; color: #fff; transform: translateY(-50%); }
.hero-copy p, .eyebrow, .section-title p { margin: 0 0 10px; color: var(--metal); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hero-copy h1 { margin: 0 0 20px; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; letter-spacing: 0; }
.hero-copy span { font-size: clamp(17px, 2vw, 24px); color: rgba(255,255,255,.88); }

.section { padding: 82px 5vw; }
.soft-section { background: var(--soft); }
.dark-section { background: linear-gradient(135deg, #10242c, #0b3e42); color: #fff; }
.section-title { max-width: 1180px; margin: 0 auto 34px; }
.section-title h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 34px; max-width: 1180px; margin: 0 auto; align-items: center; }
.split h3, .split h2 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 42px); }
.split p { color: var(--muted); line-height: 1.9; }
.advantage-list { display: grid; gap: 14px; }
.advantage-list span, .factory-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--brand-dark);
  font-weight: 850;
}

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.item-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 38px rgba(23, 37, 48, .08); }
.item-card img, .item-card video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e8eef2; }
.item-card div { padding: 22px; }
.item-card h3 { margin: 0 0 10px; font-size: 22px; }
.item-card p { min-height: 54px; color: var(--muted); line-height: 1.7; }
.item-card a, .download-row a, .contact-form button, .download-row button, .searchbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.feature-grid article { padding: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.08); }
.feature-grid b { color: var(--metal); font-size: 30px; }
.feature-grid p { color: rgba(255,255,255,.78); line-height: 1.8; }

.news-grid { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.news-row { display: grid; grid-template-columns: 130px minmax(180px, .7fr) 1fr; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.news-row time { color: var(--brand); font-weight: 850; }
.news-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.partner-grid span { display: grid; min-height: 76px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 800; }

.page-hero { padding: 96px 5vw; background: linear-gradient(135deg, #10242c, #0b6d63); color: #fff; }
.page-hero h1 { max-width: 1180px; margin: 0 auto 16px; font-size: clamp(38px, 5vw, 64px); }
.page-hero p, .page-hero form { max-width: 1180px; margin-left: auto; margin-right: auto; }
.searchbar { display: flex; gap: 10px; margin-top: 22px; }
.searchbar input { width: min(560px, 100%); padding: 14px; border: 0; border-radius: 6px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1180px; margin: 0 auto 26px; }
.filter-tabs a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.filter-tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.detail-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr); gap: 42px; max-width: 1180px; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: start; }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #e8eef2; }
.gallery .main-photo { grid-column: 1 / -1; }
.detail-layout article p, .article p, .rich-content { color: var(--muted); line-height: 1.95; }
.rich-content img, .rich-content video {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  background: #e8eef2;
}
.rich-content a { color: var(--brand); font-weight: 850; text-decoration: underline; }
.param-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.param-table th, .param-table td { padding: 14px; border: 1px solid var(--line); text-align: left; }
.param-table th { width: 32%; background: var(--soft); }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.detail-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.timeline { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.timeline article { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.timeline b { color: var(--brand); font-size: 24px; }

.download-row, .contact-card, .contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23,37,48,.08);
}
.download-row form, .contact-form { display: grid; gap: 12px; }
.download-row input, .download-row textarea, .contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.calculator-section { padding-top: 64px; padding-bottom: 34px; background: linear-gradient(180deg, #f7fafb, #fff); }
.calculator-jump, .tool-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 22px;
}
.calculator-jump a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 850;
}
.tool-link-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tool-link-grid a {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 37, 48, .08);
}
.tool-link-grid b {
  color: var(--metal);
  font-size: 28px;
}
.tool-link-grid strong {
  color: var(--brand-dark);
  font-size: 22px;
}
.tool-link-grid span {
  color: var(--muted);
  line-height: 1.7;
}
.perforation-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.calculator-intro {
  grid-column: 1 / -1;
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #10242c, #0b6d63);
  color: #fff;
}
.calculator-intro p {
  margin: 0 0 10px;
  color: var(--metal);
  font-size: 13px;
  font-weight: 850;
}
.calculator-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}
.calculator-intro span { color: rgba(255,255,255,.8); line-height: 1.8; }
.calculator-form { padding: 30px 34px 34px; border-right: 1px solid var(--line); }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calculator-fields label { display: grid; gap: 8px; min-width: 0; color: var(--brand-dark); font-size: 14px; font-weight: 850; }
.calculator-fields input, .calculator-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.calculator-fields input:read-only {
  background: var(--soft);
  color: var(--muted);
}
.calculator-fields label[hidden] { display: none; }
.calculator-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.calculator-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 850;
}
.calculator-results { padding: 30px 34px 34px; background: #fbfdfe; }
.calculator-guide {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.calculator-guide-head {
  padding: 16px 18px 0;
}
.calculator-guide-head strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 18px;
}
.calculator-guide-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.pitch-diagram {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
}
.diagram-sheet {
  fill: #f4f8f9;
  stroke: var(--line);
  stroke-width: 2;
}
.diagram-holes { display: none; }
.diagram-holes circle, .diagram-holes rect, .diagram-holes polygon {
  fill: rgba(11, 109, 99, .14);
  stroke: var(--brand);
  stroke-width: 2;
}
.calculator-guide[data-guide-shape="round"] .diagram-round,
.calculator-guide[data-guide-shape="square"] .diagram-square,
.calculator-guide[data-guide-shape="slot"] .diagram-slot,
.calculator-guide[data-guide-shape="rectangle"] .diagram-rectangle,
.calculator-guide[data-guide-shape="hexagon"] .diagram-hexagon {
  display: block;
}
.diagram-centers line {
  stroke: rgba(20,33,43,.36);
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}
.diagram-centers circle { fill: var(--metal); }
.diagram-measure line {
  stroke: var(--metal);
  stroke-width: 2;
}
.diagram-measure .measure-arrow {
  marker-start: url(#arrowHead);
  marker-end: url(#arrowHead);
}
.diagram-measure text {
  fill: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
  text-anchor: middle;
}
.pitch-diagram marker path { fill: var(--metal); }
.calculator-results dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.calculator-results dl div {
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.calculator-results dt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.calculator-results dd {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
}
.calculator-formula {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--metal);
  background: #fff7eb;
  color: #744f20;
  line-height: 1.7;
}
.calculator-formula b { color: #5e3e14; }
.formula-panel, .tool-formula {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--metal);
  border-radius: 0 8px 8px 0;
  background: #fff7eb;
  color: #744f20;
  line-height: 1.7;
}
.formula-panel strong { color: #5e3e14; }
.formula-panel p, .tool-formula { margin: 0; }
.calculator-warning {
  margin: 0 0 12px;
  color: #b44024;
  font-weight: 850;
  line-height: 1.7;
}
.calculator-warning:empty { display: none; }
.calculator-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.extra-calculators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 28px auto 0;
}
.tool-calculator {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23,37,48,.08);
}
.tool-calculator h3 {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 24px;
}
.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-form label {
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 850;
}
.tool-form input, .tool-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.tool-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}
.tool-results div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}
.tool-results dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.tool-results dd {
  margin: 0;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}
.job-card { display: flex; min-height: 100%; flex-direction: column; }
.job-card > h3 { margin-top: 0; }
.job-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.8; }
.job-apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.job-apply-form input, .job-apply-form textarea {
  min-height: 46px;
  background: #fff;
}
.job-apply-form input[type="file"] {
  color: var(--muted);
}
.job-apply-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 850;
}
.job-apply-form input[name="email"], .job-apply-form input[type="file"], .job-apply-form textarea, .job-apply-form button {
  grid-column: 1 / -1;
}
.job-apply-form textarea {
  min-height: 86px;
  resize: vertical;
}
.job-apply-form button {
  width: 100%;
  justify-content: center;
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.contact-card iframe { width: 100%; height: 320px; border: 0; border-radius: 8px; background: var(--soft); }

.float-tools { position: fixed; right: 18px; top: 46%; z-index: 40; display: grid; gap: 8px; }
.float-tools > a, .float-tools > button, .float-tools summary { display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 850; }
.wechat-menu { position: static; }
.wechat-menu summary { list-style: none; }
.wechat-menu summary::-webkit-details-marker { display: none; }
.wechat-menu:not([open]) .wechat-popover { display: none; }
.wechat-popover {
  position: fixed;
  right: 76px;
  top: calc(46% + 54px);
  z-index: 45;
  width: min(260px, calc(100vw - 110px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.wechat-popover:after {
  content: "";
  position: absolute;
  right: -8px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}
.wechat-popover span { display: block; color: var(--muted); font-size: 13px; font-weight: 850; }
.wechat-popover strong { display: block; margin: 8px 0 14px; color: var(--brand-dark); font-size: 22px; }
.copy-wechat {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}
.wechat-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.footer { display: flex; justify-content: space-between; gap: 30px; padding: 38px 5vw; background: #101d25; color: rgba(255,255,255,.78); }
.footer strong { color: #fff; font-size: 20px; }

@media (max-width: 1120px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 5vw 22px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .shop { text-align: center; }
}

@media (max-width: 860px) {
  .hero { min-height: 560px; height: 72vh; }
  .split, .card-grid, .feature-grid, .detail-layout, .contact-layout, .partner-grid { grid-template-columns: 1fr; }
  .calculator-jump, .tool-link-grid, .extra-calculators { grid-template-columns: 1fr; }
  .perforation-calculator { grid-template-columns: 1fr; }
  .calculator-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-row { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .topbar { min-height: 68px; }
  .logo { min-width: 0; }
  .logo span { max-width: calc(100vw - 120px); }
  .hero-copy { right: 5vw; }
  .section { padding: 58px 5vw; }
  .page-hero { padding: 72px 5vw; }
  .searchbar { flex-direction: column; }
  .calculator-intro, .calculator-form, .calculator-results { padding-left: 20px; padding-right: 20px; }
  .calculator-fields, .calculator-results dl, .tool-form, .tool-results { grid-template-columns: 1fr; }
  .tool-calculator { padding: 20px; }
  .tool-link-grid a { min-height: 130px; }
  .job-apply-form { grid-template-columns: 1fr; }
  .float-tools { right: 10px; }
  .wechat-popover { right: 66px; }
}
