/* 海角社区用户中心页面样式 */

/* CSS变量定义 - 海洋蓝色主题 */
:root {
    --ocean-blue: #1e88e5;
    --deep-blue: #1565c0;
    --light-blue: #42a5f5;
    --teal: #00acc1;
    --cyan: #00bcd4;
    --amber: #ffb300;
    --orange: #ff9800;
    --green: #4caf50;
    --red: #f44336;
    
    --text-primary: #263238;
    --text-secondary: #546e7a;
    --text-light: #90a4ae;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-dark: #263238;
    
    --gradient-ocean: linear-gradient(135deg, #1e88e5, #42a5f5);
    --gradient-teal: linear-gradient(135deg, #00acc1, #00bcd4);
    --gradient-warm: linear-gradient(135deg, #ffb300, #ff9800);
    
    --shadow-light: 0 2px 8px rgba(30, 136, 229, 0.08);
    --shadow-medium: 0 4px 16px rgba(30, 136, 229, 0.12);
    --shadow-heavy: 0 8px 32px rgba(30, 136, 229, 0.16);
    --shadow-deep: 0 16px 48px rgba(30, 136, 229, 0.24);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    
    --animation-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --animation-quick: all 0.2s ease;
}

/* 基础样式继承首页 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 用户中心特定样式 */
.user-dashboard {
    padding: 100px 0;
    background: var(--bg-white);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.profile-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-medium);
    text-align: center;
    height: fit-content;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ocean-blue);
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

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

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--ocean-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.edit-profile-btn {
    width: 100%;
    background: var(--gradient-ocean);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--animation-smooth);
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.content-section {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.section-tabs {
    display: flex;
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--animation-smooth);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--ocean-blue);
    border-bottom-color: var(--ocean-blue);
    background: rgba(30, 136, 229, 0.05);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.user-posts {
    display: grid;
    gap: 20px;
}

.user-post {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    border-radius: var(--border-radius-md);
    transition: var(--animation-smooth);
}

.user-post:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--ocean-blue);
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.post-details {
    flex: 1;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-preview {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.post-action {
    background: transparent;
    border: 1px solid var(--ocean-blue);
    color: var(--ocean-blue);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--animation-smooth);
}

.post-action:hover {
    background: var(--ocean-blue);
    color: white;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    padding: 60px;
}

.settings-panel h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
}

.setting-item label {
    font-weight: 500;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid rgba(30, 136, 229, 0.2);
    border-radius: var(--border-radius-sm);
    background: var(--bg-light);
}

/* 页脚继承样式 */
.page-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 24px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-intro {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.footer-legal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--animation-smooth);
}

.footer-menu a:hover {
    color: var(--light-blue);
}

.contact-details p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-tabs {
        overflow-x: auto;
    }
    
    .user-post {
        flex-direction: column;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}