/* 机械设备企业模板 —— 专业工业风。配色/字体/圆角/背景一律走主题变量（AI 可调） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #1a2230;
    --text: #2c3645;
    --muted: #6b7585;
    --line: #e6eaf0;
    --bg-soft: var(--surface, #f4f6fa);
    --dark: #141a24;
}

body { font-family: var(--font); color: var(--text); line-height: 1.75; background: var(--bg, #fff); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--primary) 22%, #fff); }
.container { max-width: var(--container, 1280px); margin: 0 auto; padding: 0 28px; }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius, 10px); font-weight: 600; font-size: 15px; transition: transform .18s, box-shadow .18s, background .18s, color .18s; cursor: pointer; border: none; }
.btn--lg { padding: 15px 38px; font-size: 16px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn--outline { background: transparent; border: 1.5px solid currentColor; color: var(--primary); }
.btn--outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }

/* ============ 页头 ============ */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .2s; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--primary); }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 16px; font-size: 15.5px; color: #44505f; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--accent, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-size: 17px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.header-phone::before { content: "☏ "; }

.header--light { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header--solid { background: var(--primary); }
.header--solid .nav a, .header--solid .logo, .header--solid .header-phone { color: #fff; }
.header--solid .nav a { color: rgba(255,255,255,.85); }
.header--solid .nav a:hover { color: #fff; }
.header--solid .nav a::after { background: #fff; }
.header--transparent { background: rgba(16,22,33,.42); backdrop-filter: blur(8px); }
.header--transparent .nav a { color: rgba(255,255,255,.88); }
.header--transparent .logo, .header--transparent .header-phone, .header--transparent .nav a:hover { color: #fff; }
.header--transparent .nav a::after { background: #fff; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #0c2c6e 0%, var(--primary) 48%, color-mix(in srgb, var(--primary) 62%, #163a7a) 100%); }
.hero-decor { position: absolute; inset: 0; pointer-events: none; opacity: .9;
    background-image: radial-gradient(60% 80% at 82% 18%, rgba(255,255,255,.16), transparent 60%),
        linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 70% 30%, #000 35%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 90% at 70% 30%, #000 35%, transparent 100%); }
.hero--ov-dark::before { content: ""; position: absolute; inset: 0; background: rgba(8,14,26,.45); }
.hero--ov-none .hero-decor { opacity: .5; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 110px 0; }
.hero--h-compact .hero-inner { padding: 76px 0; }
.hero--h-tall .hero-inner { padding: 150px 0; }
.hero--centered .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 880px; margin: 0 auto; }
.hero--align-center .hero-inner { text-align: center; }
.hero--align-center .hero-copy { margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.7; opacity: .9; margin-bottom: 36px; max-width: 36em; }
.hero--align-center .hero-subtitle, .hero--centered .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero-visual { position: relative; }
.hero-shot { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 22px; box-shadow: 0 40px 80px -34px rgba(0,0,0,.5); }
.hero-shot img { width: 100%; border-radius: 10px; }
.hero-art { aspect-ratio: 4/3; border-radius: 18px; position: relative; background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.25); }
.hero-art span { position: absolute; border-radius: 12px; background: rgba(255,255,255,.9); }
.hero-art span:first-child { inset: 16% auto auto 12%; width: 46%; height: 32%; }
.hero-art span:last-child { inset: auto 12% 18% auto; width: 42%; height: 36%; background: rgba(255,255,255,.25); }

/* ============ 分区底色 / 区块标题 ============ */
.section { padding: 92px 0; }
.sec-bg--white { background: #fff; color: var(--text); }
.sec-bg--light { background: var(--bg-soft); }
.sec-bg--brand { background: var(--secondary); color: #fff; }
.sec-bg--dark { background: var(--dark); color: #c9d2de; }
.sec-bg--brand .sec-en { color: rgba(255,255,255,.45); }
.sec-bg--brand h2, .sec-bg--dark h2 { color: #fff; }
.sec-bg--dark .sec-en { color: rgba(255,255,255,.3); }

.sec-head { margin-bottom: 48px; text-align: center; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; flex-wrap: wrap; }
.sec-head--left { text-align: left; }
.sec-en { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: .12em; line-height: 1; color: color-mix(in srgb, var(--primary) 14%, #fff); text-transform: uppercase; }
.sec-bg--white .sec-en, .sec-bg--light .sec-en { color: color-mix(in srgb, var(--primary) 13%, #eef1f6); }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.01em; margin-top: -.5em; position: relative; padding-bottom: 14px; }
.sec-head:not(.sec-head--row):not(.sec-head--left) h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 3px; border-radius: 3px; background: var(--accent, var(--primary)); }
.sec-sub { color: var(--muted); margin-top: 10px; }
.sec-bg--brand .sec-sub, .sec-bg--dark .sec-sub { color: rgba(255,255,255,.7); }
.sec-more { text-align: center; margin-top: 44px; }

/* ============ 关于 ============ */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about--text-stats .about-inner { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin: 0 auto; }
.about-copy .sec-en { text-align: left; }
.about--text-stats .about-copy .sec-en { text-align: center; }
.about-copy h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin: -.4em 0 18px; }
.about-text { color: var(--muted); font-size: 15.5px; }
.about-text p { margin-bottom: 12px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-tile { border-radius: var(--radius, 10px); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); box-shadow: 0 20px 44px -28px rgba(20,40,80,.4); }
.about-tile img { width: 100%; height: 100%; object-fit: cover; }
.about-panel { border-radius: 16px; overflow: hidden; aspect-ratio: 16/11; background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #93c5fd)); box-shadow: 0 30px 60px -28px rgba(20,40,80,.45); }
.about-panel img { width: 100%; height: 100%; object-fit: cover; }
.about-art { aspect-ratio: 16/11; border-radius: 16px; background: linear-gradient(140deg, var(--primary), #9bc0ff); }
.about-stats { display: flex; gap: 36px; margin: 26px 0; flex-wrap: wrap; }
.about-stats strong { font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1; }
.about-stats i { font-style: normal; font-size: 22px; }
.about-stats span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ============ 产品 ============ */
.product-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.product-tabs--center { justify-content: center; margin-bottom: 40px; }
.product-tab { padding: 8px 22px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); color: #4b5563; background: #fff; transition: all .18s; }
.product-tab.is-active, .product-tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.sec-bg--brand .product-tab { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.sec-bg--brand .product-tab.is-active, .sec-bg--brand .product-tab:hover { background: #fff; color: var(--secondary); border-color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius, 10px); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.cards--shadow .product-card { box-shadow: 0 12px 30px -18px rgba(20,40,80,.3); }
.cards--bordered .product-card { border: 1px solid var(--line); }
.cards--flat .product-card { background: var(--bg-soft); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 52px -22px rgba(20,40,80,.4); }
.product-card-img { overflow: hidden; }
.product-card-img img, .product-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f5; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-body h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.product-card-body p { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card-cta { margin-top: auto; align-self: flex-start; padding: 6px 16px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); font-size: 13px; font-weight: 600; }
.product-card:hover .product-card-cta { background: var(--primary); color: #fff; }
/* 产品列表版式 */
.product-rows { display: grid; gap: 16px; }
.product-row { display: grid; grid-template-columns: 200px 1fr; gap: 22px; background: #fff; border-radius: var(--radius, 10px); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(20,40,80,.3); transition: transform .2s; }
.product-row:hover { transform: translateY(-3px); }
.product-row-img img, .product-row .product-placeholder { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.product-row-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.product-row-body h3 { font-size: 18px; color: var(--ink); }
.product-row-body p { color: var(--muted); font-size: 14px; }
.row-more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 14px; }

/* ============ 行业优势 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 22px; }
.feature-item { background: #fff; border-radius: var(--radius, 10px); padding: 30px 26px; text-align: center; box-shadow: 0 12px 30px -20px rgba(20,40,80,.28); transition: transform .2s; }
.sec-bg--white .feature-item { background: var(--bg-soft); box-shadow: none; }
.feature-item:hover { transform: translateY(-5px); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px; font-size: 28px; color: #fff; background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #7db0ff)); }
.feature-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.feature-item p { font-size: 13.5px; color: var(--muted); }
.features--split .feature-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.features--split .feature-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; text-align: left; align-items: center; }
.features--split .feature-icon { margin: 0; }

/* ============ 新闻 ============ */
.news-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius, 10px); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(20,40,80,.28); transition: transform .2s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -24px rgba(20,40,80,.36); }
.news-card-img img, .news-card .product-placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 18px 20px; }
.news-card-body time { color: var(--primary); font-size: 13px; font-weight: 600; }
.news-card-body h3 { font-size: 16.5px; margin: 8px 0 6px; color: var(--ink); }
.news-card-body p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list { list-style: none; max-width: 900px; margin: 0 auto; }
.news-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.news-list li:hover { background: var(--bg-soft); }
.news-list li a { flex: 1; min-width: 60%; font-weight: 500; font-size: 16px; }
.news-list li a:hover { color: var(--primary); }
.news-list li time { color: var(--muted); font-size: 13px; }
.news-list li p { width: 100%; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact-grid--single { grid-template-columns: 1fr; max-width: 620px; }
.contact--centered .contact-grid { grid-template-columns: 1fr; max-width: 640px; }
.contact-info { list-style: none; }
.contact-info li { padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 15.5px; }
.contact-info li span { display: inline-block; width: 52px; opacity: .65; }
.contact-form { display: grid; gap: 14px; background: #fff; border-radius: var(--radius, 10px); padding: 26px; box-shadow: 0 20px 44px -24px rgba(0,0,0,.4); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: 12px 14px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { justify-self: start; }
.contact-feedback { font-size: 14px; margin: 0; }
.contact-feedback.is-ok { color: #15803d; }
.contact-feedback.is-err { color: #dc2626; }

/* ============ 内页 ============ */
.page-banner { position: relative; overflow: hidden; color: #fff; padding: 70px 0; background: linear-gradient(120deg, #0c2c6e, var(--primary)); }
.page-banner h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.article-detail, .detail-layout { max-width: 880px; margin: 0 auto; }
.article-meta { color: var(--muted); margin-bottom: 18px; }
.article-cover { border-radius: var(--radius, 10px); margin-bottom: 22px; }
.detail-summary { font-size: 16px; color: #4c5564; background: var(--bg-soft); padding: 18px 22px; border-radius: var(--radius, 10px); border-left: 3px solid var(--accent, var(--primary)); margin-bottom: 26px; }
.detail-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.detail-images img { border-radius: var(--radius, 10px); }
.detail-body { font-size: 15.5px; }
.detail-body p { margin-bottom: 14px; }
.detail-body img { max-width: 100%; height: auto; border-radius: var(--radius, 10px); margin: 16px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius, 10px); overflow: hidden; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 12px 18px; font-size: 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); width: 180px; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.article-faq { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; }
.article-faq h3 { font-size: 16px; margin-top: 18px; }
.category-tabs { text-align: center; margin-bottom: 32px; }
.empty { text-align: center; color: var(--muted); padding: 52px 0; }

/* ============ 页脚 ============ */
.site-footer { background: #121927; color: #97a1b1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; padding: 60px 28px 44px; max-width: var(--container, 1280px); margin: 0 auto; }
.footer-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-intro { font-size: 14px; line-height: 1.8; max-width: 420px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: 14px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bar p { font-size: 13px; color: #7b8696; text-align: center; }
.footer-beian { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 8px; }
.footer-beian a:hover { color: #c2cad6; }

/* ============ 语言切换 ============ */
.lang-switch { display: inline-flex; gap: 4px; font-size: 13px; }
.lang-switch a { color: inherit; opacity: .7; padding: 2px 6px; border-radius: 6px; }
.lang-switch a.current { opacity: 1; color: var(--primary); font-weight: 600; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
    .hero-inner, .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .news-grid, .feature-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sec-head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .nav { display: none; }
    .product-grid, .news-grid, .feature-grid, .contact-row, .product-row { grid-template-columns: 1fr !important; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
