/* CasaCV Modern Community UI - Nordic Minimalist Style */

:root {
    /* 北欧冷淡风配色 */
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f3f0;
    --bg-elevated: #ffffff;
    
    /* 强调色 - 莫兰迪色系 */
    --accent-primary: #5a6b7c;
    --accent-secondary: #8fa3b8;
    --accent-success: #7a9e7e;
    --accent-warning: #c4a77d;
    --accent-danger: #b87b7b;
    
    /* 文字颜色 */
    --text-primary: #2c3e50;
    --text-secondary: #5a6b7c;
    --text-muted: #8fa3b8;
    
    /* 边框和阴影 - 更柔和 */
    --border-color: #e8e4df;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 24px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 玻璃拟态导航栏 - 北欧冷淡风 */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
}

.nav-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-modern i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5a6b7c, #8fa3b8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* 搜索栏 */
.search-bar-modern {
    flex: 1;
    max-width: 500px;
    margin: 0 var(--space-lg);
    position: relative;
}

.search-bar-modern input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-bar-modern input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(90, 107, 124, 0.1);
}

.search-bar-modern i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 导航操作区 */
.nav-actions-modern {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-primary-modern {
    padding: 10px 20px;
    background: linear-gradient(135deg, #5a6b7c, #6b7d8e);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 107, 124, 0.25);
}

/* 主布局 */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
}

/* 左侧边栏 */
.sidebar-left {
    width: 260px;
    padding: var(--space-lg);
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: var(--space-xl);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--accent-primary);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-right: 320px;
    padding: var(--space-lg);
}

/* 内容卡片 */
.content-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-menu {
    color: var(--text-muted);
    cursor: pointer;
}

.card-content {
    padding: 0 var(--space-lg) var(--space-md);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.card-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.action-btn:hover {
    color: var(--accent-primary);
}

.action-btn.active {
    color: var(--accent-danger);
}

/* 右侧边栏 */
.sidebar-right {
    width: 320px;
    padding: var(--space-lg);
    position: fixed;
    right: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.widget-title a {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
}

/* 趋势话题 */
.trending-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
}

.trending-rank.top {
    color: var(--accent-primary);
}

.trending-content {
    flex: 1;
}

.trending-tag {
    font-weight: 600;
    color: var(--text-primary);
}

.trending-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 推荐用户 */
.user-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.user-suggestion .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a6b7c, #8fa3b8);
}

.user-suggestion .info {
    flex: 1;
}

.user-suggestion .name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-suggestion .handle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-follow {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-follow:hover {
    background: var(--accent-primary);
    color: white;
}

/* 移动端底部导航 */
.mobile-bottom-nav-modern {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xs) 0 calc(var(--space-xs) + env(safe-area-inset-bottom));
    z-index: 1000;
}

.mobile-bottom-nav-modern {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--space-xs);
}

.nav-item-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    min-width: 56px;
    padding: 4px 2px;
    flex: 1;
}

.nav-item-modern.active {
    color: var(--accent-primary);
}

.nav-item-modern i {
    font-size: 1.2rem;
}

.nav-item-modern span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 发布按钮特殊样式 */
.nav-item-main-modern {
    position: relative;
}

.nav-main-btn-modern {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 4px;
    box-shadow: var(--shadow-md);
}

/* 发布按钮（悬浮） */
.fab-post {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

/* 响应式 */
@media (max-width: 1200px) {
    .sidebar-right {
        display: none;
    }
    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-left {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: var(--space-md);
        padding-bottom: 80px;
    }
    .search-bar-modern {
        display: none;
    }
    .mobile-bottom-nav-modern {
        display: flex;
    }
    .fab-post {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar-modern {
        padding: var(--space-sm) var(--space-md);
    }
}

/* 筛选器样式 */
.filters-modern {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color);
}

.filters-row-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.filter-group-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
    min-width: 150px;
}

.filter-group-modern label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-group-modern label i {
    color: var(--accent-primary);
}

.filter-group-modern select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group-modern select:hover,
.filter-group-modern select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.filter-btn-modern {
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-btn-modern:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* 移动端筛选器 */
@media (max-width: 768px) {
    .filters-row-modern {
        flex-direction: column;
    }
    
    .filter-group-modern {
        width: 100%;
        min-width: auto;
    }
    
    .filter-btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Footer 样式 */
.footer-modern {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-container-modern {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-section-modern h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-section-modern ul {
    list-style: none;
}

.footer-section-modern li {
    margin-bottom: var(--space-sm);
}

.footer-section-modern a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section-modern a:hover {
    color: var(--accent-primary);
}

.footer-section-modern p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.footer-section-modern i {
    margin-right: var(--space-sm);
    color: var(--accent-primary);
}

.footer-bottom-modern {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.footer-bottom-modern p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 更多菜单弹窗 */
.more-menu-modal {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    min-width: 180px;
}

.more-menu-content {
    padding: var(--space-sm);
}

.more-menu-content a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.more-menu-content a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.more-menu-content i {
    width: 20px;
    text-align: center;
}

/* Toast 提示 */
.casacv-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.casacv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 联系弹窗 */
.contact-modal, .report-modal, .comments-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-modal.active, .report-modal.active, .comments-modal.active {
    opacity: 1;
}

.contact-modal-overlay, .report-modal-overlay, .comments-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.contact-modal-content, .report-modal-content, .comments-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.contact-modal.active .contact-modal-content,
.report-modal.active .report-modal-content,
.comments-modal.active .comments-modal-content {
    transform: scale(1);
}

.contact-modal-close, .report-modal-close, .comments-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.contact-modal h3, .report-modal h3, .comments-modal h3 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.contact-option:hover {
    background: var(--accent-primary);
    color: white;
}

.contact-option i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-option.whatsapp {
    background: #25d366;
    color: white;
}

.contact-option.whatsapp:hover {
    background: #128c7e;
}

/* 举报弹窗 */
.report-reasons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.report-reasons label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.report-reasons label:hover {
    background: var(--bg-tertiary);
}

.report-reasons input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

#report-details {
    width: 100%;
    min-height: 80px;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    margin-bottom: var(--space-md);
}

.btn-submit-report {
    width: 100%;
    padding: var(--space-md);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-report:hover {
    background: var(--accent-secondary);
}

/* 评论弹窗 */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
}

.comment-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.comment-header strong {
    color: var(--accent-primary);
}

.comment-header span {
    color: var(--text-muted);
}

.comment-item p {
    color: var(--text-primary);
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl);
}

.comment-input-area {
    display: flex;
    gap: var(--space-sm);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.comment-input-area input {
    flex: 1;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
}

.comment-input-area button {
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-input-area button:hover {
    background: var(--accent-secondary);
}

/* 互动按钮样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.action-btn.liked {
    color: #e74c3c;
}

.action-btn.favorited {
    color: #f39c12;
}

/* 邀请进度条 - 移动端隐藏 */
@media (max-width: 768px) {
    .invite-progress-widget {
        display: none !important;
    }
}

/* 文学板块样式 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.story-card-modern {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.story-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-image-modern {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.story-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.story-card-modern:hover .story-image-modern img {
    transform: scale(1.05);
}

.story-genre-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.story-content-modern {
    padding: var(--space-md);
}

.story-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.story-original-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.story-author-modern {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.story-author-modern i {
    color: var(--accent-primary);
    margin-right: var(--space-xs);
}

.story-summary-modern {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta-modern {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-meta-modern i {
    margin-right: 4px;
}

/* 热门故事 */
.popular-story-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.popular-story-item:last-child {
    border-bottom: none;
}

.popular-story-item:hover {
    background: var(--bg-tertiary);
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    border-radius: var(--radius-md);
}

.popular-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.popular-story-item:nth-child(1) .popular-rank {
    background: #ffd700;
    color: #333;
}

.popular-story-item:nth-child(2) .popular-rank {
    background: #c0c0c0;
    color: #333;
}

.popular-story-item:nth-child(3) .popular-rank {
    background: #cd7f32;
    color: white;
}

.popular-info h5 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.popular-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 作者 spotlight */
.author-spotlight {
    text-align: center;
    padding: var(--space-md);
}

.author-avatar {
    margin-bottom: var(--space-md);
}

.author-spotlight h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    animation: fadeIn 0.3s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
