:root {
  --m-ink: #09172a;
  --m-ink-soft: #17253a;
  --m-navy: #07182c;
  --m-navy-2: #10233e;
  --m-gold: #f4bb53;
  --m-gold-soft: #fff0c9;
  --m-paper: #f7f4ed;
  --m-white: #fff;
  --m-muted: #67748a;
  --m-line: #e4ded2;
  --m-shadow: 0 14px 36px rgba(9, 23, 42, .1);
  --m-radius: 8px;
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--m-paper); scroll-behavior: smooth; }
body.m-prt3d-site {
  margin: 0;
  color: var(--m-ink);
  background: var(--m-paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
  padding-bottom: calc(66px + var(--m-safe-bottom));
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.m-prt3d-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(7, 24, 44, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}
.m-prt3d-brand img { width: 168px; height: 42px; object-fit: contain; object-position: left center; }
.m-prt3d-header__actions { display: flex; align-items: center; gap: 8px; }
.m-prt3d-header__search {
  min-width: 48px;
  padding: 7px 9px;
  color: #d9e2ee;
  font-size: 13px;
  text-align: center;
}
.m-prt3d-menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(244, 187, 83, .45);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
}
.m-prt3d-menu-button span { width: 19px; height: 2px; background: var(--m-gold); }
.m-prt3d-nav-backdrop { position: fixed; z-index: 48; inset: 0; background: rgba(1, 8, 18, .62); }
.m-prt3d-nav-drawer {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  padding: 18px 18px calc(24px + var(--m-safe-bottom));
  transform: translateX(105%);
  transition: transform .24s ease;
  background: var(--m-navy);
  color: var(--m-white);
  overflow-y: auto;
}
.m-prt3d-nav-drawer.is-open { transform: translateX(0); }
.m-prt3d-nav-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.m-prt3d-nav-drawer__head strong { font-size: 20px; }
.m-prt3d-nav-drawer__head button { border: 0; background: transparent; color: #b9c6d5; }
.m-prt3d-nav-search { display: grid; grid-template-columns: 1fr auto; margin-bottom: 18px; }
.m-prt3d-nav-search input { min-width: 0; border: 1px solid #31445f; border-right: 0; border-radius: 6px 0 0 6px; padding: 10px 12px; color: white; background: #10223b; }
.m-prt3d-nav-search button { border: 0; border-radius: 0 6px 6px 0; padding: 0 15px; background: var(--m-gold); color: var(--m-ink); font-weight: 700; }
.m-prt3d-nav-links { border-top: 1px solid #273a55; }
.m-prt3d-nav-links a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid #273a55; color: #dce5ef; }
.m-prt3d-nav-links a.active { color: var(--m-gold); }
.m-prt3d-nav-links b { font-size: 22px; font-weight: 400; }
.m-prt3d-nav-call { display: block; margin-top: 22px; padding: 13px; border-radius: 6px; background: var(--m-gold); color: var(--m-ink); font-weight: 700; text-align: center; }

.m-prt3d-main { min-height: 68vh; }
.m-prt3d-section { padding: 42px 16px; }
.m-prt3d-section--white { background: var(--m-white); }
.m-prt3d-section--dark { color: var(--m-white); background: var(--m-navy); }
.m-prt3d-section__head { margin-bottom: 24px; }
.m-prt3d-section__head > span,
.m-prt3d-eyebrow { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: var(--m-gold-soft); color: #9a6100; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.m-prt3d-section__head h2 { margin: 10px 0 7px; font-size: 27px; line-height: 1.28; }
.m-prt3d-section__head p { margin: 0; color: var(--m-muted); }
.m-prt3d-section--dark .m-prt3d-section__head p { color: #b8c4d3; }

.m-prt3d-hero {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  padding: 36px 16px;
  color: var(--m-white);
  background:
    linear-gradient(135deg, rgba(6, 24, 44, .98) 0%, rgba(9, 29, 52, .93) 58%, rgba(46, 37, 43, .92) 100%),
    url('/prt3d/assets/images/home-hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}
.m-prt3d-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 310px; height: 310px; border: 1px solid rgba(244, 187, 83, .28); border-radius: 50%; }
.m-prt3d-hero__inner { position: relative; z-index: 1; width: 100%; }
.m-prt3d-hero h1 { max-width: 12em; margin: 13px 0 10px; font-size: 30px; line-height: 1.22; }
.m-prt3d-hero p { max-width: 38em; margin: 0; color: #d1dae5; }
.m-prt3d-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.m-prt3d-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid rgba(244, 187, 83, .55); border-radius: 6px; color: var(--m-white); font-weight: 700; }
.m-prt3d-button--primary { border-color: var(--m-gold); background: var(--m-gold); color: var(--m-ink); box-shadow: 0 8px 24px rgba(244, 187, 83, .2); }

.m-prt3d-grid { display: grid; gap: 14px; }
.m-prt3d-card { display: block; border: 1px solid var(--m-line); border-radius: var(--m-radius); background: var(--m-white); box-shadow: var(--m-shadow); overflow: hidden; }
.m-prt3d-card__body { padding: 17px; }
.m-prt3d-card__body > span { color: #a76800; font-size: 12px; font-weight: 700; }
.m-prt3d-card__body strong { display: block; margin: 4px 0 6px; font-size: 19px; line-height: 1.35; }
.m-prt3d-card__body p { margin: 0; color: var(--m-muted); }
.m-prt3d-card__media { aspect-ratio: 16 / 10; background: #e8e4dc; overflow: hidden; }
.m-prt3d-card__media img { width: 100%; height: 100%; object-fit: cover; }
.m-prt3d-card__link { display: inline-flex; margin-top: 13px; color: #9a6100; font-weight: 700; }

.m-prt3d-service-grid .m-prt3d-card { position: relative; }
.m-prt3d-service-index { position: absolute; top: 14px; right: 14px; min-width: 38px; height: 38px; display: grid; place-content: center; border-radius: 50%; background: var(--m-gold-soft); color: #925b00; font-weight: 800; }
.m-prt3d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-prt3d-tags span, .m-prt3d-tags b, .m-prt3d-tags a { padding: 5px 9px; border: 1px solid #eadfc9; border-radius: 999px; background: #f6f1e7; color: #76521c; font-size: 11px; font-weight: 600; }

.m-prt3d-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.m-prt3d-metrics article { padding: 15px; border: 1px solid rgba(244, 187, 83, .26); border-radius: 6px; background: rgba(255, 255, 255, .06); }
.m-prt3d-metrics b { display: block; color: var(--m-gold); font-size: 24px; }
.m-prt3d-metrics strong { display: block; font-size: 14px; }
.m-prt3d-metrics p { margin: 3px 0 0; color: #aebccd; font-size: 12px; }

.m-prt3d-list { display: grid; gap: 1px; border: 1px solid var(--m-line); border-radius: var(--m-radius); background: var(--m-line); overflow: hidden; }
.m-prt3d-list a, .m-prt3d-list article { display: block; padding: 16px; background: var(--m-white); }
.m-prt3d-list strong { display: block; font-size: 17px; }
.m-prt3d-list p { margin: 5px 0 0; color: var(--m-muted); }
.m-prt3d-list em { display: block; margin-top: 8px; color: #9a6100; font-style: normal; font-weight: 700; }

.m-prt3d-detail-panel { display: grid; gap: 12px; }
.m-prt3d-detail-panel article { padding: 18px; border-left: 3px solid var(--m-gold); border-radius: 0 var(--m-radius) var(--m-radius) 0; background: var(--m-white); box-shadow: var(--m-shadow); }
.m-prt3d-detail-panel h3 { margin: 0 0 10px; font-size: 19px; }
.m-prt3d-detail-panel ul { margin: 0; padding-left: 19px; color: var(--m-muted); }

.m-prt3d-gallery { display: grid; gap: 12px; }
.m-prt3d-gallery figure { margin: 0; border-radius: var(--m-radius); background: #17243a; overflow: hidden; }
.m-prt3d-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m-prt3d-gallery figcaption { padding: 13px 15px; color: var(--m-white); }
.m-prt3d-gallery figcaption strong, .m-prt3d-gallery figcaption span { display: block; }
.m-prt3d-gallery figcaption span { margin-top: 3px; color: #bdc8d6; font-size: 13px; }
.m-prt3d-media-placeholder { padding: 30px 20px; border: 1px dashed #c7b897; border-radius: var(--m-radius); background: #fff9eb; text-align: center; }
.m-prt3d-media-placeholder strong { display: block; font-size: 20px; }
.m-prt3d-media-placeholder p { margin: 6px 0 0; color: var(--m-muted); }

.m-prt3d-richtext { color: #27374d; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.m-prt3d-richtext h2, .m-prt3d-richtext h3 { color: var(--m-ink); line-height: 1.35; }
.m-prt3d-richtext img { width: auto; max-width: 100%; height: auto !important; margin: 18px auto; border-radius: 6px; }
.m-prt3d-richtext table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.m-prt3d-richtext td, .m-prt3d-richtext th { min-width: 100px; padding: 8px; border: 1px solid var(--m-line); }

.m-prt3d-search-form { display: grid; grid-template-columns: 1fr auto; margin-top: 20px; }
.m-prt3d-search-form input { min-width: 0; padding: 12px; border: 1px solid #43536a; border-radius: 6px 0 0 6px; background: rgba(255, 255, 255, .96); }
.m-prt3d-search-form button { padding: 0 18px; border: 0; border-radius: 0 6px 6px 0; background: var(--m-gold); color: var(--m-ink); font-weight: 800; }

.m-prt3d-cta { padding: 25px 20px; border-radius: var(--m-radius); background: var(--m-navy); color: var(--m-white); }
.m-prt3d-cta strong { display: block; font-size: 23px; line-height: 1.35; }
.m-prt3d-cta p { color: #b8c5d3; }

.m-prt3d-footer { padding: 34px 18px 30px; background: #061426; color: #aab8c8; }
.m-prt3d-footer > img { width: 170px; }
.m-prt3d-footer p { margin: 15px 0; }
.m-prt3d-footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; }
.m-prt3d-footer__links a { padding: 8px 0; color: #e3e9ef; }
.m-prt3d-footer small { color: #78889c; }

.m-prt3d-bottom-actions {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(66px + var(--m-safe-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: var(--m-safe-bottom);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #ded8cc;
  box-shadow: 0 -8px 30px rgba(8, 22, 40, .1);
}
.m-prt3d-bottom-actions a, .m-prt3d-bottom-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-right: 1px solid #eee8dd; background: transparent; color: var(--m-ink); }
.m-prt3d-bottom-actions span { color: #9a6100; font-size: 11px; }
.m-prt3d-bottom-actions strong { font-size: 13px; }
.m-prt3d-bottom-actions a:first-child { background: var(--m-gold); }
.m-prt3d-bottom-actions a:first-child span { color: #5f3a00; }

.m-prt3d-wechat-dialog { width: min(86vw, 340px); padding: 28px 24px 24px; border: 1px solid #d5b66f; border-radius: 8px; color: var(--m-ink); text-align: center; }
.m-prt3d-wechat-dialog::backdrop { background: rgba(2, 10, 21, .72); }
.m-prt3d-wechat-dialog > span, .m-prt3d-wechat-dialog > strong { display: block; }
.m-prt3d-wechat-dialog > span { color: #9a6100; font-size: 12px; font-weight: 800; }
.m-prt3d-wechat-dialog > strong { margin: 4px 0 16px; font-size: 21px; }
.m-prt3d-wechat-dialog img { width: 190px; margin: auto; }
.m-prt3d-wechat-dialog p { margin-bottom: 0; color: var(--m-muted); }
.m-prt3d-dialog-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; color: #68768a; font-size: 25px; }

@media (min-width: 600px) {
  .m-prt3d-section, .m-prt3d-hero { padding-right: 28px; padding-left: 28px; }
  .m-prt3d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-prt3d-detail-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-prt3d-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  body.m-prt3d-site { font-size: 16px; }
  .m-prt3d-header { padding-right: max(32px, calc((100vw - 760px) / 2)); padding-left: max(32px, calc((100vw - 760px) / 2)); }
  .m-prt3d-section > *, .m-prt3d-hero__inner, .m-prt3d-footer > * { max-width: 760px; margin-right: auto; margin-left: auto; }
  .m-prt3d-hero { min-height: 320px; }
  .m-prt3d-hero h1 { font-size: 38px; }
  .m-prt3d-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-prt3d-bottom-actions { right: max(0px, calc((100vw - 768px) / 2)); left: max(0px, calc((100vw - 768px) / 2)); }
}
