﻿
:root {
    --navy: #0c2340;
    --navy2: #143356;
    --c: #3b82f6;
    --c2: #2563eb;
    --accent: #38bdf8;
    --c-soft: #eff6ff;
    --t: #111827;
    --t2: #4b5563;
    --t3: #9ca3af;
    --line: #e5e7eb;
    --bg: #eef1f5;
    --w: 1480px;
    --side: 140px;
    --topbar-h: 60px;
}

body {
    background: var(--bg) !important;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--t);
}

/* ===== 顶部导航：首页半透明叠藏青头图 ===== */
.ms-topbar {
    position: relative;
    z-index: 30;
    height: var(--topbar-h);
    overflow: visible;
    background: rgba(8, 22, 42, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ms-topbar-inner {
    width: var(--w);
    max-width: min(var(--w), calc(100% - 140px));
    margin: 0 auto;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: visible;
    position: relative;
}
.ms-topbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 52px;
    text-decoration: none;
}
.ms-topbar-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ms-topbar-nav { display: flex; flex: 1; gap: 4px; align-items: center; }
.ms-topbar-nav .ms-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-radius: 4px;
}
.ms-topbar-nav .ms-nav-link:hover,
.ms-topbar-nav .ms-nav-link.active,
.ms-nav-item:hover > .ms-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.ms-nav-caret {
    font-size: 12px;
    opacity: 0.75;
    margin-left: 2px;
}
.ms-nav-item {
    position: relative;
}
.ms-nav-drop {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 160px;
    padding: 6px;
    margin-top: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    border: 1px solid #eef0f3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 50;
}
/* 扩大热区，避免移入下拉时断开 */
.ms-nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}
.ms-nav-item:hover .ms-nav-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ms-nav-drop-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151 !important;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    background: transparent !important;
}
.ms-nav-drop-item:hover,
.ms-nav-drop-item.active {
    color: var(--c2) !important;
    background: var(--c-soft) !important;
}
.ms-nav-drop-item .iconfont {
    font-size: 14px;
    color: inherit;
}
.ms-topbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
}
.ms-topbar-user > a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}
.ms-user-menu {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}
.ms-user-trigger {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-sizing: border-box !important;
    background-color: rgba(255, 255, 255, 0.2);
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    text-indent: -9999px;
    font-size: 0;
    line-height: 0;
}
.ms-msg-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    pointer-events: none;
    border: 1px solid #fff;
}
.ms-msg-badge--avatar {
    top: -5px;
    right: -6px;
}
.ms-user-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ms-user-card-icon .ms-msg-badge {
    top: -8px;
    right: -12px;
}
.ms-user-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    z-index: 60;
    /* 透明过渡区，鼠标从头像移入面板不会断 */
    padding-top: 12px;
    margin-top: -2px;
}
.ms-user-menu:hover .ms-user-panel,
.ms-user-menu:focus-within .ms-user-panel,
.ms-user-menu.is-open .ms-user-panel {
    display: block;
}
.ms-user-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    border: 1px solid #eef0f3;
}
.ms-user-card-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}
.ms-user-card-avatar {
    display: block !important;
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background-color: #f3f4f6;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}
.ms-user-card-meta {
    min-width: 0;
    flex: 1;
}
.ms-user-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.ms-user-card-nick {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.ms-user-card-name .ms-sign-mini {
    flex-shrink: 0;
    margin: 0 !important;
}
.ms-user-card-nick a.ms-vip-badge {
    flex-shrink: 0;
}
.ms-user-uid,
.ms-member-uid {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}
.ms-user-uid {
    margin-top: 4px;
}
.ms-member-uid {
    margin-top: 6px;
}
.ms-user-vip-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 12px 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f3e6c8 !important;
    text-decoration: none !important;
    box-sizing: border-box;
}
.ms-user-vip-bar:hover {
    background: linear-gradient(90deg, #222 0%, #3a3a3a 100%);
    color: #fff6e0 !important;
}
.ms-user-vip-bar-text {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-user-vip-bar-text b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f8e7c2;
    line-height: 1.3;
}
.ms-user-vip-bar-text em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: rgba(243, 230, 200, 0.72);
    line-height: 1.3;
}
.ms-user-vip-bar-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    background: #f4ead6;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.ms-user-vip-bar:hover .ms-user-vip-bar-btn {
    background: #fff;
}
.ms-user-card-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280 !important;
    text-decoration: none;
}
.ms-user-card-link:hover {
    color: var(--c2) !important;
}
.ms-user-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px;
    padding: 8px 10px 12px;
    border-top: 1px solid #f3f4f6;
}
.ms-user-card-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 4px;
    border-radius: 8px;
    color: #4b5563 !important;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
}
.ms-user-card-item:hover {
    background: #f8fafc;
    color: var(--c2) !important;
}
.ms-user-card-item .iconfont,
.ms-user-card-icon .iconfont {
    font-size: 20px;
    line-height: 1;
    color: inherit;
}
.ms-user-card-item em {
    display: block;
    font-style: normal;
    font-size: 12px;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.ms-btn-primary {
    color: var(--navy) !important;
    background: #fff !important;
    padding: 3px 12px !important;
    border-radius: 4px;
    font-weight: 600;
}

/* ===== 藏青头图 + 几何装饰 ===== */
.ms-banner {
    position: relative;
    margin-top: calc(var(--topbar-h) * -1);
    padding: calc(var(--topbar-h) + 14px) 0 16px;
    background:
        linear-gradient(135deg, #0a1c33 0%, #0f2a4a 45%, #0c2340 100%);
    overflow: hidden;
}

.ms-banner-deco {
    pointer-events: none;
    position: absolute;
    inset: 0;
}
/* 左侧折线 / 三角 */
.ms-banner-deco::before {
    content: '';
    position: absolute;
    left: -80px;
    top: -40px;
    width: 420px;
    height: 420px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.14), transparent 60%),
        repeating-linear-gradient(
            -35deg,
            transparent 0 18px,
            rgba(255, 255, 255, 0.035) 18px 19px
        );
    clip-path: polygon(0 0, 78% 0, 42% 100%, 0 100%);
    transform: rotate(-6deg);
}
/* 右侧同心圆 */
.ms-banner-deco::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -60px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            transparent 0 28%,
            rgba(255, 255, 255, 0.04) 28% 29%,
            transparent 29% 42%,
            rgba(56, 189, 248, 0.08) 42% 43%,
            transparent 43% 56%,
            rgba(255, 255, 255, 0.05) 56% 57%,
            transparent 57% 70%,
            rgba(255, 255, 255, 0.035) 70% 71%,
            transparent 71%);
}

.ms-banner-inner {
    position: relative;
    z-index: 1;
    width: var(--w);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 300px) 1fr 260px;
    gap: 20px;
    align-items: stretch;
}

.ms-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0 8px;
    padding: 2px 4px 2px 2px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    overflow: visible;
    isolation: isolate;
}
/* 椭圆柔光：更大，扫完整块后再淡出 */
.ms-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    width: 72%;
    height: 145%;
    background: radial-gradient(
        ellipse 46% 42% at 50% 50%,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.16) 28%,
        rgba(186, 230, 253, 0.07) 45%,
        transparent 68%
    );
    transform: translate(-110%, -50%);
    mix-blend-mode: soft-light;
    animation: ms-brand-shine 3.8s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}
@keyframes ms-brand-shine {
    0%, 16% {
        transform: translate(-110%, -50%);
        opacity: 0;
    }
    26% {
        transform: translate(-30%, -50%);
        opacity: 1;
    }
    55% {
        transform: translate(95%, -50%);
        opacity: 1;
    }
    /* 扫过整块后再淡出 */
    72% {
        transform: translate(165%, -50%);
        opacity: 0;
    }
    100% {
        transform: translate(165%, -50%);
        opacity: 0;
    }
}
.ms-brand-mark {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.95), rgba(59, 130, 246, 0.55) 45%, rgba(255, 255, 255, 0.12));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.ms-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 13px;
    background: rgba(8, 28, 52, 0.92);
}
.ms-brand-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}
.ms-brand-name {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: 'Segoe UI', 'DIN Alternate', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    background: linear-gradient(92deg, #ffffff 10%, #e0f2fe 48%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.25));
}
.ms-brand-desc {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(226, 242, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-brand:hover .ms-brand-mark {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 12px 28px rgba(14, 165, 233, 0.28);
}

.ms-search-wrap {
    min-width: 0;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ms-engines {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 680px;
}
.ms-engine {
    border: 0;
    background: transparent;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 12px 8px;
    cursor: pointer;
    position: relative;
}
.ms-engine:hover { color: #fff; }
.ms-engine.on,
.ms-engine.is-on {
    color: #fff;
    font-weight: 600;
}
.ms-engine.on::after,
.ms-engine.is-on::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.ms-search-bar {
    display: flex;
    width: 100%;
    max-width: 680px;
    height: 46px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.ms-search-bar input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    font-size: 14px;
    min-width: 0;
}
.ms-search-bar button {
    width: 96px;
    border: 0;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: #083344;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.ms-search-bar button:hover {
    background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}

.ms-hots {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 10px;
    font-size: 12px;
    width: 100%;
    max-width: 680px;
}
.ms-hots a,
.ms-portal-hot-item {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.ms-hots a:hover,
.ms-portal-hot-item:hover { color: #fff; }

/* 右上角快讯（滚动） */
.ms-news {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 0;
}
.ms-news-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ms-news-hd b {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}
.ms-news-hd a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.ms-news-hd a:hover { color: #fff; }
.ms-news-viewport {
    height: 112px;
    overflow: hidden;
    position: relative;
}
.ms-news-track {
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
}
.ms-news-track.is-paused {
    animation-play-state: paused !important;
}
@keyframes ms-news-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.ms-news-track li a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.3;
}
.ms-news-track li a:hover { color: #fff; }
.ms-news-track li a p {
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-news-track li a em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 主体：上压头图 ===== */
.ms-home {
    width: var(--w);
    max-width: calc(100% - 24px);
    margin: -8px auto 40px;
    position: relative;
    z-index: 2;
}

/* 时钟条：首位节日倒计时 + 世界时钟（数量自适应） */
.ms-clocks {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
    overflow: visible;
}

.ms-holiday {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 200px;
    min-width: 148px;
    max-width: 240px;
    padding: 0 10px 0 4px;
    border-right: 1px solid #f0f1f3;
    cursor: default;
}
.ms-holiday::after {
    content: attr(data-tip);
    position: absolute;
    left: 8px;
    top: calc(100% + 8px);
    bottom: auto;
    z-index: 30;
    max-width: min(360px, 70vw);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-all;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    pointer-events: none;
}
.ms-holiday::before {
    content: '';
    position: absolute;
    left: 22px;
    top: calc(100% + 2px);
    bottom: auto;
    z-index: 31;
    border: 6px solid transparent;
    border-bottom-color: rgba(15, 23, 42, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    pointer-events: none;
}
.ms-holiday:hover::after,
.ms-holiday:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ms-holiday-ico {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 16px;
    color: #f97316;
}
.ms-holiday-viewport {
    flex: 1;
    min-width: 0;
    height: 28px;
    overflow: hidden;
    position: relative;
}
.ms-holiday-track {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform .45s ease;
}
.ms-holiday-track li {
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    color: var(--t2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-holiday-track li b {
    color: #f97316;
    font-weight: 700;
    padding: 0 2px;
}
.ms-holiday-track li em {
    font-style: normal;
    color: var(--c2);
    font-weight: 600;
}

.ms-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    padding: 2px 4px;
    font-size: 12px;
    color: var(--t2);
    white-space: nowrap;
}
.ms-clock span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-clock img {
    flex-shrink: 0;
    width: 20px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}
.ms-clock strong,
.ms-portal-clock-time {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--t);
    font-variant-numeric: tabular-nums;
}

/* 首页汇率胶囊条（同时钟条风格） */
.ms-rates {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.ms-rates:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}
.ms-rates-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 14px 0 6px;
    border-right: 1px solid #f0f1f3;
    white-space: nowrap;
}
.ms-rates-label em {
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: var(--t);
}
.ms-rates-label small {
    font-size: 12px;
    color: #94a3b8;
}
.ms-rates-list {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    min-width: 0;
    padding: 0 4px 0 10px;
    overflow-x: auto;
}
.ms-rates-item {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    font-size: 12px;
    color: var(--t2);
    white-space: nowrap;
}
.ms-rates-item b {
    font-weight: 600;
    color: var(--t);
}
.ms-rates-item em {
    font-style: normal;
    color: #94a3b8;
}
.ms-rates-item strong {
    font-weight: 700;
    color: var(--c2);
    font-variant-numeric: tabular-nums;
}
.ms-rates-item i {
    font-style: normal;
    color: #94a3b8;
}

.ms-body {
    display: grid;
    grid-template-columns: var(--side) 1fr;
    gap: 12px;
    align-items: start;
}

.ms-side {
    position: sticky;
    top: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
}
.ms-side-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 12px;
    color: var(--t2);
    text-decoration: none;
    font-size: 13px;
    border-left: 3px solid transparent;
}
.ms-side-item em {
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-side-item .iconfont {
    color: #a2a6b0;
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.ms-side-item:hover {
    background: #f8fafc;
    color: var(--navy);
}
.ms-side-item.on,
.ms-side-item.is-on {
    background: #eef5ff;
    color: var(--c2);
    border-left-color: var(--c);
    font-weight: 600;
}
.ms-side-item.on .iconfont,
.ms-side-item.is-on .iconfont { color: var(--c); }

.ms-main { min-width: 0; }

.ms-sec,
.ms-panel {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px 12px;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
    margin-bottom: 12px;
    scroll-margin-top: 16px;
}
.ms-sec:last-child,
.ms-panel:last-child { margin-bottom: 0; }

.ms-sec-hd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-sec-hd--bar,
.ms-sec-hd--tabs {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 14px;
}
.ms-sec-hd--tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.ms-sec-hd h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 96px;
}
.ms-sec-hd h2 .iconfont {
    color: var(--c);
    font-size: 16px;
}

.ms-sec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ms-tab {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--t2);
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ms-tab:hover { border-color: var(--c); color: var(--c); }
.ms-tab.on,
.ms-tab.is-on {
    background: var(--c);
    border-color: var(--c);
    color: #fff;
    font-weight: 600;
}

/* 选项卡样式：文字 + 底部下划线 */
.ms-sec-tabs--tabs {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 18px;
    border-bottom: 1px solid #e5e7eb;
}
.ms-sec-tabs--tabs .ms-tab {
    flex-shrink: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
    height: 36px;
    padding: 0 2px;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
}
.ms-sec-tabs--tabs .ms-tab:hover {
    color: var(--c2);
    background: transparent;
    border-color: transparent;
}
.ms-sec-tabs--tabs .ms-tab.on,
.ms-sec-tabs--tabs .ms-tab.is-on {
    color: var(--t);
    background: transparent;
    border-bottom-color: var(--c2);
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

/* 兼容旧横条胶囊 */
.ms-sec-tabs--bar {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    padding: 3px;
    background: #f3f4f6;
    border-radius: 999px;
    -webkit-overflow-scrolling: touch;
}
.ms-sec-tabs--bar .ms-tab {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.ms-sec-tabs--bar .ms-tab:hover {
    color: var(--c2);
    background: rgba(255, 255, 255, 0.7);
}
.ms-sec-tabs--bar .ms-tab.on,
.ms-sec-tabs--bar .ms-tab.is-on {
    background: var(--c);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
    transform: none;
}

.ms-grid {
    display: none;
    gap: 2px;
}
.ms-grid.on,
.ms-grid.is-on { display: grid; }

/* 大图标：圆形图标 + 下方标题（参考 AMZ123） */
.ms-grid--large {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px 2px;
    padding: 4px 0 8px;
}
.ms-link--large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 10px;
    text-decoration: none;
    color: var(--t);
    border-radius: 10px;
    transition: background .15s ease, transform .15s ease;
}
.ms-link--large:hover {
    background: #eef1f5;
    color: var(--t);
}
.ms-link--large .ms-link-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ms-link--large .ms-link-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-link--large .ms-link-ico b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--c);
    background: linear-gradient(180deg, #f8fbff 0%, var(--c-soft) 100%);
}
.ms-link--large .ms-link-meta {
    width: 100%;
    min-height: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ms-link--large .ms-link-txt {
    display: block;
    max-width: 100%;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.3;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 中图标：左图标 + 标题简介，固定一行 8 个 */
.ms-grid--medium {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px 8px;
}
.ms-link--medium {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 6px;
    text-decoration: none;
    color: var(--t);
    border-radius: 8px;
    overflow: hidden;
}
.ms-link--medium:hover { background: #dbeafe; }
.ms-link--medium:hover .ms-link-txt { color: var(--c2); }
.ms-link--medium .ms-link-ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ms-link--medium .ms-link-ico img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}
.ms-link--medium .ms-link-ico b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--c);
    background: var(--c-soft);
}
.ms-link--medium .ms-link-meta {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-link--medium .ms-link-txt {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.ms-link--medium .ms-link-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 2px;
    font-size: 12px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
}
/* 无简介：标题相对图标垂直居中 */
.ms-link--medium.ms-link--no-desc {
    align-items: center;
}

/* 小图标：固定一行 10 条，文字超长省略 */
.ms-grid--small {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px 6px;
    overflow: visible;
}
.ms-link--small {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--t);
    border-radius: 4px;
    overflow: hidden;
}
.ms-link--small[data-tip],
.ms-link--medium[data-tip] {
    position: relative;
    overflow: visible;
}
.ms-link--small[data-tip]:hover,
.ms-link--medium[data-tip]:hover {
    z-index: 30;
}
.ms-link--small[data-tip]::after,
.ms-link--medium[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 40;
    min-width: 120px;
    max-width: min(280px, 70vw);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    pointer-events: none;
}
.ms-link--small[data-tip]::before,
.ms-link--medium[data-tip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    z-index: 41;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    pointer-events: none;
}
.ms-link--small[data-tip]:hover::after,
.ms-link--medium[data-tip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.ms-link--small[data-tip]:hover::before,
.ms-link--medium[data-tip]:hover::before {
    opacity: 1;
    visibility: visible;
}
.ms-link--small:hover { background: #dbeafe; color: var(--c2); }
.ms-link--small .ms-link-ico {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ms-link--small .ms-link-ico img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.ms-link--small .ms-link-ico b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 600;
    color: var(--c);
    background: var(--c-soft);
    border-radius: 3px;
}
.ms-link--small .ms-link-meta {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.ms-link--small .ms-link-txt {
    display: block;
    font-size: 13px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 多链接：绝对定位浮层，不撑高父级 */
.ms-link--multi {
    cursor: default;
    position: relative;
}
.ms-link--multi .ms-link-meta {
    position: relative;
}
.ms-link--multi .ms-link-multi {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    max-width: calc(100% + 8px);
    padding: 1px 2px;
    min-height: 0;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    z-index: 3;
    pointer-events: none;
}
.ms-link--multi .ms-link-multi-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #4b5563;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: color .15s ease;
}
.ms-link--multi .ms-link-multi-item + .ms-link-multi-item {
    border-left: 1px solid #d1d5db;
}
.ms-link--multi .ms-link-multi-item:hover {
    background: transparent;
    border-color: transparent;
    color: var(--c2);
    box-shadow: none;
    transform: none;
}
.ms-link--large.ms-link--multi:hover {
    background: #e8edf5;
    color: var(--t);
}
.ms-link--large.ms-link--multi:hover .ms-link-txt {
    visibility: hidden;
}
.ms-link--large.ms-link--multi:hover .ms-link-multi {
    display: inline-flex;
    pointer-events: auto;
}
.ms-link--medium.ms-link--multi:hover .ms-link-txt,
.ms-link--medium.ms-link--multi:hover .ms-link-desc {
    visibility: hidden;
}
.ms-link--medium.ms-link--multi:hover .ms-link-multi {
    display: inline-flex;
    left: 0;
    transform: translateY(-50%);
    pointer-events: auto;
}
.ms-link--small.ms-link--multi:hover .ms-link-txt {
    visibility: hidden;
}
.ms-link--small.ms-link--multi:hover .ms-link-multi {
    display: inline-flex;
    pointer-events: auto;
}
.ms-link--medium.ms-link--multi:hover,
.ms-link--small.ms-link--multi:hover {
    background: #eef1f5;
}

.ms-foot {
    margin-top: 8px;
    padding: 16px 0 24px;
    text-align: center;
    font-size: 12px;
    color: var(--t3);
}
.ms-foot-inner {
    width: var(--w);
    max-width: calc(100% - 24px);
    margin: 0 auto;
}
.ms-foot-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}
.ms-foot-links a { color: var(--t2); text-decoration: none; }
.ms-foot-links a:hover { color: var(--c); }
.ms-foot-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 8px;
    color: var(--t3);
}
.ms-foot-partners-label { color: var(--t3); }
.ms-foot-partners a { color: var(--t2); text-decoration: none; }
.ms-foot-partners a:hover { color: var(--c); }

@media (max-width: 1100px) {
    .ms-banner-inner { grid-template-columns: 1fr; }
    .ms-brand { justify-content: center; }
    .ms-news { max-width: 420px; margin: 0 auto; }
    .ms-grid--large { grid-template-columns: repeat(8, 1fr); }
    .ms-grid--medium { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .ms-grid--small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ms-clocks {
        flex-wrap: wrap;
        gap: 6px 0;
    }
    .ms-rates {
        flex-wrap: wrap;
        gap: 6px 0;
    }
    .ms-rates-label {
        flex: 1 1 100%;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #f0f1f3;
        padding: 2px 4px 8px;
        margin-bottom: 2px;
    }
    .ms-rates-list {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 4px;
        row-gap: 4px;
    }
    .ms-holiday {
        flex: 1 1 100%;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #f0f1f3;
        padding: 4px 4px 8px;
        margin-bottom: 4px;
    }
    .ms-clock {
        flex: 1 1 30%;
    }
}
@media (max-width: 768px) {
    .ms-body { grid-template-columns: 1fr; }
    .ms-side {
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 6px;
        gap: 4px;
    }
    .ms-side-item {
        flex-shrink: 0;
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 8px 12px;
    }
    .ms-side-item.on,
    .ms-side-item.is-on {
        border-bottom-color: var(--c);
        background: var(--c-soft);
    }
    .ms-grid--large { grid-template-columns: repeat(4, 1fr); }
    .ms-grid--medium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-grid--small { grid-template-columns: repeat(2, 1fr); }
    .ms-topbar-nav { display: none; }
}

/* ===== 非首页：顶栏白底 ===== */
body:not(:has(#ms-portal)) .ms-topbar {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body:not(:has(#ms-portal)) .ms-topbar-nav .ms-nav-link {
    color: #374151;
}
body:not(:has(#ms-portal)) .ms-topbar-nav .ms-nav-link:hover,
body:not(:has(#ms-portal)) .ms-topbar-nav .ms-nav-link.active,
body:not(:has(#ms-portal)) .ms-nav-item:hover > .ms-nav-link {
    color: var(--c2);
    background: var(--c-soft);
}
body:not(:has(#ms-portal)) .ms-topbar-user > a {
    color: #4b5563;
}
body:not(:has(#ms-portal)) .ms-user-trigger {
    border-color: #e5e7eb;
    background-color: #f3f4f6;
}
body:not(:has(#ms-portal)) .ms-btn-primary {
    color: #fff !important;
    background: var(--c) !important;
}
body:not(:has(#ms-portal)) .ms-nav-caret {
    color: inherit;
}

/* ===== 内页：新闻列表 ===== */
.ms-news-page {
    padding: 10px 0 28px;
    background: #f5f6f8;
}
.ms-news-page-inner {
    width: 1200px;
    max-width: calc(100% - 24px);
    margin: 0 auto;
}
.ms-news-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.ms-news-crumb a {
    color: #6b7280;
    text-decoration: none;
}
.ms-news-crumb a:hover,
.ms-news-crumb a.is-on {
    color: var(--c2);
}

.ms-news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

.ms-slider {
    position: relative;
    height: 228px;
    border-radius: 6px;
    overflow: hidden;
    background: #111827;
}
.ms-slider-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}
.ms-slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}
.ms-slider-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    text-decoration: none !important;
    color: #fff !important;
}
.ms-slider-item:hover,
.ms-slider-item:focus,
.ms-slider-item:active {
    color: #fff !important;
    text-decoration: none !important;
}
.ms-slider-item.is-on {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.ms-slider-cover {
    position: absolute;
    inset: 0;
    background: #f3f4f6 center / 100% 100% no-repeat;
    transform: none;
    transition: none;
}
.ms-slider-item:hover .ms-slider-cover {
    transform: none;
}
.ms-slider-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 36px 14px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 78%);
}
.ms-slider-mask em {
    display: none;
}
.ms-slider-mask b {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff !important;
}
.ms-slider-item:hover .ms-slider-mask b {
    color: #fff !important;
}
.ms-slider-mask p {
    display: none;
}
.ms-slider-dots {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 5px;
}
.ms-slider-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
.ms-slider-dot.is-on {
    background: #fff;
    width: 14px;
    border-radius: 999px;
}

.ms-flash {
    display: flex;
    flex-direction: column;
    height: 228px;
    padding: 10px 12px 8px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 6px;
}
.ms-flash-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-flash-hd b {
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
}
.ms-flash-hd a {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}
.ms-flash-hd a:hover { color: #2563eb; }
.ms-flash-viewport {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}
.ms-flash-viewport .ms-news-track {
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
}
.ms-flash-viewport .ms-news-track.is-paused {
    animation-play-state: paused !important;
}
.ms-flash-viewport .ms-news-track li a {
    display: grid;
    grid-template-columns: 6px 52px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0;
    border-bottom: 0;
    text-decoration: none;
    color: #1f2937;
}
.ms-flash-viewport .ms-news-track li a:hover p {
    color: #2563eb;
}
.ms-flash-viewport .ms-news-track li a i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
}
.ms-flash-viewport .ms-news-track li a em {
    font-style: normal;
    font-size: 11px;
    color: #60a5fa;
    white-space: nowrap;
}
.ms-flash-viewport .ms-news-track li a p {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-news-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    align-items: start;
}
.ms-news-main {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 8px 14px 14px;
}
.ms-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    margin-bottom: 4px;
    padding: 4px 0 10px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-news-tab {
    position: relative;
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
}
.ms-news-tab:hover { color: #2563eb; }
.ms-news-tab.is-on {
    color: #2563eb;
    font-weight: 700;
}
.ms-news-tab.is-on::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
    transform: translateX(-50%);
}
.ms-news-empty {
    padding: 36px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
.ms-news-list {
    display: flex;
    flex-direction: column;
}
.ms-news-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: inherit;
}
.ms-news-item:last-child { border-bottom: 0; }
.ms-news-item-main {
    display: block;
    text-decoration: none;
    color: inherit;
}
.ms-news-item-main:hover b,
.ms-news-item-cover:hover + .ms-news-item-body .ms-news-item-main b {
    color: #2563eb;
}
.ms-news-item-cover {
    display: block;
    width: 100%;
    height: 88px;
    border-radius: 4px;
    background: #f3f4f6 center / 100% 100% no-repeat;
    text-decoration: none;
}
.ms-news-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 2px;
}
.ms-news-item-body b {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-news-item-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-news-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}
.ms-news-item-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.ms-news-author,
.ms-article-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #6b7280;
    text-decoration: none;
}
a.ms-news-author:hover,
a.ms-article-author:hover {
    color: var(--c2);
}
a.ms-news-author:hover em,
a.ms-article-author:hover em {
    color: var(--c2);
}
.ms-news-author > img,
.ms-article-author > img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.ms-news-author em,
.ms-article-author em {
    font-style: normal;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-article-author {
    margin-right: 12px;
    font-size: 13px;
}
.ms-article-author > img {
    width: 24px;
    height: 24px;
}
.ms-news-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ms-news-item-tags em {
    font-style: normal;
    padding: 0 6px;
    border-radius: 2px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    line-height: 18px;
}
.ms-news-page-pager {
    margin-top: 8px;
}

/* ===== 分页美化（接近 Element 页码分页） ===== */
.ms-pager {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}
.ms-pager-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.ms-pager .pages {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.pages,
.ub-page .pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 4px 0;
}
.pages .page,
.pages .current,
.pages .more,
.ub-page .pages .page,
.ub-page .pages .current,
.ub-page .pages .more,
.ms-pager .pages .page,
.ms-pager .pages .current,
.ms-pager .pages .more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 11px;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.pages .page.prev,
.pages .page.next,
.ms-pager .pages .page.prev,
.ms-pager .pages .page.next {
    min-width: 68px;
    padding: 0 12px;
}
.pages .page:hover:not(.is-disabled),
.ub-page .pages .page:hover:not(.is-disabled),
.ms-pager .pages .page:hover:not(.is-disabled) {
    color: var(--c2) !important;
    border-color: #c6e2ff;
    background: #ecf5ff;
}
.pages .current,
.ub-page .pages .current,
.ms-pager .pages .current {
    color: #fff !important;
    border-color: var(--c2);
    background: var(--c2);
    cursor: default;
}
.pages .page.is-disabled,
.ms-pager .pages .page.is-disabled {
    color: #c0c4cc !important;
    background: #fff;
    border-color: #ebeef5;
    cursor: not-allowed;
}
.pages .more,
.ub-page .pages .more,
.ms-pager .pages .more {
    border-color: transparent;
    background: transparent;
    color: #909399 !important;
    min-width: 24px;
    padding: 0 4px;
}
.ms-pager-total {
    color: #606266;
    font-size: 13px;
    line-height: 32px;
    white-space: nowrap;
}

.ms-news-side-box {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 10px 10px 12px;
}
.ms-news-side-hd {
    margin-bottom: 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.ms-news-side-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ms-news-side-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
}
.ms-news-side-menu a:hover {
    background: #f8fafc;
    color: #2563eb;
}
.ms-news-side-menu a.is-on {
    background: #eff6ff;
    border-left-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}

.ms-news-hot-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 2px 2px 10px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-news-hot-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}
.ms-news-hot-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.ms-news-hot-tab {
    flex: none;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
}
.ms-news-hot-tab:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}
.ms-news-hot-tab.is-on {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.ms-news-hot-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ms-news-hot-list.is-on {
    display: block;
}
.ms-news-hot-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 2px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-news-hot-item:last-child {
    border-bottom: 0;
}
.ms-news-hot-body {
    min-width: 0;
}
.ms-news-hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    flex-shrink: 0;
}
.ms-news-hot-rank.is-top {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}
.ms-news-hot-link {
    display: block;
    color: #374151;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-news-hot-link:hover {
    color: #2563eb;
}
.ms-news-hot-date {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}
.ms-news-hot-empty {
    padding: 28px 8px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .ms-news-hero { grid-template-columns: 1fr; }
    .ms-slider,
    .ms-flash { height: 200px; }
    .ms-news-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ms-news-item { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
    .ms-news-item-cover { height: 68px; }
    .ms-slider,
    .ms-flash { height: 180px; }
    .ms-slider-mask b { font-size: 14px; }
    .ms-news-item-body b { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; }
}

/* ===== VIP 等级图标 ===== */
.ms-vip-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: default;
    line-height: 0;
}
a.ms-vip-badge,
a .ms-vip-badge {
    cursor: pointer;
}
.ms-vip-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 0 !important;
    background: transparent !important;
}
.ms-vip-badge::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 40;
}
.ms-vip-badge::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 40;
}
.ms-vip-badge:hover::after,
.ms-vip-badge:hover::before {
    opacity: 1;
    visibility: visible;
}
.ms-vip-badge.is-default {
    opacity: 0.92;
}
.ms-author-card-actions:not(:has(.ms-follow-btn)) {
    grid-template-columns: 1fr;
}

/* ===== 关注按钮 / 作者卡片 / 用户主页 ===== */
.ms-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--c);
    border-radius: 16px;
    background: #fff;
    color: var(--c) !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
}
.ms-follow-btn:hover { background: var(--c-soft); }
.ms-follow-btn.is-on {
    border-color: var(--c2);
    color: #fff !important;
    background: var(--c2);
    font-weight: 600;
}
.ms-follow-btn.is-on:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.ms-follow-btn.is-self,
.ms-follow-btn.is-self:hover {
    min-width: 108px;
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af !important;
    cursor: not-allowed;
    font-weight: 500;
}
.ms-follow-btn.sm {
    min-width: 68px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 4px;
}
.ub-article .attr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #9ca3af;
    font-size: 13px;
}
.ms-article-main.ub-panel {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    box-shadow: none;
}
.ms-article-main .ub-article > h1 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 800;
    color: var(--t);
    line-height: 1.4;
}
.ms-article-author em {
    color: var(--c2);
    font-weight: 600;
}
.ms-article-views {
    margin-left: 4px;
    color: #9ca3af;
    font-size: 13px;
}
.ms-article-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-left: -68px;
    width: calc(100% + 68px);
    overflow: visible;
}
.ms-article-main {
    flex: 1;
    min-width: 0;
}
.ms-article-actions {
    position: sticky;
    top: 120px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 0 0 52px;
    width: 52px;
    margin: 64px 0 0;
}
.ms-article-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: var(--t2) !important;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1;
}
.ms-article-action-count {
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: 8px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 1px solid var(--c2);
    border-radius: 9px;
    background: #fff;
    color: var(--c2);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
.ms-article-action-count.is-zero {
    display: none;
}
.ms-article-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ms-article-action-icon .iconfont {
    font-size: 20px;
    line-height: 1;
}
.ms-article-action em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}
.ms-article-action:hover .ms-article-action-icon {
    border-color: #bfdbfe;
    color: var(--c2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.ms-article-action:hover em {
    color: var(--c2);
}
.ms-article-action.is-on .ms-article-action-icon {
    border-color: var(--c2);
    background: var(--c2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.ms-article-action.is-on em {
    color: var(--c2);
}
@media (max-width: 1100px) {
    .ms-article-wrap {
        display: block;
        margin-left: 0;
        width: 100%;
    }
    .ms-article-actions {
        position: fixed;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 52px;
        flex-basis: 52px;
        gap: 12px;
    }
}
.ms-toast {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    animation: ms-toast-in .18s ease;
}
.ms-toast.is-out {
    animation: ms-toast-out .18s ease forwards;
}
.ms-toast-icon {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
}
.ms-toast.is-error .ms-toast-icon {
    background: #ef4444;
}
.ms-toast.is-success .ms-toast-icon::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}
.ms-toast.is-error .ms-toast-icon::before,
.ms-toast.is-error .ms-toast-icon::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    width: 2px;
    height: 12px;
    background: #fff;
    border-radius: 1px;
}
.ms-toast.is-error .ms-toast-icon::before {
    transform: rotate(45deg);
}
.ms-toast.is-error .ms-toast-icon::after {
    transform: rotate(-45deg);
}
.ms-toast-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}
.ms-toast-close {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
}
.ms-toast-close:hover {
    color: #6b7280;
}
@keyframes ms-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ms-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}
.ms-article-author {
    text-decoration: none;
    color: inherit;
}
.ms-author-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 22px 16px 16px;
    margin-bottom: 16px;
    text-align: center;
}
.ms-author-card-avatar {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #f3f4f6 center/cover no-repeat;
}
.ms-author-card-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.ms-author-card-sign {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}
.ms-author-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}
.ms-author-card-stats span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}
.ms-author-card-stats b {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    color: var(--c2);
    font-weight: 700;
}
.ms-author-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ms-author-card-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid var(--c2);
    border-radius: 6px;
    color: var(--c2) !important;
    text-decoration: none !important;
    font-size: 13px;
    background: #fff;
}
.ms-author-card-home:hover {
    background: var(--c-soft);
}
.ms-author-card-actions .ms-follow-btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    border-radius: 6px;
    border-color: var(--c2);
    color: var(--c2) !important;
}
.ms-author-card-actions .ms-follow-btn.is-on {
    border-color: var(--c2);
    color: #fff !important;
    background: var(--c2);
    font-weight: 600;
}
.ms-author-card-actions .ms-follow-btn.is-on:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.ms-member-home {
    position: relative;
    padding-bottom: 48px;
}
.ms-member-home-banner {
    height: 148px;
    background:
        radial-gradient(ellipse 80% 120% at 12% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 100% at 88% 30%, rgba(59, 130, 246, 0.28), transparent 50%),
        linear-gradient(135deg, #0a1c33 0%, #143356 48%, #0c2340 100%);
    position: relative;
    overflow: hidden;
}
.ms-member-home-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 90%);
    pointer-events: none;
}
.ms-member-home-body {
    margin-top: -72px;
    position: relative;
    z-index: 2;
}
.ms-member-home-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}
.ms-member-home-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.ms-member-home-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb, 0 8px 20px rgba(15, 23, 42, 0.12);
    background: #f3f4f6 center/cover no-repeat;
    flex-shrink: 0;
}
.ms-member-home-info {
    flex: 1;
    min-width: 0;
}
.ms-member-home-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.ms-member-home-titles h1 {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--t);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ms-member-home-titles h1 .ms-vip-badge {
    width: 22px;
    height: 22px;
}
.ms-member-home-titles p {
    margin: 8px 0 0;
    color: var(--t2);
    font-size: 13px;
    line-height: 1.55;
    max-width: 640px;
}
.ms-member-home-actions {
    flex-shrink: 0;
    padding-top: 6px;
}
.ms-member-home-actions .ms-follow-btn {
    min-width: 96px;
    height: 34px;
    border-radius: 17px;
    background: var(--c2);
    border-color: var(--c2);
    color: #fff !important;
    font-weight: 600;
}
.ms-member-home-actions .ms-follow-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.ms-member-home-actions .ms-follow-btn.is-on {
    background: var(--c2);
    border-color: var(--c2);
    color: #fff !important;
    font-weight: 600;
}
.ms-member-home-actions .ms-follow-btn.is-on:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.ms-member-home-actions .ms-follow-btn.is-self,
.ms-member-home-actions .ms-follow-btn.is-self:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af !important;
}
.ms-member-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 88px));
    gap: 10px;
    margin-top: 18px;
    max-width: 420px;
}
.ms-member-home-stat {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    border: 1px solid #e8eef6;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}
.ms-member-home-stat b {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    color: var(--c2);
    font-weight: 700;
}
.ms-member-home-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--t3);
}
.ms-member-home-main {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 8px 8px 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ms-member-home-tabs {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 14px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.ms-member-home-tabs span {
    display: inline-block;
    padding: 8px 2px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
}
.ms-member-home-tabs span.is-on {
    color: var(--c2);
    border-bottom: 2px solid var(--c2);
    margin-bottom: -1px;
}
.ms-member-home-tabs em {
    font-style: normal;
    font-size: 12px;
    color: var(--t3);
}
.ms-member-home-empty {
    padding: 56px 0 48px;
    text-align: center;
    color: #9ca3af;
}
.ms-member-home-empty .iconfont {
    font-size: 28px;
    opacity: 0.55;
}
.ms-member-home-empty p {
    margin: 10px 0 0;
    font-size: 13px;
}
.ms-member-home-list {
    padding: 4px 6px 0;
}
.ms-member-home-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease;
}
.ms-member-home-item + .ms-member-home-item {
    margin-top: 2px;
}
.ms-member-home-item:hover {
    background: #f8fbff;
}
.ms-member-home-cover {
    display: block;
    height: 96px;
    border-radius: 10px;
    background: #eef2f7 center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.ms-member-home-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0;
}
.ms-member-home-item-body b {
    font-size: 16px;
    color: #111827;
    line-height: 1.45;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-member-home-item:hover b { color: var(--c2); }
.ms-member-home-item-body p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-member-home-item-body em {
    margin-top: auto;
    padding-top: 10px;
    font-style: normal;
    font-size: 12px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ms-member-home-item-body em .iconfont {
    font-size: 12px;
    opacity: 0.8;
}
.ms-follow-list-hd span {
    margin-left: 8px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}
.ms-fav-page,
.ms-follow-page {
    padding: 4px 8px 8px;
}
.ms-fav-hd,
.ms-follow-hd {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 6px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-fav-hd b,
.ms-follow-hd b {
    font-size: 16px;
    color: var(--t);
}
.ms-fav-hd em,
.ms-follow-hd em {
    font-style: normal;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}
.ms-fav-empty,
.ms-follow-empty {
    padding: 56px 0 48px;
    text-align: center;
    color: #9ca3af;
}
.ms-fav-empty .iconfont,
.ms-follow-empty .iconfont {
    font-size: 28px;
    opacity: 0.5;
}
.ms-fav-empty p,
.ms-follow-empty p {
    margin: 10px 0 0;
    font-size: 13px;
}
.ms-fav-list {
    padding: 4px 0 0;
}
.ms-fav-item {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 6px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s ease;
}
.ms-fav-item:last-child {
    border-bottom: 0;
}
.ms-fav-item:hover {
    background: #f8fbff;
}
.ms-fav-cover {
    display: block;
    height: 88px;
    border-radius: 8px;
    background: #eef2f7 center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.ms-fav-cover.is-empty {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}
.ms-fav-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0;
}
.ms-fav-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-fav-title:hover {
    color: var(--c2);
}
.ms-fav-title.is-gone {
    color: #9ca3af;
    font-weight: 500;
}
.ms-fav-body p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-fav-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.ms-fav-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ms-fav-meta .iconfont {
    font-size: 12px;
}
.ms-fav-meta i {
    font-style: normal;
}
.ms-fav-cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--c2);
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}
.ms-fav-cancel .iconfont {
    font-size: 14px;
}
.ms-fav-cancel em {
    font-style: normal;
}
.ms-fav-cancel .off {
    display: none;
}
.ms-fav-cancel:hover {
    color: #dc2626;
    background: #fef2f2;
}
.ms-fav-cancel:hover .on {
    display: none;
}
.ms-fav-cancel:hover .off {
    display: inline;
}
@media (max-width: 768px) {
    .ms-fav-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
    }
    .ms-fav-cover {
        height: 68px;
    }
    .ms-fav-title {
        font-size: 15px;
    }
}
.ms-follow-list {
    padding: 4px 0 0;
}
.ms-follow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s ease;
}
.ms-follow-item:last-child {
    border-bottom: 0;
}
.ms-follow-item:hover {
    background: #f8fbff;
}
.ms-follow-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6 center/cover no-repeat;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.ms-follow-item-body {
    flex: 1;
    min-width: 0;
}
.ms-follow-item-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
}
.ms-follow-item-name:hover {
    color: var(--c2);
}
.ms-follow-item-body p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-follow-item-stats {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}
.ms-follow-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--c2);
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}
.ms-follow-action.is-on {
    color: var(--c2);
}
.ms-follow-action:hover {
    background: var(--c-soft);
}
.ms-follow-action.is-on:hover {
    color: #dc2626;
    background: #fef2f2;
}
.ms-article-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.ms-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.ms-article-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: none;
    border-radius: 4px;
    background: #f2f3f5;
    color: #6b7280 !important;
    font-size: 13px;
    line-height: 26px;
    text-decoration: none !important;
}
.ms-article-tag:hover {
    background: #e8f1fe;
    color: #3b82f6 !important;
}
.ms-article-disclaimer {
    margin-bottom: 22px;
    color: #9ca3af;
}
.ms-article-disclaimer-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.4;
}
.ms-article-disclaimer-text {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
    word-break: break-all;
}
.ms-article-pager {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.ms-article-pager-item {
    flex: 1;
    min-width: 0;
}
.ms-article-pager-item.is-next {
    text-align: right;
}
.ms-article-pager-item a,
.ms-article-pager-item > span {
    display: block;
    text-decoration: none !important;
}
.ms-article-pager-label {
    display: block;
    margin-bottom: 6px;
    color: var(--c2);
    font-size: 13px;
    line-height: 1.3;
}
.ms-article-pager-item > span .ms-article-pager-label {
    color: #9ca3af;
}
.ms-article-pager-item em {
    display: block;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-article-pager-item a:hover em {
    color: var(--c2);
}
.ms-article-pager-item > span em {
    color: #9ca3af;
    font-weight: 400;
}
@media (max-width: 640px) {
    .ms-article-pager {
        flex-direction: column;
        gap: 14px;
    }
    .ms-article-pager-item.is-next {
        text-align: left;
    }
}
.ms-comment {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.ms-comment-hd {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.ms-comment-hd b {
    font-size: 16px;
    color: var(--t);
}
.ms-comment-hd em {
    font-style: normal;
    font-size: 13px;
    color: #9ca3af;
}
.ms-comment-form {
    margin-bottom: 8px;
}
.ms-comment-input {
    display: block;
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
    color: #111827;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}
.ms-comment-input:focus {
    outline: none;
    border-color: #bfdbfe;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.ms-comment-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.ms-comment-tip {
    font-size: 12px;
    color: #9ca3af;
}
.ms-comment-submit {
    flex-shrink: 0;
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--c2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ms-comment-submit:hover {
    opacity: 0.92;
}
.ms-comment-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.ms-comment-login {
    padding: 18px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
.ms-comment-login a {
    color: var(--c2);
    font-weight: 600;
    text-decoration: none;
}
.ms-comment-empty {
    padding: 28px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
.ms-comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ms-comment-item:last-child {
    border-bottom: 0;
}
.ms-comment-item.is-pending {
    background: #f8fbff;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}
.ms-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6 center/cover no-repeat;
    flex-shrink: 0;
}
.ms-comment-body {
    flex: 1;
    min-width: 0;
}
.ms-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-comment-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.ms-comment-name .ms-vip-badge {
    width: 16px;
    height: 16px;
}
.ms-comment-name:hover {
    color: var(--c2);
}
.ms-comment-status {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
}
.ms-comment-status.is-verifying {
    background: #eff6ff;
    color: #2563eb;
}
.ms-comment-status.is-fail {
    background: #fef2f2;
    color: #dc2626;
}
.ms-comment-time {
    font-size: 12px;
    color: #9ca3af;
}
.ms-comment-text {
    margin-top: 6px;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.ms-comment-ops {
    margin-top: 6px;
}
.ms-comment-reply-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}
.ms-comment-reply-btn:hover {
    color: var(--c2);
}
.ms-comment-reply-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.ms-comment-reply .ms-comment-reply-box {
    margin-top: 8px;
}
.ms-comment-reply-input {
    min-height: 64px;
    background: #fff;
}
.ms-comment-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.ms-comment-cancel {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}
.ms-comment-cancel:hover {
    border-color: #d1d5db;
    color: #374151;
}
.ms-comment-replies {
    margin-top: 10px;
}
.ms-comment-reply {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}
.ms-comment-reply.is-pending {
    background: #f8fbff;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}
.ms-comment-avatar-sm {
    width: 32px;
    height: 32px;
}
.ms-comment-reply-to {
    font-size: 12px;
    color: #9ca3af;
}
.ms-comment-name-soft {
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
}
@media (max-width: 768px) {
    .ms-member-home-banner { height: 112px; }
    .ms-member-home-body { margin-top: -56px; }
    .ms-member-home-card { padding: 16px; }
    .ms-member-home-profile { flex-direction: column; align-items: stretch; gap: 14px; }
    .ms-member-home-avatar { width: 76px; height: 76px; }
    .ms-member-home-hd { flex-direction: column; gap: 12px; }
    .ms-member-home-titles h1 { font-size: 20px; }
    .ms-member-home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
    .ms-member-home-item { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .ms-member-home-cover { height: 70px; }
    .ms-author-card-actions { grid-template-columns: 1fr; }
    .ms-comment-form-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .ms-comment-submit {
        width: 100%;
    }
    .ms-comment-reply-actions {
        width: 100%;
        margin-left: 0;
    }
    .ms-comment-cancel,
    .ms-comment-reply-actions .ms-comment-submit {
        flex: 1;
    }
    .ms-sign-table-wrap {
        overflow-x: auto;
    }
    .ms-sign-action-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ms-sign-mini,
.ms-sign-home-btn,
.ms-sign-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    color: #fff !important;
    background: var(--c2);
}
.ms-sign-mini {
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 0;
}
.ms-sign-home-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 13px;
    margin-left: auto;
}
.ms-sign-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
}
.ms-sign-mini:hover,
.ms-sign-home-btn:hover,
.ms-sign-btn:hover {
    opacity: 0.92;
    color: #fff !important;
}
.ms-sign-mini.is-on,
.ms-sign-home-btn.is-on,
.ms-sign-btn.is-on {
    background: #e5e7eb;
    color: #6b7280 !important;
    cursor: pointer;
}
.ms-sign-page {
    margin-bottom: 32px;
}
.ms-sign-card,
.ms-sign-side {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border: 1px solid #f3f4f6;
}
.ms-sign-card {
    padding: 4px 0 16px;
    margin-bottom: 16px;
}
.ms-sign-tabs {
    display: flex;
    gap: 18px;
    padding: 14px 20px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ms-sign-tabs a {
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.ms-sign-tabs a.is-on {
    color: var(--c2);
    border-bottom-color: var(--c2);
}
.ms-sign-table-wrap {
    padding: 0 8px;
}
.ms-sign-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ms-sign-table th,
.ms-sign-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    white-space: nowrap;
}
.ms-sign-table th {
    font-weight: 600;
    color: #6b7280;
    background: #fff;
}
.ms-sign-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}
.ms-sign-user:hover {
    color: var(--c2);
}
.ms-sign-user .ms-vip-badge {
    width: 16px;
    height: 16px;
}
.ms-sign-empty {
    text-align: center !important;
    color: #9ca3af !important;
    padding: 36px 10px !important;
}
.ms-sign-side {
    padding: 16px;
}
.ms-sign-action {
    margin-bottom: 16px;
}
.ms-sign-action-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}
.ms-sign-rules b {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 8px;
}
.ms-sign-rules ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
}
.ms-sign-stats {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}
.ms-sign-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 0;
    color: #6b7280;
}
.ms-sign-stat b,
.ms-sign-stat a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}
.ms-profile-back {
    margin-bottom: 12px;
}
.ms-profile-back a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.ms-profile-back a:hover {
    color: var(--c2);
}
.ms-profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.ms-profile-avatar {
    flex: 0 0 96px;
    text-align: center;
    padding-top: 8px;
    cursor: pointer;
}
.ms-profile-avatar-img {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: #f3f4f6 center/cover no-repeat;
    transition: opacity .15s ease;
}
.ms-profile-avatar:hover .ms-profile-avatar-img {
    opacity: .86;
}
.ms-profile-avatar-txt {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}
.ms-profile-avatar:hover .ms-profile-avatar-txt {
    color: var(--c2);
}
.ms-profile-list {
    flex: 1;
    min-width: 0;
}
.ms-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ms-profile-row:last-child {
    border-bottom: 0;
}
.ms-profile-label {
    flex: 0 0 72px;
    color: #6b7280;
    font-size: 14px;
}
.ms-profile-value {
    flex: 1;
    min-width: 0;
    color: #111827;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-profile-value.is-empty {
    color: #9ca3af;
}
.ms-profile-act {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--c2);
    text-decoration: none;
}
.ms-profile-act:hover {
    text-decoration: underline;
}
.ms-profile-act.is-muted {
    color: #9ca3af;
}
@media (max-width: 768px) {
    .ms-profile-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .ms-profile-avatar {
        padding-top: 0;
        margin-bottom: 8px;
    }
}
.ms-charge-pay {
    text-align: center;
    padding: 12px 0 20px;
}
.ms-charge-pay-money {
    font-size: 15px;
    color: #374151;
    margin-bottom: 16px;
}
.ms-charge-pay-money b {
    color: #ef4444;
    font-size: 22px;
}
.ms-charge-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
}
.ms-charge-pay-status {
    color: #2563eb;
    font-size: 14px;
    margin-bottom: 6px;
}
.ms-charge-pay-status.is-scanned {
    color: #16a34a;
}
.ms-charge-pay-status.is-paid {
    color: #16a34a;
}
.ms-charge-pay-status.is-closed {
    color: #ef4444;
}
.ms-charge-pay-tip {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ===== VIP 开通（会员中心） ===== */
.ms-vip-status {
    margin-bottom: 12px;
}
.ms-vip-status .body {
    padding: 16px 18px;
}
.ms-vip-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ms-vip-status-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #f3f4f6;
}
.ms-vip-status-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.ms-vip-status-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.ms-vip-status-meta b {
    color: #2563eb;
    font-weight: 600;
}
.ms-vip-status-meta a {
    color: #2563eb;
}
.ms-vip-panel > .body {
    padding-top: 16px;
}
.ms-vip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ms-vip-group .vip-group-item {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s, background 0.2s;
}
.ms-vip-group .vip-group-item:hover {
    color: #2563eb;
}
.ms-vip-group .vip-group-item.active {
    background: #eff6ff;
    color: #2563eb;
}
.ms-vip-list-box {
    position: relative;
}
.ms-vip-list-box .vip-list-container {
    overflow: visible;
}
.ms-vip-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.ms-vip-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 16px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #111827;
}
.ms-vip-card:hover {
    border-color: #93c5fd;
}
.ms-vip-card.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
    background: #fff;
}
.ms-vip-card.is-downgrade {
    opacity: 0.72;
    cursor: not-allowed;
}
.ms-vip-card.is-downgrade:hover,
.ms-vip-card.is-downgrade.active {
    border-color: #e5e7eb;
    box-shadow: none;
}
.ms-vip-card-badge {
    position: absolute;
    left: 0;
    top: 0;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    background: #ef4444;
    border-radius: 10px 0 8px 0;
}
.ms-vip-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}
.ms-vip-card-price {
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
    line-height: 1.1;
}
.ms-vip-card-yen {
    font-size: 14px;
    font-weight: 600;
    margin-right: 1px;
}
.ms-vip-card-market {
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}
.ms-vip-card-desc {
    margin-top: 12px;
    min-height: 40px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.ms-vip-card-act {
    margin-top: 16px;
}
.ms-vip-card-act .btn {
    cursor: pointer;
}
.ms-vip-card-act .btn.disabled {
    background: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}
.ms-vip-nav {
    display: none !important;
}
.ms-vip-extra {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.ms-vip-extra-main {
    flex: 1;
    min-width: 0;
}
.ms-vip-right-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.ms-vip-right-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ms-vip-right-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}
.ms-vip-right-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.ms-vip-table-wrap {
    overflow: auto;
    margin-top: 8px;
}
.ms-vip-table {
    width: 100%;
    background: #fff;
    font-size: 13px;
}
.ms-vip-opens {
    width: 220px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #f9fafb;
}
.ms-vip-opens-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.ms-vip-opens-list {
    height: 180px;
    overflow: hidden;
}
.ms-vip-open-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}
.ms-vip-open-name {
    color: #374151;
    flex-shrink: 0;
}
.ms-vip-open-time {
    color: #9ca3af;
    flex-shrink: 0;
}
.ms-vip-open-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4b5563;
}
.ms-vip-content-list > .item {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.ms-vip-content-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.ms-vip-modal-dialog {
    background: #fff !important;
    border-radius: 12px;
    top: 8%;
    max-width: 420px;
    transition: max-width 0.15s ease;
}
.ms-vip-modal-dialog.is-qr {
    max-width: 720px;
}
.ms-vip-modal-split {
    display: block;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-split {
    display: flex;
    align-items: stretch;
    gap: 20px;
}
.ms-vip-modal-left {
    min-width: 0;
    flex: 1;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-vip-modal-dialog.is-qr .ms-vip-pay-check {
    pointer-events: none;
    opacity: 0.7;
}
.ms-vip-modal-right {
    flex: 0 0 260px;
    width: 260px;
    margin: 0;
    padding: 8px 0 4px;
    border-left: 1px solid #eef0f3;
    box-sizing: border-box;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-pay-money {
    margin-bottom: 8px;
    font-size: 13px;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-pay-money b {
    font-size: 18px;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-qrcode {
    width: 180px;
    height: 180px;
    padding: 8px;
    margin-bottom: 8px;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-qrcode canvas,
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-qrcode img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-pay-status,
.ms-vip-modal-dialog.is-qr .ms-vip-modal-right .ms-charge-pay-tip {
    font-size: 12px;
    margin-bottom: 8px;
}
.ms-vip-modal-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 20px;
}
.ms-vip-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.ms-vip-modal-countdown {
    font-size: 12px;
    color: #ef4444;
    white-space: nowrap;
}
.ms-vip-modal-block {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}
.ms-vip-modal-info b {
    color: #ef4444;
    font-size: 16px;
}
.ms-vip-pay-money {
    padding: 12px 14px;
}
.ms-vip-pay-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}
.ms-vip-pay-check input {
    margin: 0;
}
.ms-vip-pay-rows {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}
.ms-vip-pay-rows b {
    color: #111827;
    font-weight: 700;
}
.ms-vip-modal-agree {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}
.ms-vip-modal-agree a {
    color: #6b7280;
}
.ms-vip-modal-agree a:hover {
    color: #2563eb;
}
@media (max-width: 992px) {
    .ms-vip-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ms-vip-extra {
        flex-direction: column;
    }
    .ms-vip-opens {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .ms-vip-list {
        grid-template-columns: 1fr;
    }
    .ms-vip-modal-hd {
        flex-direction: column;
        align-items: flex-start;
    }
    .ms-vip-modal-dialog.is-qr {
        max-width: 420px;
    }
    .ms-vip-modal-dialog.is-qr .ms-vip-modal-split {
        display: block;
    }
    .ms-vip-modal-right {
        width: auto;
        flex: none;
        border-left: 0;
        border-top: 1px solid #eef0f3;
        margin-top: 8px;
        padding-top: 12px;
    }
}

/* ===== 工具模型列表 / 详情 ===== */
.ms-tool-portal-wrap {
    width: var(--w);
    max-width: calc(100% - 24px);
    margin: 12px auto 32px;
}
.ms-tool-portal {
    margin-bottom: 0;
}
.ms-tool-portal .ms-body {
    align-items: start;
    gap: 14px;
}
.ms-tool-portal .ms-side {
    position: sticky;
    top: calc(var(--topbar-h) + 12px);
    max-height: calc(100vh - var(--topbar-h) - 24px);
    overflow: auto;
    width: var(--side);
}
.ms-tool-portal .ms-sec {
    margin-bottom: 12px;
}
.ms-tool-portal .ms-sec-hd h2 {
    font-size: 17px;
}
.ms-tool-portal .ms-grid--medium {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 12px;
}
.ms-tool-portal .ms-link--medium {
    padding: 10px 8px;
}
@media (max-width: 1280px) {
    .ms-tool-portal .ms-grid--medium {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 992px) {
    .ms-tool-portal-wrap {
        max-width: calc(100% - 16px);
    }
    .ms-tool-portal .ms-grid--medium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .ms-tool-portal .ms-grid--medium {
        grid-template-columns: 1fr;
    }
}
.ms-tool-page {
    padding: 18px 20px 16px;
}
.ms-tool-hd {
    margin-bottom: 14px;
}
.ms-tool-hd h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--t);
    line-height: 1.4;
}
.ms-tool-hd p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}
.ms-tool-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.ms-tool-nav a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
}
.ms-tool-nav a:hover,
.ms-tool-nav a.is-on {
    background: #dbeafe;
    color: var(--c2);
    font-weight: 600;
}
.ms-tool-page .ms-grid--medium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
}
.ms-tool-page .ms-link--medium {
    padding: 10px 8px;
}
.ms-tool-pager {
    margin-top: 18px;
}
.ms-tool-detail-hd {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-tool-detail-ico {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--c-soft);
    border: 1px solid #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-tool-detail-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-tool-detail-ico b {
    font-size: 22px;
    font-weight: 700;
    color: var(--c);
}
.ms-tool-detail-meta {
    min-width: 0;
    flex: 1;
}
.ms-tool-detail-meta h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--t);
    line-height: 1.4;
}
.ms-tool-detail-meta p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}
.ms-tool-go {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--c2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.ms-tool-go:hover {
    opacity: .92;
    color: #fff;
}
@media (max-width: 992px) {
    .ms-tool-page .ms-grid--medium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .ms-tool-page .ms-grid--medium {
        grid-template-columns: 1fr;
    }
    .ms-tool-detail-hd {
        align-items: flex-start;
    }
}

/* ===== 亚马逊利润计算器 ===== */
.ms-calc-page {
    margin-bottom: 40px;
}
.ms-calc-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
}
.ms-calc-modes {
    display: inline-flex;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 999px;
}
.ms-calc-modes button {
    appearance: none;
    border: 0;
    background: transparent;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ms-calc-modes button.is-on {
    background: #fff;
    color: var(--c2);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.ms-calc-site-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.ms-calc-select {
    height: 36px;
    min-width: 168px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--t);
    font-size: 13px;
}
.ms-calc-rate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
}
.ms-calc-rate em {
    font-style: normal;
    color: #94a3b8;
}
.ms-calc-rate .is-warn {
    color: #dc2626;
}
.ms-calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 16px;
    align-items: start;
}
.ms-calc-main,
.ms-calc-side {
    min-width: 0;
}
.ms-calc-panel,
.ms-calc-side {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
}
.ms-calc-panel {
    padding: 18px 18px 12px;
    margin-bottom: 16px;
}
.ms-calc-panel h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--t);
}
.ms-calc-cols {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}
.ms-calc-cols span:nth-child(2),
.ms-calc-cols span:nth-child(3) {
    text-align: right;
}
.ms-calc-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.ms-calc-row > label {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}
.ms-calc-row--cat .js-calc-cat,
.ms-calc-row--pro .ms-calc-pro-wrap {
    grid-column: 2 / 4;
}
.ms-calc-row--cat .js-calc-cat {
    width: 100%;
    min-width: 0;
}
.ms-calc-pro-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.ms-calc-field {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.ms-calc-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    color: var(--t);
}
.ms-calc-field em {
    flex-shrink: 0;
    font-style: normal;
    padding: 0 10px;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border-left: 1px solid #eef2f7;
    height: 100%;
    display: flex;
    align-items: center;
}
.ms-calc-convert {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.ms-calc-fee {
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 4px 10px;
    border-radius: 10px;
    background: #ecfeff;
    color: #0e7490;
}
.ms-calc-fee b {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ms-calc-fee small {
    font-size: 11px;
    color: #0891b2;
    line-height: 1.3;
}
.ms-calc-radios {
    display: flex;
    gap: 8px;
}
.ms-calc-radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    background: #fff;
}
.ms-calc-radios label.is-on {
    border-color: var(--c);
    background: var(--c-soft);
    color: var(--c2);
    font-weight: 700;
}
.ms-calc-tip {
    font-size: 12px;
    color: #94a3b8;
}
.ms-calc-note {
    margin: 4px 0 8px;
    font-size: 12px;
    color: #94a3b8;
}
.ms-calc-fba {
    margin-left: 4px;
    font-size: 12px;
    color: var(--c2);
    text-decoration: none;
    cursor: pointer;
}
.ms-calc-fba:hover {
    text-decoration: underline;
}
.ms-calc-side {
    position: sticky;
    top: 76px;
    padding: 16px;
}
.ms-calc-side-hd {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}
.ms-calc-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
}
.ms-calc-hero {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ecfeff 0%, #f0fdf4 100%);
    border: 1px solid #cffafe;
}
.ms-calc-hero.is-down {
    background: linear-gradient(180deg, #fff7ed 0%, #fef2f2 100%);
    border-color: #fed7aa;
}
.ms-calc-hero-kicker {
    font-size: 12px;
    color: #0f766e;
    margin-bottom: 6px;
}
.ms-calc-hero-rate {
    font-size: 13px;
    color: #155e75;
    margin-bottom: 8px;
}
.ms-calc-hero-rate strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f766e;
    margin-left: 6px;
    font-variant-numeric: tabular-nums;
}
.ms-calc-hero.is-down .ms-calc-hero-rate,
.ms-calc-hero.is-down .ms-calc-hero-rate strong,
.ms-calc-hero.is-down .ms-calc-hero-num {
    color: #b91c1c;
}
.ms-calc-hero-label {
    font-size: 12px;
    color: #64748b;
}
.ms-calc-hero-num {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.ms-calc-hero-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}
.ms-calc-box {
    padding: 12px 0 4px;
    border-top: 1px dashed #e2e8f0;
}
.ms-calc-box-title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
}
.ms-calc-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    color: #64748b;
}
.ms-calc-line.is-sum {
    font-weight: 700;
    color: var(--t);
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 10px;
}
.ms-calc-pair {
    text-align: right;
}
.ms-calc-pair b {
    display: block;
    font-size: 13px;
    color: var(--t);
    font-variant-numeric: tabular-nums;
}
.ms-calc-pair span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
@media (max-width: 992px) {
    .ms-calc-grid {
        grid-template-columns: 1fr;
    }
    .ms-calc-side {
        position: static;
    }
    .ms-calc-rate {
        margin-left: 0;
        width: 100%;
    }
    .ms-calc-cols,
    .ms-calc-row {
        grid-template-columns: 1fr;
    }
    .ms-calc-cols span:nth-child(2),
    .ms-calc-cols span:nth-child(3),
    .ms-calc-convert,
    .ms-calc-fee,
    .ms-calc-tip {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .ms-calc-row--cat .js-calc-cat,
    .ms-calc-row--pro .ms-calc-pro-wrap {
        grid-column: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ms-calc-modes button {
        transition: none;
    }
}

/* —— 汇率换算 —— */
.ms-fx-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 56px;
}
.ms-fx-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
}
.ms-fx-toolbar-main h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.ms-fx-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}
.ms-fx-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 220px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-fx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: start;
}
.ms-fx-main,
.ms-fx-side {
    min-width: 0;
}
.ms-fx-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ms-fx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    cursor: text;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.ms-fx-row:hover {
    border-color: #dbeafe;
    background: #f8fbff;
}
.ms-fx-row.is-active {
    background: #f0f7ff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ms-fx-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.ms-fx-flag {
    width: 36px;
    height: 27px;
    border-radius: 2px;
    background: #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}
.ms-fx-flag img {
    width: 36px;
    height: 27px;
    object-fit: cover;
    display: block;
}
.ms-fx-flag.is-fallback::before {
    content: attr(data-code);
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
}
.ms-fx-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ms-fx-name b {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-fx-site {
    margin-left: 6px;
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}
.ms-fx-name em {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-fx-amount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    flex: 0 0 auto;
    width: 172px;
    min-width: 172px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ms-fx-row.is-active .ms-fx-amount {
    background: #fff;
    border-color: #60a5fa;
}
.ms-fx-sym {
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
    line-height: 1;
}
.ms-fx-amount input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    padding: 0 !important;
    margin: 0;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.ms-fx-amount input::-webkit-outer-spin-button,
.ms-fx-amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ms-fx-side-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.ms-fx-side-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ms-fx-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
}
.ms-fx-summary-row:last-child {
    border-bottom: 0;
}
.ms-fx-summary-row b {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}
.ms-fx-quick {
    margin-top: 12px;
}
.ms-fx-quick-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #94a3b8;
}
.ms-fx-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-fx-quick-btns button {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ms-fx-quick-btns button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.ms-fx-help {
    margin: 0;
    padding: 0 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}
.ms-fx-help li + li {
    margin-top: 4px;
}
.ms-fx-empty {
    grid-column: 1 / -1;
    padding: 40px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}
@media (max-width: 992px) {
    .ms-fx-layout {
        grid-template-columns: 1fr;
    }
    .ms-fx-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .ms-fx-side-card {
        margin-bottom: 0;
    }
}
@media (max-width: 768px) {
    .ms-fx-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ms-fx-badge {
        max-width: 100%;
    }
    .ms-fx-panel {
        grid-template-columns: 1fr;
    }
    .ms-fx-side {
        grid-template-columns: 1fr;
    }
    .ms-fx-amount {
        width: 150px;
        min-width: 150px;
    }
}

/* —— 单位换算 / 工具页白底 —— */
body:has(.ms-uc-page),
body:has(.ms-fx-page),
body:has(.ms-calc-page),
body:has(.ms-tp-page),
body:has(.ms-az-page),
body:has(.ms-em-page),
body:has(.ms-tm-page),
body:has(.ms-ct-page),
body:has(.ms-tool-page),
body:has(.ms-tool-portal-wrap) {
    background: #fff !important;
}
body:has(.ms-ts-page) {
    background: #f4f6f9 !important;
}

.ms-uc-page {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.ms-uc-shell {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.ms-uc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 8px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}
.ms-uc-tab {
    appearance: none;
    border: 0;
    background: transparent;
    height: 46px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color .15s;
}
.ms-uc-tab:hover:not(:disabled) {
    color: var(--c2);
}
.ms-uc-tab.is-on {
    color: var(--c2);
}
.ms-uc-tab.is-on::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--c2);
    border-radius: 2px 2px 0 0;
}
.ms-uc-tab.is-off,
.ms-uc-tab:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}
.ms-uc-panels {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}
.ms-uc-panels.is-on {
    display: grid;
}
.ms-uc-panels.is-one {
    grid-template-columns: 1fr;
}
.ms-uc-body.is-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    align-items: start;
}
.ms-uc-body.is-split .ms-uc-group + .ms-uc-group {
    margin-top: 0;
}
.ms-uc-card {
    background: #fff;
    min-width: 0;
}
.ms-uc-card + .ms-uc-card {
    border-left: 1px solid #eef2f7;
}
.ms-uc-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 10px;
}
.ms-uc-card-hd h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ms-uc-reset {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--c2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.ms-uc-reset:hover {
    text-decoration: underline;
}
.ms-uc-body {
    padding: 0 14px 16px;
}
.ms-uc-group + .ms-uc-group {
    margin-top: 6px;
}
.ms-uc-group-hd {
    padding: 8px 4px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
.ms-uc-group-hd span {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
.ms-uc-group-hd::after {
    display: none;
}
.ms-uc-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.ms-uc-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #eef2f7;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    cursor: text;
}
.ms-uc-row:first-child {
    border-top: 0;
}
.ms-uc-row:hover {
    background: #fafbfc;
}
.ms-uc-row.is-active {
    background: #fff;
    z-index: 1;
}
.ms-uc-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0 12px;
    background: #f8fafc;
    border-right: 1px solid #eef2f7;
}
.ms-uc-label b {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-uc-label em {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}
.ms-uc-row.is-active .ms-uc-label {
    background: #eff6ff;
}
.ms-uc-row.is-active .ms-uc-label b {
    color: var(--c2);
}
.ms-uc-field {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 6px 8px;
    background: #fff;
}
.ms-uc-row input {
    width: 100%;
    height: 34px;
    border: 1px solid #dbe3ee;
    outline: 0;
    background: #fff;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ms-uc-row input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}
.ms-uc-row:hover input {
    border-color: #c7d2fe;
}
.ms-uc-row.is-active input,
.ms-uc-row input:focus {
    border-color: #60a5fa;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
@media (max-width: 900px) {
    .ms-uc-panels,
    .ms-uc-body.is-split {
        grid-template-columns: 1fr;
    }
    .ms-uc-body.is-split .ms-uc-group + .ms-uc-group {
        margin-top: 6px;
    }
    .ms-uc-card + .ms-uc-card {
        border-left: 0;
        border-top: 1px solid #eef2f7;
    }
    .ms-uc-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* —— 文本处理 —— */
.ms-tp-page {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.ms-tp-view {
    display: none;
}
.ms-tp-view.is-on {
    display: block;
}
.ms-tp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fafbfc;
}
.ms-tp-opts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 13px;
    color: #475569;
}
.ms-tp-opts label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.ms-tp-hint {
    font-size: 13px;
    color: #94a3b8;
}
.ms-tp-toolbar--wrap {
    align-items: flex-start;
}
.ms-tp-opts--block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.ms-tp-opt-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}
.ms-tp-opt-label {
    color: #64748b;
    font-weight: 600;
    min-width: 72px;
}
.ms-tp-upc-fields label {
    gap: 8px;
}
.ms-tp-upc-code {
    width: 96px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
}
.ms-tp-upc-input {
    width: 48px;
}
.ms-tp-upc-result {
    padding: 0 0 8px;
}
.ms-tp-upc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-height: 120px;
}
.ms-tp-upc-empty {
    grid-column: 1 / -1;
    padding: 28px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
.ms-tp-upc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.ms-tp-upc-item:nth-child(2n) {
    border-right: none;
}
.ms-tp-upc-code-text {
    color: #0f172a;
    font-family: Consolas, Monaco, "Courier New", monospace;
}
.ms-tp-upc-copy {
    flex: none;
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    line-height: 1;
}
.ms-tp-upc-copy:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
@media (max-width: 720px) {
    .ms-tp-upc-list {
        grid-template-columns: 1fr;
    }
    .ms-tp-upc-item {
        border-right: none;
    }
}
.ms-tp-rmb-ref {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 4px 0 8px;
}
.ms-tp-rmb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ms-tp-rmb-card-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.ms-tp-rmb-card-hd h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}
.ms-tp-rmb-card-hd p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.ms-tp-rmb-chart {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}
.ms-tp-rmb-chart + .ms-tp-rmb-chart {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}
.ms-tp-rmb-cell {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 6px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ms-tp-rmb-cell:hover {
    background: #f8fafc;
    border-color: #dbeafe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}
.ms-tp-rmb-cell:active {
    transform: translateY(0);
    box-shadow: none;
}
.ms-tp-rmb-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    position: relative;
}
.ms-tp-rmb-box::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 4px;
    pointer-events: none;
}
.ms-tp-rmb-cell:hover .ms-tp-rmb-box {
    border-color: #93c5fd;
    color: #1d4ed8;
}
.ms-tp-rmb-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
}
.ms-tp-rmb-key {
    color: #64748b;
}
.ms-tp-rmb-eq {
    color: #cbd5e1;
}
.ms-tp-rmb-val {
    color: #2563eb;
    font-weight: 600;
}
.ms-tp-rmb-cell:hover .ms-tp-rmb-val {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ms-tp-rmb-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: rmb-rule;
}
.ms-tp-rmb-rules li {
    counter-increment: rmb-rule;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}
.ms-tp-rmb-rules li::before {
    content: counter(rmb-rule);
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}
.ms-tp-rmb-rules li span {
    flex: 1;
    min-width: 0;
}
@media (max-width: 900px) {
    .ms-tp-rmb-chart {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .ms-tp-rmb-card {
        padding: 14px 12px 12px;
    }
    .ms-tp-rmb-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
    .ms-tp-rmb-cell {
        padding: 6px 4px 8px;
    }
}
.ms-az-page {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.ms-az-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 20px 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ms-az-hd {
    margin-bottom: 14px;
}
.ms-az-hd h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.ms-az-hd p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}
.ms-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}
.ms-az-nav-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ms-az-nav-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}
.ms-az-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ms-az-site {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    scroll-margin-top: 12px;
}
.ms-az-site h2 {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.ms-az-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #eef2f7;
}
.ms-az-item {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: #f0f7ff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}
.ms-az-item:hover {
    background: #dbeafe;
}
.ms-az-city {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}
.ms-az-code {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.ms-az-item:hover .ms-az-code {
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 900px) {
    .ms-az-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .ms-az-shell {
        padding: 14px 12px 16px;
    }
    .ms-az-grid {
        grid-template-columns: 1fr;
    }
}
.ms-tp-area--wide {
    min-height: 320px;
    margin: 0 16px 16px;
}
.ms-tp-ngrams {
    gap: 8px !important;
}
.ms-tp-ngrams input[type="radio"] {
    margin: 0;
}
.ms-tp-num {
    width: 56px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
}
.ms-tp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-tp-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ms-tp-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.ms-tp-btn.is-primary {
    border-color: var(--c2, #2563eb);
    background: var(--c2, #2563eb);
    color: #fff;
}
.ms-tp-btn.is-primary:hover {
    filter: brightness(1.05);
    background: var(--c2, #2563eb);
}
.ms-tp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 460px;
}
.ms-tp-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eef2f7;
}
.ms-tp-pane:last-child {
    border-right: 0;
}
.ms-tp-pane-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 8px;
}
.ms-tp-pane-hd h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ms-tp-pane-hd span {
    font-size: 12px;
    color: #94a3b8;
}
.ms-tp-area {
    flex: 1;
    min-height: 380px;
    margin: 0 16px 16px;
    padding: 12px 14px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ms-tp-area:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.ms-tp-area[readonly] {
    background: #f8fafc;
}
.ms-tp-table-wrap {
    flex: 1;
    margin: 0 16px 16px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    overflow: auto;
    max-height: 480px;
    background: #fff;
}
.ms-tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ms-tp-table th,
.ms-tp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    color: #334155;
}
.ms-tp-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    z-index: 1;
}
.ms-tp-table tr:hover td {
    background: #fafbfc;
}
.ms-tp-empty td {
    text-align: center;
    color: #94a3b8;
    padding: 28px 12px;
}
@media (max-width: 900px) {
    .ms-tp-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .ms-tp-pane {
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
    }
    .ms-tp-pane:last-child {
        border-bottom: 0;
    }
    .ms-tp-area {
        min-height: 220px;
    }
}

/* —— 模板邮件生成 —— */
.ms-em-page {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.ms-em-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ms-em-hd {
    margin-bottom: 16px;
}
.ms-em-hd h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.ms-em-hd p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}
.ms-em-form {
    margin-bottom: 16px;
}
.ms-em-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}
.ms-em-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.ms-em-field.is-off {
    display: none;
}
.ms-em-field--full {
    grid-column: 1 / -1;
}
.ms-em-field > span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.ms-em-field select,
.ms-em-field input {
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}
.ms-em-field select:focus,
.ms-em-field input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-em-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.ms-em-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ms-em-btn:hover {
    background: #f8fafc;
}
.ms-em-btn.is-primary {
    border-color: var(--c2, #2563eb);
    background: var(--c2, #2563eb);
    color: #fff;
}
.ms-em-btn.is-primary:hover {
    filter: brightness(1.05);
}
.ms-em-editor {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.ms-em-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}
.ms-em-tool {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.ms-em-tool:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}
.ms-em-canvas {
    min-height: 320px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #0f172a;
    outline: none;
}
.ms-em-canvas.is-off {
    display: none;
}
.ms-em-canvas:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}
.ms-em-canvas p {
    margin: 0 0 10px;
}
.ms-em-source {
    display: none;
    width: 100%;
    min-height: 320px;
    border: 0;
    padding: 16px 18px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}
.ms-em-source.is-on {
    display: block;
}
@media (max-width: 760px) {
    .ms-em-grid {
        grid-template-columns: 1fr;
    }
    .ms-em-actions {
        justify-content: stretch;
    }
    .ms-em-btn {
        flex: 1;
    }
}

/* —— 商标生成器 —— */
.ms-tm-page {
    max-width: 1200px;
    margin: 0 auto 48px;
}
.ms-tm-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px 22px;
}
.ms-tm-hd {
    margin-bottom: 16px;
}
.ms-tm-hd h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.ms-tm-hd p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}
.ms-tm-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.ms-tm-bar-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}
.ms-tm-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-tm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.ms-tm-field > span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
.ms-tm-field input[type="number"] {
    width: 120px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}
.ms-tm-field input[type="number"]:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-tm-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ms-tm-stepper input {
    width: 64px;
    text-align: center;
}
.ms-tm-step {
    appearance: none;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.ms-tm-step:hover {
    background: #fff;
    border-color: #cbd5e1;
}
.ms-tm-block {
    margin-bottom: 16px;
}
.ms-tm-block:last-child {
    margin-bottom: 0;
}
.ms-tm-block-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.ms-tm-block-hd > span {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.ms-tm-block-hd > span i {
    font-style: normal;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 6px;
    font-size: 13px;
}
.ms-tm-block-hd > em {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
}
.ms-tm-pattern {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.ms-tm-slot {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}
.ms-tm-slot-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}
.ms-tm-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.ms-tm-seg-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    height: 34px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}
.ms-tm-seg-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
}
.ms-tm-seg-btn.is-on {
    border-color: var(--c2, #2563eb);
    background: var(--c2, #2563eb);
    color: #fff;
}
.ms-tm-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ms-tm-btn:hover:not(:disabled):not(.is-primary) {
    background: #f8fafc;
}
.ms-tm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ms-tm-btn.is-primary {
    border-color: var(--c2, #2563eb);
    background: var(--c2, #2563eb);
    color: #fff;
}
.ms-tm-btn.is-primary:hover:not(:disabled) {
    border-color: var(--c2, #2563eb);
    background: var(--c2, #2563eb);
    color: #fff;
    filter: brightness(1.08);
}
.ms-tm-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 120px;
}
.ms-tm-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 40px 12px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
}
.ms-tm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.ms-tm-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}
.ms-tm-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.04em;
    font-family: Consolas, "Courier New", ui-monospace, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-tm-copy {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--c2, #2563eb);
    cursor: pointer;
    flex-shrink: 0;
}
.ms-tm-copy:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .ms-tm-pattern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ms-tm-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .ms-tm-shell {
        padding: 14px 12px 16px;
    }
    .ms-tm-bar {
        align-items: stretch;
    }
    .ms-tm-bar-actions {
        width: 100%;
    }
    .ms-tm-bar-actions .ms-tm-btn {
        flex: 1;
    }
    .ms-tm-pattern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ms-tm-results {
        grid-template-columns: 1fr;
    }
}


/* —— 编程工具 —— */
.ms-ct-b64-opts {
    align-items: center;
}
.ms-ct-page .ms-ct-upload {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}
.ms-ct-page .ms-ct-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.ms-ct-page .ms-ct-upload-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px dashed #93c5fd !important;
    border-radius: 8px;
    background: #eff6ff !important;
    color: var(--c2, #2563eb) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 34px;
    box-sizing: border-box;
    transition: background .15s ease, border-color .15s ease;
}
.ms-ct-page .ms-ct-upload:hover .ms-ct-upload-btn {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
}
.ms-ct-upload-ico {
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}
.ms-ct-upload-ico::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    width: 1.5px;
    height: 7px;
    background: currentColor;
    transform: translateX(-50%);
}
.ms-ct-upload-ico::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    width: 6px;
    height: 6px;
    border-left: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
    box-sizing: border-box;
}
.ms-ct-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.ms-ct-preview {
    margin: 0 16px 12px;
    padding: 12px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}
.ms-ct-preview.is-off {
    display: none;
}
.ms-ct-preview-tip {
    margin-bottom: 8px;
    font-size: 12px;
    color: #94a3b8;
}
.ms-ct-preview img {
    max-width: 100%;
    max-height: 160px;
    vertical-align: middle;
    cursor: zoom-in;
    border-radius: 4px;
}
.ms-ct-preview img:hover {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
.ms-ct-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-sizing: border-box;
}
.ms-ct-lightbox-inner {
    position: relative;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ms-ct-lightbox-inner img {
    max-width: 96vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.ms-ct-lightbox-close {
    appearance: none;
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ms-ct-lightbox-close:hover {
    background: #fff;
}
.ms-ct-lightbox-tip {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}
.ms-ct-page .js-ct-view.is-image-mode .js-ct-b64-input-pane {
    display: none;
}
.ms-ct-page .js-ct-view.is-image-mode .js-ct-b64-grid {
    grid-template-columns: 1fr;
}
.ms-ct-page .js-ct-view.is-image-mode .js-ct-b64-result-pane {
    border-right: 0;
}
.ms-ct-mono {
    font-family: Consolas, "Courier New", ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    word-break: break-all;
}
.ms-ct-page .ms-tp-table tr.is-on td {
    background: #eff6ff;
}
.ms-ct-select,
.ms-ct-input {
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}
.ms-ct-select:focus,
.ms-ct-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-ct-time-now {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}
.ms-ct-time-now-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ms-ct-time-now-hd b {
    font-size: 14px;
    color: #0f172a;
}
.ms-ct-time-now-hd span {
    font-size: 12px;
    color: #94a3b8;
}
.ms-ct-time-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.ms-ct-time-card {
    appearance: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}
.ms-ct-time-card:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.ms-ct-time-card em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.ms-ct-time-card b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
    font-family: Consolas, "Courier New", ui-monospace, monospace;
}
.ms-ct-time-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #eef2f7;
}
.ms-ct-time-panel {
    min-width: 0;
    padding: 14px 16px 16px;
    border-right: 1px solid #eef2f7;
}
.ms-ct-time-panel:last-child {
    border-right: 0;
}
.ms-ct-time-panel-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.ms-ct-time-panel-hd b {
    font-size: 14px;
    color: #0f172a;
}
.ms-ct-time-panel-hd span {
    font-size: 12px;
    color: #94a3b8;
}
.ms-ct-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ms-ct-time-row .ms-ct-input {
    flex: 1;
    min-width: 140px;
}
.ms-ct-time-table {
    margin: 0;
    max-height: 360px;
}
@media (max-width: 1100px) {
    .ms-ct-time-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .ms-ct-time-panels {
        grid-template-columns: 1fr;
    }
    .ms-ct-time-panel {
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
    }
    .ms-ct-time-panel:last-child {
        border-bottom: 0;
    }
    .ms-ct-time-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 付费隐藏内容 ========== */
/* 与详情编辑器同宽：走 ub-form .line 标签栏占位 */
.ub-form [data-field="_paidTip"] {
    margin-top: -4px !important;
    margin-bottom: 10px !important;
}
.ub-form [data-field="_paidTip"] > .label {
    visibility: hidden;
    pointer-events: none;
}
.ms-paid-post-tip {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    box-sizing: border-box;
    width: 100%;
}
.ms-paid-post-tip.is-on {
    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: none;
}
.ms-paid-post-tip.is-off {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-paid-post-tip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
}
.ms-paid-post-tip-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    min-width: 0;
}
.ms-paid-post-tip-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    white-space: nowrap;
}
.ms-paid-post-tip-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
}
.ms-paid-post-tip #ms-paid-insert-btn {
    border-radius: 999px;
    padding: 0 12px;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.ms-paid-post-tip #ms-paid-insert-btn .iconfont {
    font-size: 12px;
}

/* UEditor 工具栏：付费内容按钮（锁 + 提示，固定末尾） */
.edui-default .edui-toolbar .edui-for-mspaidthidden .edui-button-wrap {
    padding: 1px;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .edui-button-body {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: auto !important;
    min-width: 30px;
    height: 30px;
    padding-right: 6px;
    box-sizing: border-box;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .edui-icon {
    background: none !important;
    position: relative;
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .edui-icon:before {
    content: "\e7c9";
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    color: #595959;
    -webkit-font-smoothing: antialiased;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .edui-state-hover .edui-icon:before,
.edui-default .edui-toolbar .edui-for-mspaidthidden:hover .edui-icon:before {
    color: #2563eb;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .ms-paid-edui-hint {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    height: 30px;
    line-height: 30px;
    cursor: inherit;
    user-select: none;
    -webkit-user-select: none;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden .ms-paid-edui-hint-arrow,
.edui-default .edui-toolbar .edui-for-mspaidthidden .ms-paid-edui-hint-text {
    color: #c0c4cc;
    font-size: 11px;
    font-weight: 400;
    line-height: 30px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden:hover .ms-paid-edui-hint-arrow,
.edui-default .edui-toolbar .edui-for-mspaidthidden:hover .ms-paid-edui-hint-text {
    color: #909399;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden.is-banned .edui-icon:before,
.edui-default .edui-toolbar .edui-for-mspaidthidden.is-banned .ms-paid-edui-hint-arrow,
.edui-default .edui-toolbar .edui-for-mspaidthidden.is-banned .ms-paid-edui-hint-text {
    color: #c0c4cc !important;
}
.edui-default .edui-toolbar .edui-for-mspaidthidden.is-banned {
    opacity: 0.72;
}

/* 插入弹窗 */
.layui-layer.ms-paid-layer {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22) !important;
}
.layui-layer.ms-paid-layer .layui-layer-setwin {
    display: none !important;
}
.ms-paid-dlg {
    margin: 0;
    color: #0f172a;
    position: relative;
}
.ms-paid-dlg-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 52px 16px 18px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    position: relative;
    z-index: 2;
}
.ms-paid-dlg-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
    transition: background .15s ease;
}
.ms-paid-dlg-close:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff !important;
}
.ms-paid-dlg-close .iconfont {
    font-size: 14px;
    line-height: 1;
}
.ms-paid-dlg-hero-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ms-paid-dlg-hero-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.ms-paid-dlg-hero-desc {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.88;
    line-height: 1.4;
}
.ms-paid-dlg-body {
    padding: 18px 18px 8px;
}
.ms-paid-dlg-field {
    margin-bottom: 16px;
}
.ms-paid-dlg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.ms-paid-dlg-price {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ms-paid-dlg-price:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-paid-dlg-currency {
    flex-shrink: 0;
    padding: 0 4px 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
}
.ms-paid-dlg-price input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
    height: 46px;
    padding: 0 14px 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
}
.ms-paid-dlg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ms-paid-dlg-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}
.ms-paid-dlg-settle {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
}
.ms-paid-dlg-settle-item {
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.ms-paid-dlg-settle-item.is-main {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border-color: #dbeafe;
}
.ms-paid-dlg-settle-k {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.ms-paid-dlg-settle-v {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}
.ms-paid-dlg-settle-item.is-main .ms-paid-dlg-settle-v {
    color: #1d4ed8;
}
.ms-paid-dlg-field textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
    background: #fff;
    resize: vertical;
    min-height: 140px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ms-paid-dlg-field textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-paid-dlg-editor-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.ms-paid-rte {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.ms-paid-rte-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.ms-paid-rte-btn {
    height: 28px;
    min-width: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}
.ms-paid-rte-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.ms-paid-rte-btn b,
.ms-paid-rte-btn i,
.ms-paid-rte-btn u {
    font-size: 13px;
}
.ms-paid-rte-sep {
    width: 1px;
    height: 16px;
    background: #e2e8f0;
    margin: 0 4px;
}
.ms-paid-rte-body {
    min-height: 180px;
    max-height: 320px;
    overflow: auto;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #0f172a;
    outline: none;
}
.ms-paid-rte-body.is-focus {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.ms-paid-rte-body:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.ms-paid-rte-body img {
    max-width: 100%;
    height: auto;
}
.ms-paid-rte-body a {
    color: #2563eb;
}
.ms-paid-dlg-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}
.ms-paid-dlg-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid #f1f5f9;
}
.ms-paid-dlg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ms-paid-dlg-btn.is-ghost {
    background: #f1f5f9;
    color: #475569;
}
.ms-paid-dlg-btn.is-ghost:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.ms-paid-dlg-btn.is-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.ms-paid-dlg-btn.is-primary:hover {
    background: #1d4ed8;
}
@media (max-width: 560px) {
    .ms-paid-dlg-settle {
        grid-template-columns: 1fr;
    }
    .ms-paid-post-tip-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.ms-paid-block {
    margin: 1.25rem 0;
}
.ms-paid-block.is-locked {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}
.ms-paid-lock {
    padding: 28px 20px;
    text-align: center;
}
.ms-paid-lock-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.ms-paid-lock-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}
.ms-paid-lock-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}
.ms-paid-lock-desc b {
    color: #dc2626;
}
.ms-paid-lock-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ms-paid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}
.ms-paid-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}
.ms-paid-link {
    font-size: 12px;
    color: #64748b;
}
.ms-paid-block.is-unlocked {
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    padding: 12px 14px 14px;
}
.ms-paid-block-badge {
    display: inline-block;
    font-size: 12px;
    color: #15803d;
    background: #dcfce7;
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 10px;
}
.ms-paid-block-body {
    color: inherit;
}

/* —— 商标检索（注册库风格） —— */
.ms-ts-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 48px;
    color: #0f172a;
    background: #f4f6f9;
}
.ms-ts-hero {
    position: relative;
    z-index: 20;
    width: 100%;
    overflow: visible;
    padding: 28px 20px 24px;
    color: #e8eef7;
    background: #0c2340;
}
.ms-ts-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(640px 280px at 90% 10%, rgba(56, 189, 248, 0.16), transparent 60%),
        linear-gradient(155deg, #0a1d36 0%, #0c2340 45%, #143356 100%);
}
.ms-ts-mark {
    position: absolute;
    right: 6%;
    top: 8%;
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.04em;
    user-select: none;
    animation: ms-ts-fade 8s ease-in-out infinite;
}
.ms-ts-mark.is-tm {
    right: auto;
    left: 4%;
    top: auto;
    bottom: 8%;
    font-size: 120px;
    color: rgba(125, 211, 252, 0.05);
    animation-delay: -3s;
}
.ms-ts-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.55), transparent);
    animation: ms-ts-line 4.5s ease-in-out infinite;
}
@keyframes ms-ts-fade {
    0%, 100% { opacity: 0.55; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-6px); }
}
@keyframes ms-ts-line {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}
.ms-ts-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-ts-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 18px;
}
.ms-ts-hd-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
.ms-ts-seal {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(125, 211, 252, 0.55);
    background:
        radial-gradient(circle at center, rgba(14, 35, 64, 0.2) 42%, transparent 43%),
        conic-gradient(from 0deg, rgba(125, 211, 252, 0.35), transparent 35%, rgba(125, 211, 252, 0.25) 55%, transparent 75%, rgba(125, 211, 252, 0.35));
    box-shadow: inset 0 0 0 5px rgba(12, 35, 64, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ms-ts-seal b {
    font-size: 18px;
    color: #7dd3fc;
    font-weight: 800;
}
.ms-ts-seal em {
    margin-top: 2px;
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #93c5fd;
    font-weight: 700;
}
.ms-ts-hd-main h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 750;
    color: #f8fafc;
    line-height: 1.2;
}
.ms-ts-hd-main p {
    margin: 0;
    font-size: 13px;
    color: #9fb4d0;
    line-height: 1.45;
}
.ms-ts-quota {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-ts-quota-item {
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ms-ts-quota-item em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #9fb4d0;
    margin-bottom: 2px;
}
.ms-ts-quota-item b {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.1;
}
.ms-ts-quota-item b i {
    font-style: normal;
    font-weight: 700;
}
.ms-ts-search {
    position: relative;
    z-index: 30;
    margin: 0;
}
.ms-ts-query {
    position: relative;
    z-index: 30;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: visible;
}
.ms-ts-query-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    border-radius: 12px 12px 0 0;
}
.ms-ts-query-hd strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.ms-ts-query-hd span {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.ms-ts-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    padding: 14px 16px 16px;
}
.ms-ts-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}
.ms-ts-field > span {
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
}
.ms-ts-field-kw { flex: 1 1 340px; }
.ms-ts-field-ct { flex: 0 0 180px; }
.ms-ts-input {
    width: 100%;
    height: 42px;
    margin: 0;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ms-ts-input::placeholder { color: #94a3b8; }
.ms-ts-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-ts-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.ms-ts-country { position: relative; z-index: 40; }
.ms-ts-country.is-open { z-index: 60; }
.ms-ts-country-btn {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ms-ts-country-btn:hover:not(:disabled),
.ms-ts-country.is-open .ms-ts-country-btn {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-ts-country-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.ms-ts-country-btn > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-ts-caret {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
    transition: transform .15s ease;
}
.ms-ts-country.is-open .ms-ts-caret {
    transform: rotate(225deg) translateY(-1px);
}
.ms-ts-country-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 70;
    min-width: 100%;
    width: max-content;
    max-width: min(280px, 70vw);
    max-height: 280px;
    overflow: auto;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}
.ms-ts-country-menu[hidden] { display: none !important; }
.ms-ts-country-item {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}
.ms-ts-country-item:hover { background: #f8fafc; }
.ms-ts-country-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.ms-ts-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ms-ts-actions {
    display: flex;
    align-items: flex-end;
    margin-left: auto;
}
.ms-ts-btn {
    height: 42px;
    min-width: 116px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.ms-ts-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.ms-ts-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ms-ts-guest {
    margin: 0 16px 14px;
    font-size: 13px;
    color: #64748b;
}
.ms-ts-guest a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.ms-ts-guest a:hover { text-decoration: underline; }
.ms-ts-body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 20px;
}
.ms-ts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    align-items: start;
}
.ms-ts-panel,
.ms-ts-side-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ms-ts-panel {
    padding: 16px 18px 18px;
    min-height: 380px;
    position: relative;
}
.ms-ts-panel-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}
.ms-ts-panel-hd h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.ms-ts-type-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ms-ts-type-badge[hidden] {
    display: none !important;
}
.ms-ts-panel-hd p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.ms-ts-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}
.ms-ts-legend span {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 650;
}
.ms-ts-legend .is-live { color: #166534; background: #dcfce7; }
.ms-ts-legend .is-ended { color: #9f1239; background: #ffe4e6; }
.ms-ts-legend .is-other { color: #475569; background: #e2e8f0; }
.ms-ts-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ms-ts-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
}
.ms-ts-loading {
    position: absolute;
    inset: 64px 18px 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
}
.ms-ts-loading[hidden] { display: none !important; }
.ms-ts-loading p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.ms-ts-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #dbeafe;
    border-top-color: #2563eb;
    animation: ms-ts-spin .7s linear infinite;
}
@keyframes ms-ts-spin {
    to { transform: rotate(360deg); }
}
.ms-ts-empty {
    text-align: center;
    padding: 56px 16px;
    color: #94a3b8;
}
.ms-ts-empty-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
}
.ms-ts-empty p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.ms-ts-empty em {
    font-style: normal;
    font-size: 12px;
}
.ms-ts-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ms-ts-card {
    border-top: 1px solid #eef2f7;
    padding: 14px 2px 14px 12px;
    border-left: 3px solid transparent;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}
.ms-ts-card:first-child { border-top: 0; }
.ms-ts-card:hover {
    background: #f8fafc;
    border-left-color: #93c5fd;
}
.ms-ts-card-top { margin-bottom: 6px; }
.ms-ts-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.ms-ts-card-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ms-ts-card-title h3:after {
    content: '®';
    margin-left: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    vertical-align: super;
}
.ms-ts-status {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 650;
}
.ms-ts-status.is-live { color: #166534; background: #dcfce7; }
.ms-ts-status.is-ended { color: #9f1239; background: #ffe4e6; }
.ms-ts-status.is-other { color: #475569; background: #e2e8f0; }
.ms-ts-score {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
}
.ms-ts-card-nos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: #64748b;
}
.ms-ts-card-body p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}
.ms-ts-card-body em {
    font-style: normal;
    color: #94a3b8;
    margin-right: 8px;
}
.ms-ts-classes i {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    margin: 0 4px 4px 0;
    border-radius: 4px;
    font-style: normal;
    font-size: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}
.ms-ts-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ms-ts-side-card { padding: 14px; }
.ms-ts-side-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}
.ms-ts-side-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.ms-ts-side-hd h3 { margin: 0; }
.ms-ts-side-hd em {
    font-style: normal;
    font-size: 11px;
    color: #94a3b8;
}
.ms-ts-help {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ms-ts-help li {
    position: relative;
    padding: 0 0 8px 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}
.ms-ts-help li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}
.ms-ts-help b {
    color: #0f172a;
    font-weight: 650;
}
.ms-ts-packages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ms-ts-pkg-empty {
    font-size: 12px;
    color: #94a3b8;
    padding: 4px 0;
}
.ms-ts-pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.ms-ts-pkg-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ms-ts-pkg-main b {
    font-size: 13px;
    color: #0f172a;
}
.ms-ts-pkg-main span {
    font-size: 11px;
    color: #64748b;
}
.ms-ts-pkg-act {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ms-ts-pkg-act em {
    font-style: normal;
    font-size: 12px;
    color: #2563eb;
    font-weight: 650;
}
.ms-ts-pkg-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 0;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.ms-ts-pkg-btn:hover:not(:disabled) { background: #1d4ed8; }
.ms-ts-pkg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
    .ms-ts-mark,
    .ms-ts-line,
    .ms-ts-spinner { animation: none !important; }
}
@media (max-width: 960px) {
    .ms-ts-layout { grid-template-columns: 1fr; }
    .ms-ts-field-ct { flex: 1 1 160px; }
    .ms-ts-actions {
        margin-left: 0;
        width: 100%;
    }
    .ms-ts-btn { width: 100%; }
}
@media (max-width: 640px) {
    .ms-ts-hero { padding: 22px 12px 20px; }
    .ms-ts-hd-main h1 { font-size: 22px; }
    .ms-ts-seal { width: 46px; height: 46px; }
    .ms-ts-field-kw,
    .ms-ts-field-ct { flex: 1 1 100%; }
    .ms-ts-body {
        margin-top: 14px;
        padding: 0 12px;
    }
    .ms-ts-mark { font-size: 120px; }
}

/* ===== 合作伙伴标识 ===== */
.ms-partner-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    color: #92400e;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ===== 跨境服务 · 企业门户 ===== */
body:has(.ms-cbs-portal-page) .ms-topbar {
    background: rgba(8, 22, 42, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body:has(.ms-cbs-portal-page) .ms-topbar-nav .ms-nav-link {
    color: rgba(255, 255, 255, 0.88);
}
body:has(.ms-cbs-portal-page) .ms-topbar-nav .ms-nav-link:hover,
body:has(.ms-cbs-portal-page) .ms-topbar-nav .ms-nav-link.active,
body:has(.ms-cbs-portal-page) .ms-nav-item:hover > .ms-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
body:has(.ms-cbs-portal-page) .ms-user-trigger {
    border-color: rgba(255, 255, 255, 0.35);
}

.ms-cbs-portal-page {
    background: var(--bg);
    min-height: 60vh;
    padding-bottom: 40px;
}

/* 头图 */
.ms-cbs-hero-band {
    position: relative;
    margin-top: calc(var(--topbar-h) * -1);
    padding: calc(var(--topbar-h) + 18px) 0 32px;
    background: linear-gradient(135deg, #0a1c33 0%, #0f2a4a 45%, #0c2340 100%);
    overflow: hidden;
}
.ms-cbs-hero-deco {
    pointer-events: none;
    position: absolute;
    inset: 0;
}
.ms-cbs-hero-deco::before {
    content: '';
    position: absolute;
    left: -60px;
    top: -30px;
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 60%);
    clip-path: polygon(0 0, 78% 0, 42% 100%, 0 100%);
}
.ms-cbs-hero-deco::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        transparent 0 30%,
        rgba(255, 255, 255, 0.04) 30% 31%,
        transparent 31% 50%,
        rgba(56, 189, 248, 0.06) 50% 51%,
        transparent 51%);
}
.ms-cbs-hero-inner {
    position: relative;
    z-index: 1;
}
.ms-cbs-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.ms-cbs-crumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.ms-cbs-crumb a:hover { color: #fff; }
.ms-cbs-crumb .iconfont { font-size: 10px; opacity: 0.6; }
.ms-cbs-crumb span { color: rgba(255, 255, 255, 0.9); }
.ms-cbs-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.ms-cbs-hero-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.03em;
}
.ms-cbs-hero-text p {
    margin: 10px 0 0;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}
.ms-cbs-hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ms-cbs-hero-stat {
    text-align: center;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.ms-cbs-hero-stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ms-cbs-hero-stat span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}
.ms-cbs-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 22px;
    margin-left: 4px;
    background: #fff;
    color: var(--navy) !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform .15s, box-shadow .15s;
}
.ms-cbs-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    color: var(--navy) !important;
}

/* 双栏布局 */
.ms-cbs-portal-body {
    margin-top: -16px;
    position: relative;
    z-index: 2;
}
.ms-cbs-portal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

/* 左侧导航 */
.ms-cbs-aside {
    position: sticky;
    top: calc(var(--topbar-h) + 12px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
    overflow: hidden;
}
.ms-cbs-aside-hd {
    padding: 10px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ms-cbs-aside-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.ms-cbs-aside-item:hover {
    background: #f8fafc;
}
.ms-cbs-aside-item.is-on {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: inset 3px 0 0 var(--c2);
}
.ms-cbs-aside-item > .iconfont:first-child {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 18px;
    color: var(--c);
    background: var(--c-soft);
    border-radius: 8px;
}
.ms-cbs-aside-item.is-on > .iconfont:first-child {
    color: #fff;
    background: var(--c2);
}
.ms-cbs-aside-meta {
    flex: 1;
    min-width: 0;
}
.ms-cbs-aside-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
}
.ms-cbs-aside-item.is-on .ms-cbs-aside-meta strong { color: var(--c2); }
.ms-cbs-aside-meta em {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
    font-style: normal;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-cbs-aside-arrow {
    flex-shrink: 0;
    font-size: 12px;
    color: #d1d5db;
    opacity: 0;
    transition: opacity .15s;
}
.ms-cbs-aside-item:hover .ms-cbs-aside-arrow,
.ms-cbs-aside-item.is-on .ms-cbs-aside-arrow {
    opacity: 1;
    color: var(--c2);
}
.ms-cbs-aside-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 10px 6px;
    padding: 10px;
    background: var(--c2);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}
.ms-cbs-aside-apply:hover {
    background: #1d4ed8;
    color: #fff !important;
}

/* 主内容 */
.ms-cbs-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px 22px;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
    min-height: 420px;
}

/* 热门推荐 */
.ms-cbs-featured {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-cbs-featured-hd h2 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ms-cbs-featured-hd .iconfont { color: #f59e0b; font-size: 15px; }
.ms-cbs-featured-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ms-cbs-featured-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fafbff 0%, #f0f7ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ms-cbs-featured-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}
.ms-cbs-featured-logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.ms-cbs-featured-logo img { width: 100%; height: 100%; object-fit: cover; }
.ms-cbs-featured-logo b { font-size: 18px; font-weight: 800; color: var(--c); }
.ms-cbs-featured-info { min-width: 0; }
.ms-cbs-featured-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-featured-info em {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #6b7280;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 筛选 */
.ms-cbs-filter-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ms-cbs-filter-box:last-of-type { border-bottom: 0; }
.ms-cbs-filter-title {
    flex: 0 0 80px;
    padding-top: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
}
.ms-cbs-filter-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-cbs-filter-item {
    padding: 6px 16px;
    font-size: 13px;
    color: var(--t2);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
}
.ms-cbs-filter-item:hover {
    border-color: #93c5fd;
    color: var(--c2);
}
.ms-cbs-filter-item.is-on {
    background: var(--c2);
    border-color: var(--c2);
    color: #fff;
    font-weight: 600;
}

/* 结果栏 */
.ms-cbs-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 12px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 14px;
}
.ms-cbs-result-bar span {
    font-size: 15px;
    font-weight: 700;
    color: var(--t);
}
.ms-cbs-result-bar em {
    font-style: normal;
    font-size: 12px;
    color: #9ca3af;
}
.ms-cbs-result-bar b { color: var(--c2); font-weight: 700; }

/* 服务商卡片网格 AMZ123 风格 */
.ms-cbs-vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.ms-cbs-vendor-card {
    display: block;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ms-cbs-vendor-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
    transform: translateY(-3px);
}
.ms-cbs-vendor-cover {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}
.ms-cbs-vendor-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-cbs-vendor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.ms-cbs-vendor-placeholder b {
    font-size: 42px;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.25);
}
.ms-cbs-vendor-body {
    padding: 12px 14px 14px;
}
.ms-cbs-vendor-body h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-vendor-body p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.ms-cbs-vendor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.ms-cbs-vendor-tags em {
    font-style: normal;
    font-size: 10px;
    padding: 2px 8px;
    background: #f3f6fb;
    color: #64748b;
    border-radius: 3px;
    border: 1px solid #e8eef6;
}
.ms-cbs-pager { margin-top: 20px; }

/* 空状态 · 招募区 */
.ms-cbs-recruit {
    padding: 8px 0 4px;
}
.ms-cbs-recruit-main {
    display: flex;
    gap: 24px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 50%, #f0fdf4 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    margin-bottom: 16px;
}
.ms-cbs-recruit-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c2), #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.ms-cbs-recruit-icon .iconfont {
    font-size: 32px;
    color: #fff;
}
.ms-cbs-recruit-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--t);
}
.ms-cbs-recruit-text > p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    max-width: 480px;
}
.ms-cbs-recruit-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.ms-cbs-recruit-list li {
    font-size: 13px;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ms-cbs-recruit-list .iconfont {
    color: #10b981;
    font-size: 14px;
}
.ms-cbs-recruit-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    height: 40px;
    padding: 0 28px;
    background: var(--c2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transition: background .15s, transform .15s;
}
.ms-cbs-recruit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #fff !important;
}
.ms-cbs-recruit-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ms-cbs-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100px;
    background: #fafbfc;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    font-size: 12px;
    color: #d1d5db;
    transition: border-color .15s;
}
.ms-cbs-slot:hover { border-color: #bfdbfe; }
.ms-cbs-slot-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-cbs-slot-ico .iconfont { font-size: 16px; color: #d1d5db; }

@media (max-width: 992px) {
    .ms-cbs-portal-layout { grid-template-columns: 1fr; }
    .ms-cbs-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        gap: 6px;
    }
    .ms-cbs-aside-hd { display: none; }
    .ms-cbs-aside-item { margin: 0; flex-direction: column; text-align: center; padding: 10px 8px; }
    .ms-cbs-aside-meta em { display: none; }
    .ms-cbs-aside-arrow { display: none; }
    .ms-cbs-aside-apply { grid-column: 1 / -1; margin: 4px 0 0; }
    .ms-cbs-vendor-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-cbs-featured-list { grid-template-columns: 1fr; }
    .ms-cbs-hero-row { flex-direction: column; align-items: flex-start; }
    .ms-cbs-hero-stats { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .ms-cbs-vendor-grid,
    .ms-cbs-recruit-slots { grid-template-columns: 1fr; }
    .ms-cbs-aside { grid-template-columns: 1fr; }
    .ms-cbs-recruit-main { flex-direction: column; align-items: center; text-align: center; }
    .ms-cbs-recruit-list { justify-content: center; }
    .ms-cbs-filter-box { flex-direction: column; gap: 8px; }
    .ms-cbs-filter-title { flex: none; padding-top: 0; }
    .ms-cbs-hero-text h1 { font-size: 22px; }
}

/* 品牌主页 / 入驻 / 支付 */
.ms-cbs-page {
    background: var(--bg);
    min-height: 60vh;
    padding-bottom: 48px;
}
.ms-cbs-banner {
    height: 148px;
    background:
        radial-gradient(ellipse 80% 120% at 12% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 100% at 88% 30%, rgba(59, 130, 246, 0.28), transparent 50%),
        linear-gradient(135deg, #0a1c33 0%, var(--navy2) 48%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}
.ms-cbs-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 90%);
    pointer-events: none;
}
.ms-cbs-banner-inner {
    position: relative;
    z-index: 1;
    max-width: var(--w);
    margin: 0 auto;
    padding: 36px 20px 0;
    color: #fff;
}
.ms-cbs-banner-inner h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ms-cbs-banner-inner p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.88;
    max-width: 560px;
    line-height: 1.55;
}
.ms-cbs-banner-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ms-cbs-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.ms-cbs-banner-btn--primary {
    color: #fff;
    background: var(--c2);
    border: 1px solid var(--c2);
}
.ms-cbs-banner-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.ms-cbs-banner-btn--ghost {
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
}
.ms-cbs-banner-btn--ghost:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.ms-cbs-shell {
    max-width: var(--w);
    margin: -36px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.ms-cbs-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.ms-cbs-tabs-bar {
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 8px 12px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    border-bottom: 1px solid var(--line);
}
.ms-cbs-tab {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--t2);
    text-decoration: none;
    border-radius: 10px 10px 0 0;
    transition: color .15s, background .15s;
}
.ms-cbs-tab:hover { color: var(--c2); }
.ms-cbs-tab.is-on {
    color: var(--t);
    background: #fff;
    box-shadow: 0 -2px 0 var(--c2) inset;
}
.ms-cbs-panel-body { padding: 22px 24px 28px; }
.ms-cbs-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ms-cbs-section-hd h2,
.ms-cbs-hot-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-cbs-section-hd h2::before,
.ms-cbs-hot-label::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c), var(--c2));
}
.ms-cbs-hot { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.ms-cbs-hot-more {
    font-size: 13px;
    color: var(--c2);
    text-decoration: none;
    font-weight: 600;
}
.ms-cbs-hot-more:hover { text-decoration: underline; }
.ms-cbs-hot-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ms-cbs-hot-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    border: 1px solid #e8eef6;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ms-cbs-hot-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
.ms-cbs-hot-logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.ms-cbs-hot-logo img { width: 100%; height: 100%; object-fit: cover; }
.ms-cbs-hot-logo b { font-size: 18px; font-weight: 700; color: var(--c); }
.ms-cbs-hot-text { min-width: 0; }
.ms-cbs-hot-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-hot-text em {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--t2);
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-filters {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 0;
}
.ms-cbs-filter-label {
    flex: 0 0 76px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
    line-height: 32px;
}
.ms-cbs-filter-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.ms-cbs-tag {
    padding: 6px 14px;
    font-size: 12px;
    color: var(--t2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    line-height: 18px;
    transition: all .15s;
}
.ms-cbs-tag:hover,
.ms-cbs-tag.is-on {
    color: var(--c2);
    border-color: #93c5fd;
    background: var(--c-soft);
    font-weight: 600;
}
.ms-cbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 10px;
}
.ms-cbs-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eef6;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ms-cbs-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-3px);
}
.ms-cbs-card-banner {
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8fbff 0%, #e8f0fe 100%);
    overflow: hidden;
    position: relative;
}
.ms-cbs-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.4));
    pointer-events: none;
}
.ms-cbs-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.ms-cbs-card-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}
.ms-cbs-card-fallback b {
    font-size: 36px;
    font-weight: 800;
    color: var(--c);
    line-height: 1;
    opacity: 0.65;
}
.ms-cbs-card-fallback span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-cbs-card-foot {
    padding: 12px 14px 14px;
    border-top: 1px solid #f1f5f9;
}
.ms-cbs-card-foot h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-card-foot p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--t2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-cbs-card-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.ms-cbs-card-tags em {
    font-style: normal;
    font-size: 11px;
    padding: 2px 8px;
    background: #f3f6fb;
    color: var(--t2);
    border-radius: 4px;
    border: 1px solid #e8eef6;
}
.ms-cbs-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--t2);
}
.ms-cbs-empty .iconfont {
    font-size: 40px;
    color: var(--t3);
    opacity: 0.6;
}
.ms-cbs-empty p { margin: 12px 0 0; font-size: 14px; }
.ms-cbs-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 24px;
    color: #fff;
    background: var(--c2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.ms-cbs-empty-btn:hover { background: #1d4ed8; color: #fff; }
.ms-cbs-page-nav { margin-top: 24px; }
.ms-cbs-portal {
    margin: 0 0 16px;
    padding: 18px 20px 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ms-cbs-portal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ms-cbs-portal-hd h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-cbs-portal-hd h2::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c), var(--c2));
}
.ms-cbs-portal-hd a { font-size: 13px; color: var(--c2); text-decoration: none; font-weight: 600; }
.ms-cbs-portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 4px;
    margin-bottom: 14px;
    background: #f3f6fb;
    border-radius: 10px;
    border: 1px solid #e8eef6;
}
.ms-cbs-portal-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.ms-cbs-portal-tab.is-on {
    color: var(--t);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ms-cbs-portal-apply {
    margin-left: auto;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c2);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    background: var(--c-soft);
}
.ms-cbs-portal-apply:hover { background: #dbeafe; }
.ms-cbs-portal-panel { display: none; }
.ms-cbs-portal-panel.is-on { display: block; }
.ms-cbs-portal-hot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.ms-cbs-portal-item {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fbff;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8eef6;
    transition: all .15s;
}
.ms-cbs-portal-item:hover {
    background: var(--c-soft);
    border-color: #bfdbfe;
}
.ms-cbs-portal-logo {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-cbs-portal-logo img { width: 100%; height: 100%; object-fit: cover; }
.ms-cbs-portal-logo b { font-size: 15px; font-weight: 700; color: var(--c); }
.ms-cbs-portal-text { min-width: 0; }
.ms-cbs-portal-text strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-portal-text em {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--t2);
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cbs-portal-empty { padding: 16px 0; font-size: 13px; color: var(--t2); }
.ms-cbs-portal-empty a { color: var(--c2); font-weight: 600; }
.ms-cbs-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--c2);
    text-decoration: none;
    font-weight: 600;
}
/* 会员入驻 */
.ub-content-box.ms-cbs-member-wrap {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 24px 28px 28px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ms-cbs-member-hd { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ms-cbs-member-hd h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--t);
}
.ms-cbs-member-hd p { margin: 6px 0 0; font-size: 13px; color: var(--t2); line-height: 1.55; }
.ms-cbs-steps {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    padding: 0;
    list-style: none;
}
.ms-cbs-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 12px;
    color: var(--t3);
    padding-top: 28px;
}
.ms-cbs-steps li::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: #f3f4f6;
    color: var(--t3);
    border: 2px solid var(--line);
}
.ms-cbs-steps li.is-on { color: var(--c2); font-weight: 600; }
.ms-cbs-steps li.is-on::before {
    background: var(--c2);
    color: #fff;
    border-color: var(--c2);
}
.ms-cbs-steps li.is-done { color: var(--t2); }
.ms-cbs-steps li.is-done::before {
    background: var(--c-soft);
    color: var(--c2);
    border-color: #93c5fd;
}
.ms-cbs-steps li + li::after {
    content: '';
    position: absolute;
    top: 11px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: -1;
}
.ms-cbs-apply-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 22px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.55;
}
.ms-cbs-apply-tip .iconfont { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.ms-cbs-form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.ms-cbs-form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ms-cbs-form-section-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-cbs-form-section-title::before {
    content: '';
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--c2);
}
.ms-cbs-member-apply .ms-cbs-form,
.ms-cbs-member-pay .ms-cbs-pay-panel {
    max-width: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
}
.ms-cbs-form-row { margin-bottom: 16px; }
.ms-cbs-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t);
}
.ms-cbs-form-row label span { color: #ef4444; }
.ms-cbs-form-row input[type=text],
.ms-cbs-form-row input[type=url],
.ms-cbs-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: var(--t);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.ms-cbs-form-row input:focus,
.ms-cbs-form-row textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.ms-cbs-form-row textarea { resize: vertical; min-height: 96px; }
.ms-cbs-form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ms-cbs-block-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ms-cbs-block-opt { cursor: pointer; }
.ms-cbs-block-opt input { display: none; }
.ms-cbs-block-opt span {
    display: block;
    padding: 16px 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    text-align: center;
    transition: all .15s;
    background: #fff;
}
.ms-cbs-block-opt:hover span { border-color: #93c5fd; }
.ms-cbs-block-opt input:checked + span {
    border-color: var(--c2);
    background: var(--c-soft);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.ms-cbs-block-opt strong { display: block; font-size: 15px; font-weight: 700; color: var(--t); }
.ms-cbs-block-opt em {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--t2);
    font-style: normal;
}
.ms-cbs-block-opt em b { color: #dc2626; font-weight: 700; }
.ms-cbs-logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ms-cbs-logo-preview {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px dashed var(--line);
    background: #f8fbff center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
}
.ms-cbs-logo-preview:hover { border-color: #93c5fd; }
.ms-cbs-logo-preview.is-empty { color: var(--t3); font-size: 24px; }
.ms-cbs-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.ms-cbs-logo-actions { flex: 1; min-width: 0; }
.ms-cbs-logo-actions p { margin: 0 0 8px; font-size: 12px; color: var(--t3); line-height: 1.5; }
.ms-cbs-logo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c2);
    background: var(--c-soft);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.ms-cbs-logo-btn:hover { background: #dbeafe; }
.ms-cbs-form-tags-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.ms-cbs-form-tags-group > label {
    flex: 0 0 auto;
    min-width: 72px;
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--t);
    line-height: 1.4;
    white-space: nowrap;
}
.ms-cbs-form-tags-group .ms-cbs-req { color: #ef4444; font-weight: 700; }
.ms-cbs-form-tags-group .ms-cbs-tag-tip {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    color: var(--t3);
}
.ms-cbs-form-tag-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.ms-cbs-form-tag { cursor: pointer; }
.ms-cbs-form-tag input { display: none; }
.ms-cbs-form-tag span {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--t2);
    transition: all .15s;
}
.ms-cbs-form-tag input:checked + span {
    border-color: var(--c2);
    background: var(--c-soft);
    color: var(--c2);
    font-weight: 600;
}
.ms-cbs-pay-section {
    margin: 0;
    padding: 0;
    border-bottom: none;
}
.ms-cbs-pay-alert {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}
.ms-cbs-pay-alert .iconfont { font-size: 14px; margin-top: 1px; }
.ms-cbs-pay-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 12px;
    border: 1px solid #e8eef6;
    border-radius: 8px;
    background: #f8fbff;
}
.ms-cbs-pay-method {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1677ff;
    white-space: nowrap;
}
.ms-cbs-pay-method .iconfont { font-size: 16px; line-height: 1; }
.ms-cbs-fee-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}
.ms-cbs-fee-inline em {
    font-size: 12px;
    color: var(--t2);
    font-style: normal;
}
.ms-cbs-fee-inline strong {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}
.ms-cbs-pay-split {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--t2);
    white-space: nowrap;
}
.ms-cbs-pay-split b { color: var(--t); font-weight: 600; }
.ms-cbs-fee-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 12px 0 10px;
    background: #f8fbff;
    border: 1px solid #e8eef6;
    border-radius: 8px;
}
.ms-cbs-fee-box span { font-size: 13px; color: var(--t2); font-weight: 600; }
.ms-cbs-fee-box strong { font-size: 18px; font-weight: 700; color: #dc2626; }
.ms-cbs-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    color: var(--t2);
    cursor: pointer;
    white-space: nowrap;
}
.ms-cbs-check input { width: 14px; height: 14px; accent-color: var(--c2); flex-shrink: 0; }
.ms-cbs-pay-bar .ms-cbs-check { margin-left: auto; }
.ms-cbs-submit {
    width: auto;
    min-width: 132px;
    padding: 8px 16px;
    margin-left: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--c2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.ms-cbs-pay-bar .ms-cbs-submit { margin-left: 0; }
@media (max-width: 720px) {
    .ms-cbs-form-tags-group {
        flex-direction: column;
        gap: 6px;
    }
    .ms-cbs-form-tags-group > label { margin-top: 0; }
    .ms-cbs-pay-bar .ms-cbs-check { margin-left: 0; }
    .ms-cbs-pay-bar .ms-cbs-submit {
        width: 100%;
        margin-left: 0;
    }
}
.ms-cbs-submit:hover { background: #1d4ed8; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.ms-cbs-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.ms-cbs-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 35, 64, 0.55);
    backdrop-filter: blur(4px);
}
.ms-cbs-pay-inner {
    padding: 32px 36px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    max-width: 360px;
    width: calc(100% - 40px);
}
.ms-cbs-pay-inner h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--t); }
.ms-cbs-pay-inner #ms-cbs-qr { margin: 16px 0; }
.ms-cbs-pay-inner #ms-cbs-qr img { border-radius: 8px; border: 1px solid var(--line); }
.ms-cbs-pay-inner #ms-cbs-pay-tip { margin: 0; font-size: 13px; color: var(--t2); }
.ms-cbs-member-pay .ms-cbs-pay-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.ms-cbs-pay-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--c-soft);
    color: var(--c2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.ms-cbs-member-pay .ms-cbs-pay-panel h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--t);
}
.ms-cbs-member-pay .ms-cbs-pay-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--t2);
}
.ms-cbs-member-pay .ms-cbs-pay-desc b { color: var(--t); font-weight: 600; }
.ms-cbs-member-pay .ms-cbs-pay-note {
    margin: 0 0 20px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--t2);
    background: #f8fbff;
    border-radius: 10px;
    border: 1px solid #e8eef6;
    line-height: 1.55;
    text-align: left;
}
.ms-cbs-member-pay .ms-cbs-fee-box { margin-top: 0; }
/* ===== 品牌主页（对齐会员主页视觉语言） ===== */
body:has(.ms-cbs-brand-page) .ms-topbar {
    background: rgba(8, 22, 42, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body:has(.ms-cbs-brand-page) .ms-topbar-nav .ms-nav-link { color: rgba(255, 255, 255, 0.88); }
body:has(.ms-cbs-brand-page) .ms-topbar-nav .ms-nav-link:hover,
body:has(.ms-cbs-brand-page) .ms-topbar-nav .ms-nav-link.active,
body:has(.ms-cbs-brand-page) .ms-nav-item:hover > .ms-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
body:has(.ms-cbs-brand-page) .ms-user-trigger { border-color: rgba(255, 255, 255, 0.35); }

.ms-cbs-brand-page {
    background: var(--bg);
    padding-bottom: 48px;
    min-height: 60vh;
}

/* 全宽品牌头图（可上传背景） */
.ms-cbs-brand-banner {
    position: relative;
    margin-top: calc(var(--topbar-h) * -1);
    min-height: 280px;
    padding: calc(var(--topbar-h) + 28px) 0 36px;
    background:
        radial-gradient(ellipse 70% 100% at 10% 20%, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 80% at 90% 40%, rgba(59, 130, 246, 0.2), transparent 50%),
        linear-gradient(135deg, #0a1c33 0%, #143356 48%, #0c2340 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.ms-cbs-brand-banner.has-cover {
    background-image: var(--cbs-cover);
    background-size: cover;
    background-position: center;
}
.ms-cbs-brand-banner-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 22, 42, 0.72) 0%, rgba(8, 22, 42, 0.45) 55%, rgba(8, 22, 42, 0.35) 100%);
    pointer-events: none;
}
.ms-cbs-brand-banner.has-cover .ms-cbs-brand-banner-mask {
    background: linear-gradient(90deg, rgba(8, 22, 42, 0.78) 0%, rgba(8, 22, 42, 0.55) 50%, rgba(8, 22, 42, 0.4) 100%);
}
.ms-cbs-brand-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.ms-cbs-brand-logo-wrap {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-cbs-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}
.ms-cbs-brand-logo-fallback {
    font-size: 48px;
    font-weight: 700;
    color: var(--c2);
    line-height: 1;
    user-select: none;
}
.ms-cbs-brand-banner-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.ms-cbs-brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ms-cbs-brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ms-cbs-brand-banner-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.ms-cbs-brand-titles h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ms-cbs-brand-type {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1e40af;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    line-height: 1.5;
}
.ms-cbs-brand-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    background: rgba(240, 253, 244, 0.95);
    border-radius: 999px;
    line-height: 1.5;
}
.ms-cbs-brand-verified .iconfont { font-size: 12px; color: #16a34a; }
.ms-cbs-brand-slogan {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
}
.ms-cbs-brand-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    font-size: 13px;
}
.ms-cbs-brand-meta-row a,
.ms-cbs-brand-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    max-width: 100%;
}
.ms-cbs-brand-meta-row a:hover { color: #fff; }
.ms-cbs-brand-meta-row .iconfont { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.ms-cbs-brand-head-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}
.ms-cbs-brand-wechat-qr {
    flex-shrink: 0;
    width: 108px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    text-align: center;
}
.ms-cbs-brand-wechat-qr img {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
}
.ms-cbs-brand-wechat-qr span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: #4b5563;
}
.ms-cbs-brand-aside-qr {
    display: block;
    width: 120px;
    height: 120px;
    margin-top: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.ms-cbs-brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.ms-cbs-brand-btn--light {
    background: #fff;
    border-color: #fff;
    color: #0c2340 !important;
}
.ms-cbs-brand-btn--light:hover {
    background: #f1f5f9;
    color: #0c2340 !important;
}
.ms-cbs-brand-btn--light.is-on {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}
.ms-cbs-brand-btn--ghost-light {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55);
}
.ms-cbs-brand-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}
.ms-cbs-brand-btn--primary {
    background: var(--c2);
    border-color: var(--c2);
    color: #fff !important;
}
.ms-cbs-brand-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff !important;
}
.ms-cbs-brand-btn--ghost {
    background: #fff;
    color: var(--c2) !important;
    border-color: #e5e7eb;
}
.ms-cbs-brand-wrap {
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

/* 双栏 */
.ms-cbs-brand-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}
.ms-cbs-brand-main {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.ms-cbs-brand-tabs {
    display: flex;
    gap: 4px;
    padding: 0 16px;
    border-bottom: 1px solid #f1f5f9;
}
.ms-cbs-brand-tabs a {
    display: inline-block;
    padding: 14px 14px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s;
}
.ms-cbs-brand-tabs a:hover { color: var(--c2); }
.ms-cbs-brand-tabs a.is-on {
    color: var(--c2);
    border-bottom-color: var(--c2);
}
.ms-cbs-brand-panel { padding: 4px 20px 20px; }

.ms-cbs-brand-block {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ms-cbs-brand-block:last-child { border-bottom: 0; padding-bottom: 8px; }
.ms-cbs-brand-block-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ms-cbs-brand-block-hd h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--t);
}
.ms-cbs-brand-block-hd a {
    font-size: 12px;
    color: var(--c2);
    text-decoration: none;
    font-weight: 600;
}
.ms-cbs-brand-block-hd a:hover { text-decoration: underline; }
.ms-cbs-brand-rich {
    font-size: 14px;
    line-height: 1.8;
    color: var(--t2);
}
.ms-cbs-brand-rich img { max-width: 100%; border-radius: 8px; }
.ms-cbs-brand-rich p { margin: 0 0 10px; }

.ms-cbs-brand-empty {
    padding: 40px 0 32px;
    text-align: center;
    color: #9ca3af;
}
.ms-cbs-brand-empty .iconfont {
    font-size: 28px;
    opacity: 0.55;
}
.ms-cbs-brand-empty p {
    margin: 10px 0 0;
    font-size: 13px;
}
.ms-cbs-brand-empty a {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c2);
    text-decoration: none;
}
.ms-cbs-brand-empty a:hover { text-decoration: underline; }
.ms-cbs-brand-news { padding: 0; }
.ms-cbs-brand-pager { margin-top: 16px; }

/* 侧边栏 */
.ms-cbs-brand-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: calc(var(--topbar-h) + 12px);
}
.ms-cbs-brand-aside-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ms-cbs-brand-aside-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--t);
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.ms-cbs-brand-dl {
    margin: 0;
    padding: 0;
}
.ms-cbs-brand-dl > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
}
.ms-cbs-brand-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ms-cbs-brand-dl > div:first-child { padding-top: 0; }
.ms-cbs-brand-dl dt {
    font-size: 12px;
    color: var(--t3);
    font-weight: 500;
}
.ms-cbs-brand-dl dd {
    margin: 0;
    font-size: 13px;
    color: var(--t);
    font-weight: 600;
    word-break: break-all;
    line-height: 1.5;
}
.ms-cbs-brand-dl a {
    color: var(--c2);
    text-decoration: none;
    font-weight: 600;
}
.ms-cbs-brand-dl a:hover { text-decoration: underline; }
.ms-cbs-brand-site-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: var(--c2);
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}
.ms-cbs-brand-site-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}
.ms-cbs-brand-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ms-cbs-brand-tag-cloud em {
    font-style: normal;
    font-size: 12px;
    padding: 4px 10px;
    background: #f3f6fb;
    color: var(--t2);
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #e8eef6;
}
.ms-cbs-brand-aside-card--cert {
    background: linear-gradient(180deg, #f8fffb 0%, #f0fdf4 100%);
    border-color: #d1fae5;
}
.ms-cbs-brand-cert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ms-cbs-brand-cert > .iconfont {
    flex-shrink: 0;
    font-size: 22px;
    color: #16a34a;
    line-height: 1.2;
}
.ms-cbs-brand-cert strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}
.ms-cbs-brand-cert p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .ms-cbs-hot-list, .ms-cbs-grid, .ms-cbs-block-options, .ms-cbs-portal-hot { grid-template-columns: repeat(2, 1fr); }
    .ms-cbs-tab { padding: 12px 16px; font-size: 14px; }
    .ms-cbs-form-row--half { grid-template-columns: 1fr; }
    .ms-cbs-brand-layout { grid-template-columns: 1fr; }
    .ms-cbs-brand-aside { position: static; }
    .ms-cbs-brand-banner-hd { flex-wrap: wrap; }
    .ms-cbs-brand-head-actions { flex-direction: row; }
}
@media (max-width: 640px) {
    .ms-cbs-hot-list, .ms-cbs-grid, .ms-cbs-block-options, .ms-cbs-portal-hot { grid-template-columns: 1fr; }
    .ms-cbs-banner-inner h1 { font-size: 22px; }
    .ms-cbs-brand-banner { min-height: 0; padding-bottom: 28px; }
    .ms-cbs-brand-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ms-cbs-brand-banner-hd { flex-direction: column; align-items: center; }
    .ms-cbs-brand-titles h1 { justify-content: center; font-size: 22px; }
    .ms-cbs-brand-pills { justify-content: center; }
    .ms-cbs-brand-meta-row { justify-content: center; }
    .ms-cbs-brand-head-actions { justify-content: center; flex-direction: row; }
    .ms-cbs-brand-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .ms-cbs-brand-tabs a { padding: 12px 12px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
    .ms-cbs-filters { flex-direction: column; }
    .ms-cbs-filter-label { flex: none; line-height: 1.4; }
    .ms-cbs-steps { flex-direction: column; gap: 8px; }
    .ms-cbs-steps li + li::after { display: none; }
    .ub-content-box.ms-cbs-member-wrap { padding: 18px 16px; }
}

/* ========== 曝光举报 ========== */
.ms-report-page { padding-bottom: 48px; }
.ms-report-hero {
    background: linear-gradient(135deg, #1a6fd4 0%, #0d4a8f 100%);
    color: #fff;
    padding: 36px 0 32px;
    margin-bottom: 24px;
}
.ms-report-hero h1 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}
.ms-report-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    opacity: .95;
}
.ms-report-stats b { font-size: 18px; margin: 0 4px; }
.ms-report-search {
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    gap: 10px;
}
.ms-report-search input[type="text"] {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
}
.ms-report-search-btn,
.ms-report-post-btn {
    height: 44px;
    line-height: 44px;
    padding: 0 24px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.ms-report-search-btn { background: #fff; color: #1a6fd4; font-weight: 600; }
.ms-report-post-btn { background: #222; color: #fff; }
.ms-report-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ms-report-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f0f4f8;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}
.ms-report-tab.is-on,
.ms-report-tab:hover { background: var(--theme-color-primary, #1a6fd4); color: #fff; }
.ms-report-list { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ms-report-item {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.ms-report-item:hover { background: #f8fbff; }
.ms-report-item-main { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ms-report-item-flag {
    background: #e8f2ff;
    color: #1a6fd4;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}
.ms-report-item-title { font-size: 16px; font-weight: 600; color: #222; }
.ms-report-item-tag {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}
.ms-report-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}
.ms-report-item-user { display: flex; align-items: center; gap: 6px; }
.ms-report-item-user img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ms-report-empty { padding: 48px; text-align: center; color: #999; }
.ms-report-pager { margin-top: 24px; text-align: center; }
.ms-report-detail-type {
    display: inline-block;
    font-size: 12px;
    background: #e8f2ff;
    color: #1a6fd4;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.ms-report-meta-table {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    margin: 16px 0;
}
.ms-report-meta-row { display: flex; border-bottom: 1px solid #e8e8e8; }
.ms-report-meta-row:last-child { border-bottom: none; }
.ms-report-meta-label {
    width: 140px;
    flex-shrink: 0;
    background: #e8f4fc;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
}
.ms-report-meta-value {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    word-break: break-all;
}
.ms-report-disclaimer {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff8e6;
    border-left: 3px solid #f5a623;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}
.ms-report-disclaimer strong { display: block; margin-bottom: 4px; color: #333; }
.ms-report-disclaimer p { margin: 0; }
.ms-report-post-page { padding-bottom: 56px; background: #f4f7fb; min-height: 60vh; }
.ms-report-post-hero {
    background: linear-gradient(135deg, #1a6fd4 0%, #0d4a8f 100%);
    color: #fff;
    padding: 28px 0 32px;
    margin-bottom: 28px;
}
.ms-report-post-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    opacity: .9;
}
.ms-report-post-crumb a { color: #fff; text-decoration: none; }
.ms-report-post-crumb a:hover { text-decoration: underline; }
.ms-report-post-crumb .iconfont { font-size: 12px; opacity: .7; }
.ms-report-post-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}
.ms-report-post-hero p {
    margin: 0;
    font-size: 14px;
    opacity: .92;
    max-width: 640px;
    line-height: 1.6;
}
.ms-report-post-body { max-width: 920px; }
.ms-report-post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.ms-report-post-type-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 24px 0;
    flex-wrap: wrap;
}
.ms-report-post-type-tab {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    background: #f1f5f9;
    transition: all .15s;
    border: 1px solid transparent;
}
.ms-report-post-type-tab:hover {
    color: var(--theme-color-primary, #2563eb);
    background: #eff6ff;
}
.ms-report-post-type-tab.is-on {
    color: #fff;
    background: var(--theme-color-primary, #2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.ms-report-post-form { padding: 24px; }
.ms-report-post-section { margin-bottom: 28px; }
.ms-report-post-section:last-of-type { margin-bottom: 0; }
.ms-report-post-section-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-report-post-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--theme-color-primary, #2563eb);
}
.ms-report-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.ms-report-post-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.ms-report-post-field label em {
    color: #ef4444;
    font-style: normal;
    margin-left: 2px;
}
.ms-report-post-field--full { grid-column: 1 / -1; }
.ms-report-post-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    height: 42px;
}
textarea.ms-report-post-input { height: auto; min-height: 96px; }
select.ms-report-post-input { appearance: auto; cursor: pointer; }
.ms-report-post-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.ms-report-post-input::placeholder { color: #94a3b8; }
.ms-report-post-callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.ms-report-post-callout .iconfont {
    font-size: 18px;
    color: var(--theme-color-primary, #2563eb);
    flex-shrink: 0;
    margin-top: 2px;
}
.ms-report-post-callout p { margin: 0 0 4px; color: #475569; }
.ms-report-post-callout span { font-size: 12px; color: #94a3b8; }
.ms-report-post-editor {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    min-height: 360px;
}
.ms-report-post-editor .edui-default .edui-editor {
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
}
.ms-report-post-editor .edui-editor-iframeholder {
    min-height: 320px !important;
}
.ms-report-post-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ms-report-post-anon {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}
.ms-report-post-anon input { position: absolute; opacity: 0; width: 0; height: 0; }
.ms-report-post-anon-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all .15s;
    position: relative;
}
.ms-report-post-anon input:checked + .ms-report-post-anon-box {
    background: var(--theme-color-primary, #2563eb);
    border-color: var(--theme-color-primary, #2563eb);
}
.ms-report-post-anon input:checked + .ms-report-post-anon-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ms-report-post-anon-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}
.ms-report-post-anon-text em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
}
.ms-report-post-actions { display: flex; align-items: center; gap: 12px; }
.ms-report-post-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--theme-color-primary, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.ms-report-post-submit:hover { filter: brightness(1.05); }
.ms-report-post-submit:active { transform: scale(0.98); }
.ms-report-post-submit:disabled { opacity: .6; cursor: not-allowed; }
.ms-report-post-back {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    padding: 8px 12px;
}
.ms-report-post-back:hover { color: var(--theme-color-primary, #2563eb); }
.ms-report-user-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    margin-bottom: 16px;
    overflow: hidden;
}
.ms-report-user-card-hd {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfd;
}
.ms-report-user-card-inner { box-shadow: none; border: none; margin: 0; }
.ms-report-user-anon {
    padding: 24px 16px;
    text-align: center;
}
.ms-report-user-anon-avatar {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}
.ms-report-user-anon strong {
    display: block;
    font-size: 16px;
    color: #334155;
    margin-bottom: 6px;
}
.ms-report-user-anon p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .ms-report-search { flex-wrap: wrap; }
    .ms-report-search input[type="text"] { width: 100%; flex: none; }
    .ms-report-post-hero h1 { font-size: 22px; }
    .ms-report-post-grid { grid-template-columns: 1fr; }
    .ms-report-post-form { padding: 16px; }
    .ms-report-post-type-tabs { padding: 16px 16px 0; }
    .ms-report-post-footer { flex-direction: column; align-items: stretch; }
    .ms-report-post-actions { flex-direction: column; }
    .ms-report-post-submit,
    .ms-report-post-back { width: 100%; text-align: center; justify-content: center; }
}
