/* ═════════════════════════════════════════════════════════════
   MediAI 智能医疗助手 —— 样式表（配合 index.html 使用）
   结构顺序：
     1. 主题变量（:root 色板/圆角/阴影）
     2. 布局框架（侧边栏 / 顶栏 / 主内容）
     3. 通用组件（按钮 / 卡片 / 表格）
     4. 各板块样式（首页 / 问诊 / 档案 / BMI / 资讯 / 知识库）
     5. 弹窗（登录注册 / 消息中心 / 云同步）
     6. 动态开场页（暖色封面与漂浮元素）
     7. 响应式适配（移动端优先断点）与无障碍焦点
   ═════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f0f9ff;
    --surface: #fff;
    --surface2: #f8fafc;
    --text: #0f172a;
    --text2: #475569;
    --text3: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(14, 165, 233, .1);
    --sidebar: 256px;
    --tr: .22s ease;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    height: 100vh;
    overflow: hidden
}

.sidebar {
    width: var(--sidebar);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform var(--tr)
}

.s-logo {
    padding: 24px 20px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border)
}

.s-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0
}

.s-logo-name {
    font-size: 17px;
    font-weight: 700
}

.s-logo-sub {
    font-size: 10px;
    color: var(--text3);
    display: block
}

.s-sect {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text3);
    text-transform: uppercase
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin: 1px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--tr), color var(--tr);
    color: var(--text2);
    font-size: 13.5px;
    font-weight: 500;
    user-select: none
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark)
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .35)
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
    flex-shrink: 0
}

.nav-badge {
    margin-left: auto;
    background: var(--success);
    color: #fff;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700
}

.s-foot {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid var(--border);
    position: relative
}

.u-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 8px;
    background: var(--surface2);
    cursor: pointer;
    transition: background var(--tr)
}

.u-card:hover {
    background: var(--primary-light)
}

.u-more {
    margin-left: auto;
    color: var(--text3);
    font-size: 12px;
    transition: color var(--tr), transform var(--tr)
}

.u-card:hover .u-more {
    color: var(--primary);
    transform: translateX(2px)
}

.u-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% - 6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 70
}

.u-menu.show {
    display: flex;
    animation: fadeIn .18s ease
}

.u-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    font-family: inherit;
    text-align: left
}

.u-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark)
}

.u-menu-item.danger:hover {
    background: #fef2f2;
    color: var(--danger)
}

.u-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0
}

.u-name {
    font-size: 12.5px;
    font-weight: 600
}

.u-role {
    font-size: 11px;
    color: var(--text3)
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0
}

.topbar {
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    flex-shrink: 0
}

.tb-title {
    font-size: 18px;
    font-weight: 700
}

.tb-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px
}

.tb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--tr)
}

.btn-p {
    background: var(--primary);
    color: #fff
}

.btn-p:hover {
    background: var(--primary-dark)
}

.btn-g {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border)
}

.btn-g:hover {
    background: var(--surface2)
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px
}

.sec {
    display: none
}

.sec.active {
    display: block
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow)
}

.g4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px
}

.g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.g2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow)
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0
}

.stat-val {
    font-size: 22px;
    font-weight: 700
}

.stat-lbl {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px
}

.stat-change {
    font-size: 11px;
    margin-top: 3px
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius);
    padding: 32px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden
}

.hero::after {
    content: '⚕';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    opacity: .1;
    pointer-events: none
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px
}

.hero-sub {
    font-size: 14px;
    opacity: .85;
    margin-bottom: 20px;
    max-width: 480px;
    line-height: 1.65
}

.hero-actions {
    display: flex;
    gap: 10px
}

.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--tr)
}

.btn-white:hover {
    background: #e0f2fe
}

.btn-ow {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .5);
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--tr)
}

.btn-ow:hover {
    background: rgba(255, 255, 255, .15)
}

.feat-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform var(--tr), box-shadow var(--tr);
    cursor: pointer
}

.feat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(14, 165, 233, .14)
}

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 12px
}

.feat-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px
}

.feat-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6
}

.sec-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 20px
}

/* Chat */
.chat-sec {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    margin: -24px;
    overflow: hidden
}

.chat-mode-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--primary-light), #fef9c3);
    font-size: 12.5px;
    color: var(--text2);
    flex-shrink: 0
}

.chat-mode-bar .chat-mode-dot {
    font-size: 11px
}

.chat-mode-bar .chat-mode-text {
    font-weight: 700;
    color: var(--text)
}

.chat-mode-bar .chat-mode-sub {
    margin-left: auto;
    color: var(--text3)
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 78%;
    animation: fadeIn .25s ease
}

.msg.user {
    align-self: flex-end;
    flex-direction: row-reverse
}

.msg-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0
}

.msg-av.ai {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff
}

.msg-av.user {
    background: #f1f5f9
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.65
}

.msg.ai .msg-bubble {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px 14px 14px 14px
}

.msg.user .msg-bubble {
    background: var(--primary);
    color: #fff;
    border-radius: 14px 4px 14px 14px
}

.msg-time {
    font-size: 10px;
    color: var(--text3);
    margin-top: 4px;
    text-align: right
}

.chat-hints {
    padding: 0 24px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.hint-chip {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 0;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    transition: var(--tr)
}

.hint-chip:hover {
    background: var(--primary);
    color: #fff
}

.chat-foot {
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    gap: 10px;
    align-items: flex-end
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    background: var(--surface2);
    transition: border var(--tr);
    max-height: 120px
}

.chat-input:focus {
    border-color: var(--primary);
    background: #fff
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: var(--tr);
    flex-shrink: 0
}

.chat-send:hover {
    background: var(--primary-dark)
}

/* Health */
.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.form-group {
    margin-bottom: 14px
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 5px;
    display: block
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--surface2);
    transition: border var(--tr)
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.bmi-result {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid rgba(14, 165, 233, .2);
    margin-top: 14px;
    display: none
}

.bmi-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary)
}

.bmi-cat {
    font-size: 13px;
    color: var(--text2);
    margin-top: 3px
}

.score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 10px
}

.score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 12px
}

.score-ring canvas {
    position: absolute;
    top: 0;
    left: 0
}

.score-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    line-height: 1
}

.score-lbl {
    font-size: 11px;
    color: var(--text3);
    display: block
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px
}

.vital-item {
    background: var(--surface2);
    padding: 12px;
    border-radius: 8px;
    text-align: center
}

.vital-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary)
}

.vital-lbl {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px
}

/* Knowledge */
.kb-search-wrap {
    position: relative;
    margin-bottom: 20px
}

.kb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text3);
    pointer-events: none
}

.kb-search {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: var(--surface);
    transition: border var(--tr);
    font-family: inherit
}

.kb-search:focus {
    border-color: var(--primary)
}

.cat-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all var(--tr);
    box-shadow: var(--shadow)
}

.cat-card:hover,
.cat-card.sel {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.cat-card:hover .cat-icon,
.cat-card.sel .cat-icon {
    background: rgba(255, 255, 255, .2)
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin: 0 auto 10px;
    background: var(--primary-light);
    transition: var(--tr)
}

.cat-name {
    font-size: 13px;
    font-weight: 600
}

.kb-item {
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 10px;
    transition: border-color var(--tr), box-shadow var(--tr)
}

.kb-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(14, 165, 233, .1)
}

.kb-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px
}

.kb-item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 6px
}

.kb-item-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.55
}

/* Typing indicator */
.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px 14px 14px 14px;
    width: fit-content
}

.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text3);
    animation: dot 1.2s infinite
}

.typing span:nth-child(2) {
    animation-delay: .2s
}

.typing span:nth-child(3) {
    animation-delay: .4s
}

@keyframes dot {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .4
    }

    40% {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.notice {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #78350f;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 18px;
    line-height: 1.5
}

/* ── 登录 / 注册（独立表单布局，图标永不偏移） ── */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px
}

.modal-mask.show {
    display: flex;
    animation: fadeIn .2s ease
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    position: relative;
    animation: fadeIn .25s ease
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface2);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--text2);
    display: grid;
    place-items: center;
    transition: var(--tr)
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary-dark)
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px
}

.modal-sub {
    font-size: 12.5px;
    color: var(--text3);
    margin-bottom: 20px
}

.field {
    margin-bottom: 14px
}

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px
}

.field-box {
    position: relative
}

.field-box input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 38px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--surface2);
    color: var(--text);
    transition: border-color var(--tr);
    box-sizing: border-box
}

.field-box input:focus {
    border-color: var(--primary);
    background: #fff
}

.field-box input::placeholder {
    color: var(--text3)
}

.field-box .fi {
    position: absolute;
    left: 11px;
    top: 0;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    z-index: 2
}

.field-box .fi-eye {
    left: auto;
    right: 8px;
    width: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    color: var(--text3);
    font-size: 15px
}

.field-box .fi-eye:hover {
    color: var(--primary)
}

.field-box input.with-eye {
    padding-right: 38px
}

.field-err {
    font-size: 11.5px;
    color: var(--danger);
    margin-top: 5px;
    display: none;
    line-height: 1.5
}

.field-err.show {
    display: block
}

.field-tip {
    font-size: 11.5px;
    color: var(--text3);
    margin-top: 5px;
    line-height: 1.5
}

.field-forgot {
    margin: -6px 0 16px;
    text-align: right
}

.text-link {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit
}

.field-forgot .text-link:hover,
.modal-foot .text-link:hover {
    text-decoration: underline
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 14px;
    margin-top: 2px
}

.modal-foot {
    text-align: center;
    font-size: 13px;
    color: var(--text2);
    margin-top: 16px
}

.modal-foot .text-link {
    color: var(--primary);
    font-weight: 600;
}

/* ── 消息中心（通知） ── */
#notifBtn {
    position: relative
}

#notifBtn .notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, .4)
}

.notif-modal {
    max-width: 460px
}

.notif-list {
    max-height: 430px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--surface);
    transition: border-color var(--tr), background var(--tr)
}

.notif-item:hover {
    border-color: var(--primary);
    background: var(--primary-light)
}

.notif-item.unread {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, .35)
}

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0
}

.notif-body {
    flex: 1;
    min-width: 0
}

.notif-title {
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px
}

.notif-text {
    font-size: 12.5px;
    color: var(--text2);
    margin-top: 3px;
    line-height: 1.55
}

.notif-new {
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 99px;
    font-weight: 700;
    flex-shrink: 0
}

.notif-login {
    text-align: center;
    color: var(--text2);
    font-size: 13px;
    line-height: 1.8;
    padding: 22px 10px
}

/* ── 云同步 ── */
.sync-status {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text2);
    background: var(--surface2);
    border-radius: 8px;
    padding: 9px 12px;
    margin: 4px 0 12px;
    min-height: 18px;
    word-break: break-all
}

.sync-status.good {
    background: #f0fdf4;
    color: #15803d
}

.sync-status.bad {
    background: #fef2f2;
    color: #b91c1c
}

.sync-actions {
    display: flex;
    gap: 8px
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text3);
    font-size: 12px;
    margin: 18px 0
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.demo-tip {
    background: var(--primary-light);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--primary-dark);
    line-height: 1.6
}

/* ── 知识库条目（可展开详情） ── */
.kb-item {
    cursor: pointer
}

.kb-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(14, 165, 233, .1)
}

.kb-item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer
}

.kb-item-arrow {
    margin-left: auto;
    color: var(--text3);
    font-size: 12px;
    transition: transform var(--tr);
    flex-shrink: 0;
    padding-top: 2px
}

.kb-item.open .kb-item-arrow {
    transform: rotate(90deg);
    color: var(--primary)
}

.kb-item-detail {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text2);
    line-height: 1.75
}

.kb-item.open .kb-item-detail {
    display: block;
    animation: fadeIn .2s ease
}

.kb-detail-h {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 6px
}

.kb-detail-h:first-child {
    margin-top: 0
}

.kb-detail-ul {
    padding-left: 0;
    list-style: none;
    margin: 0
}

.kb-detail-ul li {
    padding: 3px 0 3px 16px;
    position: relative
}

.kb-detail-ul li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: var(--primary)
}

.kb-detail-warn {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 12.5px;
    line-height: 1.6
}

.kb-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 14px;
    font-weight: 600
}

.kb-back:hover {
    text-decoration: underline
}

/* ── 科普资讯 ── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color var(--tr), box-shadow var(--tr)
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(14, 165, 233, .1)
}

.news-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px
}

.news-cat {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    flex-shrink: 0
}

.news-cat.c-diet {
    background: #dcfce7;
    color: #15803d
}

.news-cat.c-supp {
    background: #fef3c7;
    color: #b45309
}

.news-cat.c-sci {
    background: #e0f2fe;
    color: #0369a1
}

.news-cat.c-life {
    background: #fce7f3;
    color: #be185d
}

.news-date {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--text3);
    flex-shrink: 0
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.45
}

.news-summary {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6
}

.news-meta {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text3)
}

.news-detail {
    background: var(--surface2);
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 4px
}

.news-detail .news-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45
}

.news-detail .news-head {
    margin-bottom: 14px
}

.news-detail p {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 12px
}

.news-detail h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: var(--text)
}

.news-detail ul {
    padding-left: 18px;
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.8
}

.news-detail li {
    margin-bottom: 6px
}

/* ── 动态开场页（落地页 → 医疗窗口） ── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: linear-gradient(150deg, #fff7ed 0%, #ffedd5 35%, #fef3c7 62%, #ecfeff 100%);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: splashIn .6s ease
}

.splash.hide {
    animation: splashOut .5s ease forwards
}

@keyframes splashIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes splashOut {
    from {
        opacity: 1;
        transform: scale(1)
    }

    to {
        opacity: 0;
        transform: scale(1.04)
    }
}

.sp-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px 24px;
    position: relative
}

.sp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .5;
    animation: float 8s ease-in-out infinite
}

.sp-blob.b1 {
    width: 260px;
    height: 260px;
    background: #fed7aa;
    top: 6%;
    left: 8%;
    animation-delay: 0s
}

.sp-blob.b2 {
    width: 200px;
    height: 200px;
    background: #fecdd3;
    top: 18%;
    right: 6%;
    animation-delay: 2s
}

.sp-blob.b3 {
    width: 180px;
    height: 180px;
    background: #fde68a;
    bottom: 12%;
    left: 16%;
    animation-delay: 4s
}

/* 漂浮的暖心小元素 */
.sp-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden
}

.sp-float {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(251, 146, 60, .16);
    animation: float 7s ease-in-out infinite
}

.sp-float.f1 {
    top: 13%;
    left: 11%;
    animation-delay: 0s
}

.sp-float.f2 {
    top: 21%;
    right: 13%;
    animation-delay: 1.2s;
    width: 64px;
    height: 64px;
    font-size: 28px
}

.sp-float.f3 {
    bottom: 30%;
    left: 7%;
    animation-delay: 2.1s
}

.sp-float.f4 {
    bottom: 18%;
    right: 9%;
    animation-delay: 3s;
    width: 44px;
    height: 44px;
    font-size: 20px
}

.sp-float.f5 {
    top: 44%;
    right: 3%;
    animation-delay: 1.6s;
    width: 40px;
    height: 40px;
    font-size: 18px
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-24px) scale(1.08)
    }
}

.sp-logo {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-size: 44px;
    box-shadow: 0 20px 50px rgba(14, 165, 233, .35);
    margin-bottom: 28px;
    animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) .2s both
}

@keyframes pop {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1
    }
}

.sp-title {
    position: relative;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(120deg, #c2410c, #be185d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
    margin-bottom: 16px;
    animation: rise .7s ease .35s both
}

.sp-title .hl {
    display: inline-block;
    animation: wave 2.4s ease-in-out infinite;
    transform-origin: 70% 70%
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(14deg)
    }

    50% {
        transform: rotate(-8deg)
    }

    75% {
        transform: rotate(4deg)
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.sp-tagline {
    position: relative;
    font-size: 16px;
    color: var(--text2);
    max-width: 560px;
    line-height: 1.75;
    animation: rise .7s ease .5s both
}

.sp-typing {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(190, 24, 93, .18);
    border-radius: 99px;
    padding: 9px 18px;
    font-size: 13.5px;
    color: var(--text2);
    animation: rise .7s ease .65s both
}

.sp-typing .cur {
    display: inline-block;
    width: 2px;
    height: 15px;
    background: #db2777;
    animation: blink 1s infinite
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    100% {
        opacity: 0
    }
}

.sp-cta {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: rise .7s ease .8s both
}

.sp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(14, 165, 233, .4);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: pulse 2.2s ease-in-out infinite
}

.sp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 46px rgba(14, 165, 233, .5)
}

.sp-btn:active {
    transform: translateY(0) scale(.98)
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 14px 36px rgba(14, 165, 233, .4)
    }

    50% {
        box-shadow: 0 14px 46px rgba(14, 165, 233, .65), 0 0 0 12px rgba(14, 165, 233, .06)
    }
}

.sp-btn-sub {
    font-size: 12.5px;
    color: var(--text3)
}

.sp-stats {
    position: relative;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 28px 24px 36px;
    border-top: 1px solid rgba(251, 146, 60, .18);
    background: rgba(255, 255, 255, .5);
    animation: rise .7s ease .95s both
}

.sp-stat {
    flex: 1;
    min-width: 120px;
    padding: 8px 16px;
    text-align: center
}

.sp-stat-v {
    font-size: 26px;
    font-weight: 800;
    color: #b45309
}

.sp-stat-l {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px
}

.sp-divider {
    width: 1px;
    background: rgba(251, 146, 60, .2);
    margin: 0 8px
}

.sp-dots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 201;
    overflow: hidden
}

.sp-dots span {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(244, 114, 182, .35);
    animation: riseUp linear infinite
}

.sp-dots span:nth-child(2n) {
    background: rgba(251, 191, 36, .4)
}

@keyframes riseUp {
    from {
        transform: translateY(0);
        opacity: .6
    }

    to {
        transform: translateY(-110vh);
        opacity: 0
    }
}

/* ── 健康档案 · 历史记录 ── */
.hist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden
}

.hist-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--surface2)
}

.hist-head:hover {
    background: var(--primary-light)
}

.hist-date {
    font-size: 14px;
    font-weight: 700;
    flex: 1
}

.hist-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    flex-shrink: 0
}

.hist-badge.locked {
    background: #e2e8f0;
    color: #64748b
}

.hist-badge.open {
    background: #dcfce7;
    color: #15803d
}

.hist-badge.warn {
    background: #fef3c7;
    color: #b45309
}

.hist-badge.danger {
    background: #fee2e2;
    color: #b91c1c
}

.hist-arrow {
    color: var(--text3);
    font-size: 12px;
    transition: transform var(--tr)
}

.hist-card.open .hist-arrow {
    transform: rotate(90deg)
}

.hist-body {
    display: none;
    padding: 14px 16px 16px;
    border-top: 1px dashed var(--border)
}

.hist-card.open .hist-body {
    display: block;
    animation: fadeIn .2s ease
}

.hist-vitals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px
}

.hist-vital {
    background: var(--surface2);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center
}

.hist-vital-v {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}

.hist-vital-l {
    font-size: 10.5px;
    color: var(--text3);
    margin-top: 2px
}

.hist-vital-v.good {
    color: var(--success)
}

.hist-vital-v.bad {
    color: var(--danger)
}

.hist-vital-v.mid {
    color: var(--warning)
}

.hist-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text2);
    padding: 5px 0;
    border-bottom: 1px solid var(--border)
}

.hist-row:last-child {
    border-bottom: none
}

.hist-row strong {
    color: var(--text)
}

.hist-trend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px
}

.hist-trend div {
    background: var(--surface2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text2);
    line-height: 1.6
}

.hist-trend b {
    display: block;
    font-size: 15px;
    color: var(--primary-dark)
}

.hist-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap
}

.hist-actions button {
    flex: 1;
    min-width: 120px
}

.hist-empty {
    text-align: center;
    color: var(--text3);
    padding: 32px 20px;
    font-size: 13.5px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius)
}

.hist-lock {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #78350f;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 14px;
    line-height: 1.5
}

.hist-lock.big {
    padding: 16px 18px;
    font-size: 13px
}

.hist-progress {
    margin: 14px 0 4px
}

.hist-progress-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--surface2);
    overflow: hidden;
    margin-top: 6px
}

.hist-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .6s ease
}

/* ── BMI 实用分析 ── */
.bmi-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--surface2);
    padding: 5px;
    border-radius: 10px;
    flex-wrap: wrap
}

.bmi-tab {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: var(--tr);
    user-select: none
}

.bmi-tab:hover {
    color: var(--primary-dark)
}

.bmi-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, .3)
}

.bmi-idea {
    display: flex;
    gap: 12px;
    background: var(--primary-light);
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px
}

.bmi-idea .ic {
    font-size: 22px;
    flex-shrink: 0
}

.bmi-idea .tx strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 3px
}

.bmi-idea .tx {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.6
}

.bmi-range-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 14px 0
}

.bmi-range {
    text-align: center;
    font-size: 11.5px;
    padding: 10px 6px;
    border-radius: 8px;
    background: var(--surface2);
    line-height: 1.5
}

.bmi-range.active {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--primary-light);
    font-weight: 700
}

.bmi-range b {
    display: block;
    font-size: 13px;
    color: var(--text)
}

.bmi-plan {
    margin-top: 14px
}

.bmi-plan h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 6px;
    color: var(--text)
}

.bmi-plan .bp-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6
}

.bmi-plan .bp-item:last-child {
    border-bottom: none
}

.bmi-plan .bp-item .n {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.risk-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px
}

.risk-bar {
    font-size: 12px;
    color: var(--text2)
}

.risk-bar .rb-track {
    height: 10px;
    border-radius: 99px;
    background: var(--surface2);
    overflow: hidden;
    margin: 5px 0 2px;
    position: relative
}

.risk-bar .rb-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .8s ease
}

.risk-bar .rb-val {
    font-size: 11px;
    color: var(--text3)
}

.ideal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    margin-top: 12px
}

.ideal-table th,
.ideal-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border)
}

.ideal-table th {
    background: var(--surface2);
    font-weight: 700;
    color: var(--text)
}

.ideal-table tr.you td {
    background: var(--primary-light);
    font-weight: 700
}

/* 移动端顶部条（默认隐藏） */
.mob-bar {
    display: none
}

/* ── 响应式 ── */
@media (max-width:820px) {
    body {
        flex-direction: column
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 90;
        transform: translateX(-100%);
        box-shadow: 0 0 30px rgba(0, 0, 0, .2)
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .mob-bar {
        display: flex;
        height: 56px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        flex-shrink: 0
    }

    .mob-menu {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: 8px;
        font-size: 20px;
        cursor: pointer;
        display: grid;
        place-items: center;
        color: var(--text)
    }

    .mob-menu:hover {
        background: var(--primary-light)
    }

    .mob-title {
        font-size: 16px;
        font-weight: 700
    }

    .topbar {
        height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px
    }

    .tb-title {
        font-size: 15px
    }

    .tb-sub {
        font-size: 11px
    }

    .btn {
        padding: 6px 11px;
        font-size: 12px
    }

    .content {
        padding: 16px 12px
    }

    .g4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .g3,
    .g2,
    .health-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .hero {
        padding: 22px 20px
    }

    .hero-title {
        font-size: 21px
    }

    .hero-actions {
        flex-direction: column
    }

    .chat-sec {
        margin: -16px -12px;
        height: calc(100vh - 56px - 52px)
    }

    .chat-body {
        padding: 16px 12px
    }

    .msg {
        max-width: 88%
    }

    .chat-hints {
        padding: 0 12px 8px
    }

    .chat-foot {
        padding: 10px 12px
    }

    .notice {
        font-size: 11.5px;
        padding: 10px 12px
    }

    .kb-search {
        padding: 12px 14px 12px 40px
    }

    .modal {
        padding: 22px 18px
    }

    /* 动态开场页 */
    .sp-title {
        font-size: 34px
    }

    .sp-tagline {
        font-size: 14px
    }

    .sp-logo {
        width: 76px;
        height: 76px;
        font-size: 34px
    }

    .sp-stats {
        padding: 20px 12px 26px
    }

    .sp-stat {
        min-width: 90px;
        padding: 6px 8px
    }

    .sp-stat-v {
        font-size: 21px
    }

    .sp-divider {
        display: none
    }

    .sp-float.f5 {
        display: none
    }

    .sp-float {
        opacity: .75
    }

    .chat-mode-bar {
        padding: 9px 12px
    }

    /* 健康档案历史 */
    .hist-vitals {
        grid-template-columns: repeat(2, 1fr)
    }

    .hist-trend {
        grid-template-columns: 1fr
    }

    .hist-actions button {
        flex: 1 1 100%
    }

    /* BMI */
    .bmi-range-row {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:420px) {
    .g4 {
        grid-template-columns: 1fr 1fr
    }

    .stat-card {
        padding: 14px;
        gap: 10px
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px
    }

    .stat-val {
        font-size: 18px
    }

    .hero::after {
        display: none
    }

    .vitals-grid {
        grid-template-columns: 1fr 1fr
    }
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
    outline: 3px solid rgba(14, 165, 233, .5);
    outline-offset: 2px
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}