/* =========================================================================
   Swiss-Type CNC Turning Services  (/swiss-type-cnc-turning/)
   Scoped stylesheet — EVERY selector is prefixed .swt- (container .swt-page)
   Online path: https://www.xmgoldcattle.com/assets/css/swiss-type-cnc-turning.css
   Deploy to: website root /assets/css/  (FTP / 宝塔 / file manager) — NOT uploads
   After edit bump ?ver= to clear cache.
   HARD RULE: HTML fragment contains ZERO inline CSS — all styling lives here.
   ========================================================================= */

.swt-page {
  --swt-blue: #0052cc;
  --swt-navy: #0f2747;
  --swt-accent: #00a3c4;
  --swt-ink: #1b2733;
  --swt-muted: #5a6675;
  --swt-line: #e2e7ee;
  --swt-bg: #f5f7fa;
  --swt-card: #ffffff;
  --swt-soft: #eef3f8;
  --swt-radius: 14px;
  --swt-shadow: 0 10px 30px rgba(15, 39, 71, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--swt-ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}
.swt-page * { box-sizing: border-box; }
.swt-page img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
.swt-page a { color: var(--swt-blue); text-decoration: none; }
.swt-page a:hover { text-decoration: underline; }

.swt-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.swt-page h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--swt-navy); margin: 0 0 14px; letter-spacing: -.01em; }
.swt-page h3 { font-size: 19px; color: var(--swt-navy); margin: 0 0 8px; }
.swt-page p { margin: 0 0 14px; }
.swt-page ul { margin: 0 0 14px; padding-left: 20px; }
.swt-page li { margin: 4px 0; }

/* ---------- HERO ---------- */
.swt-hero { background: linear-gradient(135deg, #0f2747 0%, #16365f 55%, #0f2747 100%); color: #fff; padding: 56px 0 50px; }
.swt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.swt-hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fd3ff; margin-bottom: 14px; }
.swt-hero-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.swt-hero-lead { font-size: 17px; color: #d4e2f1; margin: 0 0 22px; max-width: 52ch; }
.swt-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.swt-tag { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #eaf2fb; }
.swt-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.swt-hero-media img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }

/* ---------- SECTIONS ---------- */
.swt-sec { padding: 52px 0; border-bottom: 1px solid var(--swt-line); }
.swt-sec:nth-of-type(even) { background: var(--swt-bg); }
.swt-sec-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--swt-blue); margin-bottom: 8px; }
.swt-sec-title { margin-bottom: 10px; }
.swt-sec-lead { font-size: 17px; color: var(--swt-muted); max-width: 70ch; margin-bottom: 22px; }

/* ---------- TABLES ---------- */
.swt-table { width: 100%; border-collapse: collapse; background: var(--swt-card); border-radius: 12px; overflow: hidden; box-shadow: var(--swt-shadow); margin: 0 0 18px; }
.swt-table th, .swt-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--swt-line); vertical-align: top; font-size: 15px; }
.swt-table th { background: var(--swt-navy); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.swt-table tr:last-child td { border-bottom: none; }
.swt-table tbody tr:nth-child(even) { background: var(--swt-soft); }
.swt-tnum { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--swt-navy); white-space: nowrap; }
.swt-table .swt-yes { color: #1a7f37; font-weight: 700; }
.swt-table .swt-no { color: #b42318; font-weight: 600; }

/* ---------- CAPABILITY CARDS ---------- */
.swt-capgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.swt-cap { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--swt-shadow); }
.swt-cap dt { font-size: 13px; color: var(--swt-muted); font-weight: 600; margin-bottom: 4px; }
.swt-cap dd { margin: 0; font-size: 17px; font-weight: 700; color: var(--swt-navy); }
.swt-cap span { font-size: 12.5px; color: var(--swt-muted); font-weight: 500; display: block; margin-top: 3px; }

/* ---------- FLOW DIAGRAMS ---------- */
.swt-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 18px 0 22px; }
.swt-step { flex: 1 1 150px; min-width: 140px; background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 10px; padding: 14px 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--swt-navy); box-shadow: var(--swt-shadow); display: flex; align-items: center; justify-content: center; }
.swt-arrow { display: flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--swt-blue); font-weight: 800; font-size: 20px; }
.swt-flow-col { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 18px 0 22px; }
.swt-flow-col .swt-step { width: 260px; max-width: 100%; }
.swt-flow-col .swt-arrow { padding: 6px 0; }

/* ---------- FEATURE GRID (machine config / micro features) ---------- */
.swt-featgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 6px 0 18px; }
.swt-feat { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--swt-shadow); }
.swt-feat h3 { font-size: 16px; margin-bottom: 6px; }
.swt-feat p { font-size: 14px; color: var(--swt-muted); margin: 0; }

/* ---------- PART TAXONOMY ---------- */
.swt-taxo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.swt-taxo-col { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--swt-shadow); }
.swt-taxo-col h3 { font-size: 17px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--swt-soft); }
.swt-taxo-col ul { margin: 0; padding-left: 18px; }
.swt-taxo-col li { font-size: 14.5px; }

/* ---------- MATERIALS GRID ---------- */
.swt-matgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.swt-mat { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--swt-shadow); }
.swt-mat h3 { font-size: 16px; margin-bottom: 8px; }
.swt-mat ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; }
.swt-mat p { font-size: 13.5px; color: var(--swt-muted); margin: 0; }

/* ---------- CASE CARDS ---------- */
.swt-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.swt-case { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 14px; overflow: hidden; box-shadow: var(--swt-shadow); display: flex; flex-direction: column; }
.swt-case-media { background: var(--swt-soft); }
.swt-case-media img { width: 100%; border-radius: 0; }
.swt-case-body { padding: 18px 20px 20px; }
.swt-case-body h3 { font-size: 18px; margin-bottom: 10px; }
.swt-spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 0 0 10px; }
.swt-spec dt { color: var(--swt-muted); font-weight: 600; }
.swt-spec dd { margin: 0; color: var(--swt-navy); font-weight: 600; }
.swt-case p { font-size: 14px; color: var(--swt-muted); margin: 0; }

/* ---------- FAQ ---------- */
.swt-faq { max-width: 860px; }
.swt-faq details { background: var(--swt-card); border: 1px solid var(--swt-line); border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; box-shadow: var(--swt-shadow); }
.swt-faq summary { cursor: pointer; font-weight: 700; color: var(--swt-navy); padding: 13px 0; font-size: 16px; list-style: none; }
.swt-faq summary::-webkit-details-marker { display: none; }
.swt-faq summary::after { content: "+"; float: right; color: var(--swt-blue); font-size: 22px; line-height: 1; font-weight: 700; }
.swt-faq details[open] summary::after { content: "\2212"; }
.swt-faq details p { font-size: 15px; color: var(--swt-muted); padding-bottom: 14px; margin: 0; }

/* ---------- CTA / QUOTE CHECKLIST ---------- */
.swt-cta { background: linear-gradient(135deg, #0f2747 0%, #16365f 100%); color: #fff; border-radius: 16px; padding: 34px 30px; margin: 8px 0 4px; }
.swt-cta h2 { color: #fff; margin-bottom: 8px; }
.swt-cta p { color: #d4e2f1; }
.swt-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.swt-checklist { columns: 2; column-gap: 30px; font-size: 14.5px; color: #d4e2f1; margin: 0; padding-left: 18px; }
.swt-checklist li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- BUTTONS (standard gc-btn) ---------- */
.swt-page .gc-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 13px 26px; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: .15s; }
.swt-page .gc-btn--primary { background: var(--swt-blue); color: #fff; }
.swt-page .gc-btn--primary:hover { background: #003ea0; text-decoration: none; }
.swt-page .gc-btn--ghost { background: transparent; color: var(--swt-blue); border-color: var(--swt-blue); }
.swt-page .gc-btn--ghost:hover { background: rgba(0,82,204,.08); text-decoration: none; }
.swt-hero .gc-btn--ghost, .swt-cta .gc-btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.swt-hero .gc-btn--ghost:hover, .swt-cta .gc-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- UTILITY SPACING (scoped) ---------- */
.swt-page .swt-mt0  { margin-top: 0; }
.swt-page .swt-mb0  { margin-bottom: 0; }
.swt-page .swt-mt18 { margin-top: 18px; }
.swt-page .swt-mt22 { margin-top: 22px; }
.swt-page .swt-mt24 { margin-top: 24px; }
.swt-page .swt-mt26 { margin-top: 26px; }
.swt-page .swt-related { margin-top: 18px; font-size: 14px; color: var(--swt-muted); }
.swt-page .swt-example { max-width: 420px; }
.swt-page .swt-planned { font-size: 13px; color: #8794a3; }

/* ---------- NOTE / HONESTY BOX ---------- */
.swt-note { background: var(--swt-soft); border-left: 4px solid var(--swt-accent); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 14px; color: var(--swt-muted); margin: 14px 0; }
.swt-note b { color: var(--swt-navy); }

/* ---------- RFQ MODAL (iframe — proven mail path) ----------
   Styles kept external so the HTML fragment stays CSS-free. */
#gcqModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 20, 35, .72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#gcqModal.swt-open { display: flex; }
.swt-modal-box {
  position: relative;
  width: min(920px, 100%);
  height: min(88vh, 860px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.swt-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #0f2747;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.swt-modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .swt-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .swt-hero-media { order: -1; }
  .swt-checklist { columns: 1; }
  .swt-flow { flex-direction: column; align-items: stretch; }
  .swt-arrow { padding: 4px 0; transform: rotate(90deg); }
}
