/* ============================================================
   NOLBIR 资产管理系统 - 苹果UI样式
   8pt网格 · SF-Pro字体 · 磨砂半透明 · 平滑过渡 · 暗黑模式
   ============================================================ */

:root {
    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
                 "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;

    /* 圆角 (8pt 网格倍数) */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;

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

    /* 字号 */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 28px;

    /* iOS 配色 (亮色) */
    --bg-window: #f2f2f7;
    --bg-card: #ffffff;
    --bg-grouped: #ffffff;
    --bg-card-secondary: #f9f9f9;
    --bg-mat: rgba(255, 255, 255, 0.72);
    --bg-mat-strong: rgba(245, 245, 245, 0.85);
    --text-primary: #1c1c1e;
    --text-secondary: #3c3c43;
    --text-tertiary: #8e8e93;
    --text-quaternary: #c7c7cc;
    --separator: rgba(60, 60, 67, 0.18);
    --border: rgba(60, 60, 67, 0.12);
    --accent: #007aff;
    --accent-pressed: #0066d6;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-pop: 0 12px 48px rgba(0,0,0,0.18);

    /* 状态色 */
    --color-high: #ff3b30;
    --color-mid: #ff9500;
    --color-low: #34c759;
    --color-in: #34c759;
    --color-out: #ff9500;
}

/* 暗黑模式 */
[data-theme="dark"] {
    --bg-window: #000000;
    --bg-card: #1c1c1e;
    --bg-grouped: #1c1c1e;
    --bg-card-secondary: #2c2c2e;
    --bg-mat: rgba(28, 28, 30, 0.72);
    --bg-mat-strong: rgba(28, 28, 30, 0.88);
    --text-primary: #ffffff;
    --text-secondary: #ebebf5;
    --text-tertiary: #98989f;
    --text-quaternary: #545458;
    --separator: rgba(84, 84, 88, 0.45);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #0a84ff;
    --accent-pressed: #0066cc;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.4);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-pop: 0 12px 48px rgba(0,0,0,0.6);
}

/* 自动模式:跟随系统 */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --bg-window: #000000;
        --bg-card: #1c1c1e;
        --bg-grouped: #1c1c1e;
        --bg-card-secondary: #2c2c2e;
        --bg-mat: rgba(28, 28, 30, 0.72);
        --bg-mat-strong: rgba(28, 28, 30, 0.88);
        --text-primary: #ffffff;
        --text-secondary: #ebebf5;
        --text-tertiary: #98989f;
        --text-quaternary: #545458;
        --separator: rgba(84, 84, 88, 0.45);
        --border: rgba(255, 255, 255, 0.08);
        --accent: #0a84ff;
        --accent-pressed: #0066cc;
    }
}

/* ========= Reset ========= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.45;
    color: var(--text-primary);
    background: var(--bg-window);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, button, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ========= App Shell ========= */
.app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-mat);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: var(--gap-5) var(--gap-4);
}
.sidebar-brand {
    display: flex; align-items: center; gap: var(--gap-2);
    padding: var(--gap-2) var(--gap-3) var(--gap-4);
    margin-bottom: var(--gap-3);
    border-bottom: 1px solid var(--separator);
}
.sidebar-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), #6c5ce7);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}
.sidebar-name { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-top: var(--gap-3); }
.nav-item {
    display: flex; align-items: center; gap: var(--gap-3);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.nav-item:hover { background: var(--bg-card-secondary); }
.nav-item:active { transform: scale(0.97); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    font-size: 14px;
}
.nav-item.active .nav-icon { color: #fff; }
.sidebar-footer { padding-top: var(--gap-3); border-top: 1px solid var(--separator); }
.logout-btn {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--danger);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background-color .18s ease, transform .12s ease;
}
.logout-btn:hover { background: rgba(255, 59, 48, 0.08); }
.logout-btn:active { transform: scale(0.97); }
.copyright {
    margin: 10px 0 0;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
}

/* ========= Main ========= */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: var(--bg-mat);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--gap-3);
}
.topbar-title { margin: 0; font-size: var(--text-xl); font-weight: 700; }
.topbar-actions { display: flex; gap: var(--gap-2); align-items: center; }
.content { padding: var(--gap-5); width: 100%; flex: 1; }
.content > .fade-in { max-width: 1400px; margin: 0 auto; width: 100%; }

/* ========= 通用组件 ========= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color .18s ease, transform .12s ease, opacity .18s ease;
    gap: 6px;
}
.btn:hover { background: var(--bg-card-secondary); }
.btn:active { transform: scale(0.96); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover { background: var(--accent-pressed); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { opacity: 0.88; }
.btn-ghost { background: transparent; }
.btn-icon {
    width: 32px; height: 32px; padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform .12s ease, background-color .18s ease;
}
.btn-icon:hover { background: var(--bg-card-secondary); }
.btn-icon:active { transform: scale(0.92); }
.btn-icon.btn-round {
    width: 36px; height: 36px;
    border-radius: var(--radius-pill);
    background: var(--accent); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}
.btn-icon.btn-round:hover { background: var(--accent-pressed); }

/* ========= 卡片 / 列表分组 ========= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.list-group {
    background: var(--bg-grouped);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.list-group-header {
    padding: var(--gap-4) var(--gap-4) var(--gap-2);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.list-item {
    display: flex; align-items: center; gap: var(--gap-3);
    padding: 12px var(--gap-4);
    border-bottom: 1px solid var(--separator);
    transition: background-color .18s ease, transform .12s ease;
    color: var(--text-primary);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-card-secondary); }
.list-item:active { transform: scale(0.995); }
.list-item-link { display: contents; }

/* 头像 */
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3e3e8, #c7c7cc);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.size-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.size-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.size-xl { width: 80px; height: 80px; font-size: 32px; }

/* 图标头像(预设图标库) */
.avatar.is-icon { background: linear-gradient(135deg, var(--accent), #6c5ce7); }
.avatar.is-icon.icon-lock { background: linear-gradient(135deg, #ff9500, #ff5e3a); }
.avatar.is-icon.icon-server { background: linear-gradient(135deg, #5856d6, #007aff); }
.avatar.is-icon.icon-app { background: linear-gradient(135deg, #34c759, #00c7be); }
.avatar.is-icon.icon-card { background: linear-gradient(135deg, #ffcc00, #ff9500); }
.avatar.is-icon.icon-mail { background: linear-gradient(135deg, #5ac8fa, #007aff); }
.avatar.is-icon.icon-cloud { background: linear-gradient(135deg, #c7c7cc, #8e8e93); }
.avatar.is-icon.icon-wallet { background: linear-gradient(135deg, #af52de, #ff2d55); }
.avatar.is-icon.icon-user { background: linear-gradient(135deg, #64d2ff, #007aff); }
.avatar.is-icon.icon-key { background: linear-gradient(135deg, #ffd60a, #ff9500); }
.avatar.is-icon.icon-router { background: linear-gradient(135deg, #30b0c7, #004cff); }
.avatar.is-icon.icon-camera { background: linear-gradient(135deg, #ff375f, #ff9500); }
.avatar.is-icon.icon-globe { background: linear-gradient(135deg, #30d158, #00c7be); }

.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
    font-size: var(--text-base); font-weight: 600;
    color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-item-subtitle {
    font-size: var(--text-sm); color: var(--text-tertiary);
    margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-item-meta {
    font-size: var(--text-xs); color: var(--text-tertiary);
    flex-shrink: 0;
}
.chevron {
    color: var(--text-quaternary);
    font-size: 18px;
    flex-shrink: 0;
}

/* ========= 表单 ========= */
.form-group { margin-bottom: var(--gap-4); }
.form-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}
.form-control::placeholder { color: var(--text-quaternary); }
textarea.form-control { min-height: 90px; resize: vertical; }

.input-group {
    display: flex;
    background: var(--bg-card-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.input-group .form-control {
    border: none;
    background: transparent;
    border-radius: 0;
}
.input-group .input-group-append {
    display: flex; align-items: center;
    padding: 0 12px;
    background: transparent;
    border-left: 1px solid var(--border);
}

/* ========= 弹窗 ========= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    animation: fadeIn .2s ease;
}
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    animation: popIn .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
    padding: 18px 20px 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: var(--text-lg); font-weight: 700; margin: 0; }
.modal-body { padding: 8px 20px 20px; }
.modal-footer {
    padding: 12px 20px 18px;
    display: flex; justify-content: flex-end; gap: 8px;
    border-top: 1px solid var(--separator);
}

/* ========= Toast ========= */
.toast {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: var(--gap-3);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--accent);
    animation: slideIn .3s ease;
}
.toast-success { border-left-color: var(--success); color: var(--success); }
.toast-error { border-left-color: var(--danger); color: var(--danger); }

/* ========= 动画 ========= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fade-in { animation: fadeIn .25s ease; }

/* iOS 点击反馈 */
button, .nav-item, .list-item, .btn, .avatar, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* 眼睛捂眼动画 */
.eye-icon { display: inline-block; transition: transform .18s ease; }
.eye-icon.covered { transform: scaleY(0.6); }

/* ========= 响应式: 移动端 ========= */
@media (max-width: 768px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; left: 0; bottom: 0; top: auto;
        height: auto; width: 100%;
        flex-direction: row;
        padding: 8px 12px;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 50;
    }
    .sidebar-brand, .sidebar-footer { display: none; }
    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        justify-content: space-around;
        padding-top: 0;
    }
    .nav-item {
        flex-direction: column;
        gap: 2px;
        padding: 6px 4px;
        font-size: var(--text-xs);
    }
    .nav-icon { width: 24px; height: 24px; }
    .nav-label { font-size: var(--text-xs); }
    .content { padding: var(--gap-3); padding-bottom: 80px; }
    .topbar { padding: 10px 16px; }
    .topbar-title { font-size: var(--text-lg); }
}

/* ========= 实用工具 ========= */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--gap-2); }
.gap-3 { gap: var(--gap-3); }
.gap-4 { gap: var(--gap-4); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.font-mono { font-family: var(--font-mono); }
.text-right { text-align: right; }
.mb-2 { margin-bottom: var(--gap-2); }
.mb-3 { margin-bottom: var(--gap-3); }
.mb-4 { margin-bottom: var(--gap-4); }
.mb-5 { margin-bottom: var(--gap-5); }
.mt-4 { margin-top: var(--gap-4); }
.hidden { display: none; }

/* ========= 卡片化列表 (新风格) ========= */
.card-list { max-width: 1200px; margin: 0 auto; }

.page-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--gap-4);
    padding: 0 4px;
}
.page-title-block .page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}
.page-title-block .page-subtitle {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin-top: 4px;
}
.page-count-badge {
    display: inline-flex; align-items: center;
    background: var(--bg-card-secondary);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-left: 8px;
}

/* 网格布局(桌面) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-3);
}

/* 项目卡片 */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--gap-4);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column; gap: var(--gap-3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.project-card:active { transform: scale(0.99); }
.project-card .card-head {
    display: flex; align-items: center; gap: var(--gap-3);
}
.project-card .card-title-block { flex: 1; min-width: 0; }
.project-card .card-title {
    font-size: var(--text-base);
    font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.project-card .card-sub {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    margin-top: 2px;
    display: flex; align-items: center; gap: 6px;
}
.project-card .priority-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.priority-high { background: var(--color-high); }
.priority-mid { background: var(--color-mid); }
.priority-low { background: var(--color-low); }

/* 类型徽章 */
.tag-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.tag-APP { background: rgba(0, 122, 255, 0.12); color: var(--accent); }
.tag-H5 { background: rgba(88, 86, 214, 0.12); color: #5856d6; }
.tag-mini { background: rgba(52, 199, 89, 0.12); color: var(--success); }

/* 项目卡底部信息 */
.project-card .card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: var(--gap-3);
    border-top: 1px solid var(--separator);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}
.project-card .secret-tag {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--text-tertiary);
}
.project-card .due-date {
    display: inline-flex; align-items: center; gap: 4px;
}
.project-card .due-date.urgent { color: var(--warning); font-weight: 600; }

/* 财务列表(美化) */
.finance-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--gap-4);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--gap-3);
    display: flex; align-items: center; gap: var(--gap-3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.finance-card:hover { transform: translateX(2px); box-shadow: var(--shadow-elevated); }
.finance-card .fin-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    flex-shrink: 0;
}
.finance-card .fin-icon.income {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}
.finance-card .fin-icon.cost {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}
.finance-card .fin-body { flex: 1; min-width: 0; }
.finance-card .fin-title {
    font-weight: 600; font-size: var(--text-base);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.finance-card .fin-sub {
    font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px;
}
.finance-card .fin-amount {
    font-size: var(--text-lg); font-weight: 700;
    font-feature-settings: "tnum";
}
.finance-card .fin-amount.income { color: var(--success); }
.finance-card .fin-amount.cost { color: var(--warning); }

/* 想法卡片(网格) */
.idea-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--gap-4);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    display: flex; flex-direction: column; gap: var(--gap-3);
    position: relative;
    overflow: hidden;
}
.idea-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.idea-card:active { transform: scale(0.99); }
.idea-card .idea-head {
    display: flex; align-items: center; gap: var(--gap-3);
}
.idea-card .idea-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent), #6c5ce7);
    color: #fff;
    flex-shrink: 0;
}
.idea-card .idea-name {
    font-weight: 600; font-size: var(--text-base);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.idea-card .idea-priority {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0;
}
.idea-card .idea-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
}
.idea-card .idea-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: var(--gap-2);
    border-top: 1px solid var(--separator);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* 密码列表(美化) */
.password-card-list .pwd-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--gap-3) var(--gap-4);
    margin-bottom: var(--gap-2);
    display: flex; align-items: center; gap: var(--gap-3);
    box-shadow: var(--shadow-card);
    transition: transform .15s ease, box-shadow .15s ease;
}
.password-card-list .pwd-item:hover { transform: translateX(2px); box-shadow: var(--shadow-elevated); }
.password-card-list .pwd-item:active { transform: scale(0.99); }
.password-card-list .pwd-name {
    font-weight: 600; font-size: var(--text-base);
}
.password-card-list .pwd-sub {
    font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.password-card-list .pwd-date {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    padding: 4px 8px;
    background: var(--bg-card-secondary);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

/* 移动端 */
@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
    .page-title-block .page-title { font-size: 22px; }
}

