/*
Theme Name: TBL Industrial
Theme URI: http://tbl.l-langji.com/
Author: TBL
Description: 面向工业制造、紧固件与自动化涂胶企业的定制官网主题。
Version: 1.0.0
Text Domain: tbl-industrial
*/

:root {
  --red: #d71920;
  --red-dark: #a80f15;
  --ink: #151b22;
  --navy: #0c1823;
  --steel: #53606d;
  --muted: #737d87;
  --line: #e5e9ed;
  --soft: #f4f6f8;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 27, 39, .11);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.75; }
body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.section-head p { max-width: 650px; margin: 0; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--red); background: var(--red); color: #fff; font-size: 15px; font-weight: 700; transition: .25s ease; cursor: pointer; }
.btn:hover { border-color: var(--red-dark); background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.55); background: transparent; }
.btn-outline:hover { border-color: #fff; background: #fff; color: var(--ink); }
.text-link { color: var(--red); font-weight: 700; }
.text-link::after { content: " →"; }

/* Header */
.site-header { position: relative; z-index: 40; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.topbar { color: rgba(255,255,255,.78); background: #111820; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; min-height: 38px; align-items: center; }
.topbar a:hover { color: #fff; }
.header-main { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: var(--red); font-size: 20px; font-weight: 900; letter-spacing: -.06em; clip-path: polygon(0 0,100% 0,100% 74%,74% 100%,0 100%); }
.brand-copy strong { display: block; font-size: 20px; line-height: 1.15; letter-spacing: .03em; }
.brand-copy small { color: #8a929a; font-size: 10px; letter-spacing: .16em; }
.primary-nav ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; display: block; padding: 29px 0; color: #252c33; font-weight: 700; }
.primary-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 2px; content: ""; background: var(--red); transform: scaleX(0); transition: .2s ease; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--red); }
.primary-nav .current-menu-item > a::after, .primary-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 7px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--ink); transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 690px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #07111a url("assets/images/hero-industrial.png") center/cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4,12,19,.96) 0%, rgba(4,12,19,.75) 42%, rgba(4,12,19,.18) 72%, rgba(4,12,19,.08) 100%); }
.hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; content: ""; background: linear-gradient(90deg, var(--red) 0 38%, transparent 38%); }
.hero-inner { position: relative; z-index: 2; padding: 85px 0; }
.hero-copy { max-width: 700px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #e9edf0; font-size: 14px; font-weight: 700; letter-spacing: .15em; }
.hero-kicker::before { width: 40px; height: 3px; content: ""; background: var(--red); }
.hero h1 { margin: 0 0 24px; font-size: clamp(43px, 6vw, 72px); line-height: 1.15; letter-spacing: -.03em; }
.hero h1 span { color: #ff3038; }
.hero p { max-width: 630px; margin: 0 0 34px; color: rgba(255,255,255,.78); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-index { position: absolute; right: max(20px, calc((100vw - var(--container))/2)); bottom: 36px; z-index: 2; color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: .12em; }
.hero-index strong { color: #fff; font-size: 28px; }

/* Products */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.category-card { position: relative; min-height: 300px; padding: 34px 26px; overflow: hidden; background: #fff; transition: .3s ease; }
.category-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; content: ""; background: var(--red); transform: scaleX(0); transform-origin: left; transition: .3s ease; }
.category-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--shadow); }
.category-card:hover::after { transform: scaleX(1); }
.category-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 38px; border-radius: 50%; color: var(--red); background: #f9eeee; }
.category-icon svg { width: 38px; height: 38px; }
.category-card h3 { margin: 0 0 10px; font-size: 20px; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; }
.category-card .arrow { position: absolute; right: 24px; bottom: 24px; color: #adb4ba; font-size: 23px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { overflow: hidden; border: 1px solid var(--line); background: #fff; transition: .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg,#eef1f3,#d8dde1); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-placeholder { display: grid; place-items: center; width: 130px; height: 130px; border: 16px solid #a7afb6; border-radius: 50%; color: #707a83; font-size: 15px; font-weight: 800; box-shadow: inset 0 0 0 2px #fff, 0 18px 24px rgba(30,40,50,.16); }
.product-body { padding: 24px; }
.product-body .tag { color: var(--red); font-size: 12px; font-weight: 800; }
.product-body h3 { margin: 5px 0 8px; font-size: 20px; }
.product-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* Applications */
.application-wrap { display: grid; grid-template-columns: .85fr 1.4fr; min-height: 560px; background: #0b151f; }
.application-intro { display: flex; flex-direction: column; justify-content: center; padding: 70px max(34px, calc((100vw - var(--container))/2)); padding-right: 65px; }
.application-intro h2 { margin: 0 0 18px; font-size: clamp(32px,4vw,46px); line-height: 1.25; }
.application-intro p { color: rgba(255,255,255,.62); }
.application-list { display: grid; grid-template-columns: repeat(2,1fr); }
.application-item { position: relative; min-height: 280px; display: flex; align-items: end; padding: 36px; overflow: hidden; border-left: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, #26343f, #101b24); }
.application-item:nth-child(2) { background: linear-gradient(145deg, #343a3f, #151b20); }
.application-item:nth-child(3) { background: linear-gradient(145deg, #24303b, #111922); }
.application-item:nth-child(4) { background: linear-gradient(145deg, #333f46, #152028); }
.application-item::before { position: absolute; inset: 0; content: ""; opacity: .18; background: repeating-linear-gradient(125deg,transparent 0 28px,rgba(255,255,255,.14) 29px 30px); }
.application-item::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg,rgba(0,0,0,.75),transparent 70%); }
.application-copy { position: relative; z-index: 2; }
.application-copy small { color: #ff4850; font-weight: 800; }
.application-copy h3 { margin: 6px 0 0; font-size: 23px; }

/* About / stats */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.about-media { position: relative; min-height: 520px; background: url("assets/images/hero-industrial.png") 68% center/cover no-repeat; }
.about-media::after { position: absolute; right: -22px; bottom: -22px; width: 62%; height: 62%; z-index: -1; content: ""; background: var(--red); }
.about-badge { position: absolute; right: -28px; top: 46px; width: 150px; padding: 22px; color: #fff; background: var(--red); }
.about-badge strong { display: block; font-size: 38px; line-height: 1; }
.about-content h2 { margin: 0 0 22px; font-size: clamp(32px,4vw,46px); line-height: 1.25; }
.about-content > p { color: var(--muted); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 34px; }
.about-point { padding-left: 18px; border-left: 3px solid var(--red); }
.about-point strong { display: block; }
.about-point span { color: var(--muted); font-size: 13px; }
.stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 42px 30px; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-right: 0; }
.stat strong { font-size: clamp(34px,5vw,52px); line-height: 1; }
.stat span { display: block; margin-top: 9px; color: rgba(255,255,255,.8); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.news-card { padding: 30px; border-top: 3px solid #d6dce1; background: #fff; transition: .25s; }
.news-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card time { color: var(--red); font-size: 13px; font-weight: 800; }
.news-card h3 { margin: 13px 0; font-size: 20px; line-height: 1.55; }
.news-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* Inner pages */
.page-hero { position: relative; min-height: 310px; display: flex; align-items: center; color: #fff; background: #101c26 url("assets/images/hero-industrial.png") center 45%/cover no-repeat; }
.page-hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg,rgba(7,17,26,.95),rgba(7,17,26,.52)); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs { margin-top: 18px; color: rgba(255,255,255,.65); font-size: 13px; }
.breadcrumbs a:hover { color: #fff; }
.archive-layout { display: grid; grid-template-columns: 250px 1fr; gap: 42px; }
.sidebar-box { padding: 26px; background: var(--navy); color: #fff; }
.sidebar-box h3 { margin: 0 0 18px; font-size: 21px; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.72); }
.category-list a:hover { color: #fff; }
.content-card { padding: 42px; border: 1px solid var(--line); background: #fff; }
.entry-content h2, .entry-content h3 { line-height: 1.4; }
.entry-content p { color: #4f5962; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--soft); }
.single-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.single-product-main-image { display: grid; place-items: center; aspect-ratio: 1; background: var(--soft); }
.single-product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-summary h1 { margin: 8px 0 16px; font-size: 38px; line-height: 1.25; }
.product-meta-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-meta-row span { width: 95px; color: var(--muted); }
.product-actions { display: flex; gap: 12px; margin-top: 28px; }
.spec-table { margin-top: 24px; }
.article-meta { margin: 14px 0 30px; color: var(--muted); font-size: 14px; }
.pagination { margin-top: 35px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin-right: 6px; border: 1px solid var(--line); }
.pagination .current, .pagination a:hover { color: #fff; border-color: var(--red); background: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-info { padding: 42px; color: #fff; background: var(--navy); }
.contact-info h2 { margin-top: 0; }
.contact-line { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-line small { display: block; color: rgba(255,255,255,.5); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #dce1e5; background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,32,.08); }
.form-notice { grid-column: 1/-1; padding: 12px 15px; color: #136c32; background: #e9f8ee; }

/* Footer */
.cta-band { padding: 46px 0; color: #fff; background: #26323c; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-inner h2 { margin: 0; font-size: 28px; }
.cta-inner p { margin: 5px 0 0; color: rgba(255,255,255,.62); }
.site-footer { color: rgba(255,255,255,.62); background: #0a1219; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding: 68px 0; }
.footer-brand { margin-bottom: 22px; }
.footer-column h3 { margin: 0 0 20px; color: #fff; font-size: 17px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a:hover { color: #fff; }
.footer-contact strong { color: #fff; font-size: 22px; }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.float-contact { position: fixed; right: 20px; bottom: 26px; z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 8px 25px rgba(215,25,32,.35); font-weight: 900; }

@media (max-width: 1080px) {
  .primary-nav ul { gap: 20px; }
  .header-cta { display: none; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .category-card:nth-child(n+4) { min-height: 250px; }
  .application-wrap { grid-template-columns: 1fr; }
  .application-intro { padding: 65px max(20px,calc((100vw - var(--container))/2)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-column:last-child { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .header-main { min-height: 70px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-copy strong { font-size: 17px; }
  .menu-toggle { position: absolute; right: 0; top: 14px; z-index: 5; display: block; border: 0; background: var(--red); }
  .menu-toggle span { background: #fff; }
  .primary-nav { position: fixed; inset: 70px 0 0; display: none; padding: 28px 22px; color: #fff; background: rgba(7,17,26,.98); }
  .menu-open .primary-nav { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 15px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero { min-height: 560px; background-position: 64% center; }
  .hero::before { background: rgba(4,12,19,.76); }
  .hero-copy { max-width: 620px; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 15px; }
  .product-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .contact-grid, .single-product-top { grid-template-columns: 1fr; }
  .about-media { min-height: 400px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .page-hero { min-height: 260px; }
  .archive-layout { gap: 28px; }
  .sidebar-box { padding: 22px; }
  .category-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 18px; }
  .product-summary h1 { font-size: 32px; }
  .single-product-top { gap: 32px; }
  .cta-band { padding: 36px 0; }
  .cta-inner h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-column:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px),var(--container)); }
  .brand-copy small { display: none; }
  .hero { min-height: 520px; }
  .hero-inner { padding: 58px 0 66px; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(38px, 12vw, 52px); }
  .hero p { font-size: 16px; }
  .hero-kicker { margin-bottom: 15px; font-size: 11px; letter-spacing: .12em; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { min-height: 44px; padding: 0 20px; }
  .hero-index { display: none; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .page-title { font-size: 30px; }
  .section-head p { font-size: 14px; line-height: 1.8; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 184px; padding: 22px 17px; }
  .category-icon { width: 54px; height: 54px; margin-bottom: 20px; }
  .category-icon svg { width: 28px; height: 28px; }
  .category-card h3 { margin-bottom: 7px; font-size: 17px; line-height: 1.4; }
  .category-card p { padding-right: 4px; font-size: 12px; line-height: 1.6; }
  .category-card .arrow { right: 14px; bottom: 12px; font-size: 18px; }
  .category-grid .category-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 134px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 18px; }
  .category-grid .category-card:last-child:nth-child(odd) .category-icon { grid-row: 1 / 3; margin: 0; }
  .category-grid .category-card:last-child:nth-child(odd) h3 { align-self: end; }
  .category-grid .category-card:last-child:nth-child(odd) p { align-self: start; }
  .application-intro { padding-top: 52px; padding-bottom: 42px; }
  .application-intro h2 { font-size: 31px; }
  .application-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .application-item { min-height: 172px; padding: 22px 18px; }
  .application-copy h3 { font-size: 17px; }
  .about-media { min-height: 285px; }
  .about-badge { right: 0; }
  .about-badge { top: 24px; width: 126px; padding: 18px; }
  .about-badge strong { font-size: 32px; }
  .about-points, .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 46px; }
  .about-content h2 { font-size: 31px; }
  .about-point { padding-left: 12px; }
  .about-point strong { font-size: 14px; }
  .about-point span { font-size: 11px; }
  .stat { padding: 28px 18px; }
  .stat strong { font-size: 34px; }
  .stat span { font-size: 12px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .content-card { padding: 25px 20px; }
  .page-hero { min-height: 220px; }
  .archive-layout { gap: 22px; }
  .category-list { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .sidebar-box h3 { margin-bottom: 10px; }
  .category-list a { padding: 10px 0; font-size: 13px; }
  .product-card { box-shadow: 0 8px 24px rgba(15,27,39,.06); }
  .product-body { padding: 20px; }
  .product-summary h1 { font-size: 29px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
  .contact-info { padding: 30px 24px; }
  .contact-grid { gap: 36px; }
  .news-card { padding: 24px 20px; }
  .cta-inner, .copyright { align-items: flex-start; flex-direction: column; }
  .cta-inner .btn { width: 100%; }
  .contact-form button.btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding: 48px 0; }
  .footer-grid .footer-column:first-child, .footer-grid .footer-column:last-child { grid-column: 1 / -1; }
  .footer-column h3 { margin-bottom: 13px; }
  .footer-links li { margin: 6px 0; }
  .float-contact { display: none; }
}
