/* ============================================================
   MaoMoMo Theme — 活泼可爱猫咪风
   ============================================================ */

/* ---------- 设计令牌：暖橙 + 白（少量灰） ---------- */
:root {
    /* 暖白底色 */
    --mm-bg:        #FFFFFF;       /* 主背景：纯白 */
    --mm-bg-2:      #FFF8F1;       /* 次级背景：暖白（极淡橙） */
    --mm-bg-3:      #FFEDD5;       /* 第三层：浅橙 */
    --mm-surface:   #FFFFFF;

    /* 文字（保留石墨深灰，正文可读性） */
    --mm-ink:       #1F2937;       /* 主文字 */
    --mm-ink-soft:  #57534E;       /* 次要文字（偏暖灰） */
    --mm-muted:     #A8A29E;       /* 辅助/时间戳（偏暖灰） */

    /* 描边：暖色调 */
    --mm-border:    #FBE7CF;       /* 暖浅橙边 */
    --mm-border-2:  #F5D0A6;       /* 暖中橙边 */

    /* 主色：橙系 */
    --mm-primary:   #F97316;       /* 主橙 */
    --mm-primary-d: #C2410C;       /* 深橙：用于链接/hover */
    --mm-primary-l: #FFEDD5;       /* 极浅橙：tag/标签底 */

    /* 兼容旧变量：让原本多色装饰统一收敛到橙阶 */
    --mm-mint:      #FB923C;       /* 浅橙替代薄荷 */
    --mm-mint-2:    #FFEDD5;
    --mm-pink:      #C2410C;       /* 深橙替代粉 */
    --mm-pink-2:    #FED7AA;
    --mm-yellow:    #FED7AA;       /* 浅橙替代奶黄 */
    --mm-yellow-2:  #FFF7ED;       /* 比 bg 暖一点 */
    --mm-violet:    #9A3412;       /* 焦糖橙替代紫 */

    --mm-radius-sm: 8px;
    --mm-radius:    14px;
    --mm-radius-lg: 20px;
    --mm-radius-xl: 28px;

    --mm-shadow-sm: 0 1px 2px rgba(154, 52, 18, .05), 0 1px 3px rgba(154, 52, 18, .07);
    --mm-shadow:    0 4px 14px rgba(154, 52, 18, .08), 0 2px 4px rgba(154, 52, 18, .05);
    --mm-shadow-lg: 0 18px 40px rgba(154, 52, 18, .14), 0 4px 12px rgba(154, 52, 18, .08);

    --mm-font-sans: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

    --mm-container: 1200px;
}

/* ---------- 全局基础 ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    overflow-x: clip;
    max-width: 100vw;
    font-family: var(--mm-font-sans);
    color: var(--mm-ink);
    background: var(--mm-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 8% 0%, rgba(249,115,22,.10) 0, transparent 40%),
        radial-gradient(circle at 100% 6%, rgba(251,146,60,.08) 0, transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(255,237,213,.6) 0, transparent 50%);
    background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mm-primary-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mm-primary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--mm-font-sans); font-weight: 800; color: var(--mm-ink); line-height: 1.3; margin: 0 0 .6em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--mm-primary-l); color: var(--mm-ink); }

.mm-sr { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mm-skip { position:absolute; left:-9999px; top:0; background:var(--mm-ink); color:#fff; padding:8px 14px; border-radius:0 0 12px 0; z-index:9999; }
.mm-skip:focus { left:0; }

/* ---------- 容器 ---------- */
.mm-wrap { max-width: var(--mm-container); margin: 0 auto; padding: 32px 20px 64px; }
.mm-wrap--cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .mm-wrap--cols { grid-template-columns: 1fr; } }

/* ---------- 爪印 ---------- */
.mm-paw {
    display: inline-block;
    width: 22px; height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23F97316'><circle cx='8' cy='10' r='3.2'/><circle cx='16' cy='6' r='3.2'/><circle cx='24' cy='10' r='3.2'/><circle cx='6' cy='18' r='2.6'/><circle cx='26' cy='18' r='2.6'/><path d='M16 14c-5 0-9 4-9 8 0 4 4 6 9 6s9-2 9-6c0-4-4-8-9-8z'/></svg>");
    background-size: contain; background-repeat: no-repeat;
}
.mm-paw--lg { width: 36px; height: 36px; }

/* ---------- 头部 ---------- */
.mm-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--mm-border);
}
.mm-header__inner { max-width: var(--mm-container); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.mm-brand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--mm-ink); }
.mm-brand__link:hover { color: var(--mm-ink); }
.mm-brand__cat {
    width: 48px; height: 48px;
    background: var(--mm-bg-2);
    border: 1px solid var(--mm-border);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--mm-shadow-sm);
    transition: transform .3s;
}
.mm-brand__cat svg { width: 38px; height: 38px; }
.mm-brand__link:hover .mm-brand__cat { transform: rotate(-8deg) scale(1.05); }
.mm-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.mm-brand__text strong { font-size: 22px; letter-spacing: .5px; }
.mm-brand__text em { font-style: normal; font-size: 12px; color: var(--mm-muted); margin-top: 4px; }

.mm-nav { flex: 1; display: flex; justify-content: center; }
.mm-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.mm-menu a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--mm-ink-soft);
    font-weight: 600;
    border-radius: 999px;
    transition: all .2s;
}
.mm-menu a:hover { color: var(--mm-ink); background: var(--mm-yellow-2); }
.mm-menu .current-menu-item > a,
.mm-menu .current_page_item > a,
.mm-menu .current-menu-ancestor > a { background: var(--mm-primary); color: #fff; }
.mm-menu li { position: relative; }
.mm-menu .sub-menu {
    position: absolute; top: 100%; left: 0;
    list-style: none; padding: 8px; margin: 8px 0 0;
    background: #fff; border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    min-width: 260px;
    max-width: min(360px, 80vw);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s;
    z-index: 30;
}
/* 防止溢出右侧屏幕：右侧菜单项的子菜单从右对齐 */
.mm-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.mm-menu li:hover > .sub-menu,
.mm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
}
/* 三级及以上菜单：横向展开 */
.mm-menu .sub-menu .sub-menu { top: -8px; left: 100%; margin: 0 0 0 6px; }
.mm-menu > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; margin: 0 6px 0 0; }

.mm-nav__toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--mm-border-2);
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    flex-direction: column; justify-content: space-between; align-items: stretch;
}
.mm-nav__toggle span { display: block; width: 100%; height: 2px; background: var(--mm-ink); border-radius: 2px; }

.mm-header__tools { display: flex; gap: 8px; }
.mm-search-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--mm-border-2);
    background: #fff;
    color: var(--mm-ink-soft);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.mm-search-toggle:hover { background: var(--mm-yellow); color: var(--mm-ink); transform: rotate(-10deg); }

.mm-search-panel { border-top: 1px solid var(--mm-border); padding: 14px 20px; background: #fff; }
.mm-search-panel[hidden] { display: none; }

@media (max-width: 880px) {
    .mm-header__inner { gap: 12px; padding: 10px 16px; }

    /* 品牌行压缩：去掉副标题 + 缩小头像 */
    .mm-brand { flex: 1 1 0; min-width: 0; }
    .mm-brand__link { gap: 10px; }
    .mm-brand__cat { width: 40px; height: 40px; flex-shrink: 0; }
    .mm-brand__cat svg { width: 32px; height: 32px; }
    .mm-brand__text { min-width: 0; overflow: hidden; }
    .mm-brand__text strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mm-brand__text em { display: none; }

    .mm-nav__toggle { display: inline-flex; flex-shrink: 0; }
    /* 顺序：品牌 | 搜索 | 汉堡 */
    .mm-header__tools { order: 2; flex-shrink: 0; }
    .mm-nav { order: 3; position: static; flex: 0 0 auto; width: auto; }

    /* 菜单：绝对定位下拉抽屉，左右留边 */
    .mm-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px); left: 12px; right: 12px;
        flex-direction: column;
        gap: 2px;
        margin: 0; padding: 12px;
        background: #fff;
        border: 1px solid var(--mm-border);
        border-radius: var(--mm-radius);
        box-shadow: var(--mm-shadow);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        z-index: 49;
    }
    .mm-menu::before {
        content: "";
        position: absolute;
        top: -7px; right: 22px;
        width: 12px; height: 12px;
        background: #fff;
        border-left: 1px solid var(--mm-border);
        border-top: 1px solid var(--mm-border);
        transform: rotate(45deg);
    }
    .mm-nav.is-open .mm-menu { display: flex; }
    .mm-menu > li > a {
        padding: 12px 14px; border-radius: 12px; font-size: 15px;
        background: transparent;
    }
    .mm-menu > li + li { border-top: 1px dashed var(--mm-border); padding-top: 2px; margin-top: 2px; }
    .mm-menu > li > a:hover,
    .mm-menu .sub-menu a:hover { background: var(--mm-yellow-2); color: var(--mm-ink); }
    .mm-menu .current-menu-item > a,
    .mm-menu .current_page_item > a { background: var(--mm-primary); color: #fff; }

    /* 子菜单：内嵌缩进，去除浮层样式 */
    .mm-menu .sub-menu,
    .mm-menu .sub-menu .sub-menu {
        position: static;
        inset: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        opacity: 1; visibility: visible;
        transform: none;
        padding: 2px 0 6px 14px;
        margin: 0;
        min-width: 0;
        max-width: none;
        width: 100%;
    }
    .mm-menu .sub-menu a { padding: 8px 12px; font-size: 14px; }

    /* 搜索面板：移动端略加紧凑 */
    .mm-search-panel { padding: 12px 16px; }
}

@media (max-width: 480px) {
    .mm-header__inner { padding: 10px 14px; gap: 10px; }
    .mm-search-toggle, .mm-nav__toggle { width: 38px; height: 38px; }
}

/* ---------- 搜索表单 ---------- */
.mm-search {
    position: relative;
    max-width: 560px; margin: 0 auto;
    display: flex; align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    box-shadow: var(--mm-shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mm-search:hover { border-color: var(--mm-border-2); }
.mm-search:focus-within {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .15), var(--mm-shadow-sm);
}
.mm-search__icon {
    color: var(--mm-muted);
    display: inline-flex;
    flex-shrink: 0;
    transition: color .2s;
}
.mm-search:focus-within .mm-search__icon { color: var(--mm-primary); }
.mm-search__input {
    flex: 1; min-width: 0;
    /* 关键：去掉浏览器搜索框默认外观（WebKit 会自带圆角白条 + 清除按钮） */
    appearance: none;
    -webkit-appearance: none;
    border: 0; outline: 0; background: transparent;
    padding: 10px 4px;
    font: inherit;
    font-size: 15px;
    color: var(--mm-ink);
    line-height: 1.4;
}
.mm-search__input::placeholder { color: var(--mm-muted); }
.mm-search__input::-webkit-search-cancel-button,
.mm-search__input::-webkit-search-decoration,
.mm-search__input::-webkit-search-results-button,
.mm-search__input::-webkit-search-results-decoration { display: none; -webkit-appearance: none; }
.mm-search__input::-ms-clear { display: none; }

.mm-search__btn {
    border: 0;
    background: var(--mm-primary);
    color: #fff; font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, .25);
    transition: background .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.mm-search__btn:hover {
    background: var(--mm-primary-d);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(249, 115, 22, .35);
}
.mm-search__btn:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.mm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--mm-bg-2) 0%, var(--mm-bg) 100%);
    border-bottom: 1px solid var(--mm-border);
    padding: 32px 20px 12px;
}
.mm-hero__inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 32px; align-items: center;
    padding: 32px 0;
    position: relative; z-index: 1;
}
.mm-hero__eyebrow {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--mm-border-2);
    padding: 6px 14px; border-radius: 999px;
    font-size: 13px; color: var(--mm-ink-soft); font-weight: 600;
    margin: 0 0 18px; box-shadow: var(--mm-shadow-sm);
}
.mm-hero__title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15; letter-spacing: -.5px;
    margin: 0 0 18px;
}
.mm-hero__hl { background: linear-gradient(120deg, transparent 0 60%, var(--mm-yellow) 60% 100%); padding: 0 6px; }
.mm-hero__sub { font-size: 18px; color: var(--mm-ink-soft); margin: 0 0 24px; max-width: 520px; }
.mm-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.mm-hero__art { position: relative; }
.mm-hero__art svg {
    width: 100%; height: auto; max-width: 460px; margin-left: auto;
    filter: drop-shadow(0 14px 32px rgba(17,24,39,.10));
    animation: mm-bob 6s ease-in-out infinite;
}
@keyframes mm-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.mm-hero__bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.mm-hero__bubbles span {
    position: absolute; width: 14px; height: 14px;
    border-radius: 50%; background: var(--c);
    opacity: .35;
    animation: mm-float 8s ease-in-out infinite;
}
.mm-hero__bubbles span:nth-child(1) { left: 6%;  top: 18%; animation-delay: 0s; width: 18px; height: 18px; }
.mm-hero__bubbles span:nth-child(2) { left: 18%; top: 70%; animation-delay: 1.2s; }
.mm-hero__bubbles span:nth-child(3) { left: 80%; top: 30%; animation-delay: 2.4s; width: 22px; height: 22px; }
.mm-hero__bubbles span:nth-child(4) { left: 92%; top: 75%; animation-delay: 3.6s; }
@keyframes mm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

@media (max-width: 820px) {
    .mm-hero__inner { grid-template-columns: 1fr; }
    .mm-hero__art { display: none; }
}

/* ---------- 分类入口条 ---------- */
.mm-strip { max-width: var(--mm-container); margin: 8px auto 0; padding: 0 20px; }
.mm-strip__inner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.mm-strip--cols-8 .mm-strip__inner { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1100px) {
    .mm-strip--cols-8 .mm-strip__inner { grid-template-columns: repeat(8, 1fr); gap: 10px; }
    .mm-strip--cols-8 .mm-strip__text strong { font-size: 14px; }
    .mm-strip--cols-8 .mm-strip__text em { font-size: 11px; }
}
.mm-strip__item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    color: var(--mm-ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.mm-strip__item:hover {
    color: var(--mm-ink);
    transform: translateY(-3px);
    border-color: var(--mm-yellow);
    box-shadow: 0 10px 24px rgba(255,155,106,.16);
}
.mm-strip__icn {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 4px 12px rgba(45,42,38,.10);
}
.mm-strip__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mm-strip__text strong { font-size: 15.5px; }
.mm-strip__text em { font-style: normal; font-size: 12px; color: var(--mm-muted); margin-top: 4px; }
@media (max-width: 880px) { .mm-strip__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mm-strip__inner { grid-template-columns: 1fr; } }

/* ---------- 按钮 ---------- */
.mm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 700; border: 2px solid transparent;
    transition: all .2s; text-decoration: none;
}
.mm-btn--primary {
    background: var(--mm-primary); color: #fff;
    box-shadow: 0 6px 18px rgba(255,155,106,.45);
}
.mm-btn--primary:hover { color: #fff; background: var(--mm-primary-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,155,106,.55); }
.mm-btn--ghost { background: #fff; color: var(--mm-ink); border-color: var(--mm-border-2); }
.mm-btn--ghost:hover { color: var(--mm-ink); background: var(--mm-yellow-2); border-color: var(--mm-yellow); }

/* ---------- Section Head ---------- */
.mm-section-head { margin: 8px 0 22px; }
.mm-section-head__title { font-size: 28px; margin: 0; display: inline-flex; align-items: center; }
.mm-section-head__sub { color: var(--mm-muted); margin: 4px 0 0; font-size: 15px; }

/* ---------- 文章卡片网格 ---------- */
.mm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.mm-card {
    background: var(--mm-surface);
    border-radius: var(--mm-radius-lg);
    border: 1px solid var(--mm-border);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.mm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mm-shadow);
    border-color: var(--mm-yellow);
}
.mm-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mm-bg-2);
}
.mm-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mm-card:hover .mm-card__img { transform: scale(1.06) rotate(.5deg); }
.mm-card__img--ph { object-fit: cover; }

.mm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mm-card__title { font-size: 19px; line-height: 1.4; margin: 0; }
.mm-card__title a { color: var(--mm-ink); }
.mm-card__title a:hover { color: var(--mm-primary-d); }
.mm-card__excerpt { color: var(--mm-ink-soft); font-size: 14px; margin: 0; }
.mm-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; color: var(--mm-muted); font-size: 13px;
}
.mm-card__read::before { content: "🐾 "; }

/* ---------- 分类徽章 ---------- */
.mm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-pill {
    --pill: #F97316;
    display: inline-block;
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    color: var(--pill);
    background: color-mix(in srgb, var(--pill) 14%, white);
    border: 1px solid color-mix(in srgb, var(--pill) 28%, white);
    transition: all .2s;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .mm-pill { background: var(--mm-yellow-2); border-color: var(--mm-border-2); color: var(--mm-ink); }
}
.mm-pill:hover { color: #fff; background: var(--pill); border-color: var(--pill); }

/* ---------- Sidebar ---------- */
.mm-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.mm-widget {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-lg);
    padding: 18px 20px 20px;
}
.mm-widget__title { margin: 0 0 12px; font-size: 17px; display: flex; align-items: center; }
.mm-widget ul { list-style: none; padding: 0; margin: 0; }
.mm-widget li { padding: 8px 0; border-bottom: 1px dashed var(--mm-border); }
.mm-widget li:last-child { border-bottom: 0; }
.mm-widget a { color: var(--mm-ink-soft); font-weight: 500; }
.mm-widget a:hover { color: var(--mm-primary-d); }
.mm-widget select { width: 100%; padding: 10px 12px; border: 1px solid var(--mm-border-2); border-radius: 12px; background: #fff; }
.mm-widget input[type="text"], .mm-widget input[type="search"], .mm-widget input[type="email"] {
    width: 100%; padding: 10px 14px; border: 1px solid var(--mm-border-2);
    border-radius: 999px; background: #fff; outline: none;
    font-family: inherit; font-size: 14px;
}
.mm-widget input:focus { border-color: var(--mm-primary); }

/* 标签云：放开 WP 内联字号（按热度自动从小到大），高频标签自然更醒目 */
.mm-widget .tagcloud { line-height: 1.9; }
.mm-widget .tagcloud a {
    display: inline-block;
    margin: 5px 4px 0 0;
    padding: .3em .85em;            /* em：字号大的标签会同步获得更大胶囊 */
    border-radius: 999px;
    background: var(--mm-yellow-2);
    border: 1px solid var(--mm-border);
    color: var(--mm-ink-soft) !important;
    font-weight: 600;
    line-height: 1.5;
    transition: all .18s;
}
.mm-widget .tagcloud a:hover {
    background: var(--mm-primary);
    border-color: var(--mm-primary);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, .25);
}
/* 热门标签（最热的两档，字号最大）：换浅橙底 + 深橙字加重，与普通标签拉开层级 */
.mm-widget .tagcloud a[style*="15px"],
.mm-widget .tagcloud a[style*="16px"] {
    background: var(--mm-primary-l);
    border-color: var(--mm-border-2);
    color: var(--mm-primary-d) !important;
    font-weight: 800;
}

/* 日历小工具 */
.mm-widget_calendar .calendar_wrap,
.mm-widget #wp-calendar { width: 100%; }
.mm-widget #wp-calendar {
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
    margin: 4px -4px 0;
    width: calc(100% + 8px);
    font-variant-numeric: tabular-nums;
}
.mm-widget #wp-calendar caption {
    caption-side: top;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--mm-ink);
    padding: 4px 0 12px;
    letter-spacing: .5px;
}
.mm-widget #wp-calendar thead th {
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--mm-muted);
    background: transparent;
    border: 0;
    text-align: center;
}
.mm-widget #wp-calendar thead th:nth-child(6),
.mm-widget #wp-calendar thead th:nth-child(7) { color: var(--mm-pink); }
.mm-widget #wp-calendar tbody td {
    text-align: center;
    padding: 0;
    height: 34px;
    vertical-align: middle;
    border: 0;
    color: var(--mm-ink-soft);
    font-size: 13.5px;
    border-radius: 10px;
    background: var(--mm-bg-2);
    transition: background .18s, color .18s, transform .18s;
}
.mm-widget #wp-calendar tbody td.pad,
.mm-widget #wp-calendar tbody td[colspan] { background: transparent; }
.mm-widget #wp-calendar tbody td:not(.pad):not([colspan]):hover { background: var(--mm-yellow-2); color: var(--mm-ink); }
.mm-widget #wp-calendar tbody td a {
    display: block;
    width: 100%; height: 100%;
    line-height: 34px;
    color: var(--mm-primary-d);
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--mm-primary);
    border-radius: 10px;
    text-decoration: none;
}
.mm-widget #wp-calendar tbody td a:hover {
    background: var(--mm-primary);
    color: #fff;
    transform: translateY(-1px);
}
.mm-widget #wp-calendar tbody td#today {
    background: var(--mm-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255,155,106,.4);
}
.mm-widget #wp-calendar tbody td#today a {
    background: transparent;
    border-color: transparent;
    color: #fff;
}
.mm-widget .wp-calendar-nav {
    display: flex; justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
}
.mm-widget .wp-calendar-nav a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--mm-bg-2);
    color: var(--mm-ink-soft);
    font-weight: 700;
    transition: background .2s, color .2s;
}
.mm-widget .wp-calendar-nav a:hover { background: var(--mm-primary); color: #fff; }
.mm-widget .wp-calendar-nav-prev { margin-right: auto; }
.mm-widget .wp-calendar-nav-next { margin-left: auto; }

/* 最新文章/最新评论列表 */
.mm-widget_recent_entries li,
.mm-widget_recent_comments li,
.mm-widget_archive li,
.mm-widget_categories li,
.mm-widget_meta li,
.mm-widget_pages li { padding-left: 18px; position: relative; }
.mm-widget_recent_entries li::before,
.mm-widget_recent_comments li::before,
.mm-widget_archive li::before,
.mm-widget_categories li::before,
.mm-widget_meta li::before,
.mm-widget_pages li::before {
    content: "🐾"; position: absolute; left: 0; top: 8px; font-size: 12px;
}

/* 层级（子分类 / 子页面 / 子菜单） */
.mm-widget .children,
.mm-widget .sub-menu {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 14px;
    border-left: 1px dashed var(--mm-border-2);
}
.mm-widget .children li,
.mm-widget .sub-menu li {
    padding: 6px 0 6px 16px;
    border-bottom: 0;            /* 子项不画虚线分隔 */
    font-size: 14px;
}
.mm-widget .children li::before,
.mm-widget .sub-menu li::before {
    content: "›";                /* 子项换成简洁箭头，避免一堆爪印 */
    color: var(--mm-primary);
    font-weight: 700;
    font-size: 14px;
    top: 6px;
}
/* 当前分类高亮 */
.mm-widget .current-cat > a,
.mm-widget .current-cat-parent > a,
.mm-widget .current_page_item > a {
    color: var(--mm-primary-d);
    font-weight: 700;
}

/* ---------- 归档 Hero ---------- */
.mm-archive-hero {
    background: linear-gradient(135deg, var(--mm-bg-2), var(--mm-bg));
    border-bottom: 1px solid var(--mm-border);
    padding: 56px 20px 48px;
    text-align: center;
    border-radius: 0 0 var(--mm-radius-xl) var(--mm-radius-xl);
}
.mm-archive-hero__inner { max-width: 720px; margin: 0 auto; }
.mm-archive-hero__title { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 8px; }
.mm-archive-hero__title em { font-style: normal; color: var(--mm-primary-d); }
.mm-archive-hero__sub { color: var(--mm-ink-soft); margin: 0 0 18px; }
.mm-archive-hero__form { margin-top: 18px; }

/* ---------- 单篇文章 ---------- */
.mm-article {
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-xl);
    padding: 36px clamp(22px, 4vw, 56px) 48px;
    box-shadow: var(--mm-shadow-sm);
}
.mm-article__head { text-align: center; margin-bottom: 22px; }
.mm-article__head .mm-pills { justify-content: center; margin-bottom: 14px; }
.mm-article__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; letter-spacing: -.3px; margin: 0 0 14px; }
.mm-meta { color: var(--mm-muted); font-size: 14px; }
.mm-meta__sep { margin: 0 8px; opacity: .5; }
.mm-meta a { color: var(--mm-ink-soft); }

.mm-article__cover { margin: 24px 0 32px; }
.mm-article__cover img { width: 100%; border-radius: var(--mm-radius-lg); }

.mm-article__tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mm-article__tags a {
    background: var(--mm-mint-2); color: var(--mm-ink-soft);
    padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.mm-article__tags a:hover { background: var(--mm-mint); color: #fff; }

.mm-article__foot { margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--mm-border-2); display: flex; flex-direction: column; gap: 24px; }
.mm-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--mm-muted); font-size: 14px; }
.mm-share a {
    padding: 6px 14px; background: var(--mm-bg-2); border-radius: 999px;
    color: var(--mm-ink-soft); font-weight: 600; font-size: 13px;
}
.mm-share a:hover { background: var(--mm-primary); color: #fff; }
.mm-copy.mm-copied { background: var(--mm-mint) !important; color: #fff !important; }

.mm-author { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--mm-bg-2); border-radius: var(--mm-radius); }
.mm-author img { border-radius: 50%; }
.mm-author strong { display: block; font-size: 16px; }
.mm-author p { margin: 4px 0 0; color: var(--mm-ink-soft); font-size: 14px; }

.mm-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.mm-postnav > div { background: var(--mm-bg-2); border-radius: var(--mm-radius); padding: 14px 18px; transition: background .2s; }
.mm-postnav > div:hover { background: var(--mm-yellow-2); }
.mm-postnav span { display: block; font-size: 12px; color: var(--mm-muted); margin-bottom: 4px; }
.mm-postnav a { color: var(--mm-ink); font-weight: 700; }
.mm-postnav__next { text-align: right; }
@media (max-width: 600px) { .mm-postnav { grid-template-columns: 1fr; } .mm-postnav__next { text-align: left; } }

/* ---------- 富文本 prose ---------- */
.mm-prose { font-size: 17px; color: var(--mm-ink); overflow-wrap: break-word; word-wrap: break-word; }
.mm-prose h1, .mm-prose h2, .mm-prose h3, .mm-prose h4, .mm-prose h5, .mm-prose h6 { overflow-wrap: anywhere; word-break: break-word; }
.mm-prose a { overflow-wrap: anywhere; word-break: break-word; }
.mm-prose p { margin: 0 0 1.2em; }
.mm-prose h2, .mm-prose h3, .mm-prose h4 { margin-top: 1.6em; }
.mm-prose h2 {
    font-size: 26px;
    padding-left: 14px;
    border-left: 6px solid var(--mm-primary);
    border-radius: 3px;
}
.mm-prose h3 { font-size: 21px; }
.mm-prose h3::before { content: "🐾 "; }
.mm-prose a { color: var(--mm-primary-d); text-decoration: underline; text-decoration-color: var(--mm-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mm-prose a:hover { color: var(--mm-pink); text-decoration-color: var(--mm-pink-2); }
.mm-prose strong { color: var(--mm-ink); }
.mm-prose blockquote {
    margin: 1.4em 0; padding: 14px 18px;
    background: var(--mm-yellow-2);
    border-radius: var(--mm-radius);
    border-left: 4px solid var(--mm-primary);
    color: var(--mm-ink-soft); font-style: italic;
}
.mm-prose blockquote p:last-child { margin-bottom: 0; }
.mm-prose code {
    background: var(--mm-bg-2);
    padding: 2px 8px; border-radius: 6px;
    font-size: .9em;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.mm-prose pre {
    background: var(--mm-ink); color: #FFF1B8;
    padding: 18px 20px; border-radius: var(--mm-radius);
    overflow-x: auto; line-height: 1.6; font-size: 14px;
}
.mm-prose pre code { background: transparent; color: inherit; padding: 0; }
.mm-prose ul, .mm-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.mm-prose li { margin: .3em 0; }
.mm-prose ul li::marker { color: var(--mm-primary); }
.mm-prose img, .mm-prose figure { border-radius: var(--mm-radius); margin: 1.4em 0; }
.mm-prose figure img { border-radius: var(--mm-radius); }
.mm-prose figcaption { text-align: center; color: var(--mm-muted); font-size: 13px; margin-top: 8px; }
.mm-prose hr { border: 0; height: 0; border-top: 2px dashed var(--mm-border-2); margin: 2em 0; }
.mm-prose table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 1px solid var(--mm-border); border-radius: var(--mm-radius);
    overflow: hidden; margin: 1.4em 0;
}
.mm-prose th, .mm-prose td { padding: 12px 14px; border-bottom: 1px solid var(--mm-border); text-align: left; }
.mm-prose th { background: var(--mm-yellow-2); font-weight: 700; }
.mm-prose tr:last-child td { border-bottom: 0; }

.mm-page-links { margin: 1.4em 0; color: var(--mm-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mm-page-links a, .mm-page-links > span {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: var(--mm-bg-2); color: var(--mm-ink-soft); font-weight: 700;
}
.mm-page-links a:hover { background: var(--mm-primary); color: #fff; }

/* ---------- 分页 ---------- */
.mm-pagination, .navigation.pagination { margin-top: 32px; display: flex; justify-content: center; }
.mm-pagination .nav-links, .navigation.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mm-pagination .page-numbers, .navigation.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 999px;
    background: #fff; border: 1px solid var(--mm-border-2);
    color: var(--mm-ink-soft); font-weight: 700;
    transition: all .2s;
}
.mm-pagination .page-numbers:hover { background: var(--mm-yellow-2); border-color: var(--mm-yellow); color: var(--mm-ink); }
.mm-pagination .page-numbers.current { background: var(--mm-primary); color: #fff; border-color: var(--mm-primary); }
.mm-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- Empty / 404 ---------- */
.mm-empty {
    text-align: center; padding: 64px 20px;
    background: #fff; border-radius: var(--mm-radius-xl); border: 1px dashed var(--mm-border-2);
}
.mm-empty h2 { margin-top: 0; }
.mm-empty .mm-search { margin-top: 18px; }

.mm-404 { padding: 80px 20px; text-align: center; }
.mm-404__inner { max-width: 540px; margin: 0 auto; }
.mm-404__art { width: 240px; height: auto; margin: 0 auto 20px; animation: mm-bob 5s ease-in-out infinite; }
.mm-404 h1 { font-size: clamp(80px, 14vw, 140px); line-height: 1; margin: 0 0 8px; letter-spacing: -2px; color: var(--mm-primary); }
.mm-404 h1 span { color: var(--mm-pink); }
.mm-404 p { color: var(--mm-ink-soft); font-size: 18px; margin: 0 0 24px; }

/* ---------- 评论 ---------- */
.mm-comments { margin-top: 40px; }
.mm-comments__title { display: flex; align-items: center; font-size: 22px; margin-bottom: 22px; }
.mm-comments__notes { color: var(--mm-muted); font-size: 13px; }
.mm-commentlist { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.mm-commentlist .children { list-style: none; padding-left: 28px; margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
.mm-comment__inner { display: flex; gap: 14px; padding: 14px 16px; background: var(--mm-bg-2); border-radius: var(--mm-radius); }
.mm-comment__avatar img { border-radius: 50%; }
.mm-comment__body { flex: 1; min-width: 0; }
.mm-comment__meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mm-comment__author { font-size: 15px; }
.mm-comment__time { color: var(--mm-muted); font-size: 12px; }
.mm-comment__content { margin-top: 6px; color: var(--mm-ink-soft); }
.mm-comment__content p:last-child { margin-bottom: 0; }
.mm-comment__actions { margin-top: 8px; font-size: 13px; }
.mm-comment__actions a { color: var(--mm-primary-d); font-weight: 600; }

.comment-form, #commentform {
    background: #fff; border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-lg); padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--mm-border-2); border-radius: 14px;
    background: #fff; outline: none; font-family: inherit; font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea { border-radius: var(--mm-radius); resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--mm-primary); box-shadow: 0 0 0 3px rgba(255,155,106,.18);
}
.comment-form .form-submit { margin: 0; }
.comment-form .submit { all: revert; }
.comment-form input[type="submit"] {
    border: 0; cursor: pointer;
    background: var(--mm-primary); color: #fff; font-weight: 700;
    padding: 12px 26px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(255,155,106,.4);
    transition: all .2s;
}
.comment-form input[type="submit"]:hover { background: var(--mm-primary-d); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.mm-footer { position: relative; margin-top: 60px; background: var(--mm-bg-2); padding: 60px 20px 30px; }
.mm-footer__wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; pointer-events: none; }
.mm-footer__wave svg { width: 100%; height: 60px; display: block; transform: rotate(180deg); }
.mm-footer__inner { max-width: var(--mm-container); margin: 0 auto; }
.mm-footer__widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}
.mm-footer__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mm-footer__col:empty { display: none; }
@media (max-width: 980px) {
    .mm-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .mm-footer__widgets { grid-template-columns: 1fr; }
}
.mm-fwidget__title { font-size: 15px; margin: 0 0 12px; color: var(--mm-ink); }
.mm-fwidget ul { list-style: none; padding: 0; margin: 0; }
.mm-fwidget li { padding: 5px 0; }
.mm-fwidget a { color: var(--mm-ink-soft); font-size: 14px; }
.mm-fwidget a:hover { color: var(--mm-primary-d); }

/* 页脚 · 标签云：小号胶囊，紧凑排列 */
.mm-fwidget .tagcloud { line-height: 1.8; }
.mm-fwidget .tagcloud a {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mm-border);
    color: var(--mm-ink-soft) !important;
    font-size: 12px !important;       /* 页脚统一小号，忽略 WP 内联字号 */
    font-weight: 600;
    line-height: 1.6;
    transition: all .18s;
}
.mm-fwidget .tagcloud a:hover {
    background: var(--mm-primary);
    border-color: var(--mm-primary);
    color: #fff !important;
    transform: translateY(-1px);
}
/* 页脚最热标签：浅橙底 + 深橙字 */
.mm-fwidget .tagcloud a[style*="15px"],
.mm-fwidget .tagcloud a[style*="16px"] {
    background: var(--mm-primary-l);
    border-color: var(--mm-border-2);
    color: var(--mm-primary-d) !important;
}

/* 自定义小工具：品牌简介 */
.mm-fwidget--brand .mm-fbrand__link { display: inline-flex; align-items: center; gap: 12px; color: var(--mm-ink); }
.mm-fwidget--brand .mm-fbrand__link:hover { color: var(--mm-ink); }
.mm-fwidget--brand .mm-fbrand__cat {
    width: 48px; height: 48px;
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--mm-shadow-sm);
    flex-shrink: 0;
}
.mm-fwidget--brand .mm-fbrand__text { display: flex; flex-direction: column; line-height: 1.1; }
.mm-fwidget--brand .mm-fbrand__text strong { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.mm-fwidget--brand .mm-fbrand__text em { font-style: normal; font-size: 12px; color: var(--mm-muted); margin-top: 4px; }
.mm-fwidget--brand .mm-fbrand__desc { color: var(--mm-ink-soft); font-size: 14px; max-width: 320px; margin: 14px 0 0; }

/* 自定义小工具：社交链接 */
.mm-social {
    display: flex; flex-wrap: wrap; gap: 10px;
    list-style: none; padding: 0; margin: 0;
}
.mm-social__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--mm-bg-2);
    border: 1px solid var(--mm-border);
    color: var(--mm-ink-soft);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    cursor: pointer; padding: 0;
}
.mm-social__btn:hover,
.mm-social__btn:focus-visible {
    background: var(--mm-primary); color: #fff;
    border-color: var(--mm-primary);
    transform: translateY(-2px);
}
.mm-social__btn:focus { outline: none; }
.mm-social__btn:focus-visible { box-shadow: 0 0 0 3px var(--mm-primary-l); }
/* 单品牌色微调（hover 时统一橙，平时各自有迹可循） */
.mm-social__btn--xhs    { color: #ff2442; }
.mm-social__btn--x      { color: #1F2937; }
.mm-social__btn--email  { color: #4B5563; }
.mm-social__btn--youtube{ color: #ff0000; }
.mm-social__btn--wechat { color: #07c160; }

/* 微信二维码弹层 */
.mm-social__wechat { position: relative; }
.mm-social__qr {
    position: absolute;
    bottom: calc(100% + 10px); left: 50%;
    transform: translate(-50%, 6px);
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--mm-shadow-lg);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 60;
    width: 168px;
    text-align: center;
}
.mm-social__qr::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 50%;
    width: 12px; height: 12px;
    background: #fff;
    border-right: 1px solid var(--mm-border);
    border-bottom: 1px solid var(--mm-border);
    transform: translateX(-50%) rotate(45deg);
}
.mm-social__qr img {
    width: 100%; height: auto; display: block;
    border-radius: 8px;
}
.mm-social__qr-id {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mm-ink-soft);
    user-select: all;
}
.mm-social__wechat:hover .mm-social__qr,
.mm-social__wechat:focus-within .mm-social__qr {
    opacity: 1; visibility: visible;
    transform: translate(-50%, 0);
}

.mm-footer__bottom {
    padding-top: 20px; border-top: 1px dashed var(--mm-border-2);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--mm-muted); font-size: 13px; gap: 16px; flex-wrap: wrap;
}
.mm-footer__copy { margin: 0; }
.mm-footer__copy a { color: var(--mm-ink-soft); font-weight: 700; }
.mm-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.mm-footer__menu a { color: var(--mm-ink-soft); }
.mm-footer__menu a:hover { color: var(--mm-primary-d); }

/* ---------- 回到顶部 ---------- */
.mm-totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--mm-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(255,155,106,.5);
    transition: all .2s;
}
.mm-totop:hover { background: var(--mm-primary-d); transform: translateY(-3px); }
.mm-totop[hidden] { display: none; }

/* ---------- WP 默认对齐与媒体 ---------- */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0 !important; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--mm-muted); font-size: 13px; text-align: center; margin-top: 6px; }
.sticky { position: relative; }
.sticky::before {
    content: "📌 置顶"; position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--mm-pink); color: #fff; padding: 4px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
}
.bypostauthor { /* 占位以满足主题审查 */ display: block; }

/* ---------- 减弱动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
