
.container {
    max-width: 100%;
    margin: 2px auto;
}

.profile-card {
    background: var(--card-bg);
    color: var(--text-color);
    margin-bottom: 20px;
    overflow: hidden;
    border-top: var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.profile-header {
    background: var(--profile-header-bg);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-section {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    background-color: #2c3e50;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s;
    background-color: #707070; 
}

.avatar-upload:hover {
    background: white;
    transform: scale(1.1);
    color: #000;
}

.avatar-msg-link {
    position: absolute;
    bottom: -20px;
    left: -15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nav-active-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    z-index: 2;
}
.avatar-msg-link:hover {
    background: var(--border-color);
    color: #fff;
    transform: scale(1.1);
}
.avatar-msg-link .iconfont {
    font-size: 16px;
}
.msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid var(--card-bg);
    font-style: normal;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.profile-info h1 {
    margin: 0;
    font-size: 24px;
}

.profile-info p {
    margin: 5px 0 0;
    opacity: 0.9;
}

/* 左右布局样式 */
.profile-content {
    display: flex;
    min-height: 500px;
    border-bottom: var(--nav-border) 1px solid;
}

.nav-sidebar {
    width: 220px;
    border-right: 1px solid var(--nav-border);
    padding: 20px 0;
}

.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 5px solid transparent;
    color: var(--text-color);
    font-size: 14px;
}

.nav-item:hover {
    color: var(--link-color);
    background-color: var(--nav-active-bg);
}

.nav-item.active {
    border-left-color: var(--link-color);
    font-weight: 500;
    background-color: var(--nav-active-bg);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 3px;
}
.nav-item.active:before {
    content: "\e65e";
    font-size: 20px;
    margin-right: 3px;
}

.tab-content-container {
    flex: 1;
    padding: 20px;
}

.tab-content {
    display: none;
}

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

.form-section {
    position: relative;
}

.form-gap {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.form-section h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

/* 添加表单字段行样式 */
.form-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-field-row label {
    width: 70px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 15px;
    text-align: right;
    font-size: 14px;
}

.form-field-row .form-control-wrapper {
    flex: 1;
    max-width: 400px; /* 控制输入框宽度 */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: var(--input-bg);
    color: var(--input-text);
}

.form-control:focus {
    border-color: var(--link-color);
    outline: none;
}

.profile-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.location-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 400px; /* 控制地区选择器宽度 */
}

.category-tree {
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    font-weight: 1000;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
}

.category-parent {
    font-weight: 500;
    color: #2c3e50;
    margin: 10px 0;
}

.category-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: normal;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

/* 模态框样式 (Facebook 风格) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.post-modal {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: modal-in 0.3s ease-out;
}

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

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    right: 15px;
    background: var(--nav-active-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-user-info {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.small-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2c3e50;
}

.user-details .username {
    font-weight: 600;
    font-size: 15px;
    display: block;
}

.privacy-wrapper {
    margin-top: 4px;
}

.privacy-select-input {
    background: var(--nav-active-bg);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 8px;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
    font-weight: 600;
}

.privacy-select-input:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 0 20px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.post-textarea {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 18px;
    resize: none;
    outline: none;
    min-height: 100px;
}

/* 媒体预览区域 */
.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-img, .preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.remove-media:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 操作栏样式 */
.post-actions-bar {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.add-to-post {
    font-weight: 600;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--nav-active-bg);
}

.action-btn i {
    font-size: 20px;
}

.post-textarea::placeholder {
    font-size: 18px;
    opacity: 0.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.btn-submit-post {
    width: 100%;
    background: var(--link-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.btn-submit-post:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit-post:hover:not(:disabled) {
    filter: brightness(1.1);
}

/* 动态列表样式 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2c3e50;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.post-time {
    font-size: 12px;
    opacity: 0.6;
    color: var(--text-color);
}

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

.post-privacy-indicator {
    font-size: 11px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 2px;
}

.post-options {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-privacy-select {
    background: var(--nav-active-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 4px;
    color: var(--text-color);
    cursor: pointer;
}

.delete-post-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    width: auto;
    box-shadow: none;
}

.delete-post-btn:hover {
    opacity: 1;
    color: #f02849;
    background: rgba(240, 40, 73, 0.1);
}

.post-content p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: var(--text-color);
}

/* 媒体网格 */
.post-media-grid {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.post-media-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media-item img, .post-media-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 媒体数量自适应布局 */
.media-count-1 { grid-template-columns: 1fr; }
.media-count-2 { grid-template-columns: 1fr 1fr; }
.media-count-3 { grid-template-columns: 1fr 1fr; }
.media-count-3 .post-media-item:first-child { grid-column: span 2; }
.media-count-4 { grid-template-columns: 1fr 1fr; }

/* 单张图片 - 自然比例显示 */
.media-count-1 .post-media-item {
    aspect-ratio: auto;
    max-height: 500px;
    background: transparent;
}
.media-count-1 .post-media-item img {
    object-fit: contain;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

/* 多张图片 - 统一正方形裁剪 */
.media-count-2 .post-media-item,
.media-count-3 .post-media-item,
.media-count-4 .post-media-item {
    aspect-ratio: 1/1;
    background: var(--nav-active-bg);
}
.media-count-2 .post-media-item img,
.media-count-3 .post-media-item img,
.media-count-4 .post-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 互动栏 */
.post-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    padding-top: 10px;
}

.post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    color: var(--text-color);
    opacity: 0.8;
}

.post-action:hover {
    background: var(--nav-active-bg);
    opacity: 1;
}

.post-action.active {
    opacity: 1;
    font-weight: 600;
}

.post-action.active i.icon-dianzan1 {
    color: #f02849; /* 点赞红色 */
}

.post-action.active i.icon-shoucang1 {
    color: #f7b924; /* 收藏金色 */
}

.post-action span {
    font-size: 14px;
}

.btn-primary {
    padding: 9px 19px;
    cursor: pointer;
    margin-right: 10px;
    width: 120px;
    text-align: center;
    color: #cccbcb;
    background: linear-gradient(to right,rgb(34, 43, 52),rgb(26, 32, 35));
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #2c3e50;
}
.btn-primary:visited {
    color: white;
}
.create-team{
    padding-left: 5px;
}
.find-team{
    margin-left: 20px;
    padding-left: 5px;
}
.btn-secondary {
    padding: 9px 19px;
    cursor: pointer;
    margin-right: 10px;
    width: 120px;
    text-align: center;
    color: #cccbcb;
    background: linear-gradient(to right,rgb(34, 43, 52),rgb(26, 32, 35));
    border: none;
    border-radius: 4px;
    font-size: 16px;
}
.btn-logout{
    font-size: 12px;
    padding-left: 8px;
}
.btn-logout:hover {
    color: #f3bbbb;
    text-decoration: none;
}

.create-button {
    font-size: 14px;
}
.edit-button {
    position: absolute;
    top: 0;
    right: 0;
}

.info-item {
    margin-bottom: 15px;
}

.info-item .label {
    font-weight: 1000;
    margin-bottom: 5px;
}

.info-item .value {
    color: #adadad;
    margin-left: 30px;
}
.teamup{
    font-size: 16px;
}
.teamup .label {
    font-weight: 1000;
}
.teamup.value {
    color: #1d246b;
}

.info-section {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 对话框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    float: right;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 0;
    padding: 0px;
    margin: -5px 0 0 0;
}

.close-button:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}