:root {
  --navy: #0f1f3d;
  --navy2: #15294f;
  --blue: #1f6feb;
  --blue-dark: #1551b5;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #e6f4f2;
  --steel: #3a4a5e;
  --ink: #1c2530;
  --muted: #6b7785;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 31, 61, 0.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.brand:hover { color: #fff; }
.logo { height: 38px; width: 38px; border-radius: 8px; background: #fff; padding: 3px; }
.main-nav { display: flex; gap: 22px; margin-left: 10px; flex: 1; }
.main-nav a { color: #cdd8ea; font-weight: 500; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  color: #cdd8ea; border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 13px;
}
.lang-switch:hover { color: #fff; border-color: #fff; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: .15s ease;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-link { color: var(--blue); font-weight: 600; padding: 0; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 140%);
  color: #fff; padding: 80px 0 90px; text-align: center;
}
.hero h1 { font-size: 44px; margin: 0 0 18px; line-height: 1.2; }
.hero-sub { font-size: 19px; max-width: 720px; margin: 0 auto 30px; color: #d6e2f5; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; }

/* stats */
.stats-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 26px 0; }
.stat { text-align: center; min-width: 150px; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--blue); }
.stat-label { color: var(--muted); font-size: 14px; }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; text-align: center; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--steel); text-align: center; max-width: 820px; margin: 0 auto 40px; }

.card-grid { display: grid; gap: 22px; }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .15s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,31,61,.14); }
.cat-card img { height: 150px; width: 100%; object-fit: cover; }
.cat-body { padding: 16px 18px; }
.cat-body h3 { margin: 0 0 6px; font-size: 17px; }
.cat-body p { margin: 0; color: var(--muted); font-size: 14px; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .15s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,31,61,.14); }
.product-thumb { height: 200px; background: var(--bg-alt); }
.product-thumb img { height: 200px; width: 100%; object-fit: cover; }
.product-body { padding: 16px 18px 20px; }
.product-body h3 { margin: 0 0 8px; font-size: 17px; }
.product-body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.cat-group { margin-bottom: 44px; }
.cat-group-title { font-size: 22px; border-left: 4px solid var(--blue); padding-left: 12px; margin: 0 0 18px; }

/* product detail */
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }

.product-detail-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 40px; align-items: start; }
.product-detail-main { min-width: 0; }
.gallery { display: grid; gap: 12px; }
.gal-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gal-item img { width: 100%; height: 380px; object-fit: cover; }
.product-detail-info { margin-top: 18px; }
.product-detail-info h1 { font-size: 32px; margin: 0 0 10px; }
.product-detail-info .lead { text-align: left; margin: 0 0 16px; }
.product-detail-block { margin-top: 36px; }
.product-detail-block h2 { font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.product-detail-block p { color: var(--steel); margin: 0 0 12px; line-height: 1.75; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--bg-alt); width: 40%; font-weight: 600; color: var(--steel); }
.detail-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.product-detail-sidebar { position: sticky; top: 86px; align-self: start; }
.product-inquiry-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.inquiry-title { font-size: 19px; margin: 0 0 18px; color: var(--ink); }
.inquiry-fields { display: flex; flex-direction: column; gap: 16px; }
.inquiry-group { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.inquiry-group-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.product-inquiry-card .form-field { margin-bottom: 0; }
.product-inquiry-card .form-field input[readonly] { background: #f8fafc; color: var(--steel); }
.file-count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.btn-block { display: flex; justify-content: center; width: 100%; }

@media (max-width: 980px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-sidebar { position: static; max-width: 560px; }
}
@media (max-width: 640px) {
  .gal-item img { height: 260px; }
  .product-inquiry-card { padding: 18px; }
}

/* about */
.about-text p { font-size: 17px; color: var(--steel); }
.about-stats { margin-top: 36px; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.contact-side { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-side .footer-links { list-style: none; padding: 0; margin: 8px 0 0; }

/* quote form (参考站 request-a-quotation 样式) */
.quote-section { background: var(--bg-alt); padding: 40px 0 60px; }
.quote-section .section-title { text-align: center; margin-bottom: 8px; }
.quote-section .lead { text-align: center; color: var(--muted); margin-bottom: 32px; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 32px;
}
.quote-step { padding: 30px 34px; border-bottom: 1px solid var(--line); }
.quote-step:last-of-type { border-bottom: none; }
.step-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--teal-light); color: var(--teal); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.step-title { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.step-desc { margin: 0; color: var(--muted); font-size: 14px; }
.quote-fields { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-field .required { color: var(--teal); font-weight: 700; }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08); }
.form-field select { appearance: auto; cursor: pointer; }
.file-upload { display: flex; flex-direction: column; gap: 8px; }
.file-upload input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-upload-btn {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 10px 16px; border: 1px dashed var(--teal); border-radius: 10px;
  color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s ease;
}
.file-upload-btn:hover { background: var(--teal-light); }
.file-names { font-size: 13px; color: var(--muted); }
.quote-submit { padding: 26px 34px; text-align: center; border-top: 1px solid var(--line); }
.btn-quote {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; border: none; border-radius: 10px;
  padding: 14px 36px; font-size: 16px; font-weight: 700; cursor: pointer; transition: .15s ease;
}
.btn-quote:hover { background: var(--teal-dark); }
.privacy-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.quick-contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 34px; text-align: center; box-shadow: var(--shadow); }
.quick-contact h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.quick-contact > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.quick-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quick-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); transition: .15s ease;
}
.quick-card:hover { border-color: var(--teal); background: var(--teal-light); }
.quick-card strong { font-size: 13px; color: var(--muted); font-weight: 600; }
.quick-card span { font-size: 15px; font-weight: 700; color: var(--teal); }

@media (max-width: 640px) {
  .quote-step, .quote-submit { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .quick-contact { padding: 22px 18px; }
  .quick-contact-grid { grid-template-columns: 1fr; }
}
.contact-side .footer-links li { margin-bottom: 10px; }

/* footer */
.site-footer { background: var(--navy); color: #cdd8ea; padding: 48px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cdd8ea; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: #8fa1bd; }

/* responsive */
@media (max-width: 980px) {
  .why-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 32px; }
  .main-nav { display: none; }
  .why-grid, .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
}

/* 询盘提交成功提示 */
.form-success {
  background: #eafaf1;
  border: 1px solid #2ecc71;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
}
.form-success .success-title { color: #1e874b; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.form-success .success-note { color: #3a6b50; font-size: 14px; margin: 0; }
/* 产品详情动态页（Functions 渲染） */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 28px;
  align-items: start;
}
.product-detail-layout .gallery { display: grid; gap: 12px; }
.product-detail-layout .detail-info h1 { font-size: 30px; margin: 0 0 10px; }
.product-detail-layout .detail-info .lead { text-align: left; margin-left: 0; }
@media (max-width: 980px) {
  .product-detail-layout { grid-template-columns: 1fr; }
}
