:root {
    --m-primary: #FF2442;
    --m-primary-dark: #e01e3a;
    --m-primary-light: #ffe4eb;
    --m-primary-soft: rgba(255, 36, 66, .12);
    --m-pink-50: #fff0f4;
    --m-pink-100: #ffd9e3;
    --m-pink-200: #ffb8c9;
    --m-bg: #fde8ef;
    --m-bg-top: #fff0f4;
    --m-bg-gradient: linear-gradient(180deg, #fff0f4 0%, #fde8ef 100%);
    --m-card: #ffffff;
    --m-card-elevated: #ffffff;
    --m-surface-muted: transparent;
    --m-surface-tag: rgba(255, 255, 255, .72);
    --m-divider: rgba(255, 36, 66, .1);
    --m-text: #2d1f24;
    --m-text-secondary: #6d4f58;
    --m-text-muted: #9a7a85;
    --m-border: rgba(255, 36, 66, .12);
    --m-border-light: rgba(255, 36, 66, .07);
    --m-shadow-sm: 0 2px 10px rgba(255, 36, 66, .1);
    --m-shadow-md: 0 6px 20px rgba(255, 36, 66, .12);
    --m-shadow-lg: 0 12px 32px rgba(255, 36, 66, .14);
    --m-radius-sm: 10px;
    --m-radius-md: 14px;
    --m-radius-lg: 18px;
    --m-header-h: 48px;
    --m-tabbar-h: 56px;
    --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0;
    padding: 0;
    color: var(--m-text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    background-color: var(--m-bg);
}
body.m-app {
    padding-top: var(--m-header-h);
    padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 16px);
    background-color: var(--m-bg);
    background-image: var(--m-bg-gradient);
    background-attachment: fixed;
}
body.m-app.m-no-tabbar, body.m-login { padding-bottom: calc(var(--m-safe-bottom) + 24px); }
body.m-login {
    padding-top: 0;
    min-height: 100vh;
    background-color: var(--m-bg);
    background-image: var(--m-bg-gradient);
    background-attachment: fixed;
}

.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--m-header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 12px;
    background: rgba(253, 232, 239, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-border-light);
    box-shadow: none;
}
.m-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2442, #FF6B85, #FF2442);
}
.m-header__back { width: 36px; height: 36px; border: none; background: transparent; font-size: 24px; color: var(--m-primary); }
.m-header__title { text-align: center; font-size: 16px; font-weight: 700; color: var(--m-text); letter-spacing: .02em; }
.m-header__spacer { width: 36px; }

.m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    height: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
    padding-bottom: var(--m-safe-bottom);
    display: flex;
    background: rgba(253, 232, 239, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--m-border-light);
    box-shadow: none;
}
.m-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--m-text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: color .2s;
}
.m-tabbar__item.is-active {
    color: var(--m-primary);
    font-weight: 700;
}
.m-tabbar__item.is-active .m-tabbar__icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 4px rgba(255, 36, 66, .25));
}
.m-tabbar__icon { font-size: 21px; margin-bottom: 3px; transition: transform .2s, filter .2s; }

.m-page { position: relative; z-index: 1; padding: 12px; background: transparent; }
.m-card {
    background: var(--m-card);
    border-radius: var(--m-radius-md);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--m-text); }
.m-card__sub { font-size: 12px; color: var(--m-text-muted); }
.m-task-content img { max-width: 100%; height: auto; }
.m-task-content p { margin: 0 0 8px; }
.m-task-content p:last-child { margin-bottom: 0; }
.m-hero { background: linear-gradient(135deg, #FF2442, #FF6B81); color: #fff; border-radius: 12px; padding: 20px 16px; margin-bottom: 12px; }
.m-hero__title { font-size: 18px; font-weight: 700; }
.m-hero__sub { font-size: 12px; opacity: .9; margin-top: 6px; }
.m-week-bar { margin-bottom: 12px; }
.m-week-select { border-radius: 8px; height: 40px; font-size: 13px; }

/* 往期任务 */
.m-page--past { padding-top: 0; }
.m-past-panel {
    margin: 0 -12px 10px;
    padding: 0 0 10px;
    background: transparent;
    border-bottom: none;
}
.m-past-carousel {
    padding: 10px 0 4px;
}
.m-past-carousel__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.m-past-carousel--single .m-past-carousel__track {
    overflow-x: hidden;
    gap: 0;
}
.m-past-carousel__track::-webkit-scrollbar { display: none; }
.m-past-week-card {
    flex: 0 0 calc(100% - 8px);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 14px 16px 13px;
    border-radius: 14px;
    border: 1px solid var(--m-border);
    background: var(--m-card);
    box-shadow: var(--m-shadow-sm);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.m-past-week-card.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #ff2442 0%, #ff4d6a 55%, #ff6b81 100%);
    box-shadow: var(--m-shadow-md);
}
.m-past-week-card.is-active::after {
    content: '';
    position: absolute;
    width: 88px;
    height: 88px;
    top: -28px;
    right: -18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    pointer-events: none;
}
.m-past-week-card__status {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
}
.m-past-week-card__status--past {
    background: rgba(148, 163, 184, .14);
    color: #64748b;
}
.m-past-week-card__status--live {
    background: rgba(7, 193, 96, .12);
    color: #07c160;
}
.m-past-week-card__status--wait {
    background: rgba(255, 184, 0, .14);
    color: #d48806;
}
.m-past-week-card.is-active .m-past-week-card__status {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.m-past-week-card__title {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--m-text);
    line-height: 1.35;
    letter-spacing: -.01em;
}
.m-past-week-card.is-active .m-past-week-card__title {
    color: #fff;
}
.m-past-week-card__date {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    font-size: 12px;
    color: var(--m-text-muted);
    line-height: 1.4;
}
.m-past-week-card.is-active .m-past-week-card__date {
    color: rgba(255, 255, 255, .88);
}
.m-past-carousel--single .m-past-week-card {
    flex: 0 0 100%;
}
.m-past-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-top: 6px;
}
.m-past-carousel__dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 36, 66, .22);
    transition: width .2s, background .2s;
}
.m-past-carousel__dot.is-active {
    width: 14px;
    background: var(--m-primary);
}
.m-past-stats {
    margin: 6px 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--m-card);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-past-stats__section {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.m-past-stats__section + .m-past-stats__section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--m-divider);
}
.m-past-stats__head {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-past-stats__title {
    font-size: 11px;
    font-weight: 600;
    color: var(--m-text-muted);
    letter-spacing: .02em;
}
.m-past-stats__grid {
    flex: 1;
    display: grid;
    gap: 0;
    min-width: 0;
}
.m-past-stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
.m-past-stats__grid--2 { grid-template-columns: repeat(2, 1fr); }
.m-past-stats__item {
    text-align: center;
    padding: 2px 4px;
    position: relative;
}
.m-past-stats__item + .m-past-stats__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 22px;
    margin-top: -11px;
    background: var(--m-divider);
}
.m-past-stats__num {
    font-size: 17px;
    font-weight: 700;
    color: var(--m-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.m-past-stats__num.is-money {
    font-size: 15px;
}
.m-past-stats__label {
    margin-top: 2px;
    font-size: 10px;
    color: var(--m-text-muted);
}
.m-past-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-week-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.m-week-tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #fff5f6; color: #FF2442; font-size: 12px; text-decoration: none; border: 1px solid #ffd6dc; }
.m-week-tag--muted { background: var(--m-surface-tag); color: #8a7a80; border-color: var(--m-divider); }
.m-week-deadline { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }
.m-week-card {
    background: var(--m-card);
    border-radius: var(--m-radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-week-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.m-week-card__title { font-size: 15px; font-weight: 600; flex: 1; }
.m-week-card__meta { font-size: 12px; color: var(--m-text-muted); margin-bottom: 12px; }
.m-week-card__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; padding: 10px 0; border-top: 1px solid var(--m-divider); border-bottom: 1px solid var(--m-divider); }
.m-week-card__num { display: block; font-size: 15px; font-weight: 700; color: var(--m-primary); }
.m-week-card__label { display: block; font-size: 11px; color: var(--m-text-muted); margin-top: 2px; }
.m-week-card__actions { display: flex; gap: 12px; margin-top: 10px; }
.m-week-card__link { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; background: var(--m-primary-light); color: var(--m-primary); text-decoration: none; font-size: 13px; }
.m-stats { display: flex; text-align: center; }
.m-stats__item { flex: 1; }
.m-stats__num { font-size: 20px; font-weight: 700; color: var(--m-primary); }
.m-stats__label { font-size: 11px; color: var(--m-text-muted); margin-top: 4px; }

.m-list-item {
    display: block;
    background: var(--m-card);
    border-radius: var(--m-radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.m-list-item:active {
    transform: translateY(1px);
    box-shadow: var(--m-shadow-sm);
}
.m-list-item__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-list-item__title { font-size: 15px; font-weight: 600; flex: 1; margin-right: 8px; }
.m-list-item__meta { font-size: 12px; color: var(--m-text-muted); }
.m-list-item__foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.m-list-item--muted { opacity: .72; }
.m-hall-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: linear-gradient(135deg, #FF2442, #FF6B81); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.m-hall-bar__num { font-size: 24px; font-weight: 700; line-height: 1; }
.m-hall-bar__label { font-size: 12px; opacity: .9; margin-top: 4px; }
.m-hall-bar__sub { font-size: 11px; opacity: .85; margin-top: 4px; }
.m-hall-bar__links { text-align: right; font-size: 12px; }
.m-hall-bar__tip { display: block; opacity: .85; margin-bottom: 6px; }
.m-hall-bar__link { display: inline-block; margin-left: 10px; color: #fff; text-decoration: underline; opacity: .95; }
.m-task-week-tag { display: inline-block; margin: 6px 0 4px; padding: 2px 8px; border-radius: 999px; background: #fff5f6; color: #FF2442; font-size: 11px; }
.m-reward { color: var(--m-primary); font-weight: 700; font-size: 16px; }

/* 任务大厅 — 统一圆角/阴影/间距，类型色仅角标 */
.m-page--hall { padding: 0; }
.m-hall-hero {
    position: relative;
    overflow: hidden;
    margin: 12px 12px 0;
    padding: 18px 16px 14px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff2442 0%, #ff4d6a 100%);
    box-shadow: var(--m-shadow-md);
}
.m-hall-hero__orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    pointer-events: none;
}
.m-hall-hero__orb--1 {
    width: 100px;
    height: 100px;
    top: -32px;
    right: -20px;
}
.m-hall-hero__orb--2 {
    width: 64px;
    height: 64px;
    bottom: 40px;
    left: -16px;
}
.m-hall-hero__main { position: relative; z-index: 1; }
.m-hall-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .06em;
    opacity: .9;
}
.m-hall-hero__num {
    margin-top: 6px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.m-hall-hero__label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}
.m-hall-hero__sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    opacity: .88;
}
.m-hall-hero__nav {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}
.m-hall-hero__nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.m-hall-hero__nav-icon { font-size: 15px; line-height: 1; }
.m-hall-section {
    margin: 12px 12px 0;
    padding: 0 0 12px;
}
.m-hall-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 14px;
    background: var(--m-card);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.m-hall-filter__item {
    flex: 1;
    min-width: 68px;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 9px 8px;
    font-size: 13px;
    color: var(--m-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.m-hall-filter__item.is-active {
    background: linear-gradient(135deg, #ff2442, #ff6b85);
    color: #fff;
    font-weight: 600;
}
.m-hall-filter__count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 36, 66, .08);
    color: var(--m-text-muted);
    font-size: 11px;
    line-height: 18px;
    vertical-align: middle;
}
.m-hall-filter__item.is-active .m-hall-filter__count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}
.m-hall-list { display: flex; flex-direction: column; gap: 10px; }
.m-hall-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--m-card);
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.m-hall-card__corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 4px 10px 5px 14px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
    border-radius: 0 13px 0 10px;
}
.m-hall-card--like .m-hall-card__corner { background: linear-gradient(135deg, #ffa726, #f57c00); }
.m-hall-card--comment .m-hall-card__corner { background: linear-gradient(135deg, #6b93ff, #3b6cff); }
.m-hall-card--note .m-hall-card__corner { background: linear-gradient(135deg, #ff5c72, #ff2442); }
.m-hall-card--default .m-hall-card__corner { background: linear-gradient(135deg, #aaa, #888); }
.m-hall-card:active {
    transform: scale(.99);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
.m-hall-card.is-muted { opacity: .72; }
.m-hall-card__body {
    padding: 14px 52px 12px 16px;
}
.m-hall-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.m-hall-card__mine {
    font-size: 11px;
    color: var(--m-text-muted);
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--m-surface-tag);
}
.m-hall-card__status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.3;
}
.m-hall-card__status--open { background: #e8f8ef; color: #07c160; }
.m-hall-card__status--full { background: #fff4e6; color: #d48806; }
.m-hall-card__status--stopped { background: var(--m-surface-tag); color: var(--m-text-muted); }
.m-hall-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.m-hall-card__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--m-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m-hall-card__price {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--m-primary);
}
.m-hall-card__price em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
    vertical-align: 1px;
}
.m-hall-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.m-hall-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--m-text-secondary);
    background: var(--m-surface-tag);
}
.m-hall-card__meta-item .layui-icon {
    font-size: 12px;
    color: #d4a8b4;
}
.m-hall-card__meta-item--deadline {
    color: var(--m-primary);
    background: var(--m-primary-light);
}
.m-hall-card__meta-item--deadline .layui-icon {
    color: #ff8a9b;
}
.m-hall-card__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--m-divider);
    background: transparent;
}
.m-hall-card__foot-main {
    flex: 1;
    min-width: 0;
}
.m-hall-card__foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.m-hall-card__foot-label {
    font-size: 12px;
    color: var(--m-text-muted);
}
.m-hall-card__foot-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--m-text);
    font-variant-numeric: tabular-nums;
}
.m-hall-card__foot-val.is-muted { color: var(--m-text-muted); font-weight: 500; }
.m-hall-card__foot-val.is-warn { color: #d48806; }
.m-hall-card__progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 36, 66, .08);
    overflow: hidden;
}
.m-hall-card__progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff2442, #ff8fa3);
    transition: width .3s ease;
}
.m-hall-card__arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    font-size: 13px;
    color: var(--m-primary);
    text-align: center;
    line-height: 26px;
    border-radius: 50%;
    background: var(--m-primary-light);
}
.m-hall-empty {
    padding: 48px 20px;
    text-align: center;
}
.m-hall-empty--filter { padding: 36px 20px; }
.m-hall-empty__icon { font-size: 42px; line-height: 1; color: #ddd; }
.m-hall-empty__title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--m-text);
}
.m-hall-empty--filter .m-hall-empty__title { margin-top: 0; }
.m-hall-empty__desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--m-text-muted);
    line-height: 1.5;
}

.m-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--m-primary-light); color: var(--m-primary); }
.m-tag--success { background: #E8F8EF; color: #07C160; }
.m-tag--warn { background: #FFF7E6; color: #FF9500; }
.m-tag--gray { background: var(--m-surface-tag); color: var(--m-text-muted); }

.m-form .layui-form-item { margin-bottom: 14px; }
.m-form .layui-input, .m-form .layui-textarea { border-radius: 8px; }
.m-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #FF2442, #FF6B81);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 36, 66, .28);
}
.m-btn--outline { background: var(--m-card); color: var(--m-primary); border: 1px solid rgba(255, 36, 66, .35); line-height: 42px; box-shadow: none; }
.m-btn-row { margin-top: 16px; }
.m-alert { padding: 10px 12px; border-radius: var(--m-radius-sm); margin-bottom: 12px; font-size: 13px; border: 1px solid transparent; }
.m-alert--ok { background: #E8F8EF; color: #07C160; border-color: rgba(7, 193, 96, .15); }
.m-alert--err { background: #FFF0F0; color: #FF2442; border-color: rgba(255, 36, 66, .12); }
.m-alert--muted { background: var(--m-primary-light); color: var(--m-text-secondary); border-color: var(--m-border-light); }
.m-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--m-text-muted);
    background: transparent;
    border-radius: var(--m-radius-md);
    border: 1px dashed var(--m-border);
}
.m-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--m-border-light);
    text-decoration: none;
    color: inherit;
    transition: color .15s;
}
.m-menu-item:active { color: var(--m-primary); }
.m-menu-item:last-child { border-bottom: none; }
.m-menu-item__text { flex: 1; font-size: 15px; }
.m-menu-item__arrow { color: #ccc; }
.m-verify-code { background: var(--m-primary-light); border: 1px dashed var(--m-primary); border-radius: 8px; padding: 16px; text-align: center; font-size: 24px; font-weight: 700; color: var(--m-primary); letter-spacing: 4px; margin: 12px 0; }

.m-login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 60px 24px 24px; }
.m-login-logo { font-size: 56px; margin-bottom: 16px; }
.m-login-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.m-login-sub { font-size: 13px; color: var(--m-text-muted); margin-bottom: 32px; }
.m-login-card { width: 100%; max-width: 400px; background: var(--m-card-elevated); border-radius: 16px; padding: 24px; box-shadow: var(--m-shadow-md); border: 1px solid var(--m-border-light); }
.m-sms-row { display: flex; gap: 8px; align-items: center; }
.m-sms-row .layui-input { flex: 1; }
.m-sms-btn { flex-shrink: 0; width: 112px; height: 38px; border: 1px solid var(--m-primary); border-radius: 8px; background: #fff; color: var(--m-primary); font-size: 13px; }
.m-sms-btn:disabled { opacity: .6; color: #999; border-color: #ddd; }
.m-page-loading { text-align: center; padding: 48px 16px; color: var(--m-text-muted); }

.m-page--detail { padding: 12px 12px 28px; background: transparent; }
.m-page--detail.has-action-bar {
    padding-bottom: calc(76px + var(--m-safe-bottom));
}

/* 底部参与按钮 */
.m-detail-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + var(--m-safe-bottom));
    background: rgba(253, 232, 239, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--m-border-light);
}
.m-detail-bar__btn {
    margin: 0;
    height: 46px;
    line-height: 46px;
    border-radius: 23px;
}

/* 参与任务抽屉 */
body.m-drawer-open .m-detail-bar { display: none; }
.layui-layer.m-task-drawer-layer {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
    box-shadow: 0 -8px 32px rgba(255, 36, 66, .12) !important;
    background: var(--m-card) !important;
    height: 82vh !important;
    max-height: 82vh !important;
}
.layui-layer.m-task-drawer-layer .layui-layer-content {
    padding: 0 !important;
    height: 82vh !important;
    max-height: 82vh !important;
    overflow: hidden !important;
}
.m-task-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 82vh;
    overflow: hidden;
}
.m-task-drawer__handle {
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--m-pink-200);
    flex-shrink: 0;
}
.m-task-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 10px;
    flex-shrink: 0;
}
.m-task-drawer__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--m-text);
}
.m-task-drawer__close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--m-primary-light);
    color: var(--m-text-muted);
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.m-task-drawer__form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.m-task-drawer__scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 12px;
    overscroll-behavior: contain;
}
.m-task-drawer__foot {
    flex-shrink: 0;
    padding: 10px 16px calc(10px + var(--m-safe-bottom));
    border-top: 1px solid var(--m-divider);
    background: var(--m-card);
    box-shadow: 0 -4px 12px rgba(255, 36, 66, .06);
}
.m-task-drawer__foot .m-submit-btn { margin: 0; }
.m-task-drawer__block { margin-bottom: 16px; }
.m-task-drawer__block:last-child { margin-bottom: 0; }
.m-task-drawer__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-text);
    margin-bottom: 10px;
}
.m-task-drawer__scroll .m-xhs-pick {
    margin-top: 0;
    max-height: 36vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}
.m-task-drawer__scroll .m-proof-upload {
    min-height: 120px;
    max-height: 200px;
    overflow: hidden;
}
.m-task-drawer__scroll .m-proof-upload__inner { min-height: 120px; }
.m-task-drawer__scroll .m-proof-upload.is-filled {
    min-height: auto;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-task-drawer__scroll .m-proof-upload__preview.is-show {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: var(--m-primary-light);
}

/* 任务详情头部 */
.m-task-head {
    margin-bottom: 12px;
    border-radius: var(--m-radius-lg);
    background: var(--m-card);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-task-head__body { padding: 16px; }
.m-task-head__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.m-task-head__title {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--m-text);
}
.m-task-head__price {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--m-primary);
    font-variant-numeric: tabular-nums;
}
.m-task-head__price em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
    vertical-align: 1px;
}
.m-task-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.m-task-head__meta .m-tag { flex-shrink: 0; }
.m-task-head__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--m-text-secondary);
    background: var(--m-surface-tag);
}
.m-task-head__meta-item .layui-icon {
    font-size: 12px;
    color: #d4a8b4;
}
.m-task-head__meta-item--deadline {
    color: var(--m-primary);
    background: var(--m-primary-light);
}
.m-task-head__meta-item--deadline .layui-icon { color: #ff8a9b; }
.m-task-progress {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--m-divider);
}
.m-task-progress__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.m-task-progress__label { font-size: 13px; color: var(--m-text-secondary); }
.m-task-progress__num { font-size: 13px; font-weight: 600; color: var(--m-text); font-variant-numeric: tabular-nums; }
.m-task-progress__foot { margin-top: 6px; font-size: 11px; color: var(--m-text-muted); text-align: right; }
.m-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 36, 66, .1);
    overflow: hidden;
}
.m-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff2442, #ff6b85);
    transition: width .3s ease;
}

/* 详情内容区块 */
.m-detail-section {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: var(--m-radius-lg);
    background: var(--m-card);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-detail-section__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-text-muted);
    margin-bottom: 10px;
}
.m-detail-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.m-detail-section__head .m-detail-section__title {
    margin-bottom: 0;
}
.m-detail-section__body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--m-text-secondary);
}
.m-detail-section__body .m-xhs-pick { margin-top: 0; }
.m-submit-section.m-detail-section { padding: 16px; }
.m-submit-section .m-detail-section__title { margin-bottom: 12px; }
.m-detail-link {
    color: var(--m-primary);
    text-decoration: none;
    word-break: break-all;
}
.m-detail-link:active { opacity: .75; }

.m-proof-preview-btn {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.layui-layer.m-proof-preview-layer {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.layui-layer.m-proof-preview-layer .layui-layer-content {
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
}
.m-proof-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .92);
}
.m-proof-preview__close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.m-proof-preview__close:active {
    background: rgba(255, 255, 255, .28);
}
.m-proof-preview__body {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(max(12px, env(safe-area-inset-top, 0px)) + 44px) 12px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
.m-proof-preview__body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.m-note-link__text {
    word-break: break-all;
    line-height: 1.6;
    color: var(--m-text-secondary);
}
.m-note-link__copy {
    flex-shrink: 0;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--m-border);
    border-radius: 999px;
    background: var(--m-card);
    color: var(--m-text-secondary);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}
.m-note-link__copy:active {
    opacity: .75;
    background: var(--m-primary-light);
    color: var(--m-primary);
    border-color: rgba(255, 36, 66, 0.25);
}

.m-order-card {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 16px;
    background: var(--m-card);
    border-radius: var(--m-radius-lg);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--m-divider);
    margin-bottom: 4px;
}
.m-order-card__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-text);
}
.m-order-card__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--m-text-secondary);
}
.m-order-card__row > span:first-child { flex-shrink: 0; color: var(--m-text-muted); }
.m-order-card__row > span:last-child { text-align: right; max-width: 68%; word-break: break-all; }
.m-order-card__hint { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--m-divider); }

.m-submitted-section__body {
    margin-top: 2px;
}
.m-submitted-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.m-submitted-item__name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--m-text);
    line-height: 1.45;
    word-break: break-all;
}
.m-submitted-item__divider {
    margin: 14px 0;
    border-top: 1px dashed var(--m-divider);
}
.m-submitted-section__hint {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--m-divider);
}
.m-submitted-item .m-order-card__row:first-of-type {
    margin-top: 8px;
}

.m-submit-panel { margin-top: 4px; }
.m-submit-section { margin-bottom: 12px; }
.m-field-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-primary-light);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.m-field-textarea:focus {
    border-color: rgba(255, 36, 66, .35);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, .08);
    background: var(--m-card-elevated);
}
.m-field-input { margin-top: 10px; border-radius: 10px; height: 44px; }
.m-field-text { word-break: break-all; line-height: 1.6; color: var(--m-text-secondary); }
.m-field-hint { margin-top: 8px; font-size: 12px; color: var(--m-text-muted); line-height: 1.5; }
.m-submit-btn { margin-top: 8px; box-shadow: 0 6px 16px rgba(255, 36, 66, .25); }

.m-xhs-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.m-xhs-pick__item {
    position: relative;
    display: block;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid var(--m-border);
    border-radius: var(--m-radius-md);
    background: var(--m-card-elevated);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.m-xhs-pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.m-xhs-pick__item.is-active {
    border-color: rgba(255, 36, 66, .45);
    background: var(--m-primary-light);
    box-shadow: 0 4px 14px rgba(255, 36, 66, .12);
}
.m-xhs-pick__check {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid var(--m-pink-200);
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}
.m-xhs-pick__item.is-active .m-xhs-pick__check {
    border-color: var(--m-primary);
    background: var(--m-primary);
    box-shadow: inset 0 0 0 3px #fff;
}
.m-xhs-pick__name { display: block; font-size: 15px; font-weight: 600; color: var(--m-text); line-height: 1.3; }
.m-xhs-pick__num { display: block; margin-top: 4px; font-size: 12px; color: var(--m-text-muted); }

.m-proof-upload {
    display: block;
    position: relative;
    min-height: 160px;
    border: 1.5px dashed var(--m-pink-200);
    border-radius: var(--m-radius-md);
    background: var(--m-primary-light);
    overflow: hidden;
    cursor: pointer;
}
.m-proof-upload.is-filled {
    border-style: solid;
    border-color: rgba(255, 36, 66, .25);
    background: var(--m-card-elevated);
}
.m-proof-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.m-proof-upload__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; padding: 20px; text-align: center; }
.m-proof-upload__icon { font-size: 36px; color: var(--m-primary); margin-bottom: 10px; }
.m-proof-upload__text { font-size: 15px; font-weight: 600; color: var(--m-text); }
.m-proof-upload__sub { margin-top: 6px; font-size: 12px; color: var(--m-text-muted); }
.m-proof-upload__preview { display: none; width: 100%; max-height: 280px; object-fit: contain; background: var(--m-primary-light); }
.m-proof-upload__preview.is-show { display: block; }

/* 收款设置弹窗 */
.layui-layer.m-payment-layer {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .16) !important;
    background: #fff !important;
}
.layui-layer.m-payment-layer .layui-layer-content {
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
}
.layui-layer.m-payment-layer .layui-layer-setwin {
    top: 12px;
    right: 12px;
}
.layui-layer.m-payment-layer .layui-layer-setwin .layui-layer-close {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #999;
    font-size: 16px;
    transition: background .2s, color .2s;
}
.layui-layer.m-payment-layer .layui-layer-setwin .layui-layer-close:hover {
    background: #fff;
    color: var(--m-primary);
}

.m-payment-modal { padding: 0 0 20px; }
.m-payment-modal__hero {
    padding: 28px 20px 20px;
    text-align: center;
    background: linear-gradient(180deg, #fff5f7 0%, #fff 100%);
}
.m-payment-modal__hero-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2442, #FF6B81);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 36, 66, .25);
}
.m-payment-modal__hero-icon .layui-icon {
    font-size: 26px;
    color: #fff;
}
.m-payment-modal__hero-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--m-text);
    line-height: 1.3;
}
.m-payment-modal__hero-desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--m-text-muted);
    line-height: 1.5;
    padding: 0 8px;
}
.m-payment-modal__form { padding: 0 20px; }
.m-payment-modal__card {
    background: var(--m-primary-light);
    border-radius: 12px;
    padding: 4px 14px;
    border: 1px solid var(--m-border-light);
}
.m-payment-modal__row {
    padding: 14px 0;
    border-bottom: 1px solid var(--m-divider);
}
.m-payment-modal__row--last { border-bottom: none; }
.m-payment-modal__row--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.m-payment-modal__label {
    display: block;
    font-size: 13px;
    color: var(--m-text-secondary);
    margin-bottom: 8px;
}
.m-payment-modal__row--inline .m-payment-modal__label {
    margin-bottom: 0;
}
.m-payment-modal__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8f4ff;
    color: #1677ff;
    font-size: 13px;
    font-weight: 600;
}
.m-payment-modal__input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: var(--m-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.m-payment-modal__input::placeholder { color: #bbb; }
.m-payment-modal__input:focus {
    border-color: rgba(255, 36, 66, .35);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, .08);
}
.m-payment-modal__submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(135deg, #FF2442, #FF6B81);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(255, 36, 66, .28);
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.m-payment-modal__submit:active { transform: scale(.98); }
.m-payment-modal__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.m-page--xhs { padding: 12px 12px 24px; background: transparent; }
.m-xhs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px;
    margin-bottom: 12px;
    border-radius: var(--m-radius-lg);
    color: #fff;
    background: linear-gradient(135deg, #ff2442 0%, #ff4d6a 100%);
    box-shadow: var(--m-shadow-md);
    border: none;
}
.m-xhs-head__num { font-size: 28px; font-weight: 700; line-height: 1; }
.m-xhs-head__label { margin-top: 6px; font-size: 13px; opacity: .95; }
.m-xhs-head__sub { margin-top: 4px; font-size: 11px; opacity: .82; }
.m-xhs-head__add {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.m-xhs-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: var(--m-radius-md);
    background: var(--m-card);
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.m-xhs-tabs__item {
    flex: 1;
    min-width: 72px;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 9px 8px;
    font-size: 13px;
    color: var(--m-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.m-xhs-tabs__item.is-active {
    background: linear-gradient(135deg, #ff2442, #ff6b85);
    color: #fff;
    font-weight: 600;
}
.m-xhs-tabs__count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 36, 66, .1);
    color: var(--m-primary);
    font-size: 11px;
    line-height: 18px;
    vertical-align: middle;
}
.m-xhs-tabs__item.is-active .m-xhs-tabs__count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.m-xhs-card {
    background: var(--m-card);
    border-radius: var(--m-radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-sm);
}
.m-xhs-card__main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.m-xhs-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-top: 1px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb8c9, #ff8fa3);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-xhs-card__info {
    flex: 1;
    min-width: 0;
}
.m-xhs-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.m-xhs-card__text {
    flex: 1;
    min-width: 0;
}
.m-xhs-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-xhs-card__subline {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--m-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-xhs-card__meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--m-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-xhs-card__top .m-tag {
    flex-shrink: 0;
    margin-top: 1px;
}
.m-xhs-card__status-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--m-text-secondary);
}
.m-xhs-card__verify {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #fff8f9;
    border: 1px dashed #ffc8d0;
    text-align: center;
}
.m-xhs-card__verify-label {
    font-size: 12px;
    color: var(--m-text-secondary);
}
.m-xhs-card__verify-code {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--m-primary);
    letter-spacing: 4px;
}
.m-xhs-card__verify-deadline {
    margin-top: 8px;
    font-size: 13px;
    color: #e65100;
}
.m-xhs-card__verify-deadline strong {
    font-size: 15px;
    color: var(--m-primary);
}
.m-xhs-card__verify-tip {
    margin-top: 6px;
    font-size: 11px;
    color: var(--m-text-muted);
}
.m-xhs-card__alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff0f0;
    color: #d93030;
    font-size: 12px;
    line-height: 1.5;
}
.m-xhs-card__actions {
    margin-top: 12px;
}
.m-xhs-card__remark-btn {
    flex-shrink: 0;
    border: 0;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--m-text-secondary);
    cursor: pointer;
}
.m-xhs-card__remark-btn:active {
    color: var(--m-primary);
}
.m-xhs-card__link {
    display: inline-block;
    font-size: 13px;
    color: var(--m-primary);
    text-decoration: none;
}
.m-xhs-remark-modal__input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--m-divider);
    border-radius: 10px;
    font-size: 15px;
    color: var(--m-text);
    background: var(--m-primary-light);
}
.m-xhs-remark-modal__input:focus {
    outline: none;
    border-color: var(--m-pink-200);
    background: var(--m-card-elevated);
}
.m-xhs-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--m-divider);
    background: transparent;
}
.m-xhs-card__foot-time {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: var(--m-text-muted);
}
.m-xhs-empty__btn {
    display: inline-block;
    width: auto;
    min-width: 160px;
    margin-top: 16px;
    padding: 0 24px;
}

.layui-layer.m-xhs-add-layer {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .16) !important;
    background: #fff !important;
}
.layui-layer.m-xhs-add-layer .layui-layer-content {
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
}
.layui-layer.m-xhs-add-layer .layui-layer-setwin {
    top: 12px;
    right: 12px;
}
.layui-layer.m-xhs-add-layer .layui-layer-setwin .layui-layer-close {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #999;
    font-size: 16px;
}
.m-xhs-add-modal { padding-bottom: 20px; }
.m-xhs-add-modal__hero {
    position: relative;
    padding: 28px 20px 18px;
    text-align: center;
    background: linear-gradient(180deg, #fff5f7 0%, #fff 100%);
}
.m-xhs-add-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: #999;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}
.m-xhs-add-modal__close:active {
    background: rgba(0, 0, 0, .1);
}
.m-xhs-add-modal__hero-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2442, #FF6B81);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 36, 66, .25);
}
.m-xhs-add-modal__hero-icon .layui-icon {
    font-size: 26px;
    color: #fff;
}
.m-xhs-add-modal__hero-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--m-text);
}
.m-xhs-add-modal__hero-desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--m-text-muted);
    line-height: 1.55;
    padding: 0 8px;
}
.m-xhs-add-modal__hero-desc + .m-xhs-add-modal__hero-desc {
    margin-top: 6px;
}
.m-xhs-add-modal__form { padding: 0 20px; }
.m-xhs-add-modal__textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--m-divider);
    border-radius: 12px;
    background: var(--m-primary-light);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.m-xhs-add-modal__textarea:focus {
    border-color: rgba(255, 36, 66, .35);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, .08);
    background: var(--m-card-elevated);
}
.m-xhs-add-modal__submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(135deg, #FF2442, #FF6B81);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(255, 36, 66, .28);
    cursor: pointer;
}
.m-xhs-add-modal__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.m-xhs-add-modal__cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: var(--m-text-muted);
    font-size: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
