/* code1-unique.css */
/* 您提供的所有CSS代码都已保留 */
.title-text {
    font-family: 'MaintitleFont', 'KaiTi', 'SimSun', sans-serif;
    color: #333;
}

body {
    background-color: #fff; /* MODIFIED: Slightly off-white background for better card contrast */
}

.main-content-page {
    background-color: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    border-radius: 12px; /* Rounded corners for the card */
    margin-top: 60px; /* 距离导航栏远一点 */
    padding-top: 20px; /* 卡片内部的顶部留白，让标题不至于太贴边 */
    padding-bottom: 30px; /* 卡片底部的留白 */
    margin-left: 100px; /* 增加左右边距，使卡片“小一点” */
    margin-right: 100px;
}

.article-list-section {
    padding-top: 20px; /* "文章荟萃"标题距离卡片顶部更近 */
    padding-bottom: 0; /* Removed bottom padding as main-content-page has it */
}

.page-title-center { 
    text-align: center;
}

.article-list-section h2.page-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-family: 'MaintitleFont', 'KaiTi', 'SimSun', sans-serif;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.article-card img.placeholder-image, .placeholder-image {
    width: 100%; height: 200px; background-color: #e9ecef;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 1.2em;
}
.article-content h3 a { text-decoration: none; color: var(--theme-green); }
.article-meta { margin-bottom: 15px; }
.read-more-link { display: inline-block; color: var(--theme-green); text-decoration: none; font-weight: bold; }

.pagination {
    margin-bottom: 30px; /* Adjusted from original, ensure enough space if main-content-page padding-bottom is small */
}

#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#loading-overlay.visible { opacity: 1; visibility: visible; }
.spinner {
    border: 6px solid #f3f3f3; border-top: 6px solid var(--theme-green);
    border-radius: 50%; width: 50px; height: 50px;
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loading-overlay p { font-size: 1.2em; color: #333; }

/* Responsive Styles */
@media (max-width: 1200px) { /* Intermediate step for larger tablets / smaller desktops */
    .main-content-page {
        margin-left: 50px;
        margin-right: 50px;
    }
}

@media (max-width: 768px) {
    body {
        background-color: #ffffff; /* On mobile, can revert to white if card distinction is less important */
    }
    .main-content-page {
        margin-left: 10px; /* Smaller margins for mobile */
        margin-right: 10px;
        margin-top: 30px;   /* Reduced margin-top for mobile */
        padding-top: 15px;
        padding-bottom: 20px;
        border-radius: 10px;
    }

    .article-list-section {
        padding-top: 10px; /* Further reduce padding for title on mobile */
    }
    .article-list-section h2.page-title {
        font-size: 2em; /* Adjusted from 2.5em */
        margin-bottom: 30px;
    }
    .footer-left p { font-size: 0.85em; }
}

@media (max-width: 359px) {
    .article-list-section h2.page-title { font-size: 1.8em; }
    .articles-grid { grid-template-columns: 1fr; }
}

/* 为Markdown生成的内容添加一些基本样式 */
.article-body-content {
    margin-top: 30px;
    font-size: 1.1em;
    line-height: 1.8;
}
.article-body-content h1,
.article-body-content h2,
.article-body-content h3,
.article-body-content h4,
.article-body-content h5,
.article-body-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333;
    font-family: 'MaintitleFont', 'KaiTi', 'SimSun', sans-serif;
}
.article-body-content h1 { font-size: 2.2em; }
.article-body-content h2 { font-size: 1.8em; }
.article-body-content h3 { font-size: 1.5em; }
.article-body-content p {
    margin-bottom: 1.2em;
}
.article-body-content img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.article-body-content ul,
.article-body-content ol {
    margin-left: 20px;
    margin-bottom: 1.2em;
}
.article-body-content li {
    margin-bottom: 0.5em;
}
.article-body-content blockquote {
    border-left: 4px solid var(--theme-green-lighter, #a7d7a9);
    padding-left: 15px;
    margin: 1.5em 0;
    color: #555;
    font-style: italic;
    background-color: #f9f9f9;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 4px 4px 0;
}
.article-body-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.2em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}
.article-body-content code {
    background-color: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}
.article-body-content pre code {
     background-color: transparent; /* pre内的code不需要额外背景 */
     padding: 0;
     border-radius: 0;
     font-size: inherit; /* 继承pre的字体大小 */
}
.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
}
.article-body-content th,
.article-body-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.article-body-content th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.article-body-content a {
    color: var(--theme-green, #28a745);
    text-decoration: none;
}
.article-body-content a:hover {
    text-decoration: underline;
}
.article-meta-info {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.article-category-title {
    color: #777;
    text-decoration: none;
}

/* BEGIN: Copyright Notice Styles (Original) */
.article-copyright-notice {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    text-align: left;
}
.article-copyright-notice p { margin-bottom: 10px; }
.article-copyright-notice p:last-child { margin-bottom: 0; }
.article-copyright-notice a { color: var(--theme-green, #28a745); text-decoration: none; }
.article-copyright-notice a:hover { text-decoration: underline; }
/* END: Copyright Notice Styles */

/* From Uiverse.io by kennyotsu */ 
/* RIP Uiverse points, welcome Creator points! */
.card-id567 {
  width: 190px;
  height: 190px;
  background: rgb(255, 255, 255);
  border-style: solid;
  border-width: 2px;
  border-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms ease;
  animation: 8s thumb-thumb infinite;
}
.card-id567 svg path { transition: 300ms ease; stroke: rgb(20, 20, 20); opacity: 0; }
.bold-567 { font-weight: bold; }
.blurry-splash {
  position: absolute; inset: 0; width: 60px; margin: 0 auto; height: 60px;
  border-radius: 1rem; z-index: -1; opacity: 70%; filter: blur(15px);
  background: linear-gradient(120deg, rgb(119, 0, 255), rgb(22, 94, 250), rgb(44, 226, 250));
}
.prompt-id567 { position: absolute; color: rgb(29, 29, 29); text-align: center; }
.really-small-text { text-align: center; width: 100%; position: absolute; font-size: 8px; margin-top: 10px; opacity: 0.5; }
.card-id567:hover { cursor: none; }
.card-id567:hover .prompt-id567 { transition: 300ms ease; opacity: 0; }
.token-container { animation: 2s spinny-token-yayyy infinite; margin-bottom: 10px; }
.prompt-id567 svg path { stroke: none; opacity: 1; }
.card-id567:hover svg path { opacity: 1; }
@keyframes spinny-token-yayyy { 0% { transform: perspective(200px) rotateY(0deg); } 100% { transform: perspective(200px) rotateY(360deg); } }
@keyframes thumb-thumb { 0%, 10%, 100% { transform: scale(100%); } 5% { transform: scale(103%); } 7% { transform: scale(97%); } }

/* --- BEGIN: ADDED CSS FOR LAYOUT --- */
.details-footer-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Space between notice and QR code */
    margin-top: 40px; /* Space above the entire section */
    padding-top: 20px; /* Space below the dividing line */
    border-top: 1px solid #eee; /* Dividing line */
}
.article-copyright-notice {
    flex: 1; /* Allows the notice to take up available space */
    min-width: 300px; /* Prevents it from getting too narrow on medium screens */
    margin-top: 0;
    padding-top: 0;
    border-top: none; /* The container now has the border */
}
.card-id567 {
    flex-shrink: 0; /* Prevents the QR code card from shrinking */
}

/* Responsive adjustment for the new container */
@media (max-width: 768px) {
    .details-footer-container {
        flex-direction: column; /* Stack them vertically on small screens */
        align-items: center;    /* Center them when stacked */
    }
    .article-copyright-notice {
        min-width: 100%; /* Allow it to take full width */
        text-align: center; /* Center text when stacked */
    }
}
/* --- END: ADDED CSS FOR LAYOUT --- */