/* 弘宗堂官网 - 新版样式 */
:root {
  --m-nav: #0a3d62;
  --m-nav2: #0d4f7c;
  --m-main: #1d8ac9;
  --m-accent: #f2a93b;
  --m-ink: #1b2733;
  --m-sub: #5d6b7a;
  --m-line: #e2e9f0;
  --m-bg: #f5f8fb;
  --m-white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--m-ink); background: var(--m-white); font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 顶部与导航 ---------- */
.m-top { background: #072f4e; color: #cfe0ee; font-size: 12px; height: 34px; line-height: 34px; }
.m-top .wrap { display: flex; justify-content: space-between; }
.m-top b { color: #fff; font-size: 13px; letter-spacing: .5px; margin-left: 4px; }
.m-head { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--m-line); position: sticky; top: 0; z-index: 60; box-shadow: 0 4px 18px rgba(10,61,98,.06); }
.m-head-in { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.m-logo { display: flex; align-items: center; gap: 12px; }
.m-logo-mark { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--m-main), var(--m-nav)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.m-logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.m-logo-txt b { font-size: 21px; letter-spacing: 2px; color: var(--m-nav); }
.m-logo-txt i { font-style: normal; font-size: 9px; letter-spacing: 1.6px; color: #8b9aa9; margin-top: 4px; }
.m-nav { display: flex; gap: 4px; height: 100%; align-items: center; }
.m-nav a { padding: 10px 18px; font-size: 15px; color: #314659; border-radius: 6px; transition: .25s; position: relative; }
.m-nav a:hover, .m-nav a.on { color: var(--m-main); background: #eef7fc; }
.m-nav a.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; background: var(--m-main); border-radius: 2px; }
.m-burger { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.m-burger span { display: block; width: 24px; height: 2px; background: var(--m-nav); margin: 5px 0; }

/* ---------- 通用版块 ---------- */
.m-sec { padding: 88px 0; }
.m-sec.gray { background: var(--m-bg); }
.m-head-sec { display: flex; align-items: center; gap: 16px; margin-bottom: 42px; }
.m-head-sec .no { font-size: 42px; font-weight: 800; color: #dbe7f1; line-height: 1; letter-spacing: -2px; }
.m-head-sec h2 { font-size: 30px; margin: 0; letter-spacing: 1px; color: var(--m-nav); white-space: nowrap; }
.m-head-sec h2 small { display: block; font-size: 11px; letter-spacing: 3px; color: #9db0c0; font-weight: 500; margin-top: 4px; }
.m-head-sec .rule { height: 1px; flex: 1; background: var(--m-line); }
.m-head-sec .more { color: var(--m-main); font-size: 13px; white-space: nowrap; border-bottom: 1px solid transparent; }
.m-head-sec .more:hover { border-color: var(--m-main); }
.m-lead { max-width: 760px; margin: 0 auto 44px; text-align: center; color: var(--m-sub); font-size: 16px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 首页轮播 ---------- */
.m-banner { position: relative; height: min(600px, 78vh); min-height: 460px; overflow: hidden; background: #0a2c47; }
.m-banner #mSlides, .m-banner .m-slide { position: absolute; inset: 0; }
.m-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s ease; }
.m-slide.on { opacity: 1; transform: scale(1); }
.m-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,31,52,.78) 0%, rgba(4,31,52,.42) 55%, rgba(4,31,52,.18) 100%); pointer-events: none; }
.m-bcap { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; }
.m-bcap .wrap { color: #fff; }
.m-bcap .tag { display: inline-block; font-size: 12px; letter-spacing: 5px; color: #bfe0f5; border-left: 3px solid var(--m-accent); padding-left: 14px; margin-bottom: 22px; }
.m-bcap h1 { font-size: 52px; line-height: 1.2; margin: 0 0 18px; letter-spacing: 3px; font-weight: 700; text-shadow: 0 4px 22px rgba(0,0,0,.25); }
.m-bcap p { font-size: 16px; letter-spacing: 4px; color: #cfe5f5; margin: 0 0 34px; }
.m-bcap .btns a { display: inline-block; padding: 12px 28px; border-radius: 4px; font-size: 14px; margin-right: 12px; transition: .25s; }
.m-bcap .btn1 { background: var(--m-main); color: #fff; }
.m-bcap .btn1:hover { background: #1174ac; }
.m-bcap .btn2 { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.m-bcap .btn2:hover { background: rgba(255,255,255,.15); }
.m-barrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 46px; height: 70px; border: 0; background: rgba(7,42,68,.42); color: #fff; font-size: 34px; cursor: pointer; transition: .2s; }
.m-barrow:hover { background: rgba(7,42,68,.8); }
.m-barrow.prev { left: 0; } .m-barrow.next { right: 0; }
.m-bdots { position: absolute; z-index: 4; bottom: 26px; left: 0; right: 0; text-align: center; }
.m-bdots i { display: inline-block; width: 26px; height: 3px; background: rgba(255,255,255,.4); margin: 0 5px; cursor: pointer; transition: .3s; }
.m-bdots i.on { background: var(--m-accent); width: 44px; }

/* ---------- 推荐产品 ---------- */
.m-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.m-feat { display: grid; grid-template-columns: 46% 1fr; background: #fff; border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; transition: .3s; }
.m-feat:hover { box-shadow: 0 18px 44px rgba(10,61,98,.12); transform: translateY(-4px); }
.m-feat .pic { min-height: 260px; background: #dbe8f2 center/cover; }
.m-feat .body { padding: 26px 28px; display: flex; flex-direction: column; }
.m-feat .cat { color: var(--m-main); font-size: 12px; letter-spacing: 2px; }
.m-feat h3 { font-size: 21px; margin: 10px 0 6px; color: var(--m-nav); }
.m-feat .en { font-size: 11px; color: #a0b0be; letter-spacing: 1px; text-transform: uppercase; }
.m-feat p { color: var(--m-sub); font-size: 14px; margin: 14px 0 18px; }
.m-feat .go { margin-top: auto; color: var(--m-main); font-size: 13px; }

/* ---------- 产品网格 ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-card { background: #fff; border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; transition: .3s; display: block; }
.m-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(10,61,98,.11); border-color: #bcd8e9; }
.m-card .pic { height: 210px; background: #e6eef5 center/cover; overflow: hidden; }
.m-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.m-card:hover .pic img { transform: scale(1.06); }
.m-card .body { padding: 20px 22px 24px; }
.m-card .cat { display: inline-block; font-size: 11px; color: var(--m-main); border: 1px solid #bcdcee; border-radius: 20px; padding: 2px 10px; }
.m-card h3 { font-size: 18px; margin: 12px 0 8px; color: var(--m-nav); }
.m-card p { color: var(--m-sub); font-size: 13.5px; margin: 0; min-height: 48px; }
.m-num { position: absolute; top: 12px; left: 14px; z-index: 2; background: rgba(10,61,98,.85); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 3px; letter-spacing: 1px; }
.m-card .pic-wrap { position: relative; }

/* ---------- 数据统计 ---------- */
.m-stats-band { background: linear-gradient(120deg, #073455, #0d5b8e); padding: 70px 0; color: #fff; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.m-stat { position: relative; }
.m-stat + .m-stat::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.18); }
.m-stat-num { font-size: 46px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: 1px; }
.m-stat-num.str { font-size: 32px; }
.m-stat-lab { margin-top: 12px; font-size: 14px; color: #bcd8ea; letter-spacing: 2px; }

/* ---------- 关于 ---------- */
.m-about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.m-about .rich p { color: var(--m-sub); font-size: 15px; margin: 0 0 16px; }
.m-scope { background: var(--m-bg); border-left: 3px solid var(--m-main); padding: 28px 30px; border-radius: 0 8px 8px 0; }
.m-scope h4 { font-size: 18px; color: var(--m-nav); margin: 0 0 16px; }
.m-scope ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.m-scope li { background: #fff; border: 1px solid var(--m-line); padding: 7px 14px; border-radius: 4px; font-size: 13px; color: #45586a; }
.m-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.m-value { text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--m-line); border-radius: 8px; }
.m-value b { display: block; color: var(--m-nav); font-size: 17px; margin-bottom: 8px; }
.m-value span { font-size: 13px; color: var(--m-sub); }
.m-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.m-gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--m-bg); }
.m-gallery img { width: 100%; height: 200px; object-fit: cover; }
.m-gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--m-sub); text-align: center; }

/* ---------- 发展历程 ---------- */
.m-timeline { position: relative; padding-left: 38px; }
.m-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--m-main), #cfe3f0); }
.m-mile { position: relative; padding: 0 0 34px 10px; }
.m-mile::before { content: ""; position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--m-main); }
.m-mile .y { color: var(--m-main); font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.m-mile h4 { margin: 4px 0 6px; font-size: 17px; color: var(--m-nav); }
.m-mile p { margin: 0; color: var(--m-sub); font-size: 14px; }

/* ---------- 新闻 ---------- */
.m-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-news-card { background: #fff; border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; transition: .3s; }
.m-news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(10,61,98,.1); }
.m-news-card .pic { height: 190px; background: #e6eef5 center/cover; }
.m-news-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.m-news-card .txt { padding: 20px 22px 24px; }
.m-news-card .dt { font-size: 12px; color: var(--m-main); letter-spacing: 1px; }
.m-news-card h4 { font-size: 17px; margin: 8px 0 10px; color: var(--m-nav); line-height: 1.5; }
.m-news-card p { color: var(--m-sub); font-size: 13.5px; margin: 0; }

/* ---------- 合作伙伴 ---------- */
.m-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-partner { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--m-line); border-radius: 8px; padding: 16px; transition: .3s; }
.m-partner:hover { border-color: var(--m-main); box-shadow: 0 10px 26px rgba(10,61,98,.08); }
.m-partner img { max-height: 62px; object-fit: contain; filter: grayscale(1); opacity: .72; }
.m-partner:hover img { filter: none; opacity: 1; }
.m-partner span { font-size: 13px; color: var(--m-sub); }

/* ---------- 荣誉 ---------- */
.m-honors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-honor { background: #fff; border: 1px solid var(--m-line); border-radius: 8px; padding: 12px; text-align: center; }
.m-honor img { width: 100%; height: 190px; object-fit: contain; background: #f6f9fb; }
.m-honor h5 { font-size: 14px; margin: 12px 0 2px; color: var(--m-nav); }
.m-honor span { font-size: 12px; color: #9aa9b7; }

/* ---------- CTA ---------- */
.m-cta { background: linear-gradient(115deg, #0a3d62, #1673aa); color: #fff; padding: 52px 0; }
.m-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.m-cta h3 { font-size: 28px; margin: 0 0 6px; letter-spacing: 2px; }
.m-cta p { margin: 0; color: #bcd8ea; letter-spacing: 3px; font-size: 12px; }
.m-cta .tel { font-size: 32px; font-weight: 700; color: #fff; white-space: nowrap; }
.m-cta .tel b { font-size: 20px; margin-right: 8px; color: var(--m-accent); }

/* ---------- 内页横幅 ---------- */
.m-page-banner { height: 260px; background: linear-gradient(115deg, rgba(7,45,74,.92), rgba(15,102,152,.82)), #0a3d62 center/cover; display: flex; align-items: center; color: #fff; }
.m-page-banner h1 { font-size: 36px; margin: 0; letter-spacing: 4px; }
.m-page-banner p { margin: 8px 0 0; font-size: 12px; letter-spacing: 4px; color: #bcd8ea; text-transform: uppercase; }
.m-crumb { font-size: 13px; color: #93a5b4; padding: 18px 0 0; }
.m-crumb a:hover { color: var(--m-main); }

/* ---------- 列表筛选 ---------- */
.m-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.m-filters button { border: 1px solid var(--m-line); background: #fff; color: #4a5d6e; padding: 8px 20px; border-radius: 22px; font-size: 14px; cursor: pointer; transition: .2s; }
.m-filters button:hover { border-color: var(--m-main); color: var(--m-main); }
.m-filters button.on { background: var(--m-main); border-color: var(--m-main); color: #fff; }

/* ---------- 详情 ---------- */
.m-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.m-detail .cover { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; background: var(--m-bg); }
.m-detail h1 { font-size: 30px; color: var(--m-nav); margin: 0 0 8px; }
.m-detail .meta { color: #94a5b3; font-size: 13px; margin-bottom: 24px; }
.m-detail .content p { color: #435466; font-size: 15px; margin: 0 0 18px; }
.m-detail .content img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; }
.m-side { background: var(--m-bg); border-radius: 8px; padding: 24px; }
.m-side h4 { margin: 0 0 16px; color: var(--m-nav); font-size: 17px; border-left: 3px solid var(--m-main); padding-left: 10px; }
.m-side a { display: block; padding: 10px 0; border-bottom: 1px dashed var(--m-line); color: #4b5f70; font-size: 14px; }
.m-side a:hover { color: var(--m-main); }
.m-side .hot { color: var(--m-main); font-size: 13px; margin-top: 22px; }

.m-article { max-width: 860px; margin: 0 auto; }
.m-article h1 { font-size: 32px; color: var(--m-nav); text-align: center; margin: 0 0 18px; }
.m-article .meta { text-align: center; color: #94a5b3; font-size: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--m-line); margin-bottom: 32px; }
.m-article .content { font-size: 15.5px; color: #35485a; line-height: 2; }
.m-article .content img { max-width: 100%; height: auto; border-radius: 6px; margin: 14px 0; }
.m-article .content p { margin: 0 0 20px; }

/* ---------- 联系我们 ---------- */
.m-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.m-contact-card { background: var(--m-bg); border-radius: 10px; padding: 36px; }
.m-contact-card h3 { color: var(--m-nav); margin: 0 0 20px; font-size: 21px; }
.m-contact-card .row { display: flex; padding: 14px 0; border-bottom: 1px solid var(--m-line); }
.m-contact-card .row b { width: 76px; color: var(--m-main); flex: none; }
.m-contact-card .row span { color: #435466; }
.m-contact-qr { text-align: center; background: #fff; border: 1px solid var(--m-line); border-radius: 10px; padding: 30px; }
.m-contact-qr img { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 14px; }
.m-contact-qr p { color: var(--m-sub); font-size: 14px; margin: 0; }

/* ---------- 页脚 ---------- */
.m-footer { background: #082b46; color: #a9c0d2; padding: 62px 0 0; font-size: 13px; }
.m-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 50px; padding-bottom: 44px; }
.m-foot-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.m-foot-logo b { color: #fff; font-size: 20px; letter-spacing: 2px; }
.m-foot-brand p { line-height: 1.9; margin: 0; }
.m-footer h5 { color: #fff; font-size: 15px; margin: 0 0 18px; letter-spacing: 1px; }
.m-footer ul { list-style: none; margin: 0; padding: 0; }
.m-footer li { margin-bottom: 9px; }
.m-footer a:hover { color: #7fc4ee; }
.m-foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 12px; color: #7f9ab0; }
.m-foot-bar a { color: #7f9ab0; }

/* ---------- 返回顶部 ---------- */
.m-to-top { position: fixed; right: 24px; bottom: 30px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--m-main); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 80; box-shadow: 0 6px 18px rgba(29,138,201,.35); }
.m-to-top.show { opacity: 1; visibility: visible; }
.m-to-top:hover { background: #1174ac; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .m-grid, .m-news, .m-gallery, .m-partners { grid-template-columns: repeat(2, 1fr); }
  .m-honors, .m-values { grid-template-columns: repeat(2, 1fr); }
  .m-feats { grid-template-columns: 1fr; }
  .m-about, .m-detail, .m-contact { grid-template-columns: 1fr; }
  .m-bcap h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .m-top-r { display: none; }
  .m-head-in { height: 64px; }
  .m-logo-txt b { font-size: 17px; }
  .m-logo-txt i { display: none; }
  .m-burger { display: block; }
  .m-nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; height: auto; padding: 10px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none; }
  .m-nav.open { display: flex; }
  .m-nav a { width: 100%; }
  .m-bcap h1 { font-size: 30px; }
  .m-bcap p { font-size: 12px; letter-spacing: 2px; }
  .m-sec { padding: 60px 0; }
  .m-head-sec { flex-wrap: wrap; gap: 10px; }
  .m-head-sec h2 { font-size: 24px; }
  .m-head-sec .no { font-size: 30px; }
  .m-head-sec .rule { display: none; }
  .m-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .m-stat + .m-stat::before { display: none; }
  .m-stat-num { font-size: 36px; }
  .m-grid, .m-news, .m-gallery, .m-partners, .m-honors, .m-values, .m-foot-grid { grid-template-columns: 1fr; }
  .m-cta .wrap { flex-direction: column; align-items: flex-start; }
  .m-feat { grid-template-columns: 1fr; }
  .m-feat .pic { min-height: 200px; }
  .m-page-banner { height: 200px; }
  .m-page-banner h1 { font-size: 26px; }
  .m-detail .cover { height: 260px; }
}
