/* =========================================================
   情侣博客 · 紫色调响应式主题
   ========================================================= */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-soft: #ede9fe;
    --deep: #4c1d95;
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --blue: #6366f1;
    --text: #2e2345;
    --muted: #8b7fa8;
    --bg: #f6f3fc;
    --card: #ffffff;
    --border: #ece5f8;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-deep: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    --shadow: 0 8px 30px rgba(124, 58, 237, .10);
    --shadow-hover: 0 16px 40px rgba(124, 58, 237, .20);
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, #f0e9ff 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, #f8e8ff 0%, transparent 40%),
        var(--bg);
    background-attachment: fixed;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 28px 0 50px; }

/* ---------------- 按钮 ---------------- */
.btn-primary {
    background: var(--gradient);
    color: #fff; border: none; padding: 11px 26px;
    border-radius: 12px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124,58,237,.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: #fff; color: var(--primary);
    border: 1.5px solid var(--primary-light);
    padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-block { width: 100%; display: block; }

button:disabled { opacity: .6; cursor: default; }

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

/* ---------------- 导航栏 ---------------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--deep); }
.brand-icon { font-size: 22px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: 10px; color: #5d4f7d;
    font-size: 14.5px; font-weight: 500; transition: all .15s;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.nav-link.active { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.35); }

.nav-user { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 30px; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.nav-nickname { font-size: 14px; font-weight: 600; color: var(--text); }
.nav-logout { color: var(--pink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--deep); border-radius: 2px; transition: .25s; }

/* ---------------- 顶部 Hero（16:9） ---------------- */
.hero {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    max-height: 460px; min-height: 240px;
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 45%, #c026d3 100%);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; }
.hero-title { font-size: clamp(26px, 5vw, 44px); font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.25); letter-spacing: 1px; }

.hero-days { margin: 16px 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.days-num { font-size: clamp(40px, 8vw, 64px); font-weight: 800; line-height: 1; }
.days-label { font-size: 20px; font-weight: 600; }
.days-text { width: 100%; font-size: 14px; opacity: .9; margin-top: 6px; }

.hero-announcement { font-size: clamp(13px, 2vw, 16px); opacity: .95; max-width: 620px; margin: 0 auto 18px; }
.hero-bg-btn {
    background: rgba(255, 255, 255, .2); color: #fff;
    border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px);
    padding: 9px 22px; border-radius: 30px; font-size: 13.5px; cursor: pointer;
    transition: background .2s;
}
.hero-bg-btn:hover { background: rgba(255,255,255,.32); }

/* ---------------- 页面小标题 ---------------- */
.page-head {
    background: var(--gradient); color: #fff;
    padding: 34px 0 30px; margin-bottom: 26px;
}
.page-title { font-size: 26px; font-weight: 800; }
.page-desc { opacity: .9; font-size: 14px; margin-top: 4px; }

/* ---------------- Toast ---------------- */
.toast {
    padding: 13px 18px; border-radius: 12px; margin-bottom: 16px;
    font-size: 14px; font-weight: 500; animation: slideDown .35s ease;
}
.toast-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.toast-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.toast.fade { opacity: 0; transform: translateY(-8px); transition: .4s; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; } }

/* ---------------- 顶部操作条（搜索 + 发布，不悬浮，随页面滚动） ---------------- */
.top-dock {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0 4px;
    padding: 10px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(76, 29, 149, .1);
}

.dock-search {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 4px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 0 6px 0 4px;
    height: 42px;
    transition: border-color .2s, box-shadow .2s;
}
.dock-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}
.dock-search-btn {
    flex-shrink: 0; width: 34px; height: 34px;
    border: none; border-radius: 10px; background: transparent;
    font-size: 16px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, transform .12s;
}
.dock-search-btn:hover { background: var(--primary-soft); transform: scale(1.06); }
.dock-search input[type=search] {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-size: 14px; color: var(--text); height: 100%; padding: 0 2px;
}
.dock-search input[type=search]::placeholder { color: #a99bbf; }
.dock-search input[type=search]::-webkit-search-cancel-button { display: none; }
.dock-clear {
    flex-shrink: 0; width: 24px; height: 24px; margin-right: 2px;
    border: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
    font-size: 15px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
}
.dock-clear:hover { background: var(--primary-light); color: #fff; }

.dock-publish {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 20px;
    border: none; border-radius: 13px;
    background: var(--gradient); color: #fff;
    font-size: 14.5px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
    transition: transform .16s, box-shadow .16s, filter .16s;
}
.dock-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(124, 58, 237, .42);
    filter: brightness(1.04);
}
.dock-publish:active { transform: translateY(0) scale(.98); }
.dp-icon { font-size: 15px; }

/* 发布弹窗 */
.modal-composer { max-width: 580px; }
.modal-composer #composerText { min-height: 118px; }
.modal-composer .composer-foot {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.composer-head-title { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.composer-avatar-sm { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary-light); }

/* ---------------- 发布框（已迁入弹窗） ---------------- */

textarea, input[type=text], input[type=password], input[type=date], input[type=file], .file-input {
    width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
}
/* 站内所有多行文本框都允许手动向下拉高（桌面拖动右下角，移动端同样支持触控拖动） */
textarea { resize: vertical; }
#composerText, #editContent {
    border: 1.5px solid var(--border); border-radius: 14px;
    padding: 14px; resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s;
    background: #fcfaff;
}
#composerText:focus, #editContent:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(124,58,237,.1); background: #fff; }

.emoji-panel {
    display: none; flex-wrap: wrap; gap: 2px; margin-top: 10px;
    padding: 12px; background: #faf7ff; border: 1px solid var(--border);
    border-radius: 14px; max-height: 180px; overflow-y: auto;
}
.emoji-panel.show { display: flex; }
.emoji-item { background: none; border: none; font-size: 22px; padding: 5px; cursor: pointer; border-radius: 8px; transition: background .15s, transform .1s; }
.emoji-item:hover { background: var(--primary-soft); transform: scale(1.15); }

.hot-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.hot-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.hot-topic {
    background: var(--primary-soft); color: var(--primary-dark);
    border: none; padding: 5px 12px; border-radius: 20px; font-size: 13px;
    cursor: pointer; transition: all .15s;
}
.hot-topic:hover { background: var(--gradient); color: #fff; }

.img-preview-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: #000; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55); color: #fff; font-size: 11px; z-index: 1;
}
.thumb-remove {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.composer-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-circle {
    width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border);
    background: #fff; font-size: 18px; cursor: pointer; transition: all .15s;
}
.tool-circle:hover { background: var(--primary-soft); transform: translateY(-2px); }
.tool-video { width: auto; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px; }
.tool-video .tv-ico { font-size: 17px; line-height: 1; }
.tool-video .tv-txt { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); }
.tool-album { width: auto; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; background: #f7f1ff; border-color: #e3d4fb; }
.tool-album .ta-ico { font-size: 16px; line-height: 1; }
.tool-album .ta-txt { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); }
.tool-album:hover { background: var(--primary-soft); border-color: var(--primary-light); }
.img-tip { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ---------------- 时间轴工具条 ---------------- */
.timeline-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 18px; flex-wrap: wrap; gap: 10px; }
.timeline-count { font-size: 14px; color: var(--muted); }
.timeline-count b { color: var(--primary); font-size: 16px; }
.timeline-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-year-jump { padding: 4px; gap: 4px; }
.home-year-jump select { min-width: 112px; max-width: 118px; }
.sort-switch { display: inline-flex; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 3px; }
.sort-btn { border: none; background: none; padding: 7px 16px; border-radius: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; font-weight: 600; transition: all .2s; }
.sort-btn.on { background: var(--gradient); color: #fff; box-shadow: 0 3px 10px rgba(124,58,237,.35); }

/* ---------------- 时间轴 ---------------- */
.timeline { position: relative; padding: 10px 0; }
.timeline::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
    width: 3px; transform: translateX(-50%);
    background: linear-gradient(var(--primary-light), var(--primary-soft));
    border-radius: 3px;
}

.timeline-item { position: relative; width: 50%; padding: 14px 44px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-dot {
    position: absolute; top: 24px; width: 48px; height: 48px;
    border-radius: 50%; z-index: 3; overflow: hidden;
    border: 3px solid #fff; box-shadow: 0 4px 14px rgba(124,58,237,.35);
    background: var(--gradient);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -24px; }
.timeline-item:nth-child(even) .timeline-dot { left: -24px; }
.timeline-dot img { width: 100%; height: 100%; object-fit: cover; }

.timeline-card {
    background: var(--card); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: transform .22s, box-shadow .22s;
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.timeline-card.has-pin .card-head { padding-right: 52px; }
.card-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary-soft); }
.card-meta { display: flex; flex-direction: column; }
.card-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gender-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.gender-boy { background: var(--primary-soft); color: var(--primary-dark); }
.gender-girl { background: var(--pink-soft); color: #be185d; }
.master-tag { font-size: 11px; background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 20px; }
.card-time { font-size: 12.5px; color: var(--muted); }
.post-location, .act-location { font-style: normal; font-size: 11px; color: #9b8bb5; white-space: nowrap; }
.post-location { margin-left: 4px; }
.edited { font-style: normal; opacity: .8; }

.card-content { font-size: 15px; color: #3d3157; margin-bottom: 10px; word-break: break-word; }
.post-full { display: none; }
.card-content.expanded .post-excerpt,
.card-content.expanded .post-ellipsis,
.card-content.expanded .post-expand-btn { display: none; }
.card-content.expanded .post-full { display: block; }
.post-ellipsis { color: var(--muted); }
.post-expand-btn {
    background: none; border: none; padding: 0 4px; margin: 0;
    color: #2563eb; font: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.post-expand-btn:hover { color: #1d4ed8; }
.post-collapse-row { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); text-align: center; }
.post-collapse-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 16px; border-radius: 999px;
    background: #faf8ff; border: 1px solid var(--border);
    color: var(--primary-dark); font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.post-collapse-btn:hover { background: var(--primary-soft); border-color: var(--primary-light); color: var(--primary); }
.topic-link { color: var(--primary); font-weight: 600; }
.topic-link:hover { text-decoration: underline; }

.card-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.topic-chip { background: var(--primary-soft); color: var(--primary-dark); font-size: 12.5px; padding: 4px 12px; border-radius: 20px; }
.topic-chip:hover { background: var(--gradient); color: #fff; }

/* 图片网格 */
.card-images { display: grid; gap: 8px; margin-bottom: 12px; border-radius: 14px; overflow: hidden; }
.img-count-1 { grid-template-columns: 1fr; max-width: 420px; }
.img-count-2 { grid-template-columns: 1fr 1fr; }
.img-count-3 { grid-template-columns: repeat(3, 1fr); }
.img-count-4 { grid-template-columns: repeat(2, 1fr); }
.card-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--primary-soft); }
.img-count-1 .card-img { aspect-ratio: 4/3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-img:hover img { transform: scale(1.06); }

/* 操作栏：默认只露出一个三点图标，点开才显示喜欢/评论/置顶/编辑/删除 */
.card-actions-wrap { margin-top: 10px; text-align: right; }
.card-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left;
    max-height: 0; padding-top: 0; border-top: 1px solid transparent;
    opacity: 0; transform: translateY(-8px);
    overflow: hidden; pointer-events: none;
    transition: max-height .36s cubic-bezier(.22,1,.36,1), opacity .24s ease,
                transform .36s cubic-bezier(.22,1,.36,1), padding-top .36s,
                border-color .3s, background-color .3s;
}
.card-actions.is-open {
    max-height: 240px; padding-top: 12px; opacity: 1; transform: translateY(0);
    border-top-color: var(--border); pointer-events: auto;
    background: linear-gradient(180deg, rgba(237,233,254,.45), rgba(255,255,255,0) 74%);
    border-radius: 0 0 12px 12px;
}
.card-actions[hidden] { display: none; }
.card-actions.is-closing { pointer-events: none; }
@keyframes cardActionIn {
    from { opacity: 0; transform: translateY(10px) scale(.88); filter: blur(3px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.card-actions.is-open > * { animation: cardActionIn .38s cubic-bezier(.2,.85,.25,1) both; }
.card-actions.is-open > *:nth-child(1) { animation-delay: .04s; }
.card-actions.is-open > *:nth-child(2) { animation-delay: .09s; }
.card-actions.is-open > *:nth-child(3) { animation-delay: .14s; }
.card-actions.is-open > *:nth-child(4) { animation-delay: .19s; }
.card-actions.is-open > *:nth-child(5) { animation-delay: .24s; }

.card-actions-toggle {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 28px; margin-top: 6px; padding: 0;
    background: #faf8ff; border: 1px solid var(--border);
    border-radius: 999px; color: var(--muted); cursor: pointer;
    transition: background .22s, border-color .22s, color .22s, box-shadow .28s, transform .2s;
}
.card-actions-dots { display: inline-flex; align-items: center; gap: 4px; transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
.card-actions-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.card-actions-toggle:hover { background: var(--primary-soft); border-color: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); }
.card-actions-toggle[aria-expanded="true"] {
    background: var(--gradient); border-color: transparent; color: #fff;
    box-shadow: 0 6px 16px rgba(124,58,237,.3);
}
.card-actions-toggle[aria-expanded="true"]:hover { box-shadow: 0 8px 20px rgba(124,58,237,.38); }
.card-actions-toggle[aria-expanded="true"] .card-actions-dots { transform: rotate(90deg); }
.card-actions-toggle[aria-expanded="true"]::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    animation: cardActionPulse .5s ease-out;
}
@keyframes cardActionPulse {
    0% { box-shadow: 0 0 0 0 rgba(124,58,237,.38); }
    100% { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}
.action-btn {
    background: none; border: none; font-size: 13.5px; color: var(--muted);
    padding: 7px 12px; border-radius: 10px; cursor: pointer; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px; transition: all .15s;
}
.action-btn:hover { background: var(--primary-soft); color: var(--primary); }
.like-btn.liked { color: #e11d48; }
.like-btn.liked:hover { background: #ffe4e6; }
.del-btn { color: #ef4444; }
.del-btn:hover { background: #fef2f2; }
.inline-del-form { display: inline; }

/* 评论区 */
.comment-section { display: block; margin-top: 14px; }
.comment-section:not(.has-comments):not(.input-open) { margin-top: 0; }
.comment-section .comment-form { display: none; }
.comment-section.input-open .comment-form { display: flex; animation: fadeIn .22s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.comment-list { max-height: 320px; overflow-y: auto; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.comment-list:empty { display: none; margin-bottom: 0; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-time { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.comment-del { background: none; border: none; color: #ef4444; font-size: 11.5px; cursor: pointer; }
.comment-edit { background: none; border: none; color: var(--primary); font-size: 11.5px; cursor: pointer; font-weight: 600; }
.comment-edit:hover { text-decoration: underline; }
.comment-edited { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.ce-cancel { background: #f1edfa; color: var(--muted); border: none; padding: 8px 16px; border-radius: 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.comment-edit-box .ce-text { min-height: 88px; }
.comment-text { font-size: 13.5px; color: #4a3d66; word-break: break-word; }
.comment-reply-to { font-size: 11.5px; color: var(--primary); font-weight: 600; }
.comment-reply { background: none; border: none; color: var(--primary); font-size: 11.5px; cursor: pointer; font-weight: 600; padding: 0; }
.comment-reply:hover { text-decoration: underline; }
.comment-reply-box { margin-top: 8px; }
.comment-reply-box[hidden] { display: none; }
.reply-form { display: block; }
.comment-replies { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-left: 12px; border-left: 2px solid #eee3fb; }
.comment-replies:empty { display: none; }
.comment-item.is-reply .comment-avatar { width: 26px; height: 26px; }
.comment-item.is-reply .comment-name { font-size: 12.5px; }

/* 评论编辑器 */
.comment-form { display: flex; align-items: flex-start; gap: 10px; }
.comment-editor { flex: 1; background: #fcfaff; border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 12px; transition: border-color .2s, box-shadow .2s; }
.comment-editor:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(124,58,237,.1); background: #fff; }
.comment-form.media-dragging .comment-editor,
.reply-form.media-dragging .comment-editor,
.comment-edit-box.media-dragging {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,.14);
    background: #fbf6ff;
}
.comment-form.media-dragging .comment-editor::after,
.reply-form.media-dragging .comment-editor::after,
.comment-edit-box.media-dragging::after {
    content: '松开鼠标，把图片 / 视频加入这里';
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
}
#editForm.media-dragging { border-radius: 16px; box-shadow: 0 0 0 3px rgba(124,58,237,.16); background: #fbf6ff; }
.comment-input { width: 100%; border: none; background: transparent; outline: none; resize: vertical; font-size: 13.5px; line-height: 1.6; padding: 2px; min-height: 88px; max-height: none; overflow-y: auto; }
.c-emoji-panel { display: none; }
.c-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-preview:empty { display: none; }
.c-preview .thumb { width: 64px; height: 64px; }
.c-upload { display: none; align-items: center; gap: 8px; margin-top: 8px; }
.c-upload.show { display: flex; }
.c-upload-bar { flex: 1; height: 7px; background: #eee8fb; border-radius: 999px; overflow: hidden; }
.c-upload-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a78bfa, #7c3aed); border-radius: 999px; transition: width .15s; }
.c-upload-text { font-size: 12px; color: var(--primary-dark); min-width: 52px; text-align: right; }
.comment-img-video { width: 132px; height: 78px; }
.comment-video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.comment-tools { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.c-emoji-btn, .c-img-btn {
    width: 34px; height: 34px; border: none; border-radius: 10px;
    background: var(--primary-soft); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
.c-emoji-btn:hover, .c-img-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.comment-send { margin-left: auto; background: var(--gradient); color: #fff; border: none; padding: 8px 20px; border-radius: 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.comment-send:disabled { opacity: .6; }

/* 评论里的图片（已发布） */
.comment-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.comment-img { width: 78px; height: 78px; aspect-ratio: auto; border-radius: 10px; cursor: zoom-in; }
.comment-img img { cursor: zoom-in; }

/* 全局浮动表情面板 */
.float-emoji-panel {
    display: none; position: absolute; z-index: 250;
    width: 320px; max-width: calc(100vw - 16px);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 12px; box-shadow: 0 20px 50px rgba(60,20,100,.25);
    grid-template-columns: repeat(8, 1fr); gap: 2px;
    max-height: 220px; overflow-y: auto;
}
.float-emoji-panel.show { display: grid; animation: fadeIn .18s; }
.float-emoji-panel .emoji-item { background: none; border: none; font-size: 20px; padding: 4px; cursor: pointer; border-radius: 8px; }
.float-emoji-panel .emoji-item:hover { background: var(--primary-soft); transform: scale(1.12); }

/* ---------------- 空状态 / 加载更多 ---------------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 56px; margin-bottom: 14px; }
.load-more-wrap { text-align: center; margin: 30px 0 10px; }
.load-more-hint { font-size: 12.5px; color: var(--muted); padding: 8px 0; letter-spacing: .5px; }
.no-more { font-size: 13px; color: var(--muted); }

/* ---------------- 弹窗 ---------------- */
/* 发布弹窗打开时锁定背景主页，避免手指/鼠标滑动穿透 */
body.composer-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; overscroll-behavior: none; }
.modal-mask { overscroll-behavior: contain; }
.modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.modal-mask {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(46, 16, 84, .5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn .2s; }
#composerAlbumModal { z-index: 210; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { color: var(--deep); }
.modal-close { background: var(--primary-soft); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: var(--primary); cursor: pointer; line-height: 1; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn-add-img { cursor: pointer; }

/* ---------------- 灯箱 ---------------- */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(20, 8, 40, .92); align-items: center; justify-content: center;
    overflow: hidden;
}
.lightbox.show { display: flex; animation: fadeIn .2s; }
body.lightbox-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; touch-action: none; overscroll-behavior: none; }
html.lightbox-open { overflow: hidden; touch-action: none; overscroll-behavior: none; }
.lightbox { touch-action: none; overscroll-behavior: contain; }
.lightbox img { user-select: none; -webkit-user-drag: none; }
.lightbox img { max-width: 92%; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain; transform-origin: center center; will-change: transform; cursor: zoom-in; }
.lightbox.is-zoomed img { cursor: grab; }
.lightbox img.is-dragging { cursor: grabbing; }
.lightbox-close {
    position: fixed; top: 18px; right: 18px; background: rgba(20, 8, 40, .55);
    border: 1px solid rgba(255,255,255,.38); color: #fff; width: 46px; height: 46px; border-radius: 50%;
    font-size: 28px; cursor: pointer; line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,.22); backdrop-filter: blur(6px);
    z-index: 50; /* 固定在视口右上角，始终压在图片上方，放大拖动后也不会被遮住 */
}
.lightbox-close:hover { background: rgba(20, 8, 40, .78); }
.lightbox.export-preview .lightbox-counter { display: none; }
.lightbox.export-preview img { -webkit-touch-callout: default; user-select: auto; }
.lightbox-tip {
    display: none; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    color: rgba(255, 255, 255, .82); font-size: 12px; letter-spacing: .2px; white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35); z-index: 50; pointer-events: none;
}
.lightbox.export-preview .lightbox-tip { display: block; }
@media (min-width: 761px) {
    .lightbox.export-preview .lightbox-tip { display: none; }
}

/* ---------------- 活动导出进度 ---------------- */
.act-export-progress {
    display: none; position: fixed; inset: 0; z-index: 430; align-items: center; justify-content: center;
    padding: 24px; background: rgba(25, 12, 45, .55); backdrop-filter: blur(6px);
}
.act-export-progress.show { display: flex; animation: fadeIn .18s ease; }
.act-export-progress-card {
    width: min(360px, 100%); background: #fff; border-radius: 20px; padding: 22px 20px 18px;
    box-shadow: 0 24px 70px rgba(42, 18, 72, .35); border: 1px solid rgba(124, 58, 237, .12);
}
.aep-title { color: #3b2f55; font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.aep-track { height: 12px; border-radius: 999px; background: #efe7fb; overflow: hidden; }
.aep-fill { width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #ec4899); transition: width .18s ease; }
.aep-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: #8b7ba8; font-size: 12px; }
.aep-stage { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aep-percent { flex: 0 0 auto; color: #7c3aed; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------------- 日历 ---------------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { color: var(--deep); font-size: 18px; }
.cal-nav { font-weight: 600; padding: 6px 14px; border-radius: 10px; background: var(--primary-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekrow { margin-bottom: 8px; }
.cal-week { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-cell {
    aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    background: #faf8ff; border: 1px solid var(--border); color: var(--text);
    transition: all .15s;
}
.cal-cell.blank { background: transparent; border: none; }
.cal-cell:hover:not(.blank) { border-color: var(--primary); transform: translateY(-2px); }
.cal-num { font-size: 15px; font-weight: 600; }
.cal-badge { font-size: 10.5px; color: var(--primary); font-weight: 700; }
.cal-cell.has-post { background: var(--primary-soft); }
.cal-cell.is-today .cal-num { color: var(--pink); }
.cal-cell.selected { background: var(--gradient); color: #fff; }
.cal-cell.selected .cal-badge { color: #fff; }
.day-title { color: var(--deep); margin: 26px 0 14px; font-size: 18px; }

/* ---------------- 筛选条 ---------------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { padding: 8px 18px; border-radius: 22px; background: #fff; border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.on { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(124,58,237,.35); }

/* ---------------- 相册瀑布流 ---------------- */
.album-masonry { columns: 4 200px; column-gap: 14px; }
.album-item { break-inside: avoid; margin-bottom: 14px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s; }
.album-item:hover { transform: translateY(-3px); }
.album-item .card-img { aspect-ratio: auto; border-radius: 0; cursor: zoom-in; }
.album-item .card-img img { cursor: zoom-in; }
.album-info { display: flex; align-items: center; gap: 7px; padding: 9px 11px; font-size: 12px; }
.album-info img { width: 22px; height: 22px; border-radius: 50%; }
.album-info span { font-weight: 700; }
.album-info time { margin-left: auto; color: var(--muted); font-size: 11px; }

/* ---------------- 话题页 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.topic-card-box { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all .2s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.topic-card-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.topic-card-box.pinned { border-color: #d8b4fe; background: linear-gradient(180deg, #fff 0%, #fcfaff 100%); box-shadow: 0 10px 30px rgba(124,58,237,.14); }
.topic-card-box.pinned::after { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); }
.topic-card-link { display: block; position: relative; flex: 1; }
.topic-hash { position: absolute; top: -10px; right: 8px; font-size: 60px; color: var(--primary-soft); font-weight: 800; pointer-events: none; }
.topic-card-name { font-size: 18px; font-weight: 800; color: var(--deep); position: relative; }
.topic-card-cnt { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 6px; }
.topic-card-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.topic-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border); }
.topic-pinned-badge { font-size: 11.5px; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.topic-card-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topic-card-actions .topic-pin-form { margin: 0; }
.topic-pin-form { margin: 0 0 0 auto; }
.topic-pin-btn { background: #fff; border: 1px solid #e3d4fb; color: var(--primary); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.topic-pin-btn:hover { background: var(--primary-soft); border-color: var(--primary-light); }
.topic-pin-btn.on { background: var(--primary-soft); border-color: #c4b5fd; }
.topic-detail-head { margin-bottom: 20px; }
.topic-detail-head h2 { color: var(--deep); margin-top: 8px; font-size: 24px; }
.topic-detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topic-detail-pin-form { margin: 8px 0 0; }
.topic-detail-delete-form { margin: 8px 0 0; }
.topic-delete-btn { background: #fff; border: 1px solid #f0c8c4; color: #b42318; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.topic-delete-btn:hover { background: #fff1f0; border-color: #e8a9a3; }
.back-link { font-size: 14px; font-weight: 600; }

/* ---------------- 回收站 ---------------- */
.recycle-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.recycle-title { color: var(--deep); margin: 0; font-size: 24px; }
.recycle-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.btn-danger-outline { background: #fff; color: #ef4444; border: 1.5px solid #fecaca; padding: 9px 18px; border-radius: 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .2s; }
.btn-danger-outline:hover { background: #fef2f2; border-color: #ef4444; }

.recycle-section { margin-bottom: 30px; }
.recycle-section-title { font-size: 17px; color: var(--deep); margin: 0 0 14px; }
.recycle-empty-line { color: var(--muted); font-size: 13.5px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.recycle-list { display: flex; flex-direction: column; gap: 14px; }
.recycle-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.recycle-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.recycle-content { flex: 1; min-width: 0; }
.recycle-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.recycle-meta strong { color: var(--deep); font-size: 13.5px; }
.recycle-deleted-time { color: #f59e0b; }
.recycle-text { font-size: 13.5px; color: #4a3d66; margin: 8px 0; word-break: break-word; }
.recycle-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.recycle-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.recycle-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.recycle-actions form { display: inline; }
.btn-restore { background: var(--primary-soft); color: var(--primary); border: none; padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-restore:hover { background: var(--primary-light); color: #fff; }
.btn-purge { background: #fef2f2; color: #ef4444; border: none; padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-purge:hover { background: #ef4444; color: #fff; }

/* ---------------- 个人资料 ---------------- */
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.profile-avatar-wrap { text-align: center; margin-bottom: 18px; }
.profile-avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto; border: 4px solid var(--primary-soft); box-shadow: var(--shadow); object-fit: cover; }
.profile-form label, .admin-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.profile-form input, .admin-form input, .admin-form textarea {
    border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 13px; outline: none; background: #fcfaff;
}
.profile-form input:focus, .admin-form input:focus, .admin-form textarea:focus { border-color: var(--primary-light); background: #fff; }
.form-section-title { color: var(--deep); margin-bottom: 8px; }
.admin-form select {
    border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 13px;
    outline: none; background: #fcfaff; color: var(--text); font: inherit; font-size: 13.5px;
    width: 100%; transition: .2s;
}
.admin-form select:focus { border-color: var(--primary-light); background: #fff; }

/* 登录微信提醒 */
.notify-card { margin-top: 22px; }
.notify-intro { font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
.notify-form .wechat-toggle {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 0 0; color: var(--text); font-size: 13px; font-weight: 600;
    width: auto; height: auto; line-height: 1.5;
}
.notify-form .wechat-toggle input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--primary); }
.notify-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
.notify-channel { max-width: 300px; }
.notify-key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 620px; }
.notify-key-grid > div { min-width: 0; }
.notify-key-grid > div[hidden] { display: none; }
.notify-key-grid input { width: 100%; box-sizing: border-box; }
.guard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 620px; margin-top: 12px; }
.guard-grid > div { min-width: 0; }
.guard-grid input { width: 100%; box-sizing: border-box; }
.guard-clear-form { margin-top: 12px; }
.backup-intro { margin-bottom: 12px; }
.backup-list { margin-top: 4px; }
.backup-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.backup-row:last-child { border-bottom: 0; }
.backup-main { flex: 1 1 auto; min-width: 0; }
.backup-name { font-weight: 700; color: var(--text); word-break: break-all; line-height: 1.5; }
.backup-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.backup-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.backup-actions form { margin: 0; }
.backup-actions .btn-sm { white-space: nowrap; }
.backup-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.7; margin: 10px 0 16px; }
.backup-confirm { display: flex; align-items: center; gap: 8px; background: #faf5ff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 12px; width: auto; height: auto; line-height: 1.5; }
.backup-confirm input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--primary); }
.backup-progress { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.backup-progress[hidden] { display: none; }
.backup-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text); }
.backup-progress-head b { font-size: 14px; }
.backup-progress-head span { color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.backup-progress-track { height: 12px; margin-top: 10px; background: #ede9fe; border-radius: 999px; overflow: hidden; }
.backup-progress-bar { width: 0%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899); transition: width .25s ease; }
.backup-progress-msg { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; word-break: break-all; }
.backup-progress-error .backup-progress-bar { background: linear-gradient(90deg, #ef4444, #f97316); }
.backup-progress-error .backup-progress-msg { color: #b91c1c; }
.notify-grid .admin-form input, .notify-grid input { width: 100%; box-sizing: border-box; }
.wechat-toggle-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.notify-help { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin-top: 12px; }
.notify-help a { color: var(--primary); font-weight: 700; }
.notify-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------- 后台 ---------------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tab { padding: 9px 20px; border-radius: 12px; background: #fff; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); }
.admin-tab.on { background: var(--gradient); color: #fff; border-color: transparent; }
.admin-subtabs { display: flex; gap: 8px; margin: -12px 0 20px; padding-left: 4px; flex-wrap: wrap; }
.admin-subtab { padding: 6px 14px; border-radius: 9px; background: #f6f0ff; border: 1px solid #e4d7f7; color: #6d4c91; font-size: 12.5px; font-weight: 600; }
.admin-subtab.on { background: #fff; border-color: #c4b5fd; color: #5b21b6; box-shadow: 0 2px 8px rgba(124, 58, 237, .10); }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-box { border-radius: 16px; padding: 20px 14px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12.5px; opacity: .92; margin-top: 4px; }
.stat-purple { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.stat-pink { background: linear-gradient(135deg,#ec4899,#f472b6); }
.stat-blue { background: linear-gradient(135deg,#6366f1,#818cf8); }
.stat-indigo { background: linear-gradient(135deg,#4f46e5,#8b5cf6); }
.stat-rose { background: linear-gradient(135deg,#e11d48,#fb7185); }
.stat-violet { background: linear-gradient(135deg,#9333ea,#c084fc); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-cols > .card-box { min-width: 0; }
.box-title { font-size: 16px; color: var(--deep); margin-bottom: 14px; }
.person-stat { margin-bottom: 20px; }
.person-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13.5px; min-width: 0; }
.person-row span { width: 42px; font-weight: 700; }
.person-row b { width: 52px; font-size: 13px; color: var(--primary); }
.bar { flex: 1; height: 10px; background: var(--primary-soft); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width .6s ease; }
.bar-boy { background: var(--gradient); }
.bar-girl { background: linear-gradient(135deg,#ec4899,#f9a8d4); }

.mini-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.mini-empty { color: var(--muted); }
.mini-name { font-weight: 700; white-space: nowrap; }
.mini-text { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.log-li { align-items: flex-start !important; }
.log-li > div { flex: 1; min-width: 0; }
.log-li .mini-name { display: block; overflow: hidden; text-overflow: ellipsis; }
.mini-device { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.mini-ip { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.view-all { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; }

/* 数据表格 */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.data-table th { background: var(--primary-soft); color: var(--deep); padding: 12px 10px; text-align: left; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table tr:hover td { background: #faf8ff; }
.table-empty { text-align: center; color: var(--muted); }
.cell-duration { color: var(--primary); font-weight: 600; }
.cell-ip { font-family: ui-monospace, monospace; font-size: 12px; }
.device-tag { background: var(--primary-soft); padding: 3px 10px; border-radius: 14px; font-weight: 600; color: var(--primary-dark); }
.status-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 14px; font-weight: 600; }
.status-on { background: #dcfce7; color: #15803d; }
.status-off { background: #f1f0f5; color: #7d7292; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1.5px solid var(--border); font-weight: 600; color: var(--muted); }
.page-btn.on { background: var(--gradient); color: #fff; border-color: transparent; }

.current-bg { border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.bg-form { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.reset-form { padding: 12px 0; border-bottom: 1px solid var(--border); }
.reset-form:last-child { border-bottom: none; }
.reset-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.reset-row { display: flex; gap: 8px; }
.reset-row input { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; outline: none; }

/* ---------------- 登录页 ---------------- */
.login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 45%, #c026d3 100%);
    padding: 20px;
}
.login-wrap { width: 100%; max-width: 420px; }
.login-card {
    background: rgba(255,255,255,.97); border-radius: 24px; padding: 40px 34px;
    box-shadow: 0 30px 70px rgba(40, 10, 80, .4); text-align: center;
}
.login-logo { font-size: 52px; }
.login-card h1 { color: var(--deep); font-size: 24px; margin-top: 10px; }
.login-sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.form-alert { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.input-group { position: relative; margin-bottom: 14px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.input-group input { padding: 13px 14px 13px 44px; border: 1.5px solid var(--border); border-radius: 12px; outline: none; background: #fcfaff; }
.input-group input:focus { border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.login-remember {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 0 16px; color: var(--muted); font-size: 12.5px;
    cursor: pointer; user-select: none;
}
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.login-hint { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.7; }
.login-footer { text-align: center; color: rgba(255,255,255,.75); font-size: 12.5px; margin-top: 20px; }

.footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 13px; }

/* =========================================================
   搜索（新版：搜索框已并入顶部操作条，见 .top-dock / .dock-search）
   ========================================================= */
.empty-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.empty-hint a { color: var(--primary); font-weight: 600; }

/* =========================================================
   相册合集
   ========================================================= */

/* 工具栏：视图切换 + 新建 */
.album-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 20px; flex-wrap: wrap; }
.album-view-switch { display: inline-flex; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 3px; }
.avsw { padding: 7px 16px; border-radius: 9px; font-size: 13.5px; color: var(--muted); font-weight: 600; transition: all .2s; }
.avsw.on { background: var(--gradient); color: #fff; box-shadow: 0 3px 10px rgba(124,58,237,.35); }
.btn-new-album { padding: 9px 20px; font-size: 13.5px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.album-toolbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* 合集卡片网格 */
.album-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.collection-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; display: block; }
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.collection-card.is-system { border-color: var(--primary-light); }
.cc-cover { position: relative; aspect-ratio: 4/3; background: var(--primary-soft); overflow: hidden; }
.cc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.collection-card:hover .cc-cover img { transform: scale(1.06); }
.cc-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .55; }
.cc-lock { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; background: rgba(76,29,149,.72); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; backdrop-filter: blur(4px); }
.cc-badge-sys { position: absolute; left: 9px; bottom: 9px; background: rgba(255,255,255,.9); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.cc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 15px; }
.cc-name { font-size: 15px; font-weight: 700; color: var(--deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-count { font-size: 12.5px; color: var(--primary); font-weight: 600; flex-shrink: 0; }

/* 表单元素 */
.album-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.album-form-input { width: 100%; border: 1.5px solid var(--border); border-radius: 11px; padding: 11px 13px; outline: none; background: #fcfaff; font-size: 14px; }
.album-form-input:focus { border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.album-file-input { padding: 9px; }
.album-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13.5px; color: var(--text); cursor: pointer; background: var(--primary-soft); padding: 11px 13px; border-radius: 12px; }
.album-check input { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.lock-fields { margin-top: 4px; animation: fadeIn .2s; }

/* 加密方式切换（密码 / 回答问题） */
.lock-mode-switch { display: flex; gap: 8px; margin-top: 6px; }
.lock-mode-opt {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 8px;
    background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 600;
    color: var(--muted); transition: border-color .18s, background .18s, color .18s;
}
.lock-mode-opt:hover { border-color: var(--primary-light); }
.lock-mode-opt input { width: 15px; height: 15px; accent-color: var(--primary); flex-shrink: 0; }
.lock-mode-opt.on, .lock-mode-opt:has(input:checked) {
    border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.lock-mode-fields { margin-top: 2px; }
.lock-tip { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* 合集详情头部 */
.album-view-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 22px; flex-wrap: wrap; }
.album-view-head .back-link { flex-shrink: 0; }
.avh-main { flex: 1; min-width: 160px; }
.avh-title { font-size: 23px; color: var(--deep); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.avh-lock { font-size: 18px; }
.avh-sys-tag { font-size: 11.5px; background: var(--primary-soft); color: var(--primary-dark); padding: 3px 11px; border-radius: 20px; font-weight: 700; }
.avh-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.avh-actions { display: flex; gap: 9px; flex-shrink: 0; }

/* 问答解锁框 */
.unlock-box { max-width: 440px; margin: 34px auto; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 38px 32px; text-align: center; box-shadow: var(--shadow); }
.unlock-icon { font-size: 50px; margin-bottom: 12px; }
.unlock-box h3 { color: var(--deep); font-size: 20px; margin-bottom: 10px; }
.unlock-question { font-size: 15px; color: var(--primary-dark); font-weight: 700; background: var(--primary-soft); border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; }
.unlock-input { text-align: center; margin-bottom: 14px; }

/* 合集图片管理 */
.album-view-grid { position: relative; }
.album-view-item { position: relative; }
.avi-manage { position: absolute; top: 7px; right: 7px; display: flex; gap: 5px; opacity: 0; transition: opacity .2s; z-index: 3; }
.album-view-item:hover .avi-manage { opacity: 1; }
.avi-manage form { display: inline; }
.avi-btn { width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--deep); font-size: 14px; cursor: pointer; box-shadow: 0 3px 9px rgba(60,20,100,.22); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.avi-btn:hover { transform: scale(1.12); }
.avi-btn-danger { color: #ef4444; }

/* 相册批量勾选移动 */
.album-move-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin: 0 0 16px;
    background: rgba(255,255,255,.78);
    border: 1px dashed #d8c8f4;
    border-radius: 16px;
}
.album-move-title { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; color: var(--deep); line-height: 1.4; }
.album-move-title span { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.album-move-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 0 auto; }
.album-move-select {
    min-width: 150px;
    height: 34px;
    padding: 0 11px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--deep);
    font-size: 12.5px;
}
.album-select-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5f4e78; cursor: pointer; white-space: nowrap; }
.album-select-all input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.album-move-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.album-move-check {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 27px;
    height: 27px;
    z-index: 4;
    cursor: pointer;
}
.album-move-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.album-move-check span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.95);
    background: rgba(40,25,60,.32);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(30,15,50,.22);
    transition: all .15s;
}
.album-move-check span::after { content: '✓'; opacity: 0; }
.album-move-check input:checked + span { background: var(--gradient); border-color: #fff; }
.album-move-check input:checked + span::after { opacity: 1; }
.album-move-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 添加图片弹窗 */
.add-photo-divider { text-align: center; margin: 22px 0 14px; position: relative; }
.add-photo-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.add-photo-divider span { position: relative; background: #fff; padding: 0 13px; font-size: 12.5px; color: var(--muted); }
.pick-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; max-height: 300px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 13px; }
.pick-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.pick-photo img { width: 100%; height: 100%; object-fit: cover; }
.pick-photo input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--primary); z-index: 2; }
.pick-photo:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }

/* 多图上传进度（每张一条） */
.up-progress {
    margin-top: 12px; padding: 11px 12px 9px;
    background: #faf7ff; border: 1px solid var(--border); border-radius: 13px;
}
.up-summary { font-size: 12.5px; color: var(--primary-dark); font-weight: 600; margin-bottom: 9px; }
.up-list { display: flex; flex-direction: column; gap: 9px; max-height: 210px; overflow-y: auto; }
.up-item { font-size: 12px; }
.up-line { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--muted); }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12.5px; }
.up-size { flex-shrink: 0; font-size: 11.5px; }
.up-pct { flex-shrink: 0; width: 40px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.up-bar { height: 6px; border-radius: 6px; background: var(--primary-soft); overflow: hidden; }
.up-fill {
    display: block; height: 100%; width: 0; border-radius: 6px;
    background: var(--gradient);
    transition: width .18s linear;
}
.up-item.done .up-pct { color: var(--primary); font-weight: 700; }
.up-item.done .up-fill { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.up-item.fail .up-bar { background: #ffe4e6; }
.up-item.fail .up-fill { background: #ef4444; }
.up-item.fail .up-pct { color: #dc2626; font-weight: 700; }
.up-error { margin-top: 4px; font-size: 11.5px; color: #dc2626; line-height: 1.4; }

/* =========================================================
   拖拽排序
   ========================================================= */
.img-preview-row .thumb, .c-preview .thumb, #editPreviewRow .thumb, .act-thumb { touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; }
.img-preview-row .thumb img, .c-preview .thumb img, #editPreviewRow .thumb img, .act-thumb img,
.img-preview-row .thumb video, .c-preview .thumb video, #editPreviewRow .thumb video, .act-thumb video { pointer-events: none; }
.thumb.sorting, .act-thumb.sorting { opacity: .55; transform: scale(.94); box-shadow: 0 0 0 2px var(--primary-light), 0 10px 24px rgba(124,58,237,.3); cursor: grabbing; z-index: 5; }

/* =========================================================
   灯箱画廊导航
   ========================================================= */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.28); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background .2s, transform .2s; z-index: 5; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }
.lightbox-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px; letter-spacing: .5px; backdrop-filter: blur(6px); }

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

/* 平板 & 手机：时间轴改为单侧 */
@media (max-width: 900px) {
    .timeline::before { left: 22px; transform: none; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0 !important; padding: 12px 0 12px 58px; }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; width: 42px; height: 42px; top: 18px; }

    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-cols, .profile-layout { grid-template-columns: 1fr; }
}

/* 手机导航 */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 62px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
        padding: 12px 16px; border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(60,20,100,.15);
        display: none;
    }
    .nav-menu.open { display: flex; animation: slideDown .25s; }
    .nav-link { padding: 12px 14px; }
    .nav-user { padding: 8px 14px; }
    .nav-avatar { width: 30px; height: 30px; }

    .container { padding: 0 15px; }
    .card-box { padding: 18px; }
    .timeline-card { padding: 16px; }
    .hero { min-height: 200px; }
    .cal-grid { gap: 4px; }
    .cal-num { font-size: 13px; }
    .cal-badge { font-size: 9.5px; }
    .composer-foot { flex-direction: column; align-items: stretch; }
    .composer-foot .btn-primary { width: 100%; }

    /* 移动端：管理按钮常显（无 hover） */
    .avi-manage { opacity: 1; }
    .album-view-head { gap: 12px; }
    .avh-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
    .avh-actions .btn-sm { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 26px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    /* 顶部操作条（移动端） */
    .top-dock { margin: 12px 0 2px; padding: 8px; gap: 8px; border-radius: 16px; }
    .dock-search { height: 40px; border-radius: 12px; }
    .dock-search input[type=search] { font-size: 13.5px; }
    .dock-publish { height: 40px; padding: 0 15px; border-radius: 12px; font-size: 14px; }
}

@media (max-width: 520px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .album-masonry { columns: 2; column-gap: 9px; }
    .login-card { padding: 32px 24px; }
    .img-count-3, .img-count-4 { grid-template-columns: 1fr 1fr; }
    .album-collection-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cc-meta { padding: 10px 11px; }
    .album-toolbar { align-items: stretch; }
    .album-toolbar-actions { width: 100%; align-items: stretch; }
    .album-toolbar-actions .btn-new-album { width: auto; flex: 1; }
    .lightbox-counter { bottom: 18px; }
    .act-export-progress { padding: 18px; }
    .act-export-progress-card { padding: 20px 16px 16px; border-radius: 18px; }
    .aep-title { font-size: 16px; }

    /* 极窄屏：压缩发布按钮内边距，把宽度让给搜索框 */
    .dock-publish { padding: 0 14px; gap: 6px; }
    .dock-search input[type=search]::placeholder { font-size: 13px; }
}

/* =========================================================
   通知中心
   ========================================================= */
.nav-notify { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: 9px; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, .45);
}
.nav-link.active .nav-badge { background: #fff; color: var(--primary); }

/* 通知列表 */
.notify-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin-top: 22px; margin-bottom: 16px;
}
.notify-head-left { min-width: 0; }
.notify-title { font-size: 19px; color: var(--deep); margin-bottom: 4px; }
.notify-sub { font-size: 13px; color: var(--muted); }
.notify-sub b { color: var(--primary); }

.notify-list { display: flex; flex-direction: column; gap: 10px; }
.notify-item {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 15px;
    text-decoration: none; color: var(--text);
    transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.notify-item:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, .3);
    box-shadow: 0 10px 24px rgba(76, 29, 149, .12);
}
.notify-item.unread {
    background: linear-gradient(135deg, #fbf7ff, #f6f0ff);
    border-color: rgba(124, 58, 237, .26);
}
.notify-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.notify-avatar {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(76, 29, 149, .18);
    margin-left: -6px;
}
.notify-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notify-text {
    font-size: 13.8px; line-height: 1.45; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notify-item.unread .notify-text { font-weight: 600; color: var(--deep); }
.notify-time { font-size: 11.5px; color: var(--muted); }
.notify-dot {
    flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .16);
}
.notify-arrow { flex-shrink: 0; color: #b6a6cc; font-size: 16px; }

.notify-pager {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 22px 0 8px;
}
.notify-page-info { font-size: 13px; color: var(--muted); }

/* 通知跳转到动态时，别被吸顶导航挡住 */
.timeline-item { scroll-margin-top: 80px; }

@media (max-width: 768px) {
    .notify-head { margin-top: 14px; }
    .notify-item { padding: 11px 12px; gap: 9px; }
    .notify-icon { width: 30px; height: 30px; font-size: 15px; }
    .notify-avatar { width: 26px; height: 26px; }
    .notify-text { font-size: 13px; }
}

/* =========================================================
   纪念日
   ========================================================= */
.anniv-tabs {
    display: inline-flex; gap: 6px; padding: 5px; margin-top: 22px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow);
}
.anniv-tab {
    padding: 8px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
    color: var(--muted); transition: all .16s;
}
.anniv-tab:hover { color: var(--primary); background: var(--primary-soft); }
.anniv-tab.on { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.32); }
.cal-jump {
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
    padding: 5px 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow);
}
.cal-jump select {
    appearance: none; -webkit-appearance: none;
    padding: 5px 8px; max-width: 84px;
    background: #faf8ff; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer;
}
.cal-jump select:hover { border-color: var(--primary-light); }
.cal-jump-btn {
    display: none; align-items: center; justify-content: center;
    padding: 6px 11px; border: none; border-radius: 8px;
    background: var(--gradient); color: #fff;
    font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: box-shadow .18s, transform .18s;
}
.cal-jump-btn.is-visible { display: inline-flex; animation: calJumpIn .26s cubic-bezier(.34,1.56,.64,1) both; }
.cal-jump-btn:hover { box-shadow: 0 4px 12px rgba(124,58,237,.28); transform: translateY(-1px); }
@keyframes calJumpIn {
    from { opacity: 0; transform: translateY(2px) scale(.82); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.anniv-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin: 16px 0 14px;
}
.anniv-title { font-size: 19px; color: var(--deep); margin-bottom: 4px; }
.anniv-sub { font-size: 13px; color: var(--muted); }
.anniv-sub b { color: var(--primary); }

.anniv-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.anniv-filters { margin-bottom: 0; }
.anniv-sort { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.anniv-sort-link { padding: 6px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.anniv-sort-link.on { background: var(--primary-soft); color: var(--primary); }

.anniv-list { display: flex; flex-direction: column; gap: 12px; }
.anniv-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 16px; box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative; overflow: hidden;
}
.anniv-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--gradient);
}
.anniv-card.type-birthday::before { background: linear-gradient(180deg, #f472b6, #ec4899); }
.anniv-card.type-festival::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.anniv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,.28); }
.anniv-card.is-today { background: linear-gradient(135deg, #fdf7ff, #f7efff); border-color: rgba(236,72,153,.32); }

.anniv-date {
    flex-shrink: 0; width: 64px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 8px 0; border-radius: 13px;
    background: var(--primary-soft);
}
.type-birthday .anniv-date { background: #fdeef5; }
.type-festival .anniv-date { background: #fef6e4; }
.anniv-day { font-size: 22px; font-weight: 800; color: var(--deep); line-height: 1.1; }
.anniv-month { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.anniv-year { font-size: 10.5px; color: #b6a6cc; }

.anniv-main { flex: 1; min-width: 0; }
.anniv-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anniv-name { font-size: 15.5px; color: var(--deep); font-weight: 800; }
.anniv-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 700;
    background: var(--primary-soft); color: var(--primary);
}
.anniv-tag.tag-birthday { background: #fdeef5; color: #db2777; }
.anniv-tag.tag-festival { background: #fef6e4; color: #d97706; }
.anniv-today-badge {
    font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 700;
    background: linear-gradient(135deg, #f472b6, #ec4899); color: #fff;
}
.anniv-note { font-size: 12.8px; color: var(--muted); line-height: 1.55; margin-top: 5px; }
.anniv-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.anniv-meta b { color: var(--primary); font-size: 13.5px; }
.type-birthday .anniv-meta b { color: #db2777; }
.type-festival .anniv-meta b { color: #d97706; }
.meta-sep { color: #d8c9ec; }
.meta-remind { font-size: 11.5px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 8px; }
.meta-remind.off { color: var(--muted); background: #f5f3f8; }

.anniv-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.anniv-acts form { margin: 0; }
.anniv-del {
    background: #fff; border: 1.5px solid var(--primary-light);
    color: #ef4444; font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 8px 16px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1.2; transition: background .18s, border-color .18s;
}
.anniv-del:hover { background: var(--primary-soft); border-color: var(--primary); color: #ef4444; }

/* 纪念日表单 */
.modal-anniv { max-width: 520px; }
.anniv-textarea { resize: vertical; min-height: 76px; font-family: inherit; }
.anniv-type-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.anniv-type-opt {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 6px; border: 1.5px solid var(--border); border-radius: 12px;
    font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
    background: #fcfaff; transition: all .16s;
}
.anniv-type-opt:hover { border-color: var(--primary-light); }
.anniv-type-opt input { display: none; }
.anniv-type-opt.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.anniv-form-tip { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* 日历格里的纪念日角标 */
.cal-anniv-dot {
    position: absolute; top: 6px; right: 6px; font-size: 9px; line-height: 1;
}
.cal-cell { position: relative; }
.cal-cell.has-anniv { border-color: rgba(236, 72, 153, .35); }

@media (max-width: 768px) {
    .anniv-tabs { margin-top: 14px; }
    .timeline-actions { width: 100%; justify-content: space-between; }
    .sort-btn { padding: 7px 11px; font-size: 13px; }
    .cal-head { gap: 6px; }
    .cal-nav { white-space: nowrap; padding: 6px 10px; font-size: 12.5px; }
    .cal-jump { padding: 4px; gap: 3px; flex-shrink: 0; }
    .cal-jump select { max-width: 76px; padding: 5px 5px; }
    .home-year-jump select { min-width: 104px; max-width: 112px; }
    .cal-jump-btn { padding: 6px 9px; white-space: nowrap; flex-shrink: 0; }
    .anniv-card { padding: 13px; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
    .anniv-date { width: 54px; }
    .anniv-day { font-size: 19px; }
    .anniv-acts { width: 100%; justify-content: flex-end; }
    .anniv-toolbar { gap: 10px; }
    .anniv-name { font-size: 14.5px; }
}

/* 日历里选中日期上的纪念日小标签 */
.day-annivs { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.day-anniv-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
    background: #fdeef5; color: #db2777; border: 1px solid rgba(236,72,153,.22);
}

@media (max-width: 768px) {
    .anniv-meta { gap: 6px 10px; }
    .anniv-meta .meta-sep { display: none; }
}

/* 选中日期时保持数字与纪念日角标清晰 */
.cal-cell.selected .cal-num { color: #fff; }
.cal-cell.selected .cal-badge { color: #fff; }
.cal-anniv-dot { filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }

/* ---------- 纪念日：农历 ---------- */
.anniv-lunar-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.anniv-lunar-year { min-width: 0; }
.anniv-leap-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-soft, #6b7280);
    cursor: pointer;
}
.anniv-leap-check input { width: 16px; height: 16px; accent-color: var(--primary, #7c3aed); }
.anniv-lunar-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #6d28d9;
    background: rgba(124, 58, 237, .10);
    border: 1px solid rgba(124, 58, 237, .18);
    white-space: nowrap;
}

/* ---------- 回收站：纪念日 / 合集 / 图片 ---------- */
.recycle-anniv-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: rgba(124, 58, 237, .10);
    flex: 0 0 auto;
}
.recycle-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.recycle-photo {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, .12);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.recycle-photo img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: #f5f0ff;
}
.recycle-photo-meta {
    padding: 10px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}
.recycle-photo-album { color: #4b5563; font-weight: 600; }
.recycle-photo-acts {
    padding: 8px 12px 12px;
    display: flex;
    gap: 8px;
}
.recycle-photo-acts form { flex: 1; }
.recycle-photo-acts button { width: 100%; }

@media (max-width: 768px) {
    .anniv-lunar-row { grid-template-columns: 1fr 1fr; }
    .recycle-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* hidden 属性优先于本组件的 display 设置 */
.anniv-leap-check[hidden] { display: none; }


/* ---------- 批量操作条 / 勾选 ---------- */
.batch-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; margin: 0 0 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.batch-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--muted); cursor: pointer;
}
.batch-all input, .notify-check, .log-check, .notice-read-check {
    width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.batch-spacer { flex: 1; }
.notify-row { display: flex; align-items: center; gap: 10px; }
.notify-row .notify-item { flex: 1; min-width: 0; }
.notify-check { flex: 0 0 auto; }
.th-check, .td-check { width: 36px; }


/* 通知页：默认不显示勾选框，进入批量模式后才出现 */
#notifyForm .batch-all,
#notifyForm #notifyDeleteBtn { display: none; }
#notifyForm.batch-mode .batch-all { display: inline-flex; }
#notifyForm.batch-mode #notifyDeleteBtn { display: inline-flex; }
#notifyForm .notify-check { display: none; }
#notifyForm.batch-mode .notify-check { display: inline-block; }


/* 登录日志：默认不显示勾选列，进入批量模式后展开 */
#logsForm .batch-all,
#logsForm #logsDeleteBtn { display: none; }
#logsForm.batch-mode .batch-all { display: inline-flex; }
#logsForm.batch-mode #logsDeleteBtn { display: inline-flex; }
#logsForm .th-check,
#logsForm .td-check { display: none; }
#logsForm.batch-mode .th-check,
#logsForm.batch-mode .td-check { display: table-cell; }


/* 回收站：默认隐藏勾选框，批量恢复模式下展开 */
#recycleWrap .batch-all,
#recycleWrap #recycleRestoreBtn { display: none; }
#recycleWrap.batch-mode .batch-all { display: inline-flex; }
#recycleWrap.batch-mode #recycleRestoreBtn { display: inline-flex; }
#recycleWrap .recycle-check { display: none; }
#recycleWrap .recycle-check,
#recycleBatchForm .batch-all input,
#recycleBatchForm #recycleAll { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex: 0 0 auto; }
#recycleWrap.batch-mode .recycle-item .recycle-check { display: inline-block; align-self: center; }
.recycle-photo { position: relative; }
#recycleWrap.batch-mode .recycle-photo .recycle-check {
    display: inline-block;
    position: absolute; top: 8px; left: 8px; z-index: 3;
    width: 20px; height: 20px; padding: 0;
    border-radius: 5px; background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .18);
}


/* 发布框拖拽提示 */
#composerForm { position: relative; }
.composer-drop-hint {
    display: none;
    position: absolute; inset: 0; z-index: 8;
    align-items: center; justify-content: center;
    border: 2px dashed var(--primary); border-radius: inherit;
    background: rgba(124, 58, 237, .07);
    color: var(--primary); font-size: 15px; font-weight: 600;
    pointer-events: none;
}
#composerForm.dragging .composer-drop-hint { display: flex; }


/* 回收站批量操作：彻底删除按钮仅在批量模式下出现 */
#recycleWrap #recyclePurgeBtn { display: none; }
#recycleWrap.batch-mode #recyclePurgeBtn { display: inline-flex; }


/* 相册 / 动态视频 */
.card-video { cursor: default; background: #000; }
.card-img-video { aspect-ratio: 1; cursor: default; background: #000; }
.img-count-1 .card-img-video { aspect-ratio: 16/9; }
.card-img-video .card-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.album-video {
    display: block; width: 100%; height: auto; max-height: 78vh;
    background: #000; border-radius: inherit;
    object-fit: contain;
}
.album-upload-tip { margin: 6px 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.recycle-video-ph {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4/3; background: #1c1724; color: #e9ddff;
    font-size: 13px; border-radius: 10px 10px 0 0;
}


/* 置顶印章（支持多条置顶） */
.pin-seal {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #e53935; color: #e53935;
    background: rgba(255, 255, 255, .93);
    font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
    transform: rotate(-12deg); pointer-events: none;
    box-shadow: 0 2px 8px rgba(229, 57, 53, .18), inset 0 0 0 2px rgba(229, 57, 53, .22);
    text-shadow: 0 0 1px rgba(229, 57, 53, .35);
}
@media (max-width: 600px) {
    .pin-seal { width: 40px; height: 40px; font-size: 10.5px; top: 8px; right: 8px; }
    .timeline-card.has-pin .card-head { padding-right: 44px; }
}

/* =========================================================
   活动日历
   ========================================================= */
.act-calendar-card { margin-top: 16px; }
.act-cal-title-wrap { text-align: center; }
.act-cal-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.act-cal-grid { gap: 7px; }
.act-cell {
    aspect-ratio: auto;
    min-height: 92px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 7px;
    gap: 5px;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.act-cell.has-act { background: #f6f0ff; border-color: #e2d5fb; }
.act-cell.selected.has-act { background: var(--gradient); }
.act-cell-date { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--deep); }
.act-cell.selected .act-cell-date { color: #fff; }
.act-today-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); display: inline-block; }
.act-cell.selected .act-today-dot { background: #fff; }
.act-cell-tags { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; }
.act-mini-tag {
    display: inline-block; max-width: 100%; padding: 2px 5px; border-radius: 6px;
    background: #fff; color: #6d28d9; font-size: 9.5px; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1px solid rgba(124,58,237,.14);
}
.act-cell.selected .act-mini-tag { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.35); }
.act-mini-more { font-weight: 700; }
.act-cell-count { position: absolute; right: 6px; bottom: 5px; font-size: 9.5px; color: var(--muted); }
.act-cell.selected .act-cell-count { color: rgba(255,255,255,.9); }

.act-day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.act-day-title { margin: 0 0 4px; }
.act-day-sub { font-size: 12.5px; color: var(--muted); }
.act-list { display: flex; flex-direction: column; gap: 14px; }
.act-card {
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 16px 18px; box-shadow: var(--shadow);
}
.act-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.act-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.act-tag {
    display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary-dark);
    font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.act-tag-empty { background: #f4f1fa; color: var(--muted); font-weight: 500; }
.act-card-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.act-card-actions form { display: inline; }
.act-edit, .act-del {
    border: none; background: none; padding: 4px 6px; border-radius: 8px;
    font-size: 12px; cursor: pointer; font-weight: 600;
}
.act-edit { color: var(--primary); }
.act-edit:hover { background: var(--primary-soft); }
.act-del { color: #ef4444; }
.act-del:hover { background: #fef2f2; }
.act-detail { margin-top: 12px; font-size: 14px; line-height: 1.75; color: #4a3d66; word-break: break-word; }
.act-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.act-media-item { width: 112px; height: 112px; border-radius: 12px; overflow: hidden; }
.act-media-item img, .act-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; cursor: zoom-in; }
.act-media-item video { cursor: default; }
.act-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.act-meta-avatar { width: 20px; height: 20px; border-radius: 50%; }

.act-modal { max-width: 600px; width: 92%; max-height: 90vh; overflow-y: auto; }
.act-field { margin-bottom: 16px; }
.act-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--deep); }
.act-label-hint { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.act-input {
    width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
    padding: 10px 12px; font-size: 13.5px; background: #fcfaff; color: var(--text);
    outline: none; transition: border-color .18s, box-shadow .18s;
}
.act-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(124,58,237,.1); background: #fff; }
textarea.act-input { resize: vertical; min-height: 96px; line-height: 1.65; }
.act-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.act-opt { position: relative; cursor: pointer; }
.act-opt input { position: absolute; opacity: 0; pointer-events: none; }
.act-opt span {
    display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px;
    border: 1.5px solid var(--border); background: #fff; color: var(--muted);
    font-size: 12.5px; font-weight: 600; transition: all .16s;
}
.act-opt:hover span { border-color: var(--primary-light); color: var(--primary); }
.act-opt:has(input:checked) span { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.24); }
.act-opt:has(input:focus-visible) span { box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.act-custom { margin-top: 2px; }
.act-media-actions { margin-bottom: 9px; }
.act-preview { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.act-preview-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
.act-thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #000; }
.act-thumb img, .act-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-thumb-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.88);
    color: #4c1d95; display: flex; align-items: center; justify-content: center;
    font-size: 11px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.act-thumb-del {
    position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    border: none; background: rgba(0,0,0,.58); color: #fff; font-size: 13px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.act-up { display: none; align-items: center; gap: 9px; margin-top: 10px; }
.act-up.show { display: flex; }
.act-up-bar { flex: 1; height: 8px; background: #eee8fb; border-radius: 999px; overflow: hidden; }
.act-up-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--gradient); transition: width .15s; }
.act-up-text { min-width: 58px; text-align: right; font-size: 12px; font-weight: 600; color: var(--primary-dark); }
.act-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.act-day-share { display: none; }

@media (max-width: 600px) {
    .act-cell { min-height: 76px; padding: 6px 5px; }
    .act-cell-date { font-size: 12px; }
    .act-mini-tag { font-size: 8px; padding: 1px 4px; max-width: 100%; }
    .act-cell-count { display: none; }
    .act-card { padding: 14px; }
    .act-card-head { flex-direction: column; }
    .act-card-actions { align-self: flex-end; }
    .act-media-item { width: 92px; height: 92px; }
    .act-modal { width: 94%; max-height: 88vh; }
}

/* 活动日历：移动端横向滚动，保证 7 列里的标签能看清 */
@media (max-width: 600px) {
    .act-cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .act-cal-scroll .cal-grid { min-width: 620px; }
    .act-cal-scroll::-webkit-scrollbar { height: 5px; }
    .act-cal-scroll::-webkit-scrollbar-thumb { background: #ddd0f5; border-radius: 99px; }
}

/* 活动详情里的视频给足宽度，避免 16:9 被方形裁掉 */
.act-media-item.act-media-video { width: 210px; height: 118px; background: #000; cursor: default; }
.act-media-item.act-media-video video { object-fit: contain; cursor: default; }
@media (max-width: 600px) {
    .act-media-item.act-media-video { width: 168px; height: 95px; }
}

/* =========================================================
   活动日历 v2：三行标签、心情、导出、统计
   ========================================================= */
.act-tools { display: flex; justify-content: flex-end; gap: 8px; margin: -4px 0 12px; flex-wrap: wrap; }
.act-tool-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    border: 1.5px solid var(--border); background: #fff; color: var(--primary-dark);
    border-radius: 10px; padding: 7px 13px; font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: all .16s;
}
.act-tool-ico {
    width: 14px; height: 14px; flex: 0 0 auto;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.act-tool-btn:hover { border-color: var(--primary-light); background: var(--primary-soft); }
.act-tool-btn:disabled { opacity: .6; cursor: wait; }

.act-cell { min-height: 104px; }
.act-cell-date { padding-right: 24px; }
.act-cell-mood {
    position: absolute; right: 6px; top: 5px;
    font-size: 15px; line-height: 1.1; max-width: 78px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}
.act-cell-tags { flex-direction: column; align-items: flex-start; gap: 3px; }
.act-mini-tag { max-width: 100%; }

.act-tag-mood { background: #fff0f6; color: #db2777; }
.act-moods { display: flex; flex-wrap: wrap; gap: 7px; }
.act-mood-opt { position: relative; cursor: pointer; }
.act-mood-opt input { position: absolute; opacity: 0; pointer-events: none; }
.act-mood-opt span {
    display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px;
    border: 1.5px solid var(--border); background: #fff; color: var(--muted);
    font-size: 12.5px; font-weight: 600; transition: all .16s;
}
.act-mood-opt:hover span { border-color: #f9a8d4; color: #db2777; }
.act-mood-opt:has(input:checked) span { background: linear-gradient(135deg, #db2777, #f472b6); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(219,39,119,.24); }

.act-stats-modal { max-width: 680px; width: 94%; }
.act-stats-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 2px 0 20px; }
.act-stat-card {
    background: linear-gradient(150deg, #faf7ff, #f3ebff); border: 1px solid #e8dcfb;
    border-radius: 13px; padding: 12px 13px; display: flex; flex-direction: column; gap: 5px;
}
.act-stat-card span { font-size: 11.5px; color: var(--muted); }
.act-stat-card b { font-size: 20px; color: var(--primary-dark); line-height: 1.2; }
.act-stat-card b.small { font-size: 13px; word-break: break-all; }
.act-stats-section { margin-top: 18px; }
.act-stats-title { font-size: 14px; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
.act-stats-empty { font-size: 12.5px; color: var(--muted); padding: 10px 0; }
.act-stat-rows { display: flex; flex-direction: column; gap: 9px; }
.act-stat-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 2fr 52px; gap: 10px; align-items: center; font-size: 12.5px; }
.act-stat-label { color: #4a3d66; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-stat-track { height: 10px; border-radius: 99px; background: #f0eafa; overflow: hidden; }
.act-stat-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a855f7, #ec4899); }
.act-stat-row b { text-align: right; color: var(--primary-dark); font-size: 12px; }
.act-mood-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-mood-stat { border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px; background: #fff; }
.act-mood-stat.has { border-color: #f1cee5; background: #fff8fc; }
.act-mood-stat.zero { opacity: .55; }
.act-mood-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #4a3d66; }
.act-mood-stat-top b { color: #db2777; font-size: 12px; }
.act-mood-stat-track { height: 6px; border-radius: 99px; background: #f6edf5; margin-top: 6px; overflow: hidden; }
.act-mood-stat-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f472b6, #fbcfe8); }
.act-stats-note { margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) {
    .act-cell { min-height: 96px; }
    .act-cell-mood { font-size: 13px; max-width: 64px; }
    .act-tools { justify-content: stretch; }
    .act-tool-btn { flex: 1; }
    .act-stats-summary { grid-template-columns: 1fr 1fr; }
    .act-mood-stats { grid-template-columns: 1fr; }
    .act-stat-row { grid-template-columns: minmax(86px, 1fr) 1.6fr 42px; }
}

/* =========================================================
   相册：合集内内容排序
   ========================================================= */
.album-sort-entry {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 16px 0 18px; padding: 12px 14px; border-radius: 12px;
    background: #faf7ff; border: 1px dashed #ddd0f5;
}
.album-sort-entry-text { display: flex; flex-direction: column; gap: 3px; }
.album-sort-entry-text b { font-size: 13px; color: var(--deep); }
.album-sort-entry-text span { font-size: 11.5px; color: var(--muted); }
.album-sort-modal { max-width: 580px; width: 94%; }
.album-sort-tip { font-size: 12px; color: var(--muted); line-height: 1.65; margin: -2px 0 12px; }
.album-sort-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 54vh; overflow-y: auto; padding-right: 3px;
}
.album-sort-item {
    display: grid; grid-template-columns: 18px 48px 1fr 26px 58px;
    gap: 9px; align-items: center; padding: 7px 8px;
    background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
    transition: opacity .15s, border-color .15s, box-shadow .15s;
}
.album-sort-item:hover { border-color: #d8c8f4; }
.album-sort-item.dragging { opacity: .45; border-color: var(--primary); box-shadow: 0 6px 16px rgba(124,58,237,.15); }
.album-sort-handle { color: #b9a9d6; font-size: 13px; cursor: grab; text-align: center; user-select: none; }
.album-sort-thumb { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: #1c1724; display: flex; align-items: center; justify-content: center; }
.album-sort-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-sort-video { color: #e9ddff; font-size: 22px; }
.album-sort-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.album-sort-name b { font-size: 12.5px; color: #4a3d66; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-sort-name span { font-size: 10.5px; color: var(--muted); }
.album-sort-index { font-size: 11px; color: var(--muted); text-align: center; }
.album-sort-btns { display: flex; gap: 4px; }
.album-sort-btns button {
    flex: 1; border: 1px solid var(--border); background: #fcfaff; color: var(--primary-dark);
    border-radius: 7px; height: 28px; font-size: 13px; cursor: pointer; font-weight: 700;
}
.album-sort-btns button:hover { background: var(--primary-soft); border-color: var(--primary-light); }
@media (max-width: 600px) {
    .album-sort-entry { align-items: flex-start; flex-direction: column; }
    .album-sort-item { grid-template-columns: 16px 42px 1fr 22px 52px; gap: 7px; }
    .album-sort-thumb { width: 42px; height: 42px; }
}
.act-cell.selected .act-cell-mood { color: #fff; }
.act-cell.selected .act-mini-tag { background: rgba(255,255,255,.96); color: #5b21b6; border-color: transparent; }
.act-cell.selected .act-mini-more { background: rgba(255,255,255,.3); color: #fff; }

/* 活动日历：移动端把 7 列完整收进屏幕，不再横向裁掉星期天 */
@media (max-width: 600px) {
    .act-calendar-card { padding: 14px 10px; }
    .act-cal-scroll { overflow-x: visible; overflow-y: visible; padding-bottom: 0; }
    .act-cal-scroll .cal-grid { min-width: 0; width: 100%; gap: 3px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .act-cal-grid { gap: 3px; }
    .cal-weekrow { margin-bottom: 5px; }
    .cal-week { font-size: 11px; padding: 4px 0; }
    .act-cell { min-width: 0; min-height: 64px; padding: 3px; gap: 2px; border-radius: 8px; }
    .act-cell-date { font-size: 10px; padding-right: 0; gap: 2px; }
    .act-today-dot { width: 4px; height: 4px; }
    .act-cell-mood { right: 3px; top: 3px; max-width: 20px; font-size: 13px; line-height: 1; }
    .act-cell-mood .mood-name { display: none; }
    .act-cell-tags { gap: 2px; }
    .act-mini-tag { min-width: 0; max-width: 100%; font-size: 6.5px; padding: 0 2px; border-radius: 4px; line-height: 1.3; }
    .act-mini-tag .tag-emoji { display: none; }
    .act-cell.selected .act-mini-tag .tag-text { color: #5b21b6; }
}
.act-mini-tag .tag-short { display: none; }
@media (max-width: 600px) {
    .act-mini-tag { font-size: 7.5px; padding: 0 1px; }
    .act-mini-tag .tag-text { display: none; }
    .act-mini-tag .tag-short { display: inline; }
    .act-mini-tag .tag-emoji { display: none; }
    .act-cell.selected .act-mini-tag .tag-text,
    .act-cell.selected .act-mini-tag .tag-short { color: #5b21b6; }
}

/* 移动端简短标签：短文字 + 小图标；超长标签自动换行，不撑宽日历 */
@media (max-width: 600px) {
    .act-mini-tag .tag-emoji { display: inline; margin-left: 1px; }
    .act-mini-tag .tag-short { display: inline; }
    .act-mini-tag.tag-long {
        white-space: normal;
        word-break: break-all;
        line-height: 1.25;
    }
    .act-mini-tag.tag-long .tag-short,
    .act-mini-tag.tag-long .tag-emoji { display: inline; }
}
@media (max-width: 600px) {
    .act-mini-tag {
        display: inline-flex; align-items: center; gap: 1px;
        min-width: 0; max-width: 100%; white-space: nowrap;
        font-size: 7px;
    }
    .act-mini-tag .tag-short {
        display: block; min-width: 0; overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap;
    }
    .act-mini-tag .tag-emoji { display: inline-block; flex: 0 0 auto; margin-left: 0; }
    .act-mini-tag.tag-long { flex-wrap: wrap; align-content: flex-start; white-space: normal; }
    .act-mini-tag.tag-long .tag-short {
        overflow: visible; text-overflow: clip; white-space: normal;
        word-break: break-all; line-height: 1.25;
    }
}

/* 活动详情评论 */
.act-comment-block { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--border); }
.act-comment-block .comment-toggle { padding: 5px 10px 5px 0; }
.act-comment-block .comment-section { margin-top: 6px; }
.act-comment-block .comment-list { max-height: 280px; margin-bottom: 10px; }

/* 活动图片/视频：拖拽、粘贴上传区域 */
.act-drop-zone {
    min-height: 66px; padding: 9px 10px;
    border: 1.5px dashed #ddd0f5; border-radius: 14px;
    background: #fdfbff; transition: border-color .18s, background .18s, box-shadow .18s;
}
.act-drop-zone.dragover {
    border-color: var(--primary);
    background: #f5edff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.act-drop-hint {
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
    font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 4px 2px 0;
}
.act-drop-hint b { color: var(--primary); font-weight: 700; }

/* 活动：从相册复用图片/视频 */
.act-media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.act-album-modal { max-width: 720px; }
.act-album-body { min-height: 220px; }
.act-album-loading { text-align: center; color: var(--muted); padding: 55px 10px; font-size: 13px; }
.act-album-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.act-album-card {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 8px; border: 1px solid var(--border); border-radius: 14px;
    background: #fcfaff; cursor: pointer; transition: border-color .18s, background .18s;
}
.act-album-card:hover { border-color: var(--primary-light); background: #f8f2ff; }
.act-album-card-cover {
    width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
}
.act-album-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-album-card-meta { min-width: 0; flex: 1; }
.act-album-card-name { display: block; font-weight: 700; font-size: 13.5px; color: #3b2f55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-album-card-sub { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.act-album-card-badge { flex-shrink: 0; font-size: 12px; }
.act-album-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.act-album-back { border: none; background: var(--primary-soft); color: var(--primary-dark); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.act-album-current { font-size: 13px; color: var(--muted); }
.act-album-actions { display: flex; gap: 8px; margin-left: auto; }
.act-album-small { border: none; background: #f1edfa; color: var(--muted); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.act-album-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; max-height: 430px; overflow-y: auto; padding: 2px; }
.act-album-photo {
    position: relative; aspect-ratio: 1; width: 100%; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: 11px; background: #000; cursor: pointer;
}
.act-album-photo img, .act-album-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-album-photo .act-album-video-mark { position: absolute; left: 6px; bottom: 6px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 1px 4px; }
.act-album-photo .act-album-check {
    position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.9); color: transparent; font-size: 12px; font-weight: 900;
}
.act-album-photo.selected { border-color: var(--primary); }
.act-album-photo.selected .act-album-check { background: var(--primary); color: #fff; }
.act-album-empty { text-align: center; color: var(--muted); padding: 55px 10px; font-size: 13px; }
.act-album-unlock { max-width: 430px; margin: 14px auto 20px; text-align: center; }
.act-album-unlock-icon { font-size: 38px; }
.act-album-unlock-title { margin: 10px 0 5px; color: #3b2f55; font-size: 16px; font-weight: 700; }
.act-album-unlock-q { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.act-album-unlock-form { display: flex; flex-direction: column; gap: 9px; }
.act-album-unlock-input { width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; outline: none; background: #fcfaff; }
.act-album-unlock-input:focus { border-color: var(--primary-light); background: #fff; }
.act-album-unlock-btn { border: none; background: var(--gradient); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.act-album-unlock-error { color: #ef4444; font-size: 12px; min-height: 17px; }
.act-album-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.act-album-count { color: var(--muted); font-size: 12.5px; }
.act-album-add { border: none; background: var(--gradient); color: #fff; border-radius: 12px; padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.act-album-add:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) {
    .act-album-list { grid-template-columns: 1fr; }
    .act-album-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 330px; }
    .act-album-modal { width: 94%; }
    .act-album-actions { margin-left: 0; }
}

/* 活动：详细内容表情入口（放在文本框内部左下角） */
.act-content-editor { position: relative; }
.act-content-editor textarea.act-input { padding: 10px 12px 46px; }
.act-emoji-btn {
    border: none; background: var(--primary-soft); color: var(--primary-dark);
    border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .1s;
}
.act-emoji-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.act-emoji-inside {
    position: absolute; left: 10px; bottom: 10px;
    padding: 5px 10px; border-radius: 9px; font-size: 12px;
    background: #f7f2ff; border: 1px solid #e6d9fb;
    box-shadow: 0 2px 6px rgba(76,29,149,.08);
}
.act-emoji-inside:hover { background: var(--primary-soft); }

/* =========================================================
   动态 / 活动互相引用
   ========================================================= */
.ref-picker-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.ref-selected {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    padding: 6px 8px; border-radius: 10px; background: var(--primary-soft);
    border: 1px solid var(--primary-light); color: var(--primary-dark);
}
.ref-selected[hidden] { display: none; }
.ref-selected-label {
    font-size: 12px; line-height: 1.4; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-selected-clear {
    flex: 0 0 auto; width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: rgba(124,58,237,.14); color: var(--primary-dark); font-size: 14px;
    line-height: 1; cursor: pointer;
}
.ref-selected-clear:hover { background: rgba(124,58,237,.26); }

.ref-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d8c8f4; }
.ref-card {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 10px 11px; border: 1px solid #eee5fb; border-radius: 13px;
    background: linear-gradient(135deg, #fcfaff, #f7f1ff);
    color: inherit; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ref-card:hover { border-color: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,.10); }
.ref-card-thumb {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; overflow: hidden;
    background: #1c1724; display: flex; align-items: center; justify-content: center;
}
.ref-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-card-thumb-empty { color: #e9ddff; font-size: 20px; }
.ref-card-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ref-card-badge { font-size: 10.5px; color: var(--primary); font-weight: 700; letter-spacing: .02em; }
.ref-card-title { font-size: 12.5px; color: #4a3d66; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-card-text { font-size: 11.5px; color: var(--muted); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-card-arrow { flex: 0 0 auto; color: var(--primary); font-size: 16px; font-weight: 700; }

.ref-picker-modal { max-width: 620px; width: 94%; }
.ref-picker-tip { font-size: 12px; color: var(--muted); line-height: 1.65; margin: -2px 0 12px; }
.ref-picker-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding-right: 3px; }
.ref-option {
    width: 100%; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px;
    background: #fff; color: inherit; transition: border-color .18s, background .18s;
}
.ref-option:hover { border-color: var(--primary-light); background: var(--primary-soft); }
.ref-option-title { font-size: 12.5px; color: #4a3d66; font-weight: 700; }
.ref-option-text { font-size: 11.5px; color: var(--muted); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-picker-empty { padding: 24px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
@media (max-width: 600px) {
    .ref-card-thumb { flex-basis: 36px; width: 36px; height: 36px; }
    .ref-card-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .ref-picker-list { max-height: 50vh; }
}

/* =========================================================
   移动端体验优化：顶部导航、页头与评论输入框
   ========================================================= */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(250,245,255,.96) 100%);
        border-bottom: none;
        box-shadow: 0 6px 22px rgba(76, 29, 149, .08);
    }
    .nav-inner { height: 68px; padding: 0 14px; }
    .nav-brand { gap: 9px; min-width: 0; }
    .brand-icon {
        width: 38px; height: 38px; flex: 0 0 38px;
        display: grid; place-items: center;
        border-radius: 12px; background: var(--gradient); color: #fff;
        font-size: 19px; box-shadow: 0 5px 14px rgba(124,58,237,.28);
    }
    .brand-text {
        font-size: 15px; line-height: 1.2; max-width: 190px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .nav-toggle {
        display: flex; width: 40px; height: 40px; flex: 0 0 40px;
        align-items: center; justify-content: center; gap: 5px;
        padding: 9px 8px; border: 1px solid #e8def7; border-radius: 12px;
        background: #fff; box-shadow: 0 3px 10px rgba(76, 29, 149, .07);
    }
    .nav-toggle span { width: 20px; height: 2px; background: var(--primary-dark); }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-menu {
        top: 76px; left: 10px; right: 10px;
        padding: 10px; gap: 2px;
        border: 1px solid #eee5fb; border-radius: 18px;
        background: rgba(255,255,255,.985);
        box-shadow: 0 20px 46px rgba(60, 20, 100, .18);
        max-height: calc(100vh - 92px); overflow-y: auto;
    }
    .nav-menu.open { animation: navDrop .24s ease both; }
    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-7px) scale(.985); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .nav-link { padding: 11px 13px; border-radius: 12px; font-size: 14px; }
    .nav-user { margin-top: 6px; padding: 9px 12px; border-radius: 12px; background: #fcfaff; }
    .nav-avatar { width: 30px; height: 30px; }
    .nav-logout { padding: 11px 13px; }

    .hero { min-height: 190px; border-radius: 0 0 24px 24px; margin-bottom: 10px; }
    .page-head { padding: 26px 0 24px; margin-bottom: 18px; border-radius: 0 0 22px 22px; }
    .page-title { font-size: 23px; }
    .page-desc { font-size: 13px; }
    .top-dock { margin: 12px 0 4px; padding: 8px; border-radius: 16px; }

    /* 评论输入框默认给足 4 行，避免只能看到一两行 */
    .comment-input { min-height: 92px; }
    .comment-edit-box .ce-text { min-height: 88px; }
}

/* 移动端话题广场：双列紧凑卡片，避免一屏只能看到 4 个话题 */
@media (max-width: 768px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .topic-card-box { padding: 13px 12px; border-radius: 14px; }
    .topic-hash { top: -4px; right: 4px; font-size: 38px; opacity: .75; }
    .topic-card-name {
        font-size: 15px; line-height: 1.35; padding-right: 20px;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .topic-card-cnt { display: inline-block; font-size: 11.5px; margin-top: 5px; }
    .topic-card-time { display: inline-block; font-size: 11px; margin-left: 5px; margin-top: 5px; }
    .album-move-bar { align-items: flex-start; padding: 10px 11px; gap: 8px; }
    .album-move-form { width: 100%; margin-left: 0; }
    .album-move-select { flex: 1; min-width: 0; }
    .topic-card-foot { margin-top: 8px; padding-top: 7px; gap: 5px; flex-wrap: wrap; }
    .topic-pinned-badge { font-size: 10px; padding: 2px 6px; }
    .topic-pin-btn, .topic-delete-btn { padding: 4px 8px; font-size: 11px; }
}

/* 活动日历电脑端：让简短内容更直观、字号更大 */
@media (min-width: 601px) {
    .act-cell {
        min-height: 118px;
        padding: 8px 7px 9px;
        gap: 5px;
    }
    .act-cell-date { font-size: 14px; }
    .act-cell-mood { font-size: 16px; top: 6px; right: 7px; max-width: 92px; }
    .act-cell-tags { width: 100%; gap: 4px; }
    .act-mini-tag {
        display: flex;
        align-items: center;
        gap: 3px;
        width: 100%;
        max-width: 100%;
        padding: 4px 7px;
        border-radius: 7px;
        background: #fff;
        border: 1px solid #e3d5fb;
        color: #6d28d9;
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.35;
        box-shadow: 0 1px 2px rgba(124, 58, 237, .05);
    }
    .act-mini-tag .tag-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .act-mini-tag .tag-emoji { flex: 0 0 auto; margin-left: 1px; font-size: 13px; }
    .act-mini-tag.act-mini-more {
        width: auto;
        align-self: flex-start;
        padding: 2px 7px;
        background: #ede9fe;
        border-color: transparent;
        color: var(--primary-dark);
        font-size: 10.5px;
    }
    .act-cell-count {
        right: 7px;
        bottom: 5px;
        padding: 1px 4px;
        border-radius: 5px;
        background: rgba(255, 255, 255, .82);
        font-size: 10px;
    }
    .act-cell.selected .act-mini-tag {
        background: rgba(255, 255, 255, .96);
        color: #5b21b6;
        border-color: transparent;
    }
    .act-cell.selected .act-cell-count {
        background: rgba(255, 255, 255, .9);
        color: #6d28d9;
    }
}

/* =========================================================
   活动日历手机端 v3：月历只显示日期/心情/圆点，
   点日期从底部抽屉看当天内容，日历下方提供本月活动列表
   ========================================================= */
.act-cell-dots { display: none; }
.act-cal-mobile-tip { display: none; }
.act-month-list { display: none; }
.act-day-backdrop { display: none; }
.act-day-strip { display: none; }
.act-day-sheet-top { display: none; }

@media (max-width: 600px) {
    .act-cell {
        min-height: 68px;
        padding: 5px 4px 5px;
    }
    .act-cell-date { font-size: 11.5px; }
    .act-cell-mood { font-size: 13px; right: 4px; top: 4px; max-width: 20px; }
    .act-cell-tags {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
    }
    .act-cell-count { display: none; }
    .act-cell-dots { display: none; }

    .act-cal-mobile-tip { display: inline; color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
    .act-month-list {
        display: block;
        margin-top: 14px;
    }
    .act-month-list-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 0 2px 8px;
    }
    .act-month-list-head b { font-size: 14.5px; color: var(--text); }
    .act-month-list-head span { font-size: 11.5px; color: var(--muted); }
    .act-month-empty {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 13px;
        padding: 18px 14px;
        color: var(--muted);
        font-size: 12.5px;
        text-align: center;
    }
    .act-month-row {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 13px;
        padding: 10px;
        margin-bottom: 8px;
        text-decoration: none;
        color: inherit;
    }
    .act-month-date {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 11px;
        background: var(--primary-soft);
        color: var(--primary-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .act-month-date b { font-size: 16px; line-height: 1; }
    .act-month-date small { margin-top: 3px; font-size: 10px; color: var(--muted); }
    .act-month-main { flex: 1; min-width: 0; }
    .act-month-tags { display: flex; flex-wrap: wrap; gap: 4px; }
    .act-month-tag {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        max-width: 100%;
        padding: 2px 6px;
        border-radius: 5px;
        background: #f6f0ff;
        color: #6d28d9;
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .act-month-tag i { font-style: normal; }
    .act-month-tag-more { background: #f2eefb; color: var(--muted); }
    .act-month-sub { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
    .act-month-arrow { color: var(--primary-light); font-size: 22px; line-height: 1; }

    .act-day-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(46, 35, 69, .48);
        z-index: 140;
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .act-day-backdrop.is-open { opacity: 1; visibility: visible; }
    .act-day-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        max-height: 86vh;
        max-height: 86dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: var(--bg);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 32px rgba(76, 29, 149, .18);
        transform: translateY(102%);
        visibility: hidden;
        transition: transform .24s ease, visibility .24s ease;
    }
    .act-day-panel.is-open { transform: translateY(0); visibility: visible; }
    .act-day-panel.is-empty { display: none; }
    .act-day-sheet-top {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        flex: 0 0 auto;
        padding: 14px 14px 6px;
    }
    .act-day-sheet-handle {
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: #d8c7f3;
    }
    .act-day-sheet-label { font-size: 12px; font-weight: 700; color: var(--muted); }
    .act-day-share {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        margin-left: auto;
        padding: 6px 11px;
        border: none;
        border-radius: 999px;
        background: var(--gradient);
        color: #fff;
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(124, 58, 237, .25);
        white-space: nowrap;
    }
    .act-day-share:disabled { opacity: .65; }
    .act-day-close {
        margin-left: 0;
        width: 30px;
        height: 30px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: var(--primary-dark);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(76, 29, 149, .1);
    }
    .act-day-strip {
        display: flex;
        gap: 3px;
        flex: 0 0 auto;
        width: calc(100% - 20px);
        margin: 0 10px;
        padding: 0 0 8px;
        position: relative;
        z-index: 2;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: linear-gradient(180deg, #f6f3fc 0%, rgba(246, 243, 252, .96) 78%, rgba(246, 243, 252, 0) 100%);
    }
    .act-day-strip::-webkit-scrollbar { display: none; }
    .act-strip-cell {
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 calc((100% - 18px) / 7);
        width: calc((100% - 18px) / 7);
        min-width: 0;
        scroll-snap-align: start;
        text-align: left;
        border: 1px solid var(--border);
        background: #faf8ff;
        color: var(--text);
        font: inherit;
    }
    .act-strip-cell.is-active {
        background: var(--gradient);
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(124, 58, 237, .24);
    }
    /* 抽屉中间层必须也是 flex 容器，否则内部 .act-list 的 flex/overflow 不生效，
       长内容会被面板的 overflow:hidden 裁掉，评论输入框也就看不到 */
    #actDayContent {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    .act-day-panel .act-day-head {
        margin: 0;
        padding: 8px 14px 10px;
        flex: 0 0 auto;
        align-items: center;
    }
    .act-day-panel .act-day-title { font-size: 18px; }
    .act-day-panel .act-day-sub { margin-top: 3px; font-size: 11.5px; }
    .act-day-panel .act-list {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 12px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        gap: 12px;
    }
    .act-day-panel .act-list.is-loading { opacity: .55; pointer-events: none; }
    body.act-sheet-open { overflow: hidden; }
}

/* 手机端所有多行文本框：右下角显示可拖动的手柄（触摸拖动调高） */
@media (max-width: 600px) {
    textarea {
        resize: none !important;
        background-image: linear-gradient(135deg,
            transparent 0 10px,
            rgba(124, 58, 237, .38) 10px 11px,
            transparent 11px 13px,
            rgba(124, 58, 237, .38) 13px 14px,
            transparent 14px) !important;
        background-repeat: no-repeat !important;
        background-position: right 4px bottom 4px !important;
        background-size: 18px 18px !important;
    }
    textarea.is-resizing {
        outline: 1.5px solid var(--primary-light);
        outline-offset: 1px;
    }
}

/* =========================================================
   💞 一起：完成的小事 / 时光胶囊 / 回忆
   ========================================================= */
.together-tabs { margin-bottom: 18px; }

.together-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #fbf7ff 65%, #f3e8ff 100%);
    border-color: #e6dcf8;
}
.together-hero::after {
    content: '💞'; position: absolute; right: 18px; bottom: -14px;
    font-size: 68px; opacity: .10; pointer-events: none; transform: rotate(-8deg);
}
.together-hero-copy { position: relative; z-index: 1; min-width: 0; }
.together-kicker {
    display: inline-block; padding: 5px 12px; border-radius: 30px;
    background: var(--primary-soft); color: var(--primary-dark);
    font-size: 12.5px; font-weight: 700; margin-bottom: 12px;
}
.together-hero h2 { color: var(--deep); font-size: clamp(18px, 3vw, 25px); line-height: 1.35; margin-bottom: 8px; }
.together-hero p { color: var(--muted); font-size: 13.5px; max-width: 620px; }
.together-score { text-align: center; flex: 0 0 auto; position: relative; z-index: 1; padding: 4px 6px 0; }
.together-score-num { color: var(--primary); font-size: 34px; line-height: 1; font-weight: 800; }
.together-score-num span { color: var(--muted); font-size: 16px; font-weight: 600; }
.together-score-label { color: var(--muted); font-size: 12px; margin-top: 5px; }

.together-progress { height: 8px; background: #ede9fe; border-radius: 20px; overflow: hidden; margin: -10px 8px 22px; }
.together-progress span { display: block; height: 100%; border-radius: 20px; background: var(--gradient); transition: width .4s; }

.together-toolbar {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 14px; flex-wrap: nowrap;
}
.together-search {
    flex: 1 1 auto; min-width: 0; height: 42px;
    display: flex; align-items: center; gap: 6px;
    padding: 0 6px 0 12px; background: #fff;
    border: 1.5px solid var(--border); border-radius: 12px;
    box-shadow: 0 3px 12px rgba(76,29,149,.04);
    transition: border-color .2s, box-shadow .2s;
}
.together-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.together-search input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    font: inherit; font-size: 13.5px; color: var(--text);
}
.together-search input::placeholder { color: #a99ac0; }
.together-search button {
    flex: 0 0 auto; border: 0; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary-dark);
    font: inherit; font-size: 12px; font-weight: 700;
    padding: 7px 11px; cursor: pointer; transition: .2s;
}
.together-search button:hover { background: #e6dcff; }
.together-add-toggle {
    flex: 0 0 auto; height: 42px; display: inline-flex; align-items: center;
    justify-content: center; gap: 3px; white-space: nowrap;
    padding: 0 14px; border: 0; border-radius: 12px;
    background: var(--gradient); color: #fff;
    font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; box-shadow: 0 6px 16px rgba(124,58,237,.2);
    transition: transform .2s, box-shadow .2s;
}
.together-add-toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124,58,237,.26); }
.together-add-toggle[aria-expanded="true"] { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary-light); box-shadow: none; }
.together-add[hidden], .capsule-compose[hidden] { display: none !important; }

.together-add { padding: 16px 18px; }
.together-add-form { display: flex; align-items: center; gap: 12px; }
.together-add-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.together-add-fields input {
    width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
    background: #fcfaff; padding: 11px 13px; font: inherit; font-size: 13.5px; color: var(--text);
    outline: none; transition: .2s;
}
.together-add-fields input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.1); background: #fff; }
.together-add .btn-primary { flex: 0 0 auto; }

.together-section { margin-top: 28px; }
.together-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 4px 13px; flex-wrap: wrap; }
.together-section-title h3 { color: var(--deep); font-size: 17px; font-weight: 800; }
.together-section-title p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.task-batch-toggle {
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    padding: 7px 13px; border: 1px solid #e2d4f7; border-radius: 999px;
    background: #faf7ff; color: #6d28d9; font: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: .18s;
}
.task-batch-toggle:hover, .task-batch-toggle.on { background: var(--primary-soft); border-color: #d3bff3; }
.task-batch-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 0 4px 11px; padding: 9px 11px; background: #faf7ff;
    border: 1px solid #e7dcf9; border-radius: 13px;
}
.task-batch-bar[hidden] { display: none !important; }
.task-batch-count { color: #6d28d9; font-size: 12px; font-weight: 700; margin-right: 2px; }
.task-batch-all { display: inline-flex; align-items: center; gap: 5px; color: #6f628a; font-size: 12px; cursor: pointer; }
.task-batch-all-check, .task-batch-check { width: 18px; height: 18px; accent-color: #7c3aed; cursor: pointer; }
.task-batch-btn {
    padding: 5px 10px; border: 1px solid #d9c7f6; border-radius: 9px;
    background: #fff; color: #6d28d9; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
    transition: .18s;
}
.task-batch-btn:hover:not(:disabled) { background: #f3ebff; border-color: #c4a9ef; }
.task-batch-btn:disabled { opacity: .45; cursor: default; }
.task-batch-delete { color: #b04570; border-color: #f0d2df; }
.task-batch-delete:hover:not(:disabled) { background: #fdf2f7; border-color: #e7b7cc; }
.task-batch-cancel {
    border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px;
    padding: 5px 6px; cursor: pointer;
}
.task-batch-cancel:hover { color: var(--primary); }
.together-count {
    display: inline-flex; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 4px;
    align-items: center; justify-content: center; border-radius: 20px;
    background: var(--primary-soft); color: var(--primary); font-size: 12px; vertical-align: 1px;
}
.together-empty { padding: 38px 16px; background: #fff; border-radius: 16px; border: 1px dashed #e1d6f6; }
.together-empty .empty-icon { font-size: 34px; margin-bottom: 6px; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 15px 17px; box-shadow: 0 5px 18px rgba(76,29,149,.055);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.task-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(124,58,237,.12); border-color: #ddcff5; }
.task-card.is-done { background: linear-gradient(180deg, #fff 0%, #fcfaff 100%); opacity: .92; }
.task-card.is-pinned { border-color: #d8c7f3; box-shadow: 0 7px 22px rgba(124,58,237,.1); }
.task-card.is-done.is-pinned { opacity: 1; }
.task-done-field[hidden] { display: none; }
.task-toggle { flex: 0 0 auto; margin-top: 2px; }
.task-check {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #d8c7f3;
    color: var(--primary); background: #fff; cursor: pointer; font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; transition: .18s;
}
.task-check:hover { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.06); }
.task-card.is-done .task-check { border-color: transparent; background: var(--gradient); color: #fff; box-shadow: 0 5px 14px rgba(124,58,237,.3); }
.task-body { flex: 1; min-width: 0; }
.task-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-title { color: var(--deep); font-size: 15px; line-height: 1.45; margin-bottom: 2px; }
.task-pin-badge {
    display: inline-flex; align-items: center; border-radius: 20px; padding: 3px 8px;
    background: #f3e8ff; border: 1px solid #e2d0fa; color: #6d28d9;
    font-size: 10.5px; font-weight: 700; line-height: 1.2;
}
.task-card.is-done .task-title { color: #4c1d95; }
.task-note { color: #6f628a; font-size: 12.5px; line-height: 1.6; margin: 5px 0 2px; white-space: pre-wrap; }
.task-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; margin-top: 8px; flex-wrap: wrap; }
.task-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #ede9fe; }
.task-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; margin-top: 1px; }
.task-actions button, .capsule-actions button, .memory-again {
    border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 12px;
    padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.task-actions button:hover, .capsule-actions button:hover, .memory-again:hover { background: var(--primary-soft); }
.task-actions .task-edit {
    color: #6d28d9 !important; background: #f6f0ff !important;
    border: 1px solid #e4d6fb !important; border-radius: 9px;
    padding: 5px 11px; font-size: 11.5px; font-weight: 700;
}
.task-actions .task-edit:hover { background: #ede4ff !important; border-color: #d3bdf3 !important; }
.task-actions .task-del {
    color: #b45a7c !important; background: #fff5f8 !important;
    border: 1px solid #f3d6e3 !important; border-radius: 9px;
    padding: 5px 11px; font-size: 11.5px; font-weight: 700;
}
.task-actions .task-del:hover { background: #fdf0f6 !important; border-color: #e9c0d2 !important; }
.task-select { display: none; flex: 0 0 auto; align-items: center; justify-content: center; padding: 5px; margin-top: 1px; }
.together-section.is-batch .task-select { display: inline-flex; }
.together-section.is-batch .task-actions { display: none; }
.task-card.is-selected { border-color: #c4b5fd; background: #fbf8ff; box-shadow: 0 6px 20px rgba(124,58,237,.12); }
.task-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 0);
    z-index: 2000; max-width: calc(100vw - 32px); padding: 10px 16px;
    border-radius: 12px; background: #4c1d95; color: #fff;
    font-size: 12.5px; font-weight: 600; line-height: 1.5;
    box-shadow: 0 10px 30px rgba(76,29,149,.25); transition: .25s;
}
.task-toast.is-error { background: #9f1239; }
.task-toast.is-hide { opacity: 0; transform: translate(-50%, 8px); }
.anniv-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 0);
    z-index: 2000; max-width: calc(100vw - 32px); padding: 10px 16px;
    border-radius: 12px; background: #4c1d95; color: #fff;
    font-size: 12.5px; font-weight: 600; line-height: 1.5;
    box-shadow: 0 10px 30px rgba(76,29,149,.25); transition: .25s;
}
.anniv-toast.is-error { background: #9f1239; }
.anniv-toast.is-hide { opacity: 0; transform: translate(-50%, 8px); }

.together-modal { max-width: 500px; }
.together-label { display: block; margin-top: 12px; color: var(--deep); font-size: 13px; font-weight: 700; }
.together-label input, .together-label textarea {
    display: block; width: 100%; margin-top: 7px; border: 1.5px solid var(--border);
    border-radius: 12px; padding: 11px 12px; background: #fcfaff;
    font: inherit; font-size: 13.5px; color: var(--text); outline: none; resize: vertical;
}
.together-label input:focus, .together-label textarea:focus {
    border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.1); background: #fff;
}

/* 时光胶囊 */
.capsule-hero .capsule-stats { display: flex; gap: 22px; text-align: center; flex: 0 0 auto; position: relative; z-index: 1; }
.capsule-stats b { display: block; color: var(--primary); font-size: 27px; line-height: 1.1; }
.capsule-stats span { color: var(--muted); font-size: 11.5px; }
.capsule-compose { padding: 20px 22px; }
.capsule-compose-head h3 { color: var(--deep); font-size: 16px; }
.capsule-compose-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.capsule-form { margin-top: 13px; }
.capsule-form-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.capsule-date-field { color: var(--deep); font-size: 13px; font-weight: 700; }
.capsule-date-field input {
    display: block; margin-top: 7px; border: 1.5px solid var(--border); border-radius: 12px;
    padding: 9px 11px; font: inherit; font-size: 13px; color: var(--text); background: #fcfaff; outline: none;
}
.capsule-date-field input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.capsule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.capsule-card {
    position: relative; overflow: hidden; background: #fff; border-radius: 18px;
    border: 1px solid var(--border); box-shadow: var(--shadow); padding: 18px 18px 14px;
    display: flex; flex-direction: column; min-height: 178px;
}
.capsule-card.is-sealed { background: linear-gradient(160deg, #fbf8ff 0%, #f2ebff 100%); border-color: #e2d5f7; }
.capsule-card.is-open { background: linear-gradient(160deg, #fff 0%, #fdf9ff 100%); }
.capsule-seal {
    position: absolute; right: 15px; top: 13px; font-size: 28px; opacity: .55;
    filter: grayscale(.15); transform: rotate(-7deg);
}
.capsule-card-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-right: 34px; }
.capsule-chip {
    display: inline-block; background: #ede9fe; color: var(--primary-dark);
    border-radius: 20px; padding: 3px 9px; font-size: 10.5px; font-weight: 700;
}
.capsule-chip.is-open { background: #fdf2f8; color: #a83f74; }
.capsule-date { color: var(--muted); font-size: 11px; }
.capsule-title { color: var(--deep); font-size: 17px; line-height: 1.4; margin-top: 12px; }
.capsule-countdown { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.capsule-countdown b { color: var(--primary); font-size: 18px; }
.capsule-content { color: #53446d; font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; margin-top: 10px; }
.capsule-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; margin-top: 14px; flex-wrap: wrap; }
.capsule-actions { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; }
.capsule-source { display: none; }
.capsule-source textarea { display: none; }

/* 回忆 */
.memory-hero .memory-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; position: relative; z-index: 1; }
.memory-total { text-align: right; color: var(--muted); font-size: 11.5px; }
.memory-total b { display: block; color: var(--primary); font-size: 32px; line-height: 1; }
.memory-random-btn { padding: 9px 17px; font-size: 13px; white-space: nowrap; }
.memory-random-slot { margin-top: 16px; }
.memory-random-slot[hidden] { display: none; }
.memory-random-slot .memory-random-section { margin-top: 0; }
.memory-random-section { margin-top: 24px; }
.memory-again {
    padding: 6px 12px; font-size: 12px; font-weight: 700;
    border: 1px solid #e4d6fb; border-radius: 999px;
    background: #f6f0ff; color: #6d28d9;
}
.memory-again:hover { background: #ede2ff; }
.memory-return-btn {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 16px; padding: 9px 18px; border-radius: 999px;
    background: linear-gradient(135deg, #6d28d9, #a855f7); color: #fff;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    box-shadow: 0 6px 16px rgba(109, 40, 217, .22);
    transition: transform .18s, box-shadow .18s;
}
.memory-return-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(109, 40, 217, .3); }
.memory-return-btn span { font-size: 16px; line-height: 1; }
.memory-feature-card {
    display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 0; overflow: hidden;
    background: #fff; border-radius: 20px; border: 1px solid #e7ddf8; box-shadow: var(--shadow);
}
.memory-feature-thumb { position: relative; min-height: 220px; background: #f5f0ff; }
.memory-feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-feature-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.memory-feature-meta, .memory-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.memory-year {
    background: var(--gradient); color: #fff; border-radius: 8px; padding: 3px 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.memory-type { color: var(--primary-dark); font-size: 11.5px; font-weight: 700; }
.memory-date { color: var(--muted); font-size: 11px; }
.memory-feature-text { color: #4b3c66; font-size: 14.5px; line-height: 1.8; margin: 14px 0 16px; white-space: pre-wrap; }
.memory-feature-body .memory-card-meta { margin-top: auto; color: var(--muted); font-size: 12px; }
.memory-link { margin-top: 14px; color: var(--primary); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.memory-link:hover { text-decoration: underline; }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.memory-card { background: #fff; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.memory-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.memory-card-link { display: block; color: inherit; text-decoration: none; }
.memory-thumb { position: relative; aspect-ratio: 16/9; background: #f5f0ff; overflow: hidden; }
.memory-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-video-mark {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 35px; height: 35px; border-radius: 50%; background: rgba(76,29,149,.62);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.memory-card-body { padding: 15px 16px 14px; }
.memory-text { color: #55456f; font-size: 13px; line-height: 1.65; margin: 9px 0 12px; }
.memory-card-meta { color: var(--muted); font-size: 11.5px; }

@media (max-width: 760px) {
    .together-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
    .together-score { text-align: left; display: flex; align-items: baseline; gap: 8px; }
    .together-score-num { font-size: 28px; }
    .together-toolbar { gap: 7px; margin-bottom: 12px; }
    .together-search { height: 40px; padding: 0 5px 0 10px; gap: 4px; }
    .together-search input { font-size: 12.5px; }
    .together-search button { padding: 6px 9px; font-size: 11.5px; }
    .together-add-toggle { height: 40px; padding: 0 10px; font-size: 11.5px; }
    .together-add-form { flex-direction: column; align-items: stretch; }
    .together-add-fields { grid-template-columns: 1fr; }
    .together-add .btn-primary { width: 100%; }
    .task-card { padding: 13px 12px; gap: 10px; }
    .task-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .task-batch-bar { padding: 8px 9px; gap: 6px; }
    .notify-grid { grid-template-columns: 1fr; gap: 0; }
    .notify-key-grid { grid-template-columns: 1fr; gap: 0; }
    .guard-grid { grid-template-columns: 1fr; gap: 0; }
    .backup-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .backup-actions { width: 100%; }
    .wechat-toggle-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .notify-actions .btn-primary, .notify-actions .btn-ghost { flex: 1 1 auto; }
    .capsule-hero .capsule-stats { margin-top: 4px; }
    .memory-grid { grid-template-columns: 1fr; }
    #capsuleOpenSection .capsule-grid { grid-template-columns: 1fr; }
    #capsuleSealedSection .capsule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #capsuleSealedSection .capsule-card {
        min-height: 0; padding: 12px 11px 10px; border-radius: 14px;
    }
    #capsuleSealedSection .capsule-card-head { gap: 4px; padding-right: 0; }
    #capsuleSealedSection .capsule-chip { font-size: 9.5px; padding: 2px 7px; }
    #capsuleSealedSection .capsule-date { font-size: 10px; line-height: 1.3; }
    #capsuleSealedSection .capsule-title {
        font-size: 14px; line-height: 1.35; margin-top: 8px;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
        overflow: hidden; word-break: break-word;
    }
    #capsuleSealedSection .capsule-countdown-row { gap: 4px; margin-top: 4px; }
    #capsuleSealedSection .capsule-countdown { font-size: 11px; }
    #capsuleSealedSection .capsule-countdown b { font-size: 14px; }
    #capsuleSealedSection .capsule-actions.is-countdown { gap: 4px; }
    #capsuleSealedSection .capsule-actions.is-countdown .capsule-edit,
    #capsuleSealedSection .capsule-actions.is-countdown .task-del {
        padding: 3px 6px; font-size: 10.5px; border-radius: 7px;
    }
    #capsuleSealedSection .capsule-meta { font-size: 10px; gap: 4px; margin-top: 8px; }
    #capsuleSealedSection .task-avatar { width: 16px; height: 16px; }
    #capsuleSealedSection .capsule-seal { font-size: 18px; right: 9px; bottom: 7px; opacity: .25; }
    .memory-feature-card { grid-template-columns: 1fr; }
    .memory-feature-thumb { min-height: 170px; max-height: 230px; }
    .memory-hero .memory-hero-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .memory-total { text-align: left; }
    .memory-total b { display: inline; margin-right: 4px; font-size: 24px; }
    .together-section-head p { display: none; }
}
.memory-feature-card.no-thumb { grid-template-columns: 1fr; }

/* ===== 时光胶囊全功能文本框 ===== */
.capsule-editor-tools { margin-top: 10px; }
.capsule-upload-progress {
    display: none; align-items: center; gap: 10px; margin-top: 12px;
    padding: 9px 12px; background: #fbf6ff; border: 1px solid #eee2fb; border-radius: 12px;
}
.capsule-upload-progress.show { display: flex; }
.capsule-upload-progress > div { flex: 1; height: 7px; background: #ede4fb; border-radius: 6px; overflow: hidden; }
.capsule-upload-progress > div span { display: block; width: 0; height: 100%; background: var(--gradient); border-radius: 6px; transition: width .18s; }
.capsule-upload-progress b { color: var(--primary-dark); font-size: 12px; min-width: 38px; text-align: right; }
.capsule-form-error { color: #c0266d; font-size: 12.5px; line-height: 1.6; margin-top: 8px; }
.capsule-form-error:empty { display: none; }
#capsuleComposeForm.media-dragging,
#capsuleEditForm.media-dragging {
    border-radius: 16px; box-shadow: 0 0 0 3px rgba(124,58,237,.18); background: #fbf6ff;
}
.capsule-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.capsule-media-grid img, .capsule-media-grid video {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    border-radius: 12px; background: #f2ecfb;
}
.capsule-media-grid video { object-fit: contain; }

/* ===== 年度回忆报告 ===== */
.annual-report { margin-top: 24px; padding: 26px; }
.annual-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.annual-head-copy h2 { color: var(--deep); font-size: 23px; margin: 6px 0 6px; }
.annual-head-copy p { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 520px; }
.annual-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.annual-year-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.annual-year-form select {
    appearance: none; -webkit-appearance: none; min-width: 126px; height: 38px;
    padding: 0 32px 0 12px; border-radius: 11px; border: 1px solid #e3d7f6;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path fill='%237c3aed' d='M7 10l5 5 5-5z'/></svg>") no-repeat right 11px center;
    color: var(--deep); font-size: 13px; font-weight: 700; outline: none;
}
.annual-year-form select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.annual-generate { white-space: nowrap; }
.annual-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.annual-stat { background: linear-gradient(160deg, #fbf7ff, #f4ecff); border: 1px solid #e9defb; border-radius: 16px; padding: 14px 16px; }
.annual-stat b { display: block; color: var(--primary); font-size: 30px; line-height: 1.15; }
.annual-stat span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.annual-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.annual-block { background: #fff; border: 1px solid #eee5fa; border-radius: 16px; padding: 16px 18px; }
.annual-block h3 { color: var(--deep); font-size: 15px; margin-bottom: 3px; }
.annual-block h3 small { color: var(--muted); font-size: 11px; font-weight: 500; margin-left: 4px; }
.annual-none { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 9px; }
.annual-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.annual-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 18px; background: #f5efff; color: var(--primary-dark); font-size: 12px; font-weight: 600; }
.annual-chip b { background: #fff; border-radius: 12px; padding: 0 6px; color: var(--primary); font-size: 11px; }
.annual-wall-block { margin-top: 14px; }
.annual-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.annual-wall-item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #f2ecfb; }
.annual-wall-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.annual-wall-item .memory-video-mark { width: 30px; height: 30px; font-size: 12px; }
.annual-empty { margin-top: 18px; }

/* ===== 年度海报弹窗 ===== */
.annual-poster-modal { max-width: 660px; width: 94%; }
.annual-poster-wrap { max-height: 64vh; overflow: auto; background: #f2ecfb; border-radius: 14px; padding: 10px; }
#annualPosterCanvas, #annualPosterImage { width: 100%; height: auto; display: block; border-radius: 10px; }
#annualPosterCanvas[hidden], #annualPosterImage[hidden] { display: none !important; }
.annual-poster-tip { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 10px 2px 12px; }

@media (max-width: 760px) {
    .capsule-editor-tools { gap: 6px; }
    .capsule-editor-tools .img-tip { display: none; }
    .capsule-media-grid { grid-template-columns: 1fr 1fr; }
    .annual-report { padding: 18px; }
    .annual-head { flex-direction: column; gap: 12px; }
    .annual-head-copy h2 { font-size: 20px; }
    .annual-controls { width: 100%; justify-content: space-between; }
    .annual-year-form { flex: 0 0 auto; }
    .annual-generate { flex: 1; }
    .annual-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .annual-stat { padding: 12px 13px; }
    .annual-stat b { font-size: 26px; }
    .annual-notes { grid-template-columns: 1fr; gap: 10px; }
    .annual-block { padding: 14px; }
    .annual-wall { grid-template-columns: repeat(3, 1fr); }
    .annual-poster-modal { width: 100%; max-width: none; }
    .annual-poster-wrap { max-height: 68vh; padding: 6px; }
}

@media (max-width: 760px) {
    .capsule-form-foot .btn-primary { width: 100%; }
}

/* 后台菜单排序 */
.menu-order-card { margin-top: 18px; }
.menu-order-hint { margin-top: 2px; margin-bottom: 14px; font-size: 12.5px; }
.menu-order-form .menu-order-groups {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start;
}
.menu-order-group {
    background: #fbf8ff; border: 1px solid #ece2fa; border-radius: 14px; padding: 14px;
}
.menu-order-group h4 { color: var(--deep); font-size: 13.5px; }
.menu-order-group-hint { color: var(--muted); font-size: 11.5px; line-height: 1.7; margin-top: 3px; min-height: 38px; }
.menu-order-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.menu-order-row {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid #e9dff7; border-radius: 9px; padding: 8px 9px;
}
.menu-order-grip { color: #b8a8cf; font-size: 12px; letter-spacing: -1px; }
.menu-order-label { flex: 1; min-width: 0; color: var(--deep); font-size: 12.5px; font-weight: 600; }
.menu-order-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.menu-order-actions button {
    width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 7px;
    background: #fff; color: var(--primary); font-size: 13px; line-height: 1; cursor: pointer;
}
.menu-order-actions button:hover { background: var(--primary-soft); border-color: var(--primary-light); }
.menu-order-form > .btn-primary { margin-top: 16px; }

@media (max-width: 760px) {
    .menu-order-form .menu-order-groups { grid-template-columns: 1fr; }
    .menu-order-group-hint { min-height: 0; }
}

/* ================= 全站日期选择器 ================= */
.date-field { position: relative; display: block; width: 100%; }
.date-native {
    position: fixed !important; left: -9999px !important; top: 0 !important;
    width: 1px !important; height: 1px !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important;
    opacity: 0 !important; pointer-events: none !important; overflow: hidden !important;
}
.date-error { display: none; margin-top: 5px; color: #b84567; font-size: 12px; line-height: 1.5; }
.date-field.is-invalid .date-error { display: block; }
.date-trigger {
    width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px;
    background: #fcfaff; color: var(--text); font-family: inherit; font-size: 14px;
    line-height: 1.35; text-align: left; outline: none; cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.date-trigger:hover { border-color: #d8c5f0; background: #fdfbff; }
.date-field.is-focus .date-trigger,
.date-trigger:focus-visible { border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 4px rgba(124,58,237,.1); }
.date-field.is-invalid .date-trigger { border-color: #dc7a9a; box-shadow: 0 0 0 4px rgba(220,122,154,.1); }
.date-trigger:disabled { opacity: .55; cursor: not-allowed; background: #f6f1fb; }
.date-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-trigger.is-placeholder .date-text { color: #a898bd; }
.date-icon { display: inline-flex; flex: 0 0 auto; color: var(--primary); opacity: .82; }
.date-trigger.is-placeholder .date-icon { opacity: .6; }

.date-pop {
    position: fixed; z-index: 3000; width: 336px; max-width: calc(100vw - 16px);
    padding: 14px; background: #fff; border: 1px solid #e7dafa; border-radius: 18px;
    box-shadow: 0 20px 50px rgba(76,29,149,.22), 0 3px 10px rgba(76,29,149,.08);
    font-family: inherit; color: var(--text); box-sizing: border-box;
}
.date-pop[hidden] { display: none; }
.date-pop.is-open { animation: datePopIn .16s ease-out; }
@keyframes datePopIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
.date-pop-head { display: flex; align-items: center; gap: 7px; }
.date-pop-nav {
    width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #ece2fa; border-radius: 9px;
    background: #fbf8ff; color: var(--primary); font-size: 18px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.date-pop-nav:hover { background: var(--primary-soft); border-color: #dcc8f4; }
.date-pop-selects { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.date-pop-select {
    max-width: 92px; height: 30px; border: 1px solid #ece2fa; border-radius: 8px;
    background: #fbf8ff; color: var(--deep); font: inherit; font-size: 12.5px; font-weight: 700;
    padding: 0 5px; outline: none; cursor: pointer;
}
.date-pop-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.date-pop-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    margin: 13px 0 5px; color: #a18ab8; font-size: 11.5px; text-align: center;
}
.date-pop-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-pop-blank { height: 34px; }
.date-pop-day {
    height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--text);
    font: inherit; font-size: 13px; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, box-shadow .15s;
}
.date-pop-day:hover { background: #f3ebff; color: var(--primary); }
.date-pop-day.is-today { box-shadow: inset 0 0 0 1.5px #b794e8; color: var(--primary); font-weight: 800; }
.date-pop-day.is-selected { background: linear-gradient(135deg, #6d28d9, #a855f7); color: #fff; font-weight: 800; box-shadow: 0 4px 10px rgba(109,40,217,.25); }
.date-pop-day.is-selected.is-today { box-shadow: 0 4px 10px rgba(109,40,217,.25); }
.date-pop-day.is-disabled { color: #cfc4dc; cursor: not-allowed; text-decoration: line-through; }
.date-pop-day.is-disabled:hover { background: transparent; color: #cfc4dc; }
.date-pop-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 11px; padding-top: 10px; border-top: 1px solid #f0e9fa;
}
.date-pop-today, .date-pop-clear {
    border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 700;
    cursor: pointer; padding: 5px 9px; border-radius: 8px;
}
.date-pop-today { color: var(--primary); background: #f7f1ff; }
.date-pop-today:hover { background: #eee2ff; }
.date-pop-clear { color: #9b8aad; }
.date-pop-clear:hover { color: #7c6a8f; background: #faf7fd; }
.date-pop-today:disabled, .date-pop-clear:disabled { opacity: .45; cursor: not-allowed; }

/* 特定页面的尺寸贴合 */
.capsule-date-field .date-field { width: 100%; min-width: 190px; }
.capsule-date-field .date-trigger { margin-top: 7px; padding: 9px 11px; font-size: 13px; border-radius: 12px; }
.admin-form .date-trigger { border-radius: 10px; padding: 10px 13px; }
.task-done-field .date-trigger { margin-top: 4px; }

@media (max-width: 760px) {
    .date-pop { padding: 12px; border-radius: 16px; }
    .date-pop-day, .date-pop-blank { height: 36px; }
    .date-pop-select { font-size: 12px; }
    .capsule-date-field .date-field { min-width: 0; }
}

/* 全站静态刷新提示 */
.soft-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 2600;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 12px;
    background: #4c1d95; color: #fff; font-size: 12.5px; font-weight: 600;
    line-height: 1.5; box-shadow: 0 10px 30px rgba(76,29,149,.28);
    transition: opacity .22s, transform .22s;
}
.soft-toast.show { opacity: 1; transform: translate(-50%, 0); }
.soft-toast.is-error { background: #be123c; }

/* 时光胶囊：封存中卡片操作放到右侧，按钮与小事按钮同款美化 */
.capsule-card-head { gap: 6px; }
.capsule-card.is-sealed .capsule-card-head { padding-right: 0; flex-wrap: nowrap; }
.capsule-actions.is-head { margin: 0 0 0 auto; padding: 0; flex: 0 0 auto; gap: 6px; }
.capsule-countdown-row {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: nowrap; margin-top: 5px;
}
.capsule-countdown-row .capsule-countdown { margin: 0; flex: 0 1 auto; }
.capsule-actions.is-countdown {
    margin: 0 0 0 auto; padding: 0; flex: 0 0 auto; gap: 6px;
    display: flex; align-items: center;
}
.capsule-card.is-sealed .capsule-seal { top: auto; bottom: 9px; right: 13px; font-size: 23px; opacity: .3; }
.capsule-actions .capsule-edit {
    padding: 5px 11px; border-radius: 9px; border: 1px solid #d9c8f5;
    background: #f6f0ff; color: #6d28d9; font-size: 12px; font-weight: 700;
    line-height: 1.3; transition: background .18s, border-color .18s, transform .18s;
}
.capsule-actions .capsule-edit:hover { background: #ede4ff; border-color: #c9adf1; transform: translateY(-1px); }
.capsule-actions .task-del {
    padding: 5px 11px; border-radius: 9px; border: 1px solid #f0c8da;
    background: #fff5f8; color: #be185d; font-size: 12px; font-weight: 700;
    line-height: 1.3; transition: background .18s, border-color .18s, transform .18s;
}
.capsule-actions .task-del:hover { background: #fdeaf2; border-color: #e7adc7; transform: translateY(-1px); }
/* 删除按钮外面包了一层 form：把 form 变成 flex 容器，避免按钮基线在 form 内下沉 */
.capsule-actions .capsule-delete-form {
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0; line-height: 0;
}
.capsule-actions .capsule-edit,
.capsule-actions .task-del {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .capsule-card.is-sealed .capsule-card-head { flex-wrap: wrap; }
    .capsule-actions.is-head { margin-left: 0; width: 100%; justify-content: flex-end; margin-top: 4px; }
    .capsule-countdown-row { gap: 6px; }
    .capsule-actions.is-countdown { gap: 5px; }
    .capsule-actions.is-countdown .capsule-edit,
    .capsule-actions.is-countdown .task-del { padding: 4px 9px; font-size: 11.5px; }
}

@media (max-width: 340px) {
    #capsuleSealedSection .capsule-countdown-row { flex-wrap: wrap; }
    #capsuleSealedSection .capsule-actions.is-countdown { margin-left: auto; }
}

/* ---------------- 首页通知弹窗 / 后台通知编辑器 ---------------- */
.home-notice-mask { z-index: 230; }

/* 首页通知天气：内容上方的三城三天天气 */
.notice-weather {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid #eee5fb;
    border-radius: 14px;
    background: linear-gradient(135deg, #fcfaff, #f7f1ff);
}
.notice-weather[hidden] { display: none !important; }
.notice-weather-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    color: #8b7fa8;
}
.notice-weather-title { font-weight: 700; color: #6d28d9; }
.notice-weather-city {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.notice-weather-city-name {
    flex: 0 0 44px;
    font-size: 12px;
    font-weight: 700;
    color: #4a3d66;
    white-space: nowrap;
}
.notice-weather-days {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 6px;
}
.notice-weather-day {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 4px;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
    white-space: nowrap;
}
.notice-weather-day-label { font-size: 10px; color: #8b7fa8; }
.notice-weather-day-icon { font-size: 16px; line-height: 1; }
.notice-weather-day-temp { font-size: 11.5px; font-weight: 700; color: #4a3d66; }
.notice-weather-day-text { font-size: 10px; color: #8b7fa8; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
    .notice-weather { padding: 8px; gap: 6px; }
    .notice-weather-city-name { flex-basis: 38px; font-size: 11.5px; }
    .notice-weather-days { gap: 4px; }
    .notice-weather-day { padding: 4px 2px; gap: 2px; }
    .notice-weather-day-text { display: none; }
    .notice-weather-day-temp { font-size: 10.5px; }
}

/* 后台天气设置 */
.weather-settings-card { margin-top: 18px; }
.weather-settings-form { display: flex; flex-direction: column; gap: 12px; }
.weather-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eee5fb;
    border-radius: 12px;
    background: #fcfaff;
    flex-wrap: wrap;
}
.weather-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.weather-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.weather-toggle-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d8d0e8;
    transition: background .18s ease;
    flex: 0 0 44px;
}
.weather-toggle-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(46,16,84,.18);
    transition: transform .18s ease;
}
.weather-toggle input:checked + .weather-toggle-track { background: #7c3aed; }
.weather-toggle input:checked + .weather-toggle-track .weather-toggle-thumb { transform: translateX(20px); }
.weather-toggle input:focus-visible + .weather-toggle-track { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.weather-toggle-text { font-size: 13px; font-weight: 700; color: var(--deep); }
.weather-switch-tip { font-size: 11.5px; line-height: 1.5; }
.weather-field { display: flex; flex-direction: column; gap: 6px; }
.weather-field label { font-size: 13px; font-weight: 700; color: var(--deep); }
.weather-field input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13.5px;
    background: #fcfaff;
    color: var(--text);
}
.weather-field input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.08); outline: none; }
.weather-cities-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--deep); }
.weather-city-help { font-size: 11.5px; color: var(--primary); font-weight: 500; }
.weather-city-list { display: flex; flex-direction: column; gap: 8px; }
.weather-city-row { display: grid; grid-template-columns: auto auto minmax(0,1fr) minmax(0,1fr) auto; gap: 8px; align-items: center; }
.weather-city-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 36px;
    border-radius: 8px;
    color: #8b7fa8;
    background: #f4eefc;
    cursor: grab;
    user-select: none;
    touch-action: none;
    font-size: 17px;
    line-height: 1;
}
.weather-city-drag:active { cursor: grabbing; }
.weather-city-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.weather-city-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.weather-city-toggle-track {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #d8d0e8;
    transition: background .18s ease;
    flex: 0 0 34px;
}
.weather-city-toggle-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(46,16,84,.18);
    transition: transform .18s ease;
}
.weather-city-toggle input:checked + .weather-city-toggle-track { background: #7c3aed; }
.weather-city-toggle input:checked + .weather-city-toggle-track .weather-city-toggle-thumb { transform: translateX(15px); }
.weather-city-toggle input:focus-visible + .weather-city-toggle-track { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.weather-city-toggle-text { font-size: 10.5px; color: var(--muted); line-height: 1; }
.weather-city-row.dragging { opacity: .55; background: #f7f1ff; border-radius: 10px; }
.weather-city-row input[type=text] {
    min-width: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    background: #fcfaff;
}
.weather-city-row input[type=text]:focus { border-color: var(--primary-light); outline: none; }
.weather-form-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.weather-hint { font-size: 11.5px; line-height: 1.6; }
.weather-host-warning {
    padding: 9px 11px;
    border: 1px solid #fed7d7;
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 560px) {
    .weather-city-row { grid-template-columns: auto auto minmax(0,1fr) minmax(0,1fr); }
    .weather-city-row .btn-ghost { grid-column: 3 / -1; justify-self: start; }
    .weather-city-toggle-text { display: none; }
}
.home-notice-modal { max-width: 620px; }
.home-notice-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.home-notice-top-tip {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 2px 8px;
    border: 1px dashed #d6c6ee;
    border-radius: 7px;
    background: #fbf8ff;
    color: #8a7aa3;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.home-notice-body {
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    padding: 2px 2px 6px;
}
.home-notice-body p { margin: 0 0 10px; }
.home-notice-body h2, .home-notice-body h3, .home-notice-body h4 { margin: 12px 0 8px; color: var(--deep); }
.home-notice-body img { display: block; max-width: 100%; height: auto; margin: 10px auto; border-radius: 12px; }
.home-notice-body video { display: block; width: 100%; max-width: 100%; max-height: 460px; height: auto; margin: 10px auto; border-radius: 12px; background: #120b1f; }
.home-notice-body a { color: var(--primary); text-decoration: underline; }
.home-notice-body blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--primary-light); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.home-notice-body ul, .home-notice-body ol { margin: 8px 0; padding-left: 22px; }
.home-notice-body hr { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
.home-notice-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
body.home-notice-open { overflow: hidden; }

.home-notice-card .notify-intro { margin-bottom: 12px; }
.home-notice-summary { border: 1px solid var(--border); background: #fbf9ff; border-radius: 14px; padding: 12px; }
.home-notice-preview {
    max-height: 190px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    line-height: 1.75;
    color: var(--text);
    font-size: 13px;
}
.home-notice-preview img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
.home-notice-preview video { width: 100%; max-height: 360px; border-radius: 10px; display: block; margin: 8px 0; background: #120b1f; }
.home-notice-preview a { color: var(--primary); }
.home-notice-preview h2, .home-notice-preview h3, .home-notice-preview h4 { margin: 10px 0 6px; color: var(--deep); }
.home-notice-empty { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.home-notice-summary-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.home-notice-summary-actions form { margin: 0; }
.home-notice-form[hidden] { display: none !important; }
.home-notice-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: #faf7ff;
}
.home-notice-toolbar button {
    min-width: 31px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}
.home-notice-toolbar button:hover { background: var(--primary-soft); }
.home-notice-toolbar select {
    height: 30px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    padding: 0 4px;
}
.home-notice-color {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    padding: 0 5px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    cursor: pointer;
}
.home-notice-color input[type=color] {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.home-notice-emoji-panel {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid var(--border);
    border-top: none;
    background: #fff;
}
.home-notice-emoji-panel button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #faf8ff;
    font-size: 18px;
    cursor: pointer;
}
.home-notice-editor-wrap { position: relative; }
.home-notice-editor-resize {
    position: absolute; right: 8px; bottom: 7px;
    width: 24px; height: 24px; line-height: 24px;
    text-align: center; border-radius: 6px;
    color: var(--muted); font-size: 15px; cursor: nwse-resize;
    touch-action: none; user-select: none;
    background: rgba(255,255,255,.88);
    box-shadow: 0 1px 4px rgba(70,45,110,.08);
    z-index: 2;
}
.home-notice-editor-resize:hover { color: var(--primary); background: var(--primary-soft); }
.home-notice-editor {
    min-height: 165px;
    max-height: 340px;
    overflow-y: auto;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 0;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    outline: none;
}
.home-notice-editor:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124, 58, 237, .08); }
.home-notice-editor:empty::before { content: attr(data-placeholder); color: #b8abc9; pointer-events: none; }
.home-notice-editor img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
.home-notice-editor video { width: 100%; max-height: 360px; border-radius: 10px; display: block; margin: 8px 0; background: #120b1f; }
.home-notice-editor a { color: var(--primary); text-decoration: underline; }
.home-notice-editor blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--primary-light); background: var(--primary-soft); }
.home-notice-editor ul, .home-notice-editor ol { margin: 6px 0; padding-left: 22px; }

/* 通知媒体：和主页发布框一样，独立缩略图区，不进入富文本 */
.home-notice-form { position: relative; }
.home-notice-form.dragging { border-radius: 16px; box-shadow: 0 0 0 3px rgba(124,58,237,.17); background: #fbf6ff; }
.home-notice-form.dragging .home-notice-drop-hint { display: flex; }
.home-notice-drop-hint { border-radius: 16px; }
.home-notice-media-box {
    padding: 10px 12px 2px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fcfaff;
}
.home-notice-media-tools { gap: 8px; }
.home-notice-media-status { font-size: 11.5px; color: var(--primary); font-weight: 600; }
.home-notice-media-row { margin-top: 10px; }
.home-notice-media-row[hidden],
.home-notice-media-row:empty { display: none; }
.home-notice-preview-media { margin-top: 8px; }
.home-notice-preview-media .thumb { width: 64px; height: 64px; }
.home-notice-media { margin-top: 10px; margin-bottom: 4px; }
.home-notice-media .card-img { cursor: default; }
.home-notice-form-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.home-notice-tip { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) {
    .home-notice-modal { padding: 20px 16px; border-radius: 18px; }
    .home-notice-head-title { gap: 7px; }
    .home-notice-top-tip { padding: 1px 6px; font-size: 10.5px; }
    .home-notice-body { max-height: none; overflow: visible; font-size: 13.5px; }
    .home-notice-toolbar { gap: 4px; }
    .home-notice-toolbar button { min-width: 29px; height: 29px; font-size: 11.5px; padding: 0 4px; }
    .home-notice-editor { min-height: 150px; }
    .home-notice-media-box { padding: 9px 10px 2px; }
    .home-notice-progress { margin: 0 0 8px; }
.home-notice-media-tools .img-tip { width: 100%; margin-left: 0; }
    .home-notice-tip { width: 100%; }
}

/* ---------------- 全站共享富文本编辑器（正文/评论/活动，不含图片、表情按钮） ---------------- */
.rich-editor { width: 100%; }
.rich-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: #faf7ff;
}
.rich-editor-toolbar button {
    min-width: 31px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}
.rich-editor-toolbar button:hover { background: var(--primary-soft); }
.rich-editor-toolbar select {
    height: 30px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    padding: 0 4px;
}
.rich-editor-color {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    padding: 0 5px;
    border: 1px solid #e3d8f5;
    border-radius: 7px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    cursor: pointer;
}
.rich-editor-color input[type=color] {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.rich-editor-body { position: relative; }
.rich-editor-surface {
    min-height: 100px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 12px 13px 24px;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    outline: none;
}
.rich-editor-surface:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124, 58, 237, .08); }
.rich-editor-surface:empty::before { content: attr(data-placeholder); color: #b8abc9; pointer-events: none; }
.rich-editor-surface img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
.rich-editor-surface a { color: var(--primary); text-decoration: underline; }
.rich-editor-surface blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--primary-light); background: var(--primary-soft); }
.rich-editor-surface ul, .rich-editor-surface ol { margin: 6px 0; padding-left: 22px; }
.rich-editor-resize {
    position: absolute;
    right: 4px;
    bottom: 3px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    cursor: nwse-resize;
    touch-action: none;
    user-select: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, .85);
}
.rich-editor-resize:hover { color: var(--primary); background: var(--primary-soft); }
body.rich-editor-resizing, body.rich-editor-resizing * { cursor: nwse-resize !important; user-select: none !important; }

/* 评论外壳原有边框交给富文本编辑器绘制，避免双层边框 */
.comment-editor.has-rich-editor,
.comment-editor.has-rich-editor:focus-within {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.comment-editor.has-rich-editor .rich-editor-toolbar { border-radius: 14px 14px 0 0; }
.comment-editor.has-rich-editor .rich-editor-surface { border-radius: 0 0 14px 14px; }
.comment-editor.has-rich-editor .comment-tools { margin-top: 8px; }

/* 发布/编辑动态：让编辑器与原来的正文框视觉一致 */
.modal-composer .rich-editor-surface { min-height: 118px; }
#editForm .rich-editor-surface { min-height: 100px; }

@media (max-width: 600px) {
    .rich-editor-toolbar { gap: 4px; padding: 6px; }
    .rich-editor-toolbar button { min-width: 29px; height: 29px; font-size: 11.5px; padding: 0 4px; }
    .rich-editor-surface { min-height: 88px; padding: 10px 11px 22px; font-size: 13.5px; }
    .rich-editor-color { height: 29px; }
    .rich-editor-color input[type=color] { width: 17px; height: 17px; }
}

/* 活动详细内容：底部原有表情入口已保留，给富文本留出空间 */
.act-content-editor .rich-editor-surface { padding-bottom: 48px; }

/* 首页通知：已读记录入口与「知道啦」倒计时设置 */
.home-notice-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.home-notice-reads-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-notice-reads-btn b {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #6d28d9;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}
.home-notice-delay-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbf9ff;
}
.home-notice-delay-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.home-notice-delay-form input[type="number"] {
    width: 74px;
    padding: 7px 9px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    text-align: center;
}
.home-notice-delay-form .muted { font-size: 12px; }

/* 后台已读通知记录页头部 */
.table-card-head { padding: 2px 2px 12px; }
.table-card-head .box-title { margin-bottom: 6px; }

/* 话题详情：关联活动 */
.topic-act-section { margin: 22px 0 26px; }
.topic-act-heading {
    display: flex; align-items: center; gap: 8px;
    font-size: 17px; color: var(--deep); margin: 0 0 12px;
}
.topic-act-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark);
    font-size: 12px; font-weight: 700;
}
.topic-act-list { display: flex; flex-direction: column; gap: 12px; }
.topic-act-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 14px 16px;
}
.topic-act-meta {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    font-size: 12px; color: var(--muted);
}
.topic-act-date { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.topic-act-date:hover { text-decoration: underline; }
.topic-act-author { color: var(--deep); }
.topic-act-location { color: var(--muted); }
.topic-act-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.topic-act-text {
    margin-top: 8px; color: var(--text); font-size: 14px; line-height: 1.75;
    max-height: 8.8em; overflow: hidden;
}
.topic-act-text p { margin: 0; }
.topic-act-more {
    display: inline-block; margin-top: 8px; color: var(--primary-dark);
    font-size: 12px; font-weight: 700; text-decoration: none;
}
.topic-act-more:hover { text-decoration: underline; }

/* ==================== 活动事项 / 行程 ==================== */
.trip-composer { margin: 10px 0 4px; }
.trip-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 10px;
}
.trip-open-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: #efe8ff;
    color: #6b46c1;
    font-size: 11px;
    font-weight: 700;
}
.trip-panel {
    margin-top: 9px;
    padding: 12px;
    border: 1px dashed #d8c9f2;
    border-radius: 14px;
    background: #fbf9ff;
}
.trip-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}
.trip-panel-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.trip-pick-btn {
    border: 1px solid #d8c9f2;
    border-radius: 9px;
    background: #fff;
    color: #6b46c1;
    padding: 5px 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.trip-pick-btn:hover { background: #f4eeff; border-color: #c4b5fd; }
.trip-picker {
    margin: 9px 0;
    padding: 10px;
    border: 1px solid #e4d8f5;
    border-radius: 12px;
    background: #fff;
}
.trip-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.trip-picker-head strong { font-size: 12.5px; color: #4b3b66; }
.trip-picker-close {
    width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: #f3edfb; color: #775c9d; font-size: 16px; cursor: pointer;
}
.trip-picker-list { display: grid; gap: 7px; max-height: 260px; overflow-y: auto; }
.trip-picker-empty { padding: 9px 4px; color: #9484a8; font-size: 11.5px; line-height: 1.6; text-align: center; }
.trip-pick-card { padding: 8px; border: 1px solid #eee5f8; border-radius: 10px; background: #fdfbff; }
.trip-pick-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.trip-pick-icons { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.trip-pick-icon { font-size: 16px; line-height: 1; }
.trip-pick-card-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #59446d; }
.trip-pick-count { margin-left: auto; flex: 0 0 auto; color: #8d7ca2; font-size: 10.5px; }
.trip-pick-preview { margin-top: 5px; color: #8b7a9f; font-size: 11px; line-height: 1.5; }
.trip-pick-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.trip-pick-author { color: #a093b2; font-size: 10.5px; }
.trip-pick-use {
    border: 1px solid #d8c9f2; border-radius: 7px; background: #f8f4ff;
    color: #6d28d9; padding: 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.trip-pick-use:hover { background: #ede9fe; }
.trip-picker-tip { margin-top: 7px; color: #a093b2; font-size: 10.5px; }
.trip-panel-head strong { font-size: 14px; color: #43345c; }
.trip-panel-head .muted { display: block; margin-top: 2px; font-size: 11.5px; }
.trip-panel-limit {
    flex: 0 0 auto;
    font-size: 11px;
    color: #7c5aa6;
    background: #f1eaff;
    border-radius: 999px;
    padding: 3px 8px;
}
.trip-type-list { display: flex; flex-wrap: wrap; gap: 7px; }
.trip-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #ddd2f0;
    border-radius: 999px;
    background: #fff;
    color: #4b3d61;
    font-size: 12.5px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.trip-type-chip:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(87, 56, 130, .10); }
.trip-type-chip:disabled { opacity: .45; cursor: not-allowed; }
.trip-type-icon { font-size: 16px; line-height: 1; }
.trip-theme-sport { background: #fff7ed; border-color: #fed7aa; }
.trip-theme-travel { background: #eff6ff; border-color: #bfdbfe; }
.trip-theme-hike { background: #ecfdf5; border-color: #a7f3d0; }
.trip-theme-business { background: #f5f3ff; border-color: #ddd6fe; }
.trip-theme-custom { background: #fdf2f8; border-color: #fbcfe8; }
.trip-theme-walk { background: #f0fdf4; border-color: #bbf7d0; }
.trip-items { display: grid; gap: 9px; margin-top: 10px; }
.trip-empty {
    margin-top: 9px;
    padding: 10px;
    border-radius: 10px;
    background: #f5f1fb;
    color: #8a7a9d;
    font-size: 12px;
    text-align: center;
}
.trip-form-card {
    padding: 10px;
    border: 1px solid #eadff8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(74, 45, 112, .05);
}
.trip-form-head { display: flex; align-items: center; gap: 7px; }
.trip-form-icon { font-size: 19px; line-height: 1; }
.trip-form-label { color: #3f3157; font-size: 13.5px; }
.trip-form-type {
    min-width: 0;
    max-width: 160px;
    flex: 1 1 auto;
    border: 1px solid #e4d9f2;
    border-radius: 8px;
    background: #fff;
    color: #3f3157;
    padding: 5px 8px;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
}
.trip-form-type:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .14); }
.trip-form-remove {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #f4effa;
    color: #7b688e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.trip-form-remove:hover { background: #fce7f3; color: #be185d; }
.trip-form-hint { margin: 6px 0 8px; font-size: 11.5px; color: #8f7da5; line-height: 1.5; }
.trip-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-form-grid-single .trip-form-field-place { grid-column: 1 / -1; }
.trip-form-field-wide { grid-column: 1 / -1; }
.trip-form-datetime { display: flex; gap: 5px; min-width: 0; }
.trip-form-datetime .trip-form-input { min-width: 0; }
.trip-form-datetime input[type="date"] { flex: 1.25; }
.trip-form-datetime input[type="time"] { flex: .75; }
.trip-form-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trip-form-field > span { font-size: 11.5px; color: #655574; }
.trip-form-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid #ddd2ec;
    border-radius: 8px;
    background: #fcfaff;
    color: #3f3157;
    font-size: 12.5px;
    outline: none;
}
.trip-form-input:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .14); }
.trip-form-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed #eadff8;
    color: #78658f;
    font-size: 12px;
}
.trip-form-duration b { color: #6d28d9; font-size: 13px; }
.trip-form-person-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0 2px;
    min-width: 0;
}
.trip-form-person-label {
    flex: 0 0 auto;
    color: #655574;
    font-size: 11.5px;
}
.trip-form-person {
    min-width: 0;
    flex: 0 1 160px;
    max-width: 190px;
    padding: 6px 8px;
    border: 1px solid #ddd2ec;
    border-radius: 8px;
    background: #fcfaff;
    color: #3f3157;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
}
.trip-form-person:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .14); }
.trip-form-simple { margin-top: 6px; font-size: 11.5px; color: #8f7da5; line-height: 1.5; }
.trip-panel-foot { margin-top: 8px; color: #8a7a9d; font-size: 11.5px; text-align: right; }
.trip-panel-foot b { color: #6d28d9; }

/* 已发布内容下方的行程小卡片 */
.trip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    align-items: start;
    gap: 10px;
    margin: 12px 0 4px;
}
/* 爬山/徒步的指标标题较长，使用更宽的卡片，保证标题单行完整显示 */
.trip-cards-wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.trip-card {
    position: relative;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e5d8f5;
    border-radius: 13px;
    box-shadow: 0 3px 10px rgba(83, 52, 119, .07);
    color: #403253;
    overflow: hidden;
}
.trip-card-watermark {
    position: absolute;
    right: -12px;
    top: 50%;
    z-index: 0;
    font-size: 64px;
    line-height: 1;
    opacity: .15;
    transform: translateY(-50%) rotate(-8deg);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.trip-card-sport { background: linear-gradient(135deg, #fffaf2 0%, #ffe8cc 100%); border-color: #fed7aa; }
.trip-card-travel { background: linear-gradient(135deg, #f7fbff 0%, #dbeafe 100%); border-color: #bfdbfe; }
.trip-card-hike { background: linear-gradient(135deg, #f7fefb 0%, #d1fae5 100%); border-color: #a7f3d0; }
.trip-card-business { background: linear-gradient(135deg, #fbfaff 0%, #ede9fe 100%); border-color: #ddd6fe; }
.trip-card-custom { background: linear-gradient(135deg, #fff7fb 0%, #fce7f3 100%); border-color: #fbcfe8; }
.trip-card-walk { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #bbf7d0; }
.trip-card-metric .trip-card-label { font-size: 14px; white-space: nowrap; }
.trip-card-head, .trip-card-route, .trip-card-single-detail, .trip-duration, .trip-card-simple { position: relative; z-index: 1; }
.trip-card-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trip-card-icon { flex: 0 0 auto; font-size: 21px; line-height: 1; }
.trip-card-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    color: #3d2e51;
}
.trip-card-kind {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    color: #746287;
    font-size: 10.5px;
}
.trip-card-route { display: grid; gap: 7px; margin: 9px 0 8px; }
.trip-stop {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 6px;
    align-items: center;
    min-width: 0;
}
.trip-stop-role {
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: start;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .7);
    color: #715d88;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.trip-stop-place {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.35;
    color: #362746;
}
.trip-stop-time { min-width: 0; font-size: 11px; line-height: 1.35; color: #78658e; }
.trip-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px dashed rgba(100, 70, 135, .22);
    color: #6f5a86;
    font-size: 11.5px;
}
.trip-duration b { color: #5b21b6; font-size: 12.5px; }
.trip-card-simple { margin-top: 9px; font-size: 11.5px; color: #78658e; }
/* 「仅设置事项」：地点 + 开始/结束时间 */
.trip-card-single-detail { display: grid; gap: 5px; margin: 9px 0 8px; }
.trip-single-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 6px; align-items: center; min-width: 0; }
.trip-single-role {
    justify-self: start;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .7);
    color: #715d88;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.trip-single-value { min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.35; color: #362746; }
.trip-single-place .trip-single-value { font-size: 13px; font-weight: 700; }
.trip-single-time { color: #78658e; font-size: 11.5px; }

/* 后台活动事项配置 */
.trip-types-card { margin-top: 18px; }
.trip-types-form { margin-top: 10px; }
.trip-type-rows { display: grid; gap: 8px; }
.trip-type-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 80px 145px 30px;
    gap: 7px;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee5f7;
    border-radius: 10px;
    background: #fcfaff;
}
.trip-type-row input,
.trip-type-row select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #ded1ec;
    border-radius: 8px;
    background: #fff;
    color: #423358;
    font-size: 13px;
}
.trip-type-remove {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f8edf6;
    color: #a04476;
    font-size: 17px;
    cursor: pointer;
}
.trip-type-remove:hover { background: #fce7f3; }
.trip-types-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.trip-people-config {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px dashed #eadff8;
}
.trip-people-title { margin: 0 0 5px; color: #3f3157; font-size: 15px; }
.trip-person-rows,
.trip-place-rows { display: grid; gap: 8px; margin-top: 9px; }
.trip-person-row,
.trip-place-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #eee5f7;
    border-radius: 10px;
    background: #fcfaff;
}
.trip-person-row input,
.trip-place-row input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #ded1ec;
    border-radius: 8px;
    background: #fff;
    color: #423358;
    font-size: 13px;
}
.trip-person-remove,
.trip-place-remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f8edf6;
    color: #a04476;
    font-size: 17px;
    cursor: pointer;
}
.trip-person-remove:hover,
.trip-place-remove:hover { background: #fce7f3; }

@media (max-width: 680px) {
    .trip-cards { grid-template-columns: 1fr; }
    .trip-form-grid { grid-template-columns: 1fr; }
    .trip-panel-head { gap: 6px; }
    .trip-panel-head .muted { font-size: 11px; }
    .trip-panel-head-actions { gap: 4px; }
    .trip-pick-btn { font-size: 10.5px; padding: 4px 6px; }
    .trip-form-type { max-width: 130px; font-size: 12px; }
    .trip-form-person { flex: 1 1 auto; max-width: none; }
    .trip-card { padding: 10px 11px; }
    .trip-card-watermark { right: -8px; font-size: 48px; opacity: .14; }
    .trip-stop { grid-template-columns: 32px minmax(0, 1fr); }
    .trip-card-label { font-size: 14px; }
    .trip-card-metric .trip-card-label { font-size: 14px; }
    .trip-type-row {
        grid-template-columns: minmax(0, 1fr) 72px 30px;
    }
    .trip-type-row select { grid-column: 1 / span 2; }
    .trip-type-row .trip-type-remove { grid-column: 3; grid-row: 1; }
    .trip-types-actions { flex-wrap: wrap; }
    .trip-person-row { align-items: stretch; }
}
