/* Native WeChat layout. Moments content keeps its existing presentation. */
html body:is(.korean-gray-ui, body) #wechat { background:#ededed; }
html body:is(.korean-gray-ui, body) #wechat[data-wx-tab="chat"] .nav-bar,
html body:is(.korean-gray-ui, body) #wechat[data-wx-tab="contacts"] .nav-bar {background:#ededed!important; height:72px!important; min-height:72px; padding:22px 15px 0!important; border:0!important; box-shadow:none!important; position:relative; flex-shrink:0;}
html body:is(.korean-gray-ui, body) #wechat .nav-title {font-size:18px!important; font-weight:500!important; color:#111!important; letter-spacing:0!important;}
html body:is(.korean-gray-ui, body) #wechat[data-wx-tab="chat"] .nav-left,
html body:is(.korean-gray-ui, body) #wechat[data-wx-tab="contacts"] .nav-left {width:28px; opacity:0;}
html body:is(.korean-gray-ui, body) #wechat .nav-right {color:#111!important; width:26px;}
#wechat .nav-right svg {width:24px;height:24px;}
html body:is(.korean-gray-ui, body) #wechat-main-content,html body:is(.korean-gray-ui, body) #wechat-contacts-content {display:block; background:#fff!important; padding:0 0 calc(78px + env(safe-area-inset-bottom,0px))!important;}
html body:is(.korean-gray-ui, body) #wechat-main-content.hidden,html body:is(.korean-gray-ui, body) #wechat-contacts-content.hidden {display:none!important;}
html body:is(.korean-gray-ui, body) #wechat-search-container {background:#ededed!important; padding:8px 7px 7px!important; border:0!important;}
html body:is(.korean-gray-ui, body) #wechat-search-box {height:34px!important;background:#fff!important;border-radius:6px!important; padding:6px 10px!important;justify-content:center!important;}
html body:is(.korean-gray-ui, body) #wechat-search-center {position:absolute!important;transform:none!important;font-size:16px!important;font-weight:400!important;color:#b2b2b2!important;}
html body:is(.korean-gray-ui, body) #wechat-search-center i {font-size:17px!important;margin-right:7px!important;color:#b2b2b2!important;}
html body:is(.korean-gray-ui, body) #wechat-search-input {display:block!important;font-size:16px!important;}
html body:is(.korean-gray-ui, body) #wechat-search-left-icon {display:block!important;}
html body:is(.korean-gray-ui, body) #wechat #main-chat-list {background:#fff!important;overflow:visible!important; padding:0!important;}
html body:is(.korean-gray-ui, body) #wechat .chat-item {position:relative;min-height:68px;padding:10px 14px!important;border:0!important;gap:0!important;align-items:center;}
#wechat .chat-item::after {content:'';position:absolute;bottom:0;left:70px;right:0;height:.5px;background:#eee;}
html body:is(.korean-gray-ui, body) #wechat .chat-item>img {width:46px!important;height:46px!important;border-radius:5px!important;margin:0 12px 0 0!important;border:0!important;padding:0!important;background:none!important;}
html body:is(.korean-gray-ui, body) #wechat .chat-header .nickname {font-size:17px!important;font-weight:400!important;color:#111!important;}
html body:is(.korean-gray-ui, body) #wechat .last-message {font-size:14px!important;line-height:20px;color:#aaa!important;margin:0!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
html body:is(.korean-gray-ui, body) #wechat .chat-time {display:block!important;font-size:11px!important;color:#b2b2b2!important;margin-right:0!important;}
html body:is(.korean-gray-ui, body) #wechat .wechat-tab-bar {bottom:0!important;left:0!important;right:0!important;width:100%;height:calc(78px + env(safe-area-inset-bottom,0px))!important;padding:7px 0 env(safe-area-inset-bottom,0px)!important;border-radius:0!important;border-top:.5px solid #ddd!important;box-shadow:none!important;background:rgba(249,249,249,.96)!important;justify-content:flex-start!important;}
html body:is(.korean-gray-ui, body) #wechat .wechat-tab-bar-inner {height:52px!important;margin:0!important;}
html body:is(.korean-gray-ui, body) #wechat .tab-item {flex:1;gap:3px!important;color:#111!important;font-weight:400!important;}
html body:is(.korean-gray-ui, body) #wechat .tab-item svg {display:block;width:25px;height:25px;flex-shrink:0;}
html body:is(.korean-gray-ui, body) #wechat .tab-item.active {color:#07c160!important;}
#wechat .tab-item.active .wx-fill {fill:currentColor;}
#wechat .tab-item[data-tab="discover"].active .wx-fill {fill:none;}
html body:is(.korean-gray-ui, body) #wechat .tab-item::after {display:none!important;}
html body:is(.korean-gray-ui, body) #wechat .tab-text-cn {display:block!important;font-size:10px!important;line-height:15px!important;}
html body:is(.korean-gray-ui, body) #wechat .tab-text-en,html body:is(.korean-gray-ui, body) #wechat .wechat-tab-bar-deco {display:none!important;}
html body:is(.korean-gray-ui, body) #wechat-contacts-content .item-list-container {background:#fff!important; padding:0!important;}
.wx-new-friend {display:flex;width:100%;height:54px;align-items:center;gap:12px;background:white;border:0;padding:0 14px;cursor:pointer;font:16px -apple-system,BlinkMacSystemFont,sans-serif;color:#111;text-align:left;}
.wx-contact-icon {display:flex;align-items:center;justify-content:center;background:#fa9d32;color:white;width:38px;height:38px;border-radius:4px;font-size:24px;}
html body:is(.korean-gray-ui, body) #wechat #friends-list-container .list-item {padding-left:14px!important;}
html body:is(.korean-gray-ui, body) #wechat #friends-list-container .list-item img {width:38px!important;height:38px!important;margin:8px 12px 8px 0!important;border:0!important;padding:0!important;border-radius:4px!important;}
html body:is(.korean-gray-ui, body) #wechat #friends-list-container .name {height:54px!important;font-size:16px!important;}
html body:is(.korean-gray-ui, body) #wechat .contact-group-title {padding:5px 14px!important;background:#ededed!important;font-size:12px!important;color:#777!important;}
html body:is(.korean-gray-ui, body) #wechat-me-content {background:#ededed!important;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;}
html body:is(.korean-gray-ui, body) #wechat #korean-me-header {display:none!important;}
html body:is(.korean-gray-ui, body) #wechat .me-header {position:relative;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0 0 8px!important;padding:68px 24px 36px!important;align-items:center;min-height:195px;}
html body:is(.korean-gray-ui, body) #wechat .me-header img {width:60px!important;height:60px!important;border:0!important;padding:0!important;border-radius:6px!important;margin-right:18px!important;}
html body:is(.korean-gray-ui, body) #wechat .me-info h2 {font-size:21px!important;color:#111!important;font-weight:600!important;}
html body:is(.korean-gray-ui, body) #wechat .me-info p {font-size:15px!important;color:#888!important;margin-top:8px!important;}
.wx-profile-qr {position:absolute;right:19px;top:78px;color:#7d8793;font-size:17px;}
.wx-profile-arrow {position:absolute;right:19px;top:111px;color:#b2b2b2;font-size:13px;}
html body:is(.korean-gray-ui, body) #wechat .me-list {background:white!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0 0 8px!important;}
html body:is(.korean-gray-ui, body) #wechat .me-item {position:relative;min-height:53px;padding:15px 16px!important;border:0!important;background:#fff!important;}
#wechat .me-item:not(:last-child)::after {content:'';position:absolute;left:53px;right:0;bottom:0;background:#eee;height:.5px;}
html body:is(.korean-gray-ui, body) #wechat .me-item span {font-size:16px!important;font-weight:400!important;color:#111!important;}
html body:is(.korean-gray-ui, body) #wechat .me-item i:first-child {width:22px!important;font-size:21px!important;margin-right:15px!important;}
html body:is(.korean-gray-ui, body) #wechat #go-wallet-btn i:first-child {color:#18b998!important;}
html body:is(.korean-gray-ui, body) #wechat #go-favorites-btn i:first-child {color:#e5b841!important;}
html body:is(.korean-gray-ui, body) #wechat #go-my-persona-btn i:first-child {color:#318ed0!important;}
html body:is(.korean-gray-ui, body) #wechat #go-emoticon-manage-btn i:first-child {color:#edc447!important;}
html body:is(.korean-gray-ui, body) #wechat .me-item .arrow {margin:0!important;width:12px!important;font-size:13px!important;color:#b2b2b2!important;}
/* Retain the existing night-mode switch. */
html body.wechat-dark-mode #wechat,html body.wechat-dark-mode #wechat-me-content {background:#111!important;}
html body.wechat-dark-mode #wechat .nav-bar,html body.wechat-dark-mode #wechat-search-container {background:#181818!important;}
html body.wechat-dark-mode #wechat .me-header,html body.wechat-dark-mode #wechat .me-list,html body.wechat-dark-mode #wechat .me-item,html body.wechat-dark-mode #wechat-main-content,html body.wechat-dark-mode #wechat-contacts-content,html body.wechat-dark-mode #wechat #main-chat-list,html body.wechat-dark-mode #wechat .chat-item,html body.wechat-dark-mode #wechat .wx-new-friend {background:#181818!important;}
html body.wechat-dark-mode #wechat .nav-title,html body.wechat-dark-mode #wechat .nickname,html body.wechat-dark-mode #wechat .me-info h2,html body.wechat-dark-mode #wechat .me-item span,html body.wechat-dark-mode #wechat .nav-right {color:#eee!important;}
html body.wechat-dark-mode #wechat .wechat-tab-bar {background:#181818!important;border-color:#333!important;}
html body.wechat-dark-mode #wechat .tab-item {color:#ddd!important;}
html body.wechat-dark-mode #wechat .tab-item.active {color:#07c160!important;}

html body #wechat .nav-right {padding:0!important;flex-shrink:0;}

/* 移动端顶部安全区：状态栏隐藏后仍保留可点击的返回区域。 */
@media (max-width: 480px) {
    html body #wechat-chat-detail { padding-top: max(env(safe-area-inset-top), 44px)!important; }
    html body #wechat-chat-detail > .chat-header-detail { height:56px!important; min-height:56px!important; padding:0 12px!important; z-index:220!important; flex-shrink:0!important; }
    html body #wechat-chat-detail > .chat-header-detail .header-left { min-width:48px!important; min-height:44px!important; display:flex!important; align-items:center!important; justify-content:flex-start!important; margin:0!important; padding:0!important; z-index:2!important; }
    html body #wechat-chat-detail > .chat-header-detail .header-right { min-width:48px!important; min-height:44px!important; display:flex!important; align-items:center!important; justify-content:flex-end!important; }
    html body #wechat-chat-detail > .message-list { min-height:0!important; }
    html body .wx-native-page { padding-top: max(env(safe-area-inset-top), 44px)!important; }
    html body .wx-native-page > .nav-bar:first-child { height:56px!important; min-height:56px!important; padding:0 12px!important; z-index:220!important; }
    html body .wx-native-page > .nav-bar:first-child .nav-left, html body .wx-native-page > .nav-bar:first-child .nav-right { min-width:48px!important; min-height:44px!important; display:flex!important; align-items:center!important; }
}

#wechat .wx-menu-icon {width:22px;height:22px;flex-shrink:0;margin-right:15px;color:#3299ca;}
#wechat #go-wallet-btn .wx-menu-icon {color:#18b998;}
#wechat #go-emoticon-manage-btn .wx-menu-icon {color:#e8bc36;}
#wechat .wx-new-friend {font-weight:400!important;position:relative;}
#wechat .wx-new-friend::after {content:'';position:absolute;left:64px;right:0;bottom:0;height:.5px;background:#eee;}
#wechat .wx-groups .wx-contact-icon {background:#07c160;}
html body:is(.korean-gray-ui, body) #wechat .me-header {padding-top:100px!important;min-height:232px!important;padding-bottom:46px!important;}
html body #wechat .wx-profile-qr {top:111px;}
html body #wechat .wx-profile-arrow {top:144px;}

/* Hide the simulated status bar across the app. */
html body #status-bar { display: none !important; }

#icon-settings:not(.has-custom-icon),
#setting-icon-settings:not(.has-custom-icon) {
    background: transparent;
    border: none;
    box-shadow: none;
}
#icon-settings:not(.has-custom-icon)::after,
#setting-icon-settings:not(.has-custom-icon)::after { display: none; }

html body #wechat-add-menu-overlay {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 3000;
}
html body #wechat-add-menu-overlay .selector-sheet {
    top: 72px;
    right: 8px;
    bottom: auto;
    left: auto;
    width: 200px;
    max-width: calc(100% - 16px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 5px;
    background: #fff !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#wechat-add-menu-overlay .selector-sheet::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 14px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
}
html body #wechat-add-menu-overlay .selector-option {
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: #191919 !important;
    font: 16px -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
    cursor: pointer;
}
html body #wechat-add-menu-overlay .selector-option + .selector-option { border-top: .5px solid #eee; }
html body #wechat-add-menu-overlay .selector-option i { width: 23px; font-size: 22px; color: #191919 !important; text-align: center; flex-shrink: 0; }
html body #wechat-add-menu-overlay .selector-option:hover { background: #f5f5f5 !important; }

html body:is(.korean-gray-ui, body) #wechat[data-wx-tab] > .nav-bar > .nav-left {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 40px;
    padding: 0;
    opacity: 1 !important;
    color: #191919 !important;
    cursor: pointer;
}
html body:is(.korean-gray-ui, body) #wechat > .nav-bar > .nav-left i { color: inherit !important; }
html body.wechat-dark-mode #wechat[data-wx-tab] > .nav-bar > .nav-left { color: #eee !important; }

/* OP Simulator unified WeChat light interface */
:root{--wx-green:#07c160;--wx-bg:#f5f5f5;--wx-line:#e7e7e7;--wx-text:#191919;--wx-sub:#888;}
html body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif!important;background:var(--wx-bg);}
html body .wx-native-page{background:var(--wx-bg)!important;color:var(--wx-text);}
html body .wx-native-page .nav-bar{height:56px!important;min-height:56px!important;padding:0 16px!important;background:rgba(245,245,245,.96)!important;border-bottom:1px solid var(--wx-line)!important;backdrop-filter:none!important;}
html body .wx-native-page .nav-title{font-family:inherit!important;font-style:normal!important;font-size:17px!important;font-weight:600!important;letter-spacing:0!important;color:var(--wx-text)!important;text-transform:none!important;}
html body .wx-native-page .nav-title span{font-family:inherit!important;font-style:normal!important;font-size:17px!important;letter-spacing:0!important;color:var(--wx-text)!important;text-transform:none!important;}
html body .wx-native-page .nav-title span+span{display:none!important;}
html body .wx-native-page .nav-left,html body .wx-native-page .nav-right{color:var(--wx-text)!important;font-size:16px!important;font-weight:400!important;min-width:48px;}
html body .wx-native-page .nav-right{color:var(--wx-green)!important;text-align:right;}
html body .wx-native-page input,html body .wx-native-page textarea,html body .wx-native-page select{font-family:inherit!important;color:var(--wx-text)!important;background:#fff!important;border:1px solid var(--wx-line)!important;border-radius:8px!important;box-sizing:border-box;}
html body .wx-native-page input:focus,html body .wx-native-page textarea:focus,html body .wx-native-page select:focus{border-color:var(--wx-green)!important;box-shadow:0 0 0 2px rgba(7,193,96,.12)!important;}
html body .wx-native-page .form-card,html body .wx-native-page [style*="border-radius: 24px"],html body .wx-native-page [style*="border-radius:24px"],html body .wx-native-page [style*="border-radius: 16px"]{border-radius:10px!important;box-shadow:none!important;border-color:var(--wx-line)!important;}
html body .wx-native-page .advanced-form{padding:12px 16px!important;}
html body .wx-native-page .form-group label{font-size:14px!important;letter-spacing:0!important;text-transform:none!important;color:#555!important;}
html body .wx-native-page .form-group{margin-bottom:18px!important;}
html body .wx-native-page button.btn-primary,html body .wx-native-page .btn-primary{background:var(--wx-green)!important;border-radius:8px!important;box-shadow:none!important;}
html body .wx-native-page .danger-btn{border-radius:8px!important;box-shadow:none!important;}
html body .wx-native-page .image-upload-placeholder{border-radius:50%!important;border:1px solid #ddd!important;background:#eee!important;}
html body .wx-native-page h1{font-size:24px!important;letter-spacing:0!important;font-weight:600!important;color:var(--wx-text)!important;}
html body .wx-native-page #persona-list-container{gap:1px!important;background:#fff;border-radius:10px;overflow:hidden;border:1px solid var(--wx-line);}
html body .wx-native-page #persona-list-container .list-item{border:0!important;border-bottom:1px solid var(--wx-line)!important;border-radius:0!important;box-shadow:none!important;padding:13px 16px!important;}
html body .wx-native-page #wallet-balance-display{font-size:34px!important;}
html body .wx-native-page #wallet-page [style*="linear-gradient"]{background:#2b2b2b!important;border-radius:10px!important;box-shadow:none!important;}
html body .wx-native-page #wallet-page .flex-between{border-radius:0!important;box-shadow:none!important;border-left:0!important;border-right:0!important;background:#fff!important;margin-left:0!important;margin-right:0!important;}
html body .wx-native-page #wallet-page>div[style*="padding: 20px"]{padding:16px!important;}
html body .wx-native-page .selector-sheet{border-radius:12px 12px 0 0!important;background:#fff!important;box-shadow:0 -4px 20px rgba(0,0,0,.1)!important;}
html body .wx-native-page .selector-option{border-bottom:1px solid var(--wx-line)!important;background:#fff!important;}
html body #contact-selector-overlay .selector-sheet,html body #forward-contact-selector-overlay .selector-sheet{background:#fff!important;border-radius:14px 14px 0 0!important;padding:18px!important;}
html body #contact-selector-overlay .selector-sheet h3,html body #forward-contact-selector-overlay .selector-sheet h3{font-size:17px!important;font-weight:600!important;color:#191919!important;}
html body .sheet-cancel{background:#f2f2f2!important;color:#333!important;border-radius:8px!important;}
html body .wechat-dark-mode,html body.wechat-dark-mode{background:var(--wx-bg)!important;}
html body.wechat-dark-mode #wechat,html body.wechat-dark-mode #wechat-me-content{background:var(--wx-bg)!important;}

/* 暂时下线的功能入口与页面：保留数据和代码，避免误触打开。 */
html body #plus-item-romance,
html body #plus-item-game,
html body #plus-item-reader,
html body #plus-item-accompany,
html body #icon-romance,
html body #romance,
html body #romance-space-page,
html body #accompany-setup-page,
html body #accompany-active-page,
html body #wechat-game-list,
html body #wechat-game-room,
html body #check-phone-app-game,
html body #check-phone-app-game-detail,
html body #reader-floating-panel,
html body #reader-minimized-btn{display:none!important;}

/* 微博客户端风格 */
html body .weibo-ui{background:#f5f5f5!important;color:#333!important;}
html body .weibo-ui .forum-top-nav{height:56px!important;box-sizing:border-box;padding:0 14px!important;background:#fff!important;border-bottom:1px solid #eee!important;display:flex!important;align-items:center!important;justify-content:space-between!important;}
html body .weibo-ui .forum-logo{font-size:18px!important;font-weight:600!important;color:#333!important;gap:0!important;}
html body .weibo-ui #forum-ins-logo{display:none!important;}
html body .weibo-ui #forum-current-world{display:inline!important;color:#333!important;font-size:18px!important;font-weight:600!important;}
html body .weibo-ui .forum-logo i{display:none!important;}
html body .weibo-ui .forum-nav-icons{color:#ff8200!important;font-size:20px!important;}
html body .weibo-ui #forum-main-content,html body .weibo-ui #forum-search-content,html body .weibo-ui #forum-messages-content{background:#f5f5f5!important;}
html body .weibo-ui .forum-stories-container{background:#fff!important;border-bottom:1px solid #eee!important;padding:10px 12px!important;gap:14px!important;}
html body .weibo-ui .forum-story-ring{background:#ff8200!important;padding:2px!important;}
html body .weibo-ui .forum-story-avatar{width:46px!important;height:46px!important;}
html body .weibo-ui .forum-story-name{color:#666!important;font-size:11px!important;}
html body .weibo-ui .forum-story-name:first-letter{font-size:0;}
html body .weibo-ui .forum-story-name:after{content:'我的微博';font-size:11px;}
html body .weibo-ui .forum-story-add{background:#ff8200!important;}
html body .weibo-ui .forum-post{margin:8px 0!important;padding:0!important;border:0!important;background:#fff!important;box-shadow:0 1px 0 rgba(0,0,0,.04)!important;}
html body .weibo-ui .forum-post-header{padding:13px 14px 9px!important;}
html body .weibo-ui .forum-post-avatar-wrapper,html body .weibo-ui .forum-post-avatar{width:42px!important;height:42px!important;}
html body .weibo-ui .forum-post-avatar-wrapper{margin-right:10px!important;}
html body .weibo-ui .forum-post-author{color:#333!important;font-size:14px!important;font-weight:600!important;}
html body .weibo-ui .forum-post-time{color:#939393!important;font-size:11px!important;padding:2px 0 0!important;}
html body .weibo-ui .forum-post-follow{background:transparent!important;color:#ff8200!important;border:1px solid #ff8200!important;border-radius:4px!important;padding:3px 8px!important;font-size:12px!important;}
html body .weibo-ui .forum-post-more{color:#999!important;}
html body .weibo-ui .forum-post-content{padding:0 14px 8px!important;font-size:15px!important;line-height:1.55!important;color:#333!important;}
html body .weibo-ui .forum-post-content .author-name{color:#333!important;}
html body .weibo-ui .forum-post-images{gap:3px!important;padding:0 14px!important;width:auto!important;}
html body .weibo-ui .forum-post-images.img-count-1 .forum-post-image-wrapper img{border-radius:3px!important;max-height:420px!important;}
html body .weibo-ui .forum-post-image-wrapper{border-radius:3px!important;}
html body .weibo-ui .forum-post-actions{padding:10px 14px!important;border-top:1px solid #f2f2f2!important;color:#888!important;font-size:16px!important;}
html body .weibo-ui .forum-post-actions-left{gap:0!important;flex:1!important;justify-content:space-around!important;}
html body .weibo-ui .forum-post-actions-left i,html body .weibo-ui .forum-post-actions>i{color:#888!important;font-size:16px!important;}
html body .weibo-ui .forum-post-likes{padding:0 14px 10px!important;color:#666!important;font-size:12px!important;}
html body .weibo-ui .forum-floating-add-btn{background:#ff8200!important;width:46px!important;height:46px!important;right:16px!important;bottom:76px!important;box-shadow:0 3px 10px rgba(255,130,0,.25)!important;}
html body .weibo-ui .forum-tab-bar{background:#fff!important;border-top:1px solid #eee!important;padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px))!important;}
html body .weibo-ui .forum-tab-item{color:#999!important;font-size:21px!important;}
html body .weibo-ui .forum-tab-item.active{color:#ff8200!important;}
html body .weibo-ui .forum-tab-avatar{width:23px!important;height:23px!important;}
html body .weibo-ui .forum-search-content input{background:#eee!important;border-radius:18px!important;}
html body .home-screen .app-icon[data-target="romance"]{display:none!important;}

/* 微博首页导航与热搜布局 */
html body .weibo-ui .forum-top-nav{height:64px!important;padding:env(safe-area-inset-top,0px) 12px 0!important;}
html body .weibo-ui .weibo-super-topic{font-size:14px!important;color:#ff8200!important;font-weight:600!important;white-space:nowrap;cursor:pointer;}
html body .weibo-ui .weibo-home-tabs{flex:1;justify-content:center!important;gap:22px!important;cursor:default!important;}
html body .weibo-ui .weibo-top-tab{font-size:16px;color:#999;font-weight:500;position:relative;line-height:48px;}
html body .weibo-ui .weibo-top-tab.active{color:#333;font-weight:700;}
html body .weibo-ui .weibo-top-tab.active:after{content:"";position:absolute;bottom:4px;left:50%;width:20px;height:3px;border-radius:2px;background:#ff8200;transform:translateX(-50%);}
html body .weibo-ui .weibo-nav-actions{display:flex!important;gap:18px;align-items:center;color:#ff8200!important;font-size:18px!important;}
html body .weibo-ui .forum-stories-container{display:none!important;}
html body .weibo-ui .forum-tab-bar{height:62px;box-sizing:content-box;display:flex!important;justify-content:space-around!important;align-items:center!important;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))!important;}
html body .weibo-ui .forum-tab-item{flex:1;gap:3px;color:#8a8a8a!important;font-size:19px!important;line-height:1!important;}
html body .weibo-ui .forum-tab-item span{display:block;font-size:10px!important;line-height:1.2;color:inherit;}
html body .weibo-ui .forum-tab-avatar{width:21px!important;height:21px!important;}
html body .weibo-ui #forum-search-content{padding-top:4px!important;}
html body .weibo-ui #forum-search-content>div:first-child{padding:10px 14px!important;background:#fff!important;}
html body .weibo-ui #forum-search-content>div:first-child>div{border-radius:18px!important;border:1px solid #eee;background:#f5f5f5!important;padding:8px 14px!important;}
html body .weibo-ui #forum-search-input{font-size:14px!important;}
html body .weibo-ui .weibo-hot-section{background:#fff;margin:8px 0 0;padding:15px 14px;border-bottom:1px solid #eee;}
html body .weibo-ui .weibo-hot-section h3{margin:0 0 12px;font-size:16px;color:#333;}
html body .weibo-ui .weibo-hot-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;color:#555;font-size:13px;}
html body .weibo-ui .weibo-hot-grid span::first-letter{color:#ff8200;}
html body .weibo-ui .weibo-hot-section p{margin:0;color:#999;font-size:13px;}

/* 与参考微博首页一致的紧凑信息流 */
html body .weibo-ui #forum-main-content{background:#f3f3f3!important;}
html body .weibo-ui #forum-posts-container{gap:8px!important;padding-top:8px!important;}
html body .weibo-ui .forum-post{margin:0!important;border-bottom:1px solid #e8e8e8!important;box-shadow:none!important;}
html body .weibo-ui .forum-post-header{padding:14px 24px 8px!important;}
html body .weibo-ui .forum-post-avatar-wrapper,html body .weibo-ui .forum-post-avatar{width:48px!important;height:48px!important;}
html body .weibo-ui .forum-post-author{font-size:17px!important;font-weight:700!important;}
html body .weibo-ui .forum-post-time{font-size:13px!important;color:#999!important;}
html body .weibo-ui .forum-post-content{padding:9px 28px 14px!important;font-size:17px!important;line-height:1.45!important;font-weight:500!important;}
html body .weibo-ui .forum-post-content .post-tag,html body .weibo-ui .forum-post-content a{color:#1689e8!important;}
html body .weibo-ui .forum-post-actions{margin:0!important;padding:12px 24px 10px!important;border-top:1px solid #eee!important;border-bottom:0!important;}
html body .weibo-ui .forum-post-actions-left{width:100%!important;justify-content:space-between!important;}
html body .weibo-ui .forum-post-actions-left i{font-size:22px!important;color:#888!important;}
html body .weibo-ui .forum-post-likes{padding:0 28px 14px!important;font-size:14px!important;font-weight:600!important;}
html body .weibo-ui .forum-post-more{font-size:18px!important;}
/* 微博信息层级：顶部发布、四栏导航，未提供的视频功能不增加空入口。 */
html body .weibo-ui{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;font-weight:400!important;}
html body .weibo-ui .forum-top-nav{height:56px!important;flex-shrink:0;padding:0 14px!important;}
html body .weibo-ui #forum-current-world{display:none!important;}
html body .weibo-ui .weibo-home-tabs{gap:24px!important;}
html body .weibo-ui .weibo-top-tab{font-size:18px!important;cursor:pointer;}
html body .weibo-ui .weibo-nav-actions{gap:12px!important;}
html body .weibo-ui .weibo-nav-actions button{border:0;cursor:pointer;background:transparent;color:#ff8200;padding:4px;font-size:18px;}
html body .weibo-ui .weibo-nav-actions .weibo-compose{width:27px;height:27px;padding:0;border-radius:8px;background:#ff8200;color:white;font:300 28px/25px Arial;}
html body .weibo-ui .forum-post-header{padding:14px 14px 8px!important;gap:0!important;}
html body .weibo-ui .forum-post-header .forum-story-ring{width:40px!important;height:40px!important;padding:0!important;background:transparent!important;margin-right:10px!important;}
html body .weibo-ui .forum-post-header .forum-post-avatar{width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;}
html body .weibo-ui .forum-post-author{font-size:15px!important;font-weight:600!important;color:#e87923!important;}
html body .weibo-ui .forum-post-author-wrapper>span{font-size:11px!important;line-height:18px!important;font-weight:400!important;color:#aaa!important;}
html body .weibo-ui .forum-post-content{padding:5px 14px 13px!important;font-size:16px!important;font-weight:400!important;line-height:1.6!important;}
html body .weibo-ui .forum-post-content>span{font-size:inherit!important;font-weight:400!important;}
html body .weibo-ui .forum-post-images{padding:0 14px 12px!important;}
html body .weibo-ui .forum-post-actions{display:flex!important;align-items:center!important;justify-content:space-around!important;padding:0 8px!important;height:43px!important;gap:0!important;}
html body .weibo-ui .forum-post-actions button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border:0;background:none;font:13px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#777;cursor:pointer;height:100%;padding:0;}
html body .weibo-ui .forum-post-actions button i{font-size:18px!important;color:inherit!important;}
html body .weibo-ui .forum-post-actions button.liked{color:#ff8200!important;}
html body .weibo-ui .forum-post-actions .weibo-save{flex:0 0 30px;}
html body .weibo-ui .forum-tab-bar{height:52px!important;box-sizing:content-box!important;padding:4px 10px calc(4px + env(safe-area-inset-bottom,0px))!important;background:#fafafa!important;}
html body .weibo-ui .forum-tab-item{gap:4px!important;color:#555!important;}
html body .weibo-ui .forum-tab-item i{font-size:23px!important;}
html body .weibo-ui .forum-tab-item span{font-size:11px!important;font-weight:400!important;}
html body .weibo-ui .forum-tab-item.active{color:#ff8200!important;}
html body .weibo-ui #forum-my-tab-avatar{display:none!important;}
/* 发现、消息、我的：与参考图对应的页面结构 */
html body .weibo-ui .forum-top-nav[style*="display: none"]{display:none!important;}
html body .weibo-ui #forum-profile-content{min-height:0;background:#f3f3f5!important;}
html body .weibo-ui #forum-search-content{background:#fff!important;padding-top:8px!important;}
html body .weibo-ui #forum-search-content>div:first-child>div{border:1px solid #ff8200!important;background:white!important;padding:4px 5px 4px 13px!important;gap:6px;}
html body .weibo-ui #forum-search-input{min-width:0;height:32px;}
.wb-search-submit{background:#ff9208;border:0;border-radius:20px;color:white;font-size:14px;padding:8px 19px;flex-shrink:0;cursor:pointer;}
.wb-trends{padding:16px 15px 20px;background:#fff;}
.wb-section-title{display:flex;align-items:center;justify-content:space-between;padding:0 0 15px;gap:10px;}
.wb-section-title strong{font-size:17px;font-weight:600;}.wb-section-title strong i{color:#ff8200;}.wb-section-title>span{font-size:12px;color:#aaa;}
.wb-trend-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;}.wb-trend-grid button{display:flex;align-items:center;gap:9px;min-width:0;text-align:left;background:none;border:0;padding:0;font-size:14px;color:#333;cursor:pointer;}.wb-trend-grid em{font-size:14px;color:#aaa;font-style:normal;}.wb-trend-grid button:nth-child(-n+3) em{color:#ff8200;}.wb-trend-grid button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.wb-trend-grid small{background:#ff9635;color:#fff;padding:1px 3px;border-radius:3px;font-size:9px;}.wb-discovery-feed{border-top:8px solid #f4f4f4;}.wb-discovery-feed>.wb-section-title{padding:15px;border-bottom:1px solid #eee;}
.wb-page-nav{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#fff;flex-shrink:0;border-bottom:1px solid #f1f1f1;box-sizing:border-box;}.wb-page-nav>button{background:none;border:0;color:#444;font-size:20px;cursor:pointer;padding:8px;}.wb-page-nav strong{font-size:17px;font-weight:600;}.wb-title-tabs{display:flex;gap:25px;height:100%;align-items:center;}.wb-title-tabs button{height:100%;background:none;border:0;border-bottom:3px solid transparent;font-size:17px;color:#999;padding:0 3px!important;cursor:pointer;}.wb-title-tabs button.active{border-bottom-color:#ff8200!important;color:#222!important;}
.wb-inbox-heading{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:17px 18px 10px;font-size:15px;flex-shrink:0;}.wb-inbox-heading>button{border:0;background:none;color:#ff8200;font-size:13px;cursor:pointer;}
html body .weibo-ui #forum-messages-content{background:#fff!important;}
html body .weibo-ui #forum-messages-list{padding:0!important;}
html body .weibo-ui .forum-msg-item{display:flex;align-items:center;padding:17px 18px!important;background:#fff;border-bottom:1px solid #f1f1f1!important;min-height:48px;}
html body .weibo-ui #btn-view-char-msgs{display:none!important;}
.wb-account{background:#fff;flex-shrink:0;}.wb-account-cover{height:95px;background:linear-gradient(120deg,#e7e0d6,#f6f0e8,#e9ddd0);position:relative;cursor:pointer;overflow:hidden;}.wb-account-cover>img{width:100%;height:100%;object-fit:cover;}.wb-account-cover>span{position:absolute;bottom:10px;right:14px;font-size:11px;background:#fff9;border-radius:12px;padding:4px 9px;color:#777;}.wb-account-info{padding:0 18px 15px;display:flex;gap:15px;align-items:center;position:relative;margin-top:-14px;}.wb-account-avatar{width:72px;height:72px;object-fit:cover;background:#eee;border:3px solid #fff;border-radius:50%;flex-shrink:0;}.wb-account-info>div{padding-top:21px;min-width:0;}.wb-account-info h2{font-size:19px;font-weight:600;margin:0 0 7px;color:#222;}.wb-account-info button{display:block;max-width:100%;text-align:left;border:0;background:none;padding:0;color:#999;font-size:12px;cursor:pointer;line-height:1.6;word-break:break-word;}.wb-account-info .wb-location{margin-top:5px;font-size:11px;}.wb-account-stats{display:flex;padding:16px 0 20px;}.wb-account-stats>div{flex:1;text-align:center;}.wb-account-stats b{display:block;font-size:20px;color:#333;font-weight:600;}.wb-account-stats span{display:block;margin-top:5px;color:#999;font-size:12px;}
.wb-account-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#fff;margin:9px 10px;border-radius:8px;padding:22px 8px;flex-shrink:0;}.wb-account-tools button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:12px;color:#555;font-size:11px;cursor:pointer;padding:0;}.wb-account-tools i{font-size:23px;color:#e88930;}.wb-profile-tabs{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:15px 18px;border-bottom:1px solid #eee;flex-shrink:0;}.wb-profile-tabs .active{font-size:16px;color:#333;position:relative;}.wb-profile-tabs .active:after{content:"";height:3px;background:#ff8200;width:20px;position:absolute;bottom:-15px;left:6px;border-radius:2px;}.wb-profile-tabs>span:last-child{font-size:12px;color:#999;}.wb-own-posts{background:#fff;}.wb-empty{padding:38px 20px;text-align:center;color:#aaa;}.wb-empty>i{font-size:30px;color:#ccc;}.wb-empty p{font-size:13px;margin:18px 0;}.wb-empty-action{border:1px solid #ff8200;border-radius:20px;color:#ff8200;background:#fff;padding:7px 22px;font-size:13px;cursor:pointer;margin-top:10px;}.wb-clear-data{margin:22px auto;border:0;background:transparent;color:#999;font-size:11px;cursor:pointer;flex-shrink:0;}.wb-muted{font-size:13px;color:#999;grid-column:1/-1;}
/* 发布页：取消 / 发微博 / 发送，大面积正文与底部工具 */
html body .weibo-ui #forum-post-overlay>div{background:#fff!important;}
html body .weibo-ui #forum-post-overlay .nav-bar{padding:0 14px!important;height:62px!important;min-height:62px!important;background:#fff!important;}
html body .weibo-ui #forum-post-overlay .nav-left{width:60px!important;font-size:16px!important;}
.wb-compose-title{font-size:17px;font-weight:600;text-align:center;}.wb-compose-title span{display:block;font-size:12px;line-height:18px;font-weight:400;color:#999;}
html body .weibo-ui #forum-post-share-btn{padding:7px 17px!important;border-radius:5px;background:linear-gradient(90deg,#ffac43,#ffc65e);color:#fff!important;font-size:14px!important;}
html body .weibo-ui #forum-post-share-btn[style*="pointer-events: none"]{opacity:.45;}
html body .weibo-ui #forum-post-overlay>div>div:nth-child(2){display:flex!important;flex-direction:column;min-height:0;}
html body .weibo-ui #forum-post-overlay>div>div:nth-child(2)>div:first-child{padding:14px!important;border:0!important;flex:1;min-height:170px;}
html body .weibo-ui #forum-post-my-avatar{display:none!important;}
html body .weibo-ui #forum-post-my-name{display:none!important;}
html body .weibo-ui #forum-post-content{height:100%!important;min-height:170px!important;font-size:17px!important;line-height:1.6!important;}
html body .weibo-ui #forum-post-content::placeholder{color:#aaa;}
html body .weibo-ui #forum-post-overlay select,html body .weibo-ui #forum-post-tag-input{font-size:13px!important;color:#888!important;max-width:55%;}
html body .weibo-ui #forum-post-overlay>div>div:nth-child(2)>div:nth-child(3)>div{padding:11px 15px!important;}
.wb-compose-toolbar{display:flex;justify-content:space-around;align-items:center;min-height:58px;background:#f7f7f7;border-top:1px solid #eee;flex-shrink:0;}.wb-compose-toolbar button{border:0;background:none;font-size:25px;color:#333;padding:8px 18px;cursor:pointer;}
/* 微博私信：浅灰底、蓝白气泡，输入区固定 */
html body .weibo-ui #forum-chat-overlay>.nav-bar{height:56px!important;min-height:56px!important;padding:0 10px!important;background:#fff!important;backdrop-filter:none!important;}
html body .weibo-ui #forum-chat-nav-avatar,html body .weibo-ui #forum-chat-nav-sub{display:none!important;}
html body .weibo-ui #forum-chat-overlay .nav-title{justify-content:center!important;}
html body .weibo-ui #forum-chat-nav-name{font-size:17px!important;}
html body .weibo-ui #forum-chat-content{background:#eee!important;padding:14px 14px 90px!important;}
html body .weibo-ui #forum-chat-input-container{background:#fafafa!important;border-top:1px solid #ddd!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:8px!important;}
html body .weibo-ui #forum-chat-input-container>div:has(#forum-chat-input){height:36px!important;background:#eee!important;border:0!important;border-radius:18px!important;}
html body .weibo-ui #forum-chat-input-container>div:last-child{color:#399ff0!important;}
.wb-message-row{gap:0;}.wb-message-bubble{border-radius:9px!important;font-size:16px!important;line-height:1.5!important;position:relative;}.wb-message-row.incoming>.wb-message-bubble:before{content:"";position:absolute;left:-5px;top:10px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:6px solid white;}.wb-message-row.outgoing>.wb-message-bubble:after{content:"";position:absolute;right:-5px;top:10px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #3ca2f3;}.wb-sender-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;margin-left:10px;flex-shrink:0;}.wb-chat-profile-link{border:0;background:none;font-size:14px;color:#444;cursor:pointer;}
html body .weibo-ui .wb-chat-intro{padding:0 0 18px!important;margin:0!important;}
html body .weibo-ui .wb-chat-intro>img,html body .weibo-ui .wb-chat-intro>div:not(:last-child){display:none!important;}
html body .weibo-ui .wb-chat-intro>div:last-child>div{background:#fff!important;border:1px solid #e5e5e5!important;font-size:12px!important;color:#888!important;}
.wb-inbox-heading>div{display:flex;gap:14px;}.wb-inbox-heading button{border:0;background:none;color:#e88923;font-size:13px;cursor:pointer;}
.wb-generate-private{border:0;background:#ff8200;color:#fff;white-space:nowrap;padding:7px 10px;border-radius:5px;font-size:12px;cursor:pointer;}
html body .weibo-ui #forum-char-msgs-list-overlay .nav-right{width:auto!important;padding-right:14px!important;}
html body .weibo-ui #forum-char-profile-overlay>.nav-bar,html body .weibo-ui #forum-char-msgs-selector-overlay>.nav-bar,html body .weibo-ui #forum-char-msgs-list-overlay>.nav-bar{padding-top:0!important;height:56px!important;min-height:56px!important;background:#fff!important;backdrop-filter:none!important;}
.wb-role-actions{display:flex;gap:10px;padding:12px 14px;background:#fff;flex-shrink:0;}.wb-role-actions button{border:1px solid #ff8200;border-radius:18px;background:#fff;color:#ff8200;padding:7px 15px;cursor:pointer;font-size:13px;}
html body .weibo-ui #char-profile-content-area>div:first-child{background:linear-gradient(120deg,#e9ddd0,#eee9dd)!important;}
html body .weibo-ui .forum-post-header .forum-post-author,html body .weibo-ui .forum-post-header .forum-story-ring{cursor:pointer;}
/* 角色主页、生成私信列表和角色对话也沿用微博视觉 */
html body .weibo-ui #forum-char-profile-overlay,html body .weibo-ui #forum-char-msgs-selector-overlay,html body .weibo-ui #forum-char-msgs-list-overlay,html body .weibo-ui #forum-char-msg-detail-overlay{background:#f3f3f5!important;}
html body .weibo-ui #forum-char-profile-overlay .nav-title,html body .weibo-ui #forum-char-msgs-list-overlay .nav-title{font-weight:600!important;}
html body .weibo-ui #char-profile-content-area{background:#fff!important;}
html body .weibo-ui #char-profile-content-area>div[style*="padding: 15px; margin-top"]{background:#fff!important;}
html body .weibo-ui #char-profile-content-area>div[style*="padding-bottom:20px"]{background:#f3f3f5!important;}
html body .weibo-ui #forum-char-msgs-selector-overlay .forum-msg-item,html body .weibo-ui #forum-char-msgs-list-overlay .forum-msg-item{background:#fff!important;border-bottom:1px solid #eee!important;padding:15px 18px!important;}
html body .weibo-ui #forum-char-msg-detail-overlay{background:#eee!important;}
html body .weibo-ui #forum-char-msg-detail-overlay .nav-bar{background:#fff!important;padding-top:0!important;height:56px!important;}
html body .weibo-ui #forum-char-msg-detail-overlay [style*="background: #efefef"]{background:#fff!important;border-radius:9px!important;}
html body .weibo-ui #forum-char-msg-detail-overlay [style*="background: #0095f6"]{background:#3ca2f3!important;border-radius:9px!important;}
html body .weibo-ui #forum-char-msg-detail-overlay [style*="position: absolute; bottom"]{background:#fafafa!important;border-top:1px solid #ddd!important;}
html body .weibo-ui #forum-chat-overlay .nav-left{padding-left:8px!important;}
html body .weibo-ui #forum-chat-overlay .nav-right{padding-right:10px!important;}
/* 角色主页：头像左悬浮，资料与微博内容按参考图布局 */
html body .weibo-ui #char-profile-content-area{background:#fff!important;padding-bottom:0!important;}
.wb-role-cover{height:220px;position:relative;background:linear-gradient(160deg,#b7d8da,#f0d9be 70%,#e9c99d);overflow:hidden;cursor:pointer;}
.wb-role-cover>img{width:100%;height:100%;object-fit:cover;filter:saturate(.9);}.wb-role-cover-tools{position:absolute;right:16px;top:18px;display:flex;gap:12px;color:#fff;background:#ffffff55;border-radius:22px;padding:10px 13px;font-size:17px;}
.wb-role-summary{position:relative;background:#fff;padding:0 20px 0;min-height:250px;}.wb-role-avatar{position:absolute;left:24px;top:-52px;width:112px;height:112px;border:4px solid #fff;border-radius:50%;object-fit:cover;background:#ddd;box-shadow:0 1px 5px #9995;}.wb-role-name{padding:20px 0 0 132px;min-height:78px;}.wb-role-name h1{font-size:25px;line-height:1.2;margin:0 0 10px;font-weight:700;color:#222;}.wb-role-name h1 i{color:#e89a2d;font-size:18px;}.wb-online{display:inline-block;color:#5db07e;background:#e7f7eb;border-radius:14px;padding:4px 12px;font-size:13px;}.wb-online b{font-size:17px;margin-left:4px;}.wb-role-stats{display:flex;gap:0;border-bottom:0;padding:15px 0 11px;}.wb-role-stats>div{flex:1;text-align:left;}.wb-role-stats b{display:block;font-size:20px;color:#222;}.wb-role-stats span{display:block;color:#999;font-size:12px;margin-top:3px;}.wb-role-bio{display:flex;align-items:center;gap:8px;border-bottom:1px solid #eee;padding:10px 0 15px;color:#777;font-size:14px;}.wb-role-bio>i:first-child{color:#999;font-size:16px;}.wb-role-bio>i:last-child{margin-left:auto;color:#aaa;}.wb-role-edit{text-align:center;padding:12px 0 15px;}.wb-role-edit button{border:1px solid #ddd;border-radius:20px;background:#fff;padding:8px 37px;color:#555;font-size:14px;cursor:pointer;}.wb-role-tabs{display:flex;align-items:center;justify-content:space-around;height:56px;border-top:1px solid #eee;background:#fff;color:#999;font-size:14px;}.wb-role-tabs span{height:100%;display:flex;align-items:center;position:relative;}.wb-role-tabs .active{color:#333;font-weight:700;}.wb-role-tabs .active:after{content:"";position:absolute;bottom:2px;left:50%;width:22px;height:3px;transform:translateX(-50%);background:#ff8200;border-radius:3px;}.wb-role-tabs b{font-size:24px;font-weight:300;}.wb-role-filter{display:flex;justify-content:space-between;padding:13px 18px;background:#f2f2f2;color:#555;font-size:13px;}.wb-role-filter span:last-child{color:#6681a8;}.wb-role-posts{background:#fff;}.wb-role-posts .forum-post{margin:0!important;border-bottom:8px solid #f3f3f3!important;}

html body .weibo-ui #forum-char-profile-overlay .wb-role-envelope{color:#ff8200!important;}

/* 角色认证与主页底部私信 */
html body .weibo-ui .wb-verified-v{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#ff8200;color:#fff;font:bold italic 12px/1 Arial;vertical-align:middle;margin-left:3px;flex-shrink:0;}
html body .weibo-ui .wb-role-name h1 .wb-verified-v{width:21px;height:21px;font-size:15px;}
html body .weibo-ui .wb-role-name{min-height:65px;}
html body .weibo-ui .wb-role-summary{min-height:0;padding-bottom:16px;}
html body .weibo-ui .wb-role-bottom-message{background:#fff;border-top:1px solid #eee;padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));flex-shrink:0;}

/* 移动端微博避开系统状态栏；网页版全屏时也保留稳定的顶部安全间距。 */
@media (max-width: 480px) {
  html body .weibo-ui#forum { padding-top: 0 !important; }
  html body .weibo-ui#forum .forum-top-nav {
    height: 84px !important;
    min-height: 84px !important;
    box-sizing: border-box !important;
    padding-top: 28px !important;
    padding-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  html body .weibo-ui#forum .forum-top-nav + .forum-tab-content,
  html body .weibo-ui#forum .forum-top-nav ~ .forum-tab-content { min-height: 0 !important; }
  html body .weibo-ui#forum #forum-main-content,
  html body .weibo-ui#forum #forum-search-content,
  html body .weibo-ui#forum #forum-messages-content,
  html body .weibo-ui#forum #forum-profile-content { padding-top: 0 !important; }
}

/* 单聊：发送后提示 + 空聊天引导（微信原生语气，不加装饰色） */
#wechat-chat-detail .reply-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 7px 10px 7px 12px; border-radius: 6px; background: rgba(0, 0, 0, .045); font-size: 12px; color: #7f7f7f; line-height: 1.4; animation: reply-hint-in .2s ease-out; }
#wechat-chat-detail .reply-hint[hidden] { display: none; }
#wechat-chat-detail .reply-hint span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wechat-chat-detail .reply-hint button { flex-shrink: 0; border: 0; background: none; padding: 2px 0; color: #576b95; font-size: 12px; font-weight: 500; cursor: pointer; }
#wechat-chat-detail .reply-hint button:active { opacity: .6; }
@keyframes reply-hint-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#wechat-chat-detail .chat-empty-guide { margin: auto 24px; padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #9a9a9a; font-size: 13px; line-height: 1.6; }
#wechat-chat-detail .chat-empty-guide strong { color: #555; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
#wechat-chat-detail .chat-input-bar img.custom-icon { -webkit-tap-highlight-color: transparent; transition: opacity .15s, transform .12s; }
#wechat-chat-detail .chat-input-bar img.custom-icon:active { opacity: .55; transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { #wechat-chat-detail .reply-hint { animation: none; } }

/* 通讯录：人物来自剧本，不提供新建角色 */
#wechat .wx-new-friend.contacts-from-script { height: auto; min-height: 60px; padding: 10px 14px; }
#wechat .contacts-from-script .wx-contact-icon { background: #576b95; font-size: 18px; }
#wechat .contacts-from-script-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#wechat .contacts-from-script-copy small { font-size: 12px; color: #9a9a9a; }
#wechat .contacts-from-script::before { content: "\203A"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #c4c4c4; font-size: 20px; }
#wechat .list-item.contacts-from-script { align-items: center; cursor: pointer; }
#wechat .list-item.contacts-from-script > i:first-child { background: #576b95; color: #fff; padding: 8px; border-radius: 4px; margin-right: 12px; }
#wechat .list-item.contacts-from-script .contacts-from-script-sub { font-size: 12px; color: #9a9a9a; margin-top: 2px; }
#wechat .list-item.contacts-from-script > i:last-child { color: #c4c4c4; }

/* 「＋」面板：对齐微信，每页 4×2，可左右翻页 */
#wechat-chat-detail #chat-plus-panel.plus-panel { height: auto !important; padding: 18px 0 10px !important; background: #f7f7f7 !important; border-top: .5px solid #e3e3e3 !important; overflow: hidden !important; flex-shrink: 0; }
#wechat-chat-detail #chat-plus-panel.plus-panel.hidden { display: none !important; }
#wechat-chat-detail .plus-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#wechat-chat-detail .plus-pages::-webkit-scrollbar { display: none; }
#wechat-chat-detail .plus-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 96px; align-content: start; padding: 0 18px; box-sizing: border-box; min-height: 192px; }
#wechat-chat-detail .plus-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#wechat-chat-detail .plus-tile[style*="display: none"] { display: none !important; }
#wechat-chat-detail .plus-tile-icon { width: 60px; height: 60px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 25px; color: #181818; transition: background .12s; }
#wechat-chat-detail .plus-tile:active .plus-tile-icon { background: #e6e6e6; }
#wechat-chat-detail .plus-tile-label { font-size: 12px; color: #7f7f7f; }
#wechat-chat-detail .plus-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
#wechat-chat-detail .plus-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d4d4d4; }
#wechat-chat-detail .plus-dots i.is-on { background: #8a8a8a; }
body.wechat-dark-mode #wechat-chat-detail #chat-plus-panel.plus-panel { background: #1e1e1e !important; border-top-color: #2c2c2c !important; }
body.wechat-dark-mode #wechat-chat-detail .plus-tile-icon { background: #2c2c2c; color: #ddd; }

/* ===== 微博交互优化 ===== */
html body .weibo-ui .wb-exit { border: 0; background: none; padding: 6px 4px; width: auto !important; color: #333 !important; font-size: 20px; cursor: pointer; }
html body .weibo-ui .wb-topic { color: #507daf; margin-left: 4px; cursor: pointer; }
/* 首页：超话胶囊 + 下拉刷新 */
.wb-feedbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #f5f5f5; }
.wb-world-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: #fff; font-size: 13px; color: #333; cursor: pointer; min-width: 0; }
.wb-world-chip span { color: #ff8200; font-weight: 600; flex-shrink: 0; }
.wb-world-chip strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.wb-world-chip i { font-size: 10px; color: #aaa; }
.wb-feedbar-tip { font-size: 12px; color: #aaa; flex-shrink: 0; }
.wb-pull { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #999; background: #f5f5f5; }
.wb-pull i { transition: transform .2s; } .wb-pull.is-ready i { transform: rotate(180deg); color: #ff8200; }
.wb-pull:not([style*="height: 0"]) { transition: none; }
#forum .wb-refreshing { padding: 12px 14px !important; background: #fff8ef; color: #c06a00 !important; font-size: 13px; text-align: left !important; }
#forum .wb-refreshing[style*="block"] { display: flex !important; align-items: center; gap: 8px; }
.wb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 28px; text-align: center; color: #999; font-size: 13px; line-height: 1.7; }
.wb-empty strong { color: #333; font-size: 16px; font-weight: 600; }
.wb-empty button { margin-top: 8px; padding: 8px 22px; border: 1px solid #ff8200; border-radius: 999px; background: #fff; color: #ff8200; font-size: 14px; cursor: pointer; }
.wb-empty button:active { background: #fff3e5; }
/* 点赞：原地更新 + 轻微弹一下 */
html body .weibo-ui .forum-post-actions button { transition: color .15s; -webkit-tap-highlight-color: transparent; }
html body .weibo-ui .forum-post-actions button:active { opacity: .6; }
.wb-like.wb-pop i { animation: wb-pop .35s ease-out; }
@keyframes wb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-12deg); } 100% { transform: scale(1); } }
/* 正文页 */
.wb-detail-refresh { width: auto !important; padding-right: 12px !important; }
.wb-detail-refresh button { border: 0; background: none; color: #507daf; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.wb-detail-h { margin: 0 0 10px; font-size: 15px; color: #333; font-weight: 600; }
.wb-detail-h small { margin-left: 4px; font-size: 13px; color: #999; font-weight: 400; }
/* 发微博按钮：文字不再竖排 */
html body .weibo-ui #forum-post-share-btn { width: auto !important; min-width: 56px; white-space: nowrap; text-align: center; background: #ff8200 !important; border-radius: 6px; padding: 6px 14px !important; margin-right: 12px; }
@media (prefers-reduced-motion: reduce) { .wb-like.wb-pop i { animation: none; } }

/* ===== 微博：四个页签统一顶栏、统一图标尺寸（放在最后，覆盖前面的多层规则） ===== */
#forum { --wb-top: 0px; --wb-bar: 48px; --wb-ink: #333; --wb-icon: 20px; --wb-orange: #ff8200; }
@media (max-width: 480px) { #forum { --wb-top: max(env(safe-area-inset-top, 0px), 44px); } }
html body .weibo-ui#forum .forum-top-nav,
html body .weibo-ui#forum .wb-page-nav {
  height: calc(var(--wb-bar) + var(--wb-top)) !important; min-height: 0 !important;
  padding: var(--wb-top) 6px 0 !important; box-sizing: border-box !important;
  display: grid !important; grid-template-columns: 76px 1fr 76px; align-items: center !important;
  background: #fff !important; border-bottom: .5px solid #e6e6e6 !important; flex-shrink: 0 !important; gap: 0;
}
html body .weibo-ui#forum .forum-top-nav[style*="display: none"] { display: none !important; }
/* 左：返回 */
html body .weibo-ui#forum .forum-top-nav > .wb-exit,
html body .weibo-ui#forum .wb-page-nav > button:first-child { justify-self: start; width: 40px !important; height: 40px; padding: 0 !important; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--wb-ink) !important; font-size: 18px !important; cursor: pointer; }
/* 中：标题 / 标签 */
html body .weibo-ui#forum .wb-page-nav > strong { justify-self: center; font-size: 17px !important; font-weight: 600; color: #222; }
html body .weibo-ui#forum .forum-top-nav .weibo-home-tabs,
html body .weibo-ui#forum .wb-title-tabs { justify-self: center; height: var(--wb-bar) !important; display: flex !important; align-items: stretch !important; gap: 24px !important; }
html body .weibo-ui#forum .forum-top-nav .weibo-top-tab,
html body .weibo-ui#forum .wb-title-tabs button { display: flex; align-items: center; height: 100%; position: relative; padding: 0 2px !important; border: 0 !important; background: none; font-size: 16px !important; line-height: 1 !important; font-weight: 500 !important; color: #999 !important; cursor: pointer; }
html body .weibo-ui#forum .forum-top-nav .weibo-top-tab.active,
html body .weibo-ui#forum .wb-title-tabs button.active { color: #222 !important; font-weight: 600 !important; }
html body .weibo-ui#forum .forum-top-nav .weibo-top-tab.active::after,
html body .weibo-ui#forum .wb-title-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--wb-orange); transform: none; }
html body .weibo-ui#forum .forum-top-nav .weibo-top-tab.active::after { bottom: 6px; }
/* 右：操作图标，统一 20px 墨色，不再用橙色实心块 */
html body .weibo-ui#forum .forum-top-nav .weibo-nav-actions { justify-self: end; display: flex !important; gap: 0 !important; }
html body .weibo-ui#forum .forum-top-nav .weibo-nav-actions button,
html body .weibo-ui#forum .wb-page-nav > button:last-child:not(:first-child) { justify-self: end; width: 38px !important; height: 40px !important; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--wb-ink) !important; font: normal var(--wb-icon)/1 inherit !important; cursor: pointer; }
html body .weibo-ui#forum .forum-top-nav .weibo-nav-actions button i,
html body .weibo-ui#forum .wb-page-nav > button i { font-size: var(--wb-icon) !important; color: inherit !important; }
html body .weibo-ui#forum .forum-top-nav .weibo-nav-actions button:active,
html body .weibo-ui#forum .wb-page-nav > button:active { opacity: .5; }

/* 发现：搜索框就在顶栏里 */
html body .weibo-ui#forum .wb-search-nav { grid-template-columns: 40px 1fr auto; gap: 6px; padding-right: 10px !important; }
html body .weibo-ui#forum .wb-search-pill { display: flex !important; align-items: center; gap: 8px; height: 34px; padding: 0 12px !important; border: 0 !important; border-radius: 17px !important; background: #f2f2f2 !important; min-width: 0; cursor: text; }
html body .weibo-ui#forum .wb-search-pill i { font-size: 14px; color: #999; }
html body .weibo-ui#forum .wb-search-pill input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; outline: none; font-size: 14px; color: #333; padding: 0 !important; border-radius: 0 !important; }
html body .weibo-ui#forum .wb-search-nav > .wb-search-go { width: auto !important; height: 34px !important; padding: 0 4px !important; font-size: 15px !important; color: var(--wb-orange) !important; font-weight: 500; }
html body .weibo-ui#forum #forum-search-content { padding-top: 0 !important; background: #f5f5f5 !important; }

/* 底部 Tab：图标 20px、文字 10px */
html body .weibo-ui#forum .forum-tab-bar { height: 50px !important; padding: 2px 6px calc(2px + env(safe-area-inset-bottom, 0px)) !important; background: #fff !important; border-top: .5px solid #e6e6e6 !important; }
html body .weibo-ui#forum .forum-tab-item { gap: 4px !important; color: #555 !important; }
html body .weibo-ui#forum .forum-tab-item i { font-size: 20px !important; }
html body .weibo-ui#forum .forum-tab-item span { font-size: 10px !important; }
html body .weibo-ui#forum .forum-tab-item.active { color: var(--wb-orange) !important; }

/* 消息：「私信」做成分组小标题 */
html body .weibo-ui#forum .wb-inbox-heading { padding: 10px 16px 6px !important; background: #f5f5f5 !important; font-size: 12px !important; color: #999 !important; }

/* 我：头像在上、名字在下，层级清楚；工具图标改为墨色 */
html body .weibo-ui#forum .wb-account-cover { height: 110px !important; }
html body .weibo-ui#forum .wb-account-info { flex-direction: column; align-items: flex-start !important; gap: 8px !important; margin-top: -34px !important; padding: 0 16px 14px !important; }
html body .weibo-ui#forum .wb-account-avatar { width: 68px !important; height: 68px !important; border-width: 3px !important; }
html body .weibo-ui#forum .wb-account-info > div { padding-top: 0 !important; }
html body .weibo-ui#forum .wb-account-info h2 { font-size: 18px !important; margin: 0 0 4px !important; }
html body .weibo-ui#forum .wb-account-info button { line-height: 1.7; }
html body .weibo-ui#forum .wb-account-stats { padding: 4px 0 14px !important; }
html body .weibo-ui#forum .wb-account-stats b { font-size: 16px !important; font-weight: 600 !important; }
html body .weibo-ui#forum .wb-account-stats span { font-size: 12px !important; }
html body .weibo-ui#forum .wb-account-tools { margin: 8px 0 !important; border-radius: 0 !important; padding: 16px 8px !important; }
html body .weibo-ui#forum .wb-account-tools button { gap: 8px !important; font-size: 12px !important; color: #555 !important; }
html body .weibo-ui#forum .wb-account-tools i { font-size: 20px !important; color: #555 !important; }
html body .weibo-ui#forum .forum-top-nav > * { position: static !important; margin: 0 !important; transform: none !important; left: auto !important; top: auto !important; }
html body .weibo-ui#forum .forum-top-nav > .wb-exit { grid-column: 1; }
html body .weibo-ui#forum .forum-top-nav > .weibo-home-tabs { grid-column: 2; }
html body .weibo-ui#forum .forum-top-nav > .weibo-nav-actions { grid-column: 3; }
html body .weibo-ui#forum #forum-search-content > .wb-page-nav.wb-search-nav:first-child { padding: var(--wb-top) 10px 0 6px !important; background: #fff !important; }
html body .weibo-ui#forum#forum > .forum-top-nav { height: calc(var(--wb-bar) + var(--wb-top)) !important; min-height: 0 !important; max-height: none !important; padding: var(--wb-top) 6px 0 !important; }

/* ===== 微博二级页：顶栏与一级页同高、同图标规格 ===== */
:is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) { --wb-top: 0px; }
@media (max-width: 480px) { :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay, #forum-post-overlay) { --wb-top: 44px; } }
html body :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar,
html body #forum-post-overlay > div > .nav-bar {
  height: calc(48px + var(--wb-top)) !important; min-height: 0 !important; box-sizing: border-box !important;
  padding: var(--wb-top) 6px 0 !important; background: #fff !important; backdrop-filter: none !important;
  border-bottom: .5px solid #e6e6e6 !important; display: flex !important; align-items: center !important; position: sticky; top: 0;
}
html body :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar > .nav-left {
  width: 40px !important; height: 40px; flex: 0 0 40px; margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; font-size: 18px !important; color: #333 !important;
}
html body :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar > .nav-title { font-size: 17px !important; font-weight: 600 !important; color: #222 !important; }
html body :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar > .nav-right {
  width: auto !important; min-width: 40px; padding: 0 6px 0 0 !important; gap: 0 !important; display: flex !important; align-items: center; justify-content: flex-end; font-size: 20px !important; color: #333 !important;
}
html body :is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-char-msgs-list-overlay, #forum-char-profile-overlay) > .nav-bar > .nav-right > i { width: 38px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px !important; color: #333 !important; cursor: pointer; }
html body #forum-char-profile-overlay .wb-role-envelope { color: #333 !important; }
/* 私信页：头部头像缩小、时间统一 */
html body #forum-chat-overlay #forum-chat-nav-avatar { width: 28px !important; height: 28px !important; }
html body #forum-chat-overlay .wb-chat-profile-link { border: 0; background: none; color: #507daf; font-size: 14px; padding: 6px; cursor: pointer; }
.wb-chat-time { align-self: center; margin-bottom: 8px; font-size: 11px; color: #a0a0a0; }
html body #forum-chat-overlay .wb-chat-ask { padding: 0 12px !important; height: 36px !important; font-size: 13px !important; color: #ff8200 !important; background: #fff3e5 !important; }
html body #forum-chat-overlay #forum-chat-input-container { border-top: .5px solid #eee !important; padding-top: 8px !important; }
/* 角色主页：头像尺寸、封面提示 */
html body .weibo-ui .wb-role-avatar { width: 76px !important; height: 76px !important; }
.wb-role-cover-hint { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: #777; background: rgba(255,255,255,.7); border-radius: 12px; padding: 4px 9px; }
/* 发微博：图片紧跟正文，工具栏图标 22px */
html body .weibo-ui #forum-post-content { min-height: 140px !important; height: auto !important; }
html body .weibo-ui .wb-compose-toolbar i { font-size: 21px !important; color: #444 !important; }
html body #forum-post-overlay > div > .nav-bar .nav-left { padding-left: 10px !important; font-size: 16px !important; color: #333 !important; }
/* 角色主页与「我」页同一套版式：头像压封面边、名字在下 */
html body .weibo-ui .wb-role-cover { height: 140px !important; }
html body .weibo-ui .wb-role-summary { min-height: 0 !important; padding: 0 16px 6px !important; }
html body .weibo-ui .wb-role-avatar { position: relative !important; left: auto !important; top: auto !important; display: block; margin-top: -38px; border-width: 3px !important; box-shadow: none !important; }
html body .weibo-ui .wb-role-name { padding: 8px 0 0 !important; min-height: 0 !important; }
html body .weibo-ui .wb-role-name h1 { font-size: 18px !important; margin: 0 0 4px !important; display: flex; align-items: center; gap: 4px; }
html body .weibo-ui .wb-role-name h1 .wb-verified-v { width: 16px !important; height: 16px !important; font-size: 11px !important; }
html body .weibo-ui .wb-role-stats { padding: 10px 0 8px !important; }
html body .weibo-ui .wb-role-stats b { font-size: 16px !important; font-weight: 600; }
html body .weibo-ui .wb-role-bio { font-size: 13px !important; color: #777 !important; }
/* 发微博：正文不再被撑满，图片紧跟其后；顶栏与其他页同高 */
html body #forum #forum-post-overlay div:has(> #forum-post-content),
html body #forum #forum-post-overlay div:has(> div > #forum-post-content) { flex: none !important; min-height: 0 !important; height: auto !important; }
html body #forum #forum-post-overlay > div > .nav-bar { height: calc(48px + var(--wb-top, 0px)) !important; min-height: 0 !important; padding: var(--wb-top, 0px) 10px 0 !important; box-sizing: border-box !important; }
html body #forum #forum-post-overlay .wb-compose-title { line-height: 1.2; }
/* 私信「让TA回」 */
html body #forum-chat-overlay .wb-chat-ask { flex-shrink: 0 !important; white-space: nowrap; width: auto !important; min-width: 64px; border: 0 !important; border-radius: 18px !important; }
/* 角色主页简介左对齐 */
html body .weibo-ui .wb-role-bio { justify-content: flex-start !important; text-align: left !important; }
html body #forum #forum-post-overlay > div > div:has(.wb-compose-toolbar) { display: flex !important; flex-direction: column !important; }
html body #forum #forum-post-overlay .wb-compose-toolbar { margin-top: auto !important; position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
html body .weibo-ui .wb-role-bio > i { margin-left: 0 !important; }
html body .page:is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) { padding-top: 0 !important; }
html body .page:is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar:first-child { padding-top: var(--wb-top) !important; height: calc(48px + var(--wb-top)) !important; min-height: 0 !important; }
html body #forum .page:is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) { padding-top: 0 !important; }
html body #forum .page:is(#forum-chat-overlay, #forum-post-detail-overlay, #forum-my-msg-detail-overlay, #forum-char-msgs-selector-overlay, #forum-char-msgs-list-overlay, #forum-char-msg-detail-overlay, #forum-char-profile-overlay) > .nav-bar:first-child { padding-top: var(--wb-top) !important; height: calc(48px + var(--wb-top)) !important; min-height: 0 !important; }

/* ===== 微信「＋」功能弹层：统一为底部弹出、白底、绿色主按钮 ===== */
html body .wx-sheet-overlay { align-items: flex-end !important; justify-content: center !important; background: rgba(0, 0, 0, .4) !important; }
html body .wx-sheet-overlay > div,
html body .selector-sheet.wx-sheet { width: 100% !important; max-width: none !important; box-sizing: border-box; background: #fff !important; border-radius: 14px 14px 0 0 !important; box-shadow: none !important; padding: 26px 20px calc(16px + env(safe-area-inset-bottom, 0px)) !important; position: relative; animation: wx-sheet-up .22s ease-out; }
html body .wx-sheet-overlay > div::before,
html body .selector-sheet.wx-sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #e0e0e0; }
@keyframes wx-sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
html body .wx-sheet-overlay h3, html body .selector-sheet.wx-sheet h3 { font-size: 17px !important; font-weight: 600 !important; color: #111 !important; margin: 0 0 6px !important; text-align: center; }
.wx-sheet-tip { margin: 0 0 14px; text-align: center; font-size: 13px; color: #999; }
html body .selector-sheet.wx-sheet textarea, html body .selector-sheet.wx-sheet input[type="text"] { width: 100%; box-sizing: border-box; border: 0 !important; border-radius: 8px !important; background: #f5f5f5 !important; padding: 12px 14px !important; font-size: 16px !important; color: #111; margin: 0 0 16px !important; outline: none; box-shadow: none !important; }
/* 按钮：取消灰、主按钮微信绿 */
html body .selector-sheet.wx-sheet .sheet-cancel,
html body .wx-sheet-overlay > div > .flex-between > button:first-child { background: #f2f2f2 !important; color: #111 !important; border: 0 !important; border-radius: 8px !important; height: 46px; padding: 0 !important; font-size: 16px !important; font-weight: 500 !important; }
html body .selector-sheet.wx-sheet .btn-primary,
html body .wx-sheet-overlay > div > .flex-between > button:last-child { background: #07c160 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; height: 46px; padding: 0 !important; font-size: 16px !important; font-weight: 600 !important; box-shadow: none !important; }
html body .selector-sheet.wx-sheet .btn-primary:active, html body .wx-sheet-overlay > div > .flex-between > button:last-child:active { background: #06ad56 !important; }
/* 转账：大号金额 + 下划线 */
html body #transfer-overlay .form-group, html body #group-transfer-overlay .form-group { margin-bottom: 18px !important; }
.wx-transfer-label, html body .wx-sheet-overlay .form-group label { display: block; font-size: 13px !important; color: #888 !important; margin-bottom: 6px !important; }
html body .wx-sheet-overlay .form-group > .flex { background: transparent !important; border-radius: 0 !important; padding: 0 !important; border-bottom: .5px solid #e5e5e5; }
html body #transfer-overlay .form-group > .flex > span { font-size: 30px !important; font-weight: 600 !important; color: #111 !important; }
html body #transfer-overlay #transfer-amount-input { font-size: 36px !important; font-weight: 600 !important; padding: 8px 0 !important; color: #111 !important; }
html body .wx-sheet-overlay .form-group > input, html body .wx-sheet-overlay .form-group input[type="text"] { background: transparent !important; border-radius: 0 !important; border-bottom: .5px solid #e5e5e5 !important; padding: 10px 0 !important; font-size: 15px !important; }
/* 记忆页：四个同级操作统一为白底深字 */
html body #memory-page .btn-primary { background: #fff !important; color: #333 !important; border: .5px solid #e5e5e5 !important; box-shadow: none !important; border-radius: 8px !important; font-weight: 500 !important; }
html body #memory-page .btn-primary i { color: #07c160 !important; }
html body #memory-page .btn-primary:active { background: #f2f2f2 !important; }
@media (prefers-reduced-motion: reduce) { html body .wx-sheet-overlay > div, html body .selector-sheet.wx-sheet { animation: none; } }
html body .selector-sheet.wx-sheet { position: absolute !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; }
/* 微博收藏：星星，收藏后实心橙色 */
html body .weibo-ui .weibo-save i { font-size: 17px; }
html body .weibo-ui .weibo-save.is-on, html body .weibo-ui .weibo-save.is-on i { color: #ff8200 !important; }
.weibo-save.wb-pop i { animation: wb-pop .35s ease-out; }
#wechat-chat-detail .plus-page[hidden] { display: none !important; }
#wechat-chat-detail .plus-dots { gap: 4px !important; margin-top: 2px !important; }
#wechat-chat-detail .plus-dots i { width: 6px; height: 6px; padding: 7px; background-clip: content-box !important; box-sizing: content-box; cursor: pointer; }
#wechat-chat-detail .plus-pages { cursor: grab; user-select: none; -webkit-user-select: none; }

/* 状态栏：剧情时间与地点 */
.status-bar .time.is-story { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.status-bar .status-round { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; opacity: .8; margin-right: 7px; padding: 1px 5px; border-radius: 4px; background: rgba(75, 57, 67, .08); flex: 0 0 auto; }
.status-bar .status-round[hidden] { display: none; }
.status-bar .status-place { display: inline-flex; align-items: center; gap: 3px; max-width: 110px; font-size: 11px; font-weight: 500; opacity: .85; }
.status-bar .status-place[hidden] { display: none; }
.status-bar .status-place > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-bar .status-place i { font-size: 10px; }
/* 模拟状态栏平时隐藏（真手机有系统状态栏）；有剧情时钟时才显示，内容是剧情时间与地点 */
html body.has-story-clock #status-bar { display: flex !important; z-index: 2600; pointer-events: none; height: 26px; padding: 0 18px; align-items: center; font-size: 12px; }
html body.has-story-clock #status-bar .icons > i { display: none; }

/* ===== 好友关系：新的朋友 / 单删 / 朋友验证 ===== */
#wechat .wx-new-friend.contacts-from-script .wx-contact-icon { background: #fa9d3b !important; }
#wechat .list-item.contacts-from-script > i:first-child { background: #fa9d3b !important; }
.wx-red-badge { margin-left: auto; margin-right: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fa5151; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; box-sizing: border-box; }
#new-friends-page .nf-list { flex: 1; overflow-y: auto; padding-bottom: 12px; }
#new-friends-page .nf-group-title { padding: 14px 16px 6px; font-size: 13px; color: #888; }
#new-friends-page .nf-group { background: #fff; }
#new-friends-page .nf-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
#new-friends-page .nf-row + .nf-row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: .5px; background: #ececec; }
#new-friends-page .nf-row img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: #eee; flex-shrink: 0; }
#new-friends-page .nf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#new-friends-page .nf-main strong { font-size: 16px; font-weight: 500; color: #111; }
#new-friends-page .nf-main span { font-size: 13px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#new-friends-page .nf-btn { flex-shrink: 0; height: 30px; padding: 0 14px; border: 0; border-radius: 4px; background: #f2f2f2; color: #111; font-size: 14px; cursor: pointer; }
#new-friends-page .nf-btn.nf-primary { background: #07c160; color: #fff; }
#new-friends-page .nf-btn:active { opacity: .7; }
#new-friends-page .nf-state { font-size: 13px; color: #aaa; flex-shrink: 0; }
#new-friends-page .nf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 24px; color: #999; font-size: 13px; text-align: center; }
#new-friends-page .nf-empty i { font-size: 34px; color: #d0d0d0; margin-bottom: 6px; }
#new-friends-page .nf-empty strong { font-size: 15px; color: #555; font-weight: 500; }
#new-friends-page .nf-foot { padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12px; color: #aaa; }
#new-friends-page .nf-foot a { color: #576b95; cursor: pointer; }
/* 聊天里：好友状态条、被拒收的消息、系统提示里的链接 */
#wechat-chat-detail .friend-state-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 9px 12px; border-radius: 6px; background: #fff; font-size: 13px; color: #666; }
#wechat-chat-detail .friend-state-bar[hidden] { display: none; }
#wechat-chat-detail .friend-state-bar button { flex-shrink: 0; border: 0; border-radius: 4px; background: #07c160; color: #fff; font-size: 13px; padding: 6px 12px; cursor: pointer; }
#wechat-chat-detail .chat-input-bar.friend-locked > .flex { opacity: .4; pointer-events: none; }
#wechat-chat-detail .message-item.my-message.is-rejected::after { content: "!"; align-self: center; flex-shrink: 0; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #fa5151; color: #fff; font: 700 12px/18px -apple-system, sans-serif; text-align: center; }
#wechat-chat-detail .system-msg .sys-link { color: #576b95; cursor: pointer; margin-left: 2px; }

/* ===== 统一弹窗 sd-dialog：白底圆角、中文按钮、按 App 区分强调色 ===== */
html body .sd-dialog { --sd-accent: #07c160; --sd-danger: #fa5151; background: rgba(0, 0, 0, .42) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; z-index: 9999; }
html body:has(#forum.active) #custom-dialog-overlay, html body:has(#forum.active) #custom-input-overlay, html body #forum-custom-dialog-overlay { --sd-accent: #ff8200; }
html body:has(.sx-panel[style*="display: block"]) #custom-dialog-overlay, html body:has(.sx-panel[style*="display: block"]) #custom-input-overlay, html body:has(#story-create-overlay[style*="display: block"]) #custom-dialog-overlay { --sd-accent: #3e3237; }
html body #market-custom-dialog-overlay { --sd-accent: #ff5000; }
html body .sd-dialog > div { width: min(300px, calc(100% - 64px)) !important; max-height: 72% !important; display: flex !important; flex-direction: column; background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 16px 40px rgba(0, 0, 0, .18) !important; overflow: hidden !important; text-align: center; }
html body .sd-dialog.is-in > div { animation: sd-pop .2s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes sd-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
/* 文字区 */
html body .sd-dialog :is(#custom-dialog-msg, #forum-custom-dialog-msg, #market-custom-dialog-msg) { padding: 26px 22px 22px !important; font-size: 15px !important; font-weight: 400 !important; color: #333 !important; line-height: 1.65 !important; letter-spacing: 0 !important; border-bottom: 0 !important; overflow-y: auto; word-break: break-word !important; }
html body .sd-dialog .sd-title { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 600; color: #111; }
html body .sd-dialog .sd-title + .sd-text { color: #666; font-size: 14px; }
html body .sd-dialog #custom-input-title { font-size: 17px !important; font-weight: 600 !important; color: #111 !important; letter-spacing: 0 !important; margin-bottom: 14px !important; }
html body .sd-dialog > div > div:first-child[style*="padding: 32px"] { padding: 24px 20px 18px !important; }
html body .sd-dialog :is(#custom-input-field, #forum-custom-dialog-input, #market-custom-dialog-input) { padding: 11px 12px !important; border: 0 !important; border-radius: 8px !important; background: #f4f4f4 !important; box-shadow: none !important; font-size: 15px !important; color: #111 !important; text-align: left !important; }
html body .sd-dialog :is(#custom-input-field, #forum-custom-dialog-input, #market-custom-dialog-input):focus { outline: 2px solid color-mix(in srgb, var(--sd-accent) 45%, transparent); }
html body .sd-dialog :is(#forum-custom-dialog-input-container, #market-custom-dialog-input-container) { padding: 0 20px 18px !important; }
/* 按钮区：两个并排，细分隔线；主按钮加粗带色 */
html body .sd-dialog > div > .flex:last-child { height: 52px !important; border-top: .5px solid #e5e5e5 !important; flex-shrink: 0; }
html body .sd-dialog > div > .flex:last-child > div { flex-direction: row !important; border-right-color: #e5e5e5 !important; border-right-width: .5px !important; background: transparent !important; }
html body .sd-dialog > div > .flex:last-child > div:last-child { border-right: 0 !important; }
html body .sd-dialog .sd-btn-label { font-size: 17px; font-weight: 400; color: #333; font-family: -apple-system, "PingFang SC", sans-serif; }
html body .sd-dialog > div > .flex:last-child > div:last-child .sd-btn-label { font-weight: 600; color: var(--sd-accent); }
html body .sd-dialog > div > .flex:last-child > div.is-danger .sd-btn-label { color: var(--sd-danger) !important; }
html body .sd-dialog > div > .flex:last-child > div:active { background: #f2f2f2 !important; }
/* 剧情：关系变化清单 */
.sd-rel-sum { margin: 0 0 10px; font-size: 14px; color: #555; }
.sd-rel-list { list-style: none; margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #f6f4f5; text-align: left; font-size: 14px; color: #333; }
.sd-rel-list li + li { margin-top: 6px; }
.sd-rel-list b { margin-right: 6px; font-weight: 600; }
.sd-rel-note { margin: 0; font-size: 12px; color: #999; }
/* 轻提示 */
.sd-toast { position: absolute; left: 50%; top: 46%; z-index: 10000; transform: translate(-50%, -50%); max-width: 70%; padding: 11px 18px; border-radius: 10px; background: rgba(30, 30, 30, .86); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; animation: sd-toast-in .18s ease-out; transition: opacity .25s; }
.sd-toast.is-out { opacity: 0; }
@keyframes sd-toast-in { from { opacity: 0; transform: translate(-50%, -44%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { html body .sd-dialog.is-in > div, .sd-toast { animation: none; } }
html body .sd-dialog > div:has(:is(#forum-custom-dialog-input-container, #market-custom-dialog-input-container)[style*="block"]) :is(#forum-custom-dialog-msg, #market-custom-dialog-msg) { font-size: 17px !important; font-weight: 600 !important; color: #111 !important; padding-bottom: 14px !important; }

/* ===== 顶部通知横幅 nb：轻盈版，微信/微博/剧情共用 ===== */
.nb { position: absolute; z-index: 9000; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); padding: 9px 13px 11px; border-radius: 15px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(26px) saturate(1.7); -webkit-backdrop-filter: blur(26px) saturate(1.7); box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .04); color: #111; cursor: pointer; user-select: none; -webkit-user-select: none; transform: translateY(calc(-100% - 22px)); opacity: 0; transition: transform .36s cubic-bezier(.22, 1, .3, 1), opacity .2s; touch-action: pan-x; }
.nb.is-on { transform: translateY(0); opacity: 1; }
.nb.is-drag { transition: none; }
.nb.nb-bump { animation: nb-bump .28s ease-out; }
@keyframes nb-bump { 45% { transform: scale(1.008); } }
html body.has-story-clock .nb { top: calc(30px + env(safe-area-inset-top, 0px)); }
.nb-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; letter-spacing: .03em; color: #a2a2a8; }
.nb-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: #c9c9cf; }
.nb-app-name { font-weight: 500; }
.nb-time { margin-left: auto; color: #b9b9be; }
.nb-body { display: flex; align-items: flex-start; gap: 9px; }
.nb-avatar { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: #ececef; flex-shrink: 0; }
.nb-avatar[hidden] { display: none; }
.nb-text { min-width: 0; flex: 1; }
.nb-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: #1b1b1e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-msg { margin: 1px 0 0; font-size: 12.5px; line-height: 1.45; color: #70707a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.nb[data-app="story"] .nb-msg { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; }
.nb:active:not(.is-drag) { transform: scale(.99); }
#notification-banner { display: none !important; }
@media (prefers-reduced-motion: reduce) { .nb { transition: opacity .2s; transform: none; } .nb:not(.is-on) { visibility: hidden; } .nb.nb-bump { animation: none; } }

/* ================= 市集 → 淘宝 / 闲鱼 ================= */
#market { --tb: #ff5000; --tb-soft: #fff1ea; --xy: #ffe60f; --tb-bg: #f4f4f4; background: var(--tb-bg) !important; display: none; }
#market.active { display: flex !important; flex-direction: column; }
#market .tb-head { flex-shrink: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: calc(48px + var(--wb-top, 0px)); padding: var(--wb-top, 0px) 4px 0; box-sizing: border-box; background: var(--tb); color: #fff; transition: background .2s, color .2s; }
@media (max-width: 480px) { #market .tb-head { --wb-top: 44px; } }
#market .tb-head[data-tab-head="secondhand"] { background: var(--xy); color: #222; }
#market .tb-head[data-tab-head="cart"], #market .tb-head[data-tab-head="mine"] { background: #fff; color: #222; border-bottom: .5px solid #eee; }
#market .tb-title { text-align: center; font-size: 17px; font-weight: 600; }
#market .tb-icon-btn { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 17px; cursor: pointer; }
#market .tb-action-tip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--tb-soft); color: #b33a00; font-size: 13px; flex-shrink: 0; }
#market .tb-action-tip[hidden] { display: none; }
#market .tb-action-tip button { margin-left: auto; border: 0; background: none; color: #b33a00; font-size: 13px; text-decoration: underline; cursor: pointer; }
#market .market-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 !important; background: var(--tb-bg); }
#market .market-view { padding: 0 !important; }
/* 首页：搜索 + 商品双列 */
#market .tb-search-wrap { background: linear-gradient(var(--tb) 0 52px, var(--tb-bg) 52px); padding: 4px 10px 0; }
#market .tb-search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 3px 0 12px; border: 2px solid var(--tb); border-radius: 19px; background: #fff; }
#market .tb-search i { color: #999; font-size: 14px; }
#market .tb-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; outline: none; font-size: 14px; padding: 0 !important; }
#market .tb-search button { height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--tb); color: #fff; font-size: 14px; cursor: pointer; }
#market .tb-subtabs { display: flex; gap: 22px; padding: 12px 6px 4px; }
#market .tb-subtabs button { position: relative; border: 0; background: none !important; padding: 2px 0 6px; font-size: 15px; color: #666 !important; cursor: pointer; }
#market .tb-subtabs button.active { color: #111 !important; font-weight: 600; }
#market .tb-subtabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--tb); }
#market .shop-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 8px 10px 16px !important; }
#market .goods-item { position: relative; background: #fff !important; border: 0 !important; border-radius: 10px !important; overflow: hidden; box-shadow: none !important; padding: 0 !important; }
#market .goods-img-placeholder { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 0 !important; background-color: #f0f0f0 !important; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #cfcfcf; margin: 0 !important; }
#market .goods-info { padding: 8px 10px 10px !important; }
#market .goods-name { font-size: 13px !important; line-height: 1.4 !important; color: #222 !important; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal !important; font-weight: 400 !important; }
#market .tb-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; padding-right: 30px; }
#market .goods-price, .tb-price { color: var(--tb, #ff5000) !important; font-size: 17px !important; font-weight: 600 !important; }
#market .goods-price small, .tb-price small { font-size: 11px; margin-right: 1px; }
#market .tb-sold { font-size: 11px; color: #999; white-space: nowrap; }
#market .tb-add { position: absolute; right: 8px; bottom: 9px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--tb-soft); color: var(--tb); font-size: 12px; cursor: pointer; }
#market .tb-add:active { transform: scale(.9); }
/* 闲鱼 */
#market .xy-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 10px; background: var(--xy); }
#market .xy-subtabs { display: flex; gap: 18px; }
#market .xy-subtabs button { border: 0; background: none; font-size: 15px; color: #555; padding: 4px 0; cursor: pointer; position: relative; }
#market .xy-subtabs button.is-on { color: #111; font-weight: 700; font-size: 17px; }
#market .xy-sell { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #222; color: var(--xy); font-size: 13px; font-weight: 600; cursor: pointer; }
#market .xy-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; font-size: 13px; color: #888; }
#market .xy-bar button { border: 0; background: none; color: #555; font-size: 13px; cursor: pointer; }
#market .secondhand-list { padding: 0 10px 16px; display: flex; flex-direction: column; gap: 8px; }
#market .secondhand-item { background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; padding: 12px !important; margin: 0 !important; }
#market .sh-img-placeholder { border-radius: 8px !important; background: #f4f4f4 !important; }
#market .sh-price { color: #ff4400 !important; font-weight: 700 !important; }
#market .secondhand-item [onclick*="buySecondhandItem"] { background: var(--xy) !important; color: #222 !important; font-weight: 600 !important; }
#market .xy-pane[hidden] { display: none; }
/* 购物车、我的淘宝通用卡片 */
#market .tb-card { margin: 10px; padding: 4px 12px; border-radius: 12px; background: #fff; }
#market .tb-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: #f2f2f2 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #cfcfcf; font-size: 22px; }
#market .tb-thumb[style*="url('http"] i, #market .tb-thumb[style*="url('data"] i { display: none; }
#market .tb-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
#market .tb-line-name { font-size: 14px; color: #222; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#market .tb-line-sub { font-size: 12px; color: #999; }
#market .tb-cart-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
#market .tb-cart-row + .tb-cart-row { border-top: .5px solid #f0f0f0; }
#market .tb-line-foot { display: flex; align-items: center; justify-content: space-between; }
#market .tb-check { width: 20px; height: 20px; flex-shrink: 0; padding: 0; border: 1.5px solid #ccc; border-radius: 50%; background: #fff; color: transparent; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#market .tb-check.is-on { border-color: var(--tb); background: var(--tb); color: #fff; }
#market .tb-stepper { display: inline-flex; align-items: center; border: .5px solid #ddd; border-radius: 4px; overflow: hidden; }
#market .tb-stepper button { width: 26px; height: 24px; border: 0; background: #f7f7f7; font-size: 14px; cursor: pointer; color: #333; }
#market .tb-stepper button:disabled { color: #ccc; cursor: default; }
#market .tb-stepper b { min-width: 30px; text-align: center; font-size: 13px; font-weight: 400; }
#market .tb-del { border: 0; background: none; color: #bbb; font-size: 14px; cursor: pointer; padding: 6px; }
#market .tb-checkout-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: .5px solid #eee; }
#market .tb-all { font-size: 13px; color: #555; }
#market .tb-sum { margin-left: auto; font-size: 13px; color: #333; }
#market .tb-sum b { color: var(--tb); font-size: 18px; }
#market .tb-sum small { font-size: 12px; }
#market .tb-go { height: 38px; padding: 0 20px; border: 0; border-radius: 19px; background: var(--tb); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
#market .tb-go:disabled { background: #ffc2a6; cursor: default; }
#market .tb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 30px; text-align: center; color: #999; font-size: 13px; }
#market .tb-empty i { font-size: 40px; color: #ddd; margin-bottom: 6px; }
#market .tb-empty strong { font-size: 15px; color: #555; font-weight: 500; }
#market .tb-empty button { margin-top: 8px; height: 34px; padding: 0 22px; border: 1px solid var(--tb); border-radius: 17px; background: #fff; color: var(--tb); font-size: 14px; cursor: pointer; }
#market .tb-empty-sm { padding: 30px 20px; }
#market .tb-me { display: flex; align-items: center; gap: 12px; padding: 18px 16px 6px; }
#market .tb-me img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #eee; }
#market .tb-me strong { display: block; font-size: 17px; color: #111; margin-bottom: 4px; }
#market .tb-me button { border: 0; background: none; padding: 0; font-size: 13px; color: #888; cursor: pointer; }
#market .tb-card-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 4px; }
#market .tb-card-head strong { font-size: 15px; }
#market .tb-card-head button { border: 0; background: none; font-size: 12px; color: #999; cursor: pointer; }
#market .tb-card-head button.is-on { color: var(--tb); }
#market .tb-tiles { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 10px; }
#market .tb-tiles button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 0; font-size: 12px; color: #444; cursor: pointer; border-radius: 8px; }
#market .tb-tiles button i { font-size: 21px; color: #333; }
#market .tb-tiles button.is-on { background: var(--tb-soft); color: var(--tb); }
#market .tb-tiles button.is-on i { color: var(--tb); }
#market .tb-tiles button b { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--tb); color: #fff; font-size: 10px; line-height: 16px; box-sizing: border-box; }
#market .tb-order { padding: 12px; }
#market .tb-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#market .tb-order-head strong { font-size: 14px; }
#market .tb-st { font-size: 13px; color: var(--tb); }
#market .tb-st-done { color: #999; }
#market .tb-order-line { display: flex; gap: 10px; padding: 4px 0; }
#market .tb-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: #555; }
#market .tb-order-foot b { color: #111; }
#market .tb-order-btns { display: flex; gap: 8px; }
#market .tb-order-btns button { height: 30px; padding: 0 14px; border: .5px solid #ccc; border-radius: 15px; background: #fff; color: #333; font-size: 13px; cursor: pointer; }
#market .tb-order-btns button.is-primary { border-color: var(--tb); color: var(--tb); }
#market .tb-links { padding: 0 12px; }
#market .tb-links button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 48px; border: 0; background: none; font-size: 14px; color: #333; cursor: pointer; }
#market .tb-links button + button { border-top: .5px solid #f0f0f0; }
#market .tb-links i { color: #ccc; font-size: 12px; }
/* 底栏 */
#market .tb-tabbar { flex-shrink: 0; display: flex !important; height: 52px; padding: 0 0 env(safe-area-inset-bottom, 0px) !important; background: #fff !important; border-top: .5px solid #e8e8e8 !important; box-shadow: none !important; }
#market .tb-tabbar .market-tab-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #666 !important; cursor: pointer; background: none !important; }
#market .tb-tabbar .market-tab-item i { font-size: 19px; }
#market .tb-tabbar .market-tab-item span { font-size: 10px !important; }
#market .tb-tabbar .market-tab-item.active { color: var(--tb) !important; }
#market .tb-tabbar .market-tab-item[data-tab="secondhand"].active { color: #222 !important; }
#market .tb-tabbar .market-tab-item[data-tab="secondhand"].active i { color: #e6c800; }
#market .tb-dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--tb); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-sizing: border-box; }
#market .tb-dot[hidden] { display: none; }
/* 商品面板、发闲置选择 */
.tb-sheet-mask { position: absolute; inset: 0; z-index: 3000; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .42); }
.tb-sheet-mask[hidden] { display: none; }
.tb-sheet { width: 100%; padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; background: #fff; box-sizing: border-box; animation: wx-sheet-up .22s ease-out; }
.tb-sheet .tb-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: #f2f2f2 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #cfcfcf; font-size: 22px; }
.tb-sheet .tb-thumb-lg { width: 92px; height: 92px; margin-top: -34px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.tb-sheet .tb-thumb[style*="url('http"] i, .tb-sheet .tb-thumb[style*="url('data"] i { display: none; }
.tb-sheet-item { display: flex; align-items: flex-end; gap: 12px; position: relative; padding-right: 30px; }
.tb-price-lg { font-size: 22px !important; color: #ff5000; font-weight: 700; }
.tb-sheet .tb-line-name { font-size: 14px; color: #333; margin-top: 2px; }
.tb-x { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2f2f2; color: #888; cursor: pointer; }
.tb-sheet-links { display: flex; gap: 10px; margin: 18px 0 14px; }
.tb-sheet-links button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border: 0; border-radius: 8px; background: #f6f6f6; color: #333; font-size: 14px; cursor: pointer; }
.tb-sheet-btns { display: flex; overflow: hidden; border-radius: 22px; }
.tb-sheet-btns button { flex: 1; height: 44px; border: 0; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.tb-btn-cart { background: #ffb000; }
.tb-btn-buy { background: #ff5000; }
.tb-sheet-title { display: flex; justify-content: space-between; align-items: center; position: relative; margin-bottom: 10px; }
.tb-sheet-title strong { font-size: 16px; }
.tb-sheet-title .tb-x { position: static; }
.xy-pick-list { max-height: 50vh; overflow-y: auto; }
.xy-pick-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: .5px solid #f0f0f0; background: none; text-align: left; cursor: pointer; }
.xy-pick-list .tb-thumb { width: 46px; height: 46px; font-size: 18px; }
.xy-pick-name { flex: 1; font-size: 15px; color: #222; display: flex; flex-direction: column; gap: 2px; }
.xy-pick-name small { font-size: 12px; color: #999; }
.xy-pick-list > button > i { color: #ccc; font-size: 12px; }
.xy-add-new { width: 100%; height: 44px; margin-top: 12px; border: 0; border-radius: 22px; background: #ffe60f; color: #222; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tb-sheet .tb-empty { display: flex; flex-direction: column; align-items: center; padding: 26px 10px; color: #999; font-size: 13px; text-align: center; }
#market .xy-title { font-size: 17px; font-weight: 700; color: #111; }

/* 微博浮层（角色主页、私信列表、私信详情）的顶栏同样避开刘海和灵动岛 */
@media (max-width: 480px) {
  html body .weibo-ui #forum-char-profile-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msgs-selector-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msgs-list-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msg-detail-overlay .nav-bar {
    box-sizing: border-box !important;
    padding-top: max(env(safe-area-inset-top, 0px), 44px) !important;
    height: calc(56px + max(env(safe-area-inset-top, 0px), 44px)) !important;
    min-height: calc(56px + max(env(safe-area-inset-top, 0px), 44px)) !important;
  }
}

/* 聊天信息：剧情推动，不需要的设置收起来（元素保留给脚本用，只是不显示） */
#chat-settings-page .cs-retired { display: none !important; }
#chat-settings-page .cs-chev { color: #c8c8c8; flex-shrink: 0; }
/* 表情包整个不要了：输入框的表情按钮、表情面板、打字时的表情推荐 */
#wechat-chat-detail .chat-input-bar img[alt="表情"], #wechat-chat-detail .smile-icon, #chat-emoticon-panel, #emoji-recommendation-panel { display: none !important; }
#chat-quick-settings-overlay .cs-retired { display: none !important; }
/* 按住说话时，听到的话实时显示 */
.voice-live { position: absolute; left: 24px; right: 24px; top: 22%; text-align: center; color: #fff; font-size: 16px; line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,.3); pointer-events: none; }

/* 通话：深墨色底 + 对方头像模糊做背景，按钮更干净 */
#call-overlay { background: radial-gradient(120% 80% at 50% 0%, #3e3237 0%, #1c1719 70%) !important; }
#call-overlay #call-avatar { border-radius: 50% !important; box-shadow: 0 8px 30px rgba(0,0,0,.35) !important; }
#call-overlay #call-name { font-size: 24px !important; letter-spacing: .02em; }
#call-overlay #call-status, #call-overlay #call-time { font-size: 14px !important; color: rgba(255,255,255,.66) !important; }
#call-overlay svg { color: #fff; display: block; }
#call-overlay #call-minimize-btn { background: rgba(255,255,255,.12) !important; }
#call-overlay #call-send-btn { background: rgba(255,255,255,.9) !important; color: #3e3237 !important; display: flex; align-items: center; justify-content: center; }
#call-overlay #call-send-btn svg { color: #3e3237; }

/* 好友申请详情：照微信「新的朋友」点进去的样子 */
.nf-mask { position: absolute; inset: 0; z-index: 3000; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; }
.nf-card { width: 100%; background: #f7f7f7; border-radius: 14px 14px 0 0; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
.nf-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nf-card-head img { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; background: #eee; }
.nf-card-head strong { display: block; font-size: 17px; color: #111; font-weight: 500; }
.nf-card-head span { display: block; margin-top: 4px; font-size: 12.5px; color: #8a8a8a; }
.nf-thread { background: #fff; border-radius: 8px; padding: 10px 12px; max-height: 180px; overflow-y: auto; }
.nf-say { font-size: 14px; line-height: 1.6; color: #333; padding: 3px 0; }
.nf-say b { font-weight: 400; color: #576b95; }
.nf-say.is-me b { color: #07c160; }
.nf-say em { font-style: normal; margin-left: 6px; font-size: 11px; color: #b2b2b2; }
.nf-input { display: flex; gap: 8px; margin-top: 10px; }
.nf-input input { flex: 1; min-width: 0; border: 0; background: #fff; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none; }
.nf-input button { border: 0; background: #07c160; color: #fff; border-radius: 6px; padding: 0 16px; font: inherit; font-size: 14px; cursor: pointer; }
.nf-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.nf-actions .nf-btn { width: 100%; padding: 12px 0; font-size: 15px; border-radius: 8px; }
.nf-btn.nf-danger { color: #fa5151 !important; background: #fff !important; }
.nf-close { display: block; width: 100%; margin-top: 8px; border: 0; background: none; padding: 10px 0; font: inherit; font-size: 15px; color: #666; cursor: pointer; }
#new-friends-page .nf-row[onclick^="openFriendSheet"] { cursor: pointer; }

/* 钱包 → 微信「零钱」 */
#wallet-page .wl-scroll { flex: 1; overflow-y: auto; padding-bottom: 40px; }
#wallet-page .wl-top { background: #fff; display: flex; flex-direction: column; align-items: center; padding: 34px 20px 28px; }
#wallet-page .wl-label { margin-top: 14px; font-size: 15px; color: #111; }
#wallet-page .wl-balance { margin: 10px 0 28px; font-size: 36px; font-weight: 600; color: #111; font-family: -apple-system, "Helvetica Neue", sans-serif; letter-spacing: .5px; }
#wallet-page .wl-btn { width: 184px; height: 42px; margin-top: 10px; border: 0; border-radius: 6px; background: #f2f2f2; color: #07c160; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
#wallet-page .wl-btn.wl-green { background: #07c160; color: #fff; margin-top: 0; }
#wallet-page .wl-group { margin-top: 8px; background: #fff; }
#wallet-page .wl-row { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 16px; color: #111; cursor: pointer; }
#wallet-page .wl-row + .wl-row { border-top: .5px solid #ececec; }
#wallet-page .wl-h { padding: 18px 16px 8px; font-size: 13px; color: #888; }
#wallet-page .wl-list { background: #fff; }
#wallet-page .wl-tx { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
#wallet-page .wl-tx + .wl-tx { border-top: .5px solid #ececec; }
#wallet-page .wl-tx-main span { display: block; font-size: 15px; color: #111; }
#wallet-page .wl-tx-main em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: #999; }
#wallet-page .wl-tx b { font-size: 16px; font-weight: 500; color: #111; white-space: nowrap; }
#wallet-page .wl-tx b.is-in { color: #fa9d3b; }
#wallet-page .wl-empty { padding: 30px; text-align: center; font-size: 13px; color: #aaa; }
/* 申请详情改成屏幕中间的卡片 */
.nf-mask { align-items: center !important; justify-content: center; }
.nf-card { width: 86% !important; max-height: 82%; overflow-y: auto; border-radius: 12px !important; padding: 20px 16px 10px !important; }
/* 通讯录黑名单 */
#wx-blacklist-page .bl-list { margin-top: 8px; background: #fff; }
#wx-blacklist-page .bl-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
#wx-blacklist-page .bl-row + .bl-row { border-top: .5px solid #ececec; }
#wx-blacklist-page .bl-row img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; background: #eee; }
#wx-blacklist-page .bl-row span { flex: 1; font-size: 16px; color: #111; }
#wx-blacklist-page .bl-row button { border: 0; background: #f2f2f2; color: #111; border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
#wx-blacklist-page .bl-tip { padding: 10px 16px; font-size: 12.5px; color: #999; }
#wx-blacklist-page .bl-empty { padding: 60px 16px; text-align: center; font-size: 14px; color: #aaa; }
/* 发微博输入框：外层不能缩成半宽，否则一句话被提前换行 */
html body #forum #forum-post-overlay div:has(> #forum-post-content) { flex: 1 1 auto !important; width: 100% !important; min-width: 0 !important; }
html body #forum #forum-post-content { width: 100% !important; box-sizing: border-box; }

/* 个人资料：照微信的样子，一行一项 */
#edit-profile-page .pf-scroll { flex: 1; overflow-y: auto; padding-bottom: 40px; }
#edit-profile-page .pf-group { margin-top: 10px; background: #fff; }
#edit-profile-page .pf-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; font-size: 16px; color: #111; cursor: pointer; }
#edit-profile-page .pf-row + .pf-row, #edit-profile-page .pf-row + input + .pf-row { border-top: .5px solid #ececec; }
#edit-profile-page .pf-row > span { width: 64px; flex-shrink: 0; }
#edit-profile-page .pf-row input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: #111; text-align: right; outline: none; padding: 0; margin: 0; box-shadow: none; }
#edit-profile-page .pf-row input[readonly] { color: #888; }
#edit-profile-page .pf-row em { font-style: normal; font-size: 12px; color: #aaa; white-space: nowrap; }
#edit-profile-page .pf-avatar-row { min-height: 84px; }
#edit-profile-page .pf-avatar-row #profile-img-upload { margin: 0 0 0 auto !important; width: 60px !important; height: 60px !important; border-radius: 8px !important; overflow: hidden; border: 0 !important; background: #f2f2f2 !important; }
#edit-profile-page .pf-h { padding: 18px 16px 8px; font-size: 13px; color: #888; }
#edit-profile-page .pf-setting { margin-top: 0; padding: 12px 16px 8px; }
#edit-profile-page .pf-setting textarea { display: block; width: 100%; box-sizing: border-box; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1.7; color: #111; outline: none; resize: none; padding: 0; margin: 0; box-shadow: none; min-height: 140px; }
#edit-profile-page .pf-count { text-align: right; font-size: 11px; color: #bbb; }
#edit-profile-page .pf-tip { padding: 10px 16px; font-size: 12px; color: #999; line-height: 1.7; }

/* 配图卡片（微博、朋友圈通用）：先写着画面，点「AI 生图」才画 */
.ph-grid { display: grid; gap: 4px; margin: 6px 14px 10px; }
.ph-grid.ph-n1 { grid-template-columns: 1fr; max-width: 78%; }
.ph-grid.ph-n2 { grid-template-columns: 1fr 1fr; }
.ph-grid.ph-n3 { grid-template-columns: 1fr 1fr 1fr; }
.ph-grid > * { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; }
.ph-grid.ph-n1 > * { aspect-ratio: 4 / 3; }
.ph-card { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; box-sizing: border-box; padding: 12px 10px 38px; border-radius: 6px; background: linear-gradient(160deg, #dfe6f4, #e9e4f1); color: #4a4f63; overflow: hidden; }
.ph-grid.ph-n1 .ph-card { aspect-ratio: 4 / 3; padding: 18px 18px 46px; }
.ph-card p { margin: 0; font-size: 12px; line-height: 1.6; text-align: center; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ph-grid.ph-n1 .ph-card p { font-size: 13.5px; -webkit-line-clamp: 7; }
.ph-gen { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 14px; padding: 5px 10px; background: rgba(62, 50, 55, .78); color: #fff; font: inherit; font-size: 11.5px; cursor: pointer; }
.ph-gen:disabled { opacity: .6; }
.m-imgs .ph-card { aspect-ratio: 1 / 1; padding: 10px 8px 34px; }
.m-imgs .ph-card p { font-size: 11.5px; }
#edit-profile-page .pf-row input, #edit-profile-page .pf-setting textarea { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; height: auto !important; }
#edit-profile-page .pf-row input { text-align: right !important; }

/* 配图卡片 v2：像一张还没加载出来的微博配图——浅灰底、小相片图标、灰字写画面，点整张就生成 */
.ph-grid { gap: 3px !important; margin: 4px 14px 10px !important; }
.ph-grid.ph-n1 { max-width: 64% !important; }
.ph-grid.ph-n1 > *, .ph-grid.ph-n1 .ph-card { aspect-ratio: 3 / 4 !important; }
.ph-grid > *, .ph-card { border-radius: 4px !important; }
.ph-card { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 12px 34px !important; background: #f2f2f2 !important; color: #8c8c8c !important; cursor: pointer; border: .5px solid #ebebeb; }
.ph-card .ph-icon { color: #c2c2c2; flex-shrink: 0; }
.ph-card p { color: #8c8c8c !important; font-size: 11.5px !important; line-height: 1.55 !important; -webkit-line-clamp: 5 !important; }
.ph-grid.ph-n1 .ph-card p { font-size: 12.5px !important; -webkit-line-clamp: 8 !important; }
.ph-gen { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; height: 28px; padding: 0 !important; border-radius: 0 !important; background: rgba(255,255,255,.7) !important; border-top: .5px solid #e6e6e6; font-size: 11.5px !important; }
.ph-gen b { font-weight: 400; color: #ff8200; }
.ph-card:active { background: #ebebeb !important; }
/* 朋友圈里用微信的蓝色字 */
.m-imgs .ph-card { padding: 10px 8px 30px !important; }
.m-imgs .ph-gen b { color: #576b95; }
.m-imgs .ph-card .ph-icon { width: 18px; height: 18px; }
/* 「超话 · 微博」切换先收起：一局只有一个微博世界，世界书在 设置 → 世界书 */
html body #forum .wb-feedbar { display: none !important; }
#wb-person-page .wb-role-cover { background: linear-gradient(160deg, #e4e8ee, #f1ece6 70%) !important; height: 150px !important; }
#wb-person-page > * { flex-shrink: 0; }
#wb-person-page .wb-role-summary { min-height: 0 !important; padding-bottom: 16px !important; }

/* 微博主页：头像右侧「私信 / 关注」 */
#forum .wb-role-summary, #wb-person-page .wb-role-summary { position: relative; }
.wbp-actions { position: absolute; right: 16px; top: 14px; display: flex; gap: 8px; align-items: center; }
.wbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; min-width: 64px; padding: 0 14px; border-radius: 15px; font-size: 13px; font-weight: 600; border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.wbp-btn.is-dm { border-color: #dcdcdc; color: #333; background: #fff; }
.wbp-btn.is-follow { background: #ff8200; color: #fff; }
.wbp-btn.is-follow:active { background: #e67500; }
.wbp-btn.is-on { background: #f2f2f2; color: #8a8a8a; font-weight: 500; }
.wbp-btn.is-muted { background: #f2f2f2; color: #b0b0b0; font-weight: 500; }
.wbp-tag { font-style: normal; font-size: 11px; font-weight: 500; color: #8a8a8a; background: #f2f2f2; border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 3px; }

/* 全屏（添加到主屏幕）时，系统会把顶部一截做虚化：微博所有顶栏再往下让一点 */
@media (max-width: 480px) {
  #forum { --wb-top: max(calc(env(safe-area-inset-top, 0px) + 16px), 44px) !important; }
  html body #forum .nav-bar[style*="safe-area-inset-top"],
  html body .weibo-ui #forum-char-profile-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msgs-selector-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msgs-list-overlay > .nav-bar,
  html body .weibo-ui #forum-char-msg-detail-overlay .nav-bar {
    box-sizing: border-box !important;
    padding-top: var(--wb-top) !important;
    height: calc(48px + var(--wb-top)) !important;
    min-height: calc(48px + var(--wb-top)) !important;
  }
}

/* 微信聊天：发送后不再弹「已发送，过几秒会回复」，左侧「让 TA 现在回」也去掉（发完会自动回） */
html body #reply-hint, html body #wechat-chat-detail #ai-reply-btn, html body #wechat-chat-detail .chat-input-bar img.ai-reply-btn { display: none !important; }
