/* Global Resets and Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Light grayish blue background */
    color: #333e48; /* Darker text for better contrast */
    font-size: 16px;
}

a {
    color: #007bff; /* Primary accent color (blue) */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header and Navigation */
header {
    background: #ffffff; /* White header */
    color: #333e48;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid #e1e4e8; /* Light border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #333e48;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Assuming an 'active' class can be added预算 */
    color: #007bff;
}

/* Main Content Area */
main {
    padding: 30px 20px;
    max-width: 900px; /* Slightly wider for more content */
    margin: 30px auto;
}

h1, h2, h3, h4, h5, h6 {
    color: #24292e; /* GitHub-like dark heading color */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 0.5em;
    margin-bottom: 1.2em;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2em;
}

ul, ol {
    padding-left: 25px;
    margin-bottom: 1.2em;
}

li {
    margin-bottom: 0.5em;
}

/* Card-like styling for entries/articles */
.card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.045);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.075);
}

/* Changelog Specific Styles */
.changelog-entry { /* Inherits from .card */
    /* Specific overrides for changelog-entry if needed */
}

.changelog-entry h2 {
    margin-top: 0; /* Reset top margin for h2 inside card */
    margin-bottom: 8px;
    font-size: 1.6rem; /* Slightly smaller for version titles */
    color: #007bff;
}

.changelog-entry .date {
    font-size: 0.9em;
    color: #6a737d; /* GitHub-like secondary text color */
    margin-bottom: 15px;
    display: block;
}

/* Documentation Specific Styles */
article { /* Inherits from .card */
     /* Specific overrides for article if needed */
}

article h2 {
    margin-top: 0;
     border-bottom: 1px solid #eaecef;
     padding-bottom: 0.3em;
}

article h3 {
    margin-top: 1.8em;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.2em;
}


/* Code Blocks */
pre {
    background: #2d2d2d; /* Dark background for code blocks */
    color: #f8f8f2;     /* Light text for code blocks */
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9em; /* Slightly smaller for inline code */
}

pre code {
    font-size: 1em; /* Reset for code inside pre to match pre's font-size */
    background: none;
    padding: 0;
}

/* Inline code */
p code, li code, table code {
    background-color: rgba(27,31,35,0.07);
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    border-radius: 3px;
}


/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #6a737d;
    font-size: 0.9em;
    border-top: 1px solid #e1e4e8;
}

/* Utility classes */
.text-center {
    text-align: center;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mt-0 {
    margin-top: 0 !important;
}

/* Basic responsiveness */
@media (max-width: 768px) {
    main {
        margin: 20px auto;
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .changelog-entry h2 {
        font-size: 1.4rem;
    }

    header nav ul li {
        margin: 0 10px;
    }
    header nav ul li a {
        font-size: 1rem;
    }
}
