/* 同博米元：产品切换（AI CRM / AI 质检）。由 tools/build.py 复制到 site/assets/products/，
   主站中文页和 /aiqc/ 共用。导航里的切换按钮各自沿用所在页面的样式（.nav_link / .nav-product），
   这里只管按钮的复位、下拉面板、首页的产品区块。 */
.pd{position:relative;display:inline-flex;align-items:center}
.pd-toggle{display:inline-flex;align-items:center;gap:.3em;margin:0;padding:0;border:0;background:none;color:inherit;
  font:inherit;letter-spacing:inherit;line-height:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pd-toggle .pd-chev{width:.75em;height:.75em;flex:none;transition:transform .2s}
.pd-toggle[aria-expanded="true"] .pd-chev{transform:rotate(180deg)}
.pd-panel{position:absolute;top:calc(100% + .875rem);left:50%;z-index:60;width:21rem;padding:.5rem;
  transform:translateX(-50%);background:#fff;color:#1c1d1f;border:1px solid rgba(28,29,31,.08);border-radius:1rem;
  box-shadow:0 1px 2px rgba(28,29,31,.06),0 18px 40px -12px rgba(28,29,31,.22);
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  font-size:1rem;line-height:1.4;letter-spacing:0;text-align:left}
.pd-panel[hidden]{display:none}
/* 鼠标移到按钮和面板之间的空隙时不要关上 */
.pd-panel::before{content:"";position:absolute;left:0;right:0;top:-.9rem;height:.9rem}
.pd-panel.pd-left{left:0;transform:none}
.pd-item{display:flex;align-items:center;gap:.875rem;padding:.75rem;border-radius:.75rem;color:inherit;text-decoration:none;transition:background-color .15s}
.pd-item:hover,.pd-item:focus-visible{background:#f5f1eb}
.pd-item[aria-current="page"]{background:#f7f7f7}
.pd-icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;flex:none;border-radius:.75rem}
.pd-icon svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pd-icon.is-crm{background:rgba(249,40,16,.1);color:#f92810}
.pd-icon.is-qc{background:#1c1d1f;color:#fff}
.pd-text{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.pd-text b{font-weight:600;font-size:.975rem;color:#1c1d1f}
.pd-text small{font-size:.8125rem;color:#626366}
.pd-check{width:1.125rem;height:1.125rem;flex:none;fill:none;stroke:#f92810;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.pd-item[aria-current="page"] .pd-check{visibility:visible}

/* 主站（Webflow 导航）：Logo 右边的"AI CRM ▾"胶囊，样式同 /aiqc/ 的"AI 质检 ▾" */
.pd-brand{display:flex;align-items:center;gap:.75rem;position:relative;z-index:2}
.pd-pill.pd-toggle{padding:.15rem .5rem .15rem .6rem;border:1px solid #dfdfdf;border-radius:999px;color:#1c1d1f;
  font-size:.8rem;font-weight:600;line-height:1.4;letter-spacing:0;white-space:nowrap;transition:border-color .2s}
.pd-pill.pd-toggle:hover,.pd-pill.pd-toggle[aria-expanded="true"]{border-color:#a8a8a8}
/* 滚到深色区块时导航变黑（.header_component.is-dark，菜单文字和 Logo 变白），胶囊跟着变白 */
.header_component .pd-pill.pd-toggle{transition:color .3s ease,border-color .3s ease}
.header_component.is-dark .pd-pill.pd-toggle{color:#fff;border-color:rgba(255,255,255,.3)}
.header_component.is-dark .pd-pill.pd-toggle:hover,.header_component.is-dark .pd-pill.pd-toggle[aria-expanded="true"]{border-color:rgba(255,255,255,.65)}
/* 窄屏：面板从 Logo 左边对齐展开（按钮右边放不下 21rem），宽度不超过屏幕 */
@media (max-width:640px){
  .pd-brand .pd,.nav-brand .pd{position:static}
  .nav-brand{position:relative}
  .pd-panel.pd-left{width:min(21rem,calc(100vw - 2.5rem))}
}

/* /aiqc/：按钮沿用 Logo 旁的"AI 质检"胶囊样式，面板左对齐 Logo */
.nav-brand{display:flex;align-items:center;gap:.75rem}
.nav-product.pd-toggle{padding:.15rem .5rem .15rem .6rem;border:1px solid var(--line,#dfdfdf);border-radius:999px;font-size:.8rem;font-weight:600;line-height:1.4}
.nav-product.pd-toggle:hover{border-color:var(--mist,#a8a8a8)}
.nav.is-dark .nav-product.pd-toggle{border-color:rgba(255,255,255,.2)}
.nav-menu a.pd-mobile{display:none}
/* 手机：Logo 旁的切换按钮放不下（原页面在这个宽度也隐藏"AI 质检"标签），改用菜单里的"切换到 AI CRM" */
@media (max-width:479px){.nav-brand .pd{display:none}.nav-menu a.pd-mobile{display:block}}

/* 首页：两款产品 */
.pd-home{padding:1.5rem 5% 2rem;background:#fff}
.pd-home-inner{max-width:72rem;margin:0 auto}
.pd-home-head{max-width:40rem;margin:0 auto 2.5rem;text-align:center}
.pd-home-head h2{margin:0 0 .75rem;font-size:clamp(1.75rem,3.2vw,2.5rem);line-height:1.2;font-weight:700;color:#1c1d1f}
.pd-home-head p{margin:0;color:#626366;font-size:1.0625rem;line-height:1.6}
.pd-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.pd-card{display:flex;flex-direction:column;gap:1rem;padding:2rem;border-radius:1.5rem;border:1px solid #eee0dd;background:#fff;
  color:#1c1d1f;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.pd-card:hover{border-color:#1c1d1f;box-shadow:0 18px 40px -18px rgba(28,29,31,.3);transform:translateY(-2px)}
.pd-card.is-qc{background:#1c1d1f;border-color:#1c1d1f;color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.pd-card.is-qc:hover{border-color:#1c1d1f}
.pd-card .pd-icon{width:3rem;height:3rem;border-radius:.875rem}
.pd-card.is-qc .pd-icon{background:#fff;color:#1c1d1f}
.pd-card h3{margin:0;font-size:1.5rem;line-height:1.25;font-weight:700}
.pd-card .pd-tagline{margin:0;color:#626366;font-size:1rem;line-height:1.6}
.pd-card.is-qc .pd-tagline{color:rgba(255,255,255,.72)}
.pd-card ul{display:flex;flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;font-size:.9375rem}
.pd-card li{display:flex;gap:.5rem;align-items:flex-start}
.pd-card li::before{content:"";width:.375rem;height:.375rem;margin-top:.55em;flex:none;border-radius:50%;background:#f92810}
.pd-more{display:inline-flex;align-items:center;gap:.4rem;margin-top:auto;padding-top:.5rem;font-weight:600}
.pd-more svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.pd-card:hover .pd-more svg{transform:translateX(3px)}
@media (max-width:767px){
  .pd-home{padding:1rem 1rem 1.5rem}
  .pd-home-grid{grid-template-columns:1fr}
  .pd-card{padding:1.5rem}
}
@media (prefers-reduced-motion:reduce){.pd-card,.pd-card:hover,.pd-more svg,.pd-toggle .pd-chev{transition:none;transform:none}}
