:root {
    --m-theme: #fee233;
    --m-theme-strong: #fff230;
    --m-accent: #fd7322;
    --m-text: #333;
    --m-strong: #462e2e;
    --m-muted: #8a898a;
    --m-line: #ededed;
    --m-line-soft: #f2f2f2;
    --m-bg: #f6f6f6;
    --m-card: #ffffff;
    --m-chip: #fff7d0;
    --m-hairline: rgba(0, 0, 0, .05);
    --m-radius-lg: 16px;
    --m-radius: 12px;
    --m-radius-sm: 9px;
    --m-shadow: 0 1px 2px rgba(24, 24, 28, .05), 0 8px 22px rgba(24, 24, 28, .06);
    --m-shadow-soft: 0 1px 3px rgba(24, 24, 28, .06);
    --m-ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    background: var(--m-bg);
}

body.ikutu-mobile-body {
    margin: 0;
    color: var(--m-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.mobile-home,
.mobile-page {
    width: 100%;
    min-height: 100vh;
    padding: 12px 12px 0;
}

.mobile-home-top,
.mobile-page-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin: -12px -12px 12px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: #fff;
    border-bottom: 1px solid rgba(238, 238, 238, .9);
    /* 去掉 backdrop-filter 毛玻璃：吸顶头部滚动时逐帧重绘模糊会造成顶部抖动，背景改为不透明后视觉几乎无差别 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-logo {
    display: flex;
    align-items: center;
    width: 128px;
    height: 36px;
}

.mobile-logo img {
    max-width: 128px;
    max-height: 34px;
    object-fit: contain;
}

.mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-upload-link,
.mobile-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 700;
    white-space: nowrap;
}

.mobile-icon-button,
.mobile-back,
.mobile-panel-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--m-strong);
    box-shadow: inset 0 0 0 1px var(--m-line);
}

.mobile-page-head h1 {
    flex: 1;
    min-width: 0;
    margin: 0 10px;
    color: var(--m-strong);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-hero {
    padding: 20px 16px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffbe2 0%, #fff 70%);
    box-shadow: var(--m-shadow);
}

.mobile-hero-copy h1 {
    margin: 0;
    color: var(--m-strong);
    font-size: 26px;
    line-height: 1.18;
    font-weight: 900;
}

.mobile-hero-copy p {
    margin: 8px 0 16px;
    color: #6f6d6d;
    font-size: 14px;
}

.mobile-search-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #f1df46;
    border-radius: 8px;
    background: #fff;
    color: var(--m-muted);
    text-align: left;
    box-shadow: 0 6px 16px rgba(216, 186, 0, .15);
}

.mobile-search-trigger i {
    margin-right: 8px;
    color: var(--m-strong);
}

.mobile-search-trigger.compact {
    min-height: 42px;
    box-shadow: none;
}

.mobile-hot-row,
.mobile-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 2px;
    scrollbar-width: none;
}

.mobile-hot-row::-webkit-scrollbar,
.mobile-chip-row::-webkit-scrollbar,
.mobile-calendar-scroller::-webkit-scrollbar,
.mobile-filter-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-hot-row a,
.mobile-chip-row a,
.mobile-filter-scroll a,
.mobile-tag-list a {
    flex: 0 0 auto;
    max-width: 10em;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff7d0;
    color: var(--m-strong);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-section {
    margin-top: 18px;
}

.mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-section-head h2,
.mobile-section-head h2 a {
    margin: 0;
    color: var(--m-strong);
    font-size: 18px;
    font-weight: 900;
}

.mobile-section-head span {
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-feature-card {
    position: relative;
    min-height: 104px;
    overflow: hidden;
    border-radius: 8px;
    background: #222;
    box-shadow: var(--m-shadow);
}

.mobile-feature-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .48));
}

.mobile-feature-card img {
    width: 100%;
    height: 104px;
    object-fit: cover;
}

.mobile-feature-card span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-calendar-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.mobile-calendar-card {
    flex: 0 0 132px;
    min-height: 98px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-calendar-card strong,
.mobile-calendar-card span,
.mobile-calendar-card b {
    display: block;
}

.mobile-calendar-card strong {
    color: var(--m-strong);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-calendar-card span {
    margin-top: 6px;
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-calendar-card b {
    margin-top: 8px;
    color: var(--m-accent);
    font-size: 13px;
}

.mobile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-media-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-media-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f0f0f0;
}

.mobile-media-info {
    padding: 9px;
}

.mobile-media-info strong {
    display: block;
    min-height: 38px;
    color: var(--m-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
}

.mobile-media-info span {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--m-accent);
    font-size: 12px;
}

.mobile-upload-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #222;
    color: #fff;
}

.mobile-upload-card h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.mobile-upload-card p {
    margin: 4px 0 0;
    color: #ffe099;
    font-size: 12px;
}

.mobile-list-toolbar {
    margin-bottom: 12px;
}

.mobile-list-wrap,
.mobile-filter-card,
.mobile-show-card,
.mobile-prev-next,
.mobile-category-block {
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-content-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-list-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--m-line);
}

.mobile-list-item:last-child {
    border-bottom: 0;
}

.mobile-list-thumb {
    flex: 0 0 112px;
    width: 112px;
    height: 84px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.mobile-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-list-info {
    min-width: 0;
    flex: 1;
}

.mobile-list-info h2 {
    margin: 0;
    color: var(--m-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.mobile-list-info p {
    height: 36px;
    margin: 5px 0;
    color: var(--m-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
}

.mobile-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9a9a9a;
    font-size: 11px;
}

.mobile-list-meta a {
    max-width: 7em;
    color: var(--m-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-list-meta span {
    flex: 0 0 auto;
}

.mobile-load-more {
    padding: 12px;
}

.mobile-load-more a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 800;
}

.mobile-filter-card {
    padding: 12px;
    margin-bottom: 12px;
}

.mobile-es-search-page .mobile-filter-card {
    padding-bottom: 10px;
}

.mobile-filter-group + .mobile-filter-group {
    margin-top: 12px;
}

.mobile-filter-group strong {
    display: block;
    margin-bottom: 8px;
    color: var(--m-strong);
}

.mobile-filter-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--m-text);
    text-align: left;
    cursor: pointer;
}

.mobile-filter-summary strong {
    margin: 0;
    color: var(--m-strong);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-filter-summary strong:after {
    content: "：";
}

.mobile-filter-summary span {
    min-width: 0;
    color: var(--m-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-filter-summary i {
    color: var(--m-muted);
    font-size: 16px;
    text-align: right;
    transition: transform .2s ease;
}

.mobile-filter-summary:focus {
    outline: none;
}

.mobile-filter-summary:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(254, 226, 51, .28);
}

.mobile-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mobile-filter-accordion {
    padding: 0 0 10px;
    border-bottom: 1px solid var(--m-line);
}

.mobile-filter-accordion:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mobile-filter-accordion .mobile-filter-scroll {
    display: none;
    padding-top: 8px;
}

.mobile-filter-accordion.open .mobile-filter-scroll {
    display: flex;
}

.mobile-filter-accordion.open .mobile-filter-summary i {
    transform: rotate(180deg);
}

.mobile-filter-scroll a.active {
    background: var(--m-theme);
    font-weight: 800;
}

.mobile-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.mobile-filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #f7f7f7;
    color: var(--m-strong);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-filter-bar button i {
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-filter-bar button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 226, 51, .28);
}

.mobile-filter-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
}

.mobile-filter-popup.open {
    display: block;
}

.mobile-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

.mobile-popup-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(68vh, 520px);
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .16);
}

.mobile-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid var(--m-line);
}

.mobile-popup-head strong {
    color: var(--m-strong);
    font-size: 16px;
    font-weight: 900;
}

.mobile-popup-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-muted);
}

.mobile-popup-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(min(68vh, 520px) - 50px);
    overflow-y: auto;
    padding: 12px;
}

.mobile-popup-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f7f7f7;
    color: var(--m-text);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.mobile-popup-options a.active {
    border: 1px solid var(--m-theme);
    background: #fffdf0;
    color: var(--m-accent);
}

.mobile-inline-search {
    display: flex;
    height: 42px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-inline-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 12px;
    outline: none;
}

.mobile-inline-search button {
    width: 48px;
    border: 0;
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-empty {
    padding: 36px 12px;
    text-align: center;
    color: var(--m-muted);
}

.mobile-empty i {
    font-size: 28px;
    color: #d0d0d0;
}

.mobile-empty span {
    display: block;
    margin-top: 6px;
    color: #aaa;
    font-size: 12px;
}

.mobile-es-search-page .mobile-chip-row {
    padding-top: 0;
    margin-bottom: 12px;
}

.mobile-es-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.mobile-es-pagination a,
.mobile-es-pagination span,
.mobile-es-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--m-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.mobile-es-pagination a:hover,
.mobile-es-pagination a:focus,
.mobile-es-pagination button:hover,
.mobile-es-pagination button:focus {
    background: #fff7d0;
    color: var(--m-strong);
    outline: none;
    box-shadow: none;
}

.mobile-es-pagination .active {
    border: 1px solid var(--m-theme);
    background: transparent;
    color: var(--m-accent);
    font-weight: 900;
    box-shadow: none;
}

.mobile-page-arrow {
    font-size: 16px !important;
}

.mobile-category-page {
    display: grid;
    gap: 12px;
}

.mobile-category-block {
    padding: 12px 0 0;
}

.mobile-category-block .mobile-section-head {
    padding: 0 12px;
}

.mobile-show-card {
    padding: 14px;
}

.mobile-show-card > h1 {
    margin: 0;
    color: var(--m-strong);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
}

.mobile-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-show-meta span,
.mobile-show-meta a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f7f7f7;
}

.mobile-show-cover {
    overflow: hidden;
    margin: 0 -2px 14px;
    border-radius: 8px;
    background: #f0f0f0;
}

.mobile-show-cover img {
    width: 100%;
    height: auto;
}

.mobile-show-content {
    color: var(--m-text);
    font-size: 15px;
    line-height: 1.75;
    overflow: hidden;
}

.mobile-show-content img,
.xrcontent img {
    height: auto !important;
    max-width: 100% !important;
}

.mobile-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mobile-prev-next {
    margin-top: 12px;
    padding: 12px;
}

.mobile-prev-next p {
    display: flex;
    gap: 8px;
    margin: 0;
    font-size: 13px;
}

.mobile-prev-next p + p {
    margin-top: 8px;
}

.mobile-prev-next strong {
    flex: 0 0 52px;
    color: var(--m-strong);
}

.mobile-prev-next a,
.mobile-prev-next span {
    min-width: 0;
    color: var(--m-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-site-footer {
    padding: 24px 12px 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.mobile-site-footer p {
    margin: 3px 0;
}

.mobile-footer-spacer {
    height: calc(72px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--m-line);
    box-shadow: 0 -6px 18px rgba(39, 39, 39, .08);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #777;
    font-size: 11px;
}

.mobile-bottom-nav i {
    font-size: 18px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--m-strong);
}

.mobile-bottom-nav a.active i {
    color: var(--m-accent);
}

.mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--m-bg);
}

.mobile-panel-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 54px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: #fff;
    border-bottom: 1px solid var(--m-line);
}

.mobile-panel-bar strong {
    color: var(--m-strong);
    font-size: 17px;
    text-align: center;
}

.mobile-panel-body {
    height: calc(100vh - 54px);
    overflow-y: auto;
    padding: 12px;
}

.mobile-category-group {
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-category-group + .mobile-category-group {
    margin-top: 10px;
}

.mobile-category-group h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.mobile-category-group h5 a.active {
    color: var(--m-accent);
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mobile-category-links a {
    max-width: 10em;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f7f7f7;
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-category-links a.active {
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 800;
}

.mobile-search-form {
    position: relative;
}

.mobile-search-card {
    position: relative;
    display: flex;
    min-height: 48px;
    overflow: visible;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-search-module {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 94px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--m-line);
    background: transparent;
    color: var(--m-strong);
    font-weight: 800;
}

.mobile-search-module span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-search-input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 10px;
    outline: none;
}

.mobile-search-submit {
    width: 50px;
    border: 0;
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-search-dropdown {
    top: 48px;
    left: 0;
    min-width: 120px;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--m-shadow);
}

.body-panel-open {
    overflow: hidden;
}

.mobile-sucai-page .mobile-section {
    margin-top: 12px;
}

.mobile-sucai-filter {
    margin-bottom: 12px;
}

.mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 900;
}

.mobile-filter-sheet {
    display: none;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-filter-sheet.open {
    display: block;
}

.mobile-filter-form {
    display: grid;
    gap: 10px;
}

.mobile-filter-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.mobile-filter-form label span {
    color: var(--m-strong);
    font-size: 13px;
    font-weight: 800;
}

.mobile-filter-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    color: var(--m-text);
    outline: none;
}

.mobile-filter-actions {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 10px;
    margin-top: 2px;
}

.mobile-filter-actions button,
.mobile-filter-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

.mobile-filter-actions button {
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-filter-actions a {
    background: #f4f4f4;
    color: var(--m-muted);
}

.mobile-sucai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-sucai-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-sucai-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.mobile-sucai-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-sucai-thumb em {
    position: absolute;
    left: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(34, 34, 34, .78);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-sucai-card strong {
    display: block;
    min-height: 38px;
    padding: 9px 9px 0;
    color: var(--m-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
}

.mobile-sucai-card > span {
    display: block;
    min-height: 26px;
    padding: 4px 9px 9px;
    color: var(--m-accent);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-es-search-page .mobile-sucai-grid {
    display: block;
    column-count: 2;
    column-gap: 10px;
}

.mobile-es-search-page .mobile-sucai-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.mobile-es-search-page .mobile-sucai-thumb {
    aspect-ratio: auto;
    height: auto;
}

.mobile-es-search-page .mobile-sucai-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mobile-es-search-page .mobile-sucai-card strong {
    min-height: 0;
    padding: 9px;
}

.mobile-related-masonry {
    display: block;
    column-count: 2;
    column-gap: 10px;
}

.mobile-related-masonry .mobile-sucai-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.mobile-related-masonry .mobile-sucai-thumb {
    aspect-ratio: auto;
    height: auto;
}

.mobile-related-masonry .mobile-sucai-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mobile-related-masonry .mobile-sucai-card strong {
    min-height: 0;
    padding: 9px;
}

.mobile-related-empty {
    padding: 18px 12px;
    border: 1px solid var(--m-hairline);
    border-radius: var(--m-radius);
    background: #fff;
    color: var(--m-muted);
    text-align: center;
    font-size: 13px;
}

.mobile-sucai-detail {
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-sucai-detail > h1 {
    margin: 0;
    color: var(--m-strong);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.32;
}

.mobile-sucai-preview {
    overflow: hidden;
    margin: 12px 0;
    border-radius: 8px;
    background: #f0f0f0;
}

.mobile-sucai-preview img {
    width: 100%;
    height: auto;
}

.mobile-sucai-actionbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    margin: 12px 0;
}

.mobile-download-primary,
.mobile-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
}

.mobile-download-primary {
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-favorite {
    gap: 5px;
    background: #f4f4f4;
    color: var(--m-muted);
}

.mobile-favorite.selected {
    background: #fff7d0;
    color: var(--m-accent);
}

.mobile-sucai-specs {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--m-line);
}

.mobile-sucai-specs div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    min-height: 40px;
    padding: 10px 0;
    border-bottom: 1px solid var(--m-line);
}

.mobile-sucai-specs dt {
    color: var(--m-muted);
    font-weight: 400;
}

.mobile-sucai-specs dd {
    margin: 0;
    color: var(--m-text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mobile-download-dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.mobile-dialog-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.mobile-dialog-box {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.mobile-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--m-line);
}

.mobile-dialog-head strong {
    color: var(--m-strong);
    font-size: 17px;
}

.mobile-dialog-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-muted);
}

.mobile-dialog-body {
    padding: 12px;
}

.mobile-dialog-goods {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-dialog-goods img {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.mobile-dialog-goods div {
    min-width: 0;
    flex: 1;
}

.mobile-dialog-goods strong,
.mobile-dialog-goods span {
    display: block;
}

.mobile-dialog-goods strong {
    color: var(--m-text);
    font-size: 15px;
    line-height: 1.35;
}

.mobile-dialog-goods span {
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-dialog-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 900;
}

.mobile-dialog-tip {
    margin: 0 0 10px;
    color: var(--m-muted);
}

.mobile-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-dialog-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-strong);
    font-weight: 800;
}

.mobile-auth-page {
    min-height: calc(100vh - 62px);
    padding: 14px 12px 96px;
    background: var(--m-bg);
}

.mobile-auth-hero {
    padding: 18px 4px 16px;
    text-align: center;
}

.mobile-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 44px;
    margin-bottom: 14px;
}

.mobile-auth-logo img {
    max-width: 148px;
    max-height: 42px;
    object-fit: contain;
}

.mobile-auth-hero h1 {
    margin: 0;
    color: var(--m-strong);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.mobile-auth-hero p {
    margin: 8px auto 0;
    max-width: 290px;
    color: var(--m-muted);
    font-size: 13px;
}

.mobile-auth-card {
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--m-shadow);
}

.mobile-auth-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.mobile-auth-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-auth-tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-muted);
    font-weight: 800;
}

.mobile-auth-tabs a.active {
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-auth-form {
    display: grid;
    gap: 12px;
}

.mobile-auth-field {
    position: relative;
    display: grid;
    gap: 6px;
    margin: 0;
}

.mobile-auth-field > span,
.mobile-auth-code label > span {
    color: var(--m-strong);
    font-size: 13px;
    font-weight: 800;
}

.mobile-auth-field i,
.mobile-auth-code label i {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: var(--m-muted);
    font-size: 15px;
}

.mobile-auth-field input,
.mobile-auth-code label input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    color: var(--m-text);
    outline: none;
}

.mobile-auth-field input:focus,
.mobile-auth-code label input:focus {
    border-color: var(--m-theme);
    box-shadow: 0 0 0 3px rgba(254, 226, 51, .22);
}

.mobile-auth-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    align-items: end;
}

.mobile-auth-code label {
    position: relative;
    display: grid;
    gap: 6px;
    margin: 0;
}

.mobile-auth-code-img,
.mobile-auth-code button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-strong);
    font-size: 13px;
    font-weight: 800;
}

.mobile-auth-code-img img {
    max-width: 100%;
    height: auto;
}

.mobile-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--m-muted);
    font-size: 13px;
}

.mobile-auth-row a,
.mobile-auth-switch a,
.mobile-auth-protocol a {
    color: var(--m-accent);
    font-weight: 800;
}

.mobile-auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    color: var(--m-muted);
    font-size: 13px;
    line-height: 1.5;
}

.mobile-auth-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--m-theme);
}

.mobile-auth-protocol {
    margin-top: 2px;
}

.mobile-auth-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-size: 16px;
    font-weight: 900;
}

.mobile-auth-oauth {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding-top: 2px;
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-auth-oauth div {
    display: flex;
    gap: 12px;
}

.mobile-auth-oauth a,
.mobile-auth-oauth button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f7f7f7;
}

.mobile-auth-oauth img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-auth-switch {
    color: var(--m-muted);
    text-align: center;
    font-size: 13px;
}

.mobile-member-page {
    padding: 12px 12px 96px;
    background: var(--m-bg);
}

.mobile-member-card,
.mobile-member-record {
    border: 1px solid var(--m-hairline);
    border-radius: var(--m-radius-lg);
    background: #fff;
    box-shadow: var(--m-shadow-soft);
}

.mobile-member-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--m-strong);
}

.mobile-member-title i {
    color: var(--m-accent);
}

.mobile-member-title strong {
    font-size: 16px;
    font-weight: 900;
}

.mobile-kami-exchange {
    padding: 14px;
}

.mobile-kami-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
}

.mobile-kami-form input {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    color: var(--m-text);
    outline: none;
}

.mobile-kami-form input:focus {
    border-color: var(--m-theme);
    box-shadow: 0 0 0 3px rgba(254, 226, 51, .22);
}

.mobile-kami-form button,
.mobile-auth-code-btn {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--m-theme);
    color: var(--m-strong);
    font-weight: 900;
}

.mobile-member-tabs,
.mobile-member-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 12px 0;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.mobile-member-tabs::-webkit-scrollbar,
.mobile-member-nav::-webkit-scrollbar {
    display: none;
}

.mobile-member-tabs a,
.mobile-member-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    max-width: 11em;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--m-muted);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-member-tabs a.active,
.mobile-member-nav a.active {
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-member-list {
    display: grid;
    gap: 10px;
}

.mobile-member-record {
    padding: 12px;
}

.mobile-record-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mobile-record-main strong {
    min-width: 0;
    color: var(--m-text);
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.mobile-record-main span {
    flex: 0 0 auto;
    color: var(--m-muted);
    font-size: 12px;
}

.mobile-record-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.mobile-record-meta em {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #fff7d0;
    color: var(--m-accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.mobile-record-meta p {
    min-width: 0;
    margin: 0;
    color: var(--m-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-member-pages {
    margin-top: 12px;
    text-align: center;
}

.mobile-oauth-profile {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-oauth-profile img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-oauth-profile strong {
    max-width: 100%;
    color: var(--m-strong);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-auth-select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: #fff;
    color: var(--m-text);
    outline: none;
}

.mobile-login-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    margin-top: 14px;
}

.mobile-login-switch button,
.mobile-login-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
}

.mobile-login-switch button {
    background: var(--m-theme);
    color: var(--m-strong);
}

.mobile-login-switch a {
    background: #f4f4f4;
    color: var(--m-muted);
}

.mobile-login-fast {
    padding: 6px 0 2px;
}

body.page-sidebar-closed-hide-logo .page-container,
body.page-sidebar-closed-hide-logo .page-content-wrapper,
body.page-sidebar-closed-hide-logo .page-content {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--m-bg);
}

@media (min-width: 640px) {
    .mobile-home,
    .mobile-page {
        max-width: 520px;
        margin: 0 auto;
    }

    .mobile-bottom-nav {
        left: 50%;
        width: 520px;
        transform: translateX(-50%);
        border-left: 1px solid var(--m-line);
        border-right: 1px solid var(--m-line);
    }
}

@media (prefers-reduced-motion: no-preference) {
    a,
    button {
        transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
}

/* ===================================================================
   视觉磨合增强层 (polish layer)
   目标：在不改变布局结构、类名与黄色主题的前提下，统一圆角层级、
   收敛阴影、补齐移动端触感反馈与文本截断，让首页 / 列表 / 搜索 /
   详情各页观感更一致、更精致。此段位于文件末尾，仅做增强覆盖。
   =================================================================== */

/* —— 圆角层级：大卡片更柔和，弹层跟随 —— */
.mobile-hero,
.mobile-upload-card,
.mobile-list-wrap,
.mobile-filter-card,
.mobile-show-card,
.mobile-sucai-detail,
.mobile-prev-next,
.mobile-category-block,
.mobile-category-group,
.mobile-feature-card,
.mobile-calendar-card,
.mobile-media-card,
.mobile-sucai-card,
.mobile-search-card,
.mobile-filter-sheet,
.mobile-dialog-box,
.mobile-auth-card {
    border-radius: var(--m-radius-lg);
}

.mobile-popup-sheet {
    border-radius: var(--m-radius-lg) var(--m-radius-lg) 0 0;
}

/* —— 白底卡片补一条极细描边，白叠白时边界更清晰 —— */
.mobile-media-card,
.mobile-sucai-card,
.mobile-calendar-card,
.mobile-list-wrap,
.mobile-filter-card,
.mobile-show-card,
.mobile-sucai-detail,
.mobile-prev-next,
.mobile-category-group {
    border: 1px solid var(--m-hairline);
}

/* —— 内容卡使用更轻的阴影，避免整屏发灰 —— */
.mobile-media-card,
.mobile-sucai-card,
.mobile-calendar-card {
    box-shadow: var(--m-shadow-soft);
}

/* —— 标题两行省略，避免中途截断或高度跳动 —— */
.mobile-media-info strong,
.mobile-sucai-card strong,
.mobile-list-info h2,
.mobile-list-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.mobile-list-info p {
    height: auto;
    max-height: 36px;
}

/* —— 底部导航：毛玻璃 + 选中态顶部指示条 —— */
.mobile-bottom-nav {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.mobile-bottom-nav a {
    position: relative;
}

.mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 22px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 3px 3px;
    background: var(--m-accent);
}

/* —— 触感反馈：卡片按下轻微缩放 —— */
.mobile-media-card,
.mobile-sucai-card,
.mobile-feature-card,
.mobile-calendar-card {
    transition: transform .18s var(--m-ease), box-shadow .18s var(--m-ease);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-media-card:active,
.mobile-sucai-card:active,
.mobile-feature-card:active,
.mobile-calendar-card:active {
    transform: scale(.975);
}

/* —— 触感反馈：主按钮按下变暗 —— */
.mobile-upload-link:active,
.mobile-upload-btn:active,
.mobile-download-primary:active,
.mobile-load-more a:active,
.mobile-dialog-main:active,
.mobile-auth-submit:active,
.mobile-filter-toggle:active,
.mobile-inline-search button:active,
.mobile-search-submit:active,
.mobile-filter-actions button:active {
    filter: brightness(.94);
}

/* —— 触感反馈：列表行 / 图标按钮按下浅灰底 —— */
.mobile-list-item:active {
    background: var(--m-line-soft);
}

.mobile-icon-button:active,
.mobile-back:active,
.mobile-panel-back:active,
.mobile-filter-bar button:active,
.mobile-popup-options a:active,
.mobile-chip-row a:active,
.mobile-hot-row a:active,
.mobile-filter-scroll a:active,
.mobile-category-links a:active,
.mobile-tag-list a:active {
    background: #f0f0f0;
}

/* —— 顶部栏滚动时更稳的层次 —— */
.mobile-home-top,
.mobile-page-head {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

/* —— 减少动效偏好时关闭缩放动画 —— */
@media (prefers-reduced-motion: reduce) {
    .mobile-media-card:active,
    .mobile-sucai-card:active,
    .mobile-feature-card:active,
    .mobile-calendar-card:active {
        transform: none;
    }
}

/* ===================================================================
   Mobile member center refinement
   Scope: member shared header/footer, dashboard, auth pages and generic
   member forms/lists. Keep it at the end as a non-destructive override.
   =================================================================== */
:root {
    --mm-primary: #2563eb;
    --mm-primary-deep: #1d4ed8;
    --mm-accent: #0f766e;
    --mm-warn: #f59e0b;
    --mm-bg: #f5f7fb;
    --mm-surface: #ffffff;
    --mm-surface-soft: #f8fafc;
    --mm-text: #0f172a;
    --mm-muted: #64748b;
    --mm-line: #e2e8f0;
    --mm-line-soft: #eef2f7;
    --mm-radius: 8px;
    --mm-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    --mm-shadow-soft: 0 4px 14px rgba(15, 23, 42, .06);
}

body.page-sidebar-closed-hide-logo {
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% -8%, rgba(37, 99, 235, .14), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, var(--mm-bg) 42%, #f7fafc 100%);
    color: var(--mm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}

body.page-sidebar-closed-hide-logo .page-container,
body.page-sidebar-closed-hide-logo .page-content-wrapper,
body.page-sidebar-closed-hide-logo .page-content {
    background: transparent !important;
}

body.page-sidebar-closed-hide-logo .page-content {
    min-height: calc(100vh - 58px);
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom)) !important;
}

body.page-sidebar-closed-hide-logo .row {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

body.page-sidebar-closed-hide-logo [class*="col-"] {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
}

body.page-sidebar-closed-hide-logo a,
body.page-sidebar-closed-hide-logo button,
body.page-sidebar-closed-hide-logo [role="button"] {
    cursor: pointer;
}

body.page-sidebar-closed-hide-logo a:focus-visible,
body.page-sidebar-closed-hide-logo button:focus-visible,
body.page-sidebar-closed-hide-logo input:focus-visible,
body.page-sidebar-closed-hide-logo select:focus-visible,
body.page-sidebar-closed-hide-logo textarea:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .75);
    outline-offset: 2px;
}

.hui-header {
    height: calc(48px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(226, 232, 240, .86);
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.hui-header h1 {
    height: 48px;
    line-height: 48px;
    color: var(--mm-text);
    font-size: 17px;
    font-weight: 800;
}

#hui-back,
#hui-header-menu {
    width: 48px;
    height: 48px;
    line-height: 48px;
    color: var(--mm-text);
}

#hui-back:before,
#hui-header-menu:before {
    color: var(--mm-text);
}

.hui-header-line {
    height: calc(48px + env(safe-area-inset-top));
}

.hui-fooer-line {
    height: calc(70px + env(safe-area-inset-bottom));
}

#hui-footer {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    height: 62px;
    padding: 7px 8px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

#hui-footer a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--mm-radius);
    color: var(--mm-muted);
    font-weight: 700;
}

#hui-footer a.hui-footer-active {
    background: rgba(37, 99, 235, .09);
    color: var(--mm-primary);
}

#hui-footer a.hui-footer-active:before {
    content: "";
    position: absolute;
    top: 5px;
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: var(--mm-primary);
}

#hui-footer .hui-footer-icons {
    width: 22px;
    height: 22px;
    margin: 0;
    color: inherit;
}

#hui-footer .hui-footer-text {
    height: auto;
    line-height: 1.2;
    color: inherit;
    font-size: 12px;
}

.profile-sidebar-portlet,
.profile-sidebar-m,
.profile-sidebar-r {
    float: none !important;
}

.page-content > .row:first-child {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, .13);
    border-radius: var(--mm-radius);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(15, 118, 110, .92)),
        var(--mm-primary);
    box-shadow: var(--mm-shadow);
    overflow: hidden;
}

.page-content > .row:first-child .col-md-12 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(82px, auto);
    align-items: center;
    gap: 12px;
    min-height: 92px;
}

.profile-userpic a {
    display: block;
    width: 64px;
    height: 64px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.profile-userpic img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-usertitle {
    margin-top: 8px;
    text-align: center;
}

.profile-usertitle-name {
    max-width: 72px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-sidebar-m,
.profile-sidebar-r {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, .12);
}

.profile-sidebar-r {
    text-align: right;
}

.user-body-title {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
}

.user-balance,
.user-balance-small {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.user-small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.mobile-hang {
    display: none;
}

.hui-wrap {
    display: grid;
    gap: 12px;
}

.hui-accordion {
    overflow: hidden;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-surface);
    box-shadow: var(--mm-shadow-soft);
}

.hui-accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid var(--mm-line-soft);
    background: linear-gradient(180deg, #fff, var(--mm-surface-soft));
    color: var(--mm-text);
    font-size: 15px;
    font-weight: 900;
}

.hui-accordion-title i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: var(--mm-radius);
    background: rgba(37, 99, 235, .1);
    color: var(--mm-primary);
}

.hui-accordion-content.hui-list,
.hui-list {
    border: 0;
    background: transparent;
}

.hui-list > a,
.hui-list li > a {
    min-height: 52px;
    height: auto;
    padding: 0 12px;
    align-items: center;
}

.hui-list-icons {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: var(--mm-radius);
    background: #eef6ff;
}

.hui-list-icons i,
.hui-list-icons {
    color: var(--mm-primary);
}

.hui-list-text {
    height: auto;
    min-height: 52px;
    align-items: center;
    margin-left: 10px;
    border-bottom: 1px solid var(--mm-line-soft);
    color: var(--mm-text);
    line-height: 1.35;
    font-size: 15px;
    font-weight: 700;
}

.hui-list > a:last-child .hui-list-text,
.hui-list li:last-child .hui-list-text {
    border-bottom: 0;
}

.hui-list-info {
    color: var(--mm-muted);
}

.mobile-auth-page,
.mobile-member-page {
    min-height: calc(100vh - 58px);
    padding: 14px 0 0;
    background: transparent;
}

.mobile-auth-hero {
    padding: 16px 8px 18px;
}

.mobile-auth-hero h1 {
    color: var(--mm-text);
    font-size: 25px;
    letter-spacing: 0;
}

.mobile-auth-hero p {
    max-width: 320px;
    color: var(--mm-muted);
    line-height: 1.7;
}

.mobile-auth-card,
.mobile-member-card,
.mobile-member-record {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--mm-shadow-soft);
}

.mobile-auth-card {
    padding: 16px;
}

.mobile-auth-form {
    gap: 14px;
}

.mobile-auth-field > span,
.mobile-auth-code label > span,
.mobile-member-title strong {
    color: var(--mm-text);
}

.mobile-auth-field input,
.mobile-auth-field select,
.mobile-auth-field textarea,
.mobile-auth-code label input,
.mobile-kami-form input,
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    min-height: 44px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: #fff;
    color: var(--mm-text);
    font-size: 15px;
}

.mobile-auth-field input:focus,
.mobile-auth-field select:focus,
.mobile-auth-field textarea:focus,
.mobile-auth-code label input:focus,
.mobile-kami-form input:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, .78);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.mobile-auth-submit,
.mobile-kami-form button,
.mobile-auth-code-btn,
.btn-primary,
.blue.btn,
.mobile-upload-btn,
.mobile-upload-link {
    min-height: 44px;
    border: 0;
    border-radius: var(--mm-radius);
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-deep));
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.mobile-auth-tabs a,
.mobile-member-tabs a,
.mobile-member-nav a {
    min-height: 40px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: #fff;
    color: var(--mm-muted);
}

.mobile-auth-tabs a.active,
.mobile-member-tabs a.active,
.mobile-member-nav a.active {
    border-color: rgba(37, 99, 235, .2);
    background: rgba(37, 99, 235, .1);
    color: var(--mm-primary);
}

.mobile-auth-oauth a,
.mobile-auth-oauth button {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: #fff;
}

.mobile-auth-oauth button:focus-visible,
.mobile-wechat-notice button:focus-visible {
    outline: 2px solid var(--mm-primary);
    outline-offset: 2px;
}

body.mobile-modal-open {
    overflow: hidden;
}

.mobile-wechat-notice[hidden] {
    display: none !important;
}

.mobile-wechat-notice {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

.mobile-wechat-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .52);
}

.mobile-wechat-notice-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 28px 24px 24px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    color: #222;
    outline: none;
    text-align: center;
}

.mobile-wechat-notice-close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 18px;
}

.mobile-wechat-notice-icon {
    display: block;
    margin-bottom: 14px;
    color: var(--mm-warn);
    font-size: 38px;
    line-height: 1;
}

.mobile-wechat-notice-dialog h2 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}

.mobile-wechat-notice-dialog p {
    margin: 0 auto 32px;
    max-width: 250px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.mobile-wechat-notice-confirm {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-deep));
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    touch-action: manipulation;
}

.mobile-wechat-notice-confirm:active {
    background: var(--mm-primary-deep);
}

@media (max-height: 480px) and (orientation: landscape) {
    .mobile-wechat-notice-dialog {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .mobile-wechat-notice-icon {
        margin-bottom: 8px;
        font-size: 30px;
    }

    .mobile-wechat-notice-dialog h2 {
        margin-bottom: 10px;
    }

    .mobile-wechat-notice-dialog p {
        margin-bottom: 16px;
    }
}

.mobile-member-list {
    gap: 12px;
}

.mobile-member-record {
    padding: 14px;
}

.mobile-record-main strong {
    color: var(--mm-text);
}

.mobile-record-main span,
.mobile-record-meta p,
.mobile-auth-check,
.mobile-auth-switch,
.mobile-auth-row {
    color: var(--mm-muted);
}

.mobile-record-meta em {
    background: rgba(15, 118, 110, .1);
    color: var(--mm-accent);
}

@media (min-width: 640px) {
    body.page-sidebar-closed-hide-logo .page-content {
        max-width: 520px;
        margin: 0 auto !important;
    }

    #hui-footer {
        left: 50%;
        right: auto;
        width: 500px;
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    .page-content > .row:first-child .col-md-12 {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-sidebar-r {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-sidebar-closed-hide-logo *,
    body.page-sidebar-closed-hide-logo *:before,
    body.page-sidebar-closed-hide-logo *:after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
