/* ============================================================
   服药打卡 · 设计系统
   配色语义：绿=已打卡/成功/主操作  橙=未打卡/漏服/补录  灰=辅助/时间戳  白=卡片底
   所有文字对比度按 WCAG AA 核算（详见需求文档第 7 节）
   ============================================================ */

:root {
    /* 绿 */
    --green-600: #16A34A;
    --green-700: #15803D;
    --green-800: #14532D;
    --green-50:  #ECFDF3;
    --green-100: #D1FAE5;

    /* 橙 */
    --orange-500: #F97316;
    --orange-700: #C2410C;
    --orange-50:  #FFF7ED;
    --orange-100: #FFEDD5;

    /* 中性 */
    --white:    #FFFFFF;
    --gray-50:  #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #1F2937;

    /* 圆角 */
    --r-card:  20px;
    --r-btn:   20px;
    --r-input: 14px;
    --r-tag:   8px;
    --r-pill:  999px;

    /* 间距 */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
    --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;

    /* 阴影（分层、更柔和现代） */
    --sh-card: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .07);
    --sh-btn:  0 4px 16px rgba(22, 163, 74, .28);
    --sh-sheet: 0 -6px 32px rgba(0, 0, 0, .14);

    /* 动效 */
    --t-fast: 150ms ease;
    --t-norm: 250ms ease;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, dl, dd, dt { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--green-600);
    outline-offset: 2px;
}

/* ============================================================
   顶栏
   ============================================================ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-tag);
    background: var(--green-600);
    color: #fff;
}

.brand-mark svg { width: 22px; height: 22px; display: block; }

.brand-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    display: inline-block;
    margin-left: var(--sp-2);
    padding: 1px 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: var(--r-pill);
    vertical-align: 2px;
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    flex: 0 0 auto;
}

.clock-date { font-size: 12px; color: var(--gray-500); }

.clock-time {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

/* 顶栏右侧：时钟 + 平台入口 */
.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex: 0 0 auto;
}

/* 「进入平台」按钮：次要操作，用中性灰不抢主按钮的绿 */
.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-pill);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--t-fast);
}

.btn-platform svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
}

.btn-platform:hover {
    color: var(--green-700);
    background: var(--green-50);
    border-color: var(--green-100);
}

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

/* ============================================================
   管理模式横条
   ============================================================ */

.staff-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 10px var(--sp-4);
    background: var(--orange-50);
    border-bottom: 1px solid var(--orange-100);
}

.staff-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-500);
    flex: 0 0 8px;
}

.staff-bar-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange-700);
    flex: 1 1 auto;
}

.staff-bar-exit {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--orange-700);
    background: transparent;
    border: 1px solid var(--orange-500);
    border-radius: var(--r-pill);
    transition: background var(--t-fast);
}

.staff-bar-exit:hover { background: var(--orange-100); }

/* ============================================================
   布局
   ============================================================ */

.wrap {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: var(--sp-4) var(--sp-4) var(--sp-8);
}

.wrap-narrow { max-width: 460px; padding-top: var(--sp-8); }

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}

@media (hover: hover) {
    .card:hover {
        box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .10);
    }
}

.card-backfill { border-color: var(--orange-100); background: #FFFDFB; }
.card-login { margin-top: var(--sp-8); }

.sec-head {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--gray-100);
}

.sec-head h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.sec-side { margin-left: auto; font-size: 13px; color: var(--gray-500); }

.step {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-50);
    border-radius: 50%;
}

.step-orange { color: var(--orange-700); background: var(--orange-50); }

.empty, .field-hint, .sub-note, .muted {
    font-size: 13px;
    color: var(--gray-500);
}

.field-hint { margin-top: var(--sp-2); line-height: 1.6; }
.sub-note { text-align: center; margin-top: var(--sp-3); }
.muted { color: var(--gray-500); }

/* ============================================================
   患者选择
   ============================================================ */

.people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}

.person {
    position: relative;
    min-height: 68px;
    padding: var(--sp-3) var(--sp-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.9vw, 16px);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-input);
    transition: all var(--t-fast);
    word-break: break-word;
}

.person:hover { border-color: var(--gray-300); background: var(--gray-50); }

.person[aria-checked="true"] {
    color: var(--green-800);
    background: var(--green-50);
    border-color: var(--green-600);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .12);
}

.person-name { display: block; }

.person-tick {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    color: #fff;
    background: var(--green-600);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.person-tick svg { width: 11px; height: 11px; display: block; }
.person[aria-checked="true"] .person-tick { display: flex; }

/* ============================================================
   表单控件
   ============================================================ */

.select, .input {
    width: 100%;
    min-height: 52px;
    padding: 0 var(--sp-3);
    font-size: 16px;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-input);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    padding-right: 42px;
}

.select:focus, .input:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .13);
}

.input::placeholder { color: var(--gray-400); }

.field { display: block; }
.field-label {
    display: block;
    margin-bottom: var(--sp-1);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}
.field-wide { grid-column: 1 / -1; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }

/* ============================================================
   按钮
   ============================================================ */

.btn-primary {
    display: block;
    width: 100%;
    min-height: 64px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    background: var(--green-600);
    border: none;
    border-radius: var(--r-btn);
    box-shadow: var(--sh-btn);
    transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary:hover:not(:disabled) { background: var(--green-700); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 8px rgba(22, 163, 74, .25); }

.btn-primary:disabled {
    background: var(--gray-300);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-inline { width: auto; min-height: 52px; padding: 0 var(--sp-6); font-size: 16px; letter-spacing: 0; }

.btn-ghost {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--gray-500);
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}

.btn-ghost:hover { color: var(--gray-700); border-color: var(--gray-300); background: var(--gray-50); }

.btn-mini {
    min-height: 44px;
    padding: 0 var(--sp-4);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--green-600);
    border: none;
    border-radius: var(--r-input);
    transition: background var(--t-fast);
}

.btn-mini:hover { background: var(--green-700); }

.btn-mini-ghost {
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.btn-mini-ghost:hover { color: var(--gray-700); background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--orange-700);
    background: var(--white);
    border: 1px solid var(--orange-100);
    border-radius: var(--r-tag);
    transition: all var(--t-fast);
}

.btn-danger:hover { background: var(--orange-50); border-color: var(--orange-500); }

.actions { margin-top: var(--sp-6); }
.section-actions { margin-top: var(--sp-4); display: flex; justify-content: flex-end; }

.foot { margin-top: var(--sp-6); text-align: center; }

.staff-entry {
    padding: 10px 18px;
    font-size: 12px;
    color: var(--gray-400);
    background: transparent;
    border: 1px dashed var(--gray-200);
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}

.staff-entry:hover { color: var(--gray-500); border-color: var(--gray-300); }

/* ============================================================
   提示条
   ============================================================ */

.alert {
    margin-top: var(--sp-3);
    padding: 12px var(--sp-3);
    font-size: 14px;
    line-height: 1.5;
    color: var(--orange-700);
    background: var(--orange-50);
    border: 1px solid var(--orange-100);
    border-radius: var(--r-input);
}

/* ============================================================
   底部滑出 / 遮罩 / 结果卡
   ============================================================ */

.mask {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--sp-4);
    background: rgba(17, 24, 39, .38);
}

.sheet {
    width: 100%;
    max-width: 480px;
    padding: var(--sp-4);
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sheet);
    animation: rise var(--t-norm);
}

@keyframes rise {
    from { transform: translateY(18px); opacity: .4; }
    to   { transform: translateY(0);    opacity: 1; }
}

.sheet-title {
    margin-bottom: var(--sp-3);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--gray-700);
}

.sheet-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    min-height: 64px;
    margin-bottom: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-input);
    background: var(--white);
    transition: all var(--t-fast);
}

.sheet-btn svg { width: 26px; height: 26px; flex: 0 0 26px; }

.sheet-btn span { font-size: 17px; font-weight: 600; }

.sheet-btn em {
    flex: 1 1 100%;
    padding-left: 38px;
    font-size: 12px;
    font-style: normal;
    color: var(--gray-500);
}

.sheet-btn-photo { color: var(--green-700); border-color: var(--green-100); background: var(--green-50); }
.sheet-btn-photo:hover { border-color: var(--green-600); }

.sheet-btn-plain { color: var(--gray-700); }
.sheet-btn-plain:hover { border-color: var(--gray-300); background: var(--gray-50); }

.sheet-cancel {
    display: block;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    color: var(--gray-500);
    background: var(--gray-100);
    border: none;
    border-radius: var(--r-input);
    transition: background var(--t-fast);
}

.sheet-cancel:hover { background: var(--gray-200); }

/* 结果卡 */
.mask-result { align-items: center; }

.result {
    width: 100%;
    max-width: 420px;
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    text-align: center;
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sheet);
    animation: pop var(--t-norm);
}

@keyframes pop {
    from { transform: scale(.94); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green-600);
}

.result-icon svg { width: 38px; height: 38px; display: block; }

.result-title { font-size: 21px; font-weight: 600; color: var(--gray-900); }

.result-list {
    margin: var(--sp-4) 0 0;
    text-align: left;
    border-top: 1px solid var(--gray-200);
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 10px 2px;
    font-size: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.result-row dt { color: var(--gray-500); flex: 0 0 auto; }
.result-row dd { color: var(--gray-900); font-weight: 500; text-align: right; word-break: break-all; }

.result-note { margin-top: var(--sp-3); font-size: 13px; color: var(--gray-500); }
.result-btn { margin-top: var(--sp-6); min-height: 56px; font-size: 17px; letter-spacing: 1px; }

.result-photo {
    margin-top: var(--sp-4);
    padding: var(--sp-3);
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--r-input);
}

.result-photo .field-hint { margin-top: var(--sp-2); }

/* 橙色（失败 / 重复）状态 */
.result.is-warn .result-icon { background: var(--orange-500); }
.result.is-warn .result-title { color: var(--orange-700); }

/* 照片灯箱 */
.lightbox {
    width: 100%;
    max-width: 620px;
    margin: auto;
    padding: var(--sp-3);
    background: var(--white);
    border-radius: var(--r-card);
    text-align: center;
}

.lightbox img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: var(--r-input); display: block; margin-bottom: var(--sp-3); }
.mask-lightbox { align-items: center; }

/* ============================================================
   Toast
   ============================================================ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    z-index: 80;
    transform: translateX(-50%);
    max-width: 84vw;
    padding: 12px var(--sp-4);
    font-size: 14px;
    color: #fff;
    background: rgba(31, 41, 55, .92);
    border-radius: var(--r-pill);
    animation: rise var(--t-fast);
}

/* ============================================================
   后台：今日概览
   ============================================================ */

.summary {
    margin-bottom: var(--sp-3);
    font-size: 15px;
    color: var(--gray-700);
}

.summary b { font-weight: 600; color: var(--green-700); }
.summary i { font-style: normal; font-weight: 600; color: var(--orange-700); }

.today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-3);
}

.today-item {
    padding: var(--sp-3);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-input);
    background: var(--gray-50);
}

.today-item.is-done { border-color: var(--green-100); background: var(--green-50); }
.today-item.is-miss { border-color: var(--orange-100); background: var(--orange-50); }

.today-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--gray-900); }
.today-mark { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; }
.is-done .today-mark { background: var(--green-600); }
.is-miss .today-mark { background: var(--orange-500); }

.today-meta { margin-top: 6px; font-size: 13px; color: var(--gray-500); line-height: 1.5; word-break: break-word; }
.today-item.is-done .today-meta { color: var(--green-700); }
.today-item.is-miss .today-meta { color: var(--orange-700); }

.today-photo { margin-top: 6px; width: 46px; height: 46px; object-fit: cover; border-radius: var(--r-tag); border: 1px solid var(--gray-200); cursor: pointer; display: block; }

/* ============================================================
   后台：筛选与表格
   ============================================================ */

.filters { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.filter-actions { display: flex; gap: var(--sp-2); align-items: flex-end; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gray-200); border-radius: var(--r-input); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }

.tbl th {
    padding: 10px var(--sp-3);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.tbl td {
    padding: 10px var(--sp-3);
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--gray-50); }

.td-empty { text-align: center; color: var(--gray-500); padding: var(--sp-6) var(--sp-3) !important; }

.tag {
    display: inline-block;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: var(--r-tag);
    white-space: nowrap;
}

.tag-patient { color: var(--green-700); background: var(--green-50); }
.tag-staff   { color: var(--orange-700); background: var(--orange-50); }
.tag-num     { font-variant-numeric: tabular-nums; }
.rate-low    { color: var(--orange-700); font-weight: 600; }
.rate-ok     { color: var(--green-700); font-weight: 600; }

.tbl-photo { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-tag); border: 1px solid var(--gray-200); cursor: pointer; display: block; }
.tbl-nopic { color: var(--gray-400); }

.table-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-3); }

/* ============================================================
   后台：服药监测对比（按月）
   ============================================================ */

.compare-toggle {
    display: inline-flex;
    gap: 4px;
    margin: var(--sp-2) 0 var(--sp-3);
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--r-pill);
}

.ctab {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    border: none;
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}

.ctab.is-on {
    color: #fff;
    background: var(--green-600);
    box-shadow: 0 1px 4px rgba(22, 163, 74, .25);
}

.compare-chart {
    margin: var(--sp-2) 0 var(--sp-4);
    padding: var(--sp-2);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-input);
}

.compare-chart svg { display: block; width: 100%; height: auto; }

.tbl-compare th, .tbl-compare td { text-align: center; }

.tbl-compare th:first-child,
.tbl-compare td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 1;
}

.tbl-compare thead th:first-child { background: var(--gray-50); }

/* 文本选中配色（统一品牌绿） */
::selection { background: var(--green-100); color: var(--green-800); }

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 640px) {
    .topbar { padding: var(--sp-4) var(--sp-6); }
    .wrap { padding: var(--sp-4) var(--sp-6) var(--sp-8); }
    .card { padding: var(--sp-6); }
    .people { grid-template-columns: repeat(4, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .wrap { max-width: 960px; }
    .people { grid-template-columns: repeat(4, 1fr); }
    .filters { grid-template-columns: repeat(4, 1fr) auto; }
    .tbl { min-width: 0; }
}

/* 窄屏：隐藏日期行，为「进入平台」按钮让位（时间秒表始终保留） */
@media (max-width: 460px) {
    .clock-date { display: none; }
}

@media (max-width: 400px) {
    .person { min-height: 62px; padding: var(--sp-2) 6px; }
    .brand-name { font-size: 16px; }
    .clock-time { font-size: 14px; }
    .topbar-right { gap: var(--sp-2); }
    .btn-platform { padding: 0 12px; gap: 4px; font-size: 13px; }
    .btn-platform svg { width: 15px; height: 15px; flex-basis: 15px; }
}

/* 尊重系统的「减少动效」设置 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
