/* MiNote 网页版 —— 按 APK 4.0.4 的深色皮革底、彩色便签卡、纸张编辑页还原 */

:root {
    --text: #1f1f1f;
    --text-dim: #4a4a4a;
    --topbar: rgba(128, 128, 128, .5);
    --paper-line: rgba(0, 0, 0, .08);
    --shadow: 0 2px 3px rgba(0, 0, 0, .28);
    --page-max: 780px;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #3c3c3c url("../img/list_background.png") center top / cover no-repeat fixed;
    color: var(--text);
    font-family: -apple-system, "PingFang SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: 100vh;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
    display: flex;
    align-items: center;
    background: var(--topbar);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding-left: 16px;
}

.brand {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 48px;
    color: #fff;
    letter-spacing: .2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn:active { background: rgba(255, 255, 255, .22); }
.icon-btn svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }

.back-btn { width: 44px; margin-left: -8px; }

/* ---------------- 搜索条 ---------------- */

.searchbar {
    position: sticky;
    top: 0;
    z-index: 101;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 12px;
    background: rgba(58, 58, 58, .96);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.searchbar[hidden] { display: none; }

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .16);
    color: #cfcfcf;
}

.search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

.search-field input::placeholder { color: rgba(255, 255, 255, .5); }
.search-field input::-webkit-search-cancel-button { display: none; }

.search-clear {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-clear img { width: 18px; height: 18px; opacity: .9; }

/* ---------------- 页面与卡片 ---------------- */

.page {
    padding: 0 8px 96px;
    min-height: calc(100vh - 48px);
}

.crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 2px 2px;
    color: #ead1ae;
}

.crumb-back {
    display: flex;
    align-items: center;
    color: #ead1ae;
    opacity: .95;
}

.crumb-name {
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68vw;
}

.crumb-count {
    font-size: 12px;
    color: rgba(234, 209, 174, .7);
}

.crumb-rename {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #ead1ae;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .85;
}

.search-info {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    padding: 8px 4px 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
    align-content: start;
}

body.view-list .cards {
    display: block;
    padding-top: 4px;
}

/* 卡片底色 */
.bg-yellow { --card: #FBEEAC; --card2: #F8E7A2; --title: #907849; --paper: #FFE697; --bar: #F7D66C; }
.bg-blue   { --card: #D5F0FF; --card2: #C5E9FC; --title: #6E8B9C; --paper: #D9F2FF; --bar: #BFE2F5; }
.bg-white  { --card: #F3F3F3; --card2: #EBEBEB; --title: #959595; --paper: #ECECEC; --bar: #E4E4E4; }
.bg-green  { --card: #F6FBC4; --card2: #EFF6B7; --title: #8D9458; --paper: #F1F7B2; --bar: #E4EDA2; }
.bg-red    { --card: #FFDBDB; --card2: #FED5D5; --title: #A57979; --paper: #FFE0E0; --bar: #F3CFCF; }

.card {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%);
    border: 1px solid rgba(255, 255, 255, .62);
    border-bottom-color: rgba(0, 0, 0, .10);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card:active { filter: brightness(.96); }

/* 网格卡片 */
body.view-grid .card.note,
body.view-grid .card.folder {
    aspect-ratio: 153 / 149;
    padding: 9px 10px 24px;
    display: flex;
    flex-direction: column;
}

body.view-grid .card .card-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body.view-grid .card-oneline { display: none; }

body.view-grid .card-multi {
    display: block;
    font-size: 14px;
    line-height: 1.42;
    color: var(--text);
    max-height: calc(1.42em * 6);
    overflow: hidden;
    padding-right: 2px;
}

body.view-grid .card.folder {
    padding: 8px 10px 26px;
}

/* 列表卡片 */
body.view-list .card {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 7px 26px 7px 12px;
    margin-bottom: 5px;
    border-radius: 6px;
}

body.view-list .card .card-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

body.view-list .card-oneline {
    display: block;
    font-size: 17px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.view-list .card-multi { display: none; }
body.view-list .card .card-meta {
    position: static;
    margin-left: 8px;
    flex: none;
    max-width: 42%;
}

body.view-list .card.folder .card-oneline {
    font-weight: 500;
}

body.view-list .folder-title { display: none; }
body.view-list .anchor { display: none; }

body.view-list .card .list-edge {
    display: block;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 34px;
    opacity: .95;
}

/* 文件夹卡片：用多层实心阴影模拟 APK 九宫格里的叠纸边 */
body.view-grid .card.folder {
    box-shadow: 3px 4px 0 -1px #F3E4E6, 6px 7px 0 -2px #D6E9F3, 0 4px 8px rgba(0,0,0,.16);
}

.folder-title {
    position: relative;
    z-index: 2;
    padding-left: 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.folder-title .count {
    font-weight: 400;
    opacity: .8;
    margin-left: 1px;
}

.anchor {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 22px;
    z-index: 2;
}

.list-edge { display: none; }

.card-meta {
    font-size: 12px;
    color: rgba(60, 60, 60, .8);
    white-space: nowrap;
}

body.view-grid .card-meta {
    position: absolute;
    right: 10px;
    bottom: 7px;
    left: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    overflow: hidden;
}

.card-meta .where {
    color: rgba(60, 60, 60, .55);
    overflow: hidden;
    text-overflow: ellipsis;
}

.placeholder { color: #9b9b9b; }

body.view-grid .card.blank .card-multi { color: #9b9b9b; }

/* 正文行 */
.ln { display: block; min-height: 1.42em; word-break: break-word; }
.ln.empty { color: transparent; }
.ln.placeholder { color: #9b9b9b; }
.ln.done {
    text-decoration: line-through;
    color: rgba(0, 0, 0, .42);
}
.card .ln a { color: #1a4f9c; text-decoration: underline; text-underline-offset: 2px; }
mark { background: rgba(91, 91, 91, .22); color: inherit; border-radius: 2px; padding: 0 1px; }

/* 选择框 */
.pick {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

body.selecting .pick { display: flex; }

.pick input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 0;
    background: url("../img/checkbox_off.png") center / 22px 22px no-repeat;
    cursor: pointer;
}

.pick input:checked { background-image: url("../img/checkbox_on.png"); }

body.selecting .card { padding-right: 32px; }
body.selecting .card.selected { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -2px; }

.card.dragging { opacity: .45; }
.card.drop-target { outline: 2px dashed rgba(255, 255, 255, .95); outline-offset: -3px; }

/* 空状态 */
.empty-state {
    display: flex;
    justify-content: center;
    padding: 56px 16px;
}

.empty-paper {
    width: min(300px, 90%);
    padding: 18px 18px 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FBEEAC, #F8E7A2);
    box-shadow: var(--shadow);
    text-align: center;
    color: #6f6038;
    font-size: 15px;
    line-height: 1.7;
}

.empty-paper p { margin: 4px 0; }
.empty-tip { font-size: 12px; color: #8d7c52; }
.error-title { font-weight: 700; font-size: 17px; }
.error-msg { color: #7a4a2a; word-break: break-word; }

.page-hint {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    text-align: center;
    padding: 14px 0 4px;
}

/* ---------------- 底部新建便签 ---------------- */

.new-note-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(var(--page-max), 100%);
    height: 54px;
    z-index: 90;
    background: url("../img/ic_new_note_yellow.png") center bottom / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.new-note-bar span {
    margin-top: 12px;
    font-size: 17px;
    color: #b7b7b7;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

.new-note-bar:active span { color: #949494; }

/* ---------------- 选择工具条 ---------------- */

.select-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(var(--page-max), 100%);
    min-height: 56px;
    z-index: 95;
    background: rgba(28, 28, 28, .96);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .35);
}

.select-bar[hidden] { display: none; }
.select-count { flex: 1; font-size: 14px; color: #ddd; }
.select-count b { color: #fff; }
.select-actions { display: flex; gap: 4px; }

.select-actions button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    padding: 10px 10px;
    cursor: pointer;
}

.select-actions button[data-act="select-delete"] { color: #ffb3b3; }
.select-actions button:active { background: rgba(255, 255, 255, .12); }

/* ---------------- 弹出菜单 ---------------- */

.popup {
    position: fixed;
    top: 52px;
    right: max(8px, calc(50% - var(--page-max) / 2 + 8px));
    z-index: 120;
    min-width: 148px;
    padding: 4px 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #f7f0dc, #efe6cd);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.popup[hidden] { display: none; }

.popup::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: #f7f0dc;
}

.popup button,
.popup a {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 11px 20px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    white-space: nowrap;
}

.popup button:hover,
.popup a:hover { background: rgba(0, 0, 0, .06); }

/* ---------------- 对话框 ---------------- */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay[hidden] { display: none; }

.sheet {
    width: min(330px, 92vw);
    border-radius: 6px;
    background: linear-gradient(180deg, #f8f1dc, #efe6cc);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
    padding: 16px 16px 10px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 10px;
}

.sheet-body {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}

.sheet-body input[type="text"] {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 3px;
    background: rgba(255, 255, 255, .7);
    font-size: 15px;
    color: #222;
    outline: none;
}

.sheet-body input[type="text"]:focus { border-color: rgba(0, 0, 0, .4); }

.confirm-text { font-size: 14px; line-height: 1.7; color: #4a4a4a; }

.sheet-body .move-list {
    max-height: 46vh;
    overflow: auto;
    margin: 6px -4px 0;
}

.sheet-body .move-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    text-align: left;
    font-size: 14px;
    color: #2b2b2b;
    cursor: pointer;
    border-radius: 3px;
}

.sheet-body .move-item:hover { background: rgba(0, 0, 0, .06); }
.sheet-body .move-item.on { background: rgba(0, 0, 0, .1); }
.sheet-body .move-item .depth { color: #999; font-size: 12px; }
.sheet-body .move-hint { font-size: 12px; color: #8a7a55; }

.sheet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 12px;
}

.sheet-actions button {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}

.btn-cancel { color: #6a6a6a; }
.btn-ok { color: #1a4f9c; font-weight: 600; }
.sheet-actions button:hover { background: rgba(0, 0, 0, .07); }
.btn-danger { color: #b3261e !important; }

/* ---------------- 编辑页 ---------------- */

body.editor {
    background: #3c3c3c url("../img/list_background.png") center top / cover no-repeat fixed;
}

body.editor::before { display: block; }

.editor {
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.edit-head {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px 0 2px;
    background: var(--topbar);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .20);
}

.edit-back {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-back img { width: 20px; height: 20px; opacity: .9; filter: brightness(0) invert(1); }

.edit-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow: hidden;
}

.edit-time {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.edit-folder {
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.save-state {
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
    margin-right: 2px;
}

.edit-btn {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
}

.edit-btn:hover { background: rgba(255, 255, 255, .12); }
.edit-btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); opacity: .9; }

.edit-scroll {
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
    max-width: var(--page-max);
    min-height: calc(100vh - 96px);
    margin: 12px auto 40px;
    padding: 14px 16px 6px;
    background: var(--paper);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .30);
}

.note-text {
    display: block;
    flex: none;
    width: 100%;
    min-height: calc(100vh - 145px);
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #1f1f1f;
    font-family: -apple-system, "PingFang SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: var(--editor-size, 17px);
    line-height: 1.65;
    padding: 4px 0 24px;
    overflow: hidden;
    -webkit-text-fill-color: #1f1f1f;
}

.note-text::placeholder { color: rgba(0, 0, 0, .28); }

.edit-foot {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    color: rgba(0, 0, 0, .38);
    padding: 4px 0 10px;
}

.font-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(var(--page-max), 100%);
    z-index: 60;
    display: flex;
    background: linear-gradient(180deg, #f8f1dc, #efe6cd);
    border-top: 1px solid rgba(0, 0, 0, .14);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .18);
    padding-bottom: env(safe-area-inset-bottom);
}

.font-panel[hidden] { display: none; }

.font-cell {
    flex: 1;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 0 12px;
    cursor: pointer;
    color: #222;
}

.font-cell img { height: 22px; width: auto; }
.font-cell span { font-size: 13px; }
.font-cell:hover { background: rgba(0, 0, 0, .05); }
.font-cell.on { background: rgba(0, 0, 0, .1); font-weight: 600; }

.color-popup {
    position: fixed;
    top: 48px;
    right: max(10px, calc(50% - var(--page-max) / 2 + 10px));
    z-index: 80;
    background: linear-gradient(180deg, #f8f1dc, #efe6cd);
    border-radius: 6px;
    padding: 10px 12px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.color-popup[hidden] { display: none; }
.color-title { font-size: 12px; color: #7a6a45; margin-bottom: 8px; }
.swatches { display: flex; gap: 10px; }

.swatch {
    width: 34px;
    height: 34px;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    cursor: pointer;
    background-clip: padding-box;
}

.swatch.on { box-shadow: 0 0 0 2px #2e2e2e inset, 0 0 0 3px #fff inset; }
.swatch-inner { display: block; width: 100%; height: 100%; border-radius: 2px; }

/* ---------------- 设置 ---------------- */

.settings-page { padding-top: 10px; }

.settings-group {
    margin: 0 0 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    overflow: hidden;
}

.settings-group h2 {
    margin: 0;
    padding: 12px 14px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #ead1ae;
    letter-spacing: .3px;
}

.setting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 14px;
}

.settings-group h2 + .setting-row { border-top: 0; }
.setting-row .label { color: rgba(255, 255, 255, .68); flex: none; }
.setting-row .value { color: #f1f1f1; text-align: right; word-break: break-all; font-size: 13px; }
.setting-row .hash { color: #d9d9d9; font-size: 12px; }
.setting-row.link { cursor: pointer; }
.setting-row.link:active { background: rgba(255, 255, 255, .08); }
.setting-row em { font-style: normal; }
.good { color: #b8e0a0; }
.bad { color: #ffb0a8; }

.view-switch { display: flex; gap: 6px; }

.view-switch button {
    border: 1px solid rgba(255, 255, 255, .28);
    background: transparent;
    color: #ddd;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}

.view-switch button.on { background: rgba(255, 255, 255, .18); color: #fff; }

.about { padding: 4px 14px 14px; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.75; }
.about p { margin: 6px 0; }
.settings-foot { text-align: center; color: rgba(255, 255, 255, .35); font-size: 11px; padding: 10px 8px 30px; word-break: break-all; }

/* ---------------- 登录 ---------------- */

body.login {
    background: #3c3c3c url("../img/list_background.png") center top / cover no-repeat;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 60px;
}

.login-card {
    width: min(330px, 92vw);
    padding: 24px 22px 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FBEEAC, #F8E7A2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .6);
}

.login-brand { font-size: 30px; font-weight: 700; color: #4d4120; letter-spacing: .5px; }
.login-sub { margin: 2px 0 18px; font-size: 13px; color: #8d7c52; }
.login-error {
    background: rgba(179, 38, 30, .1);
    color: #a03028;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.login-field { display: block; margin-bottom: 12px; }
.login-field span { display: block; font-size: 12px; color: #7a6a45; margin-bottom: 4px; }
.login-field input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 4px;
    background: rgba(255, 255, 255, .72);
    padding: 0 10px;
    font-size: 15px;
    color: #222;
    outline: none;
}

.login-field input:focus { border-color: rgba(0, 0, 0, .45); }

.login-btn {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border: 0;
    border-radius: 4px;
    background: #4d4120;
    color: #fbeeac;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
}

.login-btn:active { background: #3a3118; }
.login-foot { color: rgba(255, 255, 255, .45); font-size: 12px; margin-top: 18px; }

/* ---------------- 提示条 ---------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 8px);
    z-index: 300;
    max-width: 80vw;
    padding: 9px 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 宽屏适配 ---------------- */

@media (min-width: 700px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.view-list .card-oneline { font-size: 18px; }
    .topbar { border-radius: 0; }
    .app { box-shadow: 0 0 34px rgba(0, 0, 0, .45); }
    .page { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 380px) {
    .icon-btn { width: 38px; }
    .brand { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .toast { transition: none; }
}
