/*
Theme Name: ChangYun Industrial
Theme URI: https://example.com/
Author: Custom build
Description: Editable industrial equipment theme inspired by the supplied reference website.
Version: 1.0.0
Text Domain: changyun-industrial
*/

:root {
  --cy-blue: #0d6efd;
  --cy-blue-dark: #0a58ca;
  --cy-ink: #061627;
  --cy-muted: #657084;
  --cy-line: #e7ebf0;
  --cy-pale: #f3f8ff;
  --cy-white: #fff;
  --cy-orange: #fd7e14;
  --cy-max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cy-ink); background: #eef1f5; font-family: Inter, Arial, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-shell { width: min(100%, 1440px); margin: 0 auto; background: var(--cy-white); box-shadow: 0 0 30px rgb(6 22 39 / 8%); }
.container { width: min(calc(100% - 40px), var(--cy-max)); margin: 0 auto; }
.site-header { position: relative; z-index: 20; background: #fff; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 40px; }
.custom-logo { width: 220px; height: auto; }
.brand-text { color: var(--cy-blue); font-size: 25px; font-weight: 800; }
.brand-text small { display: block; color: var(--cy-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 28px 13px; font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--cy-blue); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; width: 260px; padding: 8px; border: 1px solid var(--cy-line); background: #fff; box-shadow: 0 14px 25px rgb(4 20 38 / 14%); }
.main-nav .sub-menu a { padding: 10px 12px; font-size: 13px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 4px; background: var(--cy-blue); color: #fff; font-weight: 600; }
.language-switcher { display: flex; align-items: center; }
.language-switcher ul { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.language-switcher li { list-style: none; }
.language-switcher a { display: block; padding: 5px 6px; color: var(--cy-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.language-switcher .current-lang a { color: var(--cy-blue); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--cy-line); background: #fff; color: var(--cy-ink); font-size: 22px; }

.hero { position: relative; min-height: 520px; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 20 36 / 83%), rgb(5 20 36 / 22%) 70%, transparent); }
.hero-content { position: relative; z-index: 2; max-width: 810px; padding-top: 105px; }
.hero h1, .hero h2 { margin: 0 0 20px; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.16; letter-spacing: 0; }
.hero p { max-width: 760px; margin: 0 0 30px; font-size: 17px; color: rgb(255 255 255 / 90%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--cy-blue); border-radius: 4px; background: var(--cy-blue); color: #fff; font-weight: 600; transition: .2s ease; }
.button:hover { transform: translateY(-1px); background: var(--cy-blue-dark); }
.button-outline { border-color: rgb(255 255 255 / 75%); background: transparent; }
.hero-dots { position: absolute; z-index: 5; bottom: 22px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.hero-dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgb(255 255 255 / 45%); }
.hero-dot.active { background: #fff; }

.section { padding: 70px 0; }
.section:nth-child(even) { background: #fbfcfe; }
.section-heading { margin-bottom: 36px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 11px; padding: 4px 11px; border-radius: 999px; background: #f2f4ff; color: #2639c5; font-size: 13px; font-weight: 700; }
.section-heading h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.25; }
.section-heading p { margin: 0; color: var(--cy-muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--cy-line); border-radius: 6px; background: #fff; }
.product-top { display: grid; grid-template-columns: 42% 58%; min-height: 245px; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { display: flex; flex-direction: column; padding: 26px; }
.product-copy h3 { margin: 0 0 9px; font-size: 21px; }
.product-copy p { margin: 0 0 20px; color: var(--cy-muted); font-size: 14px; }
.text-link { margin-top: auto; color: var(--cy-blue); font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 20px; background: var(--cy-pale); }
.specs div { padding: 0 10px; border-right: 1px solid #d8e5f6; }
.specs div:last-child { border: 0; }
.specs dt { color: var(--cy-muted); font-size: 11px; font-weight: 600; }
.specs dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }

.strength-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 16px; }
.strength-intro { display: flex; flex-direction: column; justify-content: center; min-height: 520px; padding: 42px; border-radius: 6px; color: #fff; background: var(--cy-blue-dark) url("assets/strength.webp") center/cover; position: relative; overflow: hidden; }
.strength-intro::before { content: ""; position: absolute; inset: 0; background: rgb(5 36 84 / 78%); }
.strength-intro > * { position: relative; z-index: 1; }
.strength-intro h3 { margin: 0 0 18px; font-size: 29px; line-height: 1.3; }
.strength-stack { display: grid; gap: 16px; }
.strength-card { min-height: 252px; padding: 28px; border-radius: 6px; background: var(--cy-pale); }
.strength-icon { display: grid; width: 52px; height: 52px; margin-bottom: 20px; place-items: center; border-radius: 6px; background: var(--cy-blue); color: #fff; font-size: 23px; }
.strength-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.strength-card p { margin: 0; color: var(--cy-muted); font-size: 13px; }

.application-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.application-card { position: relative; overflow: hidden; min-height: 390px; border-radius: 6px; background: #123; }
.application-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.application-card:hover img { transform: scale(1.035); }
.application-info { position: absolute; inset: auto 0 0; padding: 55px 18px 18px; color: #fff; background: linear-gradient(transparent, rgb(4 15 29 / 90%)); }
.application-info h3 { margin: 0; font-size: 17px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { border: 1px solid var(--cy-line); border-radius: 6px; overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 1.48; object-fit: cover; }
.news-card div { padding: 18px; }
.news-card time { color: var(--cy-muted); font-size: 12px; }
.news-card h3 { margin: 7px 0 0; font-size: 16px; line-height: 1.45; }
.clients { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--cy-line); }
.clients img { width: 100%; aspect-ratio: 1.45; padding: 20px; object-fit: contain; border-right: 1px solid var(--cy-line); filter: grayscale(1); }

.cta { position: relative; padding: 75px 20px; color: #fff; text-align: center; background: var(--cy-blue-dark) url("assets/cta.webp") center/cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgb(10 56 121 / 76%); }
.cta-inner { position: relative; z-index: 1; max-width: 820px; margin: auto; }
.cta h2 { margin: 0 0 10px; font-size: 34px; }
.cta p { margin: 0 0 24px; }
.site-footer { padding: 52px 0 22px; color: #e7f0fc; background: #0a58ca; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.site-footer h3 { margin: 0 0 15px; color: #fff; font-size: 17px; }
.site-footer p, .site-footer li { font-size: 13px; color: #dbe9fa; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 5px 0; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 25%); font-size: 12px; }
.content-page { min-height: 55vh; padding: 60px 0; }
.content-page h1 { font-size: 38px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; color: var(--cy-muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--cy-blue); }
.inner-hero { padding: 64px 0; color: #fff; background: #123760 url("assets/hero-2.webp") center 56%/cover; position: relative; }
.inner-hero::before { content: ""; position: absolute; inset: 0; background: rgb(5 25 48 / 78%); }
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 { max-width: 900px; margin: 0 0 12px; font-size: 42px; line-height: 1.2; }
.inner-hero p { max-width: 800px; margin: 0; color: rgb(255 255 255 / 88%); }
.category-intro { max-width: 920px; margin: 0 auto 40px; text-align: center; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { overflow: hidden; border: 1px solid var(--cy-line); border-radius: 6px; background: #fff; }
.catalog-image { display: block; aspect-ratio: 1.35; background: var(--cy-pale); }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card > div { padding: 20px; }
.catalog-card h2 { min-height: 52px; margin: 3px 0 10px; font-size: 19px; line-height: 1.35; }
.catalog-card p { color: var(--cy-muted); font-size: 13px; }
.catalog-type { margin: 0; color: var(--cy-blue) !important; font-size: 11px !important; font-weight: 700; text-transform: uppercase; }
.product-hero-band { padding: 34px 0 60px; }
.product-hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 52px; align-items: center; }
.product-gallery { position: relative; min-height: 480px; display: grid; place-items: center; padding: 30px; border: 1px solid var(--cy-line); background: linear-gradient(180deg, #edf5ff, #fff 55%); }
.product-gallery img { max-height: 430px; object-fit: contain; }
.replace-note { position: absolute; right: 12px; bottom: 10px; color: var(--cy-muted); font-size: 10px; }
.product-summary h1 { margin: 8px 0 14px; font-size: 40px; line-height: 1.18; }
.product-lead { margin: 0 0 24px; color: var(--cy-muted); font-size: 16px; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 25px; border-top: 1px solid var(--cy-line); }
.key-specs div { padding: 13px 8px 13px 0; border-bottom: 1px solid var(--cy-line); }
.key-specs dt { color: var(--cy-muted); font-size: 11px; }
.key-specs dd { margin: 2px 0 0; font-weight: 700; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-secondary { color: var(--cy-blue); background: #fff; }
.response-note { margin: 12px 0 0; color: var(--cy-muted); font-size: 12px; }
.product-tabs { position: sticky; top: 0; z-index: 12; border-top: 1px solid var(--cy-line); border-bottom: 1px solid var(--cy-line); background: rgb(255 255 255 / 96%); }
.product-tabs .container { display: flex; gap: 26px; overflow-x: auto; }
.product-tabs a { flex: 0 0 auto; padding: 14px 0; font-size: 13px; font-weight: 600; }
.product-tabs a:hover { color: var(--cy-blue); }
.product-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 52px; }
.rich-content h2 { margin: 8px 0 16px; font-size: 31px; }
.rich-content h3 { margin-top: 28px; }
.rich-content p, .rich-content li { color: #415066; }
.product-aside { align-self: start; padding: 24px; border: 1px solid #dce8f7; background: var(--cy-pale); }
.product-aside h3 { margin-top: 0; }
.product-aside ul { padding-left: 20px; }
.specs-section { background: #f7faff !important; }
.spec-table { max-width: 900px; margin: auto; border: 1px solid var(--cy-line); background: #fff; }
.spec-table div { display: grid; grid-template-columns: 42% 58%; border-bottom: 1px solid var(--cy-line); }
.spec-table div:last-child { border: 0; }
.spec-table dt, .spec-table dd { margin: 0; padding: 14px 20px; }
.spec-table dt { color: var(--cy-muted); background: #f8fafc; font-weight: 600; }
.spec-table dd { font-weight: 700; }
.spec-disclaimer { text-align: center; color: var(--cy-muted); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { padding: 26px; border-left: 3px solid var(--cy-blue); background: var(--cy-pale); }
.feature-grid h3 { margin-top: 0; font-size: 18px; }
.feature-grid p { margin-bottom: 0; color: var(--cy-muted); font-size: 13px; }
.faq-list { max-width: 900px; margin: auto; border-top: 1px solid var(--cy-line); }
.faq-list details { border-bottom: 1px solid var(--cy-line); }
.faq-list summary { padding: 18px 4px; cursor: pointer; font-weight: 700; }
.faq-list p { margin: 0; padding: 0 4px 20px; color: var(--cy-muted); }
.quote-section { background: #eef5ff !important; }
.quote-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 54px; align-items: start; }
.quote-grid h2 { font-size: 34px; }
.inquiry-form { padding: 28px; border: 1px solid #dce8f7; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-grid label { display: grid; gap: 5px; }
.form-grid label span { font-size: 12px; font-weight: 600; }
.form-wide { grid-column: 1 / -1; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd7e2; border-radius: 3px; background: #fff; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid #a8c9fa; border-color: var(--cy-blue); }
.consent { display: flex; gap: 8px; margin: 15px 0; color: var(--cy-muted); font-size: 12px; }
.consent input { width: auto; }
.thank-you { max-width: 720px; margin: 80px auto; text-align: center; }

@media (max-width: 1020px) {
  .header-action { display: none; }
  .language-switcher { margin-left: auto; }
  .language-switcher ul { max-width: 190px; flex-wrap: wrap; justify-content: flex-end; }
  .language-switcher a { padding: 2px 4px; }
  .menu-toggle { display: block; margin-left: 0; }
  .main-nav { display: none; position: absolute; top: 82px; right: 20px; left: 20px; padding: 8px; background: #fff; border: 1px solid var(--cy-line); box-shadow: 0 14px 24px rgb(0 0 0 / 12%); }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; }
  .main-nav a { padding: 11px 12px; }
  .main-nav .sub-menu { position: static; display: block; width: auto; margin-left: 14px; padding: 0; border: 0; box-shadow: none; }
  .strength-grid { grid-template-columns: 1fr 1fr; }
  .strength-intro { grid-column: 1 / -1; min-height: 360px; }
  .application-track, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-gallery { min-height: 400px; }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--cy-max)); }
  .custom-logo { width: 175px; }
  .hero { min-height: 570px; }
  .hero-content { padding-top: 90px; }
  .hero h1, .hero h2 { font-size: 37px; }
  .section { padding: 52px 0; }
  .section-heading h2 { font-size: 29px; }
  .product-grid, .strength-grid, .application-track, .news-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-top { grid-template-columns: 1fr; }
  .product-top img { height: 250px; }
  .specs { grid-template-columns: 1fr; gap: 8px; }
  .specs div { border: 0; }
  .strength-intro { grid-column: auto; min-height: 420px; padding: 30px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .cta h2 { font-size: 29px; }
  .inner-hero h1, .product-summary h1 { font-size: 32px; }
  .catalog-grid, .feature-grid, .form-grid { grid-template-columns: 1fr; }
  .product-gallery { min-height: 310px; }
  .product-content-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .product-tabs .container { gap: 18px; }
  .spec-table div { grid-template-columns: 1fr; }
  .spec-table dd { padding-top: 5px; }
}
