/* ==========================================================================
   ruidaparts.com — industrial B2B stylesheet
   Palette: deep navy structure, single orange accent. No external fonts.
   ========================================================================== */

:root {
  /* 工业硅胶站专属配色，与 AI 落地业务线（#003078 + 湖青）明确区分 */
  --navy: #0d1b2a;
  --navy-deep: #08131e;
  --navy-2: #12263a;
  --navy-3: #17324a;
  --orange: #e8621c;
  --orange-d: #c94f12;
  --ink: #16202b;
  --body: #33424f;
  --muted: #5f7183;
  --line: #dfe5ec;
  --line-2: #eaf0f6;
  --paper: #ffffff;
  --alt: #f5f8fb;
  --radius: 5px;
  --wrap: 1150px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.09);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--orange-d); text-decoration: none; }
a:hover { color: var(--orange-d); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.22; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.btn-ghost { background: transparent; color: #dbe6f1; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { display: block; width: 40px; height: 40px; flex: 0 0 auto; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand-text em {
  display: block;
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  color: #7f95ab;
  margin-top: 5px;
}

.nav { margin-left: auto; min-width: 0; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  color: #c2d1df;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}
.nav > ul > li > a:hover,
.nav > ul > li > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }

.caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.65;
}

.nav .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: none;
}
.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub { display: block; }
.nav .sub li a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 0.9rem;
  border-radius: 4px;
}
.nav .sub li a:hover { background: var(--alt); color: var(--orange-d); }

.header-cta { flex: 0 0 auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  color: #c9d6e3;
  overflow: hidden;
}
/* 右上角一道橙色细边，做视觉锚点。不用径向光晕——深底上会显脏，且被相邻块切出硬边。 */
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 3px;
  background: linear-gradient(to left, var(--orange), rgba(232, 98, 28, 0));
  pointer-events: none;
}
.hero-home { padding: 92px 0 0; }
.hero-sub { padding: 66px 0 62px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero h1 {
  color: #fff;
  overflow-wrap: break-word;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  max-width: 20ch;
}
.hero-sub h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 26ch; }
.hero-lead { max-width: min(74ch, 100%); margin-top: 22px; color: #b7c7d7; font-size: 1.06rem; }
.hero-lead p { margin: 0 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 66px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}
.stat { background: var(--navy); padding: 24px 22px 30px; }
.stat-num {
  display: block;
  color: #fff;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.stat-label {
  display: block;
  margin-top: 7px;
  color: #8298ad;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ---------- content blocks ---------- */
.block { padding: 58px 0; }
.block-alt { background: var(--alt); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.block:last-of-type { padding-bottom: 70px; }

.section-body {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.block h2 {
  position: sticky;
  top: 100px;
  margin: 0;
  padding-top: 20px;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.28;
}
.block h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 3px;
  background: var(--orange);
}

.prose p { margin: 0 0 18px; max-width: min(74ch, 100%); font-size: 1rem; line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.9em;
  color: var(--ink);
}

/* card lists — any <ul> whose items open with a bold label */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}
.card-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  font-size: 0.94rem;
  line-height: 1.68;
  box-shadow: 0 1px 2px rgba(12, 26, 41, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card-grid li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid li strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 6px; }
.card-grid a.card-link { color: var(--ink); border-bottom: 1px solid transparent; }
.card-grid a.card-link:hover { color: var(--orange-d); border-bottom-color: var(--orange); }
.card-grid a.card-link::after { content: " \2192"; color: var(--orange); font-weight: 400; }

.block-plain { padding: 64px 0 76px; }
.block-plain .prose { max-width: 1040px; }

.steps { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; gap: 15px; }
.steps li { position: relative; counter-increment: step; padding-left: 46px; font-size: 0.98rem; line-height: 1.6; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-size: 0.78rem; font-weight: 700;
}
.steps li:last-child::after {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: -15px;
  width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }

.plain-list { list-style: none; margin: 0; padding: 0; max-width: min(80ch, 100%); }
.plain-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.98rem;
  line-height: 1.62;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 11px; height: 2px;
  background: var(--orange);
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; }
th {
  background: var(--navy-deep);
  color: #fff;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
}
td { padding: 12px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fafcfd; }

/* ---------- FAQ accordions ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 19px 44px 19px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--orange-d); }
.faq-answer { padding: 0 44px 20px 0; }
.faq-answer p { margin: 0 0 12px; font-size: 0.97rem; line-height: 1.75; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.block-gallery .section-head { max-width: 760px; margin-bottom: 30px; display: block; }
.block-gallery .section-head h2 {
  position: static;
  display: block;
  font-size: 1.42rem;
  line-height: 1.3;
  margin: 0 0 12px;
  padding-top: 20px;
}
.block-gallery .section-head h2::before {
  content: ""; position: absolute; left: 0; width: 42px; height: 3px; background: var(--orange);
}
.block-gallery .section-head h2 { position: relative; top: auto; }
.block-gallery .section-head h2::before { top: 0; }
.block-gallery .section-head p { margin: 0; color: var(--body); font-size: 0.97rem; line-height: 1.65; }

/* ---------- lead-time bar (product pages) ---------- */
.lead-bar { background: #fff; border-bottom: 1px solid var(--line-2); }
.lead-bar-inner { display: flex; align-items: center; justify-content: space-between;
                  gap: 20px; padding: 13px 0; }
.lead-bar p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--body); }
.lead-bar strong { color: var(--ink); margin-right: 12px; font-size: 0.72rem; font-weight: 700;
                   letter-spacing: 0.14em; text-transform: uppercase; }
.lead-bar a { font-size: 0.84rem; font-weight: 600; color: var(--orange); white-space: nowrap; }
.lead-bar a:hover { color: var(--orange-d); }

.block-gallery { background: var(--alt); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }
.gallery figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease;
}
.gallery figure:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gallery img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  padding: 10px; background: #fff;
}
.gallery figcaption { padding: 10px 13px 13px; border-top: 1px solid var(--line-2); font-size: 0.8rem; line-height: 1.45; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.gallery figcaption span { color: var(--muted); }
.gallery-note { margin: 22px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; max-width: min(100ch, 100%); }

.cta-band {
  background: var(--navy-2);
  background-image: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  padding: 54px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.42rem; letter-spacing: -0.01em; margin-bottom: 8px; max-width: 34ch; }
.cta-band p { margin: 0; color: #a9bccd; font-size: 0.97rem; max-width: 62ch; }

/* ---------- form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rfq-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.rfq-form label.full { grid-column: 1 / -1; }
.req { color: var(--orange); }
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #ccd7e2;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 400;
}
.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 98, 28, 0.13);
}
.rfq-form textarea { resize: vertical; }
.rfq-form input[type="file"] { padding: 9px 12px; background: var(--alt); font-size: 0.86rem; }
.form-note { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-side { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.form-side h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-side h3 + h3 { margin-top: 24px; }
.form-side p { margin: 0 0 6px; font-size: 0.94rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #9db0c2; padding: 62px 0 26px; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-legal-name { color: #fff; font-weight: 600; margin: 0 0 8px; font-size: 0.92rem; }
.footer-brand p { margin: 0 0 6px; line-height: 1.6; }
.footer-brand a { color: #c3d3e2; }
.footer-brand a:hover { color: var(--orange-d); }

.footer-col h3 {
  color: #8ba1b6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a { display: block; color: #b6c7d7; padding: 5px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange-d); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; }
.trademark { margin: 0 0 16px; color: #7b8ea1; font-size: 0.79rem; line-height: 1.6; max-width: min(100ch, 100%); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 0.83rem; color: #7b8ea1; }
.footer-links a { color: #a9bccd; }
.footer-links a:hover { color: var(--orange-d); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-wrap { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .header-cta { margin-left: auto; }
  .nav { order: 3; width: 100%; max-width: 100%; flex: 1 0 100%; margin: 8px 0 0;
         padding-right: 44px;
         overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
         /* 右缘渐隐，提示菜单还能横向滑动 */
         mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%);
         -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%); }
  .nav::-webkit-scrollbar { display: none; }
  .nav > ul { flex-wrap: nowrap; gap: 2px; }
  .nav .sub { display: none !important; }
  .nav > ul > li > a { padding: 8px 10px; white-space: nowrap; }
  .section-body { grid-template-columns: 1fr; gap: 22px; }
  .block h2 { position: static; }
  .hero-home { padding-top: 62px; }
  .hero h1 { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* 窄屏：菜单换行全部可见，不做横向滚动——小站入口少，看得全比省空间重要 */
@media (max-width: 620px) {
  .nav { overflow-x: visible; padding-right: 0;
         mask-image: none; -webkit-mask-image: none; }
  .nav > ul { flex-wrap: wrap; row-gap: 0; }
  .nav > ul > li > a { padding: 7px 9px; font-size: 0.82rem; }
  .header-cta { font-size: 0.8rem; padding: 8px 11px; }
}

@media (max-width: 480px) {
  .brand-text { font-size: 0.94rem; letter-spacing: 0.12em; }
  .brand-mark { width: 30px; height: 30px; }
  .hero h1 { font-size: 1.72rem; }
  .stat-num { font-size: 1.16rem; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.08em; }
  .stat { padding: 18px 14px 22px; }
  .cta-band h2 { font-size: 1.2rem; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .block { padding: 54px 0; }
  .block h2 { font-size: 1.28rem; }
  .hero-sub { padding: 48px 0 44px; }
  .stats { margin-top: 44px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .lead-bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 0; }
}
