/*
* 文件名称: community.css
* 功能说明: 社区交流页面的样式文件
* 创建日期: 2025年1月1日
* 作者: AI炒股学习网开发团队
* 说明: 提供社区交流页面的专业视觉设计
*/

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 社区统计样式 */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 社区导航样式 */
.community-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.community-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex: 1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #667eea;
    background: #f0f2ff;
}

.tab-btn.active {
    color: white;
    background: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.community-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.action-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.action-btn .icon {
    font-size: 1rem;
}

/* 社区内容布局 */
.community-content {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 标签页面板 */
.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.filter-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* 帖子列表样式 */
.topics-list,
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-item,
.post-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-item:hover,
.post-item:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.post-title:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.post-category {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-time {
    color: #6c757d;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid #d1d9ff;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn-small {
    background: none;
    border: 1px solid #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small:hover {
    background: #f8f9fa;
    color: #495057;
}

.action-btn-small.liked {
    background: #ffe6e6;
    color: #dc3545;
    border-color: #f5c6cb;
}

.action-btn-small.bookmarked {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* 专家分析样式 */
.expert-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expert-post {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.expert-post::before {
    content: '👨‍💼';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expert-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #667eea;
}

.expert-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.2rem 0;
}

.expert-title {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

.expert-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expert-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expert-tag {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* 个股讨论样式 */
.stock-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stock-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-stock-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-stock-btn:hover {
    background: #5a6fd8;
}

.stock-discussions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-discussion-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stock-discussion-item:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stock-symbol {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    background: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.stock-name {
    font-weight: 600;
    color: #2c3e50;
}

.stock-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-price {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.price-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.price-change.positive {
    background: #d4edda;
    color: #155724;
}

.price-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* 策略分享样式 */
.strategy-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.strategy-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strategy-post {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.strategy-post:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.strategy-post::before {
    content: '🎯';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.strategy-header {
    margin-bottom: 1rem;
}

.strategy-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.strategy-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.strategy-type {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.strategy-performance {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.performance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-width: 80px;
}

.performance-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.performance-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.performance-value.positive {
    color: #28a745;
}

.performance-value.negative {
    color: #dc3545;
}

/* 新手专区样式 */
.newbie-guide {
    background: #f0f2ff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #d1d9ff;
    margin-bottom: 1.5rem;
}

.newbie-guide p {
    margin: 0;
    color: #667eea;
    font-weight: 500;
}

.newbie-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.guide-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.guide-posts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.guide-post {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-post:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.guide-post-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.guide-post-summary {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar > div {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

/* 用户信息卡片 */
.user-card {
    text-align: center;
}

.user-avatar {
    margin-bottom: 1rem;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #667eea;
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.user-level {
    font-size: 0.8rem;
    color: #667eea;
    background: #f0f2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid #d1d9ff;
}

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

.user-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-stats .label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.user-stats .value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-login,
.btn-register {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-login {
    background: #667eea;
    color: white;
}

.btn-login:hover {
    background: #5a6fd8;
}

.btn-register {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.btn-register:hover {
    background: #e9ecef;
    color: #495057;
}

/* 热门标签 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hot-tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #d1d9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-tag:hover {
    background: #667eea;
    color: white;
}

.hot-tag.popular {
    background: #667eea;
    color: white;
    font-weight: 500;
}

/* 活跃用户 */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.user-item:hover {
    background: #f8f9fa;
}

.user-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

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

.user-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.user-item-activity {
    font-size: 0.7rem;
    color: #6c757d;
}

.user-item-badge {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 500;
}

/* 今日推荐 */
.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recommendation-item {
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommendation-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.recommendation-reason {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 社区公告 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notice-item {
    padding: 0.8rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: #ffeaa7;
}

.notice-item.important {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.notice-item.important:hover {
    background: #f5c6cb;
}

.notice-title {
    font-weight: 600;
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.notice-item.important .notice-title {
    color: #721c24;
}

.notice-date {
    font-size: 0.7rem;
    color: #6c757d;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 1.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-count {
    text-align: right;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

.help-text {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

/* 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.editor-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.editor-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.form-group textarea {
    border-radius: 0 0 6px 6px;
    border-top: none;
    resize: vertical;
    min-height: 200px;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel,
.btn-submit {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-submit {
    background: #667eea;
    color: white;
}

.btn-submit:hover {
    background: #5a6fd8;
}

/* 搜索表单样式 */
.search-form {
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-submit {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #5a6fd8;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 搜索结果样式 */
.search-results {
    min-height: 200px;
}

.search-results .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.search-results .empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.search-results .empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .community-nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tabs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .community-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .tab-panel {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .expert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stock-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .strategy-categories {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .strategy-performance {
        justify-content: center;
    }
    
    .guide-sections {
        grid-template-columns: 1fr;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .topic-item,
    .post-item,
    .expert-post,
    .strategy-post {
        padding: 1rem;
    }
    
    .sidebar > div {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: #6c757d;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* 实用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: 600; }
.font-weight-normal { font-weight: 400; }
.text-muted { color: #6c757d; }
.text-primary { color: #667eea; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }