/* ============================================
   各页面专属样式
   ============================================ */

/* --- Dashboard --- */
.recent-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-project-item:last-child {
    border-bottom: none;
}

.recent-project-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recent-project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.status-planning { background: rgba(0,122,255,0.1); color: #007AFF; }
.status-in_progress { background: rgba(255,149,0,0.1); color: #FF9500; }
.status-completed { background: rgba(52,199,89,0.1); color: #34C759; }
.status-archived { background: rgba(142,142,147,0.12); color: #8E8E93; }

.recent-memo-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-memo-item:last-child {
    border-bottom: none;
}

.recent-memo-item p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-memo-item .memo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.memo-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0,122,255,0.08);
    color: var(--color-brand);
}

/* --- Projects --- */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 12px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.tech-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Memos --- */
.memo-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.memo-search-input {
    padding-left: 36px !important;
}

.memos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.memo-card {
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 120px;
    cursor: pointer;
    position: relative;
}

.memo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.memo-card.pinned {
    border-color: var(--color-brand);
}

.memo-card-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-word;
}

.memo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.memo-card-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* --- Goals --- */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.goal-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.goal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.goal-card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.goal-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.goal-stats span strong {
    color: var(--text-primary);
    font-weight: 600;
}

.goal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.goal-actions .btn {
    font-size: 13px;
    padding: 6px 14px;
}

.goal-checkin-records {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.checkin-dot.done {
    background: var(--color-success);
}

.checkin-dot.miss {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* --- Settings --- */
.settings-page .card {
    margin-bottom: var(--spacing-lg);
}
