/* 茂选云印官网 · 公共样式 (布局按参考站 1:1 还原) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #FF8A3D;
  --primary-2: #FFB37A;   /* 渐变浅端 */
  --blue: #2E92F8;        /* 企业页强调色 */
}
/* overflow-y: scroll 让纵向滚动条常驻占位:
   页面高度变化(切 tab/换图)时滚动条不会消失又出现,
   视口宽度保持恒定, 固定页头的居中内容才不会左右跳动 */
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  min-width: 1280px;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { display: block; }
.text-primary { color: var(--primary); }
.text-blue { color: var(--blue); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; min-width: 100%; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header .inner {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 auto; width: 1240px; height: 50px;
}
.site-header .brand { display: flex; align-items: center; flex: none; }
.site-header .brand img { display: block; height: 32px; width: auto; }
.site-header nav { display: flex; height: 100%; align-items: center; gap: 42px; }
.site-header nav > a.nav-link {
  position: relative; display: block; font-size: 15px; font-weight: 600;
  line-height: 50px; white-space: nowrap; color: #333; transition: color .15s ease-out;
}
.site-header nav > a.nav-link:hover,
.site-header nav > a.nav-link.active { color: var(--primary); }
.site-header nav > a.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 2px;
  background: var(--primary); transform: translateX(-50%) scaleX(0);
  transition: transform .15s ease-out;
}
.site-header nav > a.nav-link:hover::after,
.site-header nav > a.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-login { position: relative; height: 100%; display: flex; align-items: center; }
.nav-login-trigger {
  position: relative; display: block; color: #333; font-size: 15px; font-weight: 600; cursor: pointer;
  line-height: 50px; cursor: pointer; transition: color .15s ease-out;
}
.nav-login-trigger:hover { color: var(--primary); }
.nav-login-trigger.btn-style {
  height: 32px; line-height: 32px; padding: 0 18px; border-radius: 8px;
  color: #fff; font-size: 14px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-2));
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-login-trigger.btn-style:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,138,61,.35);
}
.nav-login-pop {
  visibility: hidden; opacity: 0; position: absolute; top: 48px; right: -50px;
  width: 164px; padding: 13px; border-radius: 13px; background: #fff; text-align: center;
  box-shadow: 0 10px 36px rgba(74,47,26,.16); transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.nav-login.open .nav-login-pop { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-login-pop img { display: block; width: 132px; height: 132px; margin: 0 auto; }
.nav-login-pop p { color: #777; font-size: 13px; line-height: 20px; margin-top: 7px; }
.nav-login-pop b { color: var(--primary); font-weight: 600; }
.btn-print {
  width: 86px; height: 29px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; border-radius: 6px; margin-left: 50px; cursor: pointer;
  background: linear-gradient(to bottom, var(--primary), var(--primary-2));
}
.header-gap { height: 50px; }
.nav-print { position: relative; }
.nav-print .nav-qr-pop {
  visibility: hidden; position: absolute; top: 48px; right: 0;
  background: #fff; padding: 10px; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); text-align: center;
}
.nav-print.open .nav-qr-pop { visibility: visible; }
.nav-print .nav-qr-pop img { width: 120px; height: 120px; }
.nav-print .nav-qr-pop p { font-size: 13px; color: var(--primary); margin-top: 6px; line-height: 20px; }

/* ---------- 通用图文横排区 (首页/个人/企业) ---------- */
.pic-text { overflow: hidden; padding: 92px 0; }
.pic-text.gray { background: #FAFAFA; }
.pic-text .row {
  display: flex; align-items: center; justify-content: space-between;
  width: 1116px; margin: 0 auto;
}
.pic-text .pic { flex: none; width: 50%; }
.pic-text .pic img, .pic-text .pic svg { width: 90%; }
.pic-text .pic.right img { margin-left: auto; }
.pic-text .txt { flex: auto; }
.pic-text .txt h3 { font-size: 34px; line-height: 44px; color: #000; font-weight: 600; }
.pic-text .txt p { font-size: 16px; line-height: 26px; margin-top: 27px; color: #999; font-weight: 400; }
.order-1 { order: 1; } .order-2 { order: 2; }

/* 大标题区 */
.sec-head { text-align: center; font-weight: 600; }
.sec-head h2 { font-size: 60px; color: #000; }
.sec-head .sub { font-size: 20px; color: #333; padding-top: 20px; font-weight: 600; }

/* 淡入动画 */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 70px 0 50px; background: #fafafa; }
.site-footer.white { background: #fff; }
.site-footer .inner { width: 1240px; margin: 0 auto; }
.site-footer .cols { display: flex; align-items: flex-start; }
.site-footer .col-brand { flex: none; width: 320px; margin-right: 110px; }
.site-footer .col-brand .brand-name { margin-bottom: 16px; }
.site-footer .col-brand .brand-name img { display: block; height: 30px; width: auto; }
.site-footer .col-brand .brand-desc { font-size: 14px; color: #999; line-height: 26px; }
.site-footer .col-nav { flex: none; width: 120px; margin-right: 110px; }
.site-footer .col-nav .head, .site-footer .col-list .head { display: block; margin-bottom: 24px; color: #333; font-size: 16px; }
.site-footer .col-nav a { display: block; color: #999; font-size: 14px; margin-bottom: 14px; }
.site-footer .col-nav a:hover { color: var(--primary); }
.site-footer .col-list { flex: none; width: 260px; }
.site-footer .col-list > a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 24px; margin-bottom: 14px; color: #999; font-size: 14px; }
.site-footer .col-list > a:hover { color: var(--primary); }
.site-footer .col-contact { flex: none; text-align: center; margin-left: auto; width: 200px; }
.site-footer .col-contact .t1 { font-size: 16px; color: #333; margin-bottom: 6px; }
.site-footer .col-contact .t2 { color: #999; font-size: 14px; margin-bottom: 12px; }
.site-footer .col-contact .qr { margin: 0 auto; width: 110px; height: 110px; padding: 6px;
  background: #fff; border: 1px solid #f0e6dc; border-radius: 10px; }
.site-footer .col-contact .qr img { width: 100%; height: 100%; }
.beian { text-align: center; margin-top: 46px; padding-top: 24px; border-top: 1px solid #EDECEC; }
.beian .company { font-size: 14px; color: #666; line-height: 24px; margin-bottom: 6px; }
.beian .nums { font-size: 14px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.beian .nums img { width: 18px; height: 20px; }
.beian .nums a { color: #999; }
.beian .nums a:hover { color: var(--primary); }

/* ---------- 左侧公众号浮动卡片 ---------- */
.float-gzh {
  position: fixed; z-index: 50; padding: 10px; left: 120px; bottom: 8%;
  background: #fff; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.float-gzh img { width: 120px; height: 120px; margin: 0 auto; }
.float-gzh p { text-align: center; color: var(--primary); font-weight: 500; font-size: 14px; line-height: 22px; }
.float-gzh p b { font-weight: 600; }

/* ---------- 右侧浮动侧栏 ---------- */
.float-side { position: fixed; z-index: 50; right: 198px; bottom: 8%; cursor: pointer; }
.float-side .stack, .float-side .to-top {
  text-align: center; border-radius: 14px; background: #fff;
  border: 1px solid #ffe4cd;
  box-shadow: 0 10px 30px rgba(255, 138, 61, .16);
}
.side-item { padding: 9px 8px; position: relative; border-radius: 10px; transition: background .2s; }
.float-side .stack .side-item:first-child { border-radius: 13px 13px 10px 10px; }
.float-side .stack .side-item:last-child { border-radius: 10px 10px 13px 13px; }
.side-item:hover { background: #fff2e5; }
.side-item .ico { width: 30px; height: 30px; margin: 0 auto 3px; }
.side-item .ico img { width: 100%; height: 100%; }
.side-item .ico .off { display: none; }
.side-item .ico .on { display: block; }
.side-item > p { color: #a3846c; font-size: 12px; line-height: 1; }
.side-item + .side-item { border-top: 1px solid #ffeddd; border-top-left-radius: 0; border-top-right-radius: 0; }
.side-item:hover > p { color: var(--primary); font-weight: 600; }
.side-pop {
  visibility: hidden; position: absolute; top: 50%; transform: translate(-100%, -50%);
  left: -18px; padding: 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.side-item:hover .side-pop { visibility: visible; }
.side-pop::after {
  content: ''; position: absolute; right: -6px; top: 50%; margin-top: -6px;
  border-left: 6px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.side-pop img { width: 120px; height: 120px; }
.side-pop .cap { font-size: 14px; text-align: center; margin-top: 6px; }
.side-pop .cap.orange { color: var(--primary); }
.side-pop .cap.gray { color: #999; }
.float-side .to-top { margin-top: 10px; overflow: hidden; }
.float-side .to-top .side-item { border-radius: 13px; }

/* ---------- Banner 通用 ---------- */
.hero {
  position: relative; background: #f8f8f8; overflow: hidden;
}
.hero .canvas { position: relative; max-width: 1920px; margin: 0 auto; height: 700px; }
/* 左右都随视口收缩: 1920 下还原设计稿 (336 / 210), 1280 最小宽时文案 120、插画贴右, 互不重叠 */
.hero .txt { position: absolute; top: 211px; left: max(120px, calc(50% - 624px)); }
.hero .txt h1 { font-size: 60px; color: #000; font-weight: 600; }
.hero .txt .sub { font-size: 20px; color: #333; font-weight: 600; padding: 20px 0 28px; line-height: 36px; }
.hero .cta {
  display: flex; align-items: center; justify-content: center;
  width: 170px; height: 56px; color: #fff; font-size: 18px;
  background: var(--primary); border-radius: 10px; margin-top: 40px;
  cursor: pointer; user-select: none; transition: transform .15s ease;
}
.hero .cta:hover { transform: translateY(-2px); }
.hero .cta.big { width: 250px; height: 79px; font-size: 30px; border-radius: 12px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-2)); }
.hero .cta.blue { background: var(--blue); }
.hero .art { position: absolute; top: 100px; right: max(60px, calc(50% - 750px)); width: min(660px, 34vw); }
.hero .art img, .hero .art svg { width: 100%; }

/* 触屏点按打开的浮动栏弹层 (site.js 切换 .open) */
.side-item.open .side-pop { visibility: visible; }
.side-item.open { background: #fff2e5; }

/* ==================== 移动端 (≤768px) ====================
   site.js 在此宽度下不再做 1920 整体缩放, 全部交给以下规则 */
@media (max-width: 768px) {
  body { min-width: 0; }

  /* 头部: 第一行 logo + 批量打印按钮, 第二行横向滚动导航 */
  .site-header { width: 100%; min-width: 0; }
  .site-header .inner {
    position: relative; width: 100%; height: auto;
    flex-wrap: wrap; padding: 0 12px;
  }
  .site-header .brand { height: 46px; }
  .site-header .brand img { height: 24px; }
  .site-header nav {
    width: 100%; order: 3; gap: 24px; height: 40px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav > a.nav-link { line-height: 40px; font-size: 14px; }
  .nav-login { position: absolute; right: 12px; top: 7px; height: 32px; }
  .nav-login-pop { right: 0; top: 40px; }
  .header-gap { height: 86px; }

  /* 首页首屏 */
  .hero .canvas { height: auto; padding: 44px 24px 54px; }
  .hero .txt { position: static; }
  .hero .txt h1 { font-size: 33px; }
  .hero .txt .sub { font-size: 15px; line-height: 26px; padding: 14px 0 0; }
  .hero .cta.big { width: 200px; height: 60px; font-size: 22px; margin-top: 26px; }

  /* 图文横排改上下排列 */
  .pic-text { padding: 42px 0; }
  .pic-text .row { width: auto; padding: 0 24px; flex-direction: column; gap: 18px; }
  .pic-text .row .pic { order: 1; width: 100%; }
  .pic-text .row .txt { order: 2; text-align: center; }
  .pic-text .pic img, .pic-text .pic svg { width: 78%; margin: 0 auto; }
  .pic-text .pic.right img { margin: 0 auto; }
  .pic-text .txt h3 { font-size: 24px; line-height: 34px; }
  .pic-text .txt p { font-size: 14px; line-height: 24px; margin-top: 10px; color: #888; }
  .sec-head h2 { font-size: 30px; }
  .sec-head .sub { font-size: 15px; padding-top: 10px; }

  /* 页脚 */
  .site-footer { padding: 40px 0 30px; }
  .site-footer .inner { width: auto; padding: 0 22px; }
  .site-footer .cols { flex-wrap: wrap; }
  .site-footer .col-brand { width: 100%; margin: 0 0 26px; }
  .site-footer .col-nav { width: 38%; margin-right: 0; }
  .site-footer .col-list { width: 62%; }
  .site-footer .col-nav .head, .site-footer .col-list .head { margin-bottom: 16px; }
  .site-footer .col-contact { width: 100%; margin: 26px auto 0; }
  .beian { margin-top: 30px; padding-top: 18px; }
  .beian .nums { flex-wrap: wrap; row-gap: 4px; }

  /* 浮动件: 左侧卡片隐藏, 右侧侧栏缩小贴边 */
  .float-gzh { display: none; }
  .float-side { right: 10px; bottom: 14%; }
  .side-item { padding: 7px 6px; }
  .side-item .ico { width: 24px; height: 24px; }
  .side-item > p { font-size: 11px; }
  .side-pop { left: -12px; }
}
