/* 基础样式复位 - 保持简洁 */
body, div, p, input, button, a {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ebebeb;
    color: #000;
    -webkit-user-select: none;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* =================================================================================

   好友动态列表页

   ================================================================================= */
.moment-list-page {
    padding: 58px 0 70px 0;
}

.moment-list-profile-box {
    margin: 0 0 12px 0;
    padding: 14px 12px 12px 12px;
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.moment-list-profile-main {
    display: -webkit-box;
    -webkit-box-align: center;
}

.moment-list-profile-avatar {
    width: 52px;
    height: 52px;
    overflow: hidden;
    background-color: #ddd;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.moment-list-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
}

.moment-list-profile-info {
    -webkit-box-flex: 1;
    margin-left: 12px;
    overflow: hidden;
}

.moment-list-profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.moment-list-profile-sign {
    margin-top: 4px;
    font-size: 13px;
    color: #999;
    line-height: 18px;
}

.moment-list-profile-actions {
    margin-top: 12px;
    overflow: hidden;
}

.moment-list-action-btn {
    float: left;
    min-width: 74px;
    height: 30px;
    line-height: 30px;
    margin-right: 8px;
    padding: 0 12px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-list-action-btn:active {
    background-color: #0faade;
}

.moment-list-action-btn-light {
    color: #333;
    background-color: #f5f5f5;
    border-color: #d7d7d7;
}

.moment-list-action-btn-light:active {
    background-color: #ebebeb;
}

.moment-list-feed-wrap {
    padding-bottom: 10px;
}

.moment-feed-card {
    margin-bottom: 12px;
    padding: 12px;
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.moment-feed-header {
    display: -webkit-box;
    -webkit-box-align: start;
}

.moment-feed-avatar-link {
    display: block;
}

.moment-feed-avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    background-color: #ddd;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.moment-feed-avatar img {
    display: block;
    width: 100%;
    height: 100%;
}

.moment-feed-user-box {
    -webkit-box-flex: 1;
    margin-left: 10px;
    overflow: hidden;
}

.moment-feed-user-name {
    font-size: 15px;
    font-weight: bold;
    color: #12b7f5;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.moment-feed-time {
    margin-top: 2px;
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

.moment-feed-more-btn {
    display: block;
    min-width: 42px;
    height: 24px;
    line-height: 24px;
    margin-top: 2px;
    padding: 0 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    text-decoration: none;
    background-color: #f5f5f5;
    border: 1px solid #dcdcdc;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-feed-more-btn:active {
    background-color: #ebebeb;
}

.moment-feed-content {
    margin-top: 10px;
    font-size: 15px;
    color: #333;
    line-height: 22px;
    word-wrap: break-word;
    word-break: break-all;
}

.moment-feed-extra-box {
    margin-top: 8px;
    padding: 8px 10px;
    background-color: #f8f8f8;
    border: 1px solid #ededed;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-feed-extra-box-inline {
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    background: transparent;
    border: none;
}

.moment-feed-extra-box-detail {
    margin-top: 10px;
}

.moment-feed-extra-row {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    min-height: 22px;
    line-height: 22px;
    color: #666;
    font-size: 13px;
}

.moment-feed-extra-row + .moment-feed-extra-row {
    margin-top: 4px;
}

.moment-feed-extra-inline-item {
    display: inline-block;
    max-width: 48%;
    margin-right: 12px;
    padding: 0;
    height: 20px;
    line-height: 20px;
    vertical-align: top;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #8f8f8f;
    font-size: 12px;
    background: transparent;
    border: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

.moment-feed-extra-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 14px;
    color: #a0a0a0;
    margin-right: 2px;
    vertical-align: -2px;
}

.moment-feed-extra-text {
    display: inline;
    color: #8f8f8f;
    word-wrap: normal;
    word-break: normal;
}

.moment-feed-image-grid {
    overflow: hidden;
    margin-top: 10px;
}

.moment-feed-image-item {
    float: left;
    display: block;
    width: 31%;
    height: 78px;
    margin-right: 3.5%;
    margin-bottom: 8px;
    overflow: hidden;
    background-color: #f2f2f2;
    border: 1px solid #e5e5e5;
}

.moment-feed-image-item img {
    display: block;
    width: 100%;
    height: 100%;
}

.moment-feed-image-grid .moment-feed-image-item:nth-child(3n) {
    margin-right: 0;
}

.moment-feed-image-grid-single .moment-feed-image-item {
    width: 132px;
    height: auto;
    margin-right: 0;
}

.moment-feed-image-grid-single .moment-feed-image {
    height: auto;
}

.moment-feed-stats-row {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #efefef;
    overflow: hidden;
}

.moment-feed-stat {
    float: left;
    margin-right: 14px;
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

.moment-detail-top-like-btn {
    width: 38px;
    padding: 0;
}

.moment-detail-top-like-btn .mdui-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 18px;
}

.moment-detail-top-like-btn-active {
    color: #ffe7ee;
}

.moment-detail-top-like-btn-active .mdui-icon {
    color: #fff;
}

.moment-feed-stat-btn {
    float: left;
    display: -webkit-box;
    -webkit-box-align: center;
    margin-right: 14px;
    font-size: 12px;
    color: #999;
    line-height: 20px;
    text-decoration: none;
}

.moment-feed-stat-btn .mdui-icon {
    width: 16px;
    height: 16px;
    margin-right: 3px;
    font-size: 16px;
    line-height: 16px;
}

.moment-feed-stat-btn .mdui-icon:before {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.moment-feed-stat-text {
    display: block;
}

.moment-feed-stat-num {
    font-style: normal;
}

.moment-feed-stat-btn-active {
    color: #12b7f5;
}

.moment-feed-stat-btn-readonly {
    cursor: default;
}

.moment-feed-comment-preview {
    margin-top: 8px;
    padding: 8px 10px;
    background-color: #f7f7f7;
    border: 1px solid #ececec;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-feed-comment-empty {
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

.moment-feed-comment-item {
    font-size: 13px;
    color: #555;
    line-height: 20px;
    word-wrap: break-word;
    word-break: break-all;
}

.moment-feed-comment-item-child {
    margin-left: 12px;
}

.moment-feed-comment-name {
    color: #12b7f5;
}

.moment-feed-comment-reply {
    color: #999;
}

.moment-feed-comment-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #12b7f5;
    text-decoration: none;
}

.moment-feed-comment-bar {
    display: -webkit-box;
    margin-top: 8px;
}

.moment-feed-comment-input {
    display: block;
    -webkit-box-flex: 1;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-appearance: none;
}

.moment-feed-comment-submit {
    display: block;
    width: 52px;
    height: 30px;
    margin-left: 8px;
    font-size: 13px;
    color: #fff;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-appearance: none;
}

.moment-list-empty-box {
    margin: 12px 0;
    padding: 30px 12px;
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
    text-align: center;
}

.moment-list-empty-text {
    font-size: 14px;
    color: #999;
    line-height: 22px;
}

.moment-list-empty-btn {
    display: inline-block;
    margin-top: 12px;
    min-width: 88px;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-list-empty-btn:active {
    background-color: #0faade;
}

.moment-list-load-more-wrap {
    text-align: center;
    padding: 2px 0 12px 0;
}

.moment-detail-page {
    padding: 58px 0 70px 0;
}

.moment-feed-card-detail {
    margin-bottom: 12px;
}

.moment-feed-stats-row-detail {
    margin-top: 12px;
}

.moment-feed-stats-row-detail .moment-feed-stat-btn {
    margin-right: 18px;
}

.moment-feed-stat-btn-detail-readonly {
    cursor: default;
}

.moment-detail-panel {
    margin-bottom: 12px;
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.moment-detail-panel-title {
    padding: 10px 12px 8px 12px;
    font-size: 13px;
    color: #8f8f94;
    line-height: 18px;
}

.moment-like-users-box {
    padding: 0 12px;
}

.moment-like-users-box-text {
    padding: 8px 12px 12px 12px;
}

.moment-like-users-text-row {
    padding: 8px 10px;
    background-color: #f7f7f7;
    border: 1px solid #ececec;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 20px;
    color: #666;
    word-wrap: break-word;
    word-break: break-all;
}

.moment-like-users-text-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 15px;
    color: #12b7f5;
    margin-right: 4px;
    vertical-align: -2px;
}

.moment-like-users-text-list {
    color: #666;
}

.moment-like-user-row {
    min-height: 48px;
    padding: 8px 0;
    border-top: 1px solid #f2f2f2;
    overflow: hidden;
}

.moment-like-user-row:first-child {
    border-top: 1px solid #eaeaea;
}

.moment-like-user-avatar {
    float: left;
    width: 34px;
    height: 34px;
    overflow: hidden;
    background-color: #ddd;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.moment-like-user-avatar img,
.moment-like-user-avatar {
    display: block;
}

.moment-like-user-name {
    display: block;
    margin-left: 46px;
    font-size: 15px;
    color: #333;
    line-height: 34px;
}

.moment-detail-empty-tip {
    padding: 18px 0 20px 0;
    font-size: 13px;
    color: #999;
    text-align: center;
}

.moment-detail-comment-panel {
    margin-bottom: 78px;
}

.moment-comment-row {
    padding: 0 12px;
}

.moment-comment-main {
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid #f2f2f2;
}

.moment-comment-avatar {
    float: left;
    width: 34px;
    height: 34px;
    overflow: hidden;
    background-color: #ddd;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.moment-comment-body {
    margin-left: 46px;
}

.moment-comment-name {
    font-size: 14px;
    font-weight: bold;
    color: #12b7f5;
    line-height: 18px;
}

.moment-comment-user-link,
.moment-comment-user-link:link,
.moment-comment-user-link:visited,
.moment-comment-user-link:hover,
.moment-comment-user-link:active {
    color: #12b7f5;
    text-decoration: none;
}

.moment-comment-text {
    margin-top: 4px;
    font-size: 14px;
    color: #333;
    line-height: 20px;
    word-wrap: break-word;
    word-break: break-all;
}

.moment-comment-time {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    line-height: 16px;
}

.moment-comment-children-box {
    margin: 0 0 10px 46px;
    padding: 6px 8px;
    background-color: #f7f7f7;
    border: 1px solid #ececec;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-comment-sub-row {
    padding: 5px 0;
    border-top: 1px solid #ececec;
    font-size: 13px;
    color: #666;
    line-height: 18px;
    word-wrap: break-word;
    word-break: break-all;
}

.moment-comment-sub-row:first-child {
    border-top: none;
}

.moment-comment-sub-name {
    color: #12b7f5;
}

.moment-comment-reply-tag {
    color: #999;
}

.moment-comment-sub-text {
    color: #333;
}

.moment-detail-comment-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-top: 1px solid #dcdcdc;
    z-index: 220;
}

.moment-detail-comment-input-wrap {
    display: table-cell;
    vertical-align: middle;
    padding-right: 8px;
}

.moment-detail-comment-btn-wrap {
    display: table-cell;
    vertical-align: middle;
    width: 60px;
}

.moment-detail-comment-input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-appearance: none;
}

.moment-detail-comment-submit {
    display: block;
    width: 100%;
    height: 36px;
    background-color: #12b7f5;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-detail-comment-submit:active {
    background-color: #0faade;
}

.moment-publish-page {
    padding: 50px 0 0 0;
}

.moment-publish-panel,
.moment-publish-help-panel {
    margin-bottom: 12px;
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.moment-publish-panel-title,
.moment-publish-help-title {
    padding: 10px 12px 8px 12px;
    font-size: 13px;
    color: #8f8f94;
    line-height: 18px;
}

.moment-publish-textarea {
    display: block;
    width: 100%;
    min-height: 150px;
    padding: 10px 12px;
    margin: 0;
    border: none;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    background-color: #fff;
    font-size: 15px;
    line-height: 22px;
    color: #333;
    resize: none;
    outline: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.moment-publish-textarea::-webkit-input-placeholder {
    color: #b5b5b5;
}

.moment-publish-toolbar {
    overflow: hidden;
    padding: 10px 12px;
}

.moment-publish-add-btn {
    float: left;
    min-width: 82px;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-publish-add-btn:active {
    background-color: #0faade;
}

.moment-publish-tip {
    float: right;
    font-size: 12px;
    color: #999;
    line-height: 30px;
}

.moment-publish-image-list {
    overflow: hidden;
    padding: 0 12px 12px 12px;
}

.moment-publish-image-item {
    position: relative;
    float: left;
    width: 78px;
    height: 78px;
    margin-right: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #f2f2f2;
    border: 1px solid #e1e1e1;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.moment-publish-image-item img {
    display: block;
    width: 100%;
    height: 100%;
}

.moment-publish-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.55);
    -webkit-border-radius: 9px;
    border-radius: 9px;
    text-decoration: none;
}

.moment-publish-help-text {
    padding: 0 12px 12px 12px;
    font-size: 13px;
    color: #999;
    line-height: 20px;
}

.moment-publish-page-simple {
    background-color: #ebebeb;
}

.moment-publish-page-list-style {
    padding-top: 58px;
    padding-bottom: 20px;
}

.moment-publish-panel-list-style {
    margin-bottom: 12px;
}

.moment-publish-textarea-list-style {
    min-height: 160px;
    padding: 14px 12px 8px 12px;
}

.moment-publish-image-list-list-style {
    padding: 0 12px 4px 12px;
    overflow: hidden;
}

.moment-publish-image-item-qq {
    float: left;
    width: 31%;
    height: 78px;
    margin-right: 3.5%;
    margin-bottom: 8px;
    overflow: hidden;
    background-color: #f2f2f2;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.moment-publish-image-item-qq img {
    width: 100%;
    height: 100%;
    display: block;
}

.moment-publish-image-item-qq:nth-child(3n) {
    margin-right: 0;
}

.moment-publish-remove-qq {
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.moment-publish-add-box {
    display: block;
    width: 78px;
    height: 78px;
    margin: 0 12px 12px 12px;
    text-align: center;
    text-decoration: none;
    color: #999;
    background-color: #f5f5f5;
    border: 1px solid #dcdcdc;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.moment-publish-add-box:active {
    background-color: #ebebeb;
}

.moment-publish-add-box-icon {
    display: block;
    margin-top: 16px;
    font-size: 26px;
    line-height: 26px;
}

.moment-publish-add-box-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 16px;
}

.moment-publish-field-panel {
    margin-bottom: 12px;
}

.moment-publish-field-row {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
}

.moment-publish-field-row-last {
    border-bottom: none;
}

.moment-publish-field-icon {
    display: block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 20px;
    color: #999;
    margin-right: 10px;
}

.moment-publish-field-input {
    display: block;
    -webkit-box-flex: 1;
    width: 100%;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    color: #333;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
}

.moment-publish-field-input::-webkit-input-placeholder {
    color: #999;
}

.moment-publish-help-panel-list-style {
    margin-top: 0;
}

.moment-publish-help-panel-list-style .moment-publish-tip {
    display: block;
    padding: 0 12px 12px 12px;
    font-size: 13px;
    color: #999;
    line-height: 20px;
}

.moment-publish-editor-box {
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.moment-publish-textarea-simple {
    min-height: 220px;
    border-top: none;
    border-bottom: none;
    font-size: 16px;
    line-height: 24px;
    padding: 14px 12px 8px 12px;
}

.moment-publish-image-list-simple {
    padding: 0 12px 4px 12px;
}

.moment-publish-toolbar-simple {
    padding: 8px 12px 12px 12px;
    border-top: 1px solid #f2f2f2;
}

.moment-publish-add-btn-simple {
    min-width: 64px;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 13px;
    background-color: #f5f5f5;
    color: #4d6f9f;
    border: 1px solid #d7d7d7;
}

.moment-publish-add-btn-simple:active {
    background-color: #ebebeb;
}

.moment-publish-tip-simple {
    line-height: 28px;
}

.chat-group-history-wrap {
    text-align: center;
    margin: 10px 0;
    clear: both;
}

.chat-group-history-tip {
    display: inline-block;
    background-color: #cecece;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    padding: 2px 6px;
    text-align: center;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.chat-group-history-tip:active {
    background-color: #c2c2c2;
}

.chat-group-history-tip.chat-history-tip-disabled {
    background-color: #d9d9d9;
    color: #fff;
}

.chat-image-bubble {
    padding: 4px !important;
    background: #ffffff !important;
}

.chat-message-image {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border: 0;
}


/* =================================================================================

   全局 Toast 提示

   ================================================================================= */
.global-tip-box {
    position: fixed;
    top: 50%;
    left: 50%;
    /* 使用负 Margin 进行精准居中，兼容性优于 transform */
    width: 200px;
    margin-left: -100px;
    margin-top: -40px;

    background-color: rgba(0, 0, 0, 0.75); /* 半透明黑色背景 */
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 15px;
    z-index: 9999;

    -webkit-border-radius: 8px; /* iOS 5/6 圆角 */
    border-radius: 8px;

    /* 简单的渐显动画 */
    -webkit-transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none; /* 防止遮挡点击 */
}

.global-tip-box.tip-show {
    opacity: 1;
}

.global-tip-box.global-tip-loading {
    width: 172px;
    margin-left: -86px;
    margin-top: -48px;
    padding: 16px 12px 14px 12px;
}

.global-tip-loading-inner {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

.global-tip-loading-spinner {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.26);
    border-top: 3px solid #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: profile-edit-spin 0.9s linear infinite;
}

.global-tip-loading-text {
    font-size: 14px;
    line-height: 20px;
    color: #fff;
}

/* =================================================================================

   全局 加载动画

   ================================================================================= */
/* --- 加载动画样式 (Namespace: profile-edit-loading) --- */

/* 背景遮罩，防止加载时用户误操作 */
.profile-edit-loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* 初始隐藏 */
}

/* 加载方块容器 */
.profile-edit-loading-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    background-color: rgba(0, 0, 0, 0.75);
    -webkit-border-radius: 10px;
    border-radius: 10px;

    /* 使用旧版弹性盒居中内容 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    color: #fff;
    z-index: 10001;
}

/* 旋转的加载图标 */
.profile-edit-loading-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: profile-edit-spin 1s linear infinite;
    margin-bottom: 15px;
}

/* 加载文字 */
.profile-edit-loading-text {
    font-size: 14px;
    color: #eee;
}

/* iOS 5/6 兼容的旋转动画定义 */
@-webkit-keyframes profile-edit-spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}


/* =================================================================================

   登陆界面

   ================================================================================= */

/* 顶部导航栏 */
.login-header {
    height: 50px;
    background-color: #12b7f5;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    font-weight: bold;
}


/* 登录内容容器 */
.login-container {
    padding: 30px 20px;
    text-align: center;
}

/* Logo 区域 - 已改为 .login-logo-box */
.login-logo-box {
    margin-bottom: 30px;
}

.login-icon-svg {
    fill: #12b7f5;
    vertical-align: middle;
}

/* 表单组 - 已改为 .login-form-group */
.login-form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* 输入框样式 */
.login-input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    background-color: #f9f9f9;
}

.login-input:focus {
    border-color: #12b7f5;
    background-color: #fff;
}

/* 登录按钮 - 已改为 .login-btn-submit */
.login-btn-submit {
    width: 100%;
    height: 45px;
    background-color: #12b7f5;
    color: #fff;
    border: none;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    font-size: 17px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.login-btn-submit:active {
    background-color: #0faade;
}

/* 底部链接区 - 已改为 .login-footer-links */
.login-footer-links {
    margin-top: 20px;
    font-size: 14px;
}

.login-footer-links a {
    color: #12b7f5;
    text-decoration: none;
    padding: 10px;
}

.login-footer-links .login-divider {
    color: #ddd;
}

/* 错误提示 - 已改为 .login-error-msg */
#login-error-msg {
    color: #f74c31;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

/* =================================================================================

   消息列表

   ================================================================================= */
/* SVG 通用颜色 */
.index-icon-svg {
    fill: currentColor;
    vertical-align: middle;
}


/* --- 搜索框部分 --- */
/* --- 搜索框部分 --- */
.index-search-container {
    margin-top: 55px;
    padding: 8px;
    background-color: #f3f3f3;
    border-bottom: 1px solid #e5e5e5;
}

.index-search-box {
    /* 1. 兼容 iOS 6 的老版弹性盒子 */
    display: -webkit-box;
    -webkit-box-align: center; /* 垂直居中 */
    -webkit-box-pack: start; /* 左对齐 */

    background-color: #fff;
    height: 30px;

    /* 2. 兼容 iOS 6 的圆角 */
    -webkit-border-radius: 6px;
    border-radius: 6px;

    border: 1px solid #e0e0e0;
    padding: 0 10px;

    /* 解决盒子模型宽度问题 */
    box-sizing: border-box;
}

.index-search-icon {
    display: block; /* 在 webkit-box 下设为 block 更稳定 */
    margin-right: 4px;
}

.index-search-input {
    /* 3. 让输入框占据剩余宽度 (老版写法) */
    -webkit-box-flex: 1;

    border: none;
    outline: none;
    background: transparent;
    margin-left: 5px;
    font-size: 14px;
    color: #333;

    /* 4. 关键：清除 iOS 默认的内阴影和圆角外观 */
    -webkit-appearance: none;

    /* 5. 确保高度一致，防止文字偏移 */
    height: 20px;
    line-height: 20px;
    padding: 0;
    display: block;
}

/* 6. iOS 6 必须使用特定的伪类前缀 */
.index-search-input::-webkit-input-placeholder {
    color: #999;
}


.index-search-empty {
    display: none;
    margin: 10px 12px 0 12px;
    padding: 20px 10px;
    background: #fff;
    color: #999;
    font-size: 14px;
    text-align: center;
    border: 1px solid #f0f0f0;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.index-list-empty {
    margin: 0;
    padding: 20px 10px;
    background: transparent;
    border: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

/* --- 消息列表 --- */
.index-list-container {
    padding-bottom: 60px;
}

.index-item {
    display: block;
    height: 72px;
    position: relative;
    color: inherit;
    overflow: hidden;
    border-bottom: 1px solid #f2f2f2;
    background-color: #fff;
}

.index-item:active {
    background-color: #f5f5f5;
}

/* 列表头像与红点 */
.index-avatar-box {
    float: left;
    width: 72px;
    height: 72px;
    position: relative;
}

.index-avatar {
    width: 45px;
    height: 45px;
    margin: 15px;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}
.index-avatar img {
    width: 100%;
    height: 100%;
}

.index-list-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #f74c31;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1px solid #fff;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

/* 列表文本区域 */
.index-content-box {
    margin-left: 72px;
    padding-right: 12px;
    padding-top: 15px;
}

.index-row-top {
    height: 22px;
    line-height: 22px;
    overflow: hidden;
}

.index-name {
    float: left;
    font-size: 17px;
    color: #000;
    font-weight: 500;
}

.index-time {
    float: right;
    font-size: 12px;
    color: #b2b2b2;
}

.index-row-bottom {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    margin-top: 3px;
}

.index-msg {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =================================================================================

   联系人界面

   ================================================================================= */


/* --- 联系人主区域 --- */
.contacts-main-content {
    margin-bottom: 60px;
    background-color: #fff;
}

/* 菜单项 (新朋友/群聊) */
.contacts-menu-item {
    display: -webkit-box;
    -webkit-box-align: center;
    height: 52px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
    background-color: #fff;
}

.contacts-menu-item:active {
    background-color: #f5f5f5;
}

.contacts-menu-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    display: block;
}

.contacts-menu-text {
    font-size: 16px;
    color: #000;
}

/* 分组标题 */
.contacts-group-header {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.contacts-group-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ccc;
    margin-right: 8px;
    -webkit-transition: -webkit-transform 0.2s;
}

/* 折叠逻辑控制 */
.contacts-collapsed .contacts-group-arrow {
    -webkit-transform: rotate(-90deg);
}

.contacts-collapsed + .contacts-friend-list {
    display: none !important;
}

/* 好友列表项 */
.contacts-friend-item {
    display: -webkit-box;
    -webkit-box-align: center;
    height: 64px;
    padding: 0 12px;
    border-bottom: 1px solid #f9f9f9;
}

.contacts-friend-item:active {
    background-color: #f5f5f5;
}

.contacts-f-avatar {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    -webkit-border-radius: 22px;
    border-radius: 22px;
    background-color: #eee;
    display: block;
}

.contacts-f-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;

}


.contacts-f-info {
    -webkit-box-flex: 1;
    overflow: hidden;
}

.contacts-f-name {
    font-size: 16px;
    color: #000;
    margin: 0 0 2px 0;
    font-weight: bold;
}

.contacts-f-status {
    font-size: 12px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contacts-status-online {
    color: #12b7f5;
    margin-right: 4px;
}

/* 离线状态置灰 */
.contacts-offline .contacts-f-avatar {
    opacity: 0.4;
}

.contacts-offline .contacts-f-name {
    color: #888;
}

/* =================================================================================

   动态界面

   ================================================================================= */

/* --- 列表分组容器 --- */
.discover-section {
    margin-top: 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* --- 动态菜单项 (关键修复点) --- */
.discover-list-item {
    /* 替换 display: flex */
    display: -webkit-box;
    -webkit-box-align: center; /* 垂直居中 */

    height: 66px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
    color: #000;
    text-decoration: none;
    position: relative;
    background-color: #fff;
}

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

/* iOS 6 下的点击反馈 */
.discover-list-item:active {
    background-color: #f5f5f5;
}

.discover-item-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    /* 替换 flex 居中 */
    display: block;
    text-align: center;
}

.discover-item-icon svg {
    vertical-align: middle;
}

.discover-item-text {
    /* 替换 flex: 1 */
    -webkit-box-flex: 1;
    font-size: 16px;
    color: #333;
    display: block;
}

/* 右侧辅助信息容器 */
.discover-item-right {
    /* 替换 display: flex */
    display: -webkit-box;
    -webkit-box-align: center;
}

.discover-avatar-mini {
    width: 24px;
    height: 24px;
    /* iOS 6 必须加前缀 */
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border: 1px solid #fff;
    margin-right: 5px;
    display: block;
}

.discover-red-dot {
    width: 8px;
    height: 8px;
    background-color: #f74c31;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin-right: 8px;
    display: block;
}

/* 右侧箭头修复 */
.discover-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    /* 必须加 -webkit- 前缀，否则 iOS 6 不旋转 */
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 5px;
}

/* =================================================================================

   个人资料编辑界面

   ================================================================================= */

/* --- 顶部导航栏 --- */
.profile-edit-header {
    height: 50px;
    background-color: #12b7f5;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    text-align: center;
    line-height: 50px;
}

.profile-edit-header img {
    width: 35px;
    height: 35px;
    object-fit: cover; /* 3. 确保图片比例正确地填满容器 */
    display: block;
    /* 圆形 */
    border-radius: 50%;
}

.profile-edit-nav-btn {
    position: absolute;
    top: 10px;
    height: 30px;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.profile-edit-nav-btn:active {
    background-color: #0faade;
    border-color: #0d96c4;
}

.profile-edit-header .profile-edit-btn-left {
    left: 10px;
    width: 38px;
}

.profile-edit-header .profile-edit-btn-right {
    right: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 28px;
}

.profile-edit-header .profile-edit-title {
    font-size: 18px;
    font-weight: bold;
}


/* --- 主体内容区域 --- */
.profile-edit-main {
    padding-top: 50px;
}

.profile-edit-group-title {
    padding: 15px 15px 8px;
    font-size: 14px;
    color: #888;
}

.profile-edit-list {
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.profile-edit-item {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    min-height: 48px;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
}

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

.profile-edit-label {
    width: 80px;
    font-size: 16px;
    color: #333;
}

.profile-edit-value {
    -webkit-box-flex: 1;
    text-align: right;
    display: block;
}

.profile-edit-value-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    vertical-align: middle;
    margin-left: 15px;

}


.profile-edit-input, .profile-edit-select, .profile-edit-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 16px;
    color: #666;
    text-align: right;
    -webkit-appearance: none;
    font-family: inherit;
}

.profile-edit-textarea-item {
    display: block;
    padding: 12px 15px;
}

.profile-edit-textarea {
    text-align: left;
    height: 80px;
    margin-top: 8px;
    line-height: 1.4;
    resize: none;
}

/* 下拉箭头 */
.profile-edit-select-wrap {
    position: relative;
    padding-right: 15px;
}

.profile-edit-select-wrap:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ccc;
}

.profile-edit-item:active {
    background-color: #f5f5f5;
}

.profile-edit-icon-svg {
    fill: currentColor;
    display: block;
}


/* =================================================================================

   查找界面 样式

   ================================================================================= */

/* --- 顶部固定区域容器 (总高度: 50 + 57 + 44 = 151px) --- */
.find-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background-color: #f7f7f7;
}

/* 搜索栏 (约57px) */
.find-search-wrap {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.find-input-container {
    float: left;
    width: 80%;
    background-color: #f3f3f3;
    height: 36px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 0 8px;
    overflow: hidden;
}

.find-search-icon {
    float: left;
    margin-top: 9px;
    width: 18px;
    height: 18px;
}

.find-search-input {
    float: left;
    border: none;
    outline: none;
    background: none;
    margin-left: 6px;
    font-size: 14px;
    color: #333;
    width: 85%;
    height: 36px;
    line-height: normal;
    -webkit-appearance: none;
}

.find-btn-search-submit {
    float: right;
    width: 18%;
    height: 36px;
    background-color: #12b7f5;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-appearance: none;
}

/* 选项卡 (44px) */
.find-tabs {
    display: -webkit-box;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    height: 44px;
}

.find-tab-item {
    -webkit-box-flex: 1;
    text-align: center;
    line-height: 44px;
    font-size: 15px;
    color: #666;
    position: relative;
}

.find-tab-item.find-active {
    color: #12b7f5;
    font-weight: bold;
}

.find-tab-item.find-active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 2px;
    background-color: #12b7f5;
}

/* --- 滚动列表区域 --- */
.find-scroll-content {
    position: absolute;
    top: 151px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #f7f7f7;
}

/* 列表项样式 */
.find-result-title {
    padding: 10px 15px;
    font-size: 13px;
    color: #888;
}

.find-list {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.find-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f2f2f2;
    overflow: hidden;
}

.find-item:active {
    background-color: #f5f5f5;
}

.find-avatar {
    float: left;
    width: 45px;
    height: 45px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

.find-avatar.find-group-avatar {
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.find-info {
    float: left;
    margin-left: 12px;
    width: 55%;
}

.find-name {
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
    font-weight: 500;
}

.find-action {
    float: right;
    margin-top: 8px;
}

.find-btn-action {
    display: inline-block;
    padding: 5px 10px;
    background-color: #12b7f5;
    color: #fff;
    font-size: 12px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: none;
    -webkit-appearance: none;
}


/* 简介文字截断 - 支持 iOS 5 的 WebKit 内核 */
.find-intro {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box; /* 必须结合 box 使用 */
    -webkit-box-orient: vertical; /* 设置盒子的排版方向为垂直 */
    -webkit-line-clamp: 1; /* 限制显示的行数，2行后显示省略号 */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all; /* 强制打断长单词，防止溢出 */
}

/* 确保头像图片充满容器 */
.find-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-border-radius: inherit;
    border-radius: inherit;
}


.find-panel {
    display: none;
}

.find-panel.find-active {
    display: block;
}


/* =================================================================================

   个人卡片

   ================================================================================= */


/* --- 顶部导航栏 (透明优化) --- */
.personal-card-header {
    height: 50px;
    background-color: transparent; /* 透明背景 */
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
    text-align: center;
    line-height: 50px;
}

.personal-card-nav-btn {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    /* 增加一点阴影，防止在亮色背景下看不清白色图标 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.personal-card-btn-left {
    left: 0;
}

.personal-card-btn-right {
    right: 0;
}

.personal-card-title {
    font-size: 18px;
    font-weight: bold;
}

.personal-card-icon-svg {
    fill: #fff;
    display: block;
}

/* --- 头部背景与头像区 --- */
.personal-card-main {
    padding-top: 0;
    padding-bottom: 80px;
}

/* 取消顶部内边距 */

.personal-card-banner {
    height: 240px; /* 增大背景高度 */
    background-color: #12b7f5;
    /* 兼容 iOS 5 的渐变写法 */
    background: -webkit-gradient(linear, left top, left bottom, from(#12b7f5), to(#33ccff));
    position: relative;
}

.personal-card-avatar-wrap {
    position: absolute;
    bottom: -35px;
    left: 20px;
    width: 85px;
    height: 85px;
    padding: 3px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.personal-card-avatar {
    width: 100%;
    height: 100%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

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

/* --- 姓名与基本状态 --- */
.personal-card-basic-info {
    background-color: #fff;
    padding: 45px 20px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.personal-card-nickname {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.personal-card-id {
    font-size: 13px;
    color: #888;
}

/* --- 空间动态预览 --- */
.personal-card-moment-panel {
    margin-top: 12px;
    background: #fff;
    padding: 10px 10px 12px;
    border-top: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
}

.personal-card-moment-head {
    display: block;
    position: relative;
    min-height: 26px;
    padding: 0 2px;
    text-decoration: none;
}

.personal-card-moment-title {
    font-size: 17px;
    color: #3a3a3a;
    line-height: 26px;
    font-weight: bold;
}

.personal-card-moment-entry {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: #7b7b7b;
    line-height: 26px;
}

.personal-card-moment-arrow {
    font-size: 18px;
    vertical-align: -3px;
}

.personal-card-moment-empty {
    margin-top: 10px;
    background: #fff;
    padding: 18px 12px;
    border: 1px solid #d7d7d7;
}

.personal-card-moment-empty-text {
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 20px;
}

.personal-card-moment-grid-white {
    margin-top: 10px;
    overflow: hidden;
}

.personal-card-moment-grid-item-white {
    float: left;
    display: block;
    width: 31%;
    margin-right: 3.5%;
    text-decoration: none;
    color: #333;
}

.personal-card-moment-grid-item-white:last-child {
    margin-right: 0;
}

.personal-card-moment-grid-cover-white {
    display: block;
    height: 82px;
    background: #fff;
    border: 1px solid #d9d9d9;
    overflow: hidden;
    position: relative;
}

.personal-card-moment-grid-cover-white img {
    display: block;
    width: 100%;
    height: 100%;
}

.personal-card-moment-grid-cover-image {
    background: #f3f3f3;
}

.personal-card-moment-grid-image-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: rgba(255, 255, 255, 0.88);
}

.personal-card-moment-grid-image-content {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 6px;
    font-size: 12px;
    color: #333;
    line-height: 16px;
    max-height: 32px;
    overflow: hidden;
    word-break: break-all;
}

.personal-card-moment-grid-image-time {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 11px;
    color: #888;
    line-height: 14px;
}

.personal-card-moment-grid-cover-textonly {
    background: #f8f8f8;
}

.personal-card-moment-grid-text-white {
    display: block;
    height: 82px;
    padding: 8px 8px 24px 8px;
    font-size: 13px;
    color: #555;
    line-height: 18px;
    overflow: hidden;
    word-break: break-all;
    box-sizing: border-box;
}

.personal-card-moment-grid-text-time {
    position: absolute;
    left: 8px;
    bottom: 6px;
    font-size: 11px;
    color: #999;
    line-height: 14px;
}


/* 图片和纯文本动态都在卡片内部展示信息，不再单独显示外部时间摘要 */

/* --- 资料列表项 --- */
.personal-card-group {
    margin-top: 12px;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.personal-card-item {
    display: -webkit-box;
    -webkit-box-align: center;
    min-height: 50px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
}

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

.personal-card-label {
    width: 75px;
    font-size: 15px;
    color: #888;
}

.personal-card-value {
    -webkit-box-flex: 1;
    font-size: 15px;
    color: #333;
}

/* 标签样式 */
.personal-card-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    background-color: #f0f8ff;
    color: #12b7f5;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    margin-right: 5px;
}

/* --- 底部操作栏 --- */
.personal-card-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dcdcdc;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    padding: 0 15px;
    z-index: 300;
}

.personal-card-btn-action {
    display: block;
    -webkit-box-flex: 1;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background-color: #12b7f5;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.personal-card-btn-action:active {
    background-color: #0faade;
}

.personal-card-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    margin-right: 12px;
    border: 1px solid #ddd;
}


/* =================================================================================

   加好友的 申请弹窗样式

   ================================================================================= */

/* --- 申请弹窗样式 (iOS 5 兼容) --- */
#apply-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    margin-left: -140px; /* 宽度的一半 */
    margin-top: -100px; /* 高度的大约一半 */
    background-color: #fff;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apply-modal-title {
    padding: 15px 15px 10px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.apply-modal-body {
    padding: 0 15px 15px;
}

.apply-modal-body textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    font-size: 14px;
    -webkit-appearance: none; /* 去除iOS内阴影 */
    box-sizing: border-box; /* 确保宽度包含padding */
}

.apply-modal-footer {
    display: -webkit-box; /* 老版 flex 布局 */
    border-top: 1px solid #e5e5e5;
}

.apply-modal-btn {
    -webkit-box-flex: 1;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.apply-btn-cancel {
    color: #666;
    border-right: 1px solid #e5e5e5;
}

.apply-btn-confirm {
    color: #12b7f5;
    font-weight: bold;
}

.apply-modal-btn:active {
    background-color: #f2f2f2;
}

/* =================================================================================
   聊天-私聊页
   ================================================================================= */
.chat-user-container {
    padding: 60px 10px 115px 10px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.chat-user-time { text-align: center; margin: 10px 0; clear: both; }
.chat-user-time span {
    background-color: #cecece; color: #fff; font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px; -webkit-border-radius: 4px;
}
.chat-user-message-row { margin-bottom: 15px; width: 100%; clear: both; overflow: hidden; }
.chat-user-avatar {
    width: 40px; height: 40px;
    border-radius: 20px; -webkit-border-radius: 20px;
    background-color: #ccc; overflow: hidden;
}
.chat-user-avatar img { width: 100%; height: 100%; }
.chat-user-bubble {
    position: relative; max-width: 70%; padding: 8px 12px;
    font-size: 15px; line-height: 1.4; word-wrap: break-word;
    border-radius: 6px; -webkit-border-radius: 6px;
}
.chat-image-bubble {
    padding: 4px;
    overflow: hidden;
}
.chat-image-bubble a {
    display: block;
}
.chat-message-image {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border: 0;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.chat-user-msg-left .chat-user-avatar { float: left; }
.chat-user-msg-left .chat-user-bubble {
    float: left; margin-left: 12px; background-color: #fff;
    color: #000; border: 1px solid #dcdcdc;
}
.chat-user-msg-left .chat-user-bubble:after {
    content: ''; position: absolute; left: -6px; top: 12px;
    width: 0; height: 0; border-top: 6px solid transparent;
    border-bottom: 6px solid transparent; border-right: 6px solid #fff;
}
.chat-user-msg-right .chat-user-avatar { float: right; }
.chat-user-msg-right .chat-user-bubble {
    float: right; margin-right: 12px; background-color: #12b7f5;
    color: #fff; border: 1px solid #0faade;
}
.chat-user-msg-right .chat-user-bubble:after {
    content: ''; position: absolute; right: -6px; top: 12px;
    width: 0; height: 0; border-top: 6px solid transparent;
    border-bottom: 6px solid transparent; border-left: 6px solid #12b7f5;
}
.chat-user-footer-fixed {
    position: fixed; bottom: 0; width: 100%;
    background-color: #f5f5f5; border-top: 1px solid #dcdcdc;
    z-index: 200;
}
.chat-user-input-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 8px 10px 4px 10px;
}
.chat-user-input-wrap { display: table-cell; vertical-align: middle; padding-right: 10px; }
.chat-user-btn-wrap { display: table-cell; vertical-align: middle; width: 60px; }
.chat-user-input {
    width: 100%; height: 36px; border: 1px solid #ccc;
    border-radius: 4px; -webkit-border-radius: 4px;
    padding: 0 8px; font-size: 15px;
    -webkit-appearance: none;
    background-color: #fff;
}
.chat-user-btn-send {
    width: 100%; height: 36px; background-color: #12b7f5;
    border: none; color: #fff; font-weight: bold;
    border-radius: 4px; -webkit-border-radius: 4px; font-size: 14px;
}
.chat-user-btn-send:active { background-color: #0faade; }
.chat-user-tool-bar {
    height: 44px;
    display: table;
    width: 100%;
    table-layout: fixed;
}
.chat-user-tool-item {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: #666;
}
.chat-user-tool-item:active { background-color: #e0e0e0; }
.chat-user-emoji-panel {
    display: none;
    height: 180px;
    background-color: #f5f5f5;
    border-top: 1px solid #dcdcdc;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}
.chat-user-emoji-grid { width: 100%; overflow: hidden; }
.chat-user-emoji-item {
    float: left; width: 14.28%; height: 40px;
    line-height: 40px; text-align: center;
    font-size: 24px; cursor: pointer;
}

/* =================================================================================
   聊天-群聊页
   ================================================================================= */
.chat-group-header-center { text-align: center; color: #fff; }
.chat-group-name { font-weight: bold; line-height: 30px; padding-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-group-count { font-size: 12px; color: #d1f0fd; display: block; margin-top: -20px; }
.chat-group-container { padding: 54px 10px 115px 10px; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.chat-group-time { text-align: center; margin: 10px 0; clear: both; }
.chat-group-time span { background-color: #cecece; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.chat-group-msg-row { width: 100%; margin-bottom: 15px; margin-top: 2px; clear: both; overflow: hidden; }
.chat-group-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background-color: #ddd; }
.chat-group-avatar img { width: 100%; height: 100%; display: block; }
.chat-group-msg-wrapper { max-width: 70%; position: relative; font-size: 0; }
.chat-group-nickname { font-size: 11px; color: #888; margin-bottom: 3px; line-height: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-group-recall-link { display: inline-block; margin-left: 6px; font-size: 11px; color: #576b95; }
.chat-group-recall-link:active { color: #3f5176; }
.chat-group-role-badge { font-size: 10px; margin-right: 2px; font-weight: bold; }
.chat-group-role-owner { color: #f60; }
.chat-group-role-admin { color: #28a745; }
.chat-group-role-user { color: #666; }
.chat-group-role-custom { color: #12b7f5; }
.chat-group-bubble { display: inline-block; padding: 9px 11px; font-size: 15px; line-height: 1.4; border-radius: 6px; position: relative; word-wrap: break-word; text-align: left; }
.chat-recall-bubble { background-color: #e5e5e5 !important; color: #666 !important; border-color: #d5d5d5 !important; }
.chat-group-msg-left .chat-group-avatar { float: left; margin-right: 10px; }
.chat-group-msg-left .chat-group-msg-wrapper { float: left; text-align: left; }
.chat-group-msg-left .chat-group-bubble { background-color: #fff; color: #000; border: 1px solid #dcdcdc; }
.chat-group-msg-left .chat-group-bubble:after { content: ''; position: absolute; left: -6px; top: 10px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 6px solid #fff; }
.chat-group-msg-right .chat-group-avatar { float: right; margin-left: 10px; }
.chat-group-msg-right .chat-group-msg-wrapper { float: right; text-align: right; }
.chat-group-msg-right .chat-group-bubble { background-color: #12b7f5; color: #fff; border: 1px solid #0faade; text-align: left; }
.chat-group-msg-right .chat-group-bubble:after { content: ''; position: absolute; right: -6px; top: 10px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #12b7f5; }
.chat-group-footer-fixed { position: fixed; bottom: 0; width: 100%; background-color: #f5f5f5; border-top: 1px solid #dcdcdc; z-index: 200; }
.chat-group-input-box { display: table; width: 100%; table-layout: fixed; padding: 8px 10px 4px 10px; }
.chat-group-input-cell { display: table-cell; vertical-align: middle; padding-right: 10px; }
.chat-group-btn-cell { display: table-cell; vertical-align: middle; width: 60px; }
.chat-group-input { width: 100%; height: 36px; border: 1px solid #ccc; border-radius: 4px; padding: 0 8px; font-size: 15px; background-color: #fff; -webkit-appearance: none; }
.chat-group-btn-send { width: 100%; height: 36px; background-color: #12b7f5; border: none; color: #fff; font-size: 14px; font-weight: bold; border-radius: 4px; }
.chat-group-tool-bar { height: 44px; display: table; width: 100%; table-layout: fixed; border-top: 1px solid #eaeaea; }
.chat-group-tool-item { display: table-cell; vertical-align: middle; text-align: center; }
.chat-group-emoji-panel { display: none; height: 180px; background-color: #f2f2f2; border-top: 1px solid #ccc; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chat-group-emoji-grid { padding: 10px 0; overflow: hidden; }
.chat-group-emoji-item { float: left; width: 14.28%; height: 40px; line-height: 40px; text-align: center; font-size: 24px; cursor: pointer; }


/* =================================================================================
   底部导航栏
   ================================================================================= */
.index-footer {
    height: 55px;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
}
.index-tab {
    -webkit-box-flex: 1;
    display: block;
    text-align: center;
    padding-top: 6px;
    color: #7a7e83;
    font-size: 11px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-align: center;
}
.index-tab.index-active { color: #12b7f5; }
.index-tab-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.index-tab-icon {
    width: 28px;
    height: 28px;
    display: block;
}
.index-icon-svg {
    fill: currentColor;
    display: block;
}
.index-tab-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    background-color: #f74c31;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border: 1px solid #fff;
    font-weight: bold;
    box-sizing: border-box;
}


/* =================================================================================
   新申请页
   ================================================================================= */
.new-apply-main { padding-top: 50px; padding-bottom: 30px; }
.new-apply-empty {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
}
.new-apply-item {
    background-color: #fff; margin-top: 12px; padding: 15px;
    border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
    position: relative;
}
.new-apply-top-box {
    display: -webkit-box;
    -webkit-box-align: start;
    margin-bottom: 12px;
}
.new-apply-avatar-wrap { margin-right: 12px; }
.new-apply-avatar {
    width: 52px; height: 52px; background-color: #eee;
    -webkit-border-radius: 50%; border-radius: 50%; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.new-apply-avatar img { width: 100%; height: 100%; display: block; }
.new-apply-info-box { -webkit-box-flex: 1; min-width: 0; padding-right: 60px; }
.new-apply-nickname { font-size: 16px; color: #000; font-weight: bold; margin-bottom: 4px; }
.new-apply-source { font-size: 12px; color: #999; }
.new-apply-msg-quote {
    background-color: #f6f7f9; padding: 10px;
    -webkit-border-radius: 4px; border-radius: 4px;
    font-size: 14px; color: #555; line-height: 1.5;
    margin-bottom: 15px;
    border: 1px solid #edf0f2;
}
.new-apply-action-bar {
    display: -webkit-box;
    -webkit-box-pack: end;
    padding-bottom: 5px;
}
.new-apply-btn {
    display: block; width: 70px; height: 32px; line-height: 32px;
    text-align: center; font-size: 14px; font-weight: 500;
    -webkit-border-radius: 16px; border-radius: 16px;
    margin-left: 10px; text-decoration: none;
}
.new-apply-btn-refuse { background-color: #fff; color: #666; border: 1px solid #dcdcdc; }
.new-apply-btn-refuse:active { background-color: #f0f0f0; }
.new-apply-btn-agree { background-color: #12b7f5; color: #fff; border: 1px solid #12b7f5; }
.new-apply-btn-agree:active { background-color: #0da5db; }
.new-apply-time-tag {
    position: absolute;
    right: 15px;
    top: 18px;
    font-size: 11px;
    color: #bbb;
}
.new-apply-status-done { font-size: 13px; color: #bbb; height: 32px; line-height: 32px; }
.new-apply-history-wrap { padding: 16px 0 4px 0; }
.new-apply-history-tip {
    width: 180px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    line-height: 28px;
    color: #999;
}

/* =============================================================================
   PC Shell
   ============================================================================= */
.page-pc-shell {
    min-width: 1180px;
    height: 100vh;
    overflow: hidden;
}
.pc-embed-mode.page-pc-shell {
    min-width: 0;
    background: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}
.page-pc-shell,
.page-pc-shell body,
html.page-pc-shell,
body.page-pc-shell {
    overflow: hidden;
}
.pc-embed-mode,
.pc-embed-mode body,
html {
    height: 100%;
}
.page-pc-shell .profile-edit-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 18px auto 0 auto;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 28px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 18px 48px rgba(15,23,42,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.page-pc-shell .profile-edit-title {
    color: #0f172a;
    font-size: 22px;
    font-weight: bold;
}
.page-pc-shell .profile-edit-nav-btn {
    color: #475569;
}
.page-pc-shell .index-search-container,
.page-pc-shell .discover-main-content,
.page-pc-shell .contacts-main-content,
.page-pc-shell .new-apply-main,
.page-pc-shell .emoji-collection-page,
.page-pc-shell .friend-setting-page,
.page-pc-shell .moment-page,
.page-pc-shell .moment-page-qzone,
.page-pc-shell .group-members-page,
.page-pc-shell .profile-edit-page,
.page-pc-shell .group-settings-page {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}
.page-pc-shell .index-search-container {
    margin-top: 26px;
    padding-top: 0;
}
.page-pc-shell .index-search-box {
    height: 52px;
    border: 1px solid #dbe4f2;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.page-pc-shell .index-search-input,
.page-pc-shell .group-members-search-input,
.page-pc-shell .friend-setting-input,
.page-pc-shell .chat-group-input {
    font-size: 15px;
}
.page-pc-shell .index-list-container,
.page-pc-shell .contacts-list-box,
.page-pc-shell .discover-section,
.page-pc-shell .friend-setting-panel,
.page-pc-shell .group-setting-member-panel,
.page-pc-shell .emoji-collection-grid,
.page-pc-shell .moment-card,
.page-pc-shell .moment-card-qzone,
.page-pc-shell .new-apply-item {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15,23,42,0.08);
}
.page-pc-shell .index-list-container,
.page-pc-shell .contacts-list-box,
.page-pc-shell .friend-setting-panel,
.page-pc-shell .group-setting-member-panel,
.page-pc-shell .new-apply-item,
.page-pc-shell .moment-card,
.page-pc-shell .moment-card-qzone {
    overflow: hidden;
    background: rgba(255,255,255,0.92);
}
.page-pc-shell .index-item,
.page-pc-shell .contacts-menu-item,
.page-pc-shell .discover-list-item,
.page-pc-shell .friend-setting-item,
.page-pc-shell .group-settings-link-item {
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.page-pc-shell .index-item:hover,
.page-pc-shell .contacts-menu-item:hover,
.page-pc-shell .discover-list-item:hover,
.page-pc-shell .group-settings-link-item:hover {
    background-color: #f8fbff;
}
.page-pc-shell .index-item:hover {
    transform: translateY(-1px);
}
.page-pc-shell .contacts-main-content {
    padding-top: 28px;
    padding-bottom: 120px;
}
.page-pc-shell .contacts-menu-item {
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #dbe4f2;
    background: rgba(255,255,255,0.9);
}
.page-pc-shell .contacts-list-box {
    margin-top: 18px;
    padding: 12px 0;
}
.page-pc-shell .contacts-group-header {
    padding-left: 22px;
    padding-right: 22px;
}
.page-pc-shell .contacts-friend-item {
    padding-left: 22px;
    padding-right: 22px;
}
.page-pc-shell .discover-main-content {
    padding-top: 28px;
    padding-bottom: 120px;
}
.page-pc-shell .discover-section {
    margin-top: 18px !important;
    overflow: hidden;
}
.page-pc-shell .discover-list-item {
    min-height: 72px;
}
.page-pc-shell .new-apply-main {
    padding-top: 28px;
    padding-bottom: 120px;
}
.page-pc-shell .new-apply-item {
    margin-top: 18px;
    padding: 22px;
}
.page-pc-shell .new-apply-time-tag {
    right: 22px;
    top: 22px;
}
.page-pc-shell .moment-page,
.page-pc-shell .moment-page-qzone {
    padding-top: 28px;
    padding-bottom: 120px;
    min-height: auto;
    background: transparent;
}
.page-pc-shell .moment-card-detail {
    margin-bottom: 0;
}
.page-pc-shell .emoji-collection-page,
.page-pc-shell .friend-setting-page,
.page-pc-shell .profile-edit-page {
    padding-top: 28px;
    padding-bottom: 120px;
}
.page-pc-shell .emoji-collection-grid {
    padding: 18px;
    background: rgba(255,255,255,0.92);
}
.page-pc-shell .emoji-collection-item {
    width: 23%;
    margin: 0 1% 18px 1%;
    border-radius: 18px;
    overflow: hidden;
}
.page-pc-shell .group-members-page,
.page-pc-shell .group-settings-page {
    padding-top: 28px;
    padding-bottom: 120px;
}
.page-pc-shell .chat-user-collection-panel,
.page-pc-shell .chat-group-collection-panel,
.page-pc-shell .chat-group-emoji-panel,
.page-pc-shell .chat-user-emoji-panel {
    display: none;
}

/* =============================================================================
   WeChat-like Desktop Shell
   ============================================================================= */
.pc-wechat-shell {
    width: 1360px;
    max-width: calc(100% - 36px);
    height: calc(100vh - 28px);
    margin: 14px auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
    border: 1px solid #d6dde8;
    border-radius: 14px;
    background: #f5f7fa;
    box-shadow: 0 18px 54px rgba(15,23,42,0.18);
}
.page-pc-shell .pc-wechat-shell {
    position: fixed;
    top: 14px;
    left: 50%;
    margin: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.pc-wechat-nav {
    width: 78px;
    background: #20262e;
    color: #c8d2dc;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.pc-wechat-nav-top {
    width: 100%;
    padding-top: 22px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.pc-wechat-avatar-link {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}
.pc-wechat-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
}
.pc-wechat-nav-main {
    width: 100%;
    padding-top: 20px;
}
.pc-wechat-nav-item {
    display: block;
    width: 100%;
    padding: 14px 0 12px 0;
    color: #9eabb8;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
}
.pc-wechat-nav-item svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 6px auto;
    fill: currentColor;
}
.pc-wechat-nav-item-active {
    color: #4ade80;
}
.pc-wechat-nav-bottom {
    margin-top: auto;
    padding: 16px 0 18px 0;
}
.pc-wechat-nav-icon-btn {
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #9eabb8;
    border: 1px solid rgba(255,255,255,0.05);
}
.pc-wechat-nav-icon-btn i {
    display: inline-block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 18px;
}
.pc-wechat-sidebar {
    width: 288px;
    border-right: 1px solid #d8dee8;
    background: #e9edf2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.pc-wechat-sidebar-header {
    padding: 22px 18px 14px 18px;
    overflow: hidden;
}
.pc-wechat-sidebar-title {
    float: left;
    font-size: 20px;
    color: #111827;
    font-weight: bold;
    line-height: 28px;
}
.pc-wechat-sidebar-action {
    float: right;
    margin-top: 2px;
    color: #57606a;
    font-size: 13px;
    line-height: 24px;
}
.pc-wechat-sidebar-action-icon {
    width: 28px;
    height: 28px;
    margin-top: 0;
    border-radius: 8px;
    background: #eef2f7;
    border: 1px solid #d8e1eb;
    text-align: center;
    color: #4b5563;
}
.pc-wechat-sidebar-action-icon i {
    display: inline-block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 15px;
}
.pc-wechat-search {
    padding: 0 14px 12px 14px;
}
.pc-wechat-search-input {
    display: block;
    width: 100%;
    height: 34px;
    line-height: 34px;
    padding: 0 12px;
    border: 1px solid #d4dbe5;
    border-radius: 8px;
    background: #f7f9fb;
    color: #333;
    font-size: 13px;
    outline: none;
    -webkit-appearance: none;
}
.pc-wechat-list {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    background: #f1f3f6;
}
.pc-wechat-list-item {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e6ebf1;
    color: #222;
    background: transparent;
}
.pc-wechat-list-item:hover {
    background: #e6ebf1 !important;
}
.pc-wechat-list-item-active {
    background: #dce3eb !important;
}
.pc-wechat-list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #d9dee4;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
}
.pc-wechat-list-avatar img {
    display: block;
    width: 100%;
    height: 100%;
}
.pc-wechat-list-item {
    position: relative;
}
.pc-wechat-list-body {
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left: 12px;
    margin-right: 28px;
}
.pc-wechat-list-top {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.pc-wechat-list-name {
    float: none;
    max-width: none;
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 15px;
    color: #111827;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-wechat-list-time {
    float: none;
    font-size: 12px;
    color: #94a3b8;
    line-height: 22px;
    margin-left: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.pc-wechat-list-msg {
    margin-top: 4px;
    font-size: 12px;
    color: #7b8794;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-wechat-list-unread {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ff4d4f;
    color: #fff;
    text-align: center;
    font-size: 11px;
}
.pc-wechat-main {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}
.pc-wechat-frame-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #f5f5f5;
    overflow: hidden;
}
.pc-wechat-chat-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(245,247,250,0.98);
    color: #6b7280;
}
.pc-wechat-chat-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #d8e4f2;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: pc-chat-spin 0.8s linear infinite;
}
.pc-wechat-chat-loading-text {
    margin-top: 14px;
    font-size: 14px;
    color: #64748b;
}
@keyframes pc-chat-spin {
    to { transform: rotate(360deg); }
}
.pc-wechat-chat-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #f5f5f5;
    overflow: hidden;
}
.pc-wechat-main-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    margin-left: -190px;
    margin-top: -120px;
    text-align: center;
    color: #8a96a3;
}
.pc-wechat-main-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px auto;
    line-height: 88px;
    border-radius: 26px;
    background: #e3e9ef;
    color: #6b7280;
    font-size: 40px;
    font-weight: bold;
}
.pc-wechat-main-title {
    font-size: 24px;
    color: #334155;
    line-height: 32px;
}
.pc-wechat-main-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 24px;
}
.pc-wechat-chat-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}
.pc-wechat-chat-main-standalone {
    min-height: 100vh;
    background: #f5f5f5;
}
.pc-embed-mode .pc-wechat-chat-main-standalone {
    min-height: 100%;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}
.pc-embed-mode .pc-wechat-chat-header {
    height: 56px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.pc-embed-mode .pc-wechat-chat-scroll {
    padding: 16px 20px 8px 20px !important;
}
.pc-embed-mode .pc-wechat-chat-editor {
    padding: 8px 16px 12px 16px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.pc-embed-mode .chat-user-message-row,
.pc-embed-mode .chat-group-msg-row {
    width: auto;
}
.pc-wechat-chat-header {
    height: 60px;
    padding: 0 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #f7f7f7;
    overflow: hidden;
}
.pc-wechat-chat-title {
    float: left;
    font-size: 17px;
    color: #111827;
    line-height: 60px;
    font-weight: bold;
}
.pc-wechat-chat-actions {
    float: right;
    padding-top: 16px;
}
.pc-wechat-chat-icon-link {
    float: left;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 8px;
    background: #eef2f7;
    color: #4b5563;
    text-align: center;
    border: 1px solid #d8e1eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.pc-wechat-chat-icon-link i {
    display: inline-block;
    margin-top: 5px;
    font-size: 16px;
    line-height: 16px;
}
.pc-wechat-chat-scroll {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px 10px 24px !important;
    background: #f5f5f5;
}
.pc-wechat-chat-editor {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 10px 18px 14px 18px;
}
.pc-wechat-toolbar {
    overflow: hidden;
}
.pc-wechat-tool-btn {
    float: left;
    margin-right: 10px;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}
.pc-wechat-tool-icon-btn {
    float: left;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    background: #eef2f7;
    color: #4b5563;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.pc-wechat-tool-icon-btn i {
    display: inline-block;
    margin-top: 5px;
    font-size: 16px;
    line-height: 16px;
}
.pc-wechat-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.pc-wechat-panel.hidden {
    display: none;
}
.pc-wechat-collection-head {
    overflow: hidden;
    margin-bottom: 12px;
}
.pc-wechat-collection-title-wrap {
    float: left;
    overflow: hidden;
}
.pc-wechat-collection-title-icon {
    float: left;
    font-size: 15px;
    line-height: 22px;
    color: #64748b;
}
.pc-wechat-collection-title {
    float: left;
    margin-left: 8px;
    font-size: 14px;
    color: #334155;
    line-height: 22px;
    font-weight: bold;
}
.pc-wechat-collection-manage {
    float: right;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eaf0f8;
    color: #4f5f73;
    text-align: center;
    border: 1px solid #d8e1eb;
}
.pc-wechat-collection-manage i {
    display: inline-block;
    margin-top: 5px;
    font-size: 15px;
    line-height: 15px;
}
.pc-wechat-collection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
}
.pc-wechat-collection-grid .chat-user-collection-item {
    float: none;
    width: 92px;
    height: 92px;
    min-height: 92px;
    margin: 0;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(15,23,42,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-wechat-collection-grid .chat-user-collection-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}
.pc-wechat-editor-box {
    margin-top: 10px;
    overflow: hidden;
}
.pc-wechat-editor-input {
    float: left;
    width: calc(100% - 96px);
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
}
.pc-wechat-send-btn {
    float: right;
    width: 82px;
    height: 38px;
    line-height: 38px;
    border: none;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.pc-wechat-empty {
    margin: 18px 14px;
    padding: 18px 12px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #fff;
}
.page-pc-shell .index-item,
.page-pc-shell .pc-wechat-list-item {
    border-radius: 0;
    box-shadow: none;
}
.page-pc-shell .chat-user-container,
.page-pc-shell .chat-group-container {
    width: auto;
    max-width: none;
    margin: 0;
}
.pc-wechat-list-static {
    background: #f1f3f6;
}
.pc-wechat-list-avatar-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #ffffff;
}
.pc-wechat-section-label {
    padding: 10px 14px 8px 14px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 18px;
}
.pc-wechat-list-item-special {
    background: #f8fafc;
}
.pc-wechat-list-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.pc-wechat-list-avatar-icon i {
    font-size: 18px;
    line-height: 18px;
}
.pc-wechat-list-avatar-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.pc-wechat-list-avatar-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.pc-wechat-scroll-panel {
    background: #f5f5f5;
}
.pc-new-apply-page .pc-wechat-chat-scroll,
.pc-new-apply-page .pc-wechat-scroll-panel {
    background: transparent;
}
.pc-new-apply-page .new-apply-item {
    box-shadow: none;
}
.pc-wechat-side-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    line-height: 20px;
}
.pc-wechat-request-list,
.pc-wechat-group-list {
    overflow: hidden;
}
.pc-wechat-request-card,
.pc-wechat-group-card {
    display: block;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
}
.pc-wechat-request-top {
    overflow: hidden;
}
.pc-wechat-request-user {
    float: left;
    display: flex;
    align-items: center;
}
.pc-wechat-request-avatar,
.pc-wechat-group-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.pc-wechat-request-userinfo,
.pc-wechat-group-body {
    min-width: 0;
    margin-left: 12px;
}
.pc-wechat-request-name,
.pc-wechat-group-name {
    font-size: 15px;
    line-height: 22px;
    color: #111827;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-wechat-request-meta {
    margin-top: 2px;
    font-size: 12px;
    line-height: 18px;
    color: #94a3b8;
}
.pc-wechat-request-status {
    float: right;
    font-size: 12px;
    line-height: 22px;
    color: #64748b;
}
.pc-wechat-request-desc,
.pc-wechat-group-desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 20px;
    color: #64748b;
}
.pc-wechat-group-card {
    display: flex;
    align-items: center;
}
.pc-wechat-group-arrow {
    margin-left: auto;
    color: #94a3b8;
    flex-shrink: 0;
}
.pc-wechat-space-view {
    height: 100%;
    padding: 28px;
    overflow-y: auto;
    background: #f5f5f5;
}
.pc-wechat-space-card {
    display: block;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
    color: #111827;
}
.pc-wechat-space-card-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #eff6ff 100%);
}
.pc-wechat-space-eyebrow {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pc-wechat-space-title {
    margin-top: 10px;
    font-size: 30px;
    line-height: 40px;
    color: #111827;
    font-weight: bold;
}
.pc-wechat-space-desc {
    margin-top: 12px;
    max-width: 620px;
    font-size: 14px;
    line-height: 26px;
    color: #64748b;
}
.pc-wechat-space-actions {
    margin-top: 24px;
}
.pc-wechat-space-btn {
    display: inline-block;
    min-width: 110px;
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    margin-right: 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #334155;
    text-align: center;
    font-size: 14px;
}
.pc-wechat-space-btn-primary {
    border-color: #07c160;
    background: #07c160;
    color: #fff;
}
.pc-wechat-space-grid {
    margin-top: 18px;
    overflow: hidden;
}
.pc-wechat-space-grid .pc-wechat-space-card {
    float: left;
    width: 48.6%;
}
.pc-wechat-space-grid .pc-wechat-space-card + .pc-wechat-space-card {
    margin-left: 2.8%;
}
.pc-wechat-space-card-title {
    font-size: 20px;
    line-height: 28px;
    color: #111827;
    font-weight: bold;
}
.pc-wechat-space-card-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 24px;
    color: #64748b;
}
