/* 专栏风格站点 */
:root {
    --zh-blue: #0066ff;
    --zh-blue-light: #ebf3ff;
    --zh-bg: #f6f6f6;
    --zh-white: #fff;
    --zh-text: #121212;
    --zh-text2: #444;
    --zh-meta: #8590a6;
    --zh-border: #ebebeb;
    --zh-width: 1000px;
    --zh-content: 694px;
    --zh-sidebar: 296px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.zh-body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--zh-bg);
    color: var(--zh-text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--zh-blue); }

/* Header */
.zh-header {
    background: var(--zh-white);
    border-bottom: 1px solid var(--zh-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.zh-header-inner {
    max-width: var(--zh-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.zh-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    color: var(--zh-blue);
    flex-shrink: 0;
}

.zh-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.zh-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--zh-blue);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.zh-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
}

.zh-nav a {
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--zh-meta);
    font-size: 15px;
    white-space: nowrap;
}

.zh-nav a:hover, .zh-nav a.active {
    color: var(--zh-text);
    background: rgba(0,102,255,.08);
}

.zh-btn-text {
    color: var(--zh-meta);
    font-size: 14px;
}

/* Layout */
.zh-main { min-height: calc(100vh - 52px - 60px); padding: 16px 0 40px; }

.zh-page {
    max-width: var(--zh-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.zh-content-col { width: var(--zh-content); flex-shrink: 0; }
.zh-sidebar { width: var(--zh-sidebar); flex-shrink: 0; }
.zh-sidebar-sticky { position: sticky; top: 68px; }

.zh-article-page .zh-article-col { width: var(--zh-content); }

/* Tabs */
.zh-tabs {
    background: var(--zh-white);
    border-radius: 4px;
    padding: 8px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid var(--zh-border);
}

.zh-tab {
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--zh-meta);
    font-size: 14px;
}

.zh-tab.active { color: var(--zh-blue); font-weight: 600; background: var(--zh-blue-light); }

/* Feed */
.zh-feed { background: var(--zh-white); border-radius: 4px; border: 1px solid var(--zh-border); }

.zh-feed-item {
    border-bottom: 1px solid var(--zh-border);
}

.zh-feed-item:last-child { border-bottom: none; }

.zh-feed-link {
    display: block;
    padding: 16px 20px;
    transition: background .15s;
}

.zh-feed-item:hover .zh-feed-link { background: #fafafa; }

.zh-breadcrumb {
    font-size: 13px;
    color: var(--zh-meta);
    margin-bottom: 12px;
    padding: 0 4px;
}

.zh-breadcrumb a:hover { color: var(--zh-blue); }
.zh-breadcrumb-sep { margin: 0 8px; color: #c8c8c8; }

.zh-feed-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--zh-text);
}

.zh-feed-excerpt {
    font-size: 14px;
    color: var(--zh-text2);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh-feed-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--zh-meta);
}

.zh-feed-cat { color: var(--zh-blue); }

/* Channel */
.zh-channel-head {
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 10px;
}

.zh-channel-head h1 { font-size: 22px; margin-bottom: 4px; }
.zh-channel-head p { color: var(--zh-meta); font-size: 14px; }

/* Article */
.zh-article-card {
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: 4px;
    padding: 24px 24px 16px;
}

.zh-article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--zh-text);
}

.zh-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zh-border);
}

.zh-avatar-md { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.zh-avatar-lg { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.zh-avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.zh-author-info { flex: 1; }
.zh-author-name { font-weight: 600; font-size: 15px; color: var(--zh-text); }
.zh-author-meta { display: block; font-size: 13px; color: var(--zh-meta); margin-top: 2px; }

.zh-follow-btn {
    padding: 6px 16px;
    border: 1px solid var(--zh-blue);
    color: var(--zh-blue);
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: not-allowed;
    opacity: .7;
}

/* Article body - Zhihu Post-RichText style */
.zh-article-body, .Post-RichText {
    font-size: 16px;
    line-height: 1.8;
    color: var(--zh-text2);
    word-break: break-word;
}

.zh-article-body p, .Post-RichText p { margin-bottom: 1.2em; }

.zh-section, .Post-RichText h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--zh-text);
    margin: 1.8em 0 .8em;
    line-height: 1.5;
}

.zh-subsection, .Post-RichText h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 1.4em 0 .6em;
}

/* Product card in article */
.zh-product-card {
    margin: 24px 0;
    border: 1px solid var(--zh-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.zh-product-label {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--zh-meta);
    background: var(--zh-white);
    border-bottom: 1px solid var(--zh-border);
}

.zh-product-inner {
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: center;
}

.zh-product-inner img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.zh-product-info h2, .zh-product-info h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.zh-product-price { font-size: 20px; font-weight: 700; color: #f1403c; margin-bottom: 10px; }

.zh-buy-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--zh-blue);
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.zh-buy-btn:hover { opacity: .9; color: #fff; }
.zh-buy-btn-block { display: block; text-align: center; }

/* Action bar */
.zh-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--zh-border);
    flex-wrap: wrap;
}

.zh-agree-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--zh-blue-light);
    color: var(--zh-blue);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: default;
}

.zh-action-item { font-size: 14px; color: var(--zh-meta); }
.zh-action-item.disabled { opacity: .5; cursor: not-allowed; }

/* Sidebar */
.zh-side-card {
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 10px;
}

.zh-side-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.zh-side-intro { font-size: 13px; color: var(--zh-text2); line-height: 1.7; }

.zh-author-card { display: flex; gap: 12px; align-items: flex-start; }
.zh-author-card strong { font-size: 15px; display: block; margin-bottom: 4px; }
.zh-author-card p { font-size: 13px; color: var(--zh-meta); line-height: 1.5; }

.zh-side-list { list-style: none; }
.zh-side-list li { margin-bottom: 10px; }
.zh-side-list a { font-size: 14px; color: var(--zh-text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zh-side-list a:hover { color: var(--zh-blue); }

.zh-side-tip p { font-size: 12px; color: var(--zh-meta); line-height: 1.6; }

.zh-side-product-img { width: 100%; border-radius: 4px; margin-bottom: 10px; background: #fff; }
.zh-side-product-title { font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.zh-side-product-price { color: #f1403c; font-weight: 700; margin-bottom: 12px; }

/* Comments */
.zh-comments {
    background: var(--zh-white);
    border: 1px solid var(--zh-border);
    border-radius: 4px;
    padding: 20px;
    margin-top: 10px;
}

.zh-comments-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.zh-comments-tip { font-size: 12px; color: var(--zh-meta); margin-bottom: 16px; }

.zh-comment-input-mock {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zh-border);
}

.zh-input-fake {
    flex: 1;
    padding: 10px 14px;
    background: #f6f6f6;
    border-radius: 4px;
    color: var(--zh-meta);
    font-size: 14px;
}

.zh-comment-list { list-style: none; }
.zh-comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.zh-comment-item:last-child { border-bottom: none; }

.zh-comment-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0;
}

.zh-comment-body strong { font-size: 14px; }
.zh-comment-body p { font-size: 14px; color: var(--zh-text2); margin: 4px 0 6px; line-height: 1.6; }
.zh-comment-meta { display: flex; gap: 14px; font-size: 12px; color: var(--zh-meta); }
.zh-comment-meta .disabled { opacity: .5; cursor: not-allowed; }

/* Empty & Footer */
.zh-empty { padding: 60px 20px; text-align: center; color: var(--zh-meta); }
.zh-empty a { color: var(--zh-blue); }

.zh-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--zh-meta);
    border-top: 1px solid var(--zh-border);
    background: var(--zh-white);
}

@media (max-width: 900px) {
    .zh-page { flex-direction: column; }
    .zh-content-col, .zh-sidebar, .zh-article-col { width: 100%; }
    .zh-sidebar-sticky { position: static; }
    .zh-nav { display: none; }
}
