/* 元山激光官网 - 全站样式（响应式 中英双语） */
:root {
  --red: #d2262a;
  --dark: #16181d;
  --gray: #f5f6f8;
  --text: #333;
  --muted: #777;
  --border: #e5e7ea;
  --blue: #1a4b8f;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 24, 40, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text); background: #fff; font-size: 15px; line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部 ---------- */
.topbar { background: var(--dark); color: #cfd3da; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.lang-switch button {
  background: none; border: 1px solid #55596400; color: #cfd3da; cursor: pointer;
  font-size: 12.5px; padding: 2px 8px; border-radius: 4px;
}
.lang-switch button.on { background: var(--red); color: #fff; }

header.site { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  width: 42px; height: 42px; background: var(--red); color: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.logo .name { font-size: 21px; font-weight: 800; letter-spacing: 1px; color: var(--dark); }
.logo .name em { font-style: normal; color: var(--red); }
nav.main { display: flex; gap: 6px; }
nav.main a { padding: 8px 16px; border-radius: 6px; font-size: 15.5px; color: #333; font-weight: 600; }
nav.main a:hover { color: var(--red); }
nav.main a.on { color: var(--red); background: #fdf0f0; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: #222; margin: 5px 0; border-radius: 2px; }

/* ---------- 轮播 ---------- */
.banner { position: relative; overflow: hidden; height: 520px; background: #0c1524; }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.banner .slide.on { opacity: 1; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .slide .cap {
  position: absolute; left: 0; right: 0; bottom: 90px; text-align: center; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.banner .slide .cap h2 { font-size: 40px; letter-spacing: 2px; }
.banner .slide .cap p { font-size: 17px; margin-top: 8px; opacity: .92; }
.banner .dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.banner .dots i { width: 34px; height: 5px; background: rgba(255,255,255,.45); border-radius: 3px; cursor: pointer; }
.banner .dots i.on { background: var(--red); }
.banner .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  background: rgba(0,0,0,.28); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 20px;
}
.banner .arrow:hover { background: var(--red); }
.banner .arrow.prev { left: 24px; } .banner .arrow.next { right: 24px; }

/* ---------- 区块标题 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--gray); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .en { color: #c9ccd2; font-weight: 800; font-size: 30px; letter-spacing: 4px; text-transform: uppercase; }
.sec-head h2 { font-size: 28px; margin-top: -18px; color: var(--dark); }
.sec-head h2 b { color: var(--red); }
.sec-head .line { width: 60px; height: 4px; background: var(--red); margin: 14px auto 0; border-radius: 2px; }
.more-link { text-align: center; margin-top: 34px; }
.more-link a {
  display: inline-block; padding: 10px 42px; border: 1.5px solid var(--red); color: var(--red);
  border-radius: 24px; font-weight: 700; letter-spacing: 2px; transition: .2s;
}
.more-link a:hover { background: var(--red); color: #fff; }

/* ---------- 产品卡片 ---------- */
.cat-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.cat-tabs button {
  padding: 8px 22px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff;
  font-size: 14.5px; cursor: pointer; color: #555;
}
.cat-tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(20,24,40,.14); }
.card .ph { height: 210px; overflow: hidden; background: #f2f3f5; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.06); }
.card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 16.5px; color: var(--dark); line-height: 1.45; }
.card .body p { font-size: 13.5px; color: var(--muted); margin-top: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .body .link { margin-top: 12px; color: var(--red); font-weight: 700; font-size: 13.5px; }

/* ---------- 案例 ---------- */
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-card .ph { height: 220px; overflow: hidden; }
.case-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .ph img { transform: scale(1.07); }
.case-card .bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(8,10,16,.85)); color: #fff;
}
.case-card .bar .date { font-size: 12px; opacity: .8; }
.case-card .bar h3 { font-size: 15.5px; line-height: 1.4; }
.cases-list .datecol { text-align: center; flex: 0 0 74px; background: var(--gray); border-radius: 8px;
  display: flex; flex-direction: column; justify-content: center; }
.cases-list .datecol b { font-size: 20px; color: var(--red); }
.cases-list .datecol span { font-size: 12px; color: var(--muted); }
.news-row { display: flex; gap: 18px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.news-row .ph { flex: 0 0 260px; height: 170px; overflow: hidden; }
.news-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.news-row .txt { padding: 20px 24px 16px; display: flex; flex-direction: column; }
.news-row .txt .date { color: var(--red); font-size: 13px; font-weight: 700; }
.news-row .txt h3 { font-size: 17px; margin: 6px 0 8px; color: var(--dark); }
.news-row .txt p { font-size: 13.5px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 关于 ---------- */
.about-flex { display: flex; gap: 44px; align-items: center; }
.about-flex .txt { flex: 1.2; }
.about-flex .ph { flex: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-flex .txt h3 { font-size: 24px; color: var(--dark); margin-bottom: 14px; }
.about-flex .txt h3 b { color: var(--red); }
.about-flex .txt p { color: #555; margin-bottom: 10px; font-size: 14.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { background: #fff; border-radius: var(--radius); text-align: center; padding: 26px 10px; box-shadow: var(--shadow); }
.stat b { font-size: 30px; color: var(--red); }
.stat span { display: block; color: var(--muted); margin-top: 4px; font-size: 14px; }

/* ---------- 详情页 ---------- */
.crumb { padding: 18px 0; color: var(--muted); font-size: 13.5px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--red); }
.detail { display: flex; gap: 44px; }
.detail .ph { flex: 0 0 44%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #f7f8fa; align-self: flex-start; position: sticky; top: 100px; }
.detail .ph img { width: 100%; }
.detail .info h1 { font-size: 26px; color: var(--dark); line-height: 1.4; }
.detail .info .brief { color: var(--muted); margin: 12px 0 20px; }
.ptable { width: 100%; border-collapse: collapse; margin: 8px 0 22px; }
.ptable th, .ptable td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; text-align: left; }
.ptable th { background: var(--gray); width: 38%; color: #444; font-weight: 600; }
.btn {
  display: inline-block; background: var(--red); color: #fff; padding: 11px 34px;
  border-radius: 24px; font-weight: 700; letter-spacing: 1px; border: none; cursor: pointer; font-size: 15px;
}
.btn.ghost { background: none; border: 1.5px solid var(--red); color: var(--red); }
.article-body p { margin-bottom: 14px; color: #444; font-size: 15px; }
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-wrap h1 { font-size: 26px; color: var(--dark); margin-bottom: 8px; line-height: 1.5; }
.article-wrap .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.article-wrap .hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.pager { display: flex; justify-content: space-between; margin-top: 34px; gap: 12px; }
.pager a { color: var(--red); font-weight: 600; font-size: 14px; }
video.vid { width: 100%; border-radius: var(--radius); background: #000; margin-bottom: 20px; }

/* ---------- 联系 ---------- */
.contact-flex { display: flex; gap: 40px; }
.contact-flex .info { flex: 1; }
.contact-flex .info table { width: 100%; border-collapse: collapse; }
.contact-flex .info td { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; vertical-align: top; }
.contact-flex .info td.k { color: var(--muted); width: 110px; }
.contact-flex .qr { flex: 0 0 260px; text-align: center; }
.contact-flex .qr img { width: 210px; border: 1px solid var(--border); border-radius: 10px; margin: 0 auto; }
.contact-flex .qr p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-box { background: var(--gray); border-radius: var(--radius); padding: 28px; margin-top: 40px; }
.form-box h3 { margin-bottom: 16px; color: var(--dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid input, .form-grid textarea, .form-grid button {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-grid textarea { grid-column: 1 / -1; min-height: 110px; resize: vertical; }
.form-grid button { grid-column: 1 / -1; }

/* ---------- 页脚 ---------- */
footer.site { background: var(--dark); color: #aab0bb; margin-top: 70px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding: 52px 0 40px; }
footer.site h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
footer.site li { margin-bottom: 8px; font-size: 13.5px; }
footer.site a:hover { color: #fff; }
footer.site .brand p { font-size: 13.5px; line-height: 1.8; margin-top: 10px; }
.copyright { border-top: 1px solid #2a2d35; padding: 16px 0; text-align: center; font-size: 12.5px; color: #767c88; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .banner { height: 420px; }
  .banner .slide .cap h2 { font-size: 32px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav.main {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 4%; box-shadow: 0 12px 24px rgba(0,0,0,.1); gap: 2px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 10px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .burger { display: block; }
  .grid, .grid.g3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .banner { height: 300px; }
  .banner .slide .cap { bottom: 46px; }
  .banner .slide .cap h2 { font-size: 24px; }
  .banner .slide .cap p { font-size: 14px; }
  .section { padding: 44px 0; }
  .about-flex { flex-direction: column; }
  .detail { flex-direction: column; }
  .detail .ph { position: static; flex: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-flex { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-row .ph { flex: none; height: 190px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 420px) {
  .grid, .grid.g3 { grid-template-columns: 1fr; }
  .card .ph { height: 230px; }
}
