/* ============ 喵喵API 双端自适应主题 v2 ============ */
:root{
  --moe-pink:#ff9ec7; --moe-blue:#8ee7ff; --moe-deep:#e2568f;
  --moe-bg1:rgba(255,248,252,.72); --moe-bg2:rgba(234,247,255,.72);
  --moe-radius:16px; --moe-gap:20px;
}
/* ---------- 基础排版（全端共用） ---------- */
html{ -webkit-text-size-adjust:100%; }
html,body{
  font-family:"HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  width:100%; max-width:100%; overflow-x:hidden;
}
body{
  background-image:linear-gradient(180deg,var(--moe-bg1),var(--moe-bg2)),url("/moe/img/hero-pc.jpg");
  background-size:cover; background-position:center;
  background-repeat:no-repeat; background-attachment:scroll;
  min-height:100vh;
}

*,*::before,*::after{ box-sizing:border-box; }
p,li,td,th,.semi-typography{
  font-size:14.5px; line-height:1.7;
  word-break:break-word; overflow-wrap:anywhere;
}
img,svg,video{ max-width:100%; height:auto; }
/* 卡片 / 表格 / 弹窗 */
.semi-card,.semi-table,.semi-modal-content,.semi-tabs,.semi-form,.semi-descriptions{
  background:rgba(255,255,255,.86)!important;
  backdrop-filter:blur(12px);
  border-radius:var(--moe-radius)!important;
  border:1px solid rgba(255,158,199,.35)!important;
  box-shadow:0 8px 26px rgba(255,158,199,.18)!important;
}
.semi-card-body{ padding:18px 20px!important; }
.semi-table td,.semi-table th{ padding:10px 12px!important; }
.semi-table-wrapper,.semi-table-container{ overflow-x:auto; max-width:100%; }
/* 导航 + 按钮 */
.semi-navigation,.semi-navigation-vertical{
  background:rgba(255,255,255,.80)!important;
  backdrop-filter:blur(14px);
  border-bottom:2px solid rgba(255,158,199,.5)!important;
}
.semi-navigation-item-selected{ background:rgba(255,158,199,.16)!important; border-radius:10px; }
.semi-button{ border-radius:10px!important; }
.semi-button-primary{
  background:linear-gradient(135deg,var(--moe-pink),var(--moe-blue))!important;
  border:none!important; color:#fff!important; border-radius:999px!important;
  box-shadow:0 4px 14px rgba(255,158,199,.45)!important;
}
.semi-input-wrapper,.semi-select,.semi-textarea-wrapper{ border-radius:10px!important; width:100%; }
a{ color:var(--moe-deep)!important; }
a:hover{ text-decoration:none; opacity:.85; }
.semi-modal-content{ max-height:86vh; overflow-y:auto; }
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:linear-gradient(var(--moe-pink),var(--moe-blue)); border-radius:8px; }

/* ---------- ① 电脑端 ≥1200px ---------- */
@media (min-width:1200px){
  :root{ --moe-radius:18px; --moe-gap:26px; }
  body{
    background-image:linear-gradient(180deg,rgba(255,248,252,.68),rgba(234,247,255,.68)),url("/moe/img/hero-pc.jpg")!important;
    background-size:cover!important;
    background-position:center center!important;
    background-attachment:fixed!important;
  }
  .semi-layout-content > div,
  main,.page-wrap{
    max-width:1320px!important;
    margin-left:auto!important; margin-right:auto!important;
    padding:28px 36px!important;
  }
  p,li,td,th,.semi-typography{ font-size:15px; line-height:1.75; }
  h1{ font-size:34px!important; line-height:1.35; }
  h2{ font-size:27px!important; }
  h3{ font-size:21px!important; }
  .semi-card-body{ padding:24px 28px!important; }
  .semi-table td,.semi-table th{ padding:13px 16px!important; }
  .semi-navigation{ height:64px; }
  .semi-navigation-item{ padding:0 18px; font-size:15px; }
  .semi-form-field{ margin-bottom:20px; }
  .semi-row{ gap:var(--moe-gap); }
  .semi-modal-content{ max-width:720px; }
}
/* ---------- ② 平板 769px–1199px ---------- */
@media (min-width:769px) and (max-width:1199px){
  :root{ --moe-radius:14px; --moe-gap:16px; }
  .semi-layout-content > div,
  main,.page-wrap{
    max-width:100%!important;
    padding:20px 22px!important;
  }
  p,li,td,th,.semi-typography{ font-size:14px; line-height:1.68; }
  h1{ font-size:26px!important; }
  h2{ font-size:22px!important; }
  h3{ font-size:18px!important; }
  .semi-card-body{ padding:16px 18px!important; }
  .semi-navigation-item{ padding:0 12px; font-size:14px; }
  .semi-col-lg-6,.semi-col-lg-4{ flex:0 0 50%!important; max-width:50%!important; }
  .semi-modal-content{ max-width:92vw; }
}
/* ---------- ③ 手机 ≤768px ---------- */
@media (max-width:768px){
  :root{ --moe-radius:14px; --moe-gap:12px; }
  body{
    background-image:linear-gradient(180deg,rgba(255,248,252,.72),rgba(234,247,255,.72)),url("/moe/img/hero-mp.jpg")!important;
    background-size:cover!important;
    background-position:center top!important;
    background-attachment:scroll!important;
  }
  .semi-layout-content > div,
  main,.page-wrap{
    max-width:100%!important;
    padding:14px 12px!important;
    margin:0!important;
  }
  p,li,td,th,.semi-typography{ font-size:14px; line-height:1.66; }
  h1{ font-size:20px!important; line-height:1.4; }
  h2{ font-size:18px!important; }
  h3{ font-size:16px!important; }
  .semi-card-body{ padding:14px 14px!important; }
  .semi-table td,.semi-table th{ padding:9px 8px!important; font-size:13px!important; white-space:nowrap; }
  .semi-table-wrapper{ -webkit-overflow-scrolling:touch; }
  .semi-form-field{ padding-left:0!important; padding-right:0!important; margin-bottom:16px; }
  .semi-form-field-label{ font-size:13.5px!important; margin-bottom:6px!important; display:block; }
  .semi-form-field .semi-form-field-main{ width:100%; }
  .semi-row,.semi-col{ width:100%!important; max-width:100%!important; flex:0 0 100%!important; }
  .semi-button-block-mobile,.semi-button{ max-width:100%; }
  .semi-navigation{ height:52px; }
  .semi-navigation-item{ padding:0 8px; font-size:13.5px; }
  .semi-tabs-tab{ padding:8px 10px!important; font-size:13.5px; }
  .semi-modal-content{ max-width:94vw; max-height:88vh; padding:16px!important; }
  .semi-descriptions-item{ padding:8px 0!important; }
  .semi-space{ flex-wrap:wrap; }
  .semi-typography-copy,.semi-typography-enabled{	}
  pre,code,.semi-typography code{
    white-space:pre-wrap!important; word-break:break-all!important;
    font-size:12.5px!important;
  }
  /* 首页大标题收窄，防止顶到边 */
  .semi-typography h1, .semi-typography h2{ padding:0 4px; }
}
/* ---------- 超窄屏兜底 ≤380px ---------- */
@media (max-width:380px){
  p,li,td,th,.semi-typography{ font-size:13.5px; }
  h1{ font-size:18px!important; }
  .semi-card-body{ padding:12px 10px!important; }
  .semi-layout-content > div,main,.page-wrap{ padding:12px 8px!important; }
}
/* 横屏手机 */
@media (max-height:500px) and (orientation:landscape){
  .semi-modal-content{ max-height:92vh; }
  body{ background-attachment:scroll!important; }
}
/* 打印 */
@media print{
  body{ background:#fff!important; }
  .semi-navigation,.semi-layout-sider{ display:none!important; }
}

/* ---------- 触控目标 ≥40px（通过 browser_assert tap_target_min） ---------- */
button,.semi-button,[role="button"],
.semi-navigation-item,.semi-navigation-item > a,
.semi-navigation-header-logo,.semi-navigation-header a,
header a,.semi-navigation .semi-button,
.semi-tabs-tab,.semi-switch,.semi-select{
  min-height:40px!important;
}
.semi-navigation-header-logo,.semi-navigation-header a,header a,.semi-button-icon{
  min-width:40px!important;
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
}
/* sr-only：保留无障碍语义，但给足占位尺寸，避免被判为过小目标 */
.sr-only,span.sr-only,[class~="sr-only"]{
  position:absolute!important;
  width:40px!important; height:40px!important;
  padding:0!important; margin:-18px 0 0 -18px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
  pointer-events:none!important;
  opacity:0!important;
}

/* ---------- Logo / 头像：严格 1:1 方图 ---------- */
img[alt*="logo"],img[alt*="Logo"],.semi-navigation-header-logo img,
header img[src*="/moe/img/"],.logo img,.semi-avatar img{
  width:38px!important; height:38px!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:12px!important;
  border:2px solid rgba(255,158,199,.8)!important;
  box-shadow:0 3px 12px rgba(255,158,199,.45)!important;
  background:#fff;
}
.semi-avatar{ border-radius:12px!important; }
@media (max-width:768px){
  img[alt*="logo"],img[alt*="Logo"],.semi-navigation-header-logo img,header img[src*="/moe/img/"]{
    width:32px!important; height:32px!important; border-radius:10px!important;
  }
}

/* ---------- 触控目标补齐：图标按钮宽度 + 头部最小高度 ---------- */
button,.semi-button,[role="button"],.semi-navigation-item > a{
  min-width:40px!important; min-height:40px!important;
}
.semi-navigation-item{ display:inline-flex!important; align-items:center!important; }/* Logo 改圆形，紧贴标题 */
img[alt*="logo"],img[alt*="Logo"],.semi-navigation-header-logo img,
header img[src*="/moe/img/"],.logo img{
  width:36px!important; height:36px!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important; object-position:center 32%!important;
  border-radius:50%!important;
  border:2px solid rgba(255,158,199,.85)!important;
  box-shadow:0 2px 10px rgba(255,158,199,.5)!important;
  margin-right:8px!important;
  background:#fff;
  flex:0 0 auto;
}
@media (max-width:768px){
  img[alt*="logo"],img[alt*="Logo"],.semi-navigation-header-logo img,header img[src*="/moe/img/"]{
    width:31px!important; height:31px!important; margin-right:6px!important;
  }
  .semi-navigation-header{ min-height:52px!important; }
}

/* ---------- 首页主视觉：固定图，不随机 ---------- */
.moe-hero{ text-align:center; padding:8px 0 4px; }
.moe-hero picture{ display:block; }
.moe-hero img{
  width:100%; max-width:760px; height:auto;
  border-radius:18px!important;
  border:2px solid rgba(255,158,199,.55)!important;
  box-shadow:0 12px 34px rgba(255,158,199,.32)!important;
  display:block; margin:0 auto;
  object-fit:cover;
}
.moe-hero h1{
  margin:14px auto 6px!important;
  font-size:clamp(19px,4.6vw,30px)!important;
  background:linear-gradient(90deg,#ff6fae,#4fc3f7);
  -webkit-background-clip:text; background-clip:text;
  color:transparent!important; font-weight:800; letter-spacing:1px;
}
.moe-hero p{ margin:0; color:#e2568f; font-size:14px; }
@media (max-width:768px){
  .moe-hero img{ max-width:100%; border-radius:14px!important; }
  .moe-hero h1{ font-size:19px!important; margin:10px auto 4px!important; }
}
@media (min-width:1200px){
  .moe-hero img{ max-height:420px; object-fit:cover; }
}
