/* ============================================================
   材料院所地图 · 前台样式
   基于 Bootstrap 3 栅格 + 自定义设计令牌
   ============================================================ */

:root {
    --mse-primary: #2b5bff;
    --mse-primary-dark: #1d4ed8;
    --mse-primary-soft: #eef3ff;
    --mse-text: #0f1b33;
    --mse-text-2: #344054;
    --mse-muted: #667085;
    --mse-muted-2: #98a2b3;
    --mse-bg: #f2f4f8;
    --mse-card: #ffffff;
    --mse-border: #e6eaf2;
    --mse-border-strong: #d5dbe8;
    --mse-green: #0f9f6e;
    --mse-orange: #e57a1f;
    --mse-red: #d92d20;
    --mse-radius: 16px;
    --mse-radius-sm: 10px;
    --mse-shadow: 0 8px 24px rgba(15, 27, 51, .06);
    --mse-shadow-lg: 0 16px 40px rgba(15, 27, 51, .1);
}

/* ---------- 基础 ---------- */
.mse-body {
    padding-top: 0;
    background: var(--mse-bg);
    color: var(--mse-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mse-body h1,
.mse-body h2,
.mse-body h3,
.mse-body h4 {
    color: var(--mse-text);
    margin-top: 0;
}

.mse-body p {
    margin: 0 0 10px;
}

.mse-body a {
    color: var(--mse-primary);
    text-decoration: none;
}

.mse-body a:hover,
.mse-body a:focus {
    color: var(--mse-primary-dark);
    text-decoration: none;
}

.mse-body .mse-brand,
.mse-body .mse-brand:hover,
.mse-body .mse-brand:focus {
    color: var(--mse-text);
}

.mse-body button {
    font-family: inherit;
}

.mse-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.mse-main {
    min-height: 60vh;
    padding: 18px 0 44px;
}

.mse-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hide {
    display: none !important;
}

/* ---------- 顶部导航 ---------- */
.mse-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--mse-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mse-header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 68px;
}

.mse-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mse-text);
    flex-shrink: 0;
}

.mse-brand:hover {
    color: var(--mse-text);
}

.mse-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b5bff, #6d94ff);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(43, 91, 255, .25);
}

.mse-brand-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.mse-brand-text small {
    display: block;
    color: var(--mse-muted);
    font-size: 11px;
    line-height: 1.4;
}

.mse-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mse-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--mse-text-2);
    font-size: 14px;
    font-weight: 500;
}

.mse-nav a:hover {
    background: #f5f7fb;
    color: var(--mse-primary);
}

.mse-nav a.active {
    background: var(--mse-primary-soft);
    color: var(--mse-primary);
    font-weight: 600;
}

.mse-header-actions {
    display: none;
    align-items: center;
}

.mse-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mse-primary-soft);
    color: var(--mse-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* ---------- 通用卡片 / 按钮 ---------- */
.mse-card {
    background: var(--mse-card);
    border: 1px solid var(--mse-border);
    border-radius: var(--mse-radius);
    box-shadow: var(--mse-shadow);
    padding: 22px;
}

.mse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.mse-btn:active {
    transform: translateY(1px);
}

.mse-btn:disabled,
.mse-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.mse-body .mse-btn-primary {
    background: var(--mse-primary);
    border-color: var(--mse-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(43, 91, 255, .22);
}

.mse-body .mse-btn-primary:hover,
.mse-body .mse-btn-primary:focus {
    background: var(--mse-primary-dark);
    border-color: var(--mse-primary-dark);
    color: #fff;
}

.mse-body .mse-btn-ghost {
    background: #fff;
    border-color: var(--mse-border-strong);
    color: var(--mse-text-2);
}

.mse-body .mse-btn-ghost:hover,
.mse-body .mse-btn-ghost:focus {
    border-color: var(--mse-primary);
    color: var(--mse-primary);
}

.mse-btn-lg {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.mse-link {
    color: var(--mse-primary);
    font-size: 13px;
    font-weight: 600;
}

.mse-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--mse-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mse-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--mse-border);
    border-radius: 9px;
    background: #fbfcff;
    color: var(--mse-muted);
    font-size: 12px;
    cursor: pointer;
}

.mse-ghost-btn:hover {
    border-color: #b9cbff;
    color: var(--mse-primary);
    background: var(--mse-primary-soft);
}

.mse-ghost-btn.is-active {
    border-color: #b9cbff;
    color: var(--mse-primary);
    background: var(--mse-primary-soft);
}

.mse-ghost-btn i.fa-heart {
    color: var(--mse-red);
}

/* ---------- 徽标 / 标签 / 星级 ---------- */
.mse-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mse-badge-a {
    background: var(--mse-primary-soft);
    color: var(--mse-primary);
}

.mse-badge-b {
    background: #f2f4f7;
    color: #475467;
}

.mse-badge-c {
    background: #eef7ff;
    color: #1570ef;
}

.mse-badge-soft {
    background: #f5f7fb;
    color: var(--mse-muted);
    font-weight: 500;
}

.mse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mse-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f4f6fa;
    color: var(--mse-text-2);
    font-size: 12px;
}

.mse-tag-link:hover {
    background: var(--mse-primary-soft);
    color: var(--mse-primary);
}

.mse-star {
    font-size: 13px;
    margin-left: 1px;
}

/* ---------- 首页 Hero ---------- */
.mse-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
    padding: 26px;
}

.mse-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 560px;
    min-width: 0;
}

.mse-hero-badge {
    width: 92px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: linear-gradient(160deg, #f5f8ff, #e8efff);
    border: 1px solid #dbe6ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mse-primary);
}

.mse-hero-badge span {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.mse-hero-badge small {
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: .8px;
    color: #6d8ac9;
}

.mse-eyebrow {
    margin: 0 0 6px;
    color: var(--mse-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.mse-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.3px;
}

.mse-hero-desc {
    margin: 0;
    color: var(--mse-muted);
    font-size: 14px;
    line-height: 1.7;
}

.mse-hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
    padding-left: 10px;
}

.mse-hero-stat {
    text-align: center;
}

.mse-hero-stat strong {
    display: block;
    color: var(--mse-primary);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.mse-hero-stat small {
    display: block;
    margin-top: 4px;
    color: var(--mse-muted);
    font-size: 12px;
}

.mse-notice {
    flex: 1 0 100%;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fffaf0;
    border: 1px solid #ffe7b8;
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.7;
}

.mse-notice i {
    margin-top: 3px;
}

.mse-sample-warning {
    flex: 1 0 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff1f0;
    border: 1px solid #ffd6d2;
    color: #b42318;
    font-size: 12px;
}

.mse-sample-warning-center {
    justify-content: center;
    margin-top: 14px;
}

/* ---------- 搜索 ---------- */
.mse-search-card {
    padding: 16px;
}

.mse-search-form {
    display: flex;
    gap: 10px;
}

.mse-search-input {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mse-search-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mse-muted-2);
    font-size: 14px;
}

.mse-search-input input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--mse-border-strong);
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--mse-text);
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mse-search-input input:focus {
    border-color: var(--mse-primary);
    box-shadow: 0 0 0 3px rgba(43, 91, 255, .12);
}

.mse-quick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.mse-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--mse-border);
    border-radius: 999px;
    background: #f8f9fc;
    color: var(--mse-text-2);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.mse-chip:hover {
    border-color: #b9cbff;
    color: var(--mse-primary);
}

.mse-chip.active {
    background: var(--mse-primary-soft);
    border-color: #b9cbff;
    color: var(--mse-primary);
    font-weight: 600;
}

.mse-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mse-city-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 10px 0 14px;
    border-radius: 999px;
    background: var(--mse-primary);
    color: #fff;
    font-size: 13px;
}

.mse-city-filter b {
    font-weight: 700;
}

.mse-city-filter button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    line-height: 1;
    cursor: pointer;
}

/* ---------- 地图 ---------- */
.mse-map-card {
    overflow: hidden;
}

.mse-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mse-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.mse-section-sub {
    margin: 5px 0 0;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mse-segmented {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 999px;
    background: #f1f4fa;
}

.mse-segmented button {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mse-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mse-segmented button.active {
    background: #fff;
    color: var(--mse-primary);
    box-shadow: 0 2px 8px rgba(15, 27, 51, .08);
}

.mse-map-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8faff, #edf3ff);
    border: 1px solid #e3eaff;
}

.mse-map {
    width: 100%;
    height: 430px;
}

.mse-map-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mse-map-controls button {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--mse-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .97);
    color: var(--mse-text-2);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 27, 51, .08);
    cursor: pointer;
}

.mse-map-controls button:hover {
    color: var(--mse-primary);
    border-color: #b9cbff;
}

.mse-map-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 249, 255, .86);
    color: var(--mse-muted);
    font-size: 14px;
}

.mse-map-hint {
    margin: 10px 0 0;
    color: var(--mse-muted-2);
    font-size: 12px;
    text-align: center;
}

/* ---------- 列表 ---------- */
.mse-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mse-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mse-list-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.mse-list-head h2 span {
    color: var(--mse-primary);
}

.mse-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mse-muted);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.mse-sort select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--mse-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--mse-text-2);
    font-size: 13px;
    outline: none;
}

.mse-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mse-institute-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mse-institute-card:hover {
    transform: translateY(-2px);
    border-color: #cfdcff;
    box-shadow: var(--mse-shadow-lg);
}

.mse-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mse-card-title-wrap {
    min-width: 0;
}

.mse-card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.mse-card-title a {
    color: var(--mse-text);
}

.mse-card-title a:hover {
    color: var(--mse-primary);
}

.mse-card-location {
    margin: 6px 0 0;
    color: var(--mse-muted);
    font-size: 13px;
    line-height: 1.6;
}

.mse-card-location i {
    margin-right: 3px;
    color: var(--mse-muted-2);
}

.mse-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 0;
    border-top: 1px dashed var(--mse-border);
    border-bottom: 1px dashed var(--mse-border);
}

.mse-stat {
    text-align: center;
    min-width: 0;
}

.mse-stat strong {
    display: block;
    color: var(--mse-primary);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    word-break: break-word;
}

.mse-stat small {
    display: block;
    margin-top: 4px;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.3;
}

.mse-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.mse-card-action-btns {
    display: flex;
    gap: 6px;
}

.mse-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* ---------- 空状态 / 提示 ---------- */
.mse-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 46px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--mse-border-strong);
    border-radius: var(--mse-radius);
}

.mse-empty > i {
    font-size: 34px;
    color: var(--mse-muted-2);
}

.mse-empty h3 {
    margin: 0;
    font-size: 17px;
}

.mse-empty p {
    margin: 0 0 6px;
    color: var(--mse-muted);
    font-size: 14px;
}

.mse-empty-small {
    padding: 30px 16px;
}

.mse-empty-small > i {
    font-size: 26px;
}

/* ---------- 免责声明 ---------- */
.mse-disclaimer h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.mse-disclaimer p {
    margin: 0;
    color: var(--mse-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- 筛选页 ---------- */
.mse-filter-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.mse-filter-head-copy {
    flex: 1 1 420px;
    min-width: 0;
}

.mse-filter-head-copy h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.mse-filter-head-copy p {
    margin: 0;
    color: var(--mse-muted);
    font-size: 13px;
    line-height: 1.7;
}

.mse-filter-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--mse-muted);
    font-size: 13px;
    white-space: nowrap;
}

.mse-filter-summary strong {
    color: var(--mse-primary);
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.mse-filter-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mse-filter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.mse-filter-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.mse-filter-side {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mse-filter-section {
    padding: 20px;
}

.mse-filter-label {
    margin: 0 0 12px;
    color: var(--mse-muted);
    font-size: 13px;
}

.mse-filter-label strong {
    color: var(--mse-primary);
}

.mse-inline-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--mse-muted);
    font-size: 13px;
    font-weight: 400;
}

.mse-inline-select select,
.mse-select {
    height: 40px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--mse-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--mse-text-2);
    font-size: 13px;
    outline: none;
}

.mse-inline-select select:focus,
.mse-select:focus,
.mse-input:focus {
    border-color: var(--mse-primary);
    box-shadow: 0 0 0 3px rgba(43, 91, 255, .12);
}

.mse-filter-rows {
    display: flex;
    flex-direction: column;
}

.mse-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--mse-border);
}

.mse-filter-row:last-child {
    border-bottom: 0;
}

.mse-filter-row-label {
    color: var(--mse-text-2);
    font-size: 14px;
}

.mse-input {
    width: 160px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mse-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--mse-text);
    font-size: 14px;
    outline: none;
}

.mse-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 10px 0;
    margin: 0;
    cursor: pointer;
    color: var(--mse-text-2);
    font-size: 14px;
    font-weight: 400;
}

.mse-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    background: #d7dce8;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: background .18s ease;
}

.mse-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 27, 51, .18);
    transition: transform .18s ease;
}

.mse-switch:checked {
    background: var(--mse-primary);
}

.mse-switch:checked::after {
    transform: translateX(18px);
}

.mse-warning {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #ffe7b8;
    border-left: 4px solid #f0b429;
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.75;
}

.mse-warning i {
    margin-top: 3px;
}

.mse-filter-submit {
    display: flex;
    justify-content: center;
    padding: 4px 0 10px;
}

.mse-filter-preview {
    position: sticky;
    top: 86px;
}

.mse-preview-count {
    color: var(--mse-primary);
    font-size: 14px;
    font-weight: 700;
}

.mse-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.mse-preview-item {
    display: block;
    padding: 12px;
    border: 1px solid var(--mse-border);
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--mse-text);
}

.mse-body .mse-preview-item {
    color: var(--mse-text);
}

.mse-preview-item:hover {
    border-color: #b9cbff;
    background: #f7f9ff;
}

.mse-preview-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mse-preview-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.mse-preview-item small {
    display: block;
    margin-top: 4px;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.5;
}

.mse-preview-item .mse-badge {
    min-height: 22px;
    padding: 0 7px;
    font-size: 11px;
}

/* ---------- 详情页 ---------- */
.mse-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mse-muted);
    font-size: 13px;
}

.mse-breadcrumb a {
    color: var(--mse-muted);
}

.mse-breadcrumb a:hover {
    color: var(--mse-primary);
}

.mse-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.mse-detail-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.mse-detail-side {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mse-detail-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.mse-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mse-detail-hero h1 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -.3px;
}

.mse-detail-location {
    margin: 0;
    color: var(--mse-muted);
    font-size: 14px;
    line-height: 1.7;
}

.mse-detail-location i {
    margin-right: 4px;
}

.mse-detail-address {
    display: inline-block;
    margin-left: 8px;
    color: var(--mse-muted-2);
    font-size: 12px;
}

.mse-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mse-detail-scoreline {
    margin: 16px 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--mse-primary-soft);
    border: 1px solid #dbe6ff;
    color: var(--mse-primary-dark);
    font-size: 14px;
    line-height: 1.7;
}

.mse-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0;
    border-top: 1px dashed var(--mse-border);
    border-bottom: 1px dashed var(--mse-border);
    margin-bottom: 14px;
}

.mse-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.mse-section-title i {
    color: var(--mse-primary);
    font-size: 15px;
}

.mse-subtitle {
    margin: 18px 0 8px;
    color: var(--mse-primary);
    font-size: 14px;
    font-weight: 700;
}

.mse-subtitle:first-of-type {
    margin-top: 0;
}

.mse-kv-list {
    margin: 0;
}

.mse-kv-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--mse-border);
}

.mse-kv-list > div:last-child {
    border-bottom: 0;
}

.mse-kv-list dt {
    flex: 0 0 auto;
    color: var(--mse-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.mse-kv-list dd {
    margin: 0;
    color: var(--mse-text);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    word-break: break-word;
}

.mse-kv-list .mse-strong {
    color: var(--mse-primary);
    font-size: 16px;
    font-weight: 800;
}

.mse-kv-compact > div {
    padding: 9px 0;
}

.mse-kv-compact dt,
.mse-kv-compact dd {
    font-size: 13px;
}

.mse-note {
    margin: 14px 0 0;
    color: var(--mse-muted-2);
    font-size: 12px;
    line-height: 1.7;
}

.mse-paragraph {
    margin: 0 0 12px;
    color: var(--mse-text-2);
    font-size: 14px;
    line-height: 1.9;
    white-space: normal;
}

.mse-paragraph:last-child {
    margin-bottom: 0;
}

.mse-bullet-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--mse-text-2);
    font-size: 14px;
    line-height: 1.9;
}

.mse-bullet-list li {
    margin-bottom: 4px;
}

.mse-empty-line {
    margin: 0;
    color: var(--mse-muted-2);
    font-size: 13px;
    line-height: 1.8;
}

.mse-rating-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mse-rating-item {
    padding: 12px;
    border-radius: 12px;
    background: #f7f9ff;
    border: 1px solid #e6edff;
    text-align: center;
}

.mse-rating-label {
    display: block;
    margin-bottom: 4px;
    color: var(--mse-muted);
    font-size: 12px;
}

.mse-rating-item strong {
    color: var(--mse-primary);
    font-size: 18px;
    font-weight: 800;
}

.mse-source-list {
    margin: 0;
    padding-left: 20px;
}

.mse-source-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--mse-border);
}

.mse-source-list li:last-child {
    border-bottom: 0;
}

.mse-source-title {
    color: var(--mse-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.mse-source-meta {
    margin-top: 3px;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mse-source-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    font-size: 12px;
}

.mse-side-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.mse-side-text {
    margin: 0;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.8;
}

.mse-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

/* ---------- 对比页 ---------- */
.mse-compare-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.mse-compare-head-copy {
    flex: 1 1 420px;
}

.mse-compare-head-copy h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.mse-compare-head-copy p {
    margin: 0;
    color: var(--mse-muted);
    font-size: 13px;
    line-height: 1.7;
}

.mse-compare-stats {
    display: flex;
    gap: 18px;
    color: var(--mse-muted);
    font-size: 13px;
}

.mse-compare-stats strong {
    color: var(--mse-primary);
    font-size: 20px;
    font-weight: 800;
}

.mse-compare-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mse-compare-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mse-slot {
    position: relative;
    min-height: 122px;
    padding: 14px;
    border-radius: 12px;
    background: #f8faff;
    border: 1px solid #dbe6ff;
}

.mse-slot.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: var(--mse-border-strong);
    background: #fbfcfe;
    color: var(--mse-muted-2);
    font-size: 13px;
    text-align: center;
}

.mse-slot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mse-muted);
    font-size: 13px;
    background: #fbfcfe;
}

.mse-slot-name {
    margin: 8px 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.mse-slot-meta {
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.7;
}

.mse-slot-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--mse-muted);
    box-shadow: 0 2px 6px rgba(15, 27, 51, .12);
    cursor: pointer;
}

.mse-slot-remove:hover {
    color: var(--mse-red);
}

.mse-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mse-compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13px;
}

.mse-compare-table th,
.mse-compare-table td {
    padding: 12px;
    border-bottom: 1px solid var(--mse-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.mse-compare-table th {
    background: #f8faff;
    color: var(--mse-muted);
    font-weight: 600;
    white-space: nowrap;
}

.mse-compare-table th:first-child,
.mse-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    color: var(--mse-muted);
    white-space: nowrap;
}

.mse-compare-table th:first-child {
    background: #f8faff;
}

.mse-compare-table td strong {
    color: var(--mse-primary);
}

.mse-favorites-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mse-favorite-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--mse-border);
    border-radius: 12px;
    background: #fbfcfe;
}

.mse-favorite-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mse-favorite-item h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.mse-favorite-item p {
    margin: 0;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mse-favorite-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.mse-compare-return {
    max-width: 420px;
    margin: 0 auto;
}

/* ---------- 关于页 ---------- */
.mse-about-page {
    max-width: 980px;
    margin: 0 auto;
}

.mse-about-hero {
    text-align: center;
    padding: 40px 24px 32px;
}

.mse-about-logo {
    margin-bottom: 8px;
    color: var(--mse-primary);
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.mse-about-logo span {
    color: var(--mse-text);
}

.mse-about-kicker {
    margin: 0 0 10px;
    color: var(--mse-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mse-about-hero h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
}

.mse-about-version {
    margin: 0;
    color: var(--mse-muted);
    font-size: 13px;
}

.mse-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mse-feature-list li {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #fbfcfe;
    border: 1px solid var(--mse-border);
}

.mse-feature-list > li > i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--mse-primary-soft);
    color: var(--mse-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mse-feature-list h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
}

.mse-feature-list p {
    margin: 0;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.7;
}

.mse-about-links {
    display: flex;
    flex-direction: column;
}

.mse-about-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--mse-border);
    color: var(--mse-text-2);
    font-size: 14px;
}

.mse-about-link-row:last-child {
    border-bottom: 0;
}

.mse-about-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
}

.mse-about-brand-copy p {
    color: var(--mse-muted);
    font-size: 13px;
    line-height: 1.9;
}

.mse-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    padding: 16px;
    border: 1px dashed var(--mse-border-strong);
    border-radius: 14px;
    background: #fbfcfe;
    color: var(--mse-muted);
    font-size: 12px;
    text-align: center;
}

.mse-qr-placeholder i {
    font-size: 52px;
    color: var(--mse-muted-2);
}

.mse-about-footer {
    margin: 6px 0 0;
    color: var(--mse-muted-2);
    font-size: 12px;
    text-align: center;
}

/* ---------- 页脚 / 移动端 Tab ---------- */
.mse-footer {
    padding: 26px 0 30px;
    border-top: 1px solid var(--mse-border);
    background: #fff;
}

.mse-footer-disclaimer,
.mse-footer-copy {
    margin: 0 0 6px;
    color: var(--mse-muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.mse-footer-copy {
    color: var(--mse-muted-2);
    margin-bottom: 0;
}

.mse-tabbar {
    display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .mse-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mse-body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .mse-nav {
        display: none;
    }

    .mse-header-actions {
        display: flex;
        margin-left: auto;
    }

    .mse-header-inner {
        height: 60px;
        gap: 10px;
    }

    .mse-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 12px;
    }

    .mse-brand-text strong {
        font-size: 14px;
    }

    .mse-brand-text small {
        display: none;
    }

    .mse-container {
        padding: 0 14px;
    }

    .mse-main {
        padding: 12px 0 26px;
    }

    .mse-page {
        gap: 14px;
    }

    .mse-card {
        padding: 16px;
        border-radius: 14px;
    }

    .mse-hero {
        padding: 18px;
        gap: 14px;
    }

    .mse-hero-main {
        flex: 1 1 100%;
        gap: 12px;
        align-items: flex-start;
    }

    .mse-hero-badge {
        width: 62px;
        height: 56px;
        border-radius: 14px;
    }

    .mse-hero-badge span {
        font-size: 18px;
    }

    .mse-hero-badge small {
        font-size: 6px;
        letter-spacing: .4px;
    }

    .mse-hero h1 {
        font-size: 20px;
    }

    .mse-hero-desc {
        font-size: 13px;
    }

    .mse-hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 0 0;
        border-top: 1px solid var(--mse-border);
    }

    .mse-hero-stat strong {
        font-size: 24px;
    }

    .mse-search-form {
        flex-wrap: wrap;
    }

    .mse-search-input {
        flex: 1 1 100%;
    }

    .mse-search-form .mse-btn {
        flex: 1 1 0;
    }

    .mse-map {
        height: 320px;
    }

    .mse-map-controls {
        top: 10px;
        right: 10px;
    }

    .mse-map-controls button {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .mse-section-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .mse-list {
        grid-template-columns: 1fr;
    }

    .mse-list-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .mse-card-stats {
        padding: 10px 0;
    }

    .mse-filter-layout,
    .mse-detail-grid {
        grid-template-columns: 1fr;
    }

    .mse-filter-side {
        display: none;
    }

    .mse-filter-head-copy {
        flex: 1 1 100%;
    }

    .mse-filter-head-actions {
        width: 100%;
    }

    .mse-filter-head-actions .mse-btn {
        flex: 1 1 0;
    }

    .mse-filter-summary {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--mse-border);
    }

    .mse-filter-summary strong {
        font-size: 30px;
    }

    .mse-filter-row,
    .mse-switch-row {
        min-height: 52px;
    }

    .mse-filter-row-label {
        font-size: 13px;
    }

    .mse-select {
        max-width: 160px;
    }

    .mse-input {
        width: 130px;
    }

    .mse-detail-side {
        position: static;
    }

    .mse-detail-hero {
        padding: 18px;
    }

    .mse-detail-hero h1 {
        font-size: 22px;
    }

    .mse-detail-hero-head {
        gap: 12px;
    }

    .mse-detail-actions {
        width: 100%;
    }

    .mse-detail-actions .mse-btn {
        flex: 1 1 0;
    }

    .mse-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mse-rating-grid {
        grid-template-columns: 1fr;
    }

    .mse-compare-head-copy {
        flex: 1 1 100%;
    }

    .mse-compare-stats {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--mse-border);
    }

    .mse-compare-head-actions {
        width: 100%;
    }

    .mse-compare-head-actions .mse-btn {
        flex: 1 1 0;
    }

    .mse-compare-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mse-favorites-list {
        grid-template-columns: 1fr;
    }

    .mse-about-page {
        max-width: none;
    }

    .mse-about-hero {
        padding: 28px 16px 24px;
    }

    .mse-about-logo {
        font-size: 46px;
    }

    .mse-about-hero h1 {
        font-size: 21px;
    }

    .mse-feature-list {
        grid-template-columns: 1fr;
    }

    .mse-about-brand-grid {
        grid-template-columns: 1fr;
    }

    .mse-qr-placeholder {
        min-height: 130px;
    }

    .mse-footer {
        padding: 20px 0 22px;
    }

    .mse-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--mse-border);
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 18px rgba(15, 27, 51, .06);
    }

    .mse-tabbar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 60px;
        color: var(--mse-muted);
        font-size: 11px;
        font-weight: 500;
    }

    .mse-body .mse-tabbar-item {
        color: var(--mse-muted);
    }

    .mse-tabbar-item i {
        font-size: 18px;
    }

    .mse-body .mse-tabbar-item.active {
        color: var(--mse-primary);
        font-weight: 700;
    }
}

@media (max-width: 420px) {
    .mse-hero-badge {
        display: none;
    }

    .mse-hero h1 {
        font-size: 19px;
    }

    .mse-compare-stats {
        flex-direction: column;
        gap: 6px;
    }

    .mse-slot {
        min-height: 108px;
        padding: 12px;
    }

    .mse-inline-select {
        width: 100%;
        justify-content: space-between;
    }
}

/* ---------- 可访问性 ---------- */
.mse-body a:focus-visible,
.mse-body button:focus-visible,
.mse-body input:focus-visible,
.mse-body select:focus-visible {
    outline: 2px solid var(--mse-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mse-body * {
        transition: none !important;
    }
}
