/* ThermoSpray Pro - site styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #1a5fb4; --blue-dark: #0d3b7a; --dark: #0f2237; --gray: #f4f6f9;
  --text: #2b3440; --muted: #66717f; --line: #e3e8ee; --accent: #f5a623;
}
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header (two rows: top = logo + search, bottom = nav + cta) */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-top { max-width: 1160px; margin: 0 auto; padding: 14px 20px 10px; display: flex; align-items: center; gap: 28px; }
.header-bottom { max-width: 1160px; margin: 0 auto; padding: 0 20px 10px; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.logo { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: .5px; }
.logo span { color: var(--blue); }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav > a { color: var(--dark); font-weight: 600; font-size: 14.5px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav > a:hover, .main-nav > a.active { color: var(--blue); border-color: var(--blue); }
.header-cta { white-space: nowrap; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* nav dropdown */
.nav-drop { position: relative; }
.nav-drop .drop-toggle { color: var(--dark); font-weight: 600; font-size: 14.5px; padding: 6px 2px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .drop-toggle:hover, .nav-drop:hover .drop-toggle, .nav-drop.active .drop-toggle { color: var(--blue); }
.nav-drop.active .drop-toggle { border-color: var(--blue); }
.nav-drop .caret { font-size: 10px; color: var(--muted); transition: transform .18s; }
.nav-drop:hover .caret { transform: rotate(180deg); }
.drop-menu { position: absolute; top: calc(100% + 8px); left: -14px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 38px rgba(13,40,80,.16); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 600; border-bottom: none; }
.drop-menu a:hover { background: #eaf1fb; color: var(--blue-dark); }

/* buttons */
.btn { display: inline-block; padding: 11px 24px; border-radius: 6px; font-weight: 700; font-size: 14.5px; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn.big { padding: 15px 36px; font-size: 16px; }

/* hero + slider */
.hero { background: linear-gradient(135deg, #0d3b7a, #123c66); background-size: cover; color: #fff; padding: 96px 0 84px; }
.hero h1 { font-size: 42px; line-height: 1.2; max-width: 760px; }
.hero-sub { margin: 20px 0 30px; font-size: 18px; max-width: 680px; color: #dbe6f5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slider { position: relative; padding: 0; overflow: hidden; }
.hero-slider .slides { position: relative; }
.hero-slider .slide { display: none; background: linear-gradient(135deg, #0d3b7a, #123c66); background-size: cover; background-position: center; padding: 96px 0 84px; }
.hero-slider .slide.on { display: block; animation: slideFade .7s ease; }
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; transition: .18s; display: flex; align-items: center; justify-content: center; }
.slide-arrow:hover { background: var(--blue); }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }
.slide-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slide-dots .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: transparent; cursor: pointer; padding: 0; transition: .18s; }
.slide-dots .dot.on { background: var(--accent); border-color: var(--accent); }

/* sections */
.section { padding: 72px 0; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--dark); color: #dce5ef; }
.sec-title { font-size: 30px; margin-bottom: 36px; color: var(--dark); }
.sec-title.light { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.sec-head .sec-title { margin-bottom: 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 24px; transition: box-shadow .2s, border-color .2s; }
.feature:hover { border-color: #c8d8ee; box-shadow: 0 10px 26px rgba(13,59,122,.09); }
.f-icon { width: 52px; height: 52px; border-radius: 10px; background: #eaf1fb; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }
.sec-sub { max-width: 800px; color: var(--muted); font-size: 15.5px; }
.sec-title + .sec-sub { margin: -18px 0 34px; }

/* trust strip — credentials under Why Choose Us */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 34px; }
.trust-item { background: #fff; padding: 22px 16px; text-align: center; }
.trust-item b { display: block; font-size: 24px; line-height: 1.25; color: var(--blue-dark); }
.trust-item span { color: var(--muted); font-size: 13px; }
.cert-row { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .trust-item b { font-size: 21px; }
}

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(13,59,122,.13); transform: translateY(-3px); }
.card-img img { height: 185px; width: 100%; object-fit: cover; }
.img-ph { height: 185px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dce8f7, #b9cfe9); color: #4a6a93; font-weight: 800; letter-spacing: 1px; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tag { align-self: flex-start; background: #eaf1fb; color: var(--blue-dark); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.card h3 { font-size: 17px; color: var(--dark); }
.card p { font-size: 14px; color: var(--muted); flex: 1; }
.more { font-size: 13.5px; font-weight: 700; }

/* ---------- processing videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.vthumb { position: relative; overflow: hidden; background: #0d1b30; }
.vthumb img { height: 195px; width: 100%; object-fit: cover; transition: transform .35s ease; }
.vcard:hover .vthumb img { transform: scale(1.05); }
.img-ph-video { height: 195px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16305a, #0d1b30); color: #6f9ad1; font-size: 36px; }
.play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-badge::before {
  content: ''; position: absolute; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(13, 59, 122, .6); border: 2px solid rgba(255,255,255,.85); transition: .2s;
}
.play-tri { position: relative; width: 0; height: 0; margin-left: 6px; display: block; border-left: 19px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.vcard:hover .play-badge::before { background: rgba(26, 95, 180, .85); }
.vtime { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

/* detail page video player */
.video-player { position: relative; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.video-player video { width: 100%; height: auto; max-height: 78vh; display: block; background: #000; }
.video-embed { position: relative; padding-top: 56.25%; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-missing { background: var(--gray); border: 1px dashed var(--line); border-radius: 8px; padding: 24px; color: var(--muted); margin-bottom: 24px; }

/* industries */
.industry-row { display: flex; flex-wrap: wrap; gap: 14px; }
.industry { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 14px 26px; border-radius: 8px; font-weight: 600; }

/* category nav */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-chip { padding: 8px 20px; border-radius: 24px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; }
.cat-chip:hover { border-color: var(--blue); color: var(--blue); }
.cat-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* page head */
.page-head { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding: 52px 0 44px; }
.page-head h1 { font-size: 34px; }
.breadcrumb { margin-top: 10px; font-size: 13.5px; color: #c6d7ec; }
.breadcrumb a { color: #fff; text-decoration: underline; }
.page-desc { margin-top: 14px; max-width: 720px; color: #dbe6f5; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.about-side { display: grid; gap: 16px; }
.stat-card { background: var(--gray); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 6px; }
.stat-card b { display: block; font-size: 26px; color: var(--blue-dark); }
.stat-card span { color: var(--muted); font-size: 13.5px; }
.detail-content h3 { margin: 22px 0 10px; font-size: 20px; color: var(--dark); }
.detail-content ul, .detail-content ol { padding-left: 22px; margin: 10px 0; }
.detail-content li { margin: 6px 0; }
.detail-content h2 { margin: 26px 0 12px; font-size: 24px; color: var(--dark); }
.detail-content h4 { margin: 18px 0 8px; font-size: 17px; color: var(--dark); }
.detail-content p { margin: 0 0 14px; }
.detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.detail-content a { color: var(--blue); text-decoration: underline; }
.detail-content blockquote { margin: 18px 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--gray); border-radius: 0 6px 6px 0; color: var(--muted); }
.detail-content hr { border: none; border-top: 1px dashed var(--line); margin: 24px 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.detail-content th, .detail-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.detail-content th { background: var(--gray); font-weight: 700; color: var(--dark); }
.detail-content tbody tr:nth-child(even) td { background: #fafbfd; }

/* detail */
.detail { display: grid; grid-template-columns: 1.8fr 1fr; gap: 44px; align-items: start; }
.detail-cover { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 26px; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.detail-gallery img { max-width: 100%; height: auto; border-radius: 8px; }
/* 兜底：详情区任何图片（含正文表格内）都不允许超出容器宽度；!important 压过粘贴带来的行内宽度 */
.detail img { max-width: 100% !important; height: auto; }
.detail-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.side-box { background: var(--gray); border-radius: 8px; padding: 18px 20px; }
.side-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.cta-box { background: var(--blue-dark); color: #fff; }
.cta-box h4 { color: #9fb9dc; }
.cta-box .btn { margin-top: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.c-row { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; display: grid; gap: 14px; }
.contact-form h3 { font-size: 20px; }
.contact-form label { font-size: 13.5px; font-weight: 700; color: var(--dark); display: grid; gap: 6px; }
.contact-form input, .contact-form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-msg { font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #177245; } .form-msg.err { color: #c0392b; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; text-align: center; padding: 64px 20px; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: #d6e3f4; margin-bottom: 24px; }

/* footer */
.site-footer { background: #0b1a2b; color: #9db1c9; padding: 56px 0 0; }
.footer-grid { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { color: #fff !important; margin-bottom: 12px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer a { display: block; color: #9db1c9; margin-bottom: 9px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { max-width: 1160px; margin: 40px auto 0; padding: 18px 20px; border-top: 1px solid #1d3050; font-size: 13px; text-align: center; }

/* header search */
.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #f5f7fa; flex: 0 0 210px; transition: border-color .15s; }
.header-search:focus-within { border-color: var(--blue); background: #fff; }
.header-search input { border: none; outline: none; background: transparent; padding: 7px 12px; font-size: 13.5px; width: 100%; min-width: 0; color: var(--dark); }
.header-search button { border: none; background: transparent; cursor: pointer; padding: 6px 10px 6px 2px; font-size: 14px; color: var(--muted, #64748b); }
.header-search button:hover { color: var(--blue); }

/* search page */
.wrap-narrow { max-width: 820px; }
.search-big { display: flex; gap: 10px; margin: 6px 0 18px; }
.search-big input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; font-size: 15px; outline: none; }
.search-big input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 100, 190, .12); }
.search-big .btn { border: none; cursor: pointer; padding: 0 26px; font-size: 15px; }
.search-hint { color: var(--muted, #64748b); font-size: 14.5px; }
.search-hint a { color: var(--blue); }
.search-count { color: var(--muted, #64748b); font-size: 14px; margin-bottom: 14px; }
.search-list { display: flex; flex-direction: column; gap: 14px; }
.search-result { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.search-result:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(15, 40, 80, .08); }
.search-result h3 { margin: 8px 0 6px; font-size: 17.5px; color: var(--dark); }
.search-result:hover h3 { color: var(--blue); }
.search-result p { color: var(--muted, #64748b); font-size: 14px; line-height: 1.65; margin: 0; }
.search-result mark, .search-empty b { background: #fff3c4; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-empty { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 36px 20px; text-align: center; color: var(--muted, #64748b); }
.search-empty a { color: var(--blue); }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .header-search { flex: 1 1 auto; max-width: 320px; margin-left: auto; }
  .nav-drop .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; padding: 0 0 0 16px; }
  .nav-drop .caret { display: none; }
  .hero h1 { font-size: 30px; }
  .about-grid, .detail, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-side { position: static; }
  .search-big { flex-direction: column; }
  .search-big .btn { padding: 12px 26px; }
  .slide-arrow { width: 36px; height: 36px; font-size: 15px; }
  .slide-arrow.prev { left: 8px; }
  .slide-arrow.next { right: 8px; }
}

