/* ==========================================================================
   起始页样式
   布局基准参考 go.mintab.cn：满屏壁纸 + 顶部工具栏 + 居中时钟/搜索 + 图标网格 + 页脚
   ========================================================================== */

/* ---------- 基础变量 ---------- */
:root {
    --accent: #0192e9;
    --accent-soft: rgba(1, 146, 233, .12);
    --mask-opacity: .18;
    --search-opacity: .92;

    --text-on-wall: #fff;
    --text-on-card: #1f2329;

    --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, system-ui, -apple-system, Arial, sans-serif;
    --font-num: "DIN Alternate", "Bebas Neue", "SF Pro Display", "Helvetica Neue", var(--font-sans);

    --radius-card: 14px;
    --shadow-float: 0 8px 30px rgba(0, 0, 0, .18);
    --ease: cubic-bezier(.23, 1, .32, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-on-wall);
    background: #12232b;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a {
    color: currentColor;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
}

input {
    font-family: inherit;
    border: 0;
    outline: none;
    background: none;
    -webkit-appearance: none;
}

img {
    display: block;
}

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

kbd {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    font-family: var(--font-num);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #1f2329;
    background: #f2f3f5;
    border: 1px solid #dcdfe6;
    border-bottom-width: 2px;
    border-radius: 4px;
}

/* ---------- 壁纸层 ---------- */
.wallpaper-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.wallpaper-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity .6s var(--ease), transform 12s linear;
    transform: scale(1.02);
    will-change: opacity;
}

.wallpaper-media.is-fading {
    opacity: 0;
}

.wallpaper-mask {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, var(--mask-opacity));
    background-image: radial-gradient(120% 100% at 50% 38%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .32) 100%);
    transition: background-color .2s linear;
}

/* ---------- 页面骨架 ---------- */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-header {
    flex: none;
}

.page-header__inner {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 14px;
}

.toolbar {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: #fff;
}

.tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    background-color: rgba(175, 175, 175, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .4s var(--ease), background-color .2s;
    transform-origin: 50% 50%;
}

.tool + .tool {
    margin-left: 10px;
}

.tool svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.tool:hover {
    transform: rotate(144deg);
    background-color: rgba(175, 175, 175, .32);
}

.page-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 13vh 0 0;
}

.page-footer {
    flex: none;
    margin-top: auto;
}

.page-footer__inner {
    padding: 14px 0 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.page-footer__inner a:hover {
    color: #fff;
}

.page-footer__sep {
    margin: 0 6px;
}

/* ---------- 欢迎卡片 ---------- */
.welcome {
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 50;
    width: 272px;
    padding: 18px 18px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--text-on-card);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
    animation: welcome-in .35s var(--ease);
}

@keyframes welcome-in {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.welcome__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #c0c4cc;
    transition: background-color .2s, color .2s;
}

.welcome__close:hover {
    background: #f2f3f5;
    color: #4e5969;
}

.welcome__close svg {
    width: 14px;
    height: 14px;
}

.welcome h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.welcome p {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #666;
}

.welcome__btn {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-soft);
    transition: background-color .2s;
}

.welcome__btn:hover {
    background: rgba(1, 146, 233, .2);
}

/* ---------- 时钟 ---------- */
.clock {
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.clock__time {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    font-family: var(--font-num);
    font-size: 42px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 4px;
    line-height: 1;
    color: #fff;
}

.clock__time .num {
    display: inline-block;
    width: 56px;
    text-align: center;
}

.clock__time .colon {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin: 0 2px 4px;
    animation: colon-blink 2s step-end infinite;
}

.clock__time .clock__sec {
    width: 40px;
    font-size: .62em;
    opacity: .86;
    margin-left: 2px;
}

.clock__time .colon.clock__colon--sec {
    margin-left: 4px;
    font-size: .72em;
    opacity: .8;
}

@keyframes colon-blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: .15;
    }
}

.clock__date {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .92);
}

.clock__date .solar {
    margin-right: 16px;
}

.clock__date .lunar {
    position: relative;
    padding-left: 14px;
}

.clock__date .lunar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
}

.clock__date .lunar[hidden] {
    display: none;
}

/* ---------- 搜索 ---------- */
.search {
    position: relative;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 10px;
}

.search__form {
    display: flex;
    align-items: center;
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, var(--search-opacity));
    box-shadow: 0 0 10px 3px rgba(0, 0, 0, .1);
    transition: box-shadow .25s, background-color .25s;
}

.search__form:focus-within {
    box-shadow: 0 2px 18px 4px rgba(0, 0, 0, .18);
}

.search__engine {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 68px;
    height: 100%;
    color: #c0c4cc;
}

.search__engine:hover {
    background-color: rgba(255, 255, 255, .45);
}

.engine-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    background-color: #fff;
}

.engine-badge img {
    width: 84%;
    height: 84%;
    object-fit: contain;
}

.engine-arrow {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    color: rgba(0, 0, 0, .22);
    transition: transform .25s var(--ease);
}

.search.is-engine-open .engine-arrow {
    transform: rotate(180deg);
}

.search__input {
    flex: 1;
    height: 100%;
    min-width: 0;
    font-size: 15px;
    color: #222;
    background: transparent;
}

.search__input::placeholder {
    color: rgba(0, 0, 0, .35);
}

.search__clear {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 100%;
    font-size: 20px;
    color: #a8abb2;
}

.search__clear[data-visible="true"] {
    display: inline-flex;
}

.search__clear:hover {
    color: #606266;
}

.search__clear svg {
    width: 1em;
    height: 1em;
}

.search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 100%;
    padding: 0 16px 0 10px;
    color: #222;
}

.search__submit svg {
    width: 20px;
    height: 20px;
}

.search__submit:hover {
    background-color: rgba(255, 255, 255, .45);
}

/* 引擎面板 */
.engine-panel {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    z-index: 20;
    transform-origin: top center;
    animation: panel-in .2s var(--ease);
}

.engine-panel__inner {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
    color: #222;
}

.engine-item {
    position: relative;
    display: inline-block;
    width: 70px;
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    transition: background-color .2s;
}

.engine-item:hover {
    background-color: #f5f5f5;
}

.engine-item__icon {
    width: 25px;
    height: 25px;
    margin: 0 auto;
}

.engine-item__icon .engine-badge {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

.engine-item__name {
    margin-top: 6px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
}

.engine-item__del {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 12px;
    color: #f56c6c;
    background: #f5f5f5;
    opacity: 0;
    transition: opacity .2s;
}

.engine-item:hover .engine-item__del {
    opacity: 1;
}

.engine-item--add .engine-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 25px;
}

/* 搜索历史 */
.history-panel {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    z-index: 15;
    padding: 10px 14px 12px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
    color: #222;
    animation: panel-in .2s var(--ease);
}

.history-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
}

.link-btn {
    font-size: 12px;
    color: var(--accent);
}

.link-btn:hover {
    text-decoration: underline;
}

.history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-chip {
    padding: 4px 10px;
    font-size: 12px;
    color: #4e5969;
    background: #f2f3f5;
    border-radius: 12px;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.history-chip:hover {
    background: #e8eaed;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 快捷图标 ---------- */
.shortcuts {
    flex: 1;
    margin-top: 10vh;
}

.shortcuts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    grid-auto-flow: dense;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5px;
    user-select: none;
}

.shortcut {
    position: relative;
    width: 110px;
    margin: 0 auto;
    padding: 20px 10px 10px;
    border-radius: 12px;
    transition: background-color .2s;
    text-align: center;
}

.shortcut:hover {
    background-color: rgba(255, 255, 255, .1);
}

.shortcut__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shortcut__image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 22%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s;
    background: #fff;
}

.shortcut__image:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .32);
}

.shortcut__image:active {
    transform: scale(.92);
}

.shortcut__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22%;
    opacity: 0;
    transition: opacity .25s ease;
}

.shortcut__image img.is-loaded {
    opacity: 1;
}

.shortcut__name {
    max-width: 100%;
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.shortcut__del {
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    color: #777;
    background-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .22);
}

.shortcut__del:hover {
    color: #fff;
    background-color: #d83030;
}

.shortcut__edit-layer {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: rgba(0, 0, 0, .32);
}

.shortcut__image:hover .shortcut__edit-layer {
    display: flex;
}

.shortcut--add .shortcut__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border: 1px dashed rgba(255, 255, 255, .55);
    box-shadow: none;
    color: #fff;
    font-size: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shortcut--add .shortcut__image:hover {
    background: rgba(255, 255, 255, .3);
}

/* 图标文字兜底（始终先渲染，图片加载成功后再覆盖） */
.icon-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 22%;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* 编辑模式 */
.shortcuts.is-edit .shortcut__del {
    display: flex;
}

.shortcuts.is-edit .shortcut__inner {
    transform-origin: 50% 50px;
    animation: swing 1.6s ease-in-out infinite;
}

.shortcut:nth-child(2n) .shortcut__inner {
    animation-delay: .2s;
}

.shortcut:nth-child(3n) .shortcut__inner {
    animation-delay: .4s;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-1.2deg);
    }

    50% {
        transform: rotate(1.2deg);
    }
}

.shortcut.is-dragging {
    opacity: .45;
}

.shortcut.is-drop-target {
    background-color: rgba(255, 255, 255, .22);
    outline: 1px dashed rgba(255, 255, 255, .7);
}

.shortcuts.is-edit .shortcut {
    cursor: grab;
}

/* ---------- 抽屉 ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .34);
    animation: fade-in .2s ease;
}

.drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    color: var(--text-on-card);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .16);
    animation: slide-in .28s var(--ease);
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: none;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    padding: 18px 20px 12px;
}

.drawer__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #909399;
    transition: background-color .2s, color .2s;
}

.icon-btn:hover {
    background: #f2f3f5;
    color: #1f2329;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.drawer__tabs {
    display: flex;
    flex: none;
    gap: 4px;
    padding: 0 16px 8px;
    border-bottom: 1px solid #f0f2f5;
}

.drawer__tabs .tab {
    padding: 6px 12px;
    font-size: 14px;
    color: #606266;
    border-radius: 8px;
    transition: background-color .2s, color .2s;
}

.drawer__tabs .tab:hover {
    background: #f5f7fa;
}

.drawer__tabs .tab.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 20px 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
}

.field {
    padding: 16px 0;
    border-bottom: 1px solid #f5f6f8;
}

.field:last-child {
    border-bottom: 0;
}

.field__label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.field__value {
    float: right;
    color: #909399;
    font-weight: 400;
    font-family: var(--font-num);
}

.field__row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.field__hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #a8abb2;
}

.field--switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field--switch .field__label {
    margin-bottom: 0;
}

.text-input {
    flex: 1;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    color: #1f2329;
    background: #f5f7fa;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color .2s, background-color .2s;
}

.text-input:focus {
    background: #fff;
    border-color: var(--accent);
}

.text-input::placeholder {
    color: #a8abb2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 8px;
    transition: background-color .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.btn--primary {
    color: #fff;
    background: var(--accent);
}

.btn--primary:hover {
    background: #0b7fc4;
}

.btn--ghost {
    color: #4e5969;
    background: #f5f7fa;
    border: 1px solid #e8eaed;
}

.btn--ghost:hover {
    background: #eef1f5;
}

.btn--danger {
    color: #f56c6c;
    background: #fef0f0;
    border: 1px solid #fde2e2;
}

.btn--danger:hover {
    background: #fde2e2;
}

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

.range {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: #ebeef5;
    outline: none;
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
}

.range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.switch {
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #dcdfe6;
    transition: background-color .25s;
}

.switch i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .25s var(--ease);
}

.switch.is-on {
    background: var(--accent);
}

.switch.is-on i {
    transform: translateX(18px);
}

.wallpaper-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wallpaper-item {
    position: relative;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s, transform .2s;
}

.wallpaper-item:hover {
    transform: translateY(-2px);
}

.wallpaper-item.is-active {
    border-color: var(--accent);
}

.wallpaper-item__label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3px 0 2px;
    font-size: 11px;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .45));
    line-height: 1.3;
}

.engine-manage {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engine-manage__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f7f8fa;
    cursor: pointer;
    transition: background-color .2s;
}

.engine-manage__row:hover {
    background: #eef1f5;
}

.engine-manage__row.is-active {
    background: var(--accent-soft);
}

.engine-manage__row .engine-badge {
    width: 24px;
    height: 24px;
}

.engine-manage__name {
    flex: 1;
    font-size: 13px;
    color: #1f2329;
}

.engine-manage__tag {
    font-size: 11px;
    color: var(--accent);
}

.engine-manage__del {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #c0c4cc;
    font-size: 14px;
}

.engine-manage__del:hover {
    color: #f56c6c;
    background: #fef0f0;
}

.tips {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 2;
    color: #86909c;
}

/* ---------- 弹窗 ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    animation: fade-in .2s ease;
}

.modal__panel {
    position: relative;
    width: 340px;
    max-width: 92vw;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    color: var(--text-on-card);
    box-shadow: var(--shadow-float);
    animation: modal-in .24s var(--ease);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal__panel h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

/* ---------- 轻提示 ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 64px;
    z-index: 300;
    padding: 9px 18px;
    font-size: 13px;
    color: #1f2329;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s, transform .24s var(--ease);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .page-main {
        padding-top: 8vh;
    }

    .clock__time {
        height: 46px;
        font-size: 34px;
        letter-spacing: 2px;
    }

    .clock__time .num {
        width: 44px;
    }

    .clock__date {
        font-size: 13px;
        margin-top: 8px;
    }

    .clock {
        margin-bottom: 22px;
    }

    .shortcuts {
        margin-top: 6vh;
    }

    .shortcuts__grid {
        grid-template-columns: repeat(auto-fill, 25%);
    }

    .shortcut {
        width: 100%;
        padding: 14px 4px 8px;
    }

    .shortcut__image {
        width: 52px;
        height: 52px;
    }

    .shortcut__name {
        font-size: 12px;
    }

    .drawer__panel {
        width: 100%;
        max-width: 100%;
    }

    .welcome {
        left: 12px;
        right: 12px;
        width: auto;
        top: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
