/* ============================================
   摄汇主义 - 页面专用样式文件
   存放各页面的专用样式（搜索页、私信页、通知页等）
   ============================================ */

/* ========== 搜索页样式 ========== */
.hot-search {
    padding: 10px 0 15px 0;
    font-size: 13px;
}
.hot-search-label {
    color: #999;
    margin-right: 8px;
}
.hot-search-tag {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 5px 3px 0;
    background: #f5f5f5;
    color: #666;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}
.hot-search-tag:hover {
    background: #4a90d9;
    color: #fff;
}
.search-highlight {
    background: #fff3cd;
    color: #d48806;
    padding: 0 2px;
    border-radius: 2px;
}

/* ========== 私信页样式（微信PC端布局） ========== */
.container .content.pm-page-content {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background-color: transparent !important;
}
.pm-wechat-container {
    display: flex;
    width: 1020px;
    max-width: 100%;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70vh;
    min-height: 500px;
}
.pm-left-panel {
    width: 320px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
}
.pm-left-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}
.pm-left-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.pm-conversation-list {
    flex: 1;
    overflow-y: auto;
}
.pm-conversation-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    text-decoration: none;
}
.pm-conversation-item:hover {
    background: #e8e8e8;
}
.pm-conversation-item.active {
    background: #d0d0d0;
}
.pm-conv-avatar {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}
.pm-conv-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: block;
}
.pm-conv-unread {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}
.pm-conv-info {
    flex: 1;
    min-width: 0;
}
.pm-conv-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-conv-lastmsg {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}
.pm-right-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
}
.pm-right-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
}
.pm-right-header .name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.pm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.pm-msg-item {
    display: flex;
    margin-bottom: 18px;
}
.pm-msg-item.from-me {
    flex-direction: row-reverse;
}
.pm-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pm-msg-item.from-me .pm-msg-avatar {
    margin-left: 10px;
}
.pm-msg-item:not(.from-me) .pm-msg-avatar {
    margin-right: 10px;
}
.pm-msg-bubble {
    max-width: 60%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}
.pm-msg-item.from-me .pm-msg-bubble {
    background: #95ec69;
    color: #333;
}
.pm-msg-item:not(.from-me) .pm-msg-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}
.pm-msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.pm-input-area {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.pm-input-area textarea {
    width: 100%;
    height: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    color: #333;
}
.pm-input-area textarea:focus {
    border-color: #95ec69;
}
.pm-send-row {
    margin-top: 10px;
    text-align: right;
}
.pm-send-btn {
    background: #95ec69;
    color: #333;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.pm-send-btn:hover {
    background: #7dd855;
}
.pm-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.pm-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}
.pm-follow-list {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.pm-follow-list h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
}
.pm-follow-user {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.pm-follow-user:hover {
    background: #00B23D;
    color: #fff;
}

/* ========== 通知页样式 ========== */
.notification-list {
    background: #cfd1c3;
    border-radius: 4px;
    overflow: hidden;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.notification-item:hover {
    background: #f9f9f9;
}
.notification-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #4a90d9;
}
.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    background: #ddd;
    overflow: hidden;
}
.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.notification-content {
    flex: 1;
    min-width: 0;
}
.notification-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
.notification-text a {
    color: #4a90d9;
    text-decoration: none;
}
.notification-text a:hover {
    text-decoration: underline;
}
.notification-type {
    display: inline-block;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
    color: #fff;
}
.type-comment { background: #5cb85c; }
.type-like { background: #e74c3c; }
.type-follow { background: #4a90d9; }
.type-mention { background: #f0ad4e; }
.type-message { background: #9b59b6; }
.type-system { background: #999; }
.notification-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.notification-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.notification-tab {
    padding: 6px 16px;
    background: #cfd1c3;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}
.notification-tab:hover {
    border-color: #00B23D;
    color: #00B23D;
}
.notification-tab.active {
    background: #00B23D;
    border-color: #00B23D;
    color: #ffffff;
}
.notification-tab .badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 0 5px;
    border-radius: 8px;
    margin-left: 4px;
}
.read-all-btn {
    float: right;
    padding: 6px 16px;
    background: #cfd1c3;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.read-all-btn:hover {
    border-color: #00B23D;
    color: #00B23D;
}
.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}
