/* Page-specific styles extracted from html/art/detail.html; kept separate to allow browser caching. */
/* --- extracted styles from html/art/detail.html --- */
.article-page {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px;
    color: var(--zy-color);
    box-sizing: border-box;
}

.article-page h1 {
    font-size: 28px;
    line-height: 1.5;
    margin: 0 0 14px;
    color: var(--zy-color);
}

.article-meta {
    font-size: 13px;
    color: var(--zy-gray);
    margin-bottom: 22px;
}

.article-meta a {
    color: var(--zy-hover);
    text-decoration: none;
}

.article-content {
    font-size: 18px;
    line-height: 2;
    overflow-wrap: anywhere;
    color: #fff;
}

.article-content p,
.article-content span,
.article-content div,
.article-content li {
    color: #fff;
}

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

/* 阅读设置：字体大小调节 */
.reading-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid rgba(128,128,144,.25);
    border-radius: 10px;
    background: var(--zy-bggray, rgba(128,128,144,.08));
}
.reading-tools-label {
    margin-right: 4px;
    color: var(--zy-gray, #999);
    font-size: 13px;
}
.reading-tools button {
    min-width: 36px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(128,128,144,.35);
    border-radius: 7px;
    background: transparent;
    color: var(--zy-color, #fff);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.reading-tools button:hover,
.reading-tools button:focus-visible {
    border-color: var(--zy-hover, #22c55e);
    outline: none;
}
.reading-tools .reading-reset {
    margin-left: auto;
    color: var(--zy-hover, #22c55e);
}
.reading-size-value {
    min-width: 42px;
    color: var(--zy-gray, #999);
    font-size: 12px;
    text-align: center;
}

/* 随机推荐标题 */
.guess-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 16px;
    font-size: 22px;
    line-height: 1.5;
    color: var(--zy-color);
}

.guess-title::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #22c55e;
    flex-shrink: 0;
}

/* 推荐文章列表 */
.article-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.article-result {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    padding: 16px 18px;
    border: 1px solid #363640;
    border-radius: 10px;
    text-decoration: none;
    color: var(--zy-color);
    background: var(--zy-bggray);
    box-sizing: border-box;
    transition: border-color .2s, transform .2s;
}

.article-result:hover {
    border-color: var(--zy-hover);
    transform: translateY(-2px);
}

.article-result h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--zy-color);
    overflow-wrap: anywhere;
}

/* 返回按钮 */
.back-prev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 8px 18px;
    background: var(--zy-hover, #22c55e);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.back-prev-btn:hover {
    opacity: .85;
    color: #fff;
}

/* 去掉文章页外层大框 */
.article-page,
.article-page > .container,
.article-page .container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* 平板及手机 */
@media (max-width: 700px) {
    .article-page {
        margin: 20px auto;
    }

    .article-page h1 {
        font-size: 22px;
    }

    .guess-title {
        font-size: 20px;
        margin-top: 26px;
    }

    .article-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .article-result {
        min-height: 58px;
        padding: 12px;
    }

    .article-result h2 {
        font-size: 14px;
    }
}

/* 小屏手机 */
@media (max-width: 420px) {
    .article-results {
        grid-template-columns: 1fr;
    }
}
