/* components.css — 三页共用组件（站头 / 站尾 / 按钮 / 卡片 / 提示条） */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-5);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- 站头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 18px rgba(30, 43, 61, .08); }

.header-inner {
  height: var(--h-header);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: .5px;
  flex: 0 0 auto;
}
.brand-mark::after { content: "涂"; }
.brand-sub::after { content: "ADHESIVE & COATING"; }
.brand-name {
  font-size: var(--fs-6);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  min-height: 13px;
  font-size: var(--fs-1);
  color: var(--muted-2);
  letter-spacing: .18em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.site-nav a {
  position: relative;
  padding: 8px 9px;
  font-size: var(--fs-3);
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--navy); font-weight: 600; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(30, 43, 61, .14);
  z-index: 60;
}
.nav-item:hover .nav-drop { display: block; }
.nav-drop a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: var(--fs-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: var(--page-soft); color: var(--navy); }

.nav-guide { display: none; }
.nav-cta {
  flex: 0 0 auto;
  margin-left: 18px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #2b2415;
  font-size: var(--fs-3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s ease;
}
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--fs-4);
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--gold); color: #2b2415; }
.btn-primary:hover { background: var(--gold-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-outline { border-color: var(--line-strong); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { height: 36px; padding: 0 16px; font-size: var(--fs-3); }

/* ---------------------------------------------------------------- 通用块头 */
.eyebrow {
  margin: 0 0 12px;
  font-size: var(--fs-2);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  margin: 0;
  font-size: var(--fs-10);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .2px;
}
.section-note {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: var(--fs-4);
  line-height: 1.75;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-link {
  font-size: var(--fs-3);
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 1px solid rgba(33, 71, 118, .3);
  padding-bottom: 2px;
}
.section-link:hover { border-color: var(--navy); }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.thumb {
  position: relative;
  overflow: hidden;
  background: var(--blue-mist);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: var(--fs-1);
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------- FAQ */
.faq-list { margin: 0; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  font-size: var(--fs-4);
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: var(--fs-2);
  display: grid;
  place-items: center;
  margin-top: 2px;
  transition: background .18s ease, color .18s ease;
}
.faq-item[open] summary .q-mark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.faq-item .a {
  margin: 0 0 16px 34px;
  color: var(--ink-soft);
  font-size: var(--fs-4);
  line-height: 1.85;
}

/* ---------------------------------------------------------------- 表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-3);
}
.spec-table caption {
  text-align: left;
  color: var(--muted);
  font-size: var(--fs-2);
  padding-bottom: 10px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table thead th {
  background: var(--blue-band);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-3);
  border-bottom: none;
}
.spec-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 34px 0 26px;
}
.footer-main > .footer-brand { flex: 1 1 300px; min-width: 240px; }
.footer-main > .footer-col { flex: 1 1 180px; min-width: 160px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--on-dark-dim); }
.footer-about {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: var(--fs-2);
  line-height: 1.8;
  color: var(--on-dark-dim);
}
.footer-col h2 {
  margin: 4px 0 12px;
  font-size: var(--fs-3);
  letter-spacing: .08em;
  color: var(--white);
  font-weight: 600;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  font-size: var(--fs-2);
}
.footer-links a { color: var(--on-dark-dim); }
.footer-links a:hover { color: var(--white); }
.footer-note {
  font-size: var(--fs-2);
  color: var(--on-dark-dim);
  line-height: 1.8;
  margin: 0;
  max-width: 46ch;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 14px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--fs-1);
  color: rgba(233, 240, 250, .6);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
  .site-nav a { padding: 8px 6px; font-size: var(--fs-2); }
  .footer-main { gap: 40px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--h-header) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: calc(100vh - var(--h-header));
    overflow: auto;
    box-shadow: 0 18px 30px rgba(30, 43, 61, .12);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 11px 4px; border-bottom: 1px solid var(--line-soft, #eef1f6); }
  .site-nav a::after { display: none; }
  .nav-item { display: block; }
  .nav-drop {
    display: block;
    position: static;
    transform: none;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-drop a { padding: 8px 4px; font-size: var(--fs-2); border-bottom: 1px solid var(--line-soft, #eef1f6); }
  .nav-cta { display: none; }
  .nav-guide {
    display: block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--gold);
    color: #2b2415;
    font-weight: 600;
    text-align: center;
    border-bottom: 0;
  }
  .nav-guide::after { display: none; }
  .footer-main { gap: 32px; }
}

@media (max-width: 760px) {
  .brand-name { font-size: var(--fs-4); }
  .footer-main { flex-direction: column; gap: 26px; padding: 28px 0 20px; }
  .footer-main > .footer-brand,
  .footer-main > .footer-col { flex: none; min-width: 0; width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .section-title { font-size: var(--fs-8); }
}
