@import url('/css/common.css');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}

.progress-text {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}

/* 文章页面样式 */
header {
    background-color: black;
    height: 80px;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}

header h1 {
    color: white;
    position: absolute;
    left: 120px;
    top: 0;
    line-height: 80px;
    font-size: 1.5rem;
    margin: 0;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header ul {
    position: absolute;
    right: 5vw;
    top: 0;
    line-height: 80px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    margin-right: 4vw;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

header a:hover {
    color: #11cb5f;
}

.menu {
    display: none;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.7;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid #e9ecef;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #6c757d;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    color: #11cb5f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f5;
    font-weight: 600;
}

.article-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-text:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #0099ff, #11cb84);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #11cb5f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: #6c757d;
    font-size: 0.95rem;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.action-btn {
    background: #11cb5f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #0fa84c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 203, 95, 0.3);
}

.action-btn.secondary {
    background: #6c757d;
}

.action-btn.secondary:hover {
    background: #5a6268;
}

/* 文章内容富文本样式 */
.article-content pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid #eaeef2;
    margin: 1.5em 0;
}

.comment-widget {
    margin-top: 2.5rem;
    padding: 1.2rem;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background-color: #fafbfc;
}

.comment-widget h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.comment-widget form {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-widget input,
.comment-widget textarea,
.comment-widget button {
    font-family: inherit;
}

.comment-widget input,
.comment-widget textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.65rem 0.8rem;
}

.comment-widget textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-widget .comment-list {
    margin: 0;
    list-style: none;
    padding: 0;
    max-height: 440px;
    overflow-y: auto;
}

.comment-widget .comment-list li {
    border-bottom: 1px solid #e2e6ea;
    padding: 0.75rem 0;
}

.comment-widget .comment-list li:last-child {
    border-bottom: none;
}

.comment-widget .comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.comment-widget .comment-body {
    color: #343a40;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-widget .comment-empty,
.comment-widget .comment-error {
    color: #6c757d;
    font-size: 0.95rem;
    padding: 0.75rem 0.35rem;
}

.comment-widget .comment-submit {
    background: #11cb5f;
    border: 0;
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Giscus 评论区样式 */
#comments {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 1rem;
    background-color: #fafbfc;
    clear: both;
    position: relative;
}

#comments iframe {
    border-radius: 8px;
    width: 100%;
    border: none;
}

.comment-widget .comment-submit:hover {
    background: #0fa84c;
}

.article-content code {
    background: #f0f2f5;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #d14;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: #f9fafc;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    color: #2c3e50;
    font-style: normal;
}

.article-content blockquote p {
    margin: 0.5em 0;
}

.article-content hr {
    border: none;
    border-top: 2px dashed #d0d7de;
    margin: 2em 0;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
}

.article-content h2 {
    margin-top: 2em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5em;
}

.article-content h3 {
    margin-top: 1.5em;
    color: #2d3748;
}

.article-content ul,
.article-content ol {
    padding-left: 1.8em;
}

.article-content li {
    margin: 0.5em 0;
}

.article-content a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 页脚通用样式 */
footer {
    background-color: #000000;
    color: #ffffff;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-top: auto;
    flex-shrink: 0;
}

footer a {
    background-color: #000000;
    color: #ffffff;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-top: auto;
    flex-shrink: 0;
    text-decoration: none;
}

/* ========== 移动端优化 ========== */
@media screen and (max-width: 768px) {
    /* 导航菜单移动端样式 */
    header ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        padding: 10px 0;
        z-index: 1000;
    }

    header ul.show {
        display: flex;
    }

    header li {
        display: block;
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }

    header h1 {
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.3rem;
    }

    .menu {
        display: block;
        background-color: transparent;
        color: white;
        font-size: 24px;
        position: absolute;
        top: 15px;
        left: 20px;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    /* 原有文章内容移动端样式 */
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 200px;
        justify-content: center;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .article-text {
        font-size: 1rem;
    }
}