/* ==========================================================================
   个人网站 · 后台样式
   简约高级 · 移动端适配
   ========================================================================== */

:root {
    --bg: #f6f8f9;
    --surface: #ffffff;
    --ink: #20242a;
    --ink-soft: #4b5560;
    --muted: #9aa5ae;
    --line: #e6eaee;
    --line-strong: #d5dce1;
    --accent: #5b7a94;
    --accent-strong: #46637c;
    --accent-soft: rgba(91, 122, 148, 0.09);
    --danger: #c0553f;
    --danger-soft: rgba(192, 85, 63, 0.08);
    --ok: #4a7d5a;
    --radius: 6px;
    --side-w: 232px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.4; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 布局 ---------- */
.admin-shell { display: flex; min-height: 100vh; width: 100%; }
.admin-side {
    width: var(--side-w);
    flex-shrink: 0;
    background: var(--ink);
    color: #c6cdd3;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand {
    display: block;
    padding: 22px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}
.admin-brand span { color: var(--accent); margin-left: 6px; font-size: 13px; font-weight: 400; }
.admin-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius);
    color: #a7b0b8;
    transition: all 0.18s;
}
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-nav a.active {
    color: #fff;
    background: var(--accent);
    font-weight: 500;
}
.admin-side-foot {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}
.admin-side-foot a:hover { color: #fff; }
.admin-side-foot .btn-link { color: #a7b0b8; padding: 0; }
.admin-side-foot .btn-link:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.admin-top h1 {
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-top h1::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.admin-user { color: var(--muted); font-size: 13px; }

/* 主区：内容 + 右侧信息栏 */
.admin-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    width: 100%;
    max-width: 1632px;
}
.admin-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
}
.admin-rail {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- 右侧信息栏卡片 ---------- */
.rail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(32, 36, 42, 0.04);
}
.rail-card h3 {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rail-card h3::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.rail-links { display: flex; flex-direction: column; gap: 9px; }
.rail-links a { color: var(--accent-strong); font-size: 13px; }
.rail-links a:hover { text-decoration: underline; }
.rail-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rail-stats li { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-soft); }
.rail-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-tip { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.rail-tip b { color: var(--ink-soft); font-weight: 600; }

/* ---------- 提示 ---------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.alert.success { background: #eef5f0; color: var(--ok); border-color: var(--ok); }
.alert.error { background: #fbf0ed; color: var(--danger); border-color: var(--danger); }

/* ---------- 悬浮提示（fixed 不占文档流，避免顶动页面） ---------- */
.flash {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translate(-50%, -8px);
    opacity: 0;
    z-index: 100;
    max-width: min(560px, calc(100vw - 48px));
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(32, 36, 42, 0.18);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.flash.show { opacity: 1; transform: translate(-50%, 0); }
.flash-success { background: var(--ok); }
.flash-error { background: var(--danger); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 9px 18px;
    font-size: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    transition: all 0.18s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }
.btn-link { 
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent-strong);
    font-size: 13px;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.btn-link.muted { color: var(--muted); }
.btn.ghost.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.ghost.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- 封面上传 ---------- */
.cover-upload { margin-bottom: 0; }
.cover-preview {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.cover-preview img {
    width: 300px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #eef1f3;
}
.cover-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 640px) {
    .cover-preview { flex-direction: column; }
    .cover-preview img { width: 100%; }
    .cover-preview-actions { flex-direction: row; }
}

/* ---------- 工具栏 ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.toolbar-form input, .toolbar-form select {
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    outline: none;
}
.toolbar-form input:focus, .toolbar-form select:focus { border-color: var(--accent); }
.toolbar-hint { color: var(--muted); font-size: 13px; }

/* ---------- 统计区 ---------- */
.stat-heroes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}
.stat-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-hero:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 122, 148, 0.4);
    box-shadow: 0 14px 28px -18px rgba(32, 36, 42, 0.28);
}
.stat-hero-label {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.stat-hero-num {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-hero-sub {
    font-size: 12px;
    color: var(--muted);
}
.stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.stat-strip a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}
.stat-strip a span {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-strip a:hover { border-color: rgba(91, 122, 148, 0.4); color: var(--accent); }
.stat-strip a:hover span { color: var(--accent); }

/* ---------- 面板 ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(32, 36, 42, 0.04);
}
.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 15px; }
.panel-hint { color: var(--muted); font-size: 12px; }
.panel-wide { grid-column: 1 / -1; }
.td-title .sub { color: var(--muted); font-size: 13px; }

/* ---------- 表格 ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    white-space: nowrap;
}
@media (max-width: 639px) {
    .data-table { display: block; overflow-x: auto; }
}
.data-table thead { background: #f7f9fa; }
.data-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #f7f9fa; }
.td-title a { font-weight: 500; }
.td-title a:hover { color: var(--accent); }
/* 最近文章标题过长省略 */
.title-ellipsis {
    display: block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-view {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: var(--muted);
}
.td-view:hover { color: var(--accent); }
.td-muted { color: var(--muted); font-size: 13px; }
.td-empty { text-align: center; color: var(--muted); padding: 40px 20px !important; }
/* 仪表盘：最近文章 / 最近相册 / 最近片刻 表格行高统一，底部对齐 */
.admin-grid .data-table td { height: 66px; }
.data-table th.th-actions,
.data-table td.td-actions { width: 1%; }
.td-actions {
    white-space: nowrap;
    line-height: 1.6;
}
.td-actions > a,
.td-actions form {
    display: inline-block;
    vertical-align: middle;
    margin-right: 14px;
}
.td-actions form:last-child { margin-right: 0; }
.td-actions > a { color: var(--accent-strong); font-size: 13px; }
.td-actions > a:hover { text-decoration: underline; }
.td-actions .btn-link { line-height: inherit; }
.td-cover img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}
.cover-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 48px;
    background: #eef1f3;
    border-radius: 4px;
    font-size: 12px;
    color: var(--muted);
}
/* 仪表盘最近相册：封面缩略图 */
.album-cell { display: flex; align-items: center; gap: 12px; }
.album-thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eef1f3;
}
.album-cell .cover-empty { width: 48px; height: 36px; flex-shrink: 0; }
.album-cell a { font-weight: 500; }
.album-cell a:hover { color: var(--accent); }

/* ---------- 徽章 ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 999px;
}
.badge.published { background: var(--ok); color: #fff; }
.badge.draft { background: var(--muted); color: #fff; }
.badge.top { background: var(--accent); color: #fff; }

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
}
.checkbox-inline input { width: auto; }
/* 表单内 checkbox 组：与 input/select 等高居中对齐 */
.field label.checkbox-inline {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-bottom: 0;
}
.field .checkbox-inline input { width: auto; flex: none; }

/* ---------- 表单 ---------- */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.form-row .field { flex: 1 1 220px; }
.form-row .field.grow { flex: 1 1 auto; }
.form-row .field.field-sm { flex: 0 1 180px; }
.form-row .field.field-auto { flex: 0 0 auto; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    font-size: 14px;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 60px; }
.field-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.md-textarea { min-height: 180px; font-family: "SF Mono", Consolas, monospace !important; font-size: 13px !important; }

.form-actions {
    display: flex;
    gap: 10px;
    padding: 20px 0 8px;
}
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
}
.inline-form input {
    flex: 1 1 160px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    outline: none;
    background: var(--surface);
}
.inline-form input:focus { border-color: var(--accent); }
.table-input {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    width: 100%;
    min-width: 120px;
    outline: none;
    color: var(--ink);
}
.table-input:hover { border-color: var(--line-strong); background: var(--surface); }
.table-input:focus { border-color: var(--accent); background: var(--surface); }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ink-soft); }

/* ---------- 标签选择 ---------- */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option { cursor: pointer; }
.tag-option input { display: none; }
.tag-option span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--surface);
    transition: all 0.18s;
}
.tag-option input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- 相册照片 ---------- */
.panel-photos { padding-bottom: 20px; }
.photo-upload {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.upload-drop {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 26px 16px;
    text-align: center;
    background: #f7f9fa;
    transition: all 0.2s;
    margin-bottom: 14px;
    cursor: pointer;
}
.upload-drop.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.upload-drop input[type="file"] { display: none; }
.upload-icon { font-size: 26px; color: var(--accent); line-height: 1; }
.upload-text { margin-top: 8px; font-weight: 500; }
.upload-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.upload-selected { color: var(--accent-strong); font-size: 13px; margin-top: 8px; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    padding: 20px;
}
.photo-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.photo-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: grab;
    background: #eef1f3;
}
.photo-thumb:active { cursor: grabbing; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-ghost { opacity: 0.45; border: 1.5px dashed var(--accent); }
.photo-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
}
.photo-actions form { margin: 0; }
.photo-cover-btn, .photo-del-btn {
    border: 0;
    background: none;
    font-size: 12px;
    padding: 2px 4px;
}
.photo-cover-btn { color: var(--accent-strong); }
.photo-cover-btn.active { color: #fff; background: var(--accent); border-radius: 4px; padding: 2px 8px; }
.photo-del-btn { color: var(--danger); }
.photo-empty { grid-column: 1 / -1; }

/* ---------- 头像设置 ---------- */
.avatar-setting { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.avatar-preview {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef1f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    border: 1px solid var(--line);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-field { flex: 1; min-width: 200px; }
.avatar-field input[type="file"] { padding: 8px; }

/* ---------- 登录页 ---------- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #f6f8f9 0%, #e3e9ed 100%);
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 40px 36px;
    box-shadow: 0 24px 48px -28px rgba(32, 36, 42, 0.35);
}
.login-brand {
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.login-sub { text-align: center; color: var(--muted); margin: 8px 0 28px; font-size: 13px; }
.login-form .field input { padding: 12px; }
.login-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}
.login-back:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 999;
    box-shadow: 0 12px 28px -12px rgba(32, 36, 42, 0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 20px 20px;
}
.page-item {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
a.page-item:hover { border-color: var(--accent); color: var(--accent); }
.page-item.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-item.disabled { opacity: 0.45; }
.page-item.dots { border: 0; background: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 900px) {
    .admin-grid { grid-template-columns: 1fr 1fr; }
}

/* 中等屏：内容限宽不满足时收起右侧信息栏 */
@media (max-width: 1280px) {
    .admin-rail { display: none; }
}

@media (max-width: 899px) {
    .admin-shell { flex-direction: column; }
    .admin-side {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        z-index: 50;
    }
    .admin-brand { padding: 14px 16px; }
    .admin-nav {
        flex: 1;
        flex-direction: row;
        overflow-x: auto;
        gap: 2px;
        padding: 8px 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-nav::-webkit-scrollbar { display: none; }
    .admin-nav a { padding: 9px 12px; white-space: nowrap; }
    .admin-side-foot { display: none; }
    .admin-top { padding: 12px 16px; }
    .admin-top h1 { font-size: 16px; }
    .admin-body { padding: 16px; }
    .stat-heroes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .stat-heroes { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 14px; }
    .data-table td, .data-table th { padding: 11px 14px; }
    .admin-user { display: none; }
}

/* ---------- 足迹：列表 ---------- */
.travel-cover-cell { flex-shrink: 0; }
.travel-cover-cell img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #eef1f3;
}
.travel-city-cell { font-weight: 500; }
.travel-desc-cell { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 足迹：多图上传 ---------- */
.travel-upload {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    background: #f7f9fa;
    transition: all 0.2s;
    margin-bottom: 14px;
    cursor: pointer;
}
.travel-upload.dragover { border-color: var(--accent); background: var(--accent-soft); }
.travel-upload input[type="file"] { display: none; }
.travel-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.travel-thumb {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eef1f3;
}
.travel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.travel-thumb.is-first::after {
    content: "封面";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px 0;
    font-size: 11px;
    text-align: center;
    color: #fff;
    background: rgba(32, 36, 42, 0.55);
}
.travel-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(32, 36, 42, 0.6);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.travel-thumb-remove:hover { background: var(--danger); }
