/* 福莱克斯官网 全站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; line-height: 1.7; background: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: #0d4a8f; color: #cfe2f5; font-size: 13px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: #fff; }
.header { background: #fff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 16px; font-size: 15px; color: #333; border-radius: 4px; }
.nav a:hover, .nav a.active { background: #0d4a8f; color: #fff; }
.hotline { color: #0d4a8f; font-weight: bold; font-size: 17px; white-space: nowrap; }
.hotline span { font-size: 12px; color: #888; font-weight: normal; display: block; }

/* 首屏 */
.hero { position: relative; color: #fff; padding: 90px 0; background: linear-gradient(rgba(7,42,84,.82), rgba(7,42,84,.82)), url("images/factory.jpg") center/cover no-repeat; }
.hero h1 { font-size: 38px; margin-bottom: 14px; }
.hero p { font-size: 18px; opacity: .92; max-width: 640px; }
.hero .btns { margin-top: 30px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 6px; font-size: 16px; margin-right: 12px; }
.btn-primary { background: #f5a623; color: #fff; }
.btn-ghost { border: 1px solid #fff; color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { font-size: 30px; display: block; }
.hero-stats span { font-size: 14px; opacity: .85; }

/* 通用板块 */
.section { padding: 60px 0; }
.section.gray { background: #f5f7fa; }
.section h2 { font-size: 28px; text-align: center; color: #222; margin-bottom: 8px; }
.section .sub { text-align: center; color: #888; margin-bottom: 40px; font-size: 15px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 20px rgba(13,74,143,.15); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card img.contain { object-fit: contain; background: #fff; padding: 10px; }
.card .body { padding: 16px; }
.card h3 { font-size: 17px; color: #0d4a8f; margin-bottom: 6px; }
.card p { font-size: 14px; color: #666; }
.card .more { display: inline-block; margin-top: 10px; color: #f5a623; font-size: 14px; }
.center { text-align: center; margin-top: 34px; }

/* 优势 */
.adv { background: #0d4a8f; color: #fff; }
.adv h2, .adv .sub { color: #fff; }
.adv .sub { opacity: .8; }
.adv .grid-4 .item { text-align: center; padding: 20px 12px; }
.adv .item b { font-size: 40px; color: #f5a623; display: block; margin-bottom: 8px; }
.adv .item h3 { font-size: 17px; margin-bottom: 6px; }
.adv .item p { font-size: 13px; opacity: .85; }

/* 客户 */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.clients span { background: #fff; border: 1px solid #e2e6ec; text-align: center; padding: 14px 6px; font-size: 14px; color: #444; border-radius: 6px; }

/* CTA */
.cta { background: #f5a623; color: #fff; text-align: center; padding: 46px 20px; }
.cta h2 { font-size: 26px; margin-bottom: 10px; }
.cta .phone { font-size: 30px; font-weight: bold; letter-spacing: 1px; }

/* 页脚 */
.footer { background: #0a3a72; color: #b9cde2; padding: 40px 0 20px; font-size: 14px; }
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer a { color: #b9cde2; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 16px; font-size: 13px; }

/* 产品页 */
.product-block { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin-bottom: 56px; }
.product-block img { border-radius: 10px; border: 1px solid #eee; width: 100%; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.product-gallery .main { grid-column: 1 / -1; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.model-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px; text-align: center; }
.model-card img { width: 100%; border-radius: 6px; }
.model-card h4 { color: #0d4a8f; font-size: 15px; margin: 8px 0 3px; }
.model-card p { font-size: 12px; color: #888; line-height: 1.5; }
.product-block h3 { font-size: 24px; color: #0d4a8f; margin-bottom: 12px; }
.product-block .tags { margin: 12px 0; }
.product-block .tags span { display: inline-block; background: #eaf2fb; color: #0d4a8f; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin: 0 6px 6px 0; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
table.spec th, table.spec td { border: 1px solid #dfe5ec; padding: 8px 10px; text-align: center; }
table.spec th { background: #0d4a8f; color: #fff; font-weight: normal; }
table.spec tr:nth-child(even) { background: #f6f9fc; }
.ask { display: inline-block; background: #f5a623; color: #fff; padding: 10px 26px; border-radius: 6px; margin-top: 16px; font-size: 15px; }

/* 资质证书 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border: 1px solid #e2e6ec; border-radius: 10px; overflow: hidden; margin: 0; transition: box-shadow .2s; }
.cert-card:hover { box-shadow: 0 6px 18px rgba(13,74,143,.18); }
.cert-card img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.cert-card figcaption { padding: 12px 10px; text-align: center; font-size: 14px; color: #0d4a8f; line-height: 1.5; }

/* 客户案例 */
.case-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 26px; margin-bottom: 30px; }
.case-feature > img { width: 100%; border-radius: 8px; border: 1px solid #eee; }
.case-tag { display: inline-block; background: #e8f1fb; color: #0d4a8f; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.case-body h3 { font-size: 21px; color: #0d4a8f; margin-bottom: 10px; }
.case-body > p { font-size: 14.5px; color: #666; line-height: 1.8; margin-bottom: 14px; }
.case-spec { list-style: none; margin-bottom: 18px; }
.case-spec li { font-size: 14px; color: #555; padding: 7px 0; border-bottom: 1px dashed #eee; line-height: 1.6; }
.case-spec li:last-child { border-bottom: none; }
.case-spec b { color: #0d4a8f; font-weight: 600; display: inline-block; min-width: 84px; }
.case-body .ask { display: inline-block; background: #f5a623; color: #fff; padding: 10px 26px; border-radius: 6px; font-size: 15px; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 22px; transition: box-shadow .2s; }
.scene-card:hover { box-shadow: 0 6px 20px rgba(13,74,143,.12); }
.scene-card h3 { font-size: 17px; color: #222; margin-bottom: 8px; }
.scene-card p { font-size: 13.5px; color: #777; line-height: 1.7; margin-bottom: 12px; }
.scene-card .tags { margin-top: 0; }
.note-line { text-align: center; color: #999; font-size: 13px; margin-top: 26px; }
.client-group { margin-bottom: 34px; }
.client-group h3 { font-size: 17px; color: #0d4a8f; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid #f5a623; }
.case-contact { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 26px 30px; }
.case-contact img { width: 100%; border-radius: 8px; border: 1px solid #eee; }
.case-contact h3 { font-size: 19px; color: #0d4a8f; margin-bottom: 10px; }
.case-contact p { font-size: 14.5px; color: #666; line-height: 1.8; }
.case-contact-ways { margin-top: 14px; }
.btn-ghost-blue { border: 1px solid #0d4a8f; color: #0d4a8f; }

/* 新闻 */
.page-title { font-size: 28px; text-align: center; color: #222; margin-bottom: 8px; }
.section .sub-title { font-size: 20px; text-align: left; margin: 26px 0 14px; color: #0d4a8f; }
.article-wrap { max-width: 820px; }
.article-crumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.article-crumb a { color: #0d4a8f; }
.article-meta { color: #999; font-size: 14px; margin: 12px 0 22px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.article-back { margin-top: 26px; font-size: 14px; }
.article-back a { color: #0d4a8f; }
.faq { max-width: 880px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-size: 16px; color: #0d4a8f; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: #f5a623; font-weight: bold; }
.faq details[open] summary::after { content: "－"; }
.faq details p { font-size: 14.5px; color: #555; line-height: 1.85; margin-top: 12px; }
.news-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 6px; border-bottom: 1px dashed #ddd; text-decoration: none; }
.news-item a, a.news-item { color: #333; font-size: 16px; }
.news-item a:hover, a.news-item:hover { color: #0d4a8f; }
.news-item time { color: #999; font-size: 14px; white-space: nowrap; }
.news-item .news-excerpt { font-size: 13px; color: #999; margin-top: 6px; font-weight: normal; }
.news-item b { font-weight: 500; }
/* 文章详情 */
.article-title { font-size: 24px; color: #222; line-height: 1.4; margin-top: 10px; }
.article-date { color: #999; font-size: 14px; margin: 12px 0 22px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.article-body p { font-size: 16px; line-height: 1.9; color: #444; margin-bottom: 16px; text-align: justify; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #eee; flex-wrap: wrap; }
.article-nav a { color: #0d4a8f; font-size: 14px; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }
.article-cta { background: #0d4a8f; color: #fff; border-radius: 10px; padding: 22px 26px; margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.article-cta b { font-size: 17px; }
.article-cta .btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.article-cta .btn-ghost:hover { background: #fff; color: #0d4a8f; }

/* 关于 */
.about-img { border-radius: 10px; margin: 24px 0; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list p { font-size: 16px; margin-bottom: 16px; }
.contact-list b { color: #0d4a8f; margin-right: 8px; }
.form label { display: block; font-size: 14px; margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; font-family: inherit; }
.form button { background: #0d4a8f; color: #fff; border: none; padding: 12px 34px; border-radius: 6px; font-size: 16px; margin-top: 18px; cursor: pointer; }
.tips { background: #fff8e6; border: 1px solid #f5d78e; padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-top: 16px; }
.wx-card { display: flex; gap: 14px; align-items: center; background: #f2faf5; border: 1px solid #cdebd9; border-radius: 10px; padding: 14px; margin-top: 16px; }
.wx-card img { width: 110px; height: auto; border-radius: 8px; flex-shrink: 0; }
.wx-card p { font-size: 13px; color: #555; margin-top: 4px; line-height: 1.6; }
.form-error { color: #c0392b; font-size: 14px; margin-top: 10px; min-height: 20px; }
.form-success { background: #f2f8f2; border: 1px solid #b7dcb7; border-radius: 8px; padding: 16px; margin-top: 16px; }
.form-success .ok-title { color: #2e7d32; font-weight: bold; margin-bottom: 8px; }
.form-success pre { background: #fff; border: 1px dashed #ccc; border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; font-family: inherit; color: #333; }
.form-success .small { font-size: 13px; color: #666; margin-top: 8px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.btn-ghost { display: inline-block; border: 1px solid #0d4a8f; color: #0d4a8f; background: #fff; padding: 8px 18px; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-ghost:hover { background: #0d4a8f; color: #fff; }

/* 移动端 */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .footer .container { grid-template-columns: 1fr; }
  .product-block, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .header .container { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 8px 12px; white-space: nowrap; }
  .hotline { display: none; }
  .hero { padding: 60px 0; }
  .case-feature { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .case-contact { grid-template-columns: 1fr; }
  .case-contact img { max-width: 220px; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
}

/* ===== 常见问题中心 ===== */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 880px; margin: 0 auto 34px; }
.faq-tabs a { padding: 8px 18px; border: 1px solid #d5e0ee; border-radius: 20px; font-size: 14px; color: #0d4a8f; background: #fff; text-decoration: none; transition: all .2s; }
.faq-tabs a:hover { background: #0d4a8f; border-color: #0d4a8f; color: #fff; }
.faq-block { max-width: 880px; margin: 0 auto 44px; }
.faq-block h2 { font-size: 21px; color: #0d4a8f; padding-left: 12px; border-left: 4px solid #f5a623; margin-bottom: 6px; }
.faq-block .faq-desc { font-size: 13.5px; color: #8a8a8a; margin: 0 0 16px 16px; line-height: 1.7; }

/* ===== 资质页 ===== */
.cert-list { display: grid; gap: 22px; max-width: 1000px; margin: 0 auto; }
.cert-item { display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: #fff; border: 1px solid #e2e6ec; border-radius: 12px; padding: 20px; align-items: start; }
.cert-item img { width: 100%; height: 300px; object-fit: contain; background: #f6f8fb; border-radius: 8px; }
.cert-item h3 { font-size: 19px; color: #0d4a8f; margin-bottom: 10px; }
.cert-item .cert-meta { font-size: 14px; color: #444; line-height: 1.9; }
.cert-item .cert-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6e6e6; font-size: 14px; color: #666; line-height: 1.85; }

/* ===== 工厂实力页 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.stat-grid .stat { background: #fff; border: 1px solid #e2e6ec; border-radius: 10px; padding: 22px 14px; text-align: center; }
.stat-grid b { display: block; font-size: 27px; color: #0d4a8f; line-height: 1.25; margin-bottom: 4px; }
.stat-grid span { font-size: 13px; color: #6b6b6b; line-height: 1.6; }
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; }
.flow .step { background: #fff; border: 1px solid #e2e6ec; border-radius: 8px; padding: 16px 10px; text-align: center; }
.flow .step i { display: block; font-style: normal; font-size: 12px; font-weight: bold; color: #f5a623; margin-bottom: 6px; letter-spacing: 1px; }
.flow .step b { display: block; font-size: 15px; color: #0d4a8f; margin-bottom: 5px; }
.flow .step p { font-size: 12.5px; color: #777; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin-top: 20px; border-radius: 10px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; min-width: 720px; }
.spec-table th, .spec-table td { border: 1px solid #e2e6ec; padding: 11px 14px; text-align: left; }
.spec-table th { background: #eef3fa; color: #0d4a8f; font-weight: 600; white-space: nowrap; }
.spec-table tbody tr:nth-child(even) { background: #fafbfd; }

/* ===== 404 ===== */
.nf { padding: 80px 0 90px; text-align: center; }
.nf .code { font-size: 92px; font-weight: bold; color: #dde8f5; line-height: 1; letter-spacing: 4px; }
.nf h1 { font-size: 25px; color: #0d4a8f; margin: 12px 0 14px; }
.nf p { font-size: 15px; color: #666; line-height: 1.95; margin-bottom: 24px; }
.nf .btn { margin: 0 5px 10px; }

@media (max-width: 860px) {
  .cert-item { grid-template-columns: 1fr; gap: 16px; }
  .cert-item img { height: 240px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .nf .code { font-size: 68px; }
  .nf { padding: 56px 0 66px; }
}
