/* 知乎风格CSS样式 */
/* 基本重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 14px;
}

/* 通用容器 */
.zhihu-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 顶部导航栏 */
.zhihu-header {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 52px;
    display: flex;
    align-items: center;
}

.zhihu-header .zhihu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.zhihu-header-left {
    display: flex;
    align-items: center;
}

.zhihu-logo {
    font-size: 20px;
    font-weight: bold;
    color: #0f88eb;
    text-decoration: none;
    margin-right: 30px;
}

.zhihu-nav {
    display: flex;
}

.nav-item {
    color: #333;
    text-decoration: none;
    margin-right: 24px;
    font-size: 16px;
    position: relative;
}

.nav-item.active {
    color: #0f88eb;
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0f88eb;
}

.zhihu-header-right {
    display: flex;
    align-items: center;
}

.zhihu-search {
    margin-right: 20px;
}

.search-input {
    width: 300px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background-color: #f7f7f7;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #0f88eb;
    background-color: #fff;
}

.zhihu-actions {
    display: flex;
    align-items: center;
}

.btn-post {
    background-color: #0f88eb;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-post:hover {
    background-color: #0e7bdd;
}

.btn-login,
.btn-register {
    background-color: transparent;
    border: 1px solid #0f88eb;
    color: #0f88eb;
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover,
.btn-register:hover {
    background-color: #f0f7ff;
}

/* 主要内容区域 */
.zhihu-main {
    padding: 20px 0;
}

.zhihu-content {
    display: flex;
    gap: 20px;
}

/* 左侧边栏 */
.zhihu-sidebar-left {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    text-align: center;
    margin-bottom: 12px;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
}

.user-info {
    text-align: center;
    margin-bottom: 16px;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.user-desc {
    color: #999;
    font-size: 13px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.topic-list {
    list-style: none;
}

.topic-list li {
    margin-bottom: 10px;
}

.topic-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.topic-list a:hover {
    color: #0f88eb;
}

/* 中间内容区 */
.zhihu-center {
    flex: 1;
    min-width: 0;
}

.question-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.question-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-header {
    margin-bottom: 12px;
}

.question-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.question-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.question-title a:hover {
    color: #0f88eb;
}

.question-stats {
    display: flex;
    font-size: 13px;
    color: #999;
}

.stat {
    margin-right: 12px;
}

.question-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f0f7ff;
    color: #0f88eb;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
}

.load-more {
    text-align: center;
    padding: 20px 0;
}

.load-more button {
    background-color: transparent;
    border: 1px solid #e6e6e6;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more button:hover {
    border-color: #0f88eb;
    color: #0f88eb;
}

/* 右侧边栏 */
.zhihu-sidebar-right {
    width: 280px;
    flex-shrink: 0;
}

.hot-topics {
    margin-bottom: 8px;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    border-radius: 2px;
    margin-right: 12px;
}

.hot-rank-top {
    background-color: #ff4d4f;
    color: #fff;
}

.hot-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.hot-count {
    font-size: 12px;
    color: #999;
}

.columns {
    margin-bottom: 8px;
}

.column-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.column-item h5 {
    font-size: 16px;
    margin-bottom: 4px;
}

.column-item h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.column-item h5 a:hover {
    color: #0f88eb;
}

.column-item p {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

/* 页脚 */
.zhihu-footer {
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
    margin-top: 40px;
}

.zhihu-footer-content {
    padding: 24px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0f88eb;
}

/* ICP备案信息样式 */
.icp-info {
    background-color: #fafafa;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 16px auto;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.icp-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.icp-info a {
    color: #0f88eb;
    text-decoration: none;
}

.icp-info a:hover {
    text-decoration: underline;
}

.copyright {
    color: #999;
    font-size: 14px;
    margin-top: 16px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .zhihu-sidebar-right {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .zhihu-sidebar-left {
        display: none;
    }
    
    .zhihu-header {
        height: auto;
        padding: 10px 0;
    }
    
    .zhihu-header .zhihu-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .zhihu-header-left,
    .zhihu-header-right {
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .question-card {
        padding: 16px;
    }
    
    .question-title h2 {
        font-size: 16px;
    }
}