/* CSS变量定义 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #8590a6;
    --bg-color: #f6f6f6;
    --bg-light: #f8f9fa;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 静态页面样式 */
.static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

/* 主容器布局 - 与首页保持一致 */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 0 20px;
}

.content {
    min-width: 0;
}

.page-content {
    line-height: 1.6;
    color: #34495e;
}

.intro-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.intro-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e74c3c;
}

.section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
}

.section ul, .section ol {
    margin: 15px 0;
    padding-left: 30px;
}

.section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 关于我们页面特殊样式 */
.community-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.group-item {
    background: #fff;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.group-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.group-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.group-item h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.group-item p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.mission-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.mission-item, .value-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.mission-item h3, .value-item h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.mission-item p, .value-item p {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.feature-item h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.feature-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.join-benefits {
    background: #e3f2fd;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.join-benefits li {
    margin-bottom: 10px;
    font-weight: 500;
}

.cta-section {
    text-align: center;
    margin: 30px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    min-width: 100px;
    color: #2c3e50;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.policy-footer {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.policy-footer p {
    margin-bottom: 10px;
    color: #495057;
}

.policy-footer p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

/* ==================== 右侧栏样式 ==================== */

/* 侧边栏整体布局 - 与首页保持一致 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 侧边栏卡片容器 - 与首页保持一致 */
.sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

/* 侧边栏标题 - 与首页保持一致 */
.sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 快速导航样式 */
.quick-nav, .privacy-nav, .terms-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: #f7fafc;
    color: #2b6cb0;
    border-color: #e2e8f0;
    text-decoration: none;
}

.nav-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* 最新用户网格 - 与首页保持一致 */
.new-users {
    margin-top: -5px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    max-height: 110px; /* 限制高度，确保只显示两排 */
    overflow: hidden;
}

.user-item {
    aspect-ratio: 1;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.user-item:hover {
    transform: translateY(-2px) scale(1.05);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-placeholder {
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
    padding: 20px 0;
    font-style: italic;
}

/* 热门节点样式 - 与首页保持一致 */
.hot-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.node-tag {
    display: inline-block;
    padding: 4px 8px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.node-tag:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

/* 最新项目列表 */
.latest-projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    display: block;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fafafa;
}

.project-item:hover {
    border-color: #cbd5e0;
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.project-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.project-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.project-category {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.project-stars {
    color: #ed8936;
    font-weight: 500;
}

/* 社区统计样式 */
.community-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.stat-item i {
    width: 20px;
    text-align: center;
    color: #4299e1;
    font-size: 16px;
}

.stat-item span {
    flex: 1;
    color: #718096;
    font-size: 13px;
}

.stat-item strong {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

/* 隐私提示样式 */
.privacy-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #4299e1;
}

.tip-item i {
    color: #4299e1;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-content h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.tip-content p {
    margin: 0;
    font-size: 12px;
    color: #718096;
    line-height: 1.3;
}

/* 社区规则提示样式 */
.rule-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-tips .tip-item {
    border-left-color: #48bb78;
}

.rule-tips .tip-item i {
    color: #48bb78;
}

/* 相关链接样式 */
.related-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.link-item:hover {
    background: #f7fafc;
    color: #2b6cb0;
    border-color: #e2e8f0;
    text-decoration: none;
}

.link-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* 响应式设计 - 与首页保持一致 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .sidebar-box {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .static-page {
        margin: 0;
        border-radius: 0;
        padding: 15px;
        box-shadow: none;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .section h2 {
        font-size: 1.5em;
    }
    
    .community-groups {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mission-grid, .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .group-item, .mission-item, .value-item, .feature-item {
        padding: 15px;
    }
    
    .btn {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item strong {
        min-width: auto;
    }
    
    /* 用户网格调整 - 与首页保持一致 */
    .user-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 隐藏侧边栏 - 与首页保持一致 */
    .sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8em;
    }
    
    .intro-section, .contact-info, .policy-footer {
        padding: 15px;
    }
    
    .section ul, .section ol {
        padding-left: 20px;
    }
    
    /* 用户网格调整 - 与首页保持一致 */
    .user-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} 