/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #0b5fa5;
  --blue-dark: #084a82;
  --orange: #f39c12;
  --gray: #6b7480;
  --bg: #f5f7fa;
}
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif; color: #2c3540; background: #fff; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== 顶栏（固定） ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--blue-dark); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-item a { color: #ffd479; }
.lang-box { display: flex; align-items: center; gap: 8px; }
.lang-label { font-weight: 600; }
/* 带国旗的自定义语言下拉 */
.lang-dd { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 7px; background: #fff; border: none; border-radius: 4px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: #2c3540; cursor: pointer; }
.lang-btn:hover { background: #eef3f8; }
.lang-caret { font-size: 10px; color: #5b6672; }
.lang-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.25); padding: 6px; min-width: 185px; z-index: 1100; }
.lang-dd.open .lang-menu { display: block; }
.lang-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: none; background: none; border-radius: 6px; font-size: 14px; cursor: pointer; color: #2c3540; text-align: left; }
.lang-item:hover { background: #eef3f8; }
.lang-item.active { background: #e8f1f9; color: var(--blue-dark); font-weight: 700; }
.lang-flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; display: inline-flex; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lang-flag svg { width: 100%; height: 100%; display: block; }

/* ===== 主导航（吸顶） ===== */
.header { position: sticky; top: 36px; z-index: 900; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: baseline; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.logo-mark { color: var(--blue); }
.logo-mark.accent { color: var(--orange); }
.logo-sub { font-size: 12px; font-weight: 500; color: var(--gray); margin-left: 8px; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; padding: 8px 0; border-bottom: 3px solid transparent; transition: .2s; white-space: nowrap; }
.nav a:hover { color: var(--blue); border-color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; }

/* ===== Hero 轮播 ===== */
/* 高度由 JS 按当前图片原始比例动态设置（sizeHero），轮播尺寸与图片完全匹配：不裁剪、无补边 */
.hero { position: relative; overflow: hidden; min-height: 420px; background: #0a1c2c; transition: height .6s ease; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
/* 凸显图片：遮罩仅轻微压暗底部，保证文字可读 */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,42,74,.10), rgba(8,42,74,0) 40%, rgba(8,42,74,.38)); }
/* 弱化文字：缩小字号、细字重、贴底展示，让图片主体居中呈现 */
.hero-content { position: relative; z-index: 5; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; color: #fff; padding-bottom: 52px; }
.hero-content h1 { font-size: clamp(20px, 2.6vw, 32px); font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.4); max-width: 900px; }
.hero-content p { margin: 10px auto 18px; font-size: clamp(13px, 1.3vw, 16px); max-width: 760px; text-shadow: 0 1px 4px rgba(0,0,0,.45); opacity: .92; }
.hero-content .btn { padding: 10px 28px; font-size: 14px; }
.btn { display: inline-block; padding: 13px 34px; border-radius: 40px; font-weight: 700; transition: .25s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d68910; transform: translateY(-2px); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; background: rgba(255,255,255,.18); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.4); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 6; }
.hero-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: .2s; }
.hero-dots span.active { background: var(--orange); transform: scale(1.2); }

/* ===== 通用 Section ===== */
.section { padding: 72px 0; }
.sec-title { font-size: 32px; font-weight: 800; color: var(--blue-dark); margin-bottom: 10px; }
.sec-title.center { text-align: center; }
.sec-title.center::after { content: ""; display: block; width: 64px; height: 4px; background: var(--orange); margin: 12px auto 0; border-radius: 2px; }
.sec-sub { color: var(--gray); margin: 14px 0 40px; }
.sec-sub.center { text-align: center; }

/* ===== About ===== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.18); object-fit: contain; width: 100%; height: auto; }
.about-badge { position: absolute; right: -16px; bottom: -22px; background: var(--orange); color: #fff; border-radius: 12px; padding: 14px 20px; text-align: center; box-shadow: 0 10px 24px rgba(243,156,18,.45); }
.about-badge strong { display: block; font-size: 30px; line-height: 1.1; }
.about-badge span { font-size: 12px; }
.about-text p { margin-bottom: 12px; color: #46505b; }
.about-points { margin-top: 14px; list-style: none; }
.about-points li { position: relative; padding-left: 26px; margin-bottom: 8px; font-weight: 600; color: var(--blue-dark); }
.about-points li::before { content: "✔"; position: absolute; left: 0; color: var(--orange); }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.09); cursor: pointer; transition: .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
/* 全景展示：卡片统一高度，图片等比完整显示（contain 不裁剪），避免过高突兀 */
.card-img-full { height: 260px; }
.card-img-full img { height: 100%; object-fit: contain; }
/* 放大展示：该卡片跨两列，图片更大 */
.card-wide { grid-column: span 2; }

/* News 板块：横向大卡片 */
.news-list { display: grid; gap: 24px; }
.news-card { display: flex; cursor: pointer; }
.news-card .card-img { width: 340px; flex: none; height: 260px; background: #fff; }
.news-card .card-img img { object-fit: contain; }
.news-card .card-body { padding: 24px 28px; }
.news-meta { color: var(--orange); font-size: 13px; font-weight: 600; margin: 2px 0 12px; }
.news-meta a { color: var(--blue); word-break: break-all; }
.news-list-ul { margin: 8px 0 4px; padding-left: 20px; }
.news-list-ul li { margin-bottom: 8px; font-size: 14px; color: var(--gray); }
@media (max-width: 760px) {
  .news-card { flex-direction: column; }
  .news-card .card-img { width: 100%; }
}

.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; color: var(--blue-dark); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--gray); flex: 1; }
.card-more { margin-top: 14px; font-weight: 700; color: var(--orange); font-size: 14px; }
.card-tag { display: inline-block; background: #e8f1f9; color: var(--blue); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; align-self: flex-start; }

/* ===== 型号网格 ===== */
.parts { background: var(--bg); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.model-card { background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 34px 16px; text-align: center; cursor: pointer; transition: .25s; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.model-card:hover { border-color: var(--orange); transform: translateY(-5px); }
.model-card .m-name { font-size: 26px; font-weight: 800; color: var(--blue); }
.model-card .m-sub { color: var(--gray); font-size: 13px; margin-top: 8px; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, #fff, var(--bg)); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 10px; }
.contact-card { background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: .25s; display: block; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.14); }
.contact-card .ci { font-size: 34px; margin-bottom: 10px; }
.contact-card h3 { color: var(--blue-dark); font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--gray); font-size: 14px; word-break: break-all; }

/* ===== 页脚 ===== */
.footer { background: #0d2438; color: #cfd8e0; padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand .logo-mark { font-size: 22px; }
.footer-brand p { font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; gap: 12px; }
.flink { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; color: #fff; transition: .2s; }
.flink.linkedin { background: #0a66c2; }
.flink.facebook { background: #1877f2; }
.flink.whatsapp { background: #25d366; }
.flink:hover { filter: brightness(1.12); }

/* ===== 悬浮按钮 ===== */
.float-bar { position: fixed; right: 18px; bottom: 22px; z-index: 950; display: flex; flex-direction: column; gap: 10px; }
.fbtn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(0,0,0,.28); transition: .2s; }
.fbtn:hover { transform: scale(1.1); }
.fbtn.wa { background: #25d366; }
.fbtn.li { background: #0a66c2; }
.fbtn.fb { background: #1877f2; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 1200; background: rgba(10,20,30,.72); display: none; align-items: flex-start; justify-content: center; padding: 46px 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; max-width: 960px; width: 100%; position: relative; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--orange); color: #fff; font-size: 22px; cursor: pointer; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.modal-body { padding: 30px 32px 34px; }
.modal-body h3 { color: var(--blue-dark); font-size: 22px; margin-bottom: 14px; padding-right: 30px; }
.modal-body .desc { color: #46505b; margin-bottom: 18px; white-space: pre-line; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; cursor: zoom-in; transition: .2s; }
.gallery img:hover { transform: scale(1.03); }
.modal-video { margin-top: 18px; }
.modal-video video { width: 100%; border-radius: 10px; background: #000; }
.modal-label { font-weight: 700; color: var(--blue); margin: 18px 0 8px; }

/* 部件表格 */
.parts-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.parts-nav button { border: 2px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; padding: 7px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; }
.parts-nav button.active { background: var(--blue); color: #fff; }
.parts-wrap { max-height: 56vh; overflow-y: auto; border: 1px solid #e3e8ee; border-radius: 10px; }
.parts-section { padding: 12px 18px; }
.parts-section h4 { color: #fff; background: var(--blue); display: inline-block; padding: 4px 14px; border-radius: 6px; font-size: 14px; margin: 6px 0 10px; }
.parts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.parts-table th, .parts-table td { border: 1px solid #e3e8ee; padding: 7px 10px; text-align: left; }
.parts-table th { background: #eef3f8; color: var(--blue-dark); }
.parts-table tr:nth-child(even) { background: #fafbfc; }
.kit-parts { color: var(--gray); font-size: 13px; margin: 4px 0 10px; padding-left: 14px; }
.kit-parts li { margin-bottom: 2px; }

/* 大图查看 */
.lightbox { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 90%; border-radius: 6px; }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 0; box-shadow: 0 10px 18px rgba(0,0,0,.12); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6%; border-bottom: 1px solid #f0f2f5; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: auto; }
  .header { top: 66px; }
  .topbar-contact { font-size: 12px; gap: 10px; }
  .hero-content h1 { font-size: 20px; }
  .hero-content { padding-bottom: 40px; }
  .card-wide { grid-column: auto; }
}

/* 鍨嬪彿鍗＄墖鏀逛负鐙珛椤甸潰閾炬帴 */
a.model-card{color:inherit;text-decoration:none}
