/* ============================================================
   泸州长江机械 — 风格1-C：科技布局 × 德系工业蓝（白底/深蓝/琥珀）
   无外部依赖，内网可用；图片保持原始比例（height:auto，不裁剪）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: #2b3440; background: #fff; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: rgba(255,255,255,.96); border-bottom: 1px solid #e6eaee;
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 52px; width: auto; }
.logo-mark {
  width: 42px; height: 42px; background: #0a58c3; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; letter-spacing: 1px;
}
.logo-txt b { display: block; font-size: 17px; color: #12233a; letter-spacing: .5px; }
.logo-txt i { display: block; font-style: normal; font-size: 10px; color: #8a97a6; letter-spacing: 2px; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { padding: 9px 14px; font-size: 15px; color: #3c4a5a; border-radius: 3px; transition: .15s; }
.mainnav a:hover { background: #eef3f9; color: #0a58c3; }
.mainnav a.active { background: #0a58c3; color: #fff; }
.mainnav a.langsw { margin-left: 8px; border: 1px solid #c9d6e8; color: #0a58c3; padding: 7px 14px; }
.mainnav a.langsw:hover { background: #0a58c3; border-color: #0a58c3; color: #fff; }
.navbtn { display: none; background: none; border: 1px solid #c9d6e8; border-radius: 6px; font-size: 20px; padding: 4px 12px; color: #0a58c3; cursor: pointer; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(255,255,255,.08), transparent),
    radial-gradient(500px 280px at 15% 85%, rgba(242,178,0,.10), transparent),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(115deg, #062a52 0%, #0a4488 60%, #0a58c3 130%);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}
.hero-in { position: relative; z-index: 2; padding: 60px 16px; }
.hero-k { display: inline-block; border: 1px solid #f2b200; color: #f2b200; font-size: 12px; padding: 5px 14px; border-radius: 20px; letter-spacing: 3px; margin-bottom: 20px; }
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 700; color: #fff; }
.hero h1 em { font-style: normal; color: #f2b200; }
.hero p.desc { margin: 18px 0 28px; font-size: 15px; color: #c6d7ec; max-width: 580px; line-height: 1.9; }
.hero-btns .btn { display: inline-block; padding: 12px 34px; border-radius: 4px; font-size: 15px; margin-right: 12px; transition: .2s; }
.btn-amber { background: #f2b200; color: #231a00; font-weight: 700; }
.btn-amber:hover { background: #ffc63d; }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.gearbg {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; opacity: .12; pointer-events: none;
  background: conic-gradient(from 0deg,#fff 0 8deg,transparent 8deg 30deg,#fff 30deg 38deg,transparent 38deg 60deg,#fff 60deg 68deg,transparent 68deg 90deg,#fff 90deg 98deg,transparent 98deg 120deg,#fff 120deg 128deg,transparent 128deg 150deg,#fff 150deg 158deg,transparent 158deg 180deg,#fff 180deg 188deg,transparent 188deg 210deg,#fff 210deg 218deg,transparent 218deg 240deg,#fff 240deg 248deg,transparent 248deg 270deg,#fff 270deg 278deg,transparent 278deg 300deg,#fff 300deg 308deg,transparent 308deg 330deg,#fff 330deg 338deg,transparent 338deg 360deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%);
  mask: radial-gradient(circle, transparent 34%, #000 35%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gearbg { animation: none; } }

/* ---------- 轮播（高度跟随原图 1920x690 比例，完整显示不裁切） ---------- */
.banner { background: #fff; padding-top: 10px; }
.slide { position: relative; overflow: hidden; aspect-ratio: 1920 / 690; }
.slide-item { display: none; height: 100%; }
.slide-item.on { display: block; animation: fade .8s; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.slide-fallback { display: flex; align-items: center; }
.slide-fallback h2 { color: #fff; font-size: 34px; letter-spacing: 2px; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.slide-fallback { padding: 70px 0; text-align: center; }
.slide-fallback h2 { color: #fff; font-size: 28px; }

/* ---------- 特性条 ---------- */
.feats { background: #f5f8fb; border-bottom: 1px solid #e6eaee; }
.feats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.feat { padding: 26px 18px; border-left: 1px solid #e6eaee; }
.feat:first-child { border-left: none; }
.feat b { color: #0a58c3; font-size: 15px; display: block; }
.feat b i { font-style: normal; font-size: 12px; color: #8a97a6; font-weight: 400; margin-left: 6px; }
.feat span { display: block; margin-top: 7px; font-size: 13px; color: #7a8899; line-height: 1.7; }

/* ---------- 通用区块 ---------- */
.sec { padding: 64px 0; }
.graysec { background: #f5f8fb; }
.sect { font-size: 28px; color: #12233a; margin-bottom: 36px; text-align: center; }
.sect span { display: block; font-size: 12px; color: #a6b3c2; letter-spacing: 4px; margin-top: 6px; font-weight: 400; }
.sect.center span { letter-spacing: 1px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.empty { text-align: center; color: #8a97a6; padding: 40px 0; grid-column: 1 / -1; }
.muted { color: #8a97a6; font-size: 13px; }
.more { text-align: center; margin-top: 30px; }
.more a { display: inline-block; padding: 10px 34px; border: 1px solid #0a58c3; color: #0a58c3; border-radius: 4px; font-size: 14px; transition: .2s; }
.more a:hover { background: #0a58c3; color: #fff; }

/* ---------- 产品卡片 ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid #e8eaee; border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s, transform .2s; display: block;
}
.card:hover { box-shadow: 0 8px 24px rgba(10,88,195,.12); transform: translateY(-3px); }
.card-img { height: 190px; background: #f0f2f5; overflow: hidden; }
.card-img.tall { height: 240px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 15px; padding: 12px 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .muted { padding: 0 14px 12px; }

/* ---------- 新闻列表 ---------- */
.newsline li { list-style: none; }
.newsline a {
  display: flex; align-items: center; gap: 10px; padding: 15px 6px;
  border-bottom: 1px dashed #e0e6ec; font-size: 15px; color: #3c4a5a; transition: .15s;
}
.newsline a:hover { color: #0a58c3; padding-left: 12px; }
.newsline .dot { width: 6px; height: 6px; background: #f2b200; border-radius: 50%; flex: none; }
.newsline time { margin-left: auto; color: #a6b3c2; font-size: 13px; flex: none; }

/* ---------- 内页：侧栏布局 ---------- */
.side-layout { display: flex; gap: 28px; align-items: flex-start; }
.side { width: 240px; flex: none; background: #f5f8fb; border: 1px solid #e6eaee; border-radius: 10px; padding: 18px; }
.side h3 { font-size: 16px; color: #12233a; padding: 6px 10px 14px; border-bottom: 2px solid #0a58c3; margin-bottom: 8px; }
.side ul { list-style: none; }
.side a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: #4a5766; transition: .15s; }
.side a:hover { background: #fff; color: #0a58c3; }
.side a.cur { background: #0a58c3; color: #fff; }
.mainbox { flex: 1; min-width: 0; }
.mainbox .sect { text-align: left; }
.mainbox .sect span { letter-spacing: 2px; }

/* ---------- 正文 ---------- */
.article { font-size: 16px; line-height: 1.9; color: #333; word-break: break-word; }
.article img { margin: 12px auto; border-radius: 6px; }
.article p { margin: 10px 0; }
.artimg { margin: 18px 0; text-align: center; }
.artimg img { max-height: 480px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.back { margin-top: 30px; }
.back a { color: #0a58c3; }
.back a:hover { color: #f2b200; }

/* ---------- 联系我们专版 ---------- */
.lx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.lx-card { background: #f5f8fb; border: 1px solid #e6eaee; border-radius: 10px; padding: 22px 16px; text-align: center; transition: .2s; }
.lx-card:hover { border-color: #0a58c3; box-shadow: 0 8px 20px rgba(10,88,195,.10); }
.lx-card .ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #0a58c3; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.lx-card h4 { color: #12233a; font-size: 15px; margin-bottom: 6px; }
.lx-card p { font-size: 14px; color: #5b6a7c; word-break: break-all; line-height: 1.7; }
.my-map { margin: 0 auto; width: 100%; max-width: 920px; height: 380px; border: 1px solid #e6eaee; border-radius: 10px; }
.amap-container { height: 100%; }

/* ---------- 招聘 ---------- */
.jobcard { border: 1px solid #e6eaee; border-radius: 10px; padding: 20px 24px; margin-bottom: 18px; transition: .2s; }
.jobcard:hover { border-color: #0a58c3; box-shadow: 0 8px 20px rgba(10,88,195,.08); }
.jobhead h3 { color: #0a58c3; font-size: 18px; margin-bottom: 4px; }

/* ---------- 留言表单 ---------- */
.okbox { background: #eef7ee; border: 1px solid #bfe3bf; color: #2c7a2c; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.msgform label { display: block; font-size: 14px; color: #555; margin-bottom: 14px; }
.msgform input, .msgform textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 15px;
  border: 1px solid #cfd6de; border-radius: 8px; outline: none; font-family: inherit;
}
.msgform input:focus, .msgform textarea:focus { border-color: #0a58c3; box-shadow: 0 0 0 3px rgba(10,88,195,.12); }
.msgform button {
  background: #0a58c3; color: #fff; border: none; padding: 11px 34px;
  font-size: 15px; border-radius: 8px; cursor: pointer; transition: .2s;
}
.msgform button:hover { background: #084aa6; }

/* ---------- 分页 ---------- */
.pager { text-align: center; margin-top: 28px; }
.pager a, .pager .cur {
  display: inline-block; min-width: 34px; padding: 6px 10px; margin: 0 4px;
  border: 1px solid #cfd6de; border-radius: 6px; font-size: 14px; color: #444;
}
.pager a:hover { border-color: #0a58c3; color: #0a58c3; }
.pager .cur { background: #0a58c3; border-color: #0a58c3; color: #fff; }

/* ---------- 页脚 ---------- */
.foot { background: #0b1a2c; border-top: 3px solid #f2b200; color: #8ba0b5; padding: 40px 0 24px; font-size: 14px; }
.foot .fsite { color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot .icp { margin-top: 14px; }
.foot .icp a { color: #8ba0b5; }
.foot .icp a:hover { color: #f2b200; }
.flink { margin-top: 14px; font-size: 13px; color: #8ba0b5; }
.flink a { color: #8ba0b5; margin: 0 6px; }
.flink a:hover { color: #f2b200; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .side-layout { flex-direction: column; }
  .side { width: 100%; }
  .feats-in { grid-template-columns: repeat(2, 1fr); }
  .feat { border-top: 1px solid #e6eaee; }
  .hero h1 { font-size: 32px; }
  .navbtn { display: block; }
  .mainnav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; padding: 10px;
    border-bottom: 1px solid #e6eaee; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .mainnav.open { display: flex; }
}
@media (max-width: 900px) {
  .lx-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid4, .grid3, .feats-in { grid-template-columns: 1fr; }
  .lx-cards { grid-template-columns: 1fr; }
  .my-map { height: 260px; }
  .bar-in { height: 60px; }
  .mainnav { top: 60px; }
  .hero h1 { font-size: 26px; }
  .hero-in { padding: 44px 16px; }
}
