/* 仅补充主题未覆盖的细节，卡片/栅格以 Kratos style.css 为准 */
.k-header .banner .content {
    background-image: url('/static/theme/background.jpg');
}
.k-nav .nav-search {
    margin-left: auto;
}
.k-nav .nav-search input {
    width: 180px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 2px;
    background: rgba(255,255,255,.92);
    color: #333;
}
.k-nav .nav-search button {
    height: 32px;
    margin-left: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 2px;
    background: #336699;
    color: #fff;
    cursor: pointer;
}
.sidebar .widget.w-search {
    background: #fff;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.sidebar .widget.w-search form {
    display: flex;
    gap: 8px;
}
.sidebar .widget.w-search input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
}
.sidebar .widget.w-search button {
    height: 36px;
    padding: 0 14px;
    border: 0;
    background: #336699;
    color: #fff;
}
.empty-board {
    background: #fff;
    padding: 48px 20px;
    text-align: center;
    color: #888;
    border-radius: 8px;
}
.article-page.kratos-article {
    background: #fff;
    padding: 24px 28px 32px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.k-main .board .post-list.layout-grid .article-panel .a-post .header .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: none;
}
.k-main .board .post-list.layout-grid .article-panel .a-post .content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.k-main .board .post-list.layout-grid .article-panel .a-meta {
    margin-top: auto;
}
.article-page .entry-content img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 991px) {
    .k-nav .nav-search { display: none; }
    .k-header { position: relative !important; z-index: 5 !important; }
}

.site-cols { display: flex; gap: 18px; align-items: flex-start; }
.rail-left { width: 240px; flex: 0 0 240px; }
.site-cols > .board { flex: 1 1 auto; min-width: 0; }
.site-cols > .sidebar { width: 300px; flex: 0 0 300px; }
.rail-card, .site-cols > .sidebar .widget { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rail-card { padding: 16px 16px 12px; margin-bottom: 16px; }
.rail-card h4 { margin: 0 0 12px; font-size: 15px; }
.rail-cats a { display: flex; justify-content: space-between; padding: 7px 0; color: #333; text-decoration: none; border-bottom: 1px dashed #eee; }
.rail-cats a span { color: #999; }
.rail-cats a.is-on { color: #336699; font-weight: 700; }
.rail-mini { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: #333; text-decoration: none; }
.rail-mini img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; flex: 0 0 72px; background: #eee; }
.rail-mini span { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.home-slider { position: relative; height: 320px; margin-bottom: 18px; border-radius: 8px; overflow: hidden; background: #222; }
.home-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; text-decoration: none; }
.home-slider .slide.is-on { opacity: 1; z-index: 1; }
.home-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-slider .slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 18px; line-height: 1.4; }
.home-slider .slide-cap em { display: inline-block; margin-right: 8px; padding: 1px 6px; background: #336699; font-style: normal; font-size: 12px; border-radius: 2px; }
.slider-prev, .slider-next { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; cursor: pointer; }
.slider-prev { left: 10px; } .slider-next { right: 10px; }
.slider-dots { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.slider-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.slider-dot.is-on { background: #fff; }

.article-kicker { color: #888; font-size: 13px; }
.article-kicker a { color: #336699; text-decoration: none; }
.article-meta { border: 0; padding-left: 0; color: #888; }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; }
.article-block { margin-top: 22px; }
.article-block h4 { margin: 0 0 10px; font-size: 16px; border-left: 3px solid #336699; padding-left: 8px; }
.article-page .tag-cloud a { display: inline-block; margin: 0 8px 8px 0; padding: 4px 10px; background: #f4f7fb; color: #336699; border-radius: 14px; text-decoration: none; font-size: 13px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.article-nav a { display: block; padding: 12px; background: #f7f7f7; border-radius: 6px; color: #333; text-decoration: none; }
.article-nav small { display: block; color: #999; margin-bottom: 4px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rel-card { color: #333; text-decoration: none; background: #fafafa; border-radius: 6px; overflow: hidden; }
.rel-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eee; }
.rel-card span { display: block; padding: 8px 10px 10px; font-size: 14px; line-height: 1.4; }

.kicon.i-hot::before,
.kicon.i-good::before,
.kicon.i-calendar::before,
.kicon.i-comments::before,
.kicon.i-author::before,
.kicon.i-book::before,
.kicon.i-rightbutton::before,
.kicon.i-tabhot::before,
.kicon.i-tabnew::before,
.kicon.i-tabrandom::before {
    content: "" !important;
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.kicon.i-hot::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c1 3 0 4-1 6-2 2-4 4-4 8a6 6 0 0012 0c0-3-1-5-3-7 1 2 2 3 2 5 0-4-3-8-6-12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c1 3 0 4-1 6-2 2-4 4-4 8a6 6 0 0012 0c0-3-1-5-3-7 1 2 2 3 2 5 0-4-3-8-6-12z'/%3E%3C/svg%3E"); }
.kicon.i-good::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7-4.4-7-10a4 4 0 017-2 4 4 0 017 2c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7-4.4-7-10a4 4 0 017-2 4 4 0 017 2c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.kicon.i-calendar::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm11 8H6v8h12v-8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm11 8H6v8h12v-8z'/%3E%3C/svg%3E"); }
.kicon.i-comments::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E"); }
.kicon.i-author::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 100-8 4 4 0 000 8zm-7 8a7 7 0 0114 0H5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 100-8 4 4 0 000 8zm-7 8a7 7 0 0114 0H5z'/%3E%3C/svg%3E"); }
.kicon.i-book::before, .kicon.i-tabnew::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11a3 3 0 013 3v15H8a3 3 0 01-3-3V3zm3 4h8v2H8V7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11a3 3 0 013 3v15H8a3 3 0 01-3-3V3zm3 4h8v2H8V7z'/%3E%3C/svg%3E"); }
.kicon.i-rightbutton::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 5l9 7-9 7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 5l9 7-9 7z'/%3E%3C/svg%3E"); }
.kicon.i-tabhot::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c1 3 0 4-1 6-2 2-4 4-4 8a6 6 0 0012 0c0-3-1-5-3-7 1 2 2 3 2 5 0-4-3-8-6-12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c1 3 0 4-1 6-2 2-4 4-4 8a6 6 0 0012 0c0-3-1-5-3-7 1 2 2 3 2 5 0-4-3-8-6-12z'/%3E%3C/svg%3E"); }
.kicon.i-tabrandom::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7h3l2 3h7v2H10L8 9H4V7zm0 8h4l2-3h8v2h-7l-2 3H4v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7h3l2 3h7v2H10L8 9H4V7zm0 8h4l2-3h8v2h-7l-2 3H4v-2z'/%3E%3C/svg%3E"); }

@media (max-width: 1199px) {
    .site-cols { flex-wrap: wrap; }
    .rail-left, .site-cols > .sidebar, .site-cols > .board { width: 100%; flex: 1 1 100%; }
    .site-cols > .board { order: -1; }
    .home-slider { height: 220px; }
    .rel-grid { grid-template-columns: 1fr; }
}