/* 仅针对 #article 模块 */
#article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* 目 details 美化 */
#article details[open] {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e1e4e8;
}

#article details[open] summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    cursor: pointer;
}

#article details[open] summary::marker {
    color: #4a6baf;
}

#article details[open] ol {
    columns: 2;
    column-gap: 40px;
    padding-left: 20px;
}

#article details[open] li {
    margin-bottom: 8px;
    break-inside: avoid;
}

#article details[open] a {
    color: #4a6baf;
    text-decoration: none;
    transition: color 0.2s;
}

#article details[open] a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* H2 标题 */
#article h2 {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 12px 18px;
    margin: 20px 0 10px;
    background: #2c2c2c;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

#article h2::after {
    content: '';
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    animation: title-shine 2.5s infinite;
}

@keyframes title-shine {
    0% { left: -50px; }
    100% { left: 110%; }
}

/* H3 标题 */
#article h3 {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 14px;
    margin: 15px 0 8px;
    background: #444444;
    border-left: 5px solid #ff9900;
    border-radius: 6px;
    color: #f5f5f5;
    line-height: 1.2;
}

/* strong 加且有底色 */
#article strong {
    color: #2c3e50;
    font-weight: 600;
    background-color: rgba(138, 180, 248, 0.1);
    padding: 0 4px;
    border-radius: 3px;
}

/* 段落 */
#article p {
    margin: 0 0 1em 0;
    line-height: 1.5;
}

/* 图片美化 */
#article img {
    max-width: 85%;
    aspect-ratio: 171 / 50;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 25px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: block;
}

/* 超链接样式 */
#article a {
    color: #ff6600;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

#article a:hover {
    color: #ff3300;
    border-bottom-color: rgba(255, 51, 0, 0.6);
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.15), rgba(255, 51, 0, 0.15));
    border-radius: 3px;
    padding: 0 2px;
}

#article a:visited {
    color: #cc5200;
    border-bottom-color: rgba(204, 82, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #article details[open] ol {
        columns: 1;
    }

    #article h2 {
        font-size: 1.5rem;
    }

    #article h3 {
        font-size: 1.2rem;
    }

    #article img {
        max-width: 100%;
        aspect-ratio: auto;
    }
}
