/* === 追加样式 for archive.html === */

/* Archive Page Content Area */
.archive-page-content {
    /* Inherits base padding/width from .content-container */
    /* Optional: Add specific styling if needed, e.g., max-width */
     max-width: 1200px; /* Slightly wider than post content, narrower than full width */
     margin-left: auto;
     margin-right: auto;
     background-color: #fff; /* Optional: White background */
     padding: 30px 40px;
     border-radius: 12px;
     border: 1px solid #e5e5e7;
     box-shadow: 0 4px 12px rgba(0,0,0,0.05);
     margin-bottom: 30px; /* Space before footer */
}

/* Page Title Styling (Consistent) */
.page-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1d1d1f;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e7;
}

.archive-intro {
    font-size: 15px;
    color: #6e6e73;
    margin-bottom: 30px;
}

/* Archive List Container */
.archive-list {
    margin-top: 20px;
}

/* Year Group Section */
.archive-year-group {
    margin-bottom: 40px; /* Space between year groups */
}
.archive-year-group:last-child {
    margin-bottom: 0;
}

/* Year Heading */
.archive-year {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    padding-bottom: 8px;
    /* Optional: Border or different background */
    border-bottom: 2px solid #0066cc;
    display: inline-block; /* Keep border only as wide as text */
}
.archive-year i {
    margin-right: 8px;
    color: #0066cc;
}

/* List of Posts within a Year */
.archive-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Post Item */
.archive-post-item {
    display: flex;
    align-items: baseline; /* Align date and title text */
    padding: 10px 0;
    border-bottom: 1px dashed #eee; /* Subtle separator */
    transition: background-color 0.2s ease; /* Hover effect */
}
.archive-post-item:hover {
    background-color: #f9f9f9; /* Slight highlight on hover */
}
.archive-post-item:last-child {
    border-bottom: none; /* Remove border from last item in group */
}


/* Post Date */
.archive-post-date {
    font-size: 14px;
    color: #6e6e73;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent date from shrinking */
    font-family: 'SFMono-Regular', Consolas, Menlo, Courier, monospace; /* Monospaced font */
    width: 55px; /* Fixed width for alignment */
    text-align: right;
}

/* Post Title */
.archive-post-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    flex-grow: 1; /* Allow title to take remaining space */
}
.archive-post-title:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Optional: Post Meta (Category/Tags) */
.archive-post-meta {
    font-size: 13px;
    color: #888;
    margin-left: 15px;
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Prevent wrapping */
}

/* 代码块整体美化 */
/*pre.line-numbers {*/
/*    background: #272822;*/
/*    border-radius: 6px;*/
/*    padding: 1em;*/
/*    margin: 1.2em 0;*/
/*    font-size: 1em;*/
/*    overflow: auto;*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
/*}*/

/*!* 代码字体 *!*/
/*pre code {*/
/*    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'monospace';*/
/*    color: #f8f8f2;*/
/*    background: none;*/
/*    font-size: 1em;*/
/*}*/

/* Prism 行号样式可自定义 */
pre.line-numbers .line-numbers-rows > span:before {
    color: #888;
}
/* === Responsive Adjustments for archive.html === */

@media (max-width: 768px) {
    .archive-page-content {
        padding: 25px 30px;
        max-width: 95%; /* Allow more width */
    }

    .page-title {
        font-size: 24px;
    }

    .archive-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .archive-year {
        font-size: 18px;
    }

    .archive-post-item {
        padding: 8px 0;
    }

    .archive-post-date {
        font-size: 13px;
        width: 50px; /* Slightly reduce width */
        margin-right: 10px;
    }

    .archive-post-title {
        font-size: 15px;
    }

    .archive-post-meta {
        font-size: 12px;
        margin-left: 10px;
    }
}


@media (max-width: 480px) {
     .archive-page-content {
        padding: 20px 15px;
        border-radius: 10px;
        border: none; /* Remove border on smallest screens */
        box-shadow: none; /* Remove shadow */
        background-color: transparent; /* Or keep white if preferred */
    }

    .page-title {
        font-size: 21px;
         padding-bottom: 10px;
    }

     .archive-intro {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .archive-year-group {
        margin-bottom: 30px;
    }

    .archive-year {
        font-size: 17px;
        margin-bottom: 15px;
    }
     .archive-year i {
        margin-right: 5px;
     }


    .archive-post-item {
        padding: 8px 0;
        /* Optional: Stack date and title if really needed, but horizontal usually okay */
        /* flex-direction: column; */
        /* align-items: flex-start; */
    }

    .archive-post-date {
        font-size: 12px;
        width: 45px; /* Further reduce */
        margin-right: 8px;
    }

    .archive-post-title {
        font-size: 14px;
        line-height: 1.4; /* Adjust line height */
    }

     .archive-post-meta {
        /* Hide meta on smallest screens if too crowded */
        /* display: none; */
         font-size: 11px;
         margin-left: 8px;
    }
}

/* === End of archive.html specific styles === */
