/**
 * common.css
 */


/*
 fixed-layout 固定头部和边栏布局
*/
.middle-box {
  margin:0px auto;
  padding-top:100px;
  min-width:400px;
  color:#676A6C;
}
.middle-box h1 {
  font-weight:normal;
  font-size:120px;
  font-family:arial;
}
.success  h1 {
  color:#5CB85C;
}
.error h1 {
  color:#DB2020;
}

.success .desc, .error .desc {
  font-size:16px;
  font-weight:600;
}
.success .skip, .error .skip {
  margin-bottom:10px;
}

/*
div.page1 {
  margin-top: 20px;
  margin-right: 10px;
  float: right;
  color: #666;
}


div.page1 span.current , div.page1 a{
  border: 1px solid yellow;
  display: block;
  float: left;
  font-size: 12px;
  margin-right:5px;
  padding: 3px 10px;
  text-decoration: none;
  border-radius:3px;
}


div.page1 span.current{
  background: #000000 none repeat scroll 0 0 !important;
  border-color: #ff5c5c;
  color: #ffffff !important;
  display: block;
  float: left;
  font-size:12px;
  cursor: pointer;
}
div.page1 a.prev,div.page1 a.next{
  padding: 3px 4px;
}

 */

div.page1 {
  padding-left: 0;
  margin: 1.5rem 0;
  list-style: none;
  color: #999;
  text-align: left;
}

/** 没有被选择时 */
div.page1 span.current , div.page1 a{
  border: 1px solid #999;
  display: block;
  float: left;
  font-size: 12px;
  margin-right:5px;
  padding: 3px 10px;
  text-decoration: none;
  border-radius:3px;
  color: #ffffff !important;
  background: #3f4649 none repeat scroll 0 0 !important;
}

/** 被选中 */
div.page1 span.current{
  background: #0e90d2 none repeat scroll 0 0 !important;
  border-color: #0e90d2;
  color: #ffffff !important;
  display: block;
  float: left;
  font-size:12px;
  cursor: pointer;
}
div.page1 a.prev,div.page1 a.next{
  padding: 3px 4px;
}

/*
 后台首页（App/Admin/View/Index/index.html）专用
 1. 统计卡片整卡可点击 + 悬停反馈
 2. 招牌菜缩略图
 3. 柔和的状态标签（小圆点 + 文字）
*/
.fmf-widget-link,
.fmf-widget-click {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.fmf-widget-link:hover,
.fmf-widget-link:focus {
  color: inherit;
  text-decoration: none;
}
.fmf-widget-link .widget,
.fmf-widget-click .widget {
  transition: box-shadow .2s ease, transform .2s ease;
}
.fmf-widget-link:hover .widget,
.fmf-widget-click:hover .widget {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
  transform: translateY(-2px);
}
.fmf-widget-click:hover .widget-title {
  color: #0e90d2;
}

.fmf-dish-thumb {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  background: #f2f2f2;
}

.fmf-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.fmf-status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.fmf-status-on {
  color: #52c41a;
  background: rgba(82, 196, 26, .12);
}
.fmf-status-off {
  color: #999999;
  background: rgba(0, 0, 0, .06);
}

/* 中性标签：轮播素材的「视频 / 图片」这类分类标记，和状态胶囊同一套尺寸 */
.fmf-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.fmf-tag-video {
  color: #3598dc;
  background: rgba(53, 152, 220, .12);
}
.fmf-tag-image {
  color: #8b949a;
  background: rgba(0, 0, 0, .06);
}

/* 后台列表表格统一对齐（用 tpl-table-black 的页都生效，新增页也自动受益）：
   表头和单元格一律居中，上下严格对齐（不然表头居中、数据靠左，看着是歪的）；
   名称、地址这类长文本列额外挂上 am-text-left，让表头和数据一起左对齐 */
.tpl-table-black > thead > tr > th,
.tpl-table-black > tbody > tr > td {
  text-align: center;
}
.tpl-table-black > thead > tr > th.am-text-left,
.tpl-table-black > tbody > tr > td.am-text-left {
  text-align: left;
}

/* 列表页操作按钮：比原来的细描边小字更醒目、更好点 */
.fmf-actions {
  white-space: nowrap;
  text-align: center;
}
.fmf-actions .fmf-act {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity .2s ease;
}
.fmf-actions .fmf-act:last-child {
  margin-right: 0;
}
.fmf-actions .fmf-act:hover,
.fmf-actions .fmf-act:focus {
  color: #ffffff;
  text-decoration: none;
  opacity: .85;
}
.fmf-actions .fmf-act i {
  margin-right: 4px;
}
.fmf-act-edit {
  background: #3598dc;
}
.fmf-act-toggle {
  background: #f0ad4e;
}
.fmf-act-del {
  background: #e7505a;
}
/* 状态切换按钮：按「点下去会发生什么」上色（不是显示当前状态）
   绿色 = 启用（这条现在是停用的，点它打开）
   橙色 = 停用（这条现在是启用的，点它关掉） */
.fmf-act-on {
  background: #52c41a;
}
.fmf-act-off {
  background: #f0ad4e;
}

/* 列表拖拽排序 */
.fmf-drag-handle {
  width: 44px;
  text-align: center;
  color: #c3c3c3;
  cursor: move;
  font-size: 15px;
  user-select: none;
  -webkit-user-select: none;
}
.fmf-drag-handle:hover {
  color: #3598dc;
}
tr.fmf-dragging,
tr.fmf-dragging > td {
  background: #eaf6fc !important;
  opacity: .85;
}
tr.fmf-sort-tip-row > td {
  border-top: 1px dashed #3598dc;
}
.fmf-sort-tip {
  display: none;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #52c41a;
  background: rgba(82, 196, 26, .12);
}
.fmf-sort-tip-err {
  color: #e7505a;
  background: rgba(231, 80, 90, .12);
}

/* 表单底部按钮：两个按钮尺寸一致，返回列表用黄色 */
.fmf-form-btns .am-btn {
  display: inline-block;
  box-sizing: border-box;
  min-width: 130px;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  margin-right: 12px;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  vertical-align: middle;
}
.fmf-form-btns .am-btn:last-child {
  margin-right: 0;
}
.fmf-form-btns .fmf-btn-warning {
  background: #f0ad4e;
  border: 1px solid #f0ad4e;
  color: #ffffff;
}
.fmf-form-btns .fmf-btn-warning:hover,
.fmf-form-btns .fmf-btn-warning:focus {
  background: #ec971f;
  border-color: #ec971f;
  color: #ffffff;
}

/* 顶部切页 tab：覆盖 AmazeUI 默认的蓝色，改用品牌橙 */
.fmf-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
  border-bottom: 1px solid #ececec;
}
.fmf-tabs > li {
  float: none;
  margin-bottom: -1px;
}
.fmf-tabs > li > a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #6b6b6b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.fmf-tabs > li > a:hover,
.fmf-tabs > li > a:focus {
  color: #FF7A27;
  background: transparent;
  border-bottom-color: #ffc79e;
}
.fmf-tabs > li.am-active > a,
.fmf-tabs > li.am-active > a:hover,
.fmf-tabs > li.am-active > a:focus {
  color: #FF7A27;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid #FF7A27;
}

/* 深色主题（后台默认主题，灰色底）下把切页文字改成浅色，否则深灰字看不见 */
.theme-black .fmf-tabs {
  border-bottom-color: #5b6469;
}
.theme-black .fmf-tabs > li > a {
  color: #cfd5d8;
}
.theme-black .fmf-tabs > li > a:hover,
.theme-black .fmf-tabs > li > a:focus {
  color: #ffa35c;
  border-bottom-color: #7a6a58;
}
.theme-black .fmf-tabs > li.am-active > a,
.theme-black .fmf-tabs > li.am-active > a:hover,
.theme-black .fmf-tabs > li.am-active > a:focus {
  color: #FF7A27;
  border-bottom-color: #FF7A27;
}

/*
 列表页右上角「新增」按钮：绿底白字胶囊
 注意：AmazeUI 有 .theme-black .widget-function a { color:#7b878d } 且 hover 才变白，
 权重比单个类高，所以这里必须 !important 才能压住，否则永远是灰字
*/
.fmf-add-btn,
.fmf-add-btn:link,
.fmf-add-btn:visited {
  color: #ffffff !important;
  background: #5eb95e !important;
  border: 1px solid #5eb95e !important;
  opacity: 1;
  pointer-events: auto;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 18px;
  border-radius: 999px;
}
.fmf-add-btn:hover,
.fmf-add-btn:focus,
.fmf-add-btn:active {
  color: #ffffff !important;
  background: #4aaa4a !important;
  border-color: #4aaa4a !important;
}

/* 深色主题下「未展示」这类灰色标签提亮，避免糊在灰底上 */
.theme-black .fmf-status-off {
  color: #dcdcdc;
  background: rgba(255, 255, 255, .14);
}

/* 表单必填标记（红色胶囊小字） */
.fmf-required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  color: #e7505a;
  background: rgba(231, 80, 90, .12);
  white-space: nowrap;
  vertical-align: middle;
}

/*
 菜品编辑页：左（表单）中（列表预览）右（详情预览）
 预览按 iPhone 17 Pro 逻辑屏 1:1 还原：屏宽 402pt，小程序 750rpx 对应整屏宽，
 所以 1rpx = 402 / 750 = 0.536px，下面的字号/间距都是按这个系数从 scss 的 rpx 值换算来的。
 两屏各自固定 402px 宽，不随浏览器窗口变化。
*/
.fmf-edit-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}
.fmf-edit-form {
  flex: 1 1 320px;
  min-width: 300px;
}
.fmf-pv-group {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 24px;
}
.fmf-pv-item {
  width: 342px;   /* 402 × 0.85，与手机屏缩放后的宽度一致 */
}
.fmf-pv-caption {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd5d8;
}
.fmf-pv-size {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #9aa3a8;
}

/* 手机外壳：iPhone 17 Pro 全尺寸（402 × 874），固定尺寸不随窗口变化 */
.fmf-device {
  position: relative;
  width: 402px;
  height: 874px;
  border-radius: 44px;
  overflow: hidden;   /* 屏内内容按圆角裁切，四角都是圆的（含底边） */
  background: #ffffff;
  box-shadow: 0 0 0 8px #1c1c1e, 0 10px 26px rgba(0, 0, 0, .35);
  zoom: .85;          /* 整体等比缩小 85%，尺寸仍然固定 */
}
/* 状态栏 */
.fmf-device-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 20px 0 32px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}
.fmf-device-icons {
  display: flex;
  align-items: flex-end;
}
.fmf-sig {
  display: inline-block;
  width: 3px;
  margin-right: 2px;
  border-radius: 1px;
  background: #000000;
}
.fmf-sig.s1 {
  height: 4px;
}
.fmf-sig.s2 {
  height: 6px;
}
.fmf-sig.s3 {
  height: 8px;
}
.fmf-sig.s4 {
  height: 10px;
}
.fmf-batt {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 12px;
  margin-left: 6px;
  border: 1px solid rgba(0, 0, 0, .4);
  border-radius: 3px;
}
.fmf-batt::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  right: 5px;
  bottom: 1px;
  border-radius: 1px;
  background: #000000;
}
.fmf-batt::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  border-radius: 0 1px 1px 0;
  background: rgba(0, 0, 0, .4);
}
/* 导航栏（返回 + 标题 + 微信胶囊） */
.fmf-device-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}
.fmf-nav-back {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-left: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
}
.fmf-capsule {
  position: absolute;
  right: 12px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 87px;
  height: 32px;
  margin-top: -16px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
}
.fmf-capsule i {
  display: block;
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: #000000;
}
.fmf-capsule b {
  display: block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid #000000;
  border-radius: 50%;
}
/* 屏内内容区：874 - 状态栏44 - 导航栏44 */
.fmf-device-body {
  height: 786px;
  overflow: hidden;
  background: #ffffff;
}
.fmf-device-body-gray {
  background: #F7F7F7;
}
/* 底部 Home 指示条 */
.fmf-device-homebar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .8);
  z-index: 6;
}

/* 列表里其它菜品卡片：磨砂玻璃效果（模糊 + 半透明白覆盖） */
.fmf-pv-frosted {
  position: relative;
  overflow: hidden;
}
.fmf-pv-frosted > * {
  filter: blur(3px);
  opacity: .85;
}
.fmf-pv-frosted::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* 导航栏上的标注：避让右侧微信胶囊 */
.fmf-pv-badge-nav {
  right: 108px;
}

/*
 所属分类下拉框
 AmazeUI 把原生下拉箭头去掉了（-webkit-appearance:none），且深色主题下文字是深蓝灰，
 在灰底上既看不出是下拉、也看不清内容，这里补箭头 + 提亮文字 + 加交互反馈
*/
.fmf-select {
  padding-right: 36px !important;
  color: #e8ecef !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230e90d2' d='M4 6.2l4 4.6 4-4.6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  border-bottom: 1px solid rgba(14, 144, 210, .5) !important;
  cursor: pointer !important;
}
.fmf-select:hover,
.fmf-select:focus {
  color: #ffffff !important;
  background-color: rgba(14, 144, 210, .1) !important;
  border-bottom-color: #0e90d2 !important;
}
/* 展开的选项列表：必须显式给白底深字，否则会跟着下拉框的颜色走，看不见 */
.fmf-select option {
  color: #2C2C2C;
  background: #ffffff;
}
.theme-white .fmf-select {
  color: #2C2C2C !important;
  border-bottom-color: rgba(14, 144, 210, .4) !important;
}
.theme-white .fmf-select:hover,
.theme-white .fmf-select:focus {
  color: #2C2C2C !important;
  border-bottom-color: #0e90d2 !important;
}

/* 菜品编辑页：菜品图片（缩略图 + 更换按钮） */
.fmf-hidden-file {
  display: none !important;
}
.fmf-pic-field {
  display: flex;
  align-items: center;
}
.fmf-pic-thumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  margin-right: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}
.fmf-pic-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fmf-pic-thumb .fmf-pic-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  font-size: 12px;
  color: #9aa3a8;
}
.fmf-pic-thumb:not(.fmf-pic-has) img {
  display: none;
}
.fmf-pic-thumb.fmf-pic-has .fmf-pic-empty {
  display: none;
}
/* 轮播素材是竖屏：缩略图改成 9:16 竖版 */
.fmf-pic-thumb-tall {
  width: 90px;
  height: 160px;
}
/* 视频没有缩略图，用一个标记代替，避免破图 */
.fmf-pic-thumb.fmf-pic-video::after {
  content: "▶ 视频";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9aa3a8;
}

/* 左侧菜单里暂不开放的项：灰色、不可点 */
.sidebar-nav-link.fmf-nav-closed > a,
.sidebar-nav-link.fmf-nav-closed > a:hover,
.sidebar-nav-link.fmf-nav-closed > a:focus,
.sidebar-nav-link.fmf-nav-closed > a:active {
  color: #7d868c !important;
  background: transparent !important;
  opacity: .5;
  cursor: not-allowed !important;
}
.theme-white .sidebar-nav-link.fmf-nav-closed > a,
.theme-white .sidebar-nav-link.fmf-nav-closed > a:hover,
.theme-white .sidebar-nav-link.fmf-nav-closed > a:focus {
  color: #b3b3b3 !important;
}

/* 门店管理页：取坐标说明 */
.fmf-shop-help {
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(128, 128, 128, .12);
  font-size: 13px;
  line-height: 22px;
  color: #9aa3a8;
}
.fmf-shop-help-title {
  margin-bottom: 6px;
  font-weight: 600;
  color: #cfd5d8;
}
.theme-white .fmf-shop-help-title {
  color: #2C2C2C;
}

/* 表单必填标记：放在输入框右侧，不再挤在字段标题里（那样会把标题撑高、导致整行错位） */
.fmf-field-wrap {
  position: relative;
}
.fmf-field-required {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  color: #e7505a;
  background: rgba(231, 80, 90, .12);
  white-space: nowrap;
  pointer-events: none;
}
.fmf-field-required-input {
  padding-right: 76px !important;
}

/* 门店编辑页：营业时间用起止两个时间选择器 */
.fmf-time-range {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.fmf-time-range input[type="time"] {
  flex: 1;
  min-width: 0;
}
.fmf-time-sep {
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 13px;
  color: #9aa3a8;
}

/* 门店编辑页：坐标操作区（去地图取坐标 + 粘贴整段坐标自动拆分） */
.fmf-coord-ops {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 10px;
}
.fmf-coord-btn {
  flex-shrink: 0;
  display: inline-block;
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  line-height: 30px;
  color: #cfd5d8;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}
.fmf-coord-btn:hover,
.fmf-coord-btn:focus {
  color: #FF7A27;
  border-color: #FF7A27;
  text-decoration: none;
}
.fmf-coord-paste {
  flex: 1;
  min-width: 0;
  height: 32px;
  margin-left: 12px;
  padding: 0 12px;
  font-size: 13px;
  color: inherit;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 6px;
}
.theme-white .fmf-coord-btn {
  color: #6b6b6b;
  border-color: #d8d8d8;
}
.theme-white .fmf-coord-paste {
  border-color: #d8d8d8;
}
.fmf-pic-btn {
  display: inline-block;
  height: 32px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 30px;
  color: #cfd5d8;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}
.fmf-pic-btn:hover,
.fmf-pic-btn:focus {
  color: #FF7A27;
  border-color: #FF7A27;
  text-decoration: none;
}
.fmf-pic-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #9aa3a8;
}
/* 浅色主题适配 */
.theme-white .fmf-pic-thumb {
  background: #f5f7f8;
  border-color: #e5e5e5;
}
.theme-white .fmf-pic-btn {
  color: #6b6b6b;
  border-color: #d8d8d8;
}
.theme-white .fmf-pic-btn:hover,
.theme-white .fmf-pic-btn:focus {
  color: #FF7A27;
  border-color: #FF7A27;
}

/* ① 列表卡片：数值来自 pages/index/index.scss（rpx × 0.536） */
.fmf-pv-panel {
  margin: 21px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 9px 17px rgba(0, 0, 0, .1);
}
.fmf-pv-imgwrap {
  position: relative;
}
.fmf-pv-imgbox {
  position: relative;
  height: 161px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #e4e4e4;
}
.fmf-pv-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fmf-pv-content {
  padding: 19px 21px 21px;
}
.fmf-pv-label {
  margin-bottom: 11px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #717171;
}
.fmf-pv-name {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: bold;
  color: #2C2C2C;
  word-break: break-all;
}
.fmf-pv-intro {
  margin-bottom: 17px;
  font-size: 13px;
  color: #666666;
  word-break: break-all;
}
.fmf-pv-btnwrap {
  display: flex;
  justify-content: center;
}
.fmf-pv-btn {
  min-width: 90px;
  height: 30px;
  padding: 0 17px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  color: #2C2C2C;
  border: 1px solid #2C2C2C;
  border-radius: 15px;
}

/* ② 详情页：数值来自 pages/item_info/index.scss（rpx × 0.536） */
.fmf-pv-navbar {
  position: relative;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
  color: #000000;
  border-bottom: 1px solid #f0f0f0;
}
.fmf-pv-herowrap {
  position: relative;
}
.fmf-pv-hero {
  height: 332px;
  background: #e4e4e4;
  overflow: hidden;
}
.fmf-pv-dbody {
  position: relative;
  margin-top: -21px;
  padding: 0 30px 30px;
  background: #ffffff;
  border-radius: 21px 21px 0 0;
}
.fmf-pv-dlabel {
  padding-top: 30px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #86868B;
  text-align: center;
}
.fmf-pv-dname {
  margin-top: 9px;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: #1D1D1F;
  text-align: center;
}
.fmf-pv-dintro {
  margin-top: 11px;
  font-size: 15px;
  line-height: 23px;
  color: #6E6E73;
  text-align: center;
}
.fmf-pv-ddivider {
  width: 43px;
  height: 2px;
  margin: 30px auto;
  background: #D2D2D7;
  border-radius: 1px;
}
.fmf-pv-ddesc {
  font-size: 16px;
  line-height: 29px;
  color: #424245;
  text-align: justify;
  word-break: break-all;
}

/* 字段标注：贴在元素右上角，不占布局空间 */
.fmf-pv-block,
.fmf-pv-badge-host {
  position: relative;
}
.fmf-pv-center {
  text-align: center;
}
.fmf-pv-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  color: #FF7A27;
  background: #ffffff;
  border: 1px solid rgba(255, 122, 39, .35);
  white-space: nowrap;
  pointer-events: none;
}
.fmf-pv-noimg .fmf-pv-img {
  display: none;
}
.fmf-pv-noimg .fmf-pv-imgbox::after,
.fmf-pv-noimg .fmf-pv-hero::after {
  content: "暂无图片";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a8a8a8;
}
.fmf-pv-empty {
  color: #c4c4c4 !important;
  font-weight: 400 !important;
}

/* 页内确认弹窗（替代原生 confirm，避免被浏览器拦截后「点了没反应」） */
.fmf-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
}
.fmf-modal {
  width: 360px;
  max-width: 86%;
  padding: 26px 24px 20px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .3);
}
.fmf-modal-text {
  font-size: 15px;
  line-height: 24px;
  color: #2C2C2C;
  text-align: center;
  word-break: break-all;
}
.fmf-modal-btns {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.fmf-modal-btn {
  display: inline-block;
  box-sizing: border-box;
  min-width: 110px;
  height: 36px;
  margin: 0 6px;
  font-size: 14px;
  line-height: 36px;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
}
.fmf-modal-btn:hover,
.fmf-modal-btn:focus {
  text-decoration: none;
  opacity: .88;
}
.fmf-modal-cancel {
  color: #6b6b6b;
  background: #f2f2f2;
}
.fmf-modal-ok {
  color: #ffffff;
  background: #e7505a;
}

/* 详情页只读字段（轮播素材详情：只看不改） */
.fmf-detail {
  padding: 2px 0;
}
.fmf-detail-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(128, 128, 128, .22);
}
.fmf-detail-row:last-child {
  border-bottom: 0;
}
.fmf-detail-label {
  flex: 0 0 88px;
  font-size: 14px;
  color: #8b949a;
}
.fmf-detail-value {
  flex: 1;
  font-size: 14px;
  line-height: 22px;
  word-break: break-all;
}

/* 首屏轮播预览：素材铺满整个屏内区域，按 9:16 裁切不变形 */
.fmf-pv-fullwrap {
  position: relative;
  background: #000000;
}
.fmf-pv-full {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}
.fmf-pv-fullwrap.fmf-pv-noimg .fmf-pv-full {
  display: none;
}
.fmf-pv-fullwrap.fmf-pv-noimg::after {
  content: "暂无素材";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a8a8a8;
}

/* 二等分布局（轮播详情页）：左右各占一半，预览在右半区靠左 */
.fmf-edit-layout-even > .fmf-edit-form,
.fmf-edit-layout-even > .fmf-pv-group {
  flex: 1 1 0;
}
.fmf-edit-layout-even > .fmf-pv-group {
  justify-content: flex-start;
}

/* 轮播全屏预览：素材铺满整个屏幕（小程序首屏没有导航栏） */
.fmf-device-screen {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
/* 状态栏浮在素材上层，反白显示，深色浅色素材上都看得清 */
.fmf-device-status-over {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.fmf-device-status-over .fmf-sig {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.fmf-device-status-over .fmf-batt {
  border-color: rgba(255, 255, 255, .85);
}
.fmf-device-status-over .fmf-batt::before {
  background: #ffffff;
}
.fmf-device-status-over .fmf-batt::after {
  background: rgba(255, 255, 255, .85);
}
/* 全屏预览里，标注挪到右下角，免得压住右上角的电量 */
.fmf-device-screen .fmf-pv-badge {
  top: auto;
  bottom: 40px;
  right: 12px;
}