/* 微信模拟器样式 - 真实手机风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #EDEDED;
    -webkit-font-smoothing: antialiased;
}

/* 全屏微信应用容器 */
.wechat-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #EDEDED;
}

/* 状态栏 */
.status-bar {
    height: 24px;
    background: #EDEDED;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 10px;
    color: #333;
}

.wifi-icon {
    display: flex;
    align-items: center;
}

.battery-icon {
    display: flex;
    align-items: center;
    gap: 2px;
}

.battery-text {
    font-size: 11px;
    font-weight: 500;
    margin-left: 1px;
}

/* 页面内容 */
.page-content {
    flex: 1;
    overflow-y: auto;
    background: #EDEDED;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* 底部导航 */
.bottom-nav {
    height: 44px;
    background: #F7F7F7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 0.5px solid #D6D6D6;
    flex-shrink: 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 3px 0;
    color: #999;
}

.nav-item.active {
    color: #07C160;
}

.nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-text {
    font-size: 9px;
    margin-top: 1px;
}

.badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(11px);
    background: #FA5151;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 7px;
    min-width: 12px;
    text-align: center;
    font-weight: 500;
}

/* 聊天列表页 */
.chat-list-page {
    background: #EDEDED;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: #EDEDED;
    padding: 0 12px;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header h1 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.header-icons {
    display: flex;
    gap: 14px;
    cursor: pointer;
}

.header-icons svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.chat-search {
    padding: 5px 10px;
    background: #EDEDED;
    flex-shrink: 0;
}

.chat-search input {
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    outline: none;
    text-align: center;
}

.chat-search input::placeholder {
    color: #B2B2B2;
}

.chat-list {
    background: white;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-item {
    display: flex;
    padding: 8px 10px;
    background: white;
    cursor: pointer;
    position: relative;
    align-items: center;
}

.chat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 58px;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: #E5E5E5;
}

.chat-item:active {
    background: #ECECEC;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 500;
}

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

.chat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 38px;
}

.chat-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.chat-name {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

.chat-time {
    font-size: 10px;
    color: #B2B2B2;
    flex-shrink: 0;
}

.chat-preview {
    font-size: 12px;
    color: #B2B2B2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.chat-unread {
    background: #FA5151;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 7px;
    margin-left: 5px;
    font-weight: 500;
    flex-shrink: 0;
}

/* 弹出菜单 */
.popup-menu {
    position: fixed;
    top: 44px;
    right: 8px;
    background: #4C4C4C;
    border-radius: 4px;
    padding: 2px 0;
    min-width: 110px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.popup-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #4C4C4C;
}

.popup-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.popup-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.popup-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
}

/* 聊天详情页 */
.chat-detail-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #EDEDED;
}

.chat-detail-header {
    background: #EDEDED;
    padding: 0 8px;
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid #D6D6D6;
    flex-shrink: 0;
}

.back-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    color: #000;
    margin-left: 0;
}

.chat-detail-title {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #000;
}

.chat-detail-actions {
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    color: #000;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    background: #EDEDED;
    -webkit-overflow-scrolling: touch;
}

.message-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.message-item.sent {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    margin: 0 5px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    overflow: hidden;
}

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

.message-bubble {
    max-width: 65%;
    padding: 7px 9px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.35;
    word-wrap: break-word;
}

.message-item.received .message-bubble {
    background: white;
    color: #000;
}

.message-item.sent .message-bubble {
    background: #95EC69;
    color: #000;
}

.message-time {
    color: #B2B2B2;
    font-size: 10px;
    text-align: center;
    margin: 6px 0;
    padding: 2px 5px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    display: inline-block;
}

/* 输入框区域 */
.input-area {
    background: #F7F7F7;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 0.5px solid #D6D6D6;
    flex-shrink: 0;
}

.voice-circle-btn {
    width: 32px;
    height: 32px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.voice-circle-btn:active {
    opacity: 0.7;
}

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

.message-input {
    width: 100%;
    padding: 8px 36px 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    background: white;
    min-height: 36px;
}

.input-mic-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon {
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    color: #000;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon:active {
    opacity: 0.6;
}

/* 语音输入区域 */
.voice-input-area {
    background: #F7F7F7;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 0.5px solid #D6D6D6;
    flex-shrink: 0;
}

.voice-input-btn {
    flex: 1;
    background: white;
    border-radius: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    color: #333;
    user-select: none;
    cursor: pointer;
}

.voice-input-btn:active {
    background: #ECECEC;
}

/* 更多面板 */
.more-panel {
    background: #F7F7F7;
    border-top: 0.5px solid #D6D6D6;
    padding: 20px 15px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.more-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.more-item span {
    font-size: 12px;
    color: #333;
}

.send-btn {
    background: #07C160;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.send-btn:active {
    background: #06AD56;
}

/* 通讯录页面 */
.contacts-page {
    background: #EDEDED;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-header {
    background: #EDEDED;
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contacts-header h1 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.contact-item {
    display: flex;
    padding: 8px 10px;
    background: white;
    cursor: pointer;
    align-items: center;
    position: relative;
}

.contact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 54px;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: #E5E5E5;
}

.contact-avatar {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    margin-right: 8px;
    overflow: hidden;
}

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

.contact-name {
    font-size: 14px;
    color: #000;
}

.contact-section-title {
    background: #EDEDED;
    padding: 4px 10px 3px;
    font-size: 11px;
    color: #B2B2B2;
}

/* 发现页和我的页面 */
.discover-page, .me-page {
    background: #EDEDED;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.discover-header, .me-header {
    background: #EDEDED;
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.discover-header h1, .me-header h1 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: white;
    position: relative;
}

.menu-item:active {
    background: #ECECEC;
}

.menu-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    color: #000;
}

.menu-arrow {
    color: #C8C8C8;
    font-size: 14px;
}

.menu-section {
    margin-top: 6px;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 44px;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: #E5E5E5;
}

/* 我的页面 */
.profile-card {
    background: white;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 12px;
    overflow: hidden;
}

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

.profile-info h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #000;
}

.profile-info p {
    font-size: 12px;
    color: #999;
}

.profile-qr {
    margin-left: auto;
    color: #C8C8C0;
    font-size: 14px;
}

/* 添加好友弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 85%;
    max-width: 280px;
    max-height: 80%;
    overflow-y: auto;
}

.modal-header {
    padding: 12px;
    border-bottom: 0.5px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}

.modal-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.modal-body {
    padding: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 8px 9px;
    border: 0.5px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #07C160;
}

.modal-footer {
    padding: 12px;
    border-top: 0.5px solid #E5E5E5;
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: #07C160;
    color: white;
}

.btn-secondary {
    background: #F5F5F5;
    color: #000;
}

/* 滚动条隐藏 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* 动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.2s ease;
}

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

.fade-in {
    animation: fadeIn 0.15s ease;
}

/* ========== 添加好友搜索页面 ========== */
.add-friend-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #EDEDED;
}

.add-friend-header {
    background: #EDEDED;
    padding: 0 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #D6D6D6;
}

.header-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.add-friend-search-box {
    padding: 8px 12px;
    background: #EDEDED;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-friend-search-box .search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 0 10px;
}

.add-friend-search-box .search-icon {
    flex-shrink: 0;
}

.add-friend-search-box .search-input-wrapper input {
    flex: 1;
    padding: 8px 8px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.add-friend-search-box .search-input-wrapper .clear-btn {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-friend-search-box .cancel-btn {
    color: #07C160;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.add-friend-search-box input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    outline: none;
}

.add-friend-search-box .search-btn {
    padding: 10px 16px;
    background: #07C160;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.add-friend-search-box .search-btn:active {
    background: #06AD56;
}

.add-friend-search {
    padding: 10px;
    background: #EDEDED;
}

.add-friend-search input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    outline: none;
}

.add-friend-tip {
    padding: 0 12px 10px;
    font-size: 12px;
    color: #999;
}

.search-results {
    flex: 1;
    background: white;
    overflow-y: auto;
}

/* 添加朋友页面搜索栏 */
.add-friend-search-bar {
    margin: 10px 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.add-friend-search-bar .search-placeholder {
    color: #999;
    font-size: 15px;
    margin-left: 8px;
}

/* 精准搜索输入页面 */
.search-input-page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 添加方式选项列表 */
.add-friend-options {
    background: white;
    margin-top: 10px;
}

.add-option-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 0.5px solid #F0F0F0;
    cursor: pointer;
}

.add-option-item:active {
    background: #F5F5F5;
}

.add-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.add-option-info {
    flex: 1;
}

.add-option-title {
    font-size: 16px;
    color: #333;
}

.add-option-desc {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.add-option-arrow {
    font-size: 18px;
    color: #C8C8C8;
}

/* 添加朋友页面底部 */
.add-friend-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.my-qrcode {
    width: 120px;
    height: 120px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-wechat-id {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* 搜索提示项样式 */
.search-hint-item {
    display: flex;
    padding: 14px 16px;
    align-items: center;
    cursor: pointer;
    background: white;
}

.search-hint-item:active {
    background: #F5F5F5;
}

.search-hint-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: #07C160;
}

.search-hint-text {
    font-size: 16px;
}

.search-hint-text .hint-label {
    color: #333;
}

.search-hint-text .hint-keyword {
    color: #07C160;
}

/* 搜索结果项样式 */
.search-result-item {
    display: flex;
    padding: 12px;
    align-items: center;
    cursor: pointer;
    border-bottom: 0.5px solid #F0F0F0;
}

.search-result-item:active {
    background: #F5F5F5;
}

/* 搜索结果空状态 */
.search-result-empty {
    padding: 50px 20px;
    text-align: center;
}

.search-result-empty .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.search-result-empty .empty-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.search-result-empty .empty-hint {
    font-size: 13px;
    color: #999;
}

/* 搜索输入页面 */
.search-input-page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
    overflow: hidden;
}

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

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 16px;
    color: #000;
    margin-bottom: 3px;
}

.search-result-id {
    font-size: 13px;
    color: #999;
}

/* ========== 用户资料页面 ========== */
.user-profile-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #EDEDED;
}

.profile-header {
    background: #EDEDED;
    padding: 0 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #D6D6D6;
}

/* 用户信息区域 - 头像+昵称+微信号+地区 横向布局 */
.profile-user-info {
    background: white;
    padding: 16px;
    display: flex;
    align-items: flex-start;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #EDEDED;
}

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

.profile-user-detail {
    flex: 1;
    margin-left: 14px;
}

.profile-nickname-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.profile-nickname {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

.profile-gender {
    width: 18px;
    height: 18px;
    background: #4A90D9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.profile-wechat-id,
.profile-region {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

/* 朋友圈预览区域 */
.profile-moments-section {
    background: white;
    margin-top: 10px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.moments-left {
    width: 60px;
}

.moments-label {
    font-size: 15px;
    color: #000;
}

.moments-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.moments-thumbnails {
    display: flex;
    gap: 4px;
}

.moment-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #EDEDED;
}

.moment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d4ab 100%);
}

.thumb-food1 {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.thumb-food2 {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}

.thumb-food3 {
    background: linear-gradient(135deg, #ffccbc 0%, #ffab91 100%);
}

.video-indicator {
    position: absolute;
    left: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moments-arrow {
    font-size: 18px;
    color: #C8C8C8;
    margin-left: 10px;
}

/* 发消息按钮 */
.profile-actions {
    padding: 20px 16px;
    background: white;
    margin-top: 10px;
}

.profile-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn.primary {
    background: #07C160;
    color: white;
}

.profile-btn.primary:active {
    background: #06AD56;
}

/* ========== 新版详细资料页面样式 ========== */
.header-more {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    width: 30px;
    text-align: center;
}

.profile-card-new {
    background: white;
    padding: 16px;
    display: flex;
    align-items: flex-start;
}

.profile-avatar-new {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #EDEDED;
}

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

.profile-info-new {
    flex: 1;
    margin-left: 14px;
}

.profile-nickname-new {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.profile-nickname-new span:first-child {
    font-size: 17px;
    font-weight: 500;
    color: #000;
}

.gender-icon {
    margin-left: 6px;
    font-size: 16px;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
}

.detail-label {
    color: #999;
    width: 48px;
    flex-shrink: 0;
}

.detail-value {
    color: #000;
}

/* 菜单区块 */
.profile-menu-section {
    background: white;
    margin-top: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
}

.menu-item-left {
    flex: 1;
}

.menu-item-title {
    font-size: 15px;
    color: #000;
    display: block;
}

.menu-item-desc {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

.menu-item-arrow {
    font-size: 18px;
    color: #C8C8C8;
    margin-left: 10px;
}

/* 朋友圈预览样式 */
.moments-item {
    align-items: flex-start;
}

.moments-preview {
    display: flex;
    align-items: center;
}

.moments-thumbs-new {
    display: flex;
    gap: 4px;
}

.moment-thumb-new {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #EDEDED;
}

.moment-thumb-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-thumb {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

/* 底部按钮区域 */
.profile-actions-new {
    display: flex;
    gap: 10px;
    padding: 20px 16px;
    background: white;
    margin-top: 10px;
}

.action-btn-new {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.primary-btn {
    background: #07C160;
    color: white;
}

.primary-btn:active {
    background: #06AD56;
}

.secondary-btn {
    background: white;
    color: #07C160;
    border: 1px solid #07C160;
}

.secondary-btn:active {
    background: #F0FFF0;
}
