/* ===== Apple Notes Style Forum - CSS ===== */
/* 配色: 主色#FFD60A, 背景#FFFFFF, 表面#F9F9F9, 文字#1D1D1F, 搜索栏#FFF8E1 */
/* CSS前缀: .an- */

:root {
    --an-primary: #FFD60A;
    --an-bg: #FFFFFF;
    --an-surface: #F9F9F9;
    --an-text: #1D1D1F;
    --an-text-secondary: #86868B;
    --an-search-bar: #FFF8E1;
    --an-border: #E5E5EA;
    --an-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.04);
    --an-radius: 12px;
    --an-font: -apple-system, "SF Pro Display", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--an-font);
    background: var(--an-surface);
    color: var(--an-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
mark { background: var(--an-primary); color: var(--an-text); border-radius: 3px; padding: 0 2px; }

/* ===== Topbar ===== */
.an-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--an-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.an-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.an-logo { width: 28px; height: 28px; }
.an-brand { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.an-topbar-search {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--an-search-bar);
    border-radius: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(255,214,10,0.3);
}
.an-topbar-search .an-icon { color: var(--an-text-secondary); flex-shrink: 0; }
.an-search-input { border: none; background: none; outline: none; flex: 1; font-size: 14px; color: var(--an-text); }
.an-search-input::placeholder { color: var(--an-text-secondary); }
.an-topbar-right { display: flex; align-items: center; gap: 8px; min-width: 200px; justify-content: flex-end; }
.an-icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--an-text); transition: background 0.2s; }
.an-icon-btn:hover { background: var(--an-surface); }
.an-user-area { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--an-surface); border-radius: 20px; }
.an-avatar-sm { width: 28px; height: 28px; border-radius: 50%; }
.an-username { font-size: 13px; font-weight: 500; }

/* ===== Layout ===== */
.an-layout {
    display: flex;
    min-height: calc(100vh - 52px - 60px);
}

/* ===== Left Sidebar ===== */
.an-sidebar-left {
    width: 240px;
    flex-shrink: 0;
    background: var(--an-surface);
    border-right: 1px solid var(--an-border);
    padding: 16px 0;
    overflow-y: auto;
}
.an-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 12px;
}
.an-folder-title { font-size: 12px; font-weight: 600; color: var(--an-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.an-search-bar-yellow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 12px 16px;
    background: var(--an-search-bar);
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255,214,10,0.25);
}
.an-search-bar-yellow .an-icon { color: var(--an-text-secondary); }
.an-yellow-search { border: none; background: none; outline: none; flex: 1; font-size: 13px; }
.an-yellow-search::placeholder { color: var(--an-text-secondary); }

.an-folder-group { margin-bottom: 4px; }
.an-folder-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--an-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
}
.an-folder-group-header:hover { background: rgba(0,0,0,0.03); }
.an-chevron { transition: transform 0.2s; color: var(--an-text-secondary); }
.an-folder-group.collapsed .an-chevron { transform: rotate(-90deg); }
.an-folder-group.collapsed .an-folder-list { display: none; }
.an-count { margin-left: auto; font-size: 11px; color: var(--an-text-secondary); background: #E5E5EA; border-radius: 10px; padding: 0 7px; }

.an-folder-list { padding: 0; }
.an-folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--an-text);
    transition: background 0.15s;
    position: relative;
}
.an-folder-item:hover { background: rgba(0,0,0,0.04); }
.an-folder-item.active { background: rgba(255,214,10,0.15); color: var(--an-text); font-weight: 600; }
.an-folder-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--an-primary); border-radius: 0 2px 2px 0; }
.an-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.an-dot-red { background: #FF3B30; }
.an-dot-blue { background: #007AFF; }
.an-dot-green { background: #34C759; }
.an-dot-orange { background: #FF9500; }
.an-dot-teal { background: #5AC8FA; }
.an-dot-purple { background: #AF52DE; }
.an-dot-pink { background: #FF2D55; }
.an-dot-indigo { background: #5856D6; }
.an-dot-cyan { background: #00C7BE; }
.an-dot-amber { background: #FFB800; }
.an-badge { margin-left: auto; font-size: 11px; color: var(--an-text-secondary); }

.an-folder-deleted { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; color: var(--an-text-secondary); cursor: pointer; }
.an-folder-deleted:hover { background: rgba(0,0,0,0.03); }

/* ===== Main ===== */
.an-main { flex: 1; padding: 24px; overflow-y: auto; min-width: 0; }

/* Banner */
.an-banner { position: relative; border-radius: var(--an-radius); overflow: hidden; margin-bottom: 24px; background: var(--an-primary); }
.an-banner-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.an-banner-text { position: absolute; left: 24px; bottom: 20px; color: var(--an-text); }
.an-banner-text h1 { font-size: 24px; font-weight: 700; }
.an-banner-text p { font-size: 14px; opacity: 0.8; margin-top: 4px; }

/* Section header */
.an-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.an-section-header h2 { font-size: 20px; font-weight: 700; }
.an-view-toggle { display: flex; gap: 4px; background: var(--an-surface); border-radius: 8px; padding: 2px; border: 1px solid var(--an-border); }
.an-toggle-btn { padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; color: var(--an-text-secondary); }
.an-toggle-btn.active { background: #fff; color: var(--an-text); box-shadow: var(--an-shadow); }

/* Board cards */
.an-board-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.an-board-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: var(--an-radius);
    border: 1px solid var(--an-border);
    transition: box-shadow 0.2s, transform 0.1s;
}
.an-board-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.an-board-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.an-icon-news { background: #FF3B30; }
.an-icon-world { background: #007AFF; }
.an-icon-tech { background: #5856D6; }
.an-icon-finance { background: #34C759; }
.an-icon-sports { background: #FF9500; }
.an-icon-entertainment { background: #FF2D55; }
.an-icon-education { background: #5AC8FA; }
.an-icon-health { background: #00C7BE; }
.an-icon-car { background: #FFB800; }
.an-icon-home { background: #AF52DE; }
.an-board-info { flex: 1; min-width: 0; }
.an-board-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.an-board-desc { font-size: 13px; color: var(--an-text-secondary); margin-bottom: 8px; }
.an-board-stats { display: flex; gap: 16px; font-size: 12px; color: var(--an-text-secondary); }
.an-board-stats span { display: flex; align-items: center; gap: 4px; }
.an-latest-post { font-size: 12px; color: var(--an-text-secondary); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--an-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Right Sidebar ===== */
.an-sidebar-right { width: 280px; flex-shrink: 0; padding: 24px 16px; overflow-y: auto; border-left: 1px solid var(--an-border); }
.an-preview-card { background: #fff; border-radius: var(--an-radius); padding: 16px; margin-bottom: 16px; border: 1px solid var(--an-border); }
.an-preview-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--an-border); }
.an-stat-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.an-stat-label { color: var(--an-text-secondary); }
.an-stat-value { font-weight: 600; }

.an-hot-topic { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.an-hot-rank { width: 20px; height: 20px; border-radius: 4px; background: #E5E5EA; color: var(--an-text-secondary); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.an-rank-1 { background: #FF3B30; color: #fff; }
.an-rank-2 { background: #FF9500; color: #fff; }
.an-rank-3 { background: #FFB800; color: #fff; }
.an-hot-topic a { font-size: 13px; font-weight: 500; display: block; margin-bottom: 2px; }
.an-hot-topic a:hover { color: #007AFF; }
.an-hot-views { font-size: 11px; color: var(--an-text-secondary); }

.an-active-user { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.an-active-user img { width: 28px; height: 28px; border-radius: 50%; }
.an-active-user span:nth-child(2) { font-size: 13px; font-weight: 500; }
.an-user-posts { margin-left: auto; font-size: 11px; color: var(--an-text-secondary); }

/* ===== List Page ===== */
.an-breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--an-text-secondary); }
.an-breadcrumb a:hover { color: #007AFF; }
.an-breadcrumb span { color: var(--an-text); font-weight: 500; }

.an-board-header-card { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: #fff; border-radius: var(--an-radius); border: 1px solid var(--an-border); margin-bottom: 16px; }
.an-board-header-left { display: flex; align-items: center; gap: 16px; }
.an-board-name { font-size: 22px; font-weight: 700; }
.an-board-meta { font-size: 13px; color: var(--an-text-secondary); margin-top: 4px; }
.an-new-post-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--an-primary); color: var(--an-text); border-radius: 20px; font-size: 14px; font-weight: 600; transition: opacity 0.2s; }
.an-new-post-btn:hover { opacity: 0.85; }

.an-sort-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.an-sort-btn { padding: 6px 16px; border-radius: 16px; font-size: 13px; color: var(--an-text-secondary); transition: all 0.2s; }
.an-sort-btn.active { background: var(--an-primary); color: var(--an-text); font-weight: 600; }
.an-sort-right { margin-left: auto; font-size: 12px; color: var(--an-text-secondary); }

.an-post-list { display: flex; flex-direction: column; gap: 1px; background: var(--an-border); border-radius: var(--an-radius); overflow: hidden; border: 1px solid var(--an-border); margin-bottom: 24px; }
.an-post-item { display: flex; gap: 12px; padding: 16px; background: #fff; transition: background 0.15s; }
.an-post-item:hover { background: var(--an-surface); }
.an-post-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.an-post-content { flex: 1; min-width: 0; }
.an-post-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.an-post-title:hover { color: #007AFF; }
.an-tag-essence { font-size: 10px; padding: 2px 6px; background: #FF3B30; color: #fff; border-radius: 4px; font-weight: 500; }
.an-tag-hot { font-size: 10px; padding: 2px 6px; background: #FF9500; color: #fff; border-radius: 4px; font-weight: 500; }
.an-post-excerpt { font-size: 13px; color: var(--an-text-secondary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--an-text-secondary); align-items: center; }
.an-post-meta span { display: flex; align-items: center; gap: 4px; }
.an-post-thumb img { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; }

/* Pagination */
.an-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.an-page-btn { min-width: 32px; height: 32px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--an-text); transition: background 0.15s; }
.an-page-btn:hover { background: var(--an-surface); }
.an-page-btn.active { background: var(--an-primary); color: var(--an-text); font-weight: 600; }
.an-page-dots { color: var(--an-text-secondary); padding: 0 4px; }

/* ===== Detail Page ===== */
.an-detail-card { background: #fff; border-radius: var(--an-radius); border: 1px solid var(--an-border); padding: 24px; margin-bottom: 16px; }
.an-detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-detail-meta { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--an-border); margin-bottom: 16px; }
.an-avatar-md { width: 40px; height: 40px; border-radius: 50%; }
.an-author-info { flex: 1; }
.an-author-name { font-size: 14px; font-weight: 600; display: block; }
.an-author-level { font-size: 11px; color: #FF9500; font-weight: 500; }
.an-post-time { font-size: 12px; color: var(--an-text-secondary); display: block; margin-top: 2px; }
.an-floor-badge { font-size: 12px; padding: 4px 10px; background: var(--an-primary); border-radius: 12px; font-weight: 600; }
.an-detail-body p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; color: var(--an-text); }
.an-detail-img { width: 100%; max-width: 600px; border-radius: var(--an-radius); margin: 16px 0; }
.an-detail-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--an-border); margin-top: 16px; }
.an-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; background: var(--an-surface); font-size: 13px; color: var(--an-text); transition: background 0.15s; }
.an-action-btn:hover { background: var(--an-border); }

/* Reply */
.an-reply-section { background: #fff; border-radius: var(--an-radius); border: 1px solid var(--an-border); padding: 16px; }
.an-reply-header { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--an-border); }
.an-reply-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--an-border); }
.an-reply-item:last-child { border-bottom: none; }
.an-reply-body { flex: 1; }
.an-reply-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.an-reply-author { font-size: 13px; font-weight: 600; }
.an-reply-floor { font-size: 11px; color: var(--an-text-secondary); }
.an-reply-time { font-size: 11px; color: var(--an-text-secondary); margin-left: auto; }
.an-reply-text { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.an-reply-actions { display: flex; gap: 12px; }
.an-mini-btn { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--an-text-secondary); padding: 4px 8px; border-radius: 6px; transition: background 0.15s; }
.an-mini-btn:hover { background: var(--an-surface); }

.an-reply-box { background: #fff; border-radius: var(--an-radius); border: 1px solid var(--an-border); padding: 16px; margin-top: 16px; }
.an-reply-box-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.an-reply-textarea { width: 100%; min-height: 100px; border: 1px solid var(--an-border); border-radius: 10px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; outline: none; transition: border-color 0.2s; }
.an-reply-textarea:focus { border-color: var(--an-primary); }
.an-reply-box-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.an-reply-tools { display: flex; gap: 4px; }
.an-tool-btn { padding: 6px; border-radius: 6px; color: var(--an-text-secondary); transition: background 0.15s; }
.an-tool-btn:hover { background: var(--an-surface); }
.an-submit-btn { padding: 8px 24px; background: var(--an-primary); color: var(--an-text); border-radius: 20px; font-size: 14px; font-weight: 600; transition: opacity 0.2s; }
.an-submit-btn:hover { opacity: 0.85; }

/* ===== Search Page ===== */
.an-search-hero { margin-bottom: 20px; }
.an-search-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.an-search-hero p { font-size: 14px; color: var(--an-text-secondary); }
.an-search-keyword { color: var(--an-text); font-weight: 600; }

.an-search-box-large { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--an-primary); border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; }
.an-search-large-input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit; }
.an-search-submit { padding: 8px 20px; background: var(--an-primary); border-radius: 8px; font-size: 14px; font-weight: 600; transition: opacity 0.2s; }
.an-search-submit:hover { opacity: 0.85; }

.an-filter-bar { margin-bottom: 16px; }
.an-filter-group { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.an-filter-label { font-size: 12px; color: var(--an-text-secondary); font-weight: 600; min-width: 48px; }
.an-filter-chip { padding: 4px 12px; border-radius: 14px; font-size: 12px; background: var(--an-surface); color: var(--an-text-secondary); border: 1px solid var(--an-border); transition: all 0.15s; }
.an-filter-chip.active { background: var(--an-primary); color: var(--an-text); font-weight: 600; border-color: var(--an-primary); }
.an-filter-chip:hover { background: rgba(255,214,10,0.15); }

.an-search-results { display: flex; flex-direction: column; gap: 12px; }
.an-search-result-item { background: #fff; border-radius: var(--an-radius); border: 1px solid var(--an-border); padding: 16px; transition: box-shadow 0.2s; }
.an-search-result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.an-result-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.an-result-title:hover { color: #007AFF; }
.an-result-excerpt { font-size: 13px; color: var(--an-text-secondary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-result-meta { display: flex; gap: 12px; font-size: 12px; color: var(--an-text-secondary); align-items: center; flex-wrap: wrap; }
.an-result-board { padding: 2px 8px; background: var(--an-search-bar); border-radius: 4px; font-size: 11px; }

.an-hot-search { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.an-hot-search a { font-size: 13px; }
.an-hot-search a:hover { color: #007AFF; }

.an-history-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.an-history-del { font-size: 16px; color: var(--an-text-secondary); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.an-history-del:hover { color: #FF3B30; }
.an-clear-history { font-size: 12px; color: var(--an-text-secondary); margin-top: 8px; }
.an-clear-history:hover { color: #FF3B30; }

/* ===== Footer ===== */
.an-footer { background: var(--an-surface); border-top: 1px solid var(--an-border); }
.an-footer-content { display: flex; justify-content: space-around; padding: 32px 20px; max-width: 1200px; margin: 0 auto; }
.an-footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.an-footer-col ul { list-style: none; }
.an-footer-col li { margin-bottom: 8px; }
.an-footer-col a { font-size: 12px; color: var(--an-text-secondary); }
.an-footer-col a:hover { color: var(--an-text); }
.an-footer-bottom { text-align: center; padding: 16px; border-top: 1px solid var(--an-border); }
.an-footer-bottom p { font-size: 12px; color: var(--an-text-secondary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .an-sidebar-right { display: none; }
}
@media (max-width: 768px) {
    .an-sidebar-left { display: none; }
    .an-topbar-search { display: none; }
    .an-main { padding: 16px; }
}

/* ===== CMS Extension Styles ===== */

/* ---------- CMS Pagination (.jv-pagination) ---------- */
.jv-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 24px 0;
    justify-content: center;
}
.jv-page-info {
    font-size: 13px;
    color: var(--an-text-secondary);
    margin-right: 12px;
}
.jv-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--an-bg);
    border: 1px solid var(--an-border);
    border-radius: 8px;
    color: var(--an-text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}
.jv-pagination a:hover {
    border-color: var(--an-primary);
    color: var(--an-text);
}
.jv-pagination a.active {
    background: var(--an-primary);
    border-color: var(--an-primary);
    color: var(--an-text);
    font-weight: 600;
}
.jv-pagination a.disabled {
    color: var(--an-text-secondary);
    border-color: var(--an-border);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}
.jv-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--an-text-secondary);
    font-size: 13px;
}

/* ---------- Comment System (.comment-*) ---------- */
.comment-list { display: flex; flex-direction: column; }
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--an-border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--an-primary);
    color: var(--an-text);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-main { flex: 1; min-width: 0; }
.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.comment-author { font-size: 14px; font-weight: 700; color: var(--an-text); }
.comment-reply-to { font-size: 12px; color: var(--an-text-secondary); }
.comment-reply-to::before { content: '\2192'; margin-right: 3px; }
.comment-time { font-size: 12px; color: var(--an-text-secondary); margin-left: auto; }
.comment-content { font-size: 14px; color: var(--an-text); line-height: 1.7; word-break: break-word; }
.comment-actions { margin-top: 8px; }
.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--an-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.comment-reply-btn:hover { color: var(--an-text); }
.comment-reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.comment-reply-input {
    width: 100%;
    border: 1px solid var(--an-border);
    border-radius: var(--an-radius);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    background: var(--an-bg);
    color: var(--an-text);
    transition: border-color 0.2s ease;
    outline: none;
}
.comment-reply-input:focus { border-color: var(--an-primary); }
.comment-reply-submit {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border: 1px solid var(--an-primary);
    background: var(--an-primary);
    color: var(--an-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--an-radius);
    transition: all 0.2s ease;
}
.comment-reply-submit:hover { opacity: 0.85; }
.comment-reply-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-replies {
    margin-left: 52px;
    padding-left: 16px;
    border-left: 2px solid var(--an-border);
    display: flex;
    flex-direction: column;
}
.comment-reply-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--an-border);
}
.comment-reply-item:last-child { border-bottom: none; }
.comment-reply-item .comment-avatar { width: 32px; height: 32px; font-size: 13px; }
.comment-reply-item .comment-author { font-size: 13px; }
.comment-reply-item .comment-content { font-size: 13px; }
.comment-empty { text-align: center; padding: 32px 16px; color: var(--an-text-secondary); font-size: 14px; }
.comment-empty p { margin: 0; }
.comment-load-more { display: flex; justify-content: center; padding: 16px 0; }
.comment-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 28px;
    border: 1px solid var(--an-border);
    border-radius: var(--an-radius);
    background: var(--an-bg);
    color: var(--an-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.comment-load-more-btn:hover { border-color: var(--an-primary); color: var(--an-text); }

/* ---------- Article Content Images ---------- */
.an-detail-body img { max-width: 100%; height: auto; border-radius: var(--an-radius); }
