/* ========== 全局重置 & 字体 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-image: 
        radial-gradient(circle at 10% 30%, rgba(66, 153, 225, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(56, 178, 172, 0.06) 0%, transparent 50%);
}

/* ========== 主容器 ========== */
.dashboard {
    max-width: 1360px;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    padding: 2.2rem 2.5rem 2.8rem;
    box-shadow: 0 20px 60px rgba(0, 20, 40, 0.10), 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}

/* ========== 头部 ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-left .logo-icon {
    font-size: 2rem;
    color: #2b6c94;
    background: rgba(43, 108, 148, 0.12);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: 0.2s;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0a2540;
}

.header-left h1 span {
    font-weight: 300;
    color: #5b7f95;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #2c5775;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 1.2rem 0.4rem 1.6rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.header-right i {
    font-size: 1.1rem;
    color: #3d7b9e;
}

.header-right .badge-date {
    font-weight: 500;
}

/* ========== 四列网格 ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

/* ========== 卡片通用 ========== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    padding: 1.4rem 1.2rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 67, 113, 0.08);
    border-color: rgba(66, 153, 225, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

/* ========== 卡片头部 ========== */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.card-header .icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.card-header .icon.blue   { background: #3b82f6; }
.card-header .icon.green  { background: #10b981; }
.card-header .icon.purple { background: #8b5cf6; }
.card-header .icon.orange { background: #f59e0b; }

.card-header .title {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: #0a2540;
}

.card-header .count-badge {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.1rem 0.6rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a6a80;
    letter-spacing: 0.02em;
}

/* ========== 列表项 ========== */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    color: #1c3b4f;
    font-size: 0.92rem;
    font-weight: 450;
    text-decoration: none;
}

.item i {
    font-size: 0.9rem;
    width: 20px;
    color: #5b7f95;
    flex-shrink: 0;
    text-align: center;
    transition: color 0.2s;
}

.item .label {
    flex: 1;
    line-height: 1.3;
}

.item .tag {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.5rem;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.04);
    color: #4d6e84;
    flex-shrink: 0;
}

.item .tag.blue-tag   { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.item .tag.green-tag  { background: rgba(16, 185, 129, 0.12); color: #059669; }
.item .tag.purple-tag { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.item .tag.orange-tag { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(66, 153, 225, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
    color: #0a2d44;
}

.item:hover i {
    color: #2b6c94;
}

.item .tool-icon {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.1rem 0.5rem;
    border-radius: 40px;
    color: #4d6e84;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ========== 底部 ========== */
.footer-note {
    margin-top: 2.4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 1.6rem;
    font-size: 0.85rem;
    color: #5b7f95;
}

.footer-note .stats {
    display: flex;
    gap: 1.6rem;
}

.footer-note .stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-note .stats i {
    font-size: 0.8rem;
    color: #7a9bb3;
}

.footer-note .action-btn {
    background: rgba(43, 108, 148, 0.08);
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f5777;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.footer-note .action-btn:hover {
    background: rgba(43, 108, 148, 0.15);
    border-color: rgba(43, 108, 148, 0.2);
    transform: scale(1.02);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .dashboard { padding: 1.8rem 1.8rem 2.2rem; }
    .grid { gap: 1.2rem; }
}

@media (max-width: 820px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .dashboard { padding: 1.5rem 1.2rem 2rem; border-radius: 1.8rem; }
    .header-left h1 { font-size: 1.4rem; }
}

@media (max-width: 500px) {
    .grid { grid-template-columns: 1fr; gap: 1rem; }
    .header { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; justify-content: center; padding: 0.3rem 0.8rem; font-size: 0.8rem; }
    .card { padding: 1rem 0.8rem 1.2rem; }
    .footer-note { flex-direction: column; align-items: flex-start; }
    .footer-note .stats { flex-wrap: wrap; gap: 0.8rem; }
    .dashboard { padding: 1rem 0.8rem 1.4rem; }
}

/* ========== 加载入场动画 ========== */
.card {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== 密码弹窗模态框 ========== */
.password-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.password-prompt-box {
    background: #fff;
    border-radius: 1.8rem;
    padding: 2rem 2.2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 48px rgba(0,0,0,0.2);
    text-align: center;
}

.password-prompt-box h3 {
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

.password-prompt-box p {
    color: #5b7f95;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.password-prompt-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #dce4ec;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.password-prompt-box input:focus {
    border-color: #3b82f6;
}

.password-prompt-box .btn-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    justify-content: center;
}

.password-prompt-box .btn-group button {
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 60px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.password-prompt-box .btn-group .btn-confirm {
    background: #2b6c94;
    color: #fff;
}

.password-prompt-box .btn-group .btn-confirm:hover {
    background: #1f5777;
}

.password-prompt-box .btn-group .btn-cancel {
    background: #eef3f8;
    color: #2c5775;
}

.password-prompt-box .btn-group .btn-cancel:hover {
    background: #dce4ec;
}

.password-prompt-box .error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.6rem;
    min-height: 1.6rem;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}