/* MYC V1.7.8 — 手机端独立UI层；不影响桌面样式。 */
@media screen and (max-width: 767px) {
  html,body {max-width:100%;overflow-x:hidden;}
  body > .wrap {
    box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0 auto!important;
    padding:10px 12px calc(84px + env(safe-area-inset-bottom,0px))!important;
  }
  /* 页眉：标题、说明及版本/计数分层，避免窄屏挤压。 */
  body > .wrap > header {
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;justify-content:flex-start!important;
    gap:13px!important;min-width:0!important;
    padding:18px 16px!important;margin:0 0 12px!important;
    border-radius:18px!important;box-sizing:border-box!important;
  }
  body > .wrap > header > div:first-child {
    flex:0 1 auto!important;width:100%!important;min-width:0!important;
  }
  body > .wrap > header h1 {
    max-width:100%!important;font-size:clamp(19px,5.1vw,23px)!important;
    line-height:1.28!important;letter-spacing:-.35px!important;
    margin:0 0 8px!important;white-space:normal!important;
    overflow-wrap:break-word!important;word-break:normal!important;
  }
  body > .wrap > header p {
    margin:0!important;font-size:11.5px!important;line-height:1.65!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    letter-spacing:0!important;
  }
  body > .wrap > header .mycHeaderRight {
    display:flex!important;flex-direction:row!important;
    justify-content:space-between!important;align-items:center!important;
    gap:8px!important;min-width:0!important;width:100%!important;
    flex-wrap:wrap!important;
  }
  .mycHeaderRight #mycWorkbenchVersion {
    flex:0 0 auto!important;font-size:12px!important;
    padding:8px 12px!important;line-height:1!important;
  }
  .mycHeaderRight .mycVisitCounter {
    display:flex!important;flex:0 1 auto!important;min-width:0!important;
    gap:5px!important;align-items:center!important;
    border:1px solid rgba(113,151,218,.24)!important;
    border-radius:10px!important;padding:7px 9px!important;
    background:rgba(10,23,46,.42)!important;
    max-width:100%!important;white-space:normal!important;
    box-shadow:none!important;
  }
  .mycHeaderRight .mycVisitCounterDot {width:6px!important;height:6px!important;}
  .mycHeaderRight .mycVisitCounterLabel {
    font-size:10.5px!important;line-height:1.25!important;
    word-break:keep-all!important;white-space:normal!important;
    color:#b6c4e6!important;
  }
  .mycHeaderRight .mycVisitCounterNum {font-size:15px!important;line-height:1!important;color:#76ead0!important;}
  .mycHeaderRight .mycVisitCounterUnit {font-size:11px!important;line-height:1!important;}
  /* 六个主功能导航：三列两行，不再把每个字竖排。 */
  body > .wrap > nav:not(.mrQuickDock) {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;gap:8px!important;
    width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:0!important;
    box-sizing:border-box!important;padding:0!important;
    margin:0 0 14px!important;overflow:visible!important;
    align-items:stretch!important;justify-items:stretch!important;
  }
  body > .wrap > nav:not(.mrQuickDock) > .tab {
    display:flex!important;justify-content:center!important;align-items:center!important;
    box-sizing:border-box!important;min-width:0!important;width:100%!important;
    max-width:100%!important;min-height:43px!important;height:auto!important;
    padding:10px 4px!important;margin:0!important;
    font-size:clamp(11px,2.8vw,13px)!important;
    line-height:1.25!important;letter-spacing:0!important;
    text-align:center!important;white-space:normal!important;
    word-break:keep-all!important;overflow-wrap:normal!important;
    writing-mode:horizontal-tb!important;
    border-radius:11px!important;box-shadow:none!important;
  }
  body > .wrap > nav:not(.mrQuickDock) > .tab.active {
    background:#6857f2!important;color:white!important;
    box-shadow:0 3px 12px rgba(100,83,234,.19)!important;
  }
  body > .wrap > .panel {
    box-sizing:border-box!important;min-width:0!important;
    max-width:100%!important;width:100%!important;
    padding:12px!important;margin:0!important;
  }
  body > .wrap > .panel .hero,
  body > .wrap > .panel .mweHero,
  body > .wrap > .panel .mrHero {
    min-width:0!important;box-sizing:border-box!important;
  }
  body > .wrap > .panel input,
  body > .wrap > .panel textarea,
  body > .wrap > .panel select {
    max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;
  }
  /* 页面底部版权在所有功能面板之后，且自动两行换行。 */
  body > .wrap > #mycCopyrightFooter {
    display:block!important;position:static!important;clear:both!important;
    box-sizing:border-box!important;width:100%!important;
    margin:25px 0 0!important;padding:18px 3px 12px!important;
    color:#8d9dbd!important;font-size:11px!important;line-height:1.7!important;
    text-align:center!important;transform:none!important;float:none!important;
    overflow-wrap:anywhere!important;
  }
  body > .wrap > #mycCopyrightFooter > div {margin:0 auto 5px!important;max-width:100%!important;}
  /* 二创模块悬浮快捷条：小尺寸，避免覆盖大面积内容。 */
  .mycRemix .mrQuickDock {
    left:8px!important;right:8px!important;bottom:calc(7px + env(safe-area-inset-bottom,0px))!important;
    top:auto!important;transform:none!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:5px!important;width:auto!important;max-width:none!important;
    padding:6px!important;border-radius:13px!important;
    box-sizing:border-box!important;
  }
  .mycRemix .mrQuickDock button {
    min-width:0!important;width:100%!important;min-height:38px!important;
    padding:7px 1px!important;font-size:11px!important;
    font-weight:700!important;line-height:1.25!important;
    border-radius:9px!important;box-shadow:none!important;
  }
}
@media screen and (max-width: 359px) {
  body > .wrap {padding-left:9px!important;padding-right:9px!important;}
  body > .wrap > header {padding:16px 13px!important;}
  body > .wrap > nav:not(.mrQuickDock) {gap:6px!important;}
  body > .wrap > nav:not(.mrQuickDock) > .tab {font-size:10.5px!important;padding:9px 2px!important;}
  .mycHeaderRight .mycVisitCounterLabel {font-size:10px!important;}
}
