/* ===== 简约现代风 - Notion/Linear 风格 ===== */
:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f5;
    --border: #e8e8e8;
    --border-hover: #d0d0d0;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #999;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --accent-sql: #3b82f6;
    --accent-todo: #10b981;
    --accent-ai: #8b5cf6;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px 32px;
}

@media only screen and (max-width: 640px) {
    .app {
        padding: 32px 20px 24px;
    }
}

/* ===== Hero 区域 ===== */
.hero {
    margin-bottom: 48px;
}

.hero-time {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.time-now {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.time-date {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-quote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.quote-icon {
    font-size: 28px;
    color: var(--text-tertiary);
    line-height: 1;
    margin-top: -4px;
    font-family: Georgia, serif;
}

.quote-text {
    flex: 1;
}

@media only screen and (max-width: 640px) {
    .time-now {
        font-size: 36px;
    }
    .hero {
        margin-bottom: 32px;
    }
}

/* ===== 工具卡片 ===== */
.tools {
    margin-bottom: 48px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media only screen and (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-sql { --accent: var(--accent-sql); }
.tool-card-todo { --accent: var(--accent-todo); }
.tool-card-ai { --accent: var(--accent-ai); }

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    flex-shrink: 0;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-arrow {
    color: var(--text-tertiary);
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tool-card:hover .tool-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===== 概览区域 ===== */
.overview {
    margin-bottom: 48px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media only screen and (max-width: 640px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.recent-tasks {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
}

.subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.task-list {
    list-style: none;
}

.task-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.task-list li:last-child {
    border-bottom: none;
}

.task-list li .task-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

.task-list li.completed .task-dot {
    background: var(--accent-todo);
}

.task-list li .task-title {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-list li.completed .task-title {
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.task-list li .task-project {
    font-size: 12px;
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-todo);
    flex-shrink: 0;
}

.task-empty {
    color: var(--text-tertiary);
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.footer #versionInfo {
    font-weight: 600;
    color: var(--text-secondary);
}
