/*!
 * Kratos-plus 皮肤公共骨架 skin-base.css
 *
 * 从 morandi.css 抽取的 shared block，选择器前缀由 html[data-weekday-skin="morandi"]
 * 改为 html[data-weekday-skin]（特异性保持 (0,2,2)），覆盖所有皮肤。
 *
 * 加载顺序（inc/theme-core.php & inc/theme-weekday-skin.php）：
 *   style.css → skins/components.css → skin-base.css → skins/<slug>.css
 * 同特异性下后加载者胜，所以各皮肤文件（含 6 个 bespoke：bookfold/bourse/
 * ebook/retro/vermilion/web1998）里 html[data-weekday-skin="<slug>"] 的本地规则
 * 会按预期覆盖本文件。
 *
 * 属性值全部走令牌（--kr-skin-* / --kr-shape-*）；需要调色时改令牌，不改本文件。
 */

/* 列表 marker 的半行高参照(所有皮肤共享,原本 15 个皮肤文件各自重复定义) */
@property --kra-marker-mid {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

/* 默认令牌：accent 填充上的前景色。皮肤如需在亮色 accent 上使用深色文本（如 bourse 的鎏金底），
   在皮肤文件里重定义 --kr-skin-on-accent 即可。 */
html[data-weekday-skin] { --kr-skin-on-accent: #fff; }

html[data-weekday-skin]:not([data-theme="dark"]) body {
    background-color: var(--kr-skin-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main {
    background-color: var(--kr-skin-bg) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main p,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main ol,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main ul,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo p,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo ul {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main a,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo a {
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main a:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo a:hover {
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-header .banner .overlay {
    background-color: var(--kr-skin-banner-overlay);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .header .title a {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .header .title a:hover {
    color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .content,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .content p {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-meta {
    border-top-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-meta span,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-meta span > a {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-meta span > a:hover {
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .header .label {
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .a-post .header .label .label-arrow {
    border-left-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .article-panel .search-title {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations a,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations .current,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations .dots {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: var(--kr-shape-radius-sm);
    border: var(--kr-shape-border-strong);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: all .2s ease;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations a {
    background: var(--kr-skin-card-bg);
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations a:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations .current {
    background: var(--kr-skin-accent);
    color: var(--kr-skin-on-accent);
    border-color: transparent;
    font-weight: 600;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .board .paginations .dots {
    background: transparent;
    border-color: transparent;
    color: var(--kr-skin-muted);
    cursor: default;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .breadcrumb-box {
    border-bottom-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .header .meta {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .header .meta > span:not(:last-child):after {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content p {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .content h2.title {
    background-color: transparent;
    border-left: 0;
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .content h2.title::after {
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content blockquote {
    background: var(--kr-skin-quote-bg);
    border-left-color: var(--kr-skin-accent);
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content hr {
    border-top-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content table th,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content table td {
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content table tr:nth-child(2n) {
    background-color: var(--kr-skin-card-soft);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main thead {
    border-bottom-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .copyright span {
    background-color: var(--kr-skin-card-soft);
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .footer {
    border-top-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .footer .tags span,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .footer .tool span {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .footer .tags a {
    background-color: var(--kr-skin-tag-bg);
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .downbtn {
    border-color: var(--kr-skin-accent);
    background: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .downbtn:hover {
    background: var(--kr-skin-accent-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations span {
    margin: 0 !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations a span,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations .current span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px !important;
    border-radius: var(--kr-shape-radius-sm);
    border: var(--kr-shape-border-strong);
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    transition: all .2s ease;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations a span {
    background: var(--kr-skin-card-bg);
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations a span:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content .paginations .current span {
    background: var(--kr-skin-accent);
    color: var(--kr-skin-on-accent);
    border-color: transparent;
    font-weight: 600;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .post-navigation .nav-previous,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .post-navigation .nav-next {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .post-navigation .nav-previous a,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .post-navigation .nav-next a {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar .motto {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar .meta .name a {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar .share .btn-donate {
    border-color: var(--kr-skin-accent);
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar .share .btn-donate:focus,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .toolbar .share .btn-donate:hover {
    border-color: var(--kr-skin-accent);
    background-color: var(--kr-skin-accent);
    color: var(--kr-skin-on-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .title {
    border-bottom-color: var(--kr-skin-card-line);
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .list > li,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .children {
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .author_name,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .author_name a {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .content p,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .content p span {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .meta,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .info .meta a {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment .avatar img {
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) #commentpage a,
html[data-weekday-skin]:not([data-theme="dark"]) #commentpage .current,
html[data-weekday-skin]:not([data-theme="dark"]) #commentpage .dots {
    background: var(--kr-skin-card-bg, #fff);
    color: var(--kr-skin-accent);
    border-color: var(--kr-skin-border, rgba(0,0,0,0.08));
}

html[data-weekday-skin]:not([data-theme="dark"]) #commentpage a:hover,
html[data-weekday-skin]:not([data-theme="dark"]) #commentpage .current {
    background: var(--kr-skin-accent);
    border-color: transparent;
    color: var(--kr-skin-on-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) #commentpage .dots {
    background: transparent;
    border-color: transparent;
    color: var(--kr-skin-fg-muted, #999);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .input-group-text,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .form-control {
    background-color: var(--kr-skin-card-soft);
    border-color: var(--kr-skin-card-line);
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .form-control::placeholder {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea {
    border-color: var(--kr-skin-card-line);
    background-color: var(--kr-skin-card-soft);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea textarea {
    background-color: transparent;
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea textarea::placeholder {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .text-bar {
    background-color: var(--kr-skin-card-soft);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .addbtn,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .addbtn:hover {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .text-bar .smile {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .smile .smile-tabs {
    background: var(--kr-skin-card-soft);
    border-bottom-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .smile .smile-tabs .smile-tab {
    border-right-color: var(--kr-skin-card-line);
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .smile .smile-tabs .smile-tab.active {
    background: var(--kr-skin-card-bg);
    color: var(--kr-skin-heading);
    border-bottom-color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .text-bar .smile .smile-panel a {
    background-color: var(--kr-skin-card-soft);
    border-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .error {
    background-color: var(--kr-skin-card-soft);
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .btn-primary {
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .comments .comment-respond .comment-textarea .btn-primary:hover {
    background-color: var(--kr-skin-accent-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget {
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .title {
    border-bottom-color: var(--kr-skin-card-line);
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .title::after {
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-tags .item a,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_categories ul li a,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_archive ul li a,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item ul li a {
    color: var(--kr-skin-text);
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-tags .item a {
    background-color: var(--kr-skin-tag-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_categories ul li,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_archive ul li {
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-tags .item a:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_categories ul li:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_archive ul li:hover,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item ul li a:hover {
    background-color: var(--kr-skin-card-soft);
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_links .wfl-item {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_links .wfl-item:hover {
    background-color: var(--kr-skin-card-soft);
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .widget_links .wfl-desc {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-recommended .bookmark-item {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-recommended .bookmark-item:hover {
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .nav-tabs .nav-link {
    border-bottom-color: var(--kr-skin-card-line);
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .nav-tabs .nav-item.show .nav-link,
html[data-weekday-skin]:not([data-theme="dark"]) .nav-tabs .nav-link.active {
    background-color: transparent !important;
    color: var(--kr-skin-heading);
    border-bottom-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar tbody a {
    background: var(--kr-skin-card-soft);
    border-color: var(--kr-skin-accent);
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-comments .comments a:not(:last-child) {
    border-bottom-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-comments .comments .message {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-comments .comments .meta .author,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-comments .comments .meta .date {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item .ul-toc {
    border-left-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item .ul-toc::before,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item .ul-toc::after {
    border-color: var(--kr-skin-accent);
    background-color: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item ul li::before {
    border-color: var(--kr-skin-card-bg);
    background: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .sidebar .w-toc .item li:hover::before {
    background: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) input[type="text"],
html[data-weekday-skin]:not([data-theme="dark"]) input[type="email"],
html[data-weekday-skin]:not([data-theme="dark"]) input[type="url"],
html[data-weekday-skin]:not([data-theme="dark"]) input[type="search"],
html[data-weekday-skin]:not([data-theme="dark"]) input[type="password"],
html[data-weekday-skin]:not([data-theme="dark"]) textarea,
html[data-weekday-skin]:not([data-theme="dark"]) select {
    background-color: var(--kr-skin-card-soft);
    color: var(--kr-skin-text);
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-captcha-input {
    color: var(--kr-skin-text);
    background-color: var(--kr-skin-card-soft);
    border-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-captcha-input::placeholder {
    color: var(--kr-skin-muted);
    opacity: 1;          /* Firefox 默认 0.54，覆盖让 muted 色更稳定可见 */
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-captcha-input:focus {
    border-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-captcha-q {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .btn-search {
    border-color: var(--kr-skin-accent);
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .dropdown-item.active,
html[data-weekday-skin]:not([data-theme="dark"]) .dropdown-item:active {
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .page404 .content .action .back-prevpage {
    border-color: var(--kr-skin-accent);
    background-color: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .page404 .content .action .back-index {
    border-color: var(--kr-skin-card-line);
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .page404 .content .action .back-index:hover {
    background-color: var(--kr-skin-card-soft);
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer {
    background: var(--kr-skin-footer-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer p,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer p a {
    color: var(--kr-skin-footer-fg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer p a:hover {
    color: #fff;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .social a .kratos-fa-svg,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .social a > .kratos-fa-svg {
    color: var(--kr-skin-footer-fg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .social a:hover .kratos-fa-svg,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .social a:hover > .kratos-fa-svg {
    color: #fff;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-item {
    background: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-author {
    color: var(--kr-skin-heading);
    border-bottom-color: var(--kr-skin-card-line);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-author::before {
    background: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-text {
    color: var(--kr-skin-text);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-time {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-collapse-toggle {
    color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-collapse-toggle::after {
    border-top-color: var(--kr-skin-link);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-collapse-toggle:hover {
    color: var(--kr-skin-link-hover);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-header {
    background: var(--kr-skin-card-bg);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-header .kss-h-title {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-header .kss-h-title::before {
    background: var(--kr-skin-accent);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-header .kss-h-subtitle {
    color: var(--kr-skin-muted);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-back {
    background: var(--kr-skin-card-bg);
    border-color: var(--kr-skin-card-line);
    color: var(--kr-skin-muted) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo-back:hover {
    color: var(--kr-skin-link) !important;
    border-color: var(--kr-skin-accent);
    background: var(--kr-skin-card-soft);
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-page {
    background: var(--kr-skin-card-bg);
    border-color: var(--kr-skin-card-line);
    color: var(--kr-skin-link) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-page:hover {
    background: var(--kr-skin-accent);
    border-color: var(--kr-skin-accent);
    color: var(--kr-skin-on-accent) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-current {
    background: var(--kr-skin-accent);
    border-color: var(--kr-skin-accent);
    color: var(--kr-skin-on-accent) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-shuoshuo .kss-ellipsis {
    color: var(--kr-skin-muted) !important;
    background: transparent;
    border-color: transparent;
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article h1,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h1,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h2,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h3,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h4,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h5,
html[data-weekday-skin]:not([data-theme="dark"]) .k-main .details .article .content h6 {
    color: var(--kr-skin-heading);
}

html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .search,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .cmdk-launch,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .stumble,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .wechat,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .darkmode,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .skin-switcher,
html[data-weekday-skin]:not([data-theme="dark"]) .k-footer .f-toolbox .gotop.active {
    background: color-mix(in srgb, var(--kr-skin-accent) 55%, #ffffff 45%);
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-heart-shortcode.khs-scheme-parchment {
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-heart-shortcode.khs-scheme-parchment::before,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-heart-shortcode.khs-scheme-parchment::after {
    display: none !important;
}

/* 短代码卡片（kr-* 公共类）：统一柔和边框色。背景/圆角/阴影由 skins/components.css 与皮肤其他规则接管，保持零视觉回归 */
html[data-weekday-skin]:not([data-theme="dark"]) :is(.kr-hd, .kr-body, .kr-card) {
    background-color: var(--kr-skin-card-bg) !important;
    border: var(--kr-shape-border) !important;
    border-radius: var(--kr-shape-radius) !important;
    box-shadow: var(--kr-shape-shadow) !important;
}

/* 图标胶囊：柔和形态语言（低饱和底、圆角、软阴影） */
html[data-weekday-skin] {
    --kr-skin-icon-bg:     var(--kr-skin-card-soft);
    --kr-skin-icon-fg:     var(--kr-skin-heading);
    --kr-skin-icon-border: var(--kr-skin-card-line);
    --kr-skin-icon-radius: var(--kr-shape-radius-md);
    --kr-skin-icon-shadow: var(--kr-shape-shadow);
}
html[data-weekday-skin]:not([data-theme="dark"]) .kr-ico {
    border-radius: var(--kr-skin-icon-radius) !important;
    background:    var(--kr-skin-icon-bg) !important;
    color:         var(--kr-skin-icon-fg) !important;
    border: 1px solid var(--kr-skin-icon-border) !important;
    box-shadow:    var(--kr-skin-icon-shadow) !important;
}
html[data-weekday-skin]:not([data-theme="dark"]) .kr-ico > * {
    color: var(--kr-skin-icon-fg) !important;
}

/* 友链卡片 hover：保持柔和阴影（稍强的软阴影，与皮肤形态语言一致） */
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-friend-links .kfl-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .10) !important;
    border-color: var(--kr-skin-accent) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-friend-links .kfl-section-count {
    background: var(--kr-skin-bg) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-friend-links .kfl-input:focus {
    border-color: var(--kr-skin-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-friend-links .kfl-submit {
    background: var(--kr-skin-accent) !important;
    color: var(--kr-skin-on-accent) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-friend-links .kfl-submit:hover {
    background: var(--kr-skin-accent-hover) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-topcommenters .ktc-rank:not(.ktc-rank-medal) {
    background: var(--kr-skin-bg) !important;
    color: var(--kr-skin-text) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-topcommenters .ktc-count-num {
    color: var(--kr-skin-accent) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-topcommenters .ktc-count {
    border-left-color: var(--kr-skin-card-line) !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode.kas-scheme-parchment {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode.kas-scheme-parchment::before,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode.kas-scheme-parchment::after {
    display: none !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode .kas-pill,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode .kas-pill-count,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode .kas-total,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode .kas-section,
html[data-weekday-skin]:not([data-theme="dark"]) .kratos-archives-shortcode .kas-header {
    border-color: var(--kr-skin-card-line) !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-topcommenters .ktc-rank:not(.ktc-rank-medal) {
    background: rgba(255, 255, 255, .06) !important;
    color: var(--kr-fg, #d6d8db) !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-topcommenters .ktc-count-num {
    color: var(--kr-accent) !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-heart-shortcode.khs-scheme-parchment {
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-heart-shortcode.khs-scheme-parchment::before,
html[data-theme="dark"][data-weekday-skin] .kratos-heart-shortcode.khs-scheme-parchment::after {
    display: none !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-archives-shortcode.kas-scheme-parchment {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html[data-theme="dark"][data-weekday-skin] .kratos-archives-shortcode.kas-scheme-parchment::before,
html[data-theme="dark"][data-weekday-skin] .kratos-archives-shortcode.kas-scheme-parchment::after {
    display: none !important;
}

/* 暗夜卡片外壳兜底（Now / OTD / 短代码 kr-* 卡片） */
html[data-theme="dark"][data-weekday-skin] :is(.kr-hd, .kr-body, .kr-card) {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: var(--kr-shape-radius) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3) !important;
}

/* 暗夜 · Now 短代码内部字色 */
html[data-theme="dark"][data-weekday-skin] .kratos-now-header .knw-h-title,
html[data-theme="dark"][data-weekday-skin] .kratos-now .knw-hero-title,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history .knw-item-title { color: #e8e4ec !important; }
html[data-theme="dark"][data-weekday-skin] .kratos-now .knw-hero-content,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history .knw-item-content,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history .knw-item-day { color: #cfc9d1 !important; }
html[data-theme="dark"][data-weekday-skin] .kratos-now-header .knw-h-sub,
html[data-theme="dark"][data-weekday-skin] .kratos-now .knw-hero-ago,
html[data-theme="dark"][data-weekday-skin] .kratos-now .knw-hero-meta,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history .knw-item-time,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history .knw-item-meta,
html[data-theme="dark"][data-weekday-skin] .kratos-now-empty,
html[data-theme="dark"][data-weekday-skin] .kratos-now-history-title { color: #aaa !important; }
/* 暗夜 · 岁月同一天 */
html[data-theme="dark"][data-weekday-skin] .kratos-otd .kotd-title,
html[data-theme="dark"][data-weekday-skin] .kratos-otd .kotd-title-link { color: #e8e4ec !important; }
html[data-theme="dark"][data-weekday-skin] .kratos-otd .kotd-subtitle,
html[data-theme="dark"][data-weekday-skin] .kratos-otd .kotd-excerpt { color: #aaa !important; }
/* 暗夜 · 首页紧凑版 OTD（未挂 kr-* 公共类，需单独覆盖） */
html[data-theme="dark"][data-weekday-skin] .kratos-otd-compact {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: var(--kr-shape-radius) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3) !important;
}
html[data-theme="dark"][data-weekday-skin] .kratos-otd-compact .kotd-c-label,
html[data-theme="dark"][data-weekday-skin] .kratos-otd-compact .kotd-c-today,
html[data-theme="dark"][data-weekday-skin] .kratos-otd-compact .kotd-c-date { color: #aaa !important; }
html[data-theme="dark"][data-weekday-skin] .kratos-otd-compact .kotd-c-title-link { color: #e8e4ec !important; }

html[data-weekday-skin] body.is-kratos-archives-page .k-main .details,
html[data-weekday-skin] body.is-kratos-dashboard-page .k-main .details,
html[data-weekday-skin] body.is-kratos-heart-page .k-main .details,
html[data-weekday-skin] body.is-kratos-visitor-center-page .k-main .details,
html[data-weekday-skin] body.is-kratos-shuoshuo-page .k-main .details,
html[data-weekday-skin] body.is-kratos-topcommenters-page .k-main .details,
html[data-weekday-skin] body.is-kratos-friend-links-page .k-main .details,
html[data-weekday-skin] body.is-kratos-home-page .k-main .details,
html[data-weekday-skin] body.is-kratos-timeline-page .k-main .details,
html[data-weekday-skin] body.is-kratos-friend-feed-page .k-main .details,
html[data-weekday-skin] body.is-kratos-now-page .k-main .details {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

html[data-weekday-skin] body.is-kratos-archives-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-dashboard-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-heart-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-visitor-center-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-shuoshuo-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-topcommenters-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-friend-links-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-home-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-timeline-page .k-main .details::after,
html[data-weekday-skin] body.is-kratos-friend-feed-page .k-main .details::after {
    display: none !important;
}

html[data-weekday-skin]:not([data-theme="dark"]) {
    scrollbar-width: thin;
    scrollbar-color: var(--kr-skin-accent) var(--kr-skin-card-soft);
}

html[data-weekday-skin]:not([data-theme="dark"]) ::-webkit-scrollbar-thumb {
    background-color: var(--kr-skin-accent);
    border: var(--kr-shape-border);
    border-radius: 6px;
}

html[data-weekday-skin]:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover {
    background-color: var(--kr-skin-accent-hover, var(--kr-skin-accent));
}

html[data-weekday-skin]:not([data-theme="dark"]) ::-webkit-scrollbar-track {
    background-color: var(--kr-skin-card-soft);
    border: var(--kr-shape-border);
}

html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list),
html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list),
html[data-weekday-skin] .widget_recent_entries ul,
html[data-weekday-skin] .widget_recent_comments ul,
html[data-weekday-skin] .widget_pages ul,
html[data-weekday-skin] .widget_meta ul,
html[data-weekday-skin] .widget_rss ul,
html[data-weekday-skin] .widget_nav_menu ul,
html[data-weekday-skin] .widget_block ul {
    list-style: none;
    padding-left: 1.6em;
}

html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list) {
    counter-reset: kra-ol;
}

html[data-weekday-skin] .k-main .details .article .content pre ul,
html[data-weekday-skin] .k-main .details .article .content pre ol {
    list-style: none;
    padding-left: 0;
    counter-reset: none;
}

html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list) > li,
html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list) > li,
html[data-weekday-skin] .widget_recent_entries ul > li,
html[data-weekday-skin] .widget_recent_comments ul > li,
html[data-weekday-skin] .widget_pages ul > li,
html[data-weekday-skin] .widget_meta ul > li,
html[data-weekday-skin] .widget_rss ul > li,
html[data-weekday-skin] .widget_nav_menu ul > li,
html[data-weekday-skin] .widget_block ul > li {
    position: relative;
    /* 半行高：marker 与首行文字垂直居中的基准（行高 1.8 → 0.9em） */
    --kra-marker-mid: 0.9em;
    margin-bottom: 6px;
    padding-left: 0.4em;
}
/* 支持 lh 的浏览器改用真实半行高，皮肤若改动行高也能自动跟随 */
@supports (top: 0.5lh) {
html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list) > li,
html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list) > li,
html[data-weekday-skin] .widget_recent_entries ul > li,
html[data-weekday-skin] .widget_recent_comments ul > li,
html[data-weekday-skin] .widget_pages ul > li,
html[data-weekday-skin] .widget_meta ul > li,
html[data-weekday-skin] .widget_rss ul > li,
html[data-weekday-skin] .widget_nav_menu ul > li,
html[data-weekday-skin] .widget_block ul > li {
    --kra-marker-mid: 0.5lh;
}
}


html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list) > li::before,
html[data-weekday-skin] .widget_recent_entries ul > li::before,
html[data-weekday-skin] .widget_recent_comments ul > li::before,
html[data-weekday-skin] .widget_pages ul > li::before,
html[data-weekday-skin] .widget_meta ul > li::before,
html[data-weekday-skin] .widget_rss ul > li::before,
html[data-weekday-skin] .widget_nav_menu ul > li::before,
html[data-weekday-skin] .widget_block ul > li::before {
    content: "";
    position: absolute;
    left: -1em;
    top: var(--kra-marker-mid);
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kr-skin-accent, currentColor);
}

html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list) > li {
    counter-increment: kra-ol;
}

html[data-weekday-skin] .k-main .details .article .content ol:where(:not([class]), .wp-block-list) > li::before {
    content: counter(kra-ol) ".";
    position: absolute;
    left: -1.4em;
    top: var(--kra-marker-mid);
    transform: translateY(-50%);
    min-width: 1.2em;
    text-align: right;
    color: var(--kr-skin-accent, currentColor);
    font-weight: 600;
}

html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list) ul:where(:not([class]), .wp-block-list) > li::before,
html[data-weekday-skin] .widget_recent_entries ul ul > li::before,
html[data-weekday-skin] .widget_recent_comments ul ul > li::before,
html[data-weekday-skin] .widget_pages ul ul > li::before,
html[data-weekday-skin] .widget_meta ul ul > li::before,
html[data-weekday-skin] .widget_rss ul ul > li::before,
html[data-weekday-skin] .widget_nav_menu ul ul > li::before,
html[data-weekday-skin] .widget_block ul ul > li::before {
    background: transparent;
    border: 1px solid var(--kr-skin-accent, currentColor);
    top: var(--kra-marker-mid);
    transform: translateY(-50%);
}

html[data-weekday-skin] .k-main .details .article .content ul:where(:not([class]), .wp-block-list) ul:where(:not([class]), .wp-block-list) ul:where(:not([class]), .wp-block-list) > li::before,
html[data-weekday-skin] .widget_recent_entries ul ul,
html[data-weekday-skin] .widget_recent_comments ul ul,
html[data-weekday-skin] .widget_pages ul ul,
html[data-weekday-skin] .widget_meta ul ul,
html[data-weekday-skin] .widget_rss ul ul,
html[data-weekday-skin] .widget_nav_menu ul ul,
html[data-weekday-skin] .widget_block ul ul ul > li::before {
    background: var(--kr-skin-accent, currentColor);
    border: none;
    border-radius: 0;
    width: 6px;
    height: 6px;
    top: var(--kra-marker-mid);
    transform: translateY(-50%);
}
