﻿@import url("../demo/demo.css");
.site-nav {
    align-items: center;
    flex-wrap: wrap;
}
.site-nav__auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.84);
}
.site-nav__auth--primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: #fff !important;
    border-color: transparent;
}
.site-nav__auth--primary:hover {
    color: #fff !important;
    border-bottom-color: transparent !important;
}
.site-nav__auth--logout {
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 12px;
}
.site-nav__user {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    padding: 4px 0;
}
a.course-item {
    text-decoration: none;
    color: inherit;
}
a.course-item:hover {
    text-decoration: none;
    color: inherit;
}
.course-item--nolink {
    cursor: default;
}
.hero__link--soft {
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    border: 2px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
}
.hero__link--soft:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
}

/* Hero compact variant */
.hero--compact {
    padding: 48px 0 40px;
}
.hero--compact .hero__title {
    font-size: 32px;
    margin-bottom: 16px;
}
.hero--compact .hero__intro {
    font-size: 15px;
}

/* Hero about section */
.hero__about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(79, 70, 229, 0.15);
}
.hero__about-name,
.hero__about-exp {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    padding: 6px 14px;
    border-radius: 999px;
}
.hero__about-email {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.hero__about-email:hover {
    color: var(--primary);
}

/* Hero courses tags */
.hero__courses {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.hero__courses-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 4px;
}
.hero__courses span:not(.hero__courses-label) {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    transition: all 0.2s;
}
.hero__courses span:not(.hero__courses-label):hover {
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .site-header .container {
        align-items: flex-start;
    }
    .site-nav {
        row-gap: 12px;
    }
    .site-nav__auth {
        width: auto;
    }
    .hero--compact {
        padding: 32px 0 28px;
    }
    .hero--compact .hero__title {
        font-size: 24px;
    }
    .hero__about {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Tool card link style */
a.tool-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.tool-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Insights Section */
.insights-section {
    padding: 32px 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(236, 72, 153, 0.02) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.insights-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.insights-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.insights-more:hover {
    color: var(--accent);
}

.insights-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.insight-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.2s ease;
}

.insight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.insight-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.insight-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 12px;
}

@media (max-width: 768px) {
    .insights-section {
        padding: 24px 0;
    }
    .insights-feed {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .insight-item {
        padding: 16px;
    }
    .insight-text {
        font-size: 14px;
    }
}

/* Page Hero */
.page-hero {
    padding: 48px 0 32px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px 0;
}

.page-hero__desc {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* Insights Timeline Page */
.insights-page {
    padding: 48px 0 64px;
}

.insights-timeline {
    max-width: 720px;
    margin: 0 auto;
}

.timeline-month {
    margin-bottom: 40px;
}

.timeline-month__label {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-left: 24px;
}

.timeline-month__items {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid rgba(79, 70, 229, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.timeline-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.timeline-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.timeline-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 12px;
}

/* Insights Stats */
.insights-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 32px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 32px 0 24px;
    }
    .page-hero__title {
        font-size: 24px;
    }
    .insights-page {
        padding: 32px 0 48px;
    }
    .timeline-month__items {
        padding-left: 24px;
    }
    .timeline-dot {
        left: -29px;
    }
    .timeline-card {
        padding: 16px 20px;
    }
    .timeline-text {
        font-size: 15px;
    }
    .insights-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .stat-card {
        width: 100%;
        max-width: 200px;
    }
}

/* 页面访问统计 */
.page-stats {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted, #999);
    letter-spacing: 0.3px;
}
.page-stats span {
    white-space: nowrap;
}
