/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #6366f1;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #6366f1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 180px;
}

.search-input {
    width: 100%;
    padding: 6px 30px 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #6366f1;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.hotkey {
    font-size: 12px;
    color: #999;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification,
.settings,
.user-avatar {
    font-size: 18px;
    cursor: pointer;
}

.login-btn {
    color: #6366f1;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 60px);
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.search-question {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.question-search-input {
    width: 100%;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 内容布局 */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}

/* 问题容器 */
.questions-container {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 分类标签 */
.category-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f5f5f5;
    color: #666;
}

.tag:hover {
    background-color: #e9ecef;
}

.tag.active {
    background-color: #6366f1;
    color: white;
}

/* 问题列表 */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s;
}

.question-title:hover {
    color: #6366f1;
}

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

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    font-size: 20px;
}

.username {
    color: #666;
}

.interaction-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    cursor: pointer;
    transition: color 0.3s;
}

.stat-item:hover {
    color: #6366f1;
}

.category-label {
    background-color: #f5f3ff;
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 用户卡片 */
.user-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.user-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.user-icon {
    font-size: 24px;
}

.status-text {
    color: #666;
    font-size: 14px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.ask-btn {
    width: 100%;
    padding: 10px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ask-btn:hover {
    background-color: #4f46e5;
}

/* 热门问题 */
.hot-questions {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hot-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.hot-item:hover {
    transform: translateX(4px);
}

.hot-question-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.hot-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-right .search-box,
    .hotkey {
        display: none;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 40px 16px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .questions-container {
        padding: 16px;
    }
}