@import url('button.css');
@font-face {
    font-family: "FZLTTHFW";
    src: url("fonts/FZLTTHFW.eot"); /* IE9 */
    src: url("fonts/FZLTTHFW.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    
    url("fonts/FZLTTHFW.woff") format("woff"), /* chrome、firefox */
    url("fonts/FZLTTHFW.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
    
    url("fonts/FZLTTHFW.svg#FZLTTHFW") format("svg"); /* iOS 4.1- */
  
  }
  @font-face {
    font-family: "AVANTI";
    src: url("fonts/AVANTI.eot"); /* IE9 */
    src: url("fonts/AVANTI.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    url("fonts/AVANTI.woff") format("woff"), /* chrome、firefox */
    url("fonts/AVANTI.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
    url("fonts/AVANTI.svg#AVANTI") format("svg"); /* iOS 4.1- */
  font-style: normal;
    font-weight: normal;
  }

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
html,
body {
    font-size: 14px;
    color: #333;
    width: 100% !important;
    max-width: 100%;
    font-family: PingFang SC, system-ui, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, Helvetica Neue, Arial, PingFang SC, PingFang TC, PingFang HK, Microsoft Yahei, Microsoft JhengHei;
    margin: 0;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
header{
	margin: 0;
	padding: 0;
}
section{
	margin: 0;
	padding: 0;
}
a {
	text-decoration: none;
	-webkit-tap-highlight-color: transparent; 
	outline: none;
}
ul,li{
	margin: 0;
	padding: 0;
	list-style: none;
}
input, textarea,select, button {
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  margin: 0;
}
input:focus {outline: none; } 
input:focus::-webkit-input-placeholder {opacity: 0; -webkit-transition: .4s; transition: .4s; } 
input:focus::-moz-placeholder {opacity: 0; -moz-transition: .4s; } 
input:focus:-ms-input-placeholder {opacity: 0; -webkit-transition: .4s; transition: .4s; }
textarea:focus {outline: none; } 
textarea:focus::-webkit-input-placeholder {opacity: 0; -webkit-transition: .4s; transition: .4s; } 
textarea:focus::-moz-placeholder {opacity: 0; -moz-transition: .4s; } 
textarea:focus:-ms-input-placeholder { opacity: 0; -webkit-transition: .4s; transition: .4s; }

/* 浏览器 input autofill 背景改为透明/与表单一致（覆盖蓝色） */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  -webkit-text-fill-color: inherit !important;
}

/* 模态框打开时禁止body滚动，但保留滚动条防止页面跳动 */
body.modal-open {
    overflow: hidden !important;
    padding-right: var(--scrollbar-width, 0) !important;
}

/* 移动端：不预留滚动条宽度，避免模拟器/真机因滚动条预留导致水平溢出 */
@media screen and (max-width: 1024px) {
    :root {
        --scrollbar-width: 0px !important;
    }
}

/* 收藏按钮激活状态 */
.feed-detail-action-btn.collect.active {
    color: #ffd700 !important;
}

.feed-detail-action-btn.collect:not(.active) {
    color: #666 !important;
}

/* 回复列表显示状态 */
.reply-list.visible {
    display: block !important;
}

::-webkit-scrollbar {
    background-color: #fff;
    width: 0;
    height: 0;
}

* {
    box-sizing: border-box;
    -webkit-user-select: auto;
    user-select: auto;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
}

.layout {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: var(--color-background);
    margin: 0 auto;
    min-width: 320px;
    position: relative;
}

.layout.limit {
    max-width: 1728px;
}

.main-container {
    display: flex;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.main-content {
    width: 100%;
    padding-top: 76px;
    overflow-x: hidden !important;
    overflow-y: visible !important;

}

/* 页面标题和描述样式 - SEO优化 */
.page-header {
    padding: 20px 0 30px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.page-header .page-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 16px 16px 24px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .page-header .page-description {
        font-size: 14px;
    }
    
    .index_search_diag {
        width: 100% !important;
    }
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 72px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    align-items: center;
    background: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1728px;
    height: 72px;
    z-index: 10;
    background-color: #fff; 
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

li:hover {
    background: var(--color-active-background);
    border-radius: 8px;
    color: var(--color-primary-label);
}

.channel {
    font-size: 16px;
    font-weight: 600;
    margin-left: 12px;
    color: var(--color-primary-label);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.channel:hover {
    background: var(--color-active-background);
    border-radius: 999px;
    color: var(--color-primary-label);
}

.channel-list {
    color:#333;
    height: calc(100vh - 68px - 16px - 72px);
    -webkit-user-select: none;
    user-select: none;
    overflow-y: scroll;
    padding: 0 8px;
}

.side-bar {
    height: calc(100vh - 72px);
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-top: 16px;
    margin-top: 72px;
    position: fixed;
    overflow: visible;
}

.channel-list li {
    padding-left: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
    color: var(--color-tertiary-label);
}

.channel-list li:hover {
    background-color: var(--color-active-background);
    border-radius: 999px;
}

.channel-list li:last-child {
    margin-bottom: 0;
}

/* 左側欄目樣式 */
.channel-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.channel-list .item {
    width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
    color: #000;
    font-weight: bolder;
    margin-bottom: 0;
}

.channel-list .item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.channel-list .item.item_2 ul {
    padding-bottom: 6px;
}

.channel-list .item li {
    width: 100%;
    height: 48px;
    margin: 6px 0px;
    line-height: 48px;
    padding-left: 60px;
    box-sizing: border-box;
    font-size: 16px;
    background-size: 12% !important;
    background-position-x: 10px !important;
    background-position-y: center;
    background-repeat: no-repeat;
    color: #000;
    font-family: "PingFang SC", system-ui, -apple-system, sans-serif;
    cursor: pointer;
}

.channel-list .item li a {
    display: block;
    width: 100%;
    height: 100%;
    color: #000;
    text-decoration: none;
}

.channel-list .item li:hover {
    border-radius: 60px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    background-color: #f7f7f7;
}

/* 侧边栏选中状态 */
.channel-list .item li.select {
    border-radius: 60px;
    color: #000;
    font-weight: 700;
    background-color: #f7f7f7;
}
.channel-list  li.select a{
    color: #000;
}
/* left-dropdown 菜单项选中状态 */
#leftDropdown li.select {
    background-color: #f7f7f7;
}

#leftDropdown li.select a {
    color: #813f91;
    font-weight: 700;
}

#leftDropdown li.select .menu-icon {
    opacity: 1;
}

/* 頂部導航項圖標背景 */
.channel-list .item li.home {
    background: url(../images/index-zhiding.png) left center no-repeat;
}

.channel-list .item li.home:hover {
    background: #f7f7f7 url(../images/index-zhiding.png) left center no-repeat;
}
.channel-list .item li.home.active {
    background: #f5d9fc url(../images/index-zhiding-a.png) left center no-repeat;
    border-radius: 60px;
}


.channel-list .item li.faxian {
    background: url(../images/faxian_n.png) left center no-repeat;
}

.channel-list .item li.faxian:hover {
    background: #f7f7f7 url(../images/faxian_n.png) left center no-repeat;
}
.channel-list .item li.faxian.active {
    background: #f5d9fc url(../images/faxian_a.png) left center no-repeat;
    border-radius: 60px;
}
.channel-list .item li.active a{
    color: #7b378b;
}
.channel-list .item li.fabu {
    background: url(../images/publish_n.png) left center no-repeat;
}

.channel-list .item li.fabu:hover {
    background: #f5d9fc url(../images/publish_a.png) left center no-repeat;
}

.channel-list .item li.fabu.active {
    background: #f5d9fc url(../images/publish_a.png) left center no-repeat;
    border-radius: 60px;
}

.channel-list .item li.goumai {
    background: url(../images/buy_n.png) left center no-repeat;
}

.channel-list .item li.goumai:hover {
    background: #f5d9fc url(../images/buy_a.png) left center no-repeat;
}
.channel-list .item li.goumai.active {
    background: #f5d9fc url(../images/buy_n.png) left center no-repeat;
    border-radius: 60px;
}

/* "我的"標題 */
.channel-list .item_2 li.you {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    height: auto !important;
    line-height: normal;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

/* 如果 .you 只包含文本（没有country容器），覆盖height: auto */
.channel-list .item_2 li.you:not(:has(.country)) {
    height: 40px;
    line-height: 40px;
}

/* 为了兼容不支持:has()的浏览器，使用更具体的选择器 */
.channel-list .item_2 li.you:only-child:not(:has(.country)),
.channel-list .item_2 li.you:first-child:not(:has(.country)) {
    height: 40px;
    line-height: 40px;
}

.channel-list .item_2 li.you:hover {
    background-color: transparent;
}

/* country 容器樣式 */
.channel-list .item_2 li.you .country {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    clear: both;
}

.channel-list .item_2 li.you .country .yn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #000;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.channel-list .item_2 li.you .country .yn:hover {
    background-color: #f7f7f7;
}

.channel-list .item_2 li.you .country .yn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.channel-list .item_2 li.you .country .yn p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    display: block;
    flex: 1;
}
/* #leftDropdown ul 样式已移至 login-dialog.css */
/* 底部信息 */
.channel-list .item_3 li {
    width: 100%;
    height: 30px;
    margin: 6px 0px;
    padding-left: 10px;
    box-sizing: border-box;
    font-size: 13px;
    color: #999;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
}

.channel-list .item_3 li.contact_us {
    color: #999;
    cursor: pointer !important;
}



.channel-list .item_3 li.help_center a {
    color: #999;
    text-decoration: none;
}
.channel-list .item_3 li.help_center.select a {
    color: #000;
    text-decoration: none;
}


.channel-list .item_3 li.copy_right {
    color: #999;
    cursor: default;
}

.channel-list .item_3 li.copy_right:hover {
    background-color: #fff;
    color: #999;
    font-weight: normal;
}

.channel-list .item_3 ul {
    padding-bottom: 20px;
}

/* 社交媒體圖標 */
.channel-list .item_3 li.gfzh {
    padding-top: 10px;
    cursor: default;
}

.channel-list .item_3 li.gfzh:hover {
    background-color: #fff;
}

.channel-list .item_3 li.gfzh span {
    width: 17%;
    height: 30px;
    display: inline-block;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.channel-list .item_3 li.gfzh span.yt {
    background-image: url(../images/yt.png);
}

.channel-list .item_3 li.gfzh span.fb {
    background-image: url(../images/fb.png);
}

.channel-list .item_3 li.gfzh span.tw {
    background-image: url(../images/x.png);
}

.channel-list .item_3 li.gfzh span.tit {
    background-image: url(../images/titok.png);
}

a {
    text-decoration: none;
}

header.mask-paper {
    padding: 0 16px;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
    -webkit-text-decoration: underline dotted;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}
.channel-container{
    overflow-y: scroll;
    padding-top: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}
.channel-container .channel-scroll-container {
    width: calc(100vw - 72px - calc((100vw - 5 * 24px) / 4 * 1));
    display: flex;
    align-items: center;
    padding-top: 22px;
}
.channel{
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    font-weight: 500;
    color: #999;
    font-family:"PingFang";
}
.channel:hover{
    background: #f7f7f7;
}
.active.channel{
    background: #f7f7f7;
    border-radius: 999px;
    color: #333;
    font-weight: 600;
}

/* 面包屑导航样式 */
.breadcrumb-nav {
    position: fixed;
    top: 72px;
    right: calc(100% - 1342px) / 2;
    padding: 20px 20px 16px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    display: block;
    box-sizing: border-box;
    background-color: #fff;
    z-index: 999;
    width: 1447px;
}

@media screen and (min-width: 1424px) and (max-width: 1727px) {
    .breadcrumb-nav {
        left: calc(16px + calc((100vw - 7 * 32px) / 6 * 1));
        width: calc(100% - calc(16px + calc((100vw - 7 * 32px) / 6 * 1)));
        right: 0;
    }
}

@media screen and (min-width: 1192px) and (max-width: 1423px) {
    .breadcrumb-nav {
        left: calc(12px + calc((100vw - 6 * 24px) / 5 * 1));
        width: calc(100% - calc(12px + calc((100vw - 6 * 24px) / 5 * 1)));
        right: 0;
    }
}

@media screen and (min-width: 960px) and (max-width: 1191px) {
    .breadcrumb-nav {
        left: calc(12px + calc((100vw - 5 * 24px) / 4 * 1));
        width: calc(100% - calc(12px + calc((100vw - 5 * 24px) / 4 * 1)));
        right: 0;
    }
}

.breadcrumb-nav a {
    color: #813f91;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    color: #6a2d7a;
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: #333;
    font-weight: 600;
}

.breadcrumb-nav span:not(:last-child) {
    margin: 0 8px;
    color: #999;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .breadcrumb-nav {
        width: 100%;
        padding: 16px 15px 12px 15px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }
}

/* 为有固定 breadcrumb-nav 的页面内容添加 padding-top */
.with-side-bar.main-content.result-page {
    padding-top: 72px;
}

@media screen and (max-width: 768px) {
    .with-side-bar.main-content.result-page {
        padding-top: 72px;
    }
}

/* 瀑布式卡片容器 - 水平排布（从左到右再换行） */
.feeds-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 63px;
}
.curated-container{
    width: 100%;
    padding: 20px;
}
.pl-input-box {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    transition: all .2s;
    padding: 16px 16px 0 16px;
    flex-basis: unset;
    height: unset;
    flex-shrink: 0;
}
.pl-input-box .content-edit {
    flex: 1;
    position: relative;
    min-width: 70px;
}
.content-input {
    cursor: text;
    caret-color: #7b378b;
    margin: 0;
    width: 100%;
    min-height: 40px;
    max-height: 100px;
    background-color: #f7f7f7;
    border: none;
    border-radius: 4px;
    padding: 9px 16px;
    border-radius: 20px;
    outline: none;
    overflow-y: auto;
    text-rendering: optimizeLegibility;
    word-break: break-all;
    white-space: break-spaces;
    font-size: 16px;
    line-height: 22px;
    color: #333;
}
.pl-input-box .content-edit .inner-when-not-active{
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
}
.not-active .inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: flex-start;
    color: #888;
    font-size: 14px;
    font-family: "PingFang";
}
.not-active{
    cursor: text;
    width: 100%;
    padding-left: 8px;
}
.not-active .inner .icon{
    margin-right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    color: var(--color-quaternary-label);
}
.pl-input-box .interact-container{
    width: auto;
    margin-right: 0;
    transition: all .2s;
    opacity: 1;
}
.pl-input-box .interact-container {
    width: auto;
    margin-right: 0;
    transition: all .2s;
    opacity: 1;
}
.buttons.engage-bar-style {
    display: flex;
    justify-content: space-around;
    margin-left: 4px;
}
.buttons .left{
    display: flex;
    align-items: center;
    padding-left: 10px;
}
.buttons.engage-bar-style .left .count {
    margin-left: 0;
    margin-right: 0;
    font-weight: 500;
    font-size: 13px;
}
.pl-input-box .qianse-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}
.pl-input-box .like-wrapper{
    margin-left: 10px;
}
/* ============================================
   find.html 页面专用样式
   ============================================ */
.content-container{
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    /* 滚动一段距离后吸附在 header-container 底部 */
    position: sticky;
    top: 72px;
    z-index: 99;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
}
.channel{
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    /* font-family: "PingFang SC"; */
}
.channel a{
    color: #999;
    text-decoration: none;
}
.channel:hover {
    background: rgba(0,0,0,0.03);
    border-radius: 999px;
    color: #333;
}
.channel.active a{
    background: rgba(0,0,0,0.03);
    border-radius: 999px;
    color: #333;
    font-weight: 600;
}
/* 花魁标题区域 - 橫跨多列，顯示在瀑布流上方 */
.tjzd {
    width: 100%;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    column-span: all;
    -webkit-column-span: all;
}

.tjzd_title {
    width: 50%;
   float: left;
}

.tjzd_more {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
}

.tjzd_more a {
    color: #7b378b;
    text-decoration: none;
}

.tjzd_more a:hover {
    color: #c172d5;
}

.tjzd_title span.big {
    display: block;
    width: 100%;
    font-size: 46px;
    font-family: "FZLTTHFW";
}

.tjzd_title span.small {
    display: block;
    width: 100%;
    font-size: 16px;
    color: #999;
    font-weight: 700;
}

/* 花魁卡片网格 */
.top_mm {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 12px;
}

.topmm_bg {
    width: 100%;
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    padding-bottom: 18px;
}

.topmm_bg:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.topmm_img_div {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.topmm_img_div img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 花魁卡片左上排名標簽 */
.feed-card-image .phb-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 48px;
    height: 40px;
    /* 視覺補償：.drop-180 右下角是大圓角（被切去一塊），幾何居中會顯得偏右，
       因此給右側留 8px、左側留 0，讓 flex 居中點向左偏移 4px。
       .button 基類已是 box-sizing: border-box，padding 不會撐大元素。 */
    padding: 0 8px 0 0;
    font-family: "FZLTTHFW", 'FZYUEJFW', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    /* 讓數字水平&垂直居中（覆蓋 .button 的 text-align:left + inline-block） */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* animation: innerGlow 2s ease-in-out infinite; */
}

/*
   數字 ≥ 10（兩位數）字號縮小，避免超出按鈕。
   說明：CSS 無法基於文本長度選擇元素，因此依賴排名順序與 DOM 順序一致這一前提：
   - .top_mm 第 10 格、feeds-container 第 10 個及之後卡片 → 排名為 10+
*/
.top_mm .topmm_bg:nth-child(10) .phb-badge,
.feeds-container .feed-card:nth-of-type(n+10) .phb-badge {
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* 三位數兜底（≥100），進一步縮小 */
.top_mm .topmm_bg:nth-child(n+100) .phb-badge,
.feeds-container .feed-card:nth-of-type(n+100) .phb-badge {
    font-size: 14px;
    letter-spacing: -0.04em;
}



.topmm_title_div {
    padding: 12px;
}

.topmm_title_div span.title {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
    font-family: "PingFang";
    font-weight: 600;
}

.topmm_title_div span.suolie {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
}

.bottom_t {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.dm_num {
    display: inline-block;
    width: auto;
    height: 22px;
    background: url(../images/qiandai02.png) left center no-repeat;
    background-size: contain;
    line-height: 22px;
    font-size: 0.9rem;
    padding-left: 22px;
    box-sizing: content-box;
    color: #634c64;
    font-weight: 700;
}

.wyds {
    display: inline-block;
    height: 22px;
    border-radius: 11px;
    border: 1px solid #000;
    background: url(../images/dashang.png) left center no-repeat;
    background-size: contain;
    line-height: 22px;
    font-size: 0.8rem;
    padding-left: 30px;
    padding-right: 10px;
    box-sizing: content-box;
    cursor: pointer;
}

.wyds:hover {
    border: 1px solid #c893d5;
    background: #d69ee4 url(../images/ds_white.png) left center no-repeat;
    background-size: contain;
    color: #fff;
}

/* 广告区域 */
.ad_div {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 45px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1%;
}

.ad01 {
    width: 49.5%;
    margin-right: 0;
    float: none;
}

.ad01 img {
    width: 100%;
    border-radius: 5px;
}

.ad02 {
    width: 49.5%;
    float: none;
}

.ad02 img {
    width: 100%;
    border-radius: 5px;
}

/* 精选内容区域 */
.jingxuan_row {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-bottom: 77px;
}

.jingxuan_title {
    width: 100%;
    font-size: 46px;
    font-family: "FZLTTHFW";
    padding-top: 20px;
    padding-bottom: 10px;
    text-align: center;
    box-sizing: content-box;
}

.jingxuan_title_small {
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: #999;
}

.jingxuan_menu {
    width: 100%;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    overflow: hidden;
}

.jingxuan_menu_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
}

.jingxuan_menu_div .menu {
    display: flex;
    border-radius: 4px;
    background-color: #f5f5f5;
    width: 60px;
    height: 60px;
    align-items: center;
    cursor: pointer;
}

.jingxuan_menu_div:nth-child(1) .menu {
    background: #f5f5f5 url(../images/video.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(1) .menu:hover {
    background: #f5d9fc url(../images/video_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(1) .menu.active {
    background: #f5d9fc url(../images/video_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(2) .menu {
    background: #f5f5f5 url(../images/pic02.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(2) .menu:hover {
    background: #f5d9fc url(../images/pic02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(2) .menu.active {
    background: #f5d9fc url(../images/pic02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(3) .menu {
    background: #f5f5f5 url(../images/cha02.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(3) .menu:hover {
    background: #f5d9fc url(../images/cha02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(3) .menu.active {
    background: #f5d9fc url(../images/cha02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(4) .menu {
    background: #f5f5f5 url(../images/yu.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(4) .menu:hover {
    background: #f5d9fc url(../images/yu_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(4) .menu.active {
    background: #f5d9fc url(../images/yu_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(5) .menu {
    background: #f5f5f5 url(../images/gegong02.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(5) .menu:hover {
    background: #f5d9fc url(../images/gegong02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div:nth-child(5) .menu.active {
    background: #f5d9fc url(../images/gegong02_active.png) center no-repeat;
    background-size: 60% 60%;
}

.jingxuan_menu_div .title {
    display: block;
    width: auto;
    height: auto;
    color: #333;
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
    margin-top: 8px;
}

.jingxuan_menu_div .title.active {
    display: block;
    width: auto;
    height: auto;
    color: #813f91;
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
    font-weight: bolder;
    margin-top: 8px;
}

/* 精选标签页 */
.jingxuan_tab_div {
    width: 100%;
    height: 2vw;
    display: flex;
}

.jingxuan_tab {
    width: 5%;
    height: calc(2vw - 3px);
    font-size: 0.8vw;
    margin-right: 2px;
    line-height: 2vw;
    text-align: center;
    color: #999;
    cursor: pointer;
}

.jingxuan_tab.gg_tab {
    width: 4%;
}

.jingxuan_tab:hover {
    border-bottom: 3px solid #000;
    color: #000;
}

.jingxuan_tab.active {
    border-bottom: 3px solid #000;
    color: #000;
}

/* 精选卡片网格 */
.jingxuan_cloum {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 10px;
    /* background-color: #f4f4f4; */
    box-sizing: border-box;
}

.jingxuan_cloum .jingxuan_card {
    width: 100%;
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.jingxuan_cloum .jingxuan_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.jingxuan_cloum .jingxuan_img {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.jingxuan_cloum .jingxuan_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.jingxuan_img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.jingxuan_content {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.jingxuan_time {
    width: 100%;
    height: 32px;
    text-align: right;
    color: #999;
    font-size: 14px;
    font-family: "AVANTI";
    padding: 0 1.0vw;
    padding-bottom: 0.5vw;
    box-sizing: border-box;
    line-height: 32px;
}

.jingxuan_bottom {
    width: 100%;
    height: 3.0vw;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-left: 1.0vw;
    box-sizing: border-box;
}

.jingxuan_bottom .icon {
    display: inline-block;
    height: 3.0vw;
    align-items: center;
    cursor: pointer;
    margin-right: 0.5vw;
    color: #999;
    padding-left: 1.3vw;
    box-sizing: border-box;
    font-size: 0.7vw;
    font-family: "AVANTI";
    letter-spacing: 0;
    line-height: 3.0vw;
}

.jingxuan_bottom .icon:nth-child(1) {
    background: url(../images/eyes.png) left center no-repeat;
    background-size: 40%;
}

.jingxuan_bottom .icon:nth-child(2) {
    background: url(../images/pinglun.png) left center no-repeat;
    background-size: 52%;
}

.jingxuan_bottom .icon:nth-child(3) {
    background: url(../images/dianzan.png) left center no-repeat;
    background-size: 43%;
}

/* 花魁和精选卡片响应式样式 */
@media screen and (max-width: 1600px) {
    .top_mm {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .top_mm {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .jingxuan_cloum {
        grid-template-columns: repeat(3, 1fr);
    }
    .jingxuan_cloum .jingxuan_img{
        height: 200px;
    }
    .jingxuan_menu {
        gap: 15px;
        padding: 12px 0;
    }
    
    .jingxuan_menu_div .menu {
        width: 50px;
        height: 50px;
    }
    
    .jingxuan_menu_div .title {
        font-size: 12px;
    }
    
    
    .dm_num {
        width: auto;
        height: 20px;
        font-size: 0.8rem;
        padding-left: 20px;
        line-height: 20px;
    }
    
    .wyds {
        height: 20px;
        font-size: 0.75rem;
        padding-right: 8px;
        line-height: 20px;
    }
    
    .tjzd_title span.big {
        font-size: 38px;
    }
    
    .tjzd_title span.small {
        font-size: 14px;
    }
    
    .tjzd_more {
        font-size: 13px;
    }
}

@media screen and (max-width: 695px) {
    .top_mm {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jingxuan_cloum {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .jingxuan_menu {
        gap: 10px;
        padding: 10px 0;
    }
    
    .jingxuan_menu_div .menu {
        width: 45px;
        height: 45px;
    }
    
    .jingxuan_menu_div .title {
        font-size: 11px;
        margin-top: 6px;
    }
    
    
    .dm_num {
        width: auto;
        height: 18px;
        font-size: 0.75rem;
        padding-left: 18px;
        line-height: 18px;
    }
    
    .wyds {
        height: 18px;
        font-size: 0.7rem;
        padding-right: 6px;
        line-height: 18px;
    }
    
    .tjzd_title span.big {
        font-size: 32px;
    }
    
    .tjzd_title span.small {
        font-size: 13px;
    }
    
    .tjzd_more {
        font-size: 12px;
    }
}

@media screen and (max-width: 540px) {
    .jingxuan_cloum {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jingxuan_menu {
        gap: 8px;
        padding: 8px 0;
    }
    
    .jingxuan_menu_div .menu {
        width: 40px;
        height: 40px;
    }
    
    .jingxuan_menu_div .title {
        font-size: 10px;
        margin-top: 4px;
    }
    
    
    .dm_num {
        width: auto;
        height: 16px;
        font-size: 0.7rem;
        padding-left: 16px;
        line-height: 16px;
    }
    
    .wyds {
        height: 16px;
        font-size: 0.65rem;
        padding-left: 24px;
        padding-right: 5px;
        line-height: 16px;
    }
    
    .tjzd_title span.big {
        font-size: 28px;
    }
    
    .tjzd_title span.small {
        font-size: 12px;
    }
    
    .tjzd_more {
        font-size: 11px;
    }
    
    /* ad_div 移动端一行一列 */
    .ad_div {
        flex-direction: column;
        gap: 12px;
        margin: 30px 0;
    }
    
    .ad01,
    .ad02 {
        width: 100%;
    }
}

@media screen and (max-width: 375px) {
    .top_mm {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .jingxuan_cloum {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }
    
    .jingxuan_menu {
        gap: 5px;
        padding: 8px 5px;
    }
    
    .jingxuan_menu_div .menu {
        width: 36px;
        height: 36px;
    }
    
    .jingxuan_menu_div .title {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .bottom_t {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dm_num {
        width: auto;
        height: 14px;
        font-size: 0.65rem;
        padding-left: 14px;
        line-height: 14px;
    }
    
    .wyds {
        height: 14px;
        font-size: 0.6rem;
        padding-left: 20px;
        padding-right: 4px;
        line-height: 14px;
    }
    
    .tjzd_title span.big {
        font-size: 24px;
    }
    
    .tjzd_title span.small {
        font-size: 11px;
    }
    
    .tjzd_more {
        font-size: 10px;
    }
}

/* 瀑布式卡片 */
.feed-card {
    width: 100%;
    display: block;
    margin-bottom: 0;
}
.feeds-container .feed-card {
    flex: 0 0 calc((100% - 80px) / 5);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* 非卡片子元素占满整行，避免破坏列数（index.html / find.html） */
.feeds-container > *:not(.feed-card) {
    flex: 0 0 100%;
    width: 100%;
}

/* 卡片列数断点：媒体查询必须位于基础规则之后才能正确覆盖 */
@media screen and (max-width: 1600px) {
    .feeds-container .feed-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

@media screen and (max-width: 1200px) {
    .feeds-container .feed-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media screen and (max-width: 695px) {
    .feeds-container {
        padding: 15px;
        gap: 15px;
        margin-top: 0;
    }
    .feeds-container .feed-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }
}

@media screen and (max-width: 375px) {
    .feeds-container {
        padding: 10px;
        gap: 10px;
    }
    .feeds-container .feed-card {
        flex: 0 0 100%;
    }
}

/* 分頁加載指示器 */
.feeds-load-more {
    flex: 0 0 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}
.feeds-load-more.visible {
    display: flex;
}
.feeds-load-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #be8bdb;
    border-radius: 50%;
    animation: feedsSpin 0.6s linear infinite;
}
@keyframes feedsSpin {
    to { transform: rotate(360deg); }
}
.feeds-sentinel {
    flex: 0 0 100%;
    height: 1px;
}
.feeds-load-end {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px 0;
    color: #ccc;
    font-size: 13px;
}

/* topping 頁面分類小標題樣式 */
.topping-category-section {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 8px;
}
.topping-category-title {
    font-size: 14px;
    font-weight: 600;
    /* margin: 40px 0 12px 0; */
    padding-bottom: 6px;
    /* border-bottom: 1px solid #eee; */
    display: flex;
    align-items: center;
    gap: 6px;
}
.topping-category-icon {
    display: inline-flex;
    flex-shrink: 0;
}
.topping-category-icon svg {
    vertical-align: middle;
}
/* .topping-category-title.topping-category-xufei { color: #22c55e; }
.topping-category-title.topping-category-xufei .topping-category-icon { color: #22c55e; }
.topping-category-title.topping-category-goumai { color: #3b82f6; }
.topping-category-title.topping-category-goumai .topping-category-icon { color: #3b82f6; }
.topping-category-title.topping-category-deleted { color: #ef4444; }
.topping-category-title.topping-category-deleted .topping-category-icon { color: #ef4444; }
.topping-category-title.topping-category-gegong { color: #8b5cf6; }
.topping-category-title.topping-category-gegong .topping-category-icon { color: #8b5cf6; }
.topping-category-title.topping-category-cha { color: #f59e0b; }
.topping-category-title.topping-category-cha .topping-category-icon { color: #f59e0b; }
.topping-category-title.topping-category-yu { color: #06b6d4; }
.topping-category-title.topping-category-yu .topping-category-icon { color: #06b6d4; }
.topping-category-title.topping-category-video { color: #ec4899; }
.topping-category-title.topping-category-video .topping-category-icon { color: #ec4899; }
.topping-category-title.topping-category-meitu { color: #14b8a6; }
.topping-category-title.topping-category-meitu .topping-category-icon { color: #14b8a6; } */
.topping-category-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.topping-category-cards .feed-card {
    flex: 0 0 calc((100% - 80px) / 5);
}
@media screen and (max-width: 1600px) {
    .topping-category-cards .feed-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}
@media screen and (max-width: 1200px) {
    .topping-category-cards .feed-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}
@media screen and (max-width: 695px) {
    .topping-category-cards {
        gap: 15px;
    }
    .topping-category-cards .feed-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }
}
@media screen and (max-width: 375px) {
    .topping-category-cards {
        gap: 10px;
    }
    .topping-category-cards .feed-card {
        flex: 0 0 100%;
    }
}

.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 卡片链接样式 */
.feed-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.feed-card-link:hover {
    text-decoration: none;
}

.feed-card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 4;
}

.feed-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 图片加载错误时的样式 */
img.image-error {
    opacity: 0.3;
    background: #f5f5f5;
}

.feed-card-image img.image-error {
    background: #f5f5f5;
    position: relative;
}

.feed-card-image img.image-error::after {
    content: '图片加载失败';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
}

.feed-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* 置顶标志样式 */
.feed-card-image {
    position: relative;
}

/* 置顶标签 - 右上角，带内发光、外发光和呼吸动画效果 */
.button.zhiding-badge{
    position: absolute;
    right: 10px;
    bottom: 15px;
    font: 24px / 1 'FZYUEJFW', sans-serif;
    width: 48px;
    height: 40px;
    padding: 0; /* 清除 .button 預設的 padding-left，避免影響內部箭頭定位 */
    z-index: 2;
    box-shadow: inset rgba(255,254,255,0.6) 0 0.3em .3em, inset rgba(0,0,0,0.15) 0 -0.1em .3em,
                hsl(88, 70%, 40%) 0 .1em 3px, hsl(88, 70%, 30%) 0 .3em 1px,
                rgba(0,0,0,0.2) 0 .5em 5px;
}
/* 箭頭用 absolute + inset: 0 + flex 居中，徹底消除原來 margin-top:-60px 的魔數對齊問題 */
.button.zhiding-badge i{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    line-height: 1;
    transform: rotate(-90deg);
    box-shadow: none;
}
.feed-card-image .feed-card-expiry {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    z-index: 2;
    font-weight: 600;
}

.feed-card-image .feed-card-expiry span {
    color: #fff;
    font-weight: 600;
}


    
.feed-card-image .feed-card-expiry {
    padding: 6px 10px;
    font-size: 11px;
}

.feed-card-content {
    padding: 12px;
}

.feed-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
    font-family: "PingFang";
}

/* SEO: 隐藏主标题（视觉上），但保留在HTML中供搜索引擎 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.feed-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-card-author {
    font-size: 13px;
    color: #111;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "PingFang";
    font-weight: 700;
}

.feed-card-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.jingxuan_card .feed-card-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 0;
    margin-top: 0;   
    width:96%;
    margin: 0 auto;
    height: 60px;
    padding-left: 5%;
}
.jingxuan_card .jingxuan_content{
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    height: 56px;
}
@media screen and (max-width: 695px) {
    .jingxuan_card .jingxuan_content {
        font-size: 13px;
        height: 50px;
    }
    .jingxuan_time{
        font-size: 11px;
        padding-right: 8px;
    }
}
.feed-card-stats .feed-card-expiry {
    flex-basis: 100%;
    width: 100%;
    margin-bottom: 0;
}

.feed-card-stats .feed-card-action-btn {
    flex: 1;
    min-width: calc(50% - 6px);
}

.feed-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.feed-card-stat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feed-card-stat.like .feed-card-stat-icon {
    /* background-image: url(../images/like.png); */
}

.feed-card-stat.comment .feed-card-stat-icon {
    /* background-image: url(../images/comment.png); */
}

.feed-card-stat.collect .feed-card-stat-icon {
    /* background-image: url(../images/collect.png); */
}


/* 卡片信息区域 */
.feed-card-info {
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.feed-card-info-item {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 4px;
}

.feed-card-info-item:last-child {
    margin-bottom: 0;
}

.feed-card-info-item span {
    color: #333;
    font-weight: 500;
}

.feed-card-expiry {
    /* margin-top: 8px;
    padding-top: 8px; */
    color: #333;
    font-size: 12px;
}

.feed-card-expiry span {
    /* width: 100%;
    display: inline-block; */
    color: #999;
    font-weight: normal;
}

/* feed-card-info-item.feed-card-expiry 與刪除理由樣式一致 */
.feed-card-info-item.feed-card-expiry {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: #fff;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    padding-left: 12px;
    border-radius: 0;
}
.feed-card-info-item.feed-card-expiry span {
    color: #fff;
    font-weight: 600;
}

/* 卡片操作按钮区域 */
.feed-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.feed-card-action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background: #f7f7f7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    border: none;
    font-weight: 600;
}

/* 购买置顶按钮背景色 */
.feed-card-action-btn.buy-topping-btn:hover  {
    background: #31c1e6;
    color: #fff;
}

/* 续费按钮背景色 */
.feed-card-action-btn.renew-btn:hover {
    background: #8fb739;
    color: #fff;
}

.feed-card-action-btn.xg_tiezi:hover {
    background: #813f91;
    color: #fff;
} 

.feed-card-action-btn:active {
    transform: scale(0.98);
}

/* 被删除的卡片样式 */
.feed-card-deleted .feed-card-image img {
    opacity: 0.5;
    filter: grayscale(100%);
}

.feed-card-deleted .feed-card-content {
    opacity: 0.6;
}

.feed-card-deleted .feed-card-content .feed-card-title,
.feed-card-deleted .feed-card-content .feed-card-meta,
.feed-card-deleted .feed-card-content .feed-card-author {
    opacity: 0.6;
}

.feed-card-deleted .feed-card-deleted-info {
    opacity: 1 !important;
}

/* 被删除卡片的红色X图标 */
.feed-card-deleted-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 5;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .feed-card-deleted-icon {
        width: 60px;
        height: 60px;
    }
}

/* 删除理由显示在图片区域 */
.feed-card-image .feed-card-deleted-reason {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: #fff;
    padding: 12px;
    font-size: 13px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.feed-card-image .feed-card-deleted-reason .deleted-label {
    font-weight: 600;
    color: #fff;
}

.feed-card-image .feed-card-deleted-reason .deleted-text {
    color: #fff;
    font-weight: 600;
}

.feed-card-deleted-info {
    display: flex;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.feed-card-deleted-info .appeal-btn {
    width: 100%;
    background: #f00;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.feed-card-deleted-info .appeal-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.feed-card-deleted-info .appeal-btn:active {
    transform: translateY(0);
}

/* ========== 用戶中心卡片式佈局 (favourite / rewards) ========== */
.uc-cards-main {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 0;
}
.uc-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.uc-card {
    flex: 0 0 calc((100% - 80px) / 5);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.uc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.uc-card-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 4;
}
.uc-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.uc-card-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    z-index: 2;
    font-weight: 600;
}
.uc-card-badge span {
    color: #fff;
    font-weight: 600;
}
.uc-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.uc-card-info {
    flex: 1;
    margin-bottom: 12px;
}
.uc-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 4px;
}
.uc-card-row:last-child {
    margin-bottom: 0;
}
.uc-card-row .label {
    color: #999;
}
.uc-card-row .val {
    color: #333;
    font-weight: 500;
}
.uc-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.uc-card-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.uc-card-btn-primary {
    background: #813f91;
    color: #fff;
}
.uc-card-btn-primary:hover {
    background: #6b3380;
}
.uc-card-btn-outline {
    background: transparent;
    color: #813f91;
    border: 1px solid #813f91;
}
.uc-card-btn-outline:hover {
    background: rgba(129, 63, 145, 0.08);
}
@media screen and (max-width: 1600px) {
    .uc-card {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}
@media screen and (max-width: 1200px) {
    .uc-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}
@media screen and (max-width: 695px) {
    .uc-cards-main {
        padding: 15px;
    }
    .uc-cards-container {
        gap: 15px;
    }
    .uc-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }
}
@media screen and (max-width: 375px) {
    .uc-cards-main {
        padding: 10px;
    }
    .uc-cards-container {
        gap: 10px;
    }
    .uc-card {
        flex: 0 0 100%;
    }
}

.history-page .uc-card {
    flex: 0 0 calc((100% - 60px) / 4);
}
@media screen and (max-width: 1200px) {
    .history-page .uc-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}
@media screen and (max-width: 695px) {
    .history-page .uc-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }
}
@media screen and (max-width: 375px) {
    .history-page .uc-card {
        flex: 0 0 100%;
    }
}

.header-logo{
    width: auto;
    height: 24px;
}
.input-box{
    height: 40px;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    z-index: 100;
}
.search-input{
    padding: 0 84px 0 16px;
    width: 100%;
    height: 100%;
    font-size: 16px;
    line-height: 120%;
    color: #333;
    caret-color: #be8bdb;
    background:#f7f7f7;
    border-radius: 999px;
    border: none;
}

.input-button .search-icon, .input-button .close-icon {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color:#333;
}
.input-button{
    position: absolute;
    right: 8px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.search-icon-img{
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    width: 20px;
    height: 20px;
}
.dropdown-nav{
    display: flex;
    gap: 4px;
    align-items: center;
}
.dropdown-wrapper {
    position: relative;
}

/* 桌面端隐藏 breadcrumb-wrapper */
.breadcrumb-wrapper {
    display: none;
}
.dropdown-container {
    position: absolute;
    top: 80%;
    right: -20%;
    z-index: 1000;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: visible;
    padding: 8px 0;
}

.dropdown-container::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}
.dropdown-items {
    padding: 0;
}
.dropdown-items li {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
.dropdown-items li .text {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    font-weight: 400;
}
.dropdown-items li:hover {
    background-color: #f7f7f7;
}
.dropdown-items li .text a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}
.dropdown-items li .text a:hover {
    color: #be8bdb;
}
.dropdown-items li.dropdown-title{
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.dropdown-items li.dropdown-title:hover{
    background-color: transparent;
}
.notification-count {
    color: #ff4444;
    font-size: 14px;
    font-weight: 400;
}
.qianse-button-new {
    color: #333;
    font-size: 16px;
    line-height: 120%;
    padding: 0 16px;
    background: transparent;
    border: none;
    font-weight: 400;
}
/* .qianse-button-new:hover {
    background: #f7f7f7;
    border-radius: 999px;
    color: #333;
} */
.qianse-button-new-box{
    display: flex;
    align-items: center;
    justify-content: center;
}
.qianse-button-new-text{
    font-weight: 500;
}
.qianse-button-new.history-btn{
    width:32px;
    height:32px;
    background: url(../images/foot-print.png) no-repeat center center;
    background-size: 70%;
    cursor: pointer;
    display: none;
}
.qianse-button-new.history-btn:hover{
    width:32px;
    height: 32px;
    border-radius: 999px;
    background:#f7f7f7 url(../images/foot-print.png) no-repeat center center;
    background-size: 70%;
}
.qianse-button-new.message-btn{
    width:32px;
    height:32px;
    background: url(../images/massege.png) no-repeat center center;
    background-size: 70%;
    cursor: pointer;
    position: relative;
}

.qianse-button-new.message-btn::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background-color: #ff4444;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
.qianse-button-new.message-btn:hover{
    width:32px;
    height: 32px;
    border-radius: 999px;
    background:#f7f7f7 url(../images/massege.png) no-repeat center center;
    background-size: 70%;
}
.qianse-button-new.user-btn{
    width:32px;
    height:32px;
    background: url(../images/index-user.png) no-repeat center center;
    background-size: 70%;
    cursor: pointer;
}
.qianse-button-new.user-btn:hover{
    width:32px;
    height: 32px;
    border-radius: 999px;
    background:#f7f7f7 url(../images/index-user.png) no-repeat center center;
    background-size: 70%;
}

/* breadcrumb-btn 按钮样式 */
.qianse-button-new.breadcrumb-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.qianse-button-new.breadcrumb-btn:hover {
    background: #f7f7f7;
    border-radius: 999px;
}

.qianse-button-new.breadcrumb-btn svg {
    width: 20px;
    height: 20px;
}

/* vn-btn 和 laowo-btn 按钮样式 */
.qianse-button-new.vn-btn,
.qianse-button-new.laowo-btn {
    width: 32px;
    height: 32px;
    display: none; /* 桌面端默认隐藏 */
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 100px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.qianse-button-new.vn-btn:hover,
.qianse-button-new.laowo-btn:hover {
    background: #f7f7f7;
}

.qianse-button-new.vn-btn .vn-icon-img,
.qianse-button-new.laowo-btn .laowo-icon-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}
.search_toggle_button{
    width:30px;
    height: 30px;
    background: url(../images/search_toggle.png) center no-repeat;
    background-size: 20px 16px;
    border-radius: 100%;
    position: absolute;
    right: 56px;
    top: 6px;
    cursor: pointer;
    border: 0;
    outline: none;
  }
  .search_toggle_button:hover{
    background: rgba(220, 190, 230, 0.5) url(../images/search_toggle.png) center no-repeat;
    background-size: 20px 16px;
    border-radius: 100%;
    position: absolute;
    right: 56px;
    top: 6px;
    cursor: pointer;
    border: 0;
    outline: none;
  }
  .search_toggle_button.active{
    background: rgba(220, 190, 230, 0.5) url(../images/search_toggle.png) center no-repeat;
    background-size: 20px 16px;
    border-radius: 100%;
    position: absolute;
    cursor: pointer;
    border: 0;
    outline: none;
  }
  .images-search-button{
    width: 30px;
    height: 30px;
    background: url(../images/camera_b.png) center no-repeat;
    background-size: 20px 20px;
    border-radius: 100%;
    position: absolute;
    right: 96px;
    top: 6px;
    cursor: pointer;
    border: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    pointer-events: auto;
  }
  .images-search-button:hover{
    background: rgba(220, 190, 230, 0.5) url(../images/camera_b.png) center no-repeat;
    background-size: 20px 20px;
    border-radius: 50%;
  }
  .images-search-button.has-image{
    background: transparent;
  }
  .images-search-button.has-image:hover{
    background: rgba(220, 190, 230, 0.3);
  }
  #image-search-preview {
    width: 30px;
    height: 30px;
    border-radius: 40px;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    z-index: 102;
    pointer-events: auto;
  }
  
  /* 圖片搜尋結果區域 */
  .image-search-results {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
  }
  
  .image-search-loading {
    text-align: center;
    padding: 60px 20px;
  }
  
  .image-search-loading .loader {
    position: relative;
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
  }
  
  .image-search-loading .loading-text {
    font-size: 16px;
    color: #666;
    margin: 0;
  }
  
  .image-search-result-content {
    width: 100%;
  }
  
  .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
  }
  
  .result-header .result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .result-header .result-count {
    font-size: 14px;
    color: #999;
  }
  
  .result-header .result-count #result-count {
    color: #ff2e4d;
    font-weight: 600;
  }
  
  .result-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
  }
  
  @media screen and (max-width: 1600px) {
    .result-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media screen and (max-width: 1200px) {
    .result-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .result-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .result-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .result-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .result-item-info {
    padding: 15px;
    flex: 1;
  }
  
  .result-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .result-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .similarity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    width:100%;
  }
  
  .result-item-desc {
    font-size: 12px;
    color: #999;
  }
  
  .result-item-action {
    padding: 0 15px 15px 15px;
  }
  
  .result-item-action .view-button {
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    background-color: #f7f7f7;
    color: #666;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
  }
  
  .result-item-action .view-button:hover {
    background-color: #a679c8;
    color: #fff;
  }
  
  @media screen and (max-width: 959px) {
    .result-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 15px;
    }
    
    .result-item-image {
      height: 150px;
    }
    
    .result-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }
  
  /* 猜你喜歡模組 */
  .recommendations-section {
    width: 100%;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
    margin-top: 40px;
    border-top: 2px solid #eee;
  }
  
  .recommendations-header {
    margin-bottom: 24px;
  }
  
  .recommendations-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #be8bdb;
    display: inline-block;
  }
  
  .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
  }
  
  @media screen and (max-width: 1600px) {
    .recommendations-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media screen and (max-width: 1200px) {
    .recommendations-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .recommendation-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .recommendation-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .recommendation-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .recommendation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .recommendation-item-info {
    padding: 15px;
    flex: 1;
  }
  
  .recommendation-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .recommendation-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .recommendation-item-desc {
    font-size: 13px;
    color: #999;
    font-style: italic;
  }
  
  .recommendation-item-action {
    padding: 0 15px 15px 15px;
  }
  
  .recommendation-item-action .view-button {
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    background-color: #be8bdb;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
  }
  
  .recommendation-item-action .view-button:hover {
    background-color: #a679c8;
  }
  
  @media screen and (max-width: 959px) {
    .recommendations-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 15px;
    }
    
    .recommendation-item-image {
      height: 150px;
    }
    
    .recommendations-section {
      padding: 30px 15px 15px 15px;
      margin-top: 30px;
    }
  }
  
  /*進階搜尋下拉*/
  /* 搜尋下拉*/
.index_search_diag{
    position: absolute;
    width:468px;
    height: 63vh;
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 30;
    top: 48px;
    right: 0;
    padding: 20px;
    box-sizing: border-box;
    display: none;
  }
  .index_search_diag::-webkit-scrollbar{
      width: 6px;
      background-color:transparent;
  }
  /*定義捲軸軌道 內陰影+圓角*/
  .index_search_diag::-webkit-scrollbar-track
  {
      border-radius: 6px;
      background-color: #fff;
  }
    
  /*定義滑塊 內陰影+圓角*/
  .index_search_diag:hover::-webkit-scrollbar-thumb
  {
      border-radius: 4px!important;
      box-shadow:0px 0px 3px #e3ceef;
      background-color: #cfabe4;
      transition: 0.3s ease-in-out;
  }
  .index_search_diag_close{
    display: block;
    position: absolute;
    right: 5px;
    top: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-family: "FONT_AWESOME6_PRO_THIN";
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
    line-height: 30px;
  }
  .index_search_diag_close:hover{
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background-color:#eee;
  }
  .index_search_diag_title{
    width:100%;
    height: 40px;
    font-size: 16px;
    line-height: 30px;
    font-weight: bold;
  }
  .index_search_diag_title span{
    display: inline-block;
  }
  .index_search_diag_title a{
    color: #7b378b;
    font-size: 16px;
  }
  .index_search_diag .nickname_div{
    width:100%;
    box-sizing: border-box;
  }
  .drop_search_nickname{
    width:100%;
    height: 35px;
    border: 1px solid #ddbdef;
    border-radius: 3px;
    line-height: 35px;
    padding-left: 10px;
    box-sizing: border-box;
    outline: 0;
    color: #7b378b;
  }
  .drop_search_nickname::-webkit-input-placeholder {color:#999} 
  .drop_search_nickname::-moz-placeholder {color:#999} 
  .drop_search_nickname:-ms-input-placeholder {color:#999}
  .h_m_button{
    position: relative;
    text-align: center;
  }
  .index_search_diag_row{
    width:100%;
    min-height: 60px;
    margin-top: 12px;
  }
  .index_search_diag_row.select_form{
    border-bottom: 0;
  }
  .index_search_diag_row label{
    display: block;
    width:100%;
    font-size: 14px;
    color: #333;
    font-weight: bolder;
  }
  .diag_inline{
    width:49%;
    float: left;
    margin-right: 1%;
  }
  .diag_inline:nth-child(3){
    margin-right: 0;
  }
  .diag-input-block{
    display: flex;
    width:100%;
    font-size: 0;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  .diag-input-block.phxm{
    justify-content: space-between;
  }
  .diag-input-block span{
    display: inline-block;
    margin: 0;
  }
  .diag-input-block span.item{
    width:20%;
    white-space:nowrap;
    font-size:1.0rem;
  }
  .diag-input-block span.item input{
    display: none;
  }
  .diag-input-block span.item label{
    display: inline-block;
    margin-right: 5px;
  }
  .diag-input-block span.item label.radio_button{
    height: 30px;
    background: url(../images/radio_normal.png)left center no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    line-height: 28px;
    padding-left: 18px;
    box-sizing: border-box;
    color: #666;
    font-weight: lighter;
  }
  .diag-input-block span.item label.radio_button.checked {
    height: 30px;
    background: url(../images/radio_checked.png)left center no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    line-height: 28px;
    padding-left: 18px;
    box-sizing: border-box;
    color: #333;
    font-weight: bolder;
  }
  .diag_input_block select{
    display: none;
  }
  .diag_form_select{
    width:100%;
    position: relative;
    margin-top: 10px;
    cursor: pointer;
  }
  .diag_form_select_a{
    width:100%;
    position: relative;
    margin-top: 10px;
    cursor: pointer;
  }
  .diag_form_select .diag_input{
    width: 100%;
    height: 30px;
    line-height: 1.3;
    line-height: 38px\9;
    border: 1px solid #ddbdef;
    background-color: #fff;
    border-radius: 4px;
    padding-left: 10px;
    color: #666;
    box-sizing: border-box;
    cursor: pointer;
  }
  .diag_form_select_a .diag_input{
    width: 100%;
    height: 30px;
    line-height: 1.3;
    line-height: 38px\9;
    border: 1px solid #ddbdef;
    background-color: #fff;
    border-radius: 4px;
    padding-left: 10px;
    color: #666;
    box-sizing: border-box;
    cursor: pointer;
  }
  .diag_select_title{
    position: relative;
    width:100%;
  }
  .diag_form_select dl {
    display: none;
    position: absolute;
    left: 0;
    top: 15px;
    padding: 5px 0;
    z-index: 999;
    min-width: 100%;
    border: 1px solid #d2d2d2;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
    box-sizing: border-box;
  }
  
  .diag_form_select dl::-webkit-scrollbar{
      width: 4px;
  }
    
  /*定義捲軸軌道 內陰影+圓角*/
  .diag_form_select dl::-webkit-scrollbar-track
  {
      box-shadow:0px 0px 3px #fff;
      border-radius: 4px;
      background-color: #f4f4f4;
  }
    
  /*定義滑塊 內陰影+圓角*/
  .diag_form_select dl::-webkit-scrollbar-thumb
  {
      border-radius: 4px!important;
      box-shadow:0px 0px 3px #eee;
      background-color: #ccc;
      transition: 0.3s ease-in-out;
  }
  .diag_form_select_a dl {
    display: none;
    position: absolute;
    left: 0;
    top: 15px;
    padding: 5px 0;
    z-index: 999;
    min-width: 100%;
    border: 1px solid #d2d2d2;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
    box-sizing: border-box;
  }
  
  .diag_form_select_a dl::-webkit-scrollbar{
      width: 4px;
  }
    
  /*定義捲軸軌道 內陰影+圓角*/
  .diag_form_select_a dl::-webkit-scrollbar-track
  {
      box-shadow:0px 0px 3px #fff;
      border-radius: 4px;
      background-color: #f4f4f4;
  }
    
  /*定義滑塊 內陰影+圓角*/
  .diag_form_select_a dl::-webkit-scrollbar-thumb
  {
      border-radius: 4px!important;
      box-shadow:0px 0px 3px #eee;
      background-color: #ccc;
      transition: 0.3s ease-in-out;
  }
  @-webkit-keyframes layui-upbit {
    from {
        -webkit-transform: translate3d(0,30px,0);
        opacity: .3
    }
    to {
        -webkit-transform: translate3d(0,0,0);
        opacity: 1
    }
  }
  @keyframes layui-upbit {
    from {
        transform: translate3d(0,30px,0);
        opacity: .3
    }
    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
  }
  .layui-anim {
    -webkit-animation-duration: .3s;
    animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
  }
  .layui-anim-upbit {
    -webkit-animation-name: layui-upbit;
    animation-name: layui-upbit;
  }
  .diag_form_select dl dd, .diag_form_select dl dt {
    padding: 0 10px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #999;
    margin-inline-start: 0;
  }
  .diag_form_select_a dl dd {
    padding: 0 10px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #999;
    margin-inline-start: 0;
  }
  .diag_form_select dd{
    font-size: 0.9rem;
    margin-bottom: 1px;
  }
  .diag_form_select_a dd{
    font-size: 0.9rem;
    margin-bottom: 1px;
  }
  .diag_form_select dd:hover {
    background-color: #faeefb;
    color: #333;
    font-weight: bolder;
  }
  .diag_form_select dd.layui-this {
    background-color: #faeefb;
    font-weight: bolder;
    color: #333;
    font-weight: bolder;
  }
  .diag_form_select_a dl dd.checkbox_selected{
    font-weight: bolder;
    color:#333;
  }
  .diag_form_select .diag_edge {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    width: 0;
    height: 0;
    border-left: 6px solid transparent; 
    border-right: 6px solid transparent;
    border-top: 6px solid #c394de;
    transition: all .3s;
    -webkit-transition: all .3s;
  }
  .diag_form_select_a .diag_edge {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    width: 0;
    height: 0;
    border-left: 6px solid transparent; 
    border-right: 6px solid transparent;
    border-top: 6px solid #c394de;
    transition: all .3s;
    -webkit-transition: all .3s;
  }
  .diag_selected .diag_edge {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    animation-duration: 0.7s;
    pointer-events:none;
  }
  #fuwu_area dd{
    display: flex;
    align-items: center;
  }
  .btn1{
    display: block;
    width: 50%;
    height: 30px;
    float: left;
    background: url(../images/duoxuan.png)left center no-repeat;
    background-position-x: 9px;
    background-position-y: 4px;
    background-size: 18px 18px;
    font-size: 0.8rem;
    padding-left: 30px;
    box-sizing: border-box;
    border-bottom: 1px solid #f6ebfc;
    line-height: 24px;
  }
  .btn2{
    display: block;
    width: 50%;
    height: 30px;
    float: left;
    background: url(../images/qingchu.png)left center no-repeat;
    background-position-x: 9px;
    background-position-y: 4px;
    background-size: 18px 18px;
    font-size: 0.8rem;
    padding-left: 30px;
    box-sizing: border-box;
    border-bottom: 1px solid #f6ebfc;
    line-height: 24px;
  }
   /*複選框基本（未選中）的樣式*/
   .area_input{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-sizing:border-box;
    background-position: 0 0;
    cursor: pointer;
    margin-right: 4px;
    border-radius: 3px;
    border: 1px solid #999;
  }
  
  /* 複選框滑鼠按下時增加的樣式 */
  .area_input:active{
    background-position: center;
    background-color: #be8bdb;
    background-image: none;
  }
  
  /*複選框選中後增加的樣式*/
  .area_input:checked {
    background-position: center;
    background-color: #be8bdb;
    background-image: none;
  }
  
  .area_input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    box-sizing: border-box;
  }
  
  /*複選框選中後增加的樣式*/
  .area_input:checked:active{
    background-position: center;
    background-color: #be8bdb;
    background-image: none;
  }
  
  .area_input:checked:active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    box-sizing: border-box;
  }
  .country_input{
    display: none;
  }
  .diag-input-block span.country_text{
    display: inline-block;
    padding: 4px 10px;
    height: 100%;
    border-radius: 4px;
    background-color: #fbfbfb;
    border: 1px solid #e1c9e4;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
  }
  /*.country_text:hover{
    background-color: #c884cf;
    color: #fff;
  }*/
  .diag-input-block span.country_text.checked{
    background-color: #c884cf;
    color: #fff;
  }
  .diag-input-block span.country_text:last-child{
    margin-right: 0;
  }
  
  .yw_input{
    display: inline-block;
    width: 32.333333%;
    margin-right: 1%;
    height: 30px;
    line-height: 1.3;
    line-height: 38px\9;
    background-color: #fff;
    border: 1px solid #e1c9e4;
    border-radius: 4px;
    padding-left: 8px;
    box-sizing: border-box;
    font-size: 14px;
  }
  .yw_input:last-child{
    margin-right: 0;
  }
  .yw_input::-webkit-input-placeholder {
    color:#666;
    font-size:12px;
  } 
  .yw_input::-moz-placeholder {
    color:#666;
    font-size:12px;
  } 
  .yw_input:-ms-input-placeholder {
    color:#666;
    font-size:12px;
  }
  .shaixuan_button {
    width: 100%;
    padding: 10px 5px 0 0;
    box-sizing: border-box;
    height: 52px;
  }
  #search_send{
    padding:7px 15px;
    background-color: #c884cf;
    color: #fff;
    text-align: center;
    border: 0;
    outline: none;
    border-radius: 4px;
    float: right;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
  }
/* 小屏幕搜索按钮样式 */
.mobile-search-btn {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    outline: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-btn:hover {
    background: #f7f7f7;
}

.mobile-search-btn .search-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

@media screen and (max-width: 959px) {
    .back-icon-tip-container {
        left: -4px
    }

    .container {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        left: 0
    }

    .container.out {
        display: none
    }

    .container .panel-header {
        display: none
    }

    .floating-btn-sets {
        bottom: calc(48px + var(--horizontal) * 1px)
    }

    .dropdown-nav {
        display: flex !important;
    }

    .menu-icon-dropdown-nav {
        display: block
    }

    .user-info .user-name-box .user-name {
        font-size: 16px
    }

    /* 小屏幕搜索按钮显示 */
    .mobile-search-btn {
        display: flex !important;
        margin-right: 4px; /* 与dropdown-nav中的按钮间距，与其他图标间距一致 */
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* 搜索按钮隐藏状态 */
    .mobile-search-btn.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 调整dropdown-nav位置，确保按钮紧挨在一起 */
    .dropdown-nav {
        display: flex !important;
        align-items: center;
        gap: 0; /* 减小图标间距 */
    }

    /* 移动端隐藏 message-wrapper 和 user-wrapper */
    .message-wrapper,
    .user-wrapper {
        display: none !important;
    }

    /* 移动端显示 breadcrumb-wrapper */
    .breadcrumb-wrapper {
        display: block !important;
    }

    /* 移动端显示 vn-btn 和 laowo-btn */
    .qianse-button-new.vn-btn,
    .qianse-button-new.laowo-btn {
        display: flex !important;
    }

    /* input-box 初始隐藏（但slide-out和slide-in会覆盖） */
    .input-box:not(.slide-out):not(.slide-in) {
        display: none !important;
    }

    /* input-box 滑出前的准备状态（显示但不可见，在右侧） */
    .input-box.slide-out {
        display: flex !important;
        position: fixed !important;
        left: 150% !important;
        top: 16px !important; /* header高度72px，input-box高度40px，垂直居中 (72-40)/2 = 16px */
        transform: translate(-50%, 0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 101 !important;
        height: 40px !important;
        width: calc(24px + calc((100vw - 4 * 24px) / 3 * 2)) !important; /* 默认696px-959px的宽度 */
        /* 添加transition，确保关闭动画效果 */
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease !important;
    }

    /* input-box 滑出显示状态（从右边向左滑入到居中位置） */
    .input-box.slide-in {
        display: flex !important;
        position: fixed !important;
        left: 50% !important;
        top: 16px !important;
        transform: translate(-52%, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 101 !important;
        height: 40px !important;
        width: calc(24px + calc((100vw - 4 * 24px) / 3 * 2)) !important;
        /* 添加transition，确保动画效果 */
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease !important;
    }

    /* 小于等于695px时的宽度 */
    @media screen and (max-width: 695px) {
        .input-box.slide-in {
            width: calc(12px + calc((100vw - 3 * 12px) / 2 * 2)) !important;
        }
    }
}

@media screen and (min-width: 696px) and (max-width:959px) {
    .side-bar-component {
        display: none
    }

    .bottom-menu-component {
        display: flex
    }

    .acrivity-container {
        width: 70%
    }

    .bottom-menu {
        display: block
    }

    .side-bar {
        display: none
    }

    .user-item-box {
        padding: 16px
    }

    .avatar .user-image {
        width: 56px;
        height: 56px
    }

    .user-info {
        margin: 0 16px
    }

    .input-box {
        width: calc(24px + calc((100vw - 4 * 24px) / 3 * 2))
    }
}

@media screen and (max-width: 695px) {
    .side-bar-component {
        display: none
    }

    .bottom-menu-component {
        display: flex
    }

    .center-modal-container {
        width: 320px
    }

    .acrivity-container {
        width: 100%
    }

    .bottom-menu {
        display: block
    }

    .text {
        display: none
    }

    .side-bar {
        display: none
    }

    .user-item-box {
        padding: 12px 16px
    }

    .avatar .user-image {
        width: 40px;
        height: 40px
    }

    .user-info {
        font-size: 12px;
        margin: 0 12px;
        width: calc(100vw - 200px)
    }

    .user-info .user-desc {
        margin-top: 4px
    }

    .divider {
        margin: 0 6px
    }

    .input-box {
        width: calc(12px + calc((100vw - 3 * 12px) / 2 * 2))
    }

    .search-input {
        padding: 20px;
    }

    .sug-pad {
        opacity: 0
    }

    .input-button {
        /* opacity: 0 */
    }

    .min-width-search-icon {
        display: block;
        position: fixed;
        right: 52px
    }

    header {
        padding: 0 12px 0 16px
    }
}

@media screen and (min-width: 1728px) {
    .side-bar {
        width: calc(16px + calc((1728px - 7 * 32px) / 6 * 1));
        margin-left: 16px
    }

    .input-box {
        width: calc(32px + calc((1728px - 7 * 32px) / 6 * 2))
    }

    header {
        padding: 0 32px
    }

    .main-content.with-side-bar {
        padding-left: calc(32px + calc((1728px - 7 * 32px) / 6 * 1))
    }
}

@media screen and (min-width: 1424px) and (max-width:1727px) {
    .side-bar {
        width: calc(16px + calc((100vw - 7 * 32px) / 6 * 1));
        margin-left: 16px
    }

    .input-box {
        width: calc(32px + calc((100vw - 7 * 32px) / 6 * 2))
    }

    header {
        padding: 0 32px
    }

    .main-content.with-side-bar {
        padding-left: calc(32px + calc((100vw - 7 * 32px) / 6 * 1))
    }
}

@media screen and (min-width: 1192px) and (max-width:1423px) {
    .center-modal-container {
        width: 400px
    }

    .side-bar {
        width: calc(12px + calc((100vw - 6 * 24px) / 5 * 1));
        margin-left: 12px
    }

    .input-box {
        width: calc(24px + calc((100vw - 6 * 24px) / 5 * 2))
    }

    .main-content.with-side-bar {
        padding-left: calc(24px + calc((100vw - 6 * 24px) / 5 * 1))
    }
}

@media screen and (min-width: 960px) and (max-width:1191px) {
    .side-bar {
        width: calc(12px + calc((100vw - 5 * 24px) / 4 * 1));
        margin-left: 12px
    }

    .avatar .user-image {
        width: 64px;
        height: 64px
    }

    .input-box {
        width: calc(24px + calc((100vw - 5 * 24px) / 4 * 2))
    }

    .main-content.with-side-bar {
        padding-left: calc(24px + calc((100vw - 5 * 24px) / 4 * 1))
    }
}

@media screen and (min-width: 960px) {
    .container {
        width: 440px;
        height: calc(100vh - 64px);
        margin: 32px 0;
        padding: 8px;
        border-radius: 20px;
        box-shadow: var(--elevation-high-shadow);
        left: calc(100% - 440px);
        transform: translateX(-32px);
        transition: left .3s ease, transform .3s ease, box-shadow .3s ease
    }

    .container.out {
        transform: translateX(100%);
        box-shadow: none
    }

    .container.left {
        left: 0;
        transform: translateX(32px)
    }

    .container.left.out {
        transform: translateX(-100%);
        box-shadow: none
    }

    .container iframe {
        border-radius: 12px
    }

    .container .fullscreen-header {
        display: none
    }
}

@media screen and (min-width: 1424px) {
    .center-modal-container {
        width: 440px
    }
}

@media screen and (min-width: 696px) and (max-width:1191px) {
    .center-modal-container {
        width: 360px
    }
}

@keyframes spin-1c901116 {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes spin-a4fa5cbc {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes fadeInOut-a264b01a {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Toast 提示元件樣式 */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid #be8bdb;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info .toast-icon {
    color: #2196f3;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.toast-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Toast 確認對話框遮罩 */
.toast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease-out;
}

.toast-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.toast-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.toast-modal-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.toast-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.toast-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    outline: none;
}

.toast-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.toast-modal-btn-cancel:hover {
    background: #e0e0e0;
}

.toast-modal-btn-confirm {
    background: #be8bdb;
    color: #fff;
}

.toast-modal-btn-confirm:hover {
    background: #a679c8;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 滾動動作按鈕 */
.scroll-action-buttons {
    position: fixed !important;
    right: 24px !important;
    bottom: 80px !important;
    z-index: 1001 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.scroll-action-buttons.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: flex !important;
}

/* 卡片詳情等模態彈窗開啟時（body.modal-open），隱藏右側浮動的「刷新 / 回到頂部」按鈕 */
body.modal-open .scroll-action-buttons,
body.modal-open .scroll-action-buttons.visible {
    display: none !important;
}

.scroll-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.scroll-action-btn:hover {
    background: #f7f7f7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.scroll-action-btn:active {
    transform: translateY(0) scale(0.95);
}

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

.refresh-btn.rotating svg {
    animation: rotateRefresh 0.6s ease-in-out;
}

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

@media screen and (max-width: 959px) {
    .scroll-action-buttons {
        right: 16px;
        bottom: 70px;
    }
    
    .scroll-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .scroll-action-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* 卡片詳情彈層 - 小紅書樣式（左圖右文） */
.feed-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001; /* 高于底部导航栏的z-index: 1000 */
    opacity: 0;
    visibility: hidden;
}

/* 弹层内的评论输入框和回复模块，只在弹层打开时显示 */
.feed-detail-modal:not(.active) .comment-input-footer,
.feed-detail-modal:not(.active) .reply-input-module {
    display: none !important;
}

/* 弹层打开时，comment-input-footer默认显示 */
.feed-detail-modal.active .comment-input-footer {
    display: block !important;
}

.feed-detail-modal {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.feed-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.feed-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: none; /* 遮罩层立即显示，无渐显效果 */
}

.feed-detail-modal.active .feed-detail-overlay {
    opacity: 1;
    transition: none; /* 遮罩层立即显示，无渐显效果 */
}

.feed-detail-content {
    position: absolute;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center center;
    max-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: none; /* 禁用transition，避免渐隐效果 */
    visibility: hidden; /* 初始完全隐藏 */
}

.feed-detail-modal.active .feed-detail-content {
    /* 不在active时立即显示，由JavaScript控制显示时机 */
    transition: none;
}

/* 弹层内容状态类 */
.feed-detail-content.loading {
    opacity: 0;
    pointer-events: none;
    visibility: visible;
    display: flex;
    transition: none;
}

.feed-detail-content.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.feed-detail-content.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.feed-detail-content.no-transition {
    transition: none !important;
}

.feed-detail-content.has-transition {
    transition: width 0.3s ease, height 0.3s ease;
}

/* 关闭按钮状态类 */
.feed-detail-close.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.feed-detail-close.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

/* 遮罩层状态类 */
/* 拖动时的透明度由内联样式控制（动态值），不需要类 */

/* 视频控制条状态类 */
.feed-detail-video-controls.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feed-detail-video-controls.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 全屏视频控制条状态类 */
.feed-fullscreen-video-controls.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feed-fullscreen-video-controls.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* body overflow 状态类 */
body.modal-open {
    overflow: hidden !important;
}

/* 全屏幻灯片状态类 */
.feed-fullscreen-slider.no-transition {
    transition: none !important;
}

/* ============================================
   评论列表样式 - 参考 leda-details.html
   ============================================ */

/* 评论项 */
.review-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 0;
    background: transparent;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 0;
    box-shadow: none;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.review-avatar {
    flex-shrink: 0;
}

.review-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f5f5f5;
}

.review-main {
    width: 100%;
    position: relative;
}

/* 置顶标签 */
.zhiding {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff2442 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 36, 66, 0.3);
    font-family: "PingFang SC", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 精華標簽 */
.jinghua {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 179, 0, 0.3);
    font-family: "PingFang SC", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.review-header {
    margin-bottom: 8px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reviewer {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    font-family: pingfang;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reviewer:hover {
    color: #007aff;
}

.review-date {
    color: #b3b3b3;
    font-size: 11px;
}

.review-content {
    color: #000;
    line-height: 1.5;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-word;
    font-family: pingfang;
    margin-top: 6px;
}

/* 已删除评论内容样式 */
.deleted-content {
    color: #f44444;
    font-style: italic;
    background: #fce8ea;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    border-left: 3px solid #ec1b21;
    font-size: 13px;
}

/* 当评论被删除时，隐藏操作按钮 */
.review-content:has(.deleted-content)~.review-actions {
    display: none !important;
}

/* 评论操作按钮 */
.review-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: center;
    margin-top: 2px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #8a919f;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.action-btn.active svg,
.action-btn.liked svg {
    color: #ff2442 !important;
}

.action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.action-btn span {
    font-size: 12px;
    font-family: AVANTI;
}

.like-btn.active {
    color: #ff2442;
}

.like-btn.active svg {
    animation: likeAnimation 0.4s ease;
    color: #ff2442;
}

.like-btn.active svg path {
    fill: currentColor;
}

/* SVG图标样式 */
.action-btn svg,
.reply-action-btn svg {
    display: block;
    transition: all 0.2s ease;
}

.action-btn:hover svg,
.reply-action-btn:hover svg {
    transform: scale(1.1);
}

@keyframes likeAnimation {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* 评论列表容器 */
.review-list {
    background: #fff;
    border-radius: 12px;
    padding: 0 16px;
}

/* 回复列表样式 */
.reply-list {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f8fa;
    border-radius: 6px;
    text-align: left;
    display: block;
}

.reply-list .reply-item {
    border-bottom: 1px dashed #ddd;
    padding: 10px;
}

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

/* 空的回复列表隐藏 */
.reply-list:empty {
    display: none;
}

/* 回复操作按钮 */
.reply-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 6px;
    padding-top: 4px;
    align-items: center;
}

.reply-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #8a919f;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.reply-action-btn.active svg,
.reply-action-btn.liked svg {
    color: #ff2442 !important;
}

.reply-action-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.reply-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

.reply-action-btn.like-btn.active {
    color: #ff2442;
}

.reply-action-btn.like-btn.active svg {
    color: #ff2442;
}

.reply-action-btn.like-btn.active svg path {
    fill: currentColor;
}

.reply-item {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 6px;
    word-break: break-all;
    font-family: pingfang;
    display: block;
}

.reply-item:last-child {
    margin-bottom: 0;
}

/* reply-item内的直接文本和元素样式 */
.reply-item>.reply-user,
.reply-item>.reply-text {
    display: inline-block;
}

.reply-item>.reply-time,
.reply-item>.reply-actions {
    display: block;
}

.reply-item>.reply-actions,
.reply-item-new>.reply-actions {
    display: flex;
    flex-wrap: nowrap;
}

.reply-item-new {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 6px;
    margin-top: 8px;
    margin-left: 10px;
    padding: 8px 10px;
    padding-left: 12px;
    word-break: break-all;
    font-family: pingfang;
    background: #fff;
    border-left: 2px solid #e6f4fc;
    border-radius: 4px;
}

/* 嵌套的reply-item-new，每层再增加缩进 */
.reply-item-new .reply-item-new {
    margin-left: 10px;
    border-left-color: #ddeffa;
}

.reply-item-new .reply-item-new .reply-item-new {
    margin-left: 10px;
    border-left-color: #aae3fd;
}

.reply-item-new .reply-item-new .reply-item-new .reply-item-new {
    margin-left: 10px;
    border-left-color: #83d5fb;
}

.reply-user {
    color: #000;
    font-weight: 500;
    font-size: 14px;
}

.reply-to {
    color: #b3b3b3;
    margin: 0 2px;
    font-size: 12px;
}

.reply-time {
    color: #b3b3b3;
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.reply-target {
    color: #007aff;
    font-size: 14px;
}

.reply-text {
    color: #000;
    font-size: 14px;
}

.show-more-replies {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 0;
    background: none;
    border: none;
    color: #043b88;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-weight: 600;
    font-family: pingfang;
}

.show-more-replies:hover {
    opacity: 0.7;
}

/* 隐藏的回复列表 */
.hidden-replies {
    display: none;
}

.hidden-replies .reply-item {
    border-bottom: 1px dashed #ddd;
    padding: 10px;
}

.hidden-replies .reply-item:last-child {
    border-bottom: none;
}

/* 回复输入框样式 */
.reply-input-box {
    margin-top: 10px;
    padding: 0;
    background: transparent;
}

.reply-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
    background: #f7f8fa;
    box-sizing: border-box;
}

.reply-input:focus {
    background: #fff;
    border-color: #ff2442;
}

.reply-input::placeholder {
    color: #b3b3b3;
}

.reply-actions-box {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.reply-cancel-btn,
.reply-submit-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.reply-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.reply-cancel-btn:hover {
    background: #e8e8e8;
}

.reply-submit-btn {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.2);
}

.reply-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
    transform: translateY(-1px);
}

.reply-submit-btn:active {
    transform: translateY(0);
}

.reply-submit-btn:disabled {
    background: #ffb3bf;
    cursor: not-allowed;
    box-shadow: none;
}

/* 评论输入框相关样式 */
.comment-input-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px;
    padding-top: 26px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    z-index: 10;
    display: none; /* 默认隐藏，只在弹层打开时显示 */
    box-sizing: border-box;
}

/* 移动端：避免被底部导航栏遮挡 */
@media screen and (max-width: 768px) {
    .feed-detail-modal.active .comment-input-footer,
    .feed-detail-modal.active .reply-input-module {
        z-index: 1002 !important; /* 高于底部导航栏的z-index: 1000 */
    }
}

.comment-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.comment-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    background: #f8f9fa;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.comment-input:focus {
    background: #fff;
    border-color: #d0d0d0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.comment-input::placeholder {
    color: #999;
}

.interaction-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.interaction-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.interaction-stats .stat-item:hover {
    transform: translateY(-1px);
}

.interaction-stats .stat-item svg {
    width: 16px;
    height: 16px;
    color: #666;
    flex-shrink: 0;
}

.interaction-stats .stat-item.active svg {
    color: #ff2442 !important;
}

.interaction-stats .stat-item span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.interaction-stats .stat-item:hover svg,
.interaction-stats .stat-item:hover span {
    color: #333;
}

/* 分享按钮特殊样式 */
.interaction-stats .stat-item:last-child {
    gap: 0;
    padding: 6px;
}

.interaction-stats .stat-item:last-child svg {
    width: 18px;
    height: 18px;
}

/* 在弹层中应用评论样式 */
.feed-detail-comments .review-list {
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
    min-height: 100px;
}

/* 评论加载状态 */
.comments-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #813f91;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-text {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    letter-spacing: 2px;
}

/* 评论加载完成提示 */
.comments-end-tip {
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.comments-end-tip span {
    font-size: 12px;
    color: #999;
    font-family: pingfang;
    font-weight: 600;
}

/* 18禁警告弹层样式 - 使用 feed-detail-modal 复用遮罩 */
#warningModal {
    z-index: 10001;
}

#warningModal .feed-detail-overlay {
    z-index: 10002;
}

#warningModal .warnning_diag {
    z-index: 10003;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.warnning_diag {
    width: 520px;
    height: 520px;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    z-index: 10003;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 16px solid #be8bdb;
    border-radius: 8px;
}

.warnning_top {
    width: 100%;
    height: 160px;
    background: url(../images/18.png) top center no-repeat;
    background-size: contain;
}

.warnning_concent {
    width: 90%;
    height: 185px;
    margin: 0 auto;
    text-align: justify;
    line-height: 24px;
    font-size: 14px;
    color: #333;
    padding-top: 10px;
}

.not_prompt {
    width: 90%;
    height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.not_prompt span {
    display: block;
    height: 18px;
    line-height: 18px;
    font-size: 14px;
    color: #666;
}

.wd_bottom {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.ok_btn,
.no_btn {
    min-width: 180px;
    height: 45px;
    background-color: #be8bdb;
    color: #fff;
    font-size: 16px;
    line-height: 45px;
    text-align: center;
    border: 0;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.ok_btn:hover,
.no_btn:hover {
    background-color: #a06bc4;
}

.isCancel {
    width: 18px;
    height: 18px;
    border: 1px solid #be8bdb;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.isCancel:checked {
    background-color: #be8bdb;
}

.isCancel:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .warnning_diag {
        width: 90%;
        max-width: 520px;
        height: auto;
        min-height: 480px;
        padding: 16px;
        border-width: 12px;
    }

    .warnning_top {
        height: 120px;
    }

    .warnning_concent {
        height: auto;
        min-height: 150px;
        font-size: 13px;
        line-height: 22px;
    }

    .ok_btn,
    .no_btn {
        min-width: 140px;
        font-size: 14px;
        height: 40px;
        line-height: 40px;
    }
}

.feed-detail-comments .review-item {
    padding: 14px 0;
}

.feed-detail-comments .review-item:last-child {
    border-bottom: 0;
}

/* 克隆元素：feed-detail-modal.js 用 transform（GPU 加速）；index/topping 用 left/top/width/height */
.feed-detail-clone {
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    overflow: hidden;
    will-change: transform;
    transform-origin: 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease;
}

/* 克隆元素内的图片容器和图片，跟随克隆元素一起放大 */
.feed-detail-clone .feed-card-image {
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* 防止在flex布局中被压缩 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* 与真实弹层的背景色一致 */
}

.feed-detail-clone .feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* 克隆元素内的内容区域 */
.feed-detail-clone .feed-card-content {
    flex-shrink: 0; /* 防止在flex布局中被压缩 */
    overflow-y: auto;
}

/* 關閉按鈕 - 相對於 feed-detail-content 容器右上角定位 */
.feed-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 0;
    outline: none;
    z-index: 200;
    backdrop-filter: blur(8px);
    /* background: rgba(0, 0, 0, 0.5); */
    /* 默认隐藏，避免闪现 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 只有在弹层完全显示后才显示关闭按钮 */
.feed-detail-modal.active .feed-detail-content[style*="opacity: 1"] ~ .feed-detail-close,
.feed-detail-modal.active .feed-detail-close.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feed-detail-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.feed-detail-close:active {
    transform: scale(0.9);
}

.feed-detail-close svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* 左側圖片區域 */
.feed-detail-image-section {
    width: 100%;
    flex: 1;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    /* 确保宽度固定，不会因为内容变化 */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 图片区域显示状态类 */
.feed-detail-image-section.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feed-detail-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* 防止图片超出容器 */
    z-index: 1; /* 确保子元素可以正确显示 */
    /* 确保宽度固定，不会因为内容变化 */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 图片容器显示状态类 */
.feed-detail-image-container.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 幻灯片容器 */
.feed-detail-slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    /* 移除 overflow: hidden，由外层容器 .feed-detail-image-container 来处理裁剪 */
    touch-action: pan-y pinch-zoom;
    cursor: pointer;
    /* 确保 slider 宽度固定，不会因为内容变化 */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 幻灯片容器显示状态类 */
.feed-detail-slider.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 幻灯片容器无过渡动画类（用于触摸滑动时） */
.feed-detail-slider.no-transition {
    transition: none !important;
}

/* 幻灯片项 */
.feed-detail-slide {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 0.3;
}

.feed-detail-slide.active {
    opacity: 1;
}

/* 幻灯片项显示状态类 */
.feed-detail-slide.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feed-detail-slide img,
.feed-detail-slide video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 图片显示状态类 */
.feed-detail-slide img.visible,
.feed-detail-slide video.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 图片加载失败状态类 */
.feed-detail-slide img.error {
    opacity: 0.3;
}

.feed-detail-slide video {
    background: #000;
}


/* 左右切换按钮 */
.feed-detail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
    opacity: 1;
}

.feed-detail-nav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.feed-detail-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.feed-detail-nav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.feed-detail-nav-prev {
    left: 16px;
}

.feed-detail-nav-next {
    right: 16px;
}

/* 数值指示器 */
.feed-detail-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "PingFang";
}

/* 960px以下分辨率时，数值指示器水平居中 */
@media screen and (max-width: 959px) {
    .feed-detail-counter {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.feed-detail-counter-current {
    font-weight: 600;
}

.feed-detail-counter-separator {
    opacity: 0.6;
}

.feed-detail-counter-total {
    opacity: 0.8;
}

/* 放大镜图标 */
.feed-detail-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
    opacity: 0;
    pointer-events: none;
}

/* 只在图片类型时显示放大图标 */
.feed-detail-image-section.has-image:hover .feed-detail-zoom-btn {
    opacity: 1;
    pointer-events: auto;
}

/* 视频类型时隐藏放大图标 */
.feed-detail-image-section.has-video .feed-detail-zoom-btn {
    opacity: 0 !important;
    pointer-events: none !important;
}

.feed-detail-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.feed-detail-zoom-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.feed-detail-zoom-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* 视频播放控制 */
.feed-detail-video-controls {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

/* 中央播放按钮 */
/* 底部控制条 */
.feed-detail-controls-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 12px 16px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
    z-index: 102 !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* 进度条容器 */
.feed-detail-progress-container {
    width: 100% !important;
    position: relative !important;
    cursor: pointer !important;
}

.feed-detail-progress-bar {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    position: relative !important;
    cursor: pointer !important;
}

.feed-detail-progress-filled {
    height: 100% !important;
    background: #fff !important;
    border-radius: 2px !important;
    width: 0% !important;
    transition: width 0.1s linear !important;
}

.feed-detail-progress-handle {
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    background: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.feed-detail-progress-bar:hover .feed-detail-progress-handle,
.feed-detail-progress-bar:active .feed-detail-progress-handle {
    opacity: 1 !important;
}

/* 控制按钮区域 */
.feed-detail-controls-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* 控制条播放/暂停按钮 */
.feed-detail-controls-play-btn {
    margin-right: 4px !important;
}

.feed-detail-controls-play-icon {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* 时间显示 */
.feed-detail-time {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

.feed-detail-time-separator {
    margin: 0 2px !important;
}

/* 控制按钮 */
.feed-detail-control-btn {
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    position: relative !important;
    padding: 0 !important;
}

.feed-detail-control-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.feed-detail-control-btn svg {
    width: 20px;
    height: 20px ;
    display: block !important;
}

/* 音量按钮 */
.feed-detail-volume-btn {
    position: relative !important;
}

.feed-detail-volume-icon {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
}

/* 音量滑块容器 */
.feed-detail-volume-slider-container {
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    margin-bottom: 8px !important;
    padding: 12px 8px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 6px !important;
    z-index: 1000 !important;
}

.feed-detail-volume-slider {
    width: 4px !important;
    height: 80px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    position: relative !important;
    cursor: pointer !important;
}

.feed-detail-volume-filled {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: 2px !important;
    height: 100% !important;
    transition: height 0.1s linear !important;
}

.feed-detail-volume-handle {
    position: absolute !important;
    left: 50% !important;
    transform: translate(-50%, 50%) !important;
    width: 12px !important;
    height: 12px !important;
    background: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transition: opacity 0.2s ease !important;
}

/* 全屏轮播模态框 */
.feed-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feed-fullscreen-modal.opening .feed-fullscreen-content {
    opacity: 0;
    transform: scale(0.6);
}

.feed-fullscreen-modal.active .feed-fullscreen-content {
    opacity: 1;
    transform: scale(1);
}

.feed-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.feed-fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
}

.feed-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.feed-fullscreen-close:active {
    transform: scale(0.95);
}

.feed-fullscreen-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* 全屏幻灯片容器 */
.feed-fullscreen-slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    overflow: visible;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全屏幻灯片项 */
.feed-fullscreen-slide {
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    flex: 0 0 100vw;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
}

/* 全屏模态框中隐藏置顶标签 */


/* 隐藏置顶标签的类 */
.zhiding-badge-hide {
    display: none;
}

.feed-fullscreen-slide.active {
    opacity: 1;
}

.feed-fullscreen-slide img,
.feed-fullscreen-slide video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.feed-fullscreen-slide video {
    background: #000;
}

/* 全屏左右切换按钮 */
.feed-fullscreen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
}

.feed-fullscreen-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.feed-fullscreen-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.feed-fullscreen-nav-btn svg {
    width: 28px;
    height: 28px;
    display: block;
}

.feed-fullscreen-nav-prev {
    left: 24px;
}

.feed-fullscreen-nav-next {
    right: 24px;
}

/* 全屏数值指示器 */
.feed-fullscreen-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110 !important;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "PingFang";
    pointer-events: none;
}

.feed-fullscreen-counter-current {
    font-weight: 600;
}

.feed-fullscreen-counter-separator {
    opacity: 0.6;
}

.feed-fullscreen-counter-total {
    opacity: 0.8;
}

/* 全屏视频播放控制 */
.feed-fullscreen-video-controls {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.feed-fullscreen-play-btn {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    position: relative !important;
    z-index: 101 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.feed-fullscreen-play-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

.feed-fullscreen-play-btn:active {
    transform: scale(0.95) !important;
}

.feed-fullscreen-play-btn svg {
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    margin-left: 3px !important;
}

.feed-fullscreen-play-btn.playing {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* 右側內容區域 */
.feed-detail-content-section {
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    /* max-height: 50vh; */
    overflow: visible; /* 改为visible，允许comment-input-footer和reply-input-module显示在底部 */
    overflow-x: hidden; /* 防止水平滚动超出范围 */
    -webkit-overflow-scrolling: touch;
    position: relative; /* 为comment-input-footer和reply-input-module定位提供参考 */
}

/* 作者信息 */
.feed-detail-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.feed-detail-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-detail-author-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-detail-author-name {
    font-size: 16px;
    font-weight: 500;
    color: #5c5c5c;
    display: block;
    font-family: "PingFang";
    flex-shrink: 0;
}

/* 收藏按钮 */
.feed-detail-follow-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: "PingFang";
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
}

.feed-detail-follow-btn:hover {
    background: #ff4059;
    transform: scale(1.02);
}

.feed-detail-follow-btn:active {
    transform: scale(0.98);
}

.feed-detail-follow-btn.following {
    background: #f0f0f0;
    color: #666;
}

.feed-detail-follow-btn.following:hover {
    background: #e0e0e0;
}

.feed-detail-follow-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    font-weight: 600;
}

/* 標題、描述和評論容器 */
.feed-detail-text-content {
    padding: 16px;
    /* padding-bottom: 200px;  */
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 移动端：feed-detail-text-content不单独滚动，跟随整体滚动 */
@media screen and (max-width: 768px) {
    .feed-detail-text-content {
        overflow: visible;
        flex: 0 0 auto;
    }
}

.feed-detail-title {
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-family: "PingFang";
    flex-shrink: 0;
}

.feed-detail-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    flex-shrink: 0;
}

/* 操作按鈕 */
.feed-detail-actions {
    width: auto;
    margin-right: 0;
    transition: all .2s;
    opacity: 1;
}

.feed-detail-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    outline: none;
    transition: all 0.2s ease;
    min-width: 60px;
}

.feed-detail-action-btn:active {
    transform: scale(0.95);
}

.feed-detail-action-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.feed-detail-action-count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    min-width: 20px;
    text-align: center;
}

.feed-detail-action-btn.like svg path {
    fill: none;
    stroke: currentColor;
}

.feed-detail-action-btn.like.active {
    color: #ff2442;
}

.feed-detail-action-btn.like.active svg path {
    fill: #ff2442;
    stroke: #ff2442;
}

.feed-detail-action-btn.collect.active {
    color: #ff2442;
}

.feed-detail-action-btn.collect.active svg path {
    fill: #ff2442;
    stroke: #ff2442;
}

/* 評論列表 - 參考小紅書結構 */
.comments-container,
.feed-detail-comments {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    margin-top: 16px;
    flex-shrink: 0;
}

.feed-detail-comments-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
    justify-content: flex-end;
}

.feed-detail-comments-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: "PingFang SC", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.feed-detail-comments-count {
    font-size: 14px;
    color: #aa6ad1;
    font-weight: 400;
    margin-left: 4px;
}

.feed-detail-comments-list {
    padding: 0;
}

.feed-detail-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    position: relative;
    transition: background-color 0.2s ease;
}

.feed-detail-comment-item:hover {
    background-color: #fafafa;
}

.feed-detail-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.feed-detail-comment-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-detail-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.feed-detail-comment-author {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    font-family: "PingFang";
}

.feed-detail-comment-author:hover {
    color: #ff2442;
}

.feed-detail-comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
    font-weight: 400;
}

.feed-detail-comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.feed-detail-comment-time {
    color: #999;
    cursor: pointer;
}

.feed-detail-comment-like {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    transition: color 0.2s ease;
    font-size: 12px;
}

.feed-detail-comment-like:hover {
    color: #ff2442;
}

.feed-detail-comment-like.active {
    color: #ff2442;
}

.feed-detail-comment-like svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.feed-detail-comment-like:active svg {
    transform: scale(0.9);
}

.feed-detail-comment-like-count {
    font-size: 12px;
    line-height: 1;
}

/* 評論輸入框容器 */
.feed-detail-comment-input-wrapper {
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    transition: all .2s;
}

.feed-detail-comment-input {
    flex: 1;
    position: relative;
    min-width: 70px;
}

.feed-detail-comment-input:focus-within {
    background: #f0f0f0;
}

.feed-detail-comment-input-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    font-family: "PingFang";
    padding: 0;
    line-height: 20px;
}

.feed-detail-comment-input-field::placeholder {
    color: #999;
}

.feed-detail-comment-send-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff2442;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.feed-detail-comment-send-btn:hover {
    opacity: 1;
}

.feed-detail-comment-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.feed-detail-comment-send-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* 以圖搜尋結果頁 */
.image-result-page {
    background: #f7f7f7;
    min-height: 100vh;
    font-family: "PingFang", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

.image-result-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.image-result-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ff2442;
    text-decoration: none;
}

.image-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.image-result-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.image-result-btn.primary {
    background: #ff2442;
    color: #fff;
    border-color: #ff2442;
}

.image-result-btn.ghost {
    background: transparent;
}

.image-result-btn:hover {
    opacity: 0.9;
}

.image-result-main {
    max-width: 1100px;
    margin: 24px auto 60px;
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.image-result-hero {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 32px;
    display: flex;
    gap: 32px;
}

.image-result-hero-image {
    flex: 0 0 48%;
    background: #000;
    border-radius: 12px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-result-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-result-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 36, 66, 0.12);
    color: #ff2442;
    font-size: 13px;
    font-weight: 600;
}

.image-result-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.image-result-similarity {
    font-size: 16px;
    color: #666;
}

.image-result-similarity strong {
    font-size: 28px;
    color: #ff2442;
    margin-left: 8px;
}

.image-result-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.image-result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.image-result-meta .meta-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
}

.image-result-meta .meta-label {
    font-size: 13px;
    color: #999;
}

.image-result-meta .meta-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

.image-result-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.image-result-grid {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.image-result-grid .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.image-result-grid h2 {
    font-size: 20px;
    margin: 0;
}

.image-result-grid .section-subtitle {
    font-size: 14px;
    color: #999;
}

.image-result-page .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.image-result-empty {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px dashed #ddd;
}

.image-result-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

@media screen and (max-width: 900px) {
    .image-result-hero {
        flex-direction: column;
    }

    .image-result-hero-image {
        flex: unset;
        width: 100%;
        min-height: 280px;
    }
}

@media screen and (max-width: 600px) {
    .image-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .image-result-main {
        padding: 0 16px 32px;
    }

    .image-result-hero {
        padding: 24px;
    }
}

/* 桌面端樣式 - 左圖右文佈局 */
@media screen and (min-width: 769px) {
    .feed-detail-content {
        max-width: 900px;
        max-height: 85vh;
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) translateY(100%);
        border-radius: 12px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
        flex-direction: row;
        overflow: hidden;
    }
    
    .feed-detail-modal.active .feed-detail-content {
        transform: translate(-50%, -50%) translateY(0);
    }
    
    .feed-detail-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .feed-detail-close svg {
        width: 22px;
        height: 22px;
    }
    
    /* 左側圖片區域 */
    .feed-detail-image-section {
        width: 60%;
        max-width: 540px;
        min-height: auto;
        height: 100%;
        flex: 0 0 60%;
        border-radius: 12px 0 0 12px;
    }
    
    .feed-detail-image-container {
        height: 100%;
    }
    
    .feed-detail-image {
        max-width: 100%;
        max-height: 100%;
    }
    
    /* 右側內容區域 */
    .feed-detail-content-section {
        width: 40%;
        flex: 0 0 40%;
        max-height: 85vh;
        border-radius: 0 12px 12px 0;
        position: relative !important; /* 确保comment-input-footer和reply-input-module能相对定位 */
        overflow: visible !important; /* 允许comment-input-footer和reply-input-module显示在底部 */
    }
    
    .feed-detail-author-info {
        padding: 20px 20px 16px;
    }
    
    .feed-detail-author-avatar {
        width: 44px;
        height: 44px;
    }
    
    .feed-detail-author-name {
        font-size: 16px;
    }
    
    .feed-detail-text-content {
        padding: 16px 20px;
        /* padding-bottom: 200px;  */
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .feed-detail-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .feed-detail-description {
        font-size: 15px;
    }
    

    
    .feed-detail-action-btn {
        padding: 8px 16px;
        min-width: auto;
    }
    
    .feed-detail-action-btn svg {
        width: 26px;
        height: 26px;
    }
    
    /* 評論列表 - 桌面端 */
    .feed-detail-comments {
        margin-top: 16px;
    }
    
    .feed-detail-comments-header {
        padding: 16px 0 12px;
    }
    
    .feed-detail-comment-item {
        padding: 14px 0;
    }
    
    .feed-detail-comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    /* 評論輸入框 - 桌面端 */
    .feed-detail-comment-input-wrapper {
        padding: 14px 20px;
        gap: 16px;
    }
    

    
    .feed-detail-comment-input {
        padding: 10px 16px;
    }
    
    .feed-detail-comment-send-btn {
        width: 32px;
        height: 32px;
    }
    
    .feed-detail-comment-send-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .feed-detail-action-count {
        font-size: 13px;
    }
    
    /* 桌面端：comment-input-footer和reply-input-module样式 */
    .comment-input-footer {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        padding-top: 26px !important;
        background: #fff !important;
        border-top: 1px solid #f5f5f5 !important;
        border-radius: 0 0 12px 0 !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
    }
    
    .reply-input-module {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        background: #fff !important;
        border-radius: 0 0 12px 0 !important;
        border-top: 1px solid #f5f5f5 !important;
        z-index: 11 !important;
        box-sizing: border-box !important;
    }
    
    /* 桌面端：作者信息不固定 */
    .feed-detail-author-info {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }
    
    /* 桌面端：图片区域不限制高度 */
    .feed-detail-image-section {
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* 桌面端：内容区域正常布局 */
    .feed-detail-content-section {
        width: 40% !important;
        flex: 0 0 40% !important;
        max-height: 85vh !important;
        border-radius: 0 12px 12px 0 !important;
        position: relative !important;
        overflow: visible !important;
        padding-top: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
    }
    
    /* 桌面端：文本内容可以滚动 */
    .feed-detail-text-content {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 16px 20px !important;
        padding-bottom: 90px !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
}

/* 移動端優化 */
@media screen and (max-width: 768px) {
    /* 弹层遮盖底部导航栏 */
    .feed-detail-modal {
        z-index: 1001 !important; /* 高于底部导航栏的z-index: 1000 */
    }
    
    /* 移动端关闭按钮 */
    .feed-detail-close {
        top: 18px !important;
        right: 12px;
    }
    
    .feed-detail-content {
        border-radius: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        transform: none;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-top: 73px; /* 为固定的作者信息预留空间 */
        padding-bottom: 70px; /* 为固定的评论输入框预留空间 */
    }
    
    .feed-detail-image-section {
        min-height: 60vh;
        max-height: 60vh;
    }
    
    /* 作者信息固定在顶部 */
    .feed-detail-author-info {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        flex-shrink: 0;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 16px;
    }
    
    /* 图片区域 - 移除最大高度限制，不单独滚动 */
    .feed-detail-image-section {
        width: 100%;
        flex: 0 0 auto;
        min-height: 60vh;
        max-height: 60vh;
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    
    /* 内容区域 - 移除顶部padding和间距 */
    .feed-detail-content-section {
        width: 100%;
        flex: 0 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
        position: relative;
        background: #fff;
        padding-top: 0;
        margin: 0;
        margin-top: 0 !important; /* 移除与图片区域的间距 */
    }
    
    /* 移除图片区域和内容区域之间的任何间距 */
    .feed-detail-image-section + .feed-detail-content-section {
        margin-top: 0 !important;
    }
    
    /* 文本内容和评论列表不单独滚动，跟随父容器滚动 */
    .feed-detail-text-content {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible; /* 移动端不单独滚动，跟随整体滚动 */
        padding: 16px 20px;
        /* padding-bottom: 200px;  */
        display: flex;
        flex-direction: column;
        margin: 0;
    }
    
    /* 评论列表不单独滚动 */
    .feed-detail-comments-list {
        overflow: visible;
        max-height: none;
    }
    
        /* 移动端回复输入模块固定在底部 */
    .feed-detail-modal .reply-input-module.mobile-fixed {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1002 !important;
        margin-top: 0 !important;
        padding: 16px !important;
        border-radius: 0 !important;
        border-top: 1px solid #f5f5f5 !important;
        background: #fff !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* 评论输入框固定在底部 */
    .feed-detail-content-section .pl-input-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        flex-shrink: 0;
        border-top: 1px solid #f0f0f0;
        margin-bottom: 0;
        padding: 12px 16px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .feed-detail-action-btn {
        padding: 8px;
        min-width: 50px;
    }
    
    .feed-detail-action-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .feed-detail-action-count {
        font-size: 11px;
    }
    .comment-input-footer {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        padding-top: 26px !important;
        background: #fff !important;
        border-top: 1px solid #f5f5f5 !important;
        z-index: 1002 !important;
        display: none;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        transform: none !important;
        margin-bottom: 0 !important;
    }
}


/* 底部导航栏（移动端） */
.bottom-nav {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 77px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    align-items: center;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    text-decoration: none;
    color: #999;
    transition: color 0.2s ease;
    position: relative;
    height: 100%;
    min-width: 0;
}



.bottom-nav-item:active {
    opacity: 0.7;
}

.bottom-nav-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
    stroke: currentColor;
    fill: none;
    transition: all 0.2s ease;
    /* 支持图片显示 */
    object-fit: contain;
    display: block;
}

.bottom-nav-item.active .bottom-nav-icon {
    stroke: #813f91;
}

/* 訊息按钮右上角小红点 - 与图标右上角叠合 */
.bottom-nav-item[data-page="message"]::after {
    content: '';
    position: absolute;
    top: 14px;
    right: calc(50% - 12px);
    width: 10px;
    height: 10px;
    background-color: #ff2442;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-sizing: border-box;
    z-index: 10;
}

.bottom-nav-label {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bottom-nav-label.fatie{
    color: #ff2e4d;
    font-weight: 800;
    font-size: 16px;
}
.bottom-nav-publish {
    position: relative;
    /* color:#ff0b0b; */
    font-weight: 600;
    font-size: 14px!important;
}
.bottom-nav-publish svg{
    width: 36px;
    height: 36px;
    color: #ff2e4d;
    fill: #ff2e4d;
}

.bottom-nav-item.active .bottom-nav-label {
    color: #813f91;
    font-weight: 700;
    font-family: "PingFang";
    font-size: 14px;
}

/* 960px以下：body 禁滚 + 内部容器滚动，确保 header/bottomNav 固定 */
@media screen and (max-width: 959px) {
    html {
        height: 100% !important;
        overflow: hidden !important;
    }

    body {
        height: 100% !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }

    .layout {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .header-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        flex-shrink: 0;
        width: 100% !important;
        z-index: 100;
        background: #fff !important;
    }

    .main-container {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        padding-bottom: 87px;
    }

    .main-content {
        padding-top: 0 !important;
    }

    /* 移动端：滚动容器是 .main-container，header 在其外部并列，sticky top 设为 0 即可吸附在 header 下方 */
    .content-container {
        top: 0;
        padding-bottom: 10px;
    }

    .bottom-nav {
        display: flex !important;
        position: sticky !important;
        bottom: 0!important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
}

/* 960px以上隐藏底部导航栏 */
@media screen and (min-width: 960px) {
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .main-container {
        padding-bottom: 0;
    }
}

/* ============================================
   底部评论输入框和回复模块样式 - 参考 leda-details.html
   ============================================ */

/* 新的回复输入模块样式 - 两行布局 */
.reply-input-module {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #f5f5f5;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    display: none;
}

/* 回复目标信息 */
.reply-target-info {
    display: none;
    padding: 8px 12px;
}

.reply-target-header {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    text-align: left;
}

.reply-target-text {
    color: #999;
    margin-right: 4px;
}

.reply-target-user {
    color: #ff2442;
    font-weight: 500;
}

.reply-target-content {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框行 */
.input-row {
    margin-bottom: 12px;
}

.reply-text-input {
    width: 100%;
    padding: 12px 32px;
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 60px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: none;
    min-height: 45px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
    overflow-y: hidden;
    height: auto;
}

.reply-text-input:focus {
    background: rgba(0, 0, 0, 0.05);
}

.reply-text-input::placeholder {
    color: #999;
}

/* 控制行 */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0; /* 允许flex子元素收缩 */
    flex-wrap: nowrap; /* 防止换行 */
}

/* 左侧控制按钮 */
.left-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* 防止收缩 */
    min-width: 0;
}

/* 右侧控制按钮 */
.right-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* 防止收缩 */
    min-width: 0;
}

/* 输入按钮 */
.input-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    font-size: 24px;
    border: 0;
    font-weight: lighter;
}

/* 发送和取消按钮 */
.controls-row .action-btn {
    padding: 8px 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    border-radius: 60px;
}

.send-btn {
    background: #ff2442;
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 36, 66, 0.2);
}

.send-btn:hover {
    background: #e61e3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 36, 66, 0.3);
}

.send-btn:active {
    transform: translateY(0);
}

.controls-row .action-btn.cancel-btn {
    background: #fff;
    color: #666;
    border: 1px solid #d0d0d0;
}

.cancel-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #b0b0b0;
}

.cancel-btn:active {
    transform: scale(0.98);
}



/* ==================== JavaScript动态样式类 ==================== */

/* 使用CSS变量处理动态样式 */
:root {
    --detail-slider-translate-x: 0%;
    --fullscreen-slider-translate-x: 0%;
    --progress-width: 0%;
    --progress-handle-left: 0%;
    --volume-height: 0%;
    --volume-handle-bottom: 0%;
    --content-left: auto;
    --content-top: auto;
    --content-width: auto;
    --content-height: auto;
    --content-transform: none;
    --overlay-opacity: 1;
    --comment-footer-left: auto;
    --comment-footer-top: auto;
    --comment-footer-width: auto;
    --reply-module-left: auto;
    --reply-module-top: auto;
    --reply-module-width: auto;
}

/* 幻灯片变换 */
.feed-detail-slider {
    /* transform 通过 JavaScript 直接设置，不使用 CSS 变量 */
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 不在这里设置 transform，完全由 JavaScript 控制 */
}

.feed-fullscreen-slider {
    transform: translateX(var(--fullscreen-slider-translate-x));
}

/* 进度条 */
.feed-detail-progress-filled {
    width: var(--progress-width);
}

.feed-detail-progress-handle {
    left: var(--progress-handle-left);
}

.feed-fullscreen-progress-filled {
    width: var(--progress-width);
}

.feed-fullscreen-progress-handle {
    left: var(--progress-handle-left);
}

/* 音量条 */
.feed-detail-volume-filled {
    height: var(--volume-height);
}

.feed-detail-volume-handle {
    bottom: var(--volume-handle-bottom);
}

.feed-fullscreen-volume-filled {
    height: var(--volume-height);
}

.feed-fullscreen-volume-handle {
    bottom: var(--volume-handle-bottom);
    opacity: 1 !important;
}

/* 内容区域动态定位 */
.feed-detail-content.dynamic-position {
    position: absolute;
    left: var(--content-left);
    top: var(--content-top);
    width: var(--content-width);
    height: var(--content-height);
}

.feed-detail-content.dynamic-position.transform-reset {
    transform: none;
}

.feed-detail-content.dynamic-position.transform-center {
    transform: translate(-50%, -50%);
}

.feed-detail-content.dynamic-position.transform-y-reset {
    /* transform: translateY(0); */
}

/* 动态transform（用于拖拽） */
.feed-detail-content.dynamic-transform {
    transform: var(--content-transform);
}

/* 遮罩层透明度 */
.feed-detail-overlay.dynamic-opacity {
    opacity: var(--overlay-opacity);
}


/* 回复模块动态定位 */
.reply-input-module.dynamic-position {
    position: absolute !important;
    left: var(--reply-module-left);
    top: var(--reply-module-top);
    width: var(--reply-module-width);
    bottom: auto !important;
    right: auto !important;
    z-index: 11 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.reply-input-module.no-transition {
    transition: none !important;
}

.reply-input-module.no-transition .controls-row,
.reply-input-module.no-transition .controls-row *,
.reply-input-module.no-transition .input-btn,
.reply-input-module.no-transition .action-btn {
    transition: none !important;
}

/* 评论输入框移动端固定定位 */
.comment-input-footer.mobile-fixed {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1002 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* 评论输入框动态定位（桌面端） */
/* .comment-input-footer.dynamic-position {
    position: absolute !important;
    left: var(--comment-footer-left) !important;
    top: var(--comment-footer-top) !important;
    width: var(--comment-footer-width) !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
} */

/* 克隆元素样式类 */
.feed-detail-clone {
    position: fixed;
    z-index: 1000;
    display: flex;
    overflow: hidden;
}

.feed-detail-clone.desktop {
    flex-direction: row;
}

.feed-detail-clone.mobile {
    flex-direction: column;
}

.feed-detail-clone .feed-card-image.desktop {
    width: 60%;
    height: 100%;
    flex: 0 0 60%;
    max-width: 60%;
    background: #000;
}

.feed-detail-clone .feed-card-image.mobile {
    width: 100%;
    height: 60%;
    flex: 0 0 60%;
    background: #000;
}

.feed-detail-clone .feed-card-content.desktop {
    width: 40%;
    flex: 0 0 40%;
    max-width: 40%;
}

.feed-detail-clone .feed-card-content.mobile {
    width: 100%;
    flex: 0 0 40%;
}

/* uc-card 克隆動畫（favourite 頁面詳情彈層） */
.feed-detail-clone .uc-card-image.desktop {
    width: 60%;
    height: 100%;
    flex: 0 0 60%;
    max-width: 60%;
    background: #000;
    overflow: hidden;
}
.feed-detail-clone .uc-card-image.mobile {
    width: 100%;
    height: 60%;
    flex: 0 0 60%;
    background: #000;
    overflow: hidden;
}
.feed-detail-clone .uc-card-content.desktop {
    width: 40%;
    flex: 0 0 40%;
    max-width: 40%;
    overflow-y: auto;
}
.feed-detail-clone .uc-card-content.mobile {
    width: 100%;
    flex: 0 0 40%;
    overflow-y: auto;
}

/* 重置transform类 */
.transform-reset {
    transform: none !important;
}

.transform-center {
    transform: translate(-50%, -50%) !important;
}

.transform-y-reset {
    /* transform: translateY(0) !important; */
}

/* ==================== 图片上传和表情选择器样式 ==================== */

/* 媒体预览列表（與 send-message 樣式一致） */
.media-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.media-preview-list:not(:empty) {
    display: grid !important;
    max-height: 160px;
    padding: 8px 0;
    overflow-y: auto;
}

.media-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    cursor: grab;
    transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.media-preview-item:active {
    cursor: grabbing;
}

.media-preview-item.dragging {
    opacity: 0.7;
    z-index: 1000;
}

.media-preview-item.drag-over {
    border-color: #7b378b;
    border-width: 2px;
    transform: scale(1.05);
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.media-preview-item .remove-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

.media-preview-item .remove-btn::before {
    content: '×';
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* 隐藏的文件输入 */
.hidden-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* 表情选择器 */
.emoji-picker-container {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 10000;
    max-width: 360px;
    max-height: 400px;
    min-height: 400px;
    overflow-y: auto;
    display: none;
    visibility: hidden;
    opacity: 0;
    /* 使用 CSS 变量来动态设置位置和宽度 */
    top: var(--emoji-picker-top, auto);
    left: var(--emoji-picker-left, auto);
    width: var(--emoji-picker-width, auto);
    max-width: var(--emoji-picker-max-width, 359px);
}

/* 测量状态：临时显示在屏幕外以获取尺寸 */
.emoji-picker-container.measuring {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 显示状态 */
.emoji-picker-container.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeIn 0.2s ease-out;
    position: fixed !important;
}

/* 确保显示状态覆盖测量状态 */
.emoji-picker-container.show.measuring {
    top: var(--emoji-picker-top, auto) !important;
    left: var(--emoji-picker-left, auto) !important;
}

/* 移动端表情选择器样式 */
@media screen and (max-width: 768px) {
    .emoji-picker-container {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
    }
    
    /* 移动端底部定位 */
    .emoji-picker-container.mobile-bottom {
        top: auto !important;
        bottom: 0 !important;
        /* 使用 CSS 变量设置顶部位置（如果需要动态计算） */
        top: var(--emoji-picker-top, auto) !important;
    }
}

/* 桌面端固定宽度359px */
.emoji-picker-container.desktop-width {
    width: 359px !important;
    max-width: 359px !important;
}

/* 确保桌面端位置正确应用 */
.emoji-picker-container:not(.mobile-bottom) {
    top: var(--emoji-picker-top, auto) !important;
    left: var(--emoji-picker-left, auto) !important;
    position: fixed !important;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    user-select: none;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(0.95);
}

/* 表情分类标签 */
.emoji-category {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    padding: 0 4px;
}

.emoji-category:first-child {
    margin-top: 0;
}

/* 输入按钮悬停效果 */
.input-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.input-btn:active {
    transform: scale(0.95);
}

.input-btn.active {
    background: #ff2442;
    color: #fff;
}

/* 图片上传按钮加载状态 */
.image-upload-btn.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.image-upload-btn.uploading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ff2442;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 评论和回复中的媒体显示 - 微信朋友圈九宫格样式 */
.review-media-list,
.reply-media-list {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
}

/* 1张图片：大图显示 */
.review-media-list.media-count-1,
.reply-media-list.media-count-1 {
    grid-template-columns: 1fr;
}

.review-media-list.media-count-1 .review-media-item,
.reply-media-list.media-count-1 .reply-media-item {
    max-width: 200px;
}

/* 2-4张图片：2列网格 */
.review-media-list.media-count-2,
.review-media-list.media-count-3,
.review-media-list.media-count-4,
.reply-media-list.media-count-2,
.reply-media-list.media-count-3,
.reply-media-list.media-count-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* 5-9张图片：3列网格 */
.review-media-list.media-count-5,
.review-media-list.media-count-6,
.review-media-list.media-count-7,
.review-media-list.media-count-8,
.review-media-list.media-count-9,
.reply-media-list.media-count-5,
.reply-media-list.media-count-6,
.reply-media-list.media-count-7,
.reply-media-list.media-count-8,
.reply-media-list.media-count-9 {
    grid-template-columns: repeat(3, 1fr);
}

/* 通用媒体项样式 */
.review-media-item,
.reply-media-item {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 保持1:1比例 */
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: #f5f5f5;
}

.review-media-item img,
.review-media-item video,
.reply-media-item img,
.reply-media-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-media-item:hover,
.reply-media-item:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.review-media-item[src=""],
.reply-media-item[src=""] {
    display: none;
}

/* 视频媒体样式 */
.review-media-item video,
.reply-media-item video {
    background: #000;
}

/* 移动端媒体样式 */
@media screen and (max-width: 959px) {
    .review-media-list.media-count-1 .review-media-item,
    .reply-media-list.media-count-1 .reply-media-item {
        max-width: 150px;
    }
}

/* ==================== 發帖區塊樣式 ==================== */
.publish-post-container {
    /* width: 100%; */
    max-width: 828px;
    margin: 0 20px; 
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden!important;
    margin-bottom: 30px;
}

/* 根据媒体查询断点调整宽度 */
@media screen and (max-width: 1600px) {
    /* .publish-post-container {
        max-width: 1200px;
    } */
}



.publish-post-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.publish-post-header .publish-post-note {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.publish-post-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.fatie-top-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-modify-all {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #813f91;
    color: #fff;
    position: absolute;
    top:10px;
    right:10px;
}

.btn-modify-all:hover {
    background: #6d2f7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 63, 145, 0.3);
}

.btn-modify-all:active {
    transform: translateY(0);
}

.publish-post-form {
    padding: 24px;
    font-family: "PingFang";
    font-weight: 600;
}

.publish-section {
    /* margin-bottom: 32px; */
}
.publish-section.service-section{
    border-bottom: 1px solid #f0f0f0;
}
.publish-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 圖片/視頻模塊默認視圖 */
.media-section-header {
    position: relative;
    width: 100%;
}

.media-default-view {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.media-default-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.btn-modify-media {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.btn-modify-media:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-modify-media:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-cancel-media {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cancel-media:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-cancel-media:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 圖片/視頻上傳區域 */
.media-upload-container {
    width: 100%;
    position: relative;
}

.media-upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-upload-area:hover {
    border-color: #813f91;
    background: #f5f0f8;
}

.media-upload-area.dragover {
    border-color: #813f91;
    background: #f5f0f8;
    transform: scale(1.02);
}

.upload-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.upload-placeholder svg {
    margin: 0 auto 16px;
    color: #813f91;
    display: block;
}

.upload-placeholder p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #666;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

/* media-upload-container 內的 media-preview-list（與 send-message 一致） */
.media-upload-container .media-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.media-preview-item .video-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 4px;
}

.media-add-more-btn {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed #d0d0d0;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.media-add-more-btn:hover {
    border-color: #813f91;
    background: #f5f0f8;
}

.media-add-more-btn svg {
    width: 64px;
    height: 64px;
    color: #ccc;
    stroke: currentColor;
    font-size: 12px;
}

/* 基本信息字段 */
.basic-info-container {
    margin-top: 24px;
    padding-top: 24px;
    /* border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0; */
    position: relative;
}

/* 默认显示视图 */
.basic-info-default-view {
    position: relative;
    width: 100%;
    padding-bottom: 10px;
}

.basic-info-display {
    width: 100%;
}

.basic-info-display-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.basic-info-display-row:last-child {
    margin-bottom: 0;
}

.basic-info-display-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    min-width: 0;
    flex-shrink: 0;
}

.basic-info-display-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    font-weight: 600;
}

.basic-info-display-value {
    font-size: 15px;
    color: #999;
    flex: 1;
}

.btn-modify-basic-info {
    position: absolute;
    bottom: 13px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-modify-basic-info:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-modify-basic-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-cancel-basic-info {
    position: absolute;
    bottom: 13px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cancel-basic-info:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-cancel-basic-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 编辑视图 */
.basic-info-edit-view {
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.basic-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.basic-info-row:last-child {
    margin-bottom: 0;
}

.basic-info-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.basic-info-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 60px;
}

.basic-info-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.basic-info-input:focus {
    background: #fff;
    border-color: #813f91;
    box-shadow: 0 0 0 3px rgba(129, 63, 145, 0.1);
}

.basic-info-input::placeholder {
    color: #999;
}
.eye-off-icon{
    color: #eee;
}
/* 服務詳情區域 */
.service-section-header {
    position: relative;
    width: 100%;
}

/* 服務詳情默認視圖 */
.service-default-view {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
}

.service-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-display-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.service-display-row:last-child {
    margin-bottom: 0;
}

.service-display-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    min-width: 0;
}

/* 单独一行显示的项目 */
.service-display-item-full {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

.service-display-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    min-width: 70px;
    flex-shrink: 0;
    font-weight: 600;
}

.service-display-value {
    font-size: 15px;
    color: #999;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-modify-service {
    position: absolute;
    bottom: 13px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-modify-service:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-modify-service:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 服務詳情編輯視圖 */
.service-edit-view {
    width: 100%;
    position: relative;
    padding-bottom: 40px;
}

.btn-cancel-service {
    position: absolute;
    bottom: 6px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cancel-service:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-cancel-service:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.service-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    font-weight: 600;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-actions {
    display: flex;
    gap: 8px;
}

.checkbox-action-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-action-btn:hover {
    background: #fff;
    color: #813f91;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.checkbox-action-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.checkbox-action-btn.active {
    background: #813f91;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(129, 63, 145, 0.3);
}

.checkbox-action-btn.active:hover {
    background: #813f91;
    color: #fff;
    box-shadow: 0 4px 8px rgba(129, 63, 145, 0.4);
}

/* 服務地點下拉列表樣式 - 與服務時間input一致，使用獨立類名避免與index_search_diag衝突 */
.service-location-select,
.service-location-select-a {
    position: relative;
}

.service-location-select .diag_input,
.service-location-select-a .diag_input {
    width: 100%;
    padding: 9px 14px;
    font-size: 15px;
    color: #333;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: auto;
    line-height: normal;
    cursor: pointer;
}

.service-location-select .diag_input:focus,
.service-location-select-a .diag_input:focus {
    background: #fff;
    border-color: #813f91;
    box-shadow: 0 0 0 3px rgba(129, 63, 145, 0.1);
}

/* 服務地點下拉列表小箭頭位置調整 - 使用獨立類名 */
.service-location-select .service-location-edge,
.service-location-select-a .service-location-edge {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}


/* 服務地點下拉框位置調整 - 使用獨立類名 */
.service-location-select .service-location-dl,
.service-location-select-a .service-location-dl {
    display: none !important; /* 默认隐藏，使用!important确保优先级 */
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    padding: 5px 0;
    z-index: 999;
    min-width: 100%;
    border: 1px solid #d2d2d2;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
    box-sizing: border-box;
}

/* 當需要顯示時，使用更強的特異性 */
.service-location-select.service-location-selected .service-location-dl,
.service-location-select-a.service-location-selected .service-location-dl {
    display: block !important;
}

/* 服務地點下拉列表內容樣式 - 使用獨立類名，與index_search_diag不同 */
.service-location-select .service-location-dl dd,
.service-location-select .service-location-dl dt,
.service-location-select-a .service-location-dl dd {
    padding: 0 16px;
    line-height: 36px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #666;
    margin-inline-start: 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.service-location-select dd,
.service-location-select-a dd {
    font-size: 14px;
    margin-bottom: 0;
}

/* 服務地點下拉列表hover狀態 - 使用獨立類名 */
.service-location-select .service-location-dl dd:hover,
.service-location-select-a .service-location-dl dd:hover {
    background-color: #f7f7f7;
    color: #333;
}

/* 服務地點下拉列表選中狀態 - 使用獨立的類名，避免與index_search_diag衝突 */
.service-location-select.service-location-selected .service-location-edge {
    transform: translateY(-50%) rotate(180deg);
    -webkit-transform: translateY(-50%) rotate(180deg);
}
.btn1.service-location-btn1,.btn2.service-location-btn2{
    font-size: 14px;
}
.service-location-select-a.service-location-selected .service-location-edge {
    transform: translateY(-50%) rotate(180deg);
    -webkit-transform: translateY(-50%) rotate(180deg);
}

.service-location-select .service-location-dl dd.service-location-this {
    background-color: #f0e6f5;
    color: #813f91;
    font-weight: 500;
}

.service-location-select-a .service-location-dl dd.service-location-checkbox-selected {
    background-color: #f0e6f5;
    color: #813f91;
    font-weight: 500;
    border-bottom: 1px solid #fff;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: #813f91;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: #813f91;
    border-color: #813f91;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.checkbox-item span {
    font-size: 14px;
    color: #999;
    transition: color 0.2s ease;
    font-weight: 500;
}

.checkbox-item:hover span {
    color: #813f91;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #813f91;
    font-weight: 600;
}

.text-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.text-input:focus {
    background: #fff;
    border-color: #813f91;
    box-shadow: 0 0 0 3px rgba(129, 63, 145, 0.1);
}

.text-input::placeholder {
    color: #999;
}

/* 內容描述區域 */
.content-section-header {
    position: relative;
    width: 100%;
}

/* 內容描述默認視圖 */
.content-default-view {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
}

.content-display {
    width: 100%;
    padding-top: 30px;
}

.content-display-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.content-edit-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.content-display-text {
    font-size: 15px;
    color: #999;
    line-height: 1.2;
    padding: 20px 10px;
    /* background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px; */
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.content-display-text:empty::before {
    content: '未填寫';
    color: #999;
}

.btn-modify-content {
    position: absolute;
    bottom: -20px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-modify-content:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-modify-content:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 內容描述編輯視圖 */
.content-edit-view {
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.btn-cancel-content {
    position: absolute;
    bottom: 13px;
    right: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cancel-content:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-cancel-content:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.content-description-container {
    position: relative;
}

.content-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #999;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.content-textarea:focus {
    background: #fff;
    border-color: #813f91;
    box-shadow: 0 0 0 3px rgba(129, 63, 145, 0.1);
    color: #333;
}

.content-textarea::placeholder {
    color: #999;
}

.textarea-counter {
    margin-top: 8px;
    text-align: right;
    font-size: 13px;
    color: #ccc;
    padding: 10px;;
}

.textarea-counter span {
    color: #666;
}

/* 提交按鈕區域 */
.publish-actions {
    display: flex;
    justify-content:center;
    gap: 12px;
    padding-top: 24px;
    /* border-top: 1px solid #f0f0f0; */
    margin: 32px 0;
    margin-top: 0;
}

.btn-cancel,
.btn-save-draft,
.btn-submit {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e8e8e8;
    color: #333;
}

.btn-save-draft {
    background: #fff;
    color: #813f91;
    border: 1px solid #813f91;
}

.btn-save-draft:hover {
    background: #f7eef9;
    color: #6d2f7a;
    border-color: #6d2f7a;
}

.btn-submit {
    background: #813f91;
    color: #fff;
}

.btn-submit:hover {
    background: #6d2f7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 63, 145, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 響應式設計 */
@media screen and (max-width: 959px) {
    .publish-post-container {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        border-radius: 0;
    }

    .publish-post-header,
    .publish-post-form {
        padding: 20px 16px;
    }

    .publish-post-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .media-default-image {
        max-height: 250px;
    }

    .btn-modify-media {
        top: 12px;
        right: 12px;
        padding: 6px 16px;
        font-size: 13px;
    }

    .media-upload-area {
        min-height: 160px;
    }

    .basic-info-display-row {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .basic-info-display-item {
        flex: 1;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .basic-info-display-label {
        flex-shrink: 0;
        font-size: 14px;
    }
    
    .basic-info-display-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }

    .btn-modify-basic-info {
        position: absolute;
        bottom: 13px;
        right: 0;
        margin-top: 0;
        width: auto;
    }

    .basic-info-row {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .basic-info-field {
        flex: 1;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .basic-info-label {
        min-width: 45px;
        flex-shrink: 0;
        font-size: 14px;
    }

    .basic-info-input {
        flex: 1;
        min-width: 0;
        font-size: 14px;
    }

    .service-display-row {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .service-display-item {
        flex: 1;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .service-display-label {
        min-width: 70px;
        flex-shrink: 0;
        font-size: 14px;
    }
    
    .service-display-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }

    .upload-placeholder {
        padding: 30px 16px;
    }

    .upload-placeholder svg {
        width: 40px;
        height: 40px;
    }

    .media-preview-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .checkbox-group {
        gap: 10px;
    }

    .publish-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-save-draft,
    .btn-submit {
        width: 100%;
        padding: 14px;
    }
}

/* overview 我的階級頁面美化樣式 */
.overview-page .breadcrumb-nav {
    position: relative;
    top: auto;
    width: 100%;
    padding: 20px 20px 12px 20px;
    margin: 0;
    background: transparent;
    z-index: 1;
    display: none;
}
.overview-main {
    padding: 0 20px 40px;
    box-sizing: border-box;
}
.overview-help-main {
    width: 100%;
    /* max-width: 720px; */
    margin: 0 auto;
    min-height: auto;
}
.overview-tab-container {
    padding-top: 0;
}
.overview-tab-container .tabs {
    margin-left: 0;
    width: 100%;
    border-bottom-color: #e8e8e8;
}
.overview-tab-container .tabs li.active {
    background: linear-gradient(180deg, #fdf8fe 0%, #f6e7fa 100%);
    border-bottom-color: #7b378b;
}
.tabs li a {
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.tabs li.active a {
    color: #7b378b;
}
.overview-card {
    background: #fff;
    /* border-radius: 12px; */
    padding: 24px;
    margin-top: 20px;
    /* box-shadow: 0 2px 12px rgba(123, 55, 139, 0.08);
    border: 1px solid rgba(123, 55, 139, 0.12); */
}
.overview-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8f2;
}
.overview-card-icon {
    color: #7b378b;
    display: inline-flex;
}
.overview-card-header .title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.overview-intro {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}
.overview-intro .highlight-level {
    color: #7b378b;
    font-weight: 600;
}
.overview-intro .highlight-exp {
    color: #813f91;
    font-weight: 600;
}
.overview-intro .xxgz {
    color: #7b378b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.overview-intro .xxgz:hover {
    color: #6a2d7a;
    text-decoration: underline;
}
.overview-level-card {
    background: linear-gradient(135deg, #fdf8fe 0%, #f8eefc 100%);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(123, 55, 139, 0.15);
}
.overview-level-title {
    font-size: 14px;
    font-weight: 600;
    color: #813f91;
    margin: 0 0 12px 0;
}
.overview-exp-total {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}
.overview-exp-total span {
    color: #7b378b;
    font-weight: 700;
    font-size: 20px;
}
.overview-exp-detail {
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}
.overview-exp-detail span {
    color: #22c55e;
    font-weight: 600;
}
#help_content .overview-card .tab_pane,
.overview-page #help_content .tab_pane {
    padding-left: 0;
    padding-top: 0;
}
@media screen and (max-width: 768px) {
    .overview-page .breadcrumb-nav {
        padding: 16px 15px 12px 15px;
        font-size: 16px;
    }
    .overview-main {
        padding: 0 15px 32px;
    }
    .overview-card {
        padding: 18px;
        margin-top: 16px;
    }
    .overview-card-header .title {
        font-size: 16px;
    }
    .overview-level-card {
        padding: 16px;
    }
}
@media screen and (max-width: 375px) {
    .overview-main {
        padding: 0 12px 24px;
    }
    .overview-card {
        padding: 16px;
    }
}

/* 訊息中心 - 郵箱列表樣式 */
.message-page .breadcrumb-nav {
    position: relative;
    top: auto;
    width: 100%;
    /* padding: 20px 20px 12px 20px; */
    margin: 0;
    background: transparent;
    z-index: 1;
    display: none;
}
.message-inbox-main {
    width: 100%;
    height: auto;
    min-height: 45vw;
    overflow: hidden;
}
.message-inbox {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: 40px;
}
.message-inbox .tab_container {
    padding-top: 0;
    margin-bottom: 0;
}
.message-inbox .tab_container .tabs {
    margin-left: 0;
    width: 100%;
    border-bottom-color: #e8e8e8;
}
.message-inbox .tab_container .tabs li.active {
    background: linear-gradient(180deg, #fdf8fe 0%, #f6e7fa 100%);
    border-bottom-color: #7b378b;
}
.message-list-container {
    min-height: 200px;
}
.message-tab-pane {
    display: none;
}
.message-tab-pane.show {
    display: block;
}
.message-list-header {
    display: grid;
    grid-template-columns: 100px 1fr 100px 120px;
    gap: 12px;
    padding: 12px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.message-list-header .msg-sender { grid-column: 1; }
.message-list-header .msg-preview { grid-column: 2; }
.message-list-header .msg-date { grid-column: 3; }
.message-list-header .msg-actions { grid-column: 4; }
.message-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 120px;
    gap: 12px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.message-item .msg-sender-cell { grid-column: 1; }
.message-item .msg-preview { grid-column: 2; }
.message-item .msg-date { grid-column: 3; }
.message-item .msg-actions { grid-column: 4; }
.message-item:last-child {
    border-bottom: none;
}
.message-item:hover {
    background: #f9f7fa;
}
.message-item.unread .msg-preview {
    font-weight: 600;
    color: #ccc;
}
.message-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #7b378b;
    border-radius: 0 2px 2px 0;
}
.message-item {
    position: relative;
}
.msg-col {
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-sender-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 互動私訊 tab 內頭像可點擊跳轉發送訊息 */
#tab2 .msg-avatar {
    cursor: pointer;
}
#tab2 .msg-avatar:hover {
    opacity: 0.85;
}
.msg-sender-cell .msg-sender {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    text-align: center;
    word-break: break-all;
}
.msg-preview {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.msg-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: visible;
    min-width: 0;
    align-items: center;
}
.msg-actions .msg-btn {
    flex-shrink: 0;
}
.msg-btn {
    padding: 4px 10px;
    min-width: auto;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.msg-btn.mark_readed.msg-undo {
    color: #b45309;
    background: rgba(234, 179, 8, 0.2);
}
.msg-btn.mark_readed.msg-undo:hover {
    background: rgba(234, 179, 8, 0.35);
    color: #92400e;
}
.msg-btn.mark_readed.msg-done {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.15);
}
.msg-btn.mark_readed.msg-done:hover {
    background: rgba(34, 197, 94, 0.25);
    color: #15803d;
}
.msg-btn.mark_delete {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.15);
}
.msg-btn.mark_delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}
.message-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 14px;
    color: #666;
}
.pagination-btns {
    display: flex;
    gap: 8px;
}
.pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}
.pagination-btn:hover {
    border-color: #7b378b;
    color: #7b378b;
    background: rgba(123, 55, 139, 0.06);
}
@media screen and (max-width: 768px) {
    .message-page .breadcrumb-nav {
        padding: 16px 15px 12px 15px;
    }
    .message-inbox-main {
        padding: 0 15px 24px;
    }
    .message-list-header {
        grid-template-columns: 70px 1fr 70px 100px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .message-item {
        grid-template-columns: 70px 1fr 70px 100px;
        gap: 8px;
        padding: 12px;
    }
    .msg-sender-cell .msg-sender {
        font-size: 12px;
    }
    .msg-avatar {
        width: 36px;
        height: 36px;
    }
    .msg-actions {
        flex-direction: column;
    }
    .msg-btn {
        padding: 3px 8px;
        height: 26px;
        font-size: 12px;
    }
    .msg-date {
        font-size: 12px;
    }
}
@media screen and (max-width: 480px) {
    .message-list-header {
        grid-template-columns: 60px 1fr 52px 90px;
        padding: 8px 10px;
        font-size: 11px;
    }
    .message-item {
        grid-template-columns: 60px 1fr 52px 90px;
        padding: 10px;
    }
    .msg-sender-cell .msg-sender {
        font-size: 11px;
    }
    .msg-avatar {
        width: 32px;
        height: 32px;
    }
    .msg-preview {
        font-size: 13px;
    }
}

/* 發送訊息頁面樣式 */
.send-message-page .breadcrumb-nav {
    padding: 16px 20px 12px;
    font-size: 14px;
    color: #666;
    position: relative;
    top: auto;
    width: 100%;
}
.send-message-page .send-message-main {
    margin: 0 20px 40px;
}
.send-message-page .breadcrumb-nav a {
    color: #7b378b;
    text-decoration: none;
}
.send-message-page .breadcrumb-nav a:hover {
    text-decoration: underline;
}
.send-message-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}
.send-msg-recipient {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 16px;
}
.send-msg-back {
    color: #7b378b;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    display: block;
    width: 100%;
    height: 50px;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 600;
    color: #7b378b;
    text-decoration: none;
    padding-left: 20px;
}
.send-msg-back:hover {
    text-decoration: underline;
}
.send-msg-recipient-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.send-msg-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.send-msg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.send-msg-recipient-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.send-msg-recipient-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.send-msg-subtitle {
    font-size: 12px;
    color: #999;
}
.send-msg-chat-area {
    flex: 1;
    min-height: 280px;
    background: #f8f9fa;
}
.send-msg-messages {
    padding: 16px;
    height: 280px;
    overflow-y: auto;
}
.send-msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    text-align: center;
}
.send-msg-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.send-msg-empty-hint {
    font-size: 12px;
    margin-top: 8px;
    color: #bbb;
}
.send-msg-bubble {
    margin-bottom: 12px;
    display: flex;
}
.send-msg-bubble-mine {
    justify-content: flex-end;
}
.send-msg-bubble-mine .send-msg-bubble-inner {
    background: #7b378b;
    color: #fff;
    border-radius: 14px 14px 4px 14px;
}
.send-msg-bubble-inner {
    max-width: 75%;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.send-msg-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.send-msg-time {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}
.send-msg-bubble:not(.send-msg-bubble-mine) .send-msg-time {
    color: #999;
}
.send-msg-bubble-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.send-msg-bubble-attachments img,
.send-msg-bubble-attachments video {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    object-fit: cover;
}
.send-msg-input-area {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}
.send-msg-input-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.send-msg-input-toolbar .input-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    /* border: 1px solid #e0e0e0; */
    background: #f8f8f8;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.send-msg-input-toolbar .input-btn:hover {
    background: #eee;
    color: #7b378b;
    border-color: #d0d0d0;
}
.send-msg-input-toolbar .input-btn.active {
    background: rgba(123, 55, 139, 0.1);
    color: #7b378b;
    border-color: #7b378b;
}
.send-msg-media-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.send-msg-media-preview-list:not(:empty) {
    max-height: 160px;
    padding: 8px 0;
    overflow-y: auto;
}
.send-msg-media-preview-list .send-msg-media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    cursor: grab;
    transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
}
.send-msg-media-preview-list .send-msg-media-item:active {
    cursor: grabbing;
}
.send-msg-media-preview-list .send-msg-media-item.dragging {
    opacity: 0.7;
    z-index: 1000;
}
.send-msg-media-preview-list .send-msg-media-item.drag-over {
    border-color: #7b378b;
    border-width: 2px;
    transform: scale(1.05);
}
.send-msg-media-preview-list .send-msg-media-item img,
.send-msg-media-preview-list .send-msg-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.send-msg-media-preview-list .send-msg-media-item .send-msg-media-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.send-msg-media-preview-list .send-msg-media-item .send-msg-media-remove:hover {
    background: rgba(220,38,38,0.9);
}
.send-msg-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}
.send-msg-textarea:focus {
    outline: none;
    border-color: #7b378b;
    box-shadow: 0 0 0 2px rgba(123,55,139,0.15);
}
.send-msg-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.send-msg-char-count {
    font-size: 12px;
    color: #999;
}
.send-msg-btn {
    padding: 8px 20px;
    background: #7b378b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.send-msg-btn:hover {
    background: #6a2f78;
}
.send-msg-btn:active {
    opacity: 0.9;
}
@media screen and (max-width: 768px) {
    .send-message-page .send-message-main {
        margin: 0 15px 32px;
    }
    .send-message-main {
        min-height: 400px;
    }
    .send-msg-messages {
        height: 220px;
    }
}
@media screen and (max-width: 480px) {
    .send-message-page .send-message-main {
        margin: 0 12px 24px;
    }
}

/* 帮助页面样式 */
.help_main {
    width: 100%;
    height: auto;
    min-height: 45vw;
    overflow: hidden;
    padding-bottom: 77px;
}

.help_main .top {
    width: 100%;
    height: 10vw;
    background-color: #fff;
    margin-bottom: 2vw;
}

.tab_container {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-top: 20px;
}

.tab_container .tabs {
    /* width: 96.5%; */
    height: 3.16vw;
    min-height: 40px;
    display: flex;
    border-bottom: 1px solid #ddd;
    /* margin-left: 3.5%; */
}

.tabs li {
    display: flex;
    flex-grow: 1;
    height: 100%;
    color: #999;
    font-weight: bolder;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 16px;
    margin-top: 1px;
    align-items: center;
    justify-content: center;
    max-width: 15vw;
}

.tabs li:hover {
    color: #7b378b;
    border-bottom: 2px solid #debde6;
    border-radius: 0;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

.tabs li.active {
    color: #7b378b;
    border-bottom: 2px solid #debde6;
    background-color: #f6e7fa;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

#help_content {
    width: 100%;
    height: auto;
    min-height: 620px;
    overflow: hidden;
}

#help_content .tab_pane {
    color: #666;
    line-height: 28px;
    padding-left: 4.0vw;
    padding-top: 1.0vw;
    box-sizing: border-box;
    display: none;
    font-size: 14px;
}

#help_content .tab_pane.show {
    display: block;
}

.tab_pane h1 {
    color: #000;
    font-size: 20px;
    margin-top: 60px;
}

#tab1 h1:nth-child(1),
#tab2 h1:nth-child(1) {
    margin-top: 30px;
}

.tab_pane p {
    margin: 15px 0;
}

/* 帮助页面图片样式 - 防止变形 */
#help_content .tab_pane img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    #help_content .tab_pane img {
        margin: 15px auto;
    }
}

.tab_pane span {
    color: #7b378b;
    font-weight: bolder;
    cursor: pointer;
}

.tab_pane dl,
.tab_pane dt {
    margin: 0;
    padding: 0;
}

.class_tab {
    border: 1px solid #ddd;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -24px;
    box-sizing: border-box;
    border-top: 0;
    border-right: 0;
}

.class_tab dt {
    width: calc(100% / 9);
    height: 30px;
    border: 1px solid #ddd;
    border-bottom: 0;
    border-left: 0;
    text-align: center;
    text-indent: 0;
    line-height: 30px;
    color: #000;
    box-sizing: border-box;
}

.class_tab dt.left {
    text-align: left;
    padding-left: 14px;
}

.class_tab dt.red {
    color: red;
    font-size: 20px;
    font-weight: bolder;
}

.class_tab dt.green {
    color: green;
    font-size: 20px;
    font-weight: bolder;
}

.help_bottom_content {
    width: 100%;
    height: 5vw;
    text-align: right;
    font-size: 20px;
    color: #999;
    font-weight: bolder;
    box-sizing: border-box;
    padding-right: 5.0vw;
}

.help_bottom_content a {
    color: #7b378b;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .btn-modify-all {
        padding: 8px 20px;
        font-size: 14px;
        top: 0;
        right: 20px;
    }
    .help_main {
        width: 92%;
        margin: 0 auto;
    }

    .tab_container .tabs {
        width: 100%;
        margin-left: 0;
        font-size: 1rem;
    }

    .tabs li {
        max-width: none;
        font-size: 1rem;
    }

    #help_content .tab_pane {
        padding-left: 2vw;
        font-size: 13px;
    }

    .tab_pane h1 {
        font-size: 1.2rem;
    }

    .help_bottom_content {
        font-size: 16px;
        padding-right: 2vw;
    }
}

/* 小屏幕响应式设计 - 390px以下 */
@media screen and (max-width: 390px) {
    .publish-post-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .publish-post-title {
        width: 100%;
    }

    .fatie-top-buttons {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .fatie-top-buttons .btn-modify-all {
        flex: 1;
    }
}
.main-content .breadcrumb-nav{
    display: none;
}

/* ==================== 打賞空狀態 ==================== */
.reward-empty-state,
.reward-loading-state {
    width: 100%;
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 15px;
}
.reward-empty-link {
    display: inline-block;
    margin-top: 12px;
    color: #813f91;
    font-weight: 600;
    text-decoration: none;
}
.reward-empty-link:hover {
    text-decoration: underline;
}

/* ==================== 打賞頁面 ==================== */
.reward-main {
    max-width: 520px;
    /* margin: 0 auto; */
    padding: 24px 20px 40px;
}
.reward-recipient {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f0fc, #fff);
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(129,63,145,0.08);
}
.reward-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8d5f0;
    flex-shrink: 0;
}
.reward-recipient-meta {
    flex: 1;
    min-width: 0;
}
.reward-recipient-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}
.reward-recipient-sub {
    font-size: 13px;
    color: #999;
}
.reward-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}
.reward-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.reward-amount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.reward-amount-item:hover {
    border-color: #c9a0dc;
    background: #faf5fc;
}
.reward-amount-item.active {
    border-color: #813f91;
    background: #f3e8f8;
}
.reward-amount-num {
    font-size: 22px;
    font-weight: 700;
    color: #813f91;
}
.reward-amount-label {
    font-size: 12px;
    color: #999;
}
.reward-custom {
    margin-bottom: 28px;
}
.reward-custom-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.2s;
}
.reward-custom-input-wrap:focus-within {
    border-color: #813f91;
    background: #fff;
}
.reward-custom-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0;
    outline: none;
    color: #333;
    min-width: 0;
}
.reward-custom-input::placeholder {
    font-weight: 400;
    color: #bbb;
}
.reward-custom-unit {
    font-size: 14px;
    color: #813f91;
    font-weight: 600;
    flex-shrink: 0;
}
.reward-balance {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    text-align: right;
}
.reward-balance span {
    color: #813f91;
    font-weight: 600;
}
.reward-recharge-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    vertical-align: middle;
}
.reward-recharge-btn:hover {
    opacity: 0.85;
}
.reward-recharge-btn:active {
    transform: scale(0.96);
}
.reward-message {
    margin-bottom: 28px;
}
.reward-message-textarea {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.reward-message-textarea:focus {
    border-color: #813f91;
}
.reward-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #9b59b6, #813f91);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-align: center;
}
.reward-submit-btn:hover {
    opacity: 0.9;
}
.reward-submit-btn:active {
    transform: scale(0.98);
}
.reward-back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    color: #813f91;
    text-decoration: none;
    padding-left: 20px;
}
.reward-back:hover {
    text-decoration: underline;
}
@media screen and (max-width: 695px) {
    .reward-main {
        padding: 16px 15px 32px;
        margin: 0 auto;
    }
    .reward-amount-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .reward-amount-num {
        font-size: 18px;
    }
    .reward-avatar {
        width: 52px;
        height: 52px;
    }
}

/* ==================== 用戶中心移動端標籤欄 ==================== */
.uc-mobile-tabs {
    display: none;
}
@media screen and (max-width: 959px) {
    .uc-mobile-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    .uc-mobile-tab {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 13px;
        color: #666;
        text-decoration: none;
        background: #f5f5f5;
        border: 1px solid #e8e8e8;
        border-radius: 18px;
        transition: all 0.2s;
    }
    .uc-mobile-tab:hover {
        color: #813f91;
        border-color: #d4b8e0;
        background: #faf5fc;
    }
    .uc-mobile-tab.active {
        color: #fff;
        font-weight: 600;
        background: #813f91;
        border-color: #813f91;
    }
}

/* ==================== 設置頁面 ==================== */
.settings-main {
    max-width: 780px;
    margin: 0;
    padding: 24px 20px 40px;
}
.settings-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 28px;
    display: none;
}
.settings-section {
    margin-bottom: 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.settings-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #813f91;
    padding: 14px 20px 10px;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
    background: #faf5fc;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
}
.settings-item:last-child {
    border-bottom: none;
}
.settings-item-field {
    justify-content: flex-start;
    gap: 8px;
}
.settings-item-field .settings-item-left {
    flex: 0 0 auto;
    width: auto;
    min-width: 45px;
}
.settings-item-field .settings-item-right {
    flex: 1;
    min-width: 0;
}
.settings-item-field .settings-input,
.settings-item-field .settings-textarea {
    width: 100%;
}
.settings-item-left {
    flex: 1;
    min-width: 0;
}
.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 45px;
}
.settings-desc {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}
.settings-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.settings-avatar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-avatar-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8d5f0;
}
.settings-input {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.settings-input:focus {
    border-color: #813f91;
}
.settings-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.settings-textarea:focus {
    border-color: #813f91;
}
.settings-change-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #813f91;
    background: #f3e8f8;
    border: 1px solid #e0cfe8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.settings-change-btn:hover {
    background: #e8d5f0;
    border-color: #813f91;
}

/* Toggle Switch */
.settings-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}
.settings-toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.settings-toggle input:checked + .settings-toggle-slider {
    background-color: #813f91;
}
.settings-toggle input:checked + .settings-toggle-slider::before {
    transform: translateX(20px);
}

.settings-save-wrap {
    margin-top: 12px;
}
.settings-save-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #9b59b6, #813f91);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-align: center;
}
.settings-save-btn:hover {
    opacity: 0.9;
}
.settings-save-btn:active {
    transform: scale(0.98);
}
@media screen and (max-width: 695px) {
    .settings-main {
        max-width: 100%;
        padding: 16px 15px 32px;
    }
    .settings-page-title {
        font-size: 16px;
        margin: 16px 6px;
        display: none;
    }
    .settings-input {
        width: 200px;
    }
}

/* 設置頁面彈窗 */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.settings-modal {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.settings-modal-header h3 {
    margin: 0;
    font-size: 17px;
    color: #333;
}
.settings-modal-close {
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.settings-modal-close:hover {
    color: #333;
}
.settings-modal-body {
    padding: 20px 22px;
}
.settings-modal-field {
    margin-bottom: 16px;
}
.settings-modal-field:last-child {
    margin-bottom: 0;
}
.settings-modal-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.settings-modal-field .settings-input {
    width: 100%;
    box-sizing: border-box;
}
.settings-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.settings-pwd-wrap .settings-input {
    flex: 1;
    padding-right: 38px;
}
.settings-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    line-height: 1;
    display: flex;
    align-items: center;
}
.settings-pwd-toggle:hover {
    color: #666;
}
.settings-verify-row {
    display: flex;
    gap: 10px;
}
.settings-verify-row .settings-input {
    flex: 1;
    min-width: 0;
}
.settings-send-code-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    color: #fff;
    background: #9b59b6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.settings-send-code-btn:hover {
    background: #813f91;
}
.settings-send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.settings-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #f0f0f0;
}
.settings-modal-btn {
    padding: 9px 22px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.settings-modal-btn.cancel {
    background: #f5f5f5;
    color: #666;
}
.settings-modal-btn.cancel:hover {
    background: #eee;
}
.settings-modal-btn.confirm {
    background: linear-gradient(135deg, #9b59b6, #813f91);
    color: #fff;
}
.settings-modal-btn.confirm:hover {
    opacity: 0.9;
}
/* 屏蔽列表 */
.settings-block-list {
    max-height: 320px;
    overflow-y: auto;
}
.settings-block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.settings-block-item:last-child {
    border-bottom: none;
}
.settings-block-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-block-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.settings-block-name {
    font-size: 14px;
    color: #333;
}
.settings-unblock-btn {
    padding: 5px 14px;
    font-size: 12px;
    color: #e74c3c;
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    cursor: pointer;
}
.settings-unblock-btn:hover {
    background: #e74c3c;
    color: #fff;
}
.settings-block-empty {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

/* 儲值中心頁面 */
.recharge-main {
    padding: 8px 20px 24px;
}
.recharge-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.recharge-hero-copy,
.recharge-hero-panel,
.recharge-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.recharge-hero-copy {
    padding: 24px;
}
.recharge-eyebrow {
    margin: 0 0 10px;
    color: #9b59b6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.recharge-title {
    margin: 0 0 12px;
    color: #2f2f2f;
    font-size: 30px;
    line-height: 1.35;
}
.recharge-desc {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}
.recharge-balance-card {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #a65dd7, #e28bc4);
    color: #fff;
}
.recharge-balance-label {
    display: block;
    opacity: 0.9;
    font-size: 13px;
}
.recharge-balance-value {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}
.recharge-balance-unit {
    margin-left: 6px;
    font-size: 14px;
}
.recharge-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.recharge-primary-btn,
.recharge-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.recharge-primary-btn {
    background: linear-gradient(135deg, #9b59b6, #d96ab7);
    color: #fff;
}
.recharge-secondary-btn {
    background: #f6f1fa;
    color: #7b4a94;
}
.recharge-hero-panel {
    padding: 20px;
}
.recharge-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.recharge-panel-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5e7ff;
    color: #8c49ac;
    font-size: 12px;
    font-weight: 700;
}
.recharge-panel-tip {
    color: #888;
    font-size: 12px;
}
.recharge-plan-list {
    display: grid;
    gap: 12px;
}
.recharge-plan-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.recharge-plan-item.active {
    border-color: #c77ae2;
    box-shadow: 0 8px 18px rgba(166, 93, 215, 0.16);
}
.recharge-plan-amount {
    color: #333;
    font-size: 18px;
    font-weight: 700;
}
.recharge-plan-price {
    color: #9b59b6;
    font-size: 16px;
    font-weight: 700;
}
.recharge-plan-note {
    grid-column: 1 / -1;
    color: #888;
    font-size: 12px;
}
.recharge-selected-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf7fc;
    color: #666;
    font-size: 14px;
}
.recharge-selected-box strong {
    margin-left: 8px;
    color: #7d3d95;
    font-size: 18px;
}
.recharge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.recharge-card {
    padding: 20px;
}
.recharge-card-title {
    margin: 0 0 14px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}
.recharge-method-list {
    display: grid;
    gap: 12px;
}
.recharge-method-item {
    padding: 14px;
    border-radius: 12px;
    background: #fafafa;
}
.recharge-method-name {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
    font-weight: 700;
}
.recharge-method-text,
.recharge-card-note {
    color: #777;
    font-size: 14px;
    line-height: 1.75;
}
.recharge-qr-wrap {
    overflow: hidden;
    border-radius: 14px;
    background: #fafafa;
}
.recharge-qr-image {
    display: block;
    width: 100%;
    height: auto;
}
.recharge-notes-card {
    margin-top: 20px;
}
.recharge-note-list {
    margin: 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}
@media screen and (max-width: 1024px) {
    .recharge-hero,
    .recharge-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 768px) {
    .recharge-main {
        padding: 8px 12px 20px;
    }
    .recharge-title {
        font-size: 24px;
    }
    .recharge-hero-copy,
    .recharge-hero-panel,
    .recharge-card {
        padding: 16px;
        border-radius: 14px;
    }
    .recharge-hero-actions {
        flex-direction: column;
    }
    .recharge-primary-btn,
    .recharge-secondary-btn {
        width: 100%;
    }
}

