/* ==========================================================================
   TONGKE (CHINA) INDUSTRIAL — titanium website
   Single stylesheet, no external dependencies, no web fonts.
   ========================================================================== */

:root {
  --ink: #101c2b;
  --ink-2: #33465c;
  --muted: #62748a;
  --line: #dde5ee;
  --line-2: #eef3f8;
  --bg: #ffffff;
  --bg-2: #f5f8fb;
  --bg-3: #eaf1f7;
  --brand: #0d4f86;
  --brand-dark: #0a3b65;
  --brand-soft: #e8f1f9;
  --wa: #1f9d55;
  --wa-dark: #157f43;
  --amber-bg: #fff8e6;
  --amber-line: #f0d99b;
  --amber-ink: #6b4e00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 28, 43, .06), 0 8px 24px rgba(16, 28, 43, .06);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2.05rem; letter-spacing: -.015em; }
h2 { font-size: 1.42rem; margin-top: 2em; }
h3 { font-size: 1.12rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--brand-dark); color: #dce9f5; font-size: .82rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 7px 20px; }
.topbar a { color: #fff; }
.topbar .sep { opacity: .45; }

header.site {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand);
  color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; letter-spacing: .02em;
}
.brand .txt small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-2); font-size: .9rem; padding: 7px 10px; border-radius: 7px; white-space: nowrap;
}
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }

.header-cta { display: flex; gap: 8px; align-items: center; }

.burger { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 1rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-sm { padding: 8px 13px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b6c3d2; }
.crumbs a { color: var(--brand); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #f7fafd 0%, #ffffff 100%); border-bottom: 1px solid var(--line-2); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 34px; padding-bottom: 38px; }
.hero .eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; font-weight: 700;
}
.hero h1 { font-size: 2.3rem; }
.hero .lede { font-size: 1.05rem; color: var(--ink-2); }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.hero-media figcaption { font-size: .76rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line-2); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.assure { font-size: .86rem; color: var(--muted); }
.assure strong { color: var(--ink-2); }

/* ---------- layout ---------- */
main { display: block; padding-bottom: 10px; }
.page { padding-top: 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; align-items: start; }
.cols > * { min-width: 0; }
@media (max-width: 980px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

.sec { margin: 34px 0; }
.sec > h2:first-child { margin-top: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; background: #fff;
}
.card h3 { margin-top: 0; font-size: 1.02rem; }
.card p { margin-bottom: .6em; font-size: .92rem; color: var(--ink-2); }
.card .micro { font-size: .82rem; color: var(--muted); }
.card-link { font-weight: 600; font-size: .88rem; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); }

/* ---------- spec table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table.spec { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .89rem; }
table.spec caption { text-align: left; padding: 11px 14px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .87rem; }
table.spec th, table.spec td { border-bottom: 1px solid var(--line-2); padding: 9px 13px; text-align: left; vertical-align: top; }
table.spec thead th { background: var(--bg-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td strong { color: var(--ink); }
.src { font-size: .8rem; color: var(--muted); margin: -0.6em 0 1.3em; }

/* ---------- notices ---------- */
.note {
  border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--amber-ink);
  border-radius: 8px; padding: 12px 15px; font-size: .87rem; margin: 0 0 1.3em;
}
.note strong { color: #4d3800; }
.note.info { border-color: #cfe0ef; background: #f2f8fd; color: #1c4a72; }
.note.info strong { color: #12395c; }

/* ---------- copy-paste RFQ template ---------- */
.tmpl {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  margin: 0 0 1.3em; text-align: start;
}
.tmpl summary {
  cursor: pointer; padding: 12px 15px; font-weight: 600; font-size: .95rem; list-style: none;
}
.tmpl summary::-webkit-details-marker { display: none; }
.tmpl summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.tmpl[open] summary::after { content: "\2013"; }
.tmpl pre {
  margin: 0; padding: 0 15px 15px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.65; color: var(--ink);
}
@media (max-width: 620px) { .tmpl pre { font-size: .8rem; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }
figure.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
figure.shot img { width: 100%; height: 210px; object-fit: cover; background: var(--bg-2); }
figure.shot figcaption { font-size: .78rem; color: var(--muted); padding: 8px 11px; }

/* ---------- faq ---------- */
details.faq { border: 1px solid var(--line); border-radius: 8px; padding: 0; margin-bottom: 9px; background: #fff; }
details.faq summary { cursor: pointer; padding: 12px 15px; font-weight: 600; font-size: .95rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .faq-body { padding: 0 15px 14px; font-size: .93rem; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-2);
  border-radius: var(--radius); padding: 20px 22px; margin: 32px 0;
}
.cta h2, .cta h3 { margin-top: 0; }
.cta .actions { margin-bottom: 8px; }
.cta .fine { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }

.inline-cta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  border: 1px dashed var(--brand); background: var(--brand-soft); border-radius: 8px;
  padding: 13px 16px; margin: 20px 0;
}
.inline-cta p { margin: 0; font-size: .9rem; color: var(--brand-dark); font-weight: 600; flex: 1 1 240px; }

/* ---------- sidebar ---------- */
aside.side { position: sticky; top: 84px; }
.sidebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; background: #fff; margin-bottom: 16px; }
.sidebox h3 { margin-top: 0; font-size: .96rem; }
.sidebox ul { list-style: none; padding: 0; margin: 0; font-size: .89rem; }
.sidebox li { margin-bottom: 7px; }
.sidebox .btn { margin-top: 6px; }
.sidebox p { font-size: .86rem; color: var(--muted); }
.sidebox .btn-wa.btn-block { margin-top: 6px; }

/* ---------- contact panel (WhatsApp 1 / 2 + email) ---------- */
.cpanel { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius);
          background: #fff; padding: 18px 20px; margin: 22px 0; }
.cpanel h2 { margin-top: 0; font-size: 1.12rem; }
.cpanel-lede { font-size: .93rem; color: var(--ink-2); margin-bottom: 14px; }
.cpanel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cpanel-item { min-width: 0; }
.cpanel-k { display: block; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
            color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.cpanel-item .btn-block { word-break: break-word; white-space: normal; }
.cpanel .fine { margin-top: 12px; font-size: .84rem; color: var(--muted); }
@media (max-width: 620px) {
  .cpanel-grid { grid-template-columns: 1fr; }
}

/* ---------- steps ---------- */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 15px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}
ol.steps > li strong { display: block; }

/* ---------- form ---------- */
form.inquiry { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }
.req { color: #b3261e; }

/* ---------- footer ---------- */
footer.site { background: #0c1b2a; color: #b9c9da; margin-top: 50px; font-size: .89rem; }
footer.site .wrap { padding: 40px 20px 20px; }
footer.site h4 { color: #fff; font-size: .93rem; margin: 0 0 10px; }
footer.site a { color: #cfe0ef; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.fbottom { border-top: 1px solid #1d3145; margin-top: 28px; padding-top: 16px; font-size: .8rem; color: #8ea3b8; display: flex; flex-wrap: wrap; gap: 8px 20px; }

.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 26px; }

/* ---------- misc ---------- */
.pill { display: inline-block; font-size: .74rem; font-weight: 700; background: var(--bg-3); color: var(--brand-dark); border-radius: 999px; padding: 3px 9px; margin-right: 6px; }
.pill.g { background: #e6f5ec; color: #17663a; }
.two-col { columns: 2; column-gap: 34px; }
@media (max-width: 700px) { .two-col { columns: 1; } }
.mt0 { margin-top: 0; }

@media (max-width: 900px) {
  nav.main { display: none; }
  nav.main.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); gap: 2px;
  }
  .burger { display: block; }
  header.site { position: relative; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.24rem; }
  .header-cta .btn { padding: 8px 12px; font-size: .85rem; }
}
