/* 出海博客:在 asorn-open 样式之上的补充(导航链接、文字 logo、首页、文章页) */

/* 导航:li 内放真实 <a>,让爬虫能跟链接 */
.head .menu li.btn:not(.skin),
.head .menu-panel-content li.btn { padding: 0; }
.head li.btn > a {
    display: block;
    padding: 6px 16px;
    color: inherit;
    font-size: 12px;
}

/* 文字 logo */
.head .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}
.head .logo img { width: 20px; height: 20px; }
.head .logo span {
    font-size: 16px;
    font-weight: 700;
    color: #E8E8F6;
    letter-spacing: 1px;
}

/* 首页:文章卡片沿用原版 link-card 样式,只补长标题/摘要的截断 */
.index .hello .title-name { cursor: default; }
.quickly-link .link-card-item .info-title,
.quickly-link .link-card-item .info-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.quickly-link .link-card-item .icon-arrow { flex-shrink: 0; }

/* 首页文章卡片:封面 + 标题 + 简介,外观同原版「作品」卡片(.work .card-list) */
.post-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.post-cards .item {
    --circle-size: 600px;
    align-items: stretch;
    border-radius: 6px;
    background-color: #141419;
    box-shadow: 0 0 8px 0 rgba(10, 10, 14, .4);
}
.post-cards .item a {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px;
}
.post-cards .cover {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #1F1F26;
    opacity: .9;
    transition: opacity .2s;
}
.post-cards .cover > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.post-cards .cover-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(99, 97, 220, .28), transparent 60%),
                radial-gradient(circle at 80% 90%, rgba(232, 191, 172, .14), transparent 55%), #1A1A22;
}
.post-cards .cover-empty img { width: 44px; opacity: .5; }
.post-cards .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px 4px;
    opacity: .8;
    transition: opacity .2s;
}
.post-cards .name {
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    background: linear-gradient(180deg, #E8E8F6 0%, rgba(232, 232, 246, .72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.post-cards .desc { font-size: 12px; line-height: 20px; color: #B3B3C1; }
.post-cards .name, .post-cards .desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.post-cards .card-meta {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #62616F;
}
.post-cards .card-meta * { font-size: 12px; }
.post-cards .card-cat {
    padding: 1px 8px;
    border-radius: 9999px;
    line-height: 18px;
    color: #A29CD3;
    background: rgba(99, 97, 220, .1);
    border: 1px solid rgba(99, 97, 220, .2);
}
.post-cards .item a:hover .cover,
.post-cards .item a:hover .text { opacity: 1; transition: opacity .4s; }
.post-cards .item a:hover .cover > img { transform: scale(1.03); }
.home-more {
    display: inline-block;
    margin-top: 32px;
    font-size: 14px;
    color: #6361DC;
}
.empty-tip {
    font-size: 14px;
    line-height: 24px;
    color: #62616F;
    text-align: center;
}

/* 首页「文章分类」区块 */
.index .home-gap { margin-top: 80px; }

/* 文章页 / 关于页 */
.post {
    display: flex;
    justify-content: center;
    padding: 120px 40px 60px;
    min-height: calc(100vh - 100px);
}
.post article {
    width: 100%;
    max-width: 760px;
}
.post .crumb {
    font-size: 13px;
    color: #62616F;
    margin-bottom: 16px;
}
.post .crumb a { color: #B3B3C1; font-size: 13px; }
.post .crumb a:hover { color: #6361DC; }
.post article > h1 {
    font-size: 30px;
    line-height: 1.4;
    font-weight: 700;
    background: linear-gradient(180deg, #E8E8F6 0%, rgba(232, 232, 246, .72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.post .meta {
    margin: 12px 0 32px;
    font-size: 13px;
    color: #62616F;
}
.post .meta * { font-size: 13px; }

.post-body, .post-body * {
    font-size: 16px;
    line-height: 1.9;
    color: #B3B3C1;
}
.post-body > * + * { margin-top: 18px; }
.post-body h2, .post-body h2 * {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
    color: #E8E8F6;
}
.post-body h2 { margin-top: 40px; }
.post-body h3, .post-body h3 * {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: #E8E8F6;
}
.post-body h3 { margin-top: 28px; }
.post-body strong { color: #E8E8F6; font-weight: 600; }
.post-body a { color: #8b89f0; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: #A29CD3; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul > li { list-style: disc; }
.post-body ol > li { list-style: decimal; }
.post-body li + li { margin-top: 6px; }
.post-body blockquote {
    padding: 12px 16px;
    border-left: 3px solid #6361DC;
    background: #141419;
    border-radius: 0 6px 6px 0;
}
.post-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1F1F26;
    color: #E8E8F6;
}
.post-body pre {
    padding: 14px 16px;
    border-radius: 6px;
    background: #141419;
    overflow-x: auto;
}
.post-body pre code { padding: 0; background: none; font-size: 14px; line-height: 1.7; }
.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.post-body hr {
    height: 1px;
    background: #4E4E64;
    margin: 32px 0;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}
.post-body th, .post-body td {
    padding: 8px 12px;
    border: 1px solid #2a2a33;
    text-align: left;
    font-size: 14px;
}
.post-body th { color: #E8E8F6; background: #141419; }

/* 源码模式正文:样式由文章自带(选择器已加 .post-html 前缀)。
   这里只把原版 * 重置(12px、去列表符号)改回正常默认值,全部零优先级,文章样式一定能盖过 */
.post article.wide { max-width: 1080px; }
:where(.post-html) { font-size: 16px; line-height: 1.8; color: #B3B3C1; overflow-wrap: anywhere; }
:where(.post-html) * { font-size: inherit; }
:where(.post-html) :where(p, ul, ol, dl, blockquote, pre, table, figure) { margin-block: 0 1em; }
:where(.post-html) :where(h1, h2, h3, h4, h5, h6) { color: #E8E8F6; font-weight: 700; line-height: 1.4; margin-block: 1.2em .6em; }
:where(.post-html) h1 { font-size: 2em; }
:where(.post-html) h2 { font-size: 1.5em; }
:where(.post-html) h3 { font-size: 1.25em; }
:where(.post-html) h4 { font-size: 1.1em; }
:where(.post-html) :where(strong, b) { font-weight: 700; }
:where(.post-html) :where(em, i) { font-style: italic; }
:where(.post-html) :where(ul, ol) { padding-left: 1.4em; }
:where(.post-html) ul > li { list-style: disc; }
:where(.post-html) ol > li { list-style: decimal; }
:where(.post-html) a { color: #8b89f0; text-decoration: underline; }
:where(.post-html) img { max-width: 100%; height: auto; }
:where(.post-html) :where(code, pre, kbd) { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
:where(.post-html) pre { overflow-x: auto; }
:where(.post-html) :where(th, td) { padding: 6px 10px; }
:where(.post-html) small { font-size: .85em; }

.post .meta a { color: #A29CD3; }
.post .meta a:hover { color: #6361DC; }

/* 文章页底部:同分类文章 */
.post-related {
    margin-top: 48px;
    padding: 20px 24px;
    border-radius: 6px;
    background: #141419;
    box-shadow: 0 0 8px 0 rgba(10, 10, 14, .4);
}
.post-related h2 { font-size: 15px; font-weight: 600; color: #E8E8F6; margin-bottom: 12px; }
.post-related li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 0;
}
.post-related li + li { border-top: 1px dashed #26262f; }
.post-related a { font-size: 14px; line-height: 22px; color: #B3B3C1; }
.post-related a:hover { color: #6361DC; }
.post-related time { flex-shrink: 0; font-size: 12px; color: #62616F; }

.post-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #1F1F26;
}
.post-related + .post-nav { margin-top: 32px; }
.post-nav a { font-size: 14px; color: #6361DC; }

@media screen and (max-width: 768px) {
    .head { padding: 0 16px; }
    .index, .post { padding-left: 16px; padding-right: 16px; }
    .post { padding-top: 104px; }
    .post article > h1 { font-size: 24px; }
    .footer { padding-left: 16px; padding-right: 16px; }
}

