
/* === Storyline Theme CSS for sunjianyin.com === */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #007acc;
    --dark-color: #1a1a1a;
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f9f9f9;
    --white-color: #fff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: var(--white-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.site-header .site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    letter-spacing: 2px;
}

.site-header .site-tagline {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* --- Main Content --- */
.main-content {
    padding: 60px 0;
}

h2.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    top: 35px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: var(--white-color);
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--light-text-color);
}

.timeline-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}
.timeline-link:hover {
    text-decoration: underline;
}


/* --- About Section --- */
.about-section {
    background: var(--white-color);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.about-content p {
    margin-bottom: 1.5em;
}

/* --- Latest Posts Section --- */
.latest-posts {
    padding: 60px 0;
}
.post-list {
    list-style: none;
    padding: 0;
}
.post-item {
    background: var(--white-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}
.post-item:hover {
    transform: translateY(-5px);
}
.post-item a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
}
.post-item .post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

.all-posts-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--light-text-color);
}
.site-footer a {
    color: var(--light-text-color);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--primary-color);
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 0;
    }
}

