/* Iconify 图标通用样式 */
.iconify { vertical-align: middle; }
.input-icon .iconify { font-size: 20px; }
.moment-action-icon .iconify,
.post-action-icon .iconify,
.detail-action-icon .iconify { font-size: 18px; }
.item-icon .iconify { font-size: 16px; }
.share-action-icon .iconify { font-size: 22px; color: #fff; }
.comment-action-btn .action-icon .iconify { font-size: 16px; }
.empty-icon .iconify { font-size: 48px; opacity: 0.6; }
.empty-favorites-icon .iconify { font-size: 48px; opacity: 0.4; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 懒加载图片样式 */
img.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: var(--background-color);
}

img.lazy-img.lazy-loaded {
    opacity: 1;
}

/* ========== 骨架屏样式 ========== */
.skeleton-card {
    background: var(--card-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-avatar-lg {
    width: 56px;
    height: 56px;
}

.skeleton-avatar-sm {
    width: 32px;
    height: 32px;
}

.skeleton-user-info {
    flex: 1;
    padding-left: 12px;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-username {
    height: 16px;
    width: 60%;
    margin-bottom: 6px;
}

.skeleton-username-lg {
    height: 18px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-time {
    height: 12px;
    width: 40%;
}

.skeleton-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    height: 14px;
    width: 90%;
    margin-bottom: 8px;
}

.skeleton-content-short {
    height: 14px;
    width: 60%;
}

.skeleton-images {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.skeleton-image {
    width: calc((100% - 12px) / 3);
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.skeleton-action {
    width: 40px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-color);
    border-radius: 12px;
    margin-bottom: 12px;
}

.skeleton-user-info-lg {
    flex: 1;
}

.skeleton-bio {
    height: 13px;
    width: 50%;
}

.skeleton-btn {
    width: 60px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-comment {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-comment-body {
    flex: 1;
}

.skeleton-comment-username {
    height: 14px;
    width: 50%;
    margin-bottom: 6px;
}

.skeleton-comment-content {
    height: 13px;
    width: 80%;
    margin-bottom: 6px;
}

.skeleton-comment-content-short {
    height: 13px;
    width: 50%;
}

.page-loading-skeleton {
    padding-bottom: 60px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.skeleton-header-left,
.skeleton-header-right {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-header-title {
    width: 100px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-section {
    padding: 0 16px;
    margin-bottom: 20px;
}

.skeleton-section-title {
    height: 18px;
    width: 40%;
    margin-bottom: 12px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton-grid-item {
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 布局样式 ========== */
.mobile-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航 */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    height: 44px;
}

.app-header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
}

.app-header-back {
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header-back .iconify {
    font-size: 24px;
    color: var(--primary-color);
}

.app-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-right {
    display: flex;
    align-items: center;
}

/* 主内容区域 */
.app-main {
    flex: 1;
    padding-bottom: 60px;
}

/* 底部导航栏 */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    z-index: 99;
}

.app-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #8E8E93;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.app-tabbar-item.active {
    color: #007AFF;
}

.app-tabbar-icon {
    font-size: 20px;
    margin-bottom: 2px;
    color: inherit;
}

.app-tabbar-item.active .app-tabbar-icon {
    color: inherit;
}

.unread-badge {
    position: absolute;
    top: 0;
    right: 38%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    box-sizing: border-box;
}

.app-tabbar-publish {
    position: relative;
}

.app-tabbar-icon-publish {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-tabbar-icon-publish::before {
    content: '';
    width: 16px;
    height: 2px;
    background: white;
    position: absolute;
}

.app-tabbar-icon-publish::after {
    content: '';
    width: 2px;
    height: 16px;
    background: white;
    position: absolute;
}

/* 加载指示器 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 999;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* 页面特定样式 */
.home-page .app-header {
    background-color: var(--primary-color);
    color: white;
}

.home-page .app-header-title {
    color: white;
}

/* 用户页面导航栏 */
.user-page .app-header-back {
    color: var(--primary-color);
}

.user-page .app-header-title {
    color: var(--text-color);
}

/* ========== 登录/注册弹窗样式 ========== */
.auth-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.auth-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-camera {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 4px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--text-secondary-color);
}

.form-input.with-icon {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--background-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s;
}

.form-input.with-icon:focus {
    border-color: var(--primary-color);
}

.send-code-btn {
    padding: 10px 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary-color);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-width: 40px;
    min-height: 40px;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.send-code-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary-color);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

/* ========== 分享弹窗样式 ========== */
.share-modal {
    max-width: 400px;
}

.share-card-preview {
    background: var(--background-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.share-card-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 8px;
}

.share-card-url {
    font-size: 12px;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.share-action:active {
    transform: scale(0.95);
}

.share-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-action-label {
    font-size: 12px;
    color: var(--text-secondary-color);
}

.share-extra-actions {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.share-extra-action {
    color: var(--text-secondary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
}

/* ========== 评论弹窗样式 ========== */
.comment-modal .modal-container {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.comment-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
}

.comment-post-preview {
    padding: 12px 16px;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.comment-post-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-loading {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 评论列表 */
.comment-list {
    padding: 0;
}

.comment-item {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar-wrapper {
    flex-shrink: 0;
    margin-right: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 8px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary-color);
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-word;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    color: var(--text-secondary-color);
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.comment-action-btn .action-icon {
    margin-right: 4px;
    font-size: 16px;
}

.comment-action-btn.liked {
    color: #ff4757;
}

.comment-action-btn .action-text {
    color: var(--text-secondary-color);
    font-size: 13px;
    margin-left: 2px;
}

.comment-action-btn.liked .action-text {
    color: #ff4757;
}

/* 楼中楼回复 */
.comment-replies {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--background-color);
    border-radius: 8px;
}

.comment-reply-item {
    padding: 8px 0;
}

.comment-reply-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.comment-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.comment-reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}

.comment-reply-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.comment-reply-meta {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 12px;
}

.comment-reply-time {
    font-size: 11px;
    color: var(--text-secondary-color);
}

.comment-reply-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    padding-left: 32px;
    word-break: break-word;
}

.comment-reply-to {
    color: var(--primary-color);
    margin-right: 4px;
}

.comment-reply-action {
    font-size: 12px;
    color: var(--text-secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0;
}

.comment-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary-color);
    font-size: 14px;
}

.view-more-replies {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    color: var(--primary-color);
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
}

.comment-reply-actions {
    margin-left: 36px;
    margin-top: 4px;
}

.comment-reply-action {
    color: var(--text-secondary-color);
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px 4px 0;
}

.comment-reply-action:hover {
    color: var(--primary-color);
}

/* 评论输入区 */
.comment-input-area {
    padding: 12px 16px;
    background: var(--card-color);
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
}

.comment-reply-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary-color);
}

.comment-reply-tip button {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-secondary-color);
    cursor: pointer;
    padding: 0;
}

.comment-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

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

.comment-textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 100px;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.4;
    min-height: 40px;
}

.comment-textarea:focus {
    border-color: var(--primary-color);
}

.comment-submit-btn {
    padding: 10px 18px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-submit-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary-color);
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.comment-textarea {
    flex: 1;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 100px;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.4;
    min-height: 40px;
}

.comment-emoji-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.comment-emoji-btn:hover {
    color: var(--primary-color);
    background: var(--background-color);
}

.comment-emoji-picker {
    margin-top: 12px;
    background: var(--card-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-emoji-picker .emoji-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.comment-emoji-picker .emoji-tab {
    flex: 1;
    padding: 6px;
    border: none;
    background: var(--background-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.comment-emoji-picker .emoji-tab.active {
    background: var(--primary-color);
}

.comment-emoji-picker .emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.comment-emoji-picker .emoji-item {
    padding: 6px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.comment-emoji-picker .emoji-item:hover {
    background: var(--background-color);
}

.count-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ========== 转发弹窗样式 ========== */
.repost-preview-card {
    background: var(--background-color);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.repost-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.repost-author-name {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 8px;
}

.repost-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repost-options {
    margin-bottom: 12px;
}

.repost-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.repost-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.repost-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    outline: none;
    background: var(--background-color);
    color: var(--text-color);
    margin-bottom: 16px;
}

.repost-textarea:focus {
    border-color: var(--primary-color);
}

.repost-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.repost-submit-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--card-color);
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--text-secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 发布弹窗 */
.publish-modal .modal-container {
    max-height: 90vh;
}

.publish-form {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.publish-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 150px;
    padding: 12px 16px;
    border: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    background: transparent;
    color: var(--text-color);
    flex-shrink: 0;
}

.publish-textarea:focus {
    outline: none;
}

.publish-media-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 8px;
}

.publish-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publish-images:empty {
    display: none;
}

.publish-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

.publish-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publish-video-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.publish-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 视频预览播放按钮缩小 */
.publish-video-item video::-webkit-media-controls {
    font-size: 10px !important;
}

.publish-video-item video::-webkit-media-controls-play-button {
    width: 28px !important;
    height: 28px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
}

.publish-video-item video::-webkit-media-controls-mute-button {
    width: 20px !important;
    height: 20px !important;
}

.publish-video-item video::-webkit-media-controls-timeline {
    display: none !important;
}

.publish-video-item video::-webkit-media-controls-current-time-display,
.publish-video-item video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

/* 火狐浏览器 */
.publish-video-item video::-moz-media-controls {
    font-size: 10px;
}

.publish-video-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.publish-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publish-videos:empty {
    display: none;
}

.publish-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.publish-tools {
    display: flex;
    gap: 4px;
}

.publish-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 6px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary-color);
    transition: all 0.2s;
    min-width: 36px;
}

.publish-tool-btn:active {
    background: var(--background-color);
}

.publish-tool-btn svg {
    opacity: 0.7;
    width: 20px;
    height: 20px;
}

.publish-tool-btn span.tool-label {
    font-size: 9px;
    line-height: 1.1;
}

.publish-tool-btn:active svg,
.publish-tool-btn:hover svg {
    opacity: 1;
}

.publish-tool-btn .tool-label {
    font-size: 10px;
    line-height: 1;
}

.publish-tool-btn.anonymous-on {
    color: var(--primary-color);
}

.publish-tool-btn.anonymous-on svg {
    opacity: 1;
}

.publish-tool-btn.location-on {
    color: var(--primary-color);
}

.publish-tool-btn.location-on svg {
    opacity: 1;
}

/* 表情选择器 */
#emojiPicker {
    display: none;
    border-top: 1px solid var(--border-color);
    background: var(--card-color);
    padding: 8px 0;
}

#emojiPicker.active {
    display: block !important;
}

/* 内容中的图片表情样式 */
.moment-content img[src*="emoji"],
.comment-content img[src*="emoji"],
.repost-content img[src*="emoji"],
.comment-post-content img[src*="emoji"] {
    max-width: 20px;
    max-height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

/* 表情选择器中的图片表情样式 */
.emoji-item.emoji-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    cursor: pointer;
}

.emoji-category {
    display: flex;
    gap: 4px;
    padding: 0 12px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.emoji-tab {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-tab:active,
.emoji-tab.active {
    background: var(--background-color);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 0 12px;
    max-height: 150px;
    overflow-y: auto;
}

.emoji-grid::-webkit-scrollbar {
    width: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-item:hover {
    background: var(--background-color);
}

.emoji-item:active {
    background: var(--border-color);
}

.emoji-item:active {
    background: var(--background-color);
}

.publish-char-count {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-right: 12px;
}

.publish-submit-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.publish-submit-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary-color);
    cursor: not-allowed;
}

.publish-submit-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* 分享弹窗 */
.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.share-option:hover {
    background-color: var(--background-color);
}

.share-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

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

/* 评论弹窗 */
.comment-modal .modal-container {
    max-height: 85vh;
}

.comment-input-area {
    position: sticky;
    bottom: 0;
    background-color: var(--card-color);
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
}

.comment-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 100px;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.4;
}

.comment-submit-btn {
    padding: 10px 18px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.comment-submit-btn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 320px) {
    .app-header {
        padding: 10px 12px;
        height: 40px;
    }
    
    .app-header-title {
        font-size: 16px;
    }
    
    .app-tabbar {
        height: 44px;
    }
    
    .app-tabbar-icon {
        font-size: 18px;
    }
    
    .app-tabbar-icon-publish {
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    
    .share-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .share-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* 定位链接样式 */
.location-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    background: var(--background-color);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

.location-link:hover {
    background: var(--primary-light-color);
    text-decoration: underline;
}

/* 发布内容中的定位链接 */
.moment-content .location-link,
.comment-content .location-link,
.detail-content .location-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.moment-content .location-link:active,
.comment-content .location-link:active,
.detail-content .location-link:active {
    opacity: 0.7;
}

/* ========== 圈子卡片样式 ========== */
.circle-card {
    display: flex;
    align-items: center;
    background-color: var(--card-color);
    margin: 12px 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
}

.circle-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #e0e0e0;
}

.circle-info {
    flex: 1;
    min-width: 0;
}

.circle-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.circle-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #007AFF;
    flex-shrink: 0;
    vertical-align: middle;
}

.circle-verified-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.verify-type {
    font-size: 12px;
    color: #007AFF;
    white-space: nowrap;
}

.verify-info {
    font-size: 12px;
    color: #007AFF;
    white-space: nowrap;
}

/* 举报弹窗样式 */
.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-reason-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--background-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.report-reason-item:hover {
    background: var(--border-color);
}

.report-reason-item input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

/* ========== 话题选择弹窗样式 ========== */
.topic-select-container {
    max-height: 80vh;
}

.topic-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.topic-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--background-color);
    color: var(--text-color);
    outline: none;
}

.topic-list-container {
    padding: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.topic-section {
    margin-bottom: 16px;
}

.topic-section-title {
    font-size: 12px;
    color: var(--text-secondary-color);
    padding: 8px 8px 4px;
    font-weight: 500;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.topic-item:hover {
    background: var(--border-color);
}

.topic-name {
    font-size: 14px;
    color: var(--text-color);
}

.topic-count {
    font-size: 12px;
    color: var(--text-secondary-color);
}

/* ========== 位置选择弹窗样式 ========== */
.location-select-container {
    max-height: 80vh;
}

.location-list-container {
    padding: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.location-item:hover {
    background: var(--border-color);
}

.location-icon {
    font-size: 18px;
    margin-right: 10px;
}

.location-name {
    font-size: 14px;
    color: var(--text-color);
}

.location-section {
    margin-top: 12px;
}

.location-section-title {
    font-size: 12px;
    color: var(--text-secondary-color);
    padding: 8px 8px 4px;
    font-weight: 500;
}

/* ========== @用户选择弹窗样式 ========== */
.at-user-container {
    max-height: 80vh;
}

.at-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.at-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--background-color);
    color: var(--text-color);
    outline: none;
}

.at-list-container {
    padding: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.at-section {
    margin-bottom: 16px;
}

.at-section-title {
    font-size: 12px;
    color: var(--text-secondary-color);
    padding: 8px 8px 4px;
    font-weight: 500;
}

.at-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.at-item:hover {
    background: var(--border-color);
}

.at-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    background: var(--border-color);
}

.at-username {
    font-size: 14px;
    color: var(--text-color);
}

/* ========== 媒体查看器样式 ========== */
.media-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-viewer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.media-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-viewer-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    border: 2px solid #cccccc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    transition: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.media-viewer-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.media-viewer-close svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.media-viewer-swiper {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-out;
}

.media-viewer-slide {
    flex: 1;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-viewer-image {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    touch-action: none;
}

/* 视频容器 */
.media-viewer-slide .video-container {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 85vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.media-viewer-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 5;
}

.video-overlay.hidden {
    display: none;
}

.play-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: transform 0.2s;
}

.play-icon:hover {
    transform: scale(1.1);
}

.play-icon.hidden {
    display: none;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}

/* 导航按钮 */
.media-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, opacity 0.3s;
}

.media-viewer-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
}

.media-viewer-nav svg {
    width: 20px;
    height: 20px;
}

.media-viewer-prev {
    left: 16px;
}

.media-viewer-next {
    right: 16px;
}

/* 指示器 */
.media-viewer-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
}

/* 操作按钮 */
.media-viewer-actions {
    position: absolute;
    bottom: 24px;
    right: 16px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.action-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* 缩放控制 */
.media-viewer-zoom-controls {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.zoom-btn svg {
    width: 18px;
    height: 18px;
}

/* 加载指示器 */
.media-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast提示 */
.media-viewer-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.media-viewer-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .media-viewer-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .media-viewer-nav {
        width: 44px;
        height: 44px;
    }

    .media-viewer-prev {
        left: 8px;
    }

    .media-viewer-next {
        right: 8px;
    }

    .media-viewer-indicator {
        bottom: 16px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .media-viewer-actions {
        bottom: 16px;
        right: 12px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .zoom-btn {
        width: 40px;
        height: 40px;
    }

    .play-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

/* ========== 圈子选择弹窗样式 ========== */
.circle-select-container {
    max-height: 70vh;
}

.circle-list-container {
    padding: 8px;
    max-height: 55vh;
    overflow-y: auto;
}

.circle-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.circle-item:hover {
    background: var(--border-color);
}

.circle-item:active {
    background: var(--border-color);
}

.circle-item-not-joined {
    opacity: 0.6;
}

.circle-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.circle-item.active .circle-radio,
.circle-item.selected .circle-radio {
    border-color: var(--primary-color);
}

.circle-item.active .circle-radio::after,
.circle-item.selected .circle-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.circle-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: var(--border-color);
}

.circle-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-color);
}

.circle-not-joined-tag {
    font-size: 12px;
    color: var(--text-secondary-color);
    background: var(--background-light-color);
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.circle-hint {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-left: auto;
}