/* Qidian-like theme styles (scoped to qidian theme) */
body.qd-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}
a { color: #333; text-decoration: none; }
a:hover { color: #e33; text-decoration: underline; }

.qd-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid #e4e4e4;
    font-size: 12px;
    color: #666;
}
.qd-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
}

.qd-header {
    background: #ffffff;
    border-bottom: 2px solid #e33;
}
.qd-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
}
.qd-logo {
    font-size: 26px;
    font-weight: 700;
    color: #e33;
    margin-right: 40px;
}
.qd-search {
    flex: 1;
    display: flex;
    align-items: center;
}
.qd-search-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 2px 0 0 2px;
    font-size: 14px;
}
.qd-search-btn {
    padding: 9px 18px;
    border: none;
    background: #e33;
    color: #fff;
    font-size: 14px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}
.qd-search-btn:hover { background: #c10; }
.qd-user-links { font-size: 12px; color: #666; margin-left: 30px; }

.qd-main-nav {
    background: #242424;
}
.qd-main-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
}
.qd-main-nav-inner a {
    display: inline-block;
    padding: 10px 18px;
    color: #ddd;
    font-size: 14px;
}
.qd-main-nav-inner a.on,
.qd-main-nav-inner a:hover {
    background: #e33;
    color: #fff;
}

.qd-page {
    max-width: 1180px;
    margin: 15px auto 30px;
}
.qd-layout {
    display: grid;
    grid-template-columns: 210px 1fr 230px;
    grid-gap: 15px;
}

.qd-side-left, .qd-side-right {
    font-size: 13px;
}
.qd-side-block {
    background: #fff;
    border: 1px solid #e4e4e4;
}
.qd-side-title {
    margin: 0;
    padding: 10px 12px;
    background: #fafafa;
    border-bottom: 1px solid #e4e4e4;
    font-size: 14px;
}
.qd-side-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px 10px;
}
.qd-side-list li {
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-content {
    background: #fff;
    border: 1px solid #e4e4e4;
    padding: 15px 20px 25px;
}
.qd-crumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.qd-article-title {
    font-size: 24px;
    line-height: 1.4;
    margin: 8px 0 10px;
    font-weight: 700;
}
.qd-article-intro {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
}
.qd-article-body {
    font-size: 16px;
    line-height: 1.8;
}
.qd-article-body p { margin: 0 0 10px; }

.qd-article-ad-top {
    margin-bottom: 12px;
    padding: 8px;
    background: #fafafa;
    border: 1px dashed #f0caca;
}

.qd-cover-section, .qd-related-section {
    margin-top: 20px;
}
.qd-block-title {
    font-size: 16px;
    border-left: 4px solid #e33;
    padding-left: 8px;
    margin: 0 0 10px;
}
.qd-cover-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.qd-cover-item {
    width: 120px;
    height: 160px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    background: #fafafa;
}
.qd-cover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qd-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
}
.qd-related-list li {
    font-size: 13px;
    line-height: 1.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-footer {
    border-top: 1px solid #e4e4e4;
    background: #f7f7f7;
    font-size: 12px;
    color: #888;
}
.qd-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 0 18px;
    text-align: center;
}

@media (max-width: 960px) {
    .qd-layout {
        grid-template-columns: 1fr;
    }
    .qd-side-left, .qd-side-right {
        display: none;
    }
}
