* {
    font-family: "Inter", sans-serif !important;
    box-sizing: border-box;
}

:root {
    --chuan-avatar-size: 48px;
    --chuan-avatar-radius: 12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px !important;
}

body {
    margin: 0;
    background: #f5f7fb !important;
    color: #111827 !important;
    overflow-x: hidden !important;
}

a,
a:hover,
.hover\:underline:hover,
.group:hover .group-hover\:underline {
    text-decoration: none !important;
}

main#body {
    padding-top: 0 !important;
    display: block !important;
    flex: none !important;
    overflow-x: hidden !important;
}

body>main#body>.container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

body>main#body>.container>main.max-w-7xl {
    width: 100%;
}

.chuan-main-shell {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px !important;
}

.chuan-theme-page aside {
    align-self: flex-start !important;
}

/* ===== Tailwind-compatible Grid Layout Utilities =====
 * tailwind.js 是配置文件，不能动态生成CSS，需手动定义布局类
 * 用于首页和帖子详情页的12列响应式网格 + 右侧边栏显隐控制
 * ===================================================== */

/* 12列网格容器 */
.grid {
    display: grid !important;
}

.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

/* 间距 */
.gap-6 {
    gap: 1.5rem !important;
}

/* 列跨度 */
.col-span-12 {
    grid-column: span 12 / span 12 !important;
}

.col-span-9 {
    grid-column: span 9 / span 9 !important;
}

.col-span-3 {
    grid-column: span 3 / span 3 !important;
}

/* xl:hidden — 屏幕≥1280px 时隐藏 */
@media (min-width: 1280px) {
    .xl\:hidden {
        display: none !important;
    }
}

/* lg:col-span-9 — 屏幕≥1024px 时9列 */
@media (min-width: 1024px) {
    .lg\:col-span-9 {
        grid-column: span 9 / span 9 !important;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3 !important;
    }
}

/* lg:block — 屏幕≥1024px 时 display:block
 * 用双类选择器提高特异性(0,2,0)，覆盖 .hidden { display: none !important }(0,1,0)
 * 同时保留通用版本，两者都加 !important 确保在任何情况下生效
 */
@media (min-width: 1024px) {
    .lg\:block {
        display: block !important;
    }

    /* 提高特异性以覆盖 .hidden !important */
    body .lg\:block,
    .chuan-theme-page .lg\:block,
    .chuan-main-shell .lg\:block {
        display: block !important;
    }
}

/* sticky 定位 */
.sticky {
    position: sticky !important;
}

.top-8 {
    top: 2rem !important;
}

/* space-y-4：子元素垂直间距 */
.space-y-4>*+* {
    margin-top: 1rem !important;
}

/* xl:hidden — 首页移动端链接容器在xl隐藏 */
@media (min-width: 1280px) {
    .xl\:hidden {
        display: none !important;
    }
}

/* md:border、md:rounded-2xl 等 PC 端边框圆角（已在各组件处覆盖，这里补全通用版） */
@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:hidden {
        display: none !important;
    }

    .md\:border {
        border-width: 1px !important;
        border-style: solid !important;
        border-color: rgba(0, 0, 0, 0.05) !important;
    }

    .md\:rounded-2xl {
        border-radius: 1rem !important;
    }

    .md\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .md\:py-6 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .md\:flex-row {
        flex-direction: row !important;
    }

    .md\:items-center {
        align-items: center !important;
    }

    .md\:inline {
        display: inline !important;
    }

    .md\:ml-4 {
        margin-left: 1rem !important;
    }
}

/* mobile-padding — 手机端 0 padding，PC 端恢复（由 chuan-main-shell 的24px控制） */
@media (max-width: 767px) {
    .mobile-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.chuan-user-menu:hover .chuan-user-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.chuan-user-dropdown {
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 60;
}

.feed-item {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    transition: .15s ease;
}

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

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

.feed-tab {
    position: relative;
    color: #6b7280;
    transition: .15s ease;
    font-size: 14px;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 1;
    cursor: pointer;
    outline: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.feed-tab:focus,
.feed-tab:active,
.feed-tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.feed-tab.active {
    color: #111827;
    font-weight: 600;
}

.feed-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

.theme-tabs-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.theme-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.post-title {
    font-size: .82rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.post-meta {
    font-size: 11px;
    color: #6b7280;
}

.nav-item:hover {
    background: #f3f4f6;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.notice-title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.notice-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.7;
}

.notice-item {
    position: relative;
    padding-left: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, .06);
}

.notice-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #111827;
    opacity: .15;
}

.notice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

.link-item {
    transition: .15s ease;
}

.link-item:hover {
    color: #111827;
}

.comment-badge {
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-card {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.chuan-home-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3.08 / 1;
    min-height: 180px;
    max-height: 310px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(0, 0, 0, .06);
}

.chuan-carousel-track,
.chuan-carousel-slide,
.chuan-carousel-slide a,
.chuan-carousel-slide>div {
    position: absolute;
    inset: 0;
    display: block;
}

.chuan-carousel-slide {
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
}

.chuan-carousel-slide.prev {
    visibility: visible;
    z-index: 1;
    pointer-events: none;
}

.chuan-carousel-slide.active {
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.chuan-slice-container {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
}

.chuan-slice {
    flex: 1;
    height: 100%;
    background-size: 600% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: none;
}

.chuan-slice:nth-child(odd) {
    transform: translateX(-800%);
}

.chuan-slice:nth-child(even) {
    transform: translateX(800%);
}

.chuan-carousel-slide.prev .chuan-slice {
    transform: translateX(0);
    opacity: 1;
    transition: none;
}

.chuan-carousel-slide.active .chuan-slice {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.7s ease;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(1) {
    transition-delay: 0.0s;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(2) {
    transition-delay: 0.08s;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(3) {
    transition-delay: 0.16s;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(4) {
    transition-delay: 0.24s;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(5) {
    transition-delay: 0.32s;
}

.chuan-carousel-slide.active .chuan-slice:nth-child(6) {
    transition-delay: 0.40s;
}

.chuan-carousel-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 15, 26, .68), rgba(10, 15, 26, .18) 58%, rgba(10, 15, 26, .38));
}

.chuan-carousel-title {
    position: absolute;
    left: 24px;
    right: 120px;
    bottom: 24px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chuan-carousel-dots {
    position: absolute;
    right: 18px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 4;
}

.chuan-carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .55);
    padding: 0;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.chuan-carousel-dots button.active {
    width: 22px;
    background: #fff;
}

.comment-item {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.comment-item:last-child {
    border: none;
}

.comment-content {
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
}

.chuan-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 0 12px;
    margin: -4px 0 10px;
    background: transparent;
    overflow-x: auto;
}

.chuan-editor-toolbar button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .18s ease;
}

.chuan-editor-toolbar button:hover {
    background: #f3f4f6;
    color: #111827;
}

.chuan-reply-tool-btn {
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chuan-reply-tool-btn:hover {
    background: #111827;
    color: #fff;
}

.chuan-editor-popover {
    position: absolute;
    left: 20px;
    top: 52px;
    width: min(340px, calc(100vw - 40px));
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 12px;
    z-index: 30;
    display: none;
}

.chuan-editor-popover.show {
    display: block;
}

.chuan-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.chuan-emoji-grid::-webkit-scrollbar {
    width: 4px;
}

.chuan-emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.chuan-emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chuan-emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.chuan-emoji-pick {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}

.chuan-emoji-pick:hover {
    background: #fff7d6;
    transform: translateY(-1px);
}

.chuan-emoji,
.preview-output .chuan-emoji,
.comment-content .chuan-emoji,
.chuan-thread-message .chuan-emoji {
    width: 32px;
    height: 32px;
    display: inline-flex;
    vertical-align: -9px;
    margin: 0 2px;
}

.chuan-emoji svg,
.chuan-emoji-pick svg {
    width: 100%;
    height: 100%;
    display: block;
}

.theme-editor.is-dragover {
    background: rgba(16, 185, 129, .04);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .24);
    border-radius: 14px;
}

.chuan-draft-restore {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    background: #fff8e1;
    color: #78350f;
    font-size: 12px;
    font-weight: 700;
}

.chuan-draft-restore.show {
    display: flex;
}

.chuan-draft-restore button {
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(120, 53, 15, .16);
    background: #fff;
    color: #78350f;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .chuan-home-carousel {
        aspect-ratio: 16 / 9;
        min-height: 120px;
        max-height: 120px;
        border-radius: 0;
        margin-bottom: 10px;
        border-left: 0;
        border-right: 0;
    }

    .chuan-carousel-title {
        left: 16px;
        right: 76px;
        bottom: 10px;
        font-size: 15px;
    }

    .chuan-carousel-dots {
        right: 14px;
        bottom: 18px;
    }

    .chuan-editor-toolbar {
        padding: 0 0 10px;
        margin-top: -2px;
        gap: 5px;
    }

    .chuan-editor-toolbar button {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 11px;
    }

    .chuan-emoji-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .chuan-editor-popover {
        top: 44px;
    }

    .chuan-draft-restore {
        align-items: flex-start;
        flex-direction: column;
    }
}

.chuan-thread-message {
    line-height: 1.82;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chuan-thread-message p {
    margin: 0 0 14px;
}

.chuan-thread-message p:last-child {
    margin-bottom: 0;
}

.chuan-thread-message br {
    line-height: 1.55;
}

.chuan-thread-message img,
.chuan-thread-message .chuan-video-wrap,
.chuan-thread-message .chuan-playlist-container {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

.chuan-thread-message strong,
.comment-content strong {
    font-weight: 800;
    color: #111827;
}

.chuan-thread-message em,
.comment-content em {
    font-style: italic;
    color: #4b5563;
}

.chuan-message-h1,
.chuan-message-h2 {
    color: #111827;
    font-weight: 800;
    line-height: 1.35;
    margin: 18px 0 10px;
}

.chuan-message-h1 {
    font-size: 22px;
}

.chuan-message-h2 {
    font-size: 18px;
}

.chuan-inline-code {
    padding: 2px 6px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #dc2626;
    font-size: .88em;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.chuan-code-wrap {
    position: relative;
    margin: 14px 0;
}

.chuan-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
    z-index: 2;
}

.chuan-code-copy:hover {
    background: #fff;
    color: #111827;
}

.chuan-code-block {
    margin: 14px 0;
    padding: 14px 16px;
    padding-top: 46px;
    border-radius: 14px;
    background: #0f172a;
    color: #e5e7eb;
    overflow-x: auto;
    line-height: 1.65;
    font-size: 13px;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.chuan-code-wrap .chuan-code-block {
    margin: 0;
}

.chuan-code-block code {
    color: inherit;
    background: transparent;
    padding: 0;
    white-space: pre;
}

.chuan-message-quote {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 3px solid #111827;
    border-radius: 12px;
    background: #f9fafb;
    color: #4b5563;
}

.chuan-message-li {
    position: relative;
    padding-left: 16px;
    margin: 4px 0;
}

.chuan-message-li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .78em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #111827;
}

.chuan-message-hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 16px 0;
}

.comment-content blockquote.blockquote {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 2px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    background: #fafafa;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.comment-replies {
    border-left: 1px solid rgba(0, 0, 0, .06);
}

.comment-replies .comment-item {
    border-bottom: none;
}

.post.quote {
    background: #fafafa;
}

.chuan-theme-page .p-4 {
    padding: 1rem !important;
}

.chuan-theme-page .p-5 {
    padding: 1.25rem !important;
}

.chuan-theme-page .p-6 {
    padding: 1.5rem !important;
}

.chuan-theme-page .p-8 {
    padding: 2rem !important;
}

.chuan-theme-page .p-10 {
    padding: 2.5rem !important;
}

.chuan-theme-page .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.chuan-theme-page .px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.chuan-theme-page .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.chuan-theme-page .mt-3 {
    margin-top: .75rem !important;
}

.chuan-theme-page .mt-4 {
    margin-top: 1rem !important;
}

.chuan-theme-page .mt-5 {
    margin-top: 1.25rem !important;
}

.chuan-theme-page .mb-4 {
    margin-bottom: 1rem !important;
}

.chuan-theme-page .mb-5 {
    margin-bottom: 1.25rem !important;
}

.chuan-theme-page .gap-3 {
    gap: .75rem !important;
}

.chuan-theme-page .gap-4 {
    gap: 1rem !important;
}

.chuan-theme-page .gap-5 {
    gap: 1.25rem !important;
}

.chuan-theme-page .gap-6 {
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .chuan-theme-page .md\:p-6 {
        padding: 1.5rem !important;
    }

    .chuan-theme-page .md\:p-8 {
        padding: 2rem !important;
    }

    .chuan-theme-page .md\:px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .chuan-theme-page .md\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .chuan-theme-page .md\:py-6 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .chuan-theme-page .md\:py-8 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 640px) {
    .chuan-theme-page .sm\:p-10 {
        padding: 2.5rem !important;
    }
}

.topic-tag {
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.action-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    transition: .15s ease;
    outline: none !important;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .action-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 11px;
        gap: 4px;
        border-radius: 8px;
    }

    .action-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

.action-btn:hover {
    background: #f9fafb;
    color: #111827;
}

.related-item {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .06);
}

.related-item:last-child {
    border: none;
    padding-bottom: 0;
}

.related-title {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #111827;
}

.related-meta {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
}

.editor-box {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    overflow: visible;
}

textarea {
    resize: none;
    overflow: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

textarea::-webkit-scrollbar {
    display: none;
}

.topic-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, .04);
    transition: .15s ease;
}

.topic-item:hover {
    background: #f5f5f5;
}

.topic-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.topic-count {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.chuan-sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
}

.chuan-energy-card {
    min-height: 0;
}

.topic-card,
.product-card,
.calendar-day-card,
.task-item {
    transition: .2s ease;
}

.topic-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .04);
    border-color: rgba(17, 24, 39, .12);
}

.calendar-day-card.checked {
    background: #f3f4f6;
    border-color: transparent;
    color: #9ca3af;
}

.calendar-day-card.today {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.task-item {
    border-bottom: 1px solid rgba(15, 23, 42, .05);
}

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

.chuan-auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.chuan-auth-page {
    width: min(460px, calc(100vw - 32px)) !important;
    max-width: 460px !important;
}

.chuan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.chuan-energy-card .chuan-card-head {
    margin-bottom: 14px;
}

.chuan-energy-desc {
    margin: 0 0 18px;
    font-size: 11px;
    line-height: 1.7;
    color: #9ca3af;
}

.pagination-wrap .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 12px;
    padding: 6px 12px;
    margin: 0 2px;
}

.pagination-wrap .page-item.active .page-link {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #FFFFFF !important;
}

.chuan-toast-wrap {
    position: fixed;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    z-index: 10000;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.chuan-toast {
    min-width: 240px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 16px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .22);
    font-size: 13px;
    font-weight: 700;
    animation: chuanToastIn .18s ease both;
}

.chuan-toast.error {
    background: #b91c1c;
}

.chuan-toast.success {
    background: #111827;
}

@keyframes chuanToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.points-bubble {
    position: fixed;
    z-index: 10001;
    color: #111827;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
    animation: chuanBubbleUp .9s ease forwards;
}

@keyframes chuanBubbleUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    20% {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-44px) scale(1.04);
    }
}

.chuan-ad-image {
    min-height: 76px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    position: relative;
}

.chuan-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chuan-ad-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.chuan-ad-text-grid a {
    min-height: 34px;
    border-radius: 9px;
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    overflow: hidden;
    padding: 0 8px;
}

.chuan-ad-text-grid a span {
    max-width: 100%;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chuan-ad-buy-price {
    border: 1px solid rgba(0, 0, 0, .06);
    background: #f6f7f9;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.chuan-ad-buy-price span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
}

.chuan-ad-buy-price strong {
    font-size: 18px;
    color: #111827;
    font-weight: 900;
}

.chuan-ad-buy-price em {
    font-style: normal;
    font-size: 11px;
    color: #9ca3af;
}

.chuan-sponsor-grid,
.chuan-latest-users {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.chuan-sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chuan-sponsor-grid a,
.chuan-latest-users a {
    min-width: 0;
    text-align: center;
    color: #111827;
}

.chuan-sponsor-grid img,
.chuan-sponsor-grid span {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-weight: 900;
}

.chuan-latest-users img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto;
}

.chuan-latest-users span {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chuan-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.chuan-ad-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.chuan-ad-buy-card {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
}

.chuan-ad-buy-form {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.chuan-ad-buy-form p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
}

.chuan-ad-close {
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.chuan-pay-card {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
}

.chuan-pay-card p {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.chuan-hide-scrollbar {
    scrollbar-width: none;
}

.chuan-hide-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.chuan-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.chuan-share-modal.is-open {
    display: flex;
}

.chuan-share-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
}

.chuan-share-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}

.chuan-share-panel canvas {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
}

.chuan-pay-card img {
    margin: 0 auto 14px;
}

.chuan-pay-card a {
    display: block;
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
}

.chuan-pay-close {
    float: right;
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

img[src*="avatar"] {
    width: var(--chuan-avatar-size) !important;
    height: var(--chuan-avatar-size) !important;
    object-fit: cover !important;
    border-radius: var(--chuan-avatar-radius) !important;
}

.chuan-user-menu button,
.chuan-user-menu img {
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--chuan-avatar-radius) !important;
}

.chuan-latest-users img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
}

.comment-replies img {
    width: 36px !important;
    height: 36px !important;
}

.chuan-my-page .my-cover-avatar {
    width: 76px !important;
    height: 76px !important;
    border-radius: 18px !important;
}

.chuan-my-page .my-cover {
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.chuan-my-page .my-cover.has-cover-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 13, 24, .78), rgba(8, 13, 24, .42) 58%, rgba(8, 13, 24, .62));
    z-index: 0;
}

.chuan-my-page .my-cover-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.chuan-my-page .my-cover-upload-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .38);
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: transform .18s ease, background .18s ease;
}

.chuan-my-page .my-cover-upload-btn:hover {
    transform: translateY(-1px);
    background: #fff;
}

.chuan-my-page .my-cover-upload-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.chuan-my-page .my-cover-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 4px;
    background: rgba(255, 255, 255, .25);
}

.chuan-my-page .my-cover-progress span {
    display: block;
    height: 100%;
    background: #fff;
    transition: width .16s ease;
}

.chuan-my-page .my-cover-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.chuan-my-page .my-cover-avatar-edit {
    position: relative !important;
    width: 76px !important;
    height: 76px !important;
    flex-shrink: 0;
    overflow: hidden !important;
    border-radius: 18px !important;
    display: block !important;
}

.chuan-my-page .my-cover-avatar-edit .chuan-avatar-wrapper {
    display: block !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 18px !important;
    overflow: visible !important;
}

.chuan-my-page .my-cover-avatar {
    width: 76px !important;
    height: 76px !important;
    border-radius: 18px !important;
    object-fit: cover;
    flex-shrink: 0;
    display: block !important;
    margin: 0 !important;
}

.chuan-my-page .my-cover-avatar-btn {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 18px !important;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 6 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.chuan-my-page .my-cover-avatar-btn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    margin: 0 !important;
}

.chuan-my-page .my-cover-avatar-edit:hover .my-cover-avatar-btn {
    opacity: 1;
}

.chuan-my-page .my-avatar-progress {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -10px;
    height: 4px;
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    overflow: hidden;
}

.chuan-my-page .my-avatar-progress span {
    display: block;
    height: 100%;
    background: #fff;
}

.chuan-my-page .my-cover-name {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chuan-my-page .my-cover-level {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 900;
}

.chuan-my-page .my-cover-meta,
.chuan-my-page .my-cover-bio {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    margin-top: 8px;
}

.chuan-my-page .my-cover-public-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
}

.chuan-my-page .my-cover-public-stats span {
    display: inline-flex;
    align-items: center;
}

.chuan-my-page .my-cover-public-stats span+span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(255, 255, 255, .35);
    font-weight: 900;
}

.chuan-my-page .my-cover-bio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chuan-my-page .my-cover-bio-inline span {
    display: inline-flex;
    align-items: center;
}

.chuan-my-page .my-cover-bio-inline span+span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(255, 255, 255, .35);
    font-weight: 900;
}

.chuan-my-page .my-cover-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chuan-my-page .my-cover-stats div {
    min-width: 72px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
}

.chuan-my-page .my-cover-stats strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.chuan-my-page .my-cover-stats span {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: rgba(255, 255, 255, .58);
}

.chuan-my-page .my-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.chuan-my-page .my-nav {
    position: sticky;
    top: 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 8px;
}

.chuan-my-page .my-side {
    min-width: 0;
}

.chuan-my-page .my-nav-item {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    padding: 0 14px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.chuan-my-page .my-nav-item:focus,
.chuan-my-page .my-nav-item:focus-visible,
.chuan-my-page .my-side-tabs button:focus,
.chuan-my-page .my-side-tabs button:focus-visible,
.chuan-my-page button:focus,
.chuan-my-page button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.chuan-my-page a.my-nav-item:hover {
    text-decoration: none;
    color: #111827;
}

.chuan-my-page .my-nav-item.active {
    background: #111827;
    color: #fff;
}

.chuan-my-page .my-panel {
    display: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    padding: 24px;
    min-width: 0;
}

.chuan-my-page .my-panel.active {
    display: block;
}

.chuan-my-page .my-inline-frame {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    overflow: hidden;
    background: #fafafa;
}

.chuan-my-page .my-inline-frame summary {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    background: #fff;
}

.chuan-my-page .my-inline-frame iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
    background: #fff;
}

.chuan-my-page .my-inline-box {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    padding: 18px;
    background: #fafafa;
}

.chuan-my-page .my-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.chuan-my-page .my-panel-head h2 {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0;
}

.chuan-my-page .my-panel-head p {
    margin: 8px 0 0;
    color: #8b95a1;
    font-size: 12px;
}

.chuan-my-page .my-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.chuan-my-page .my-form label.full {
    grid-column: 1 / -1;
}

.chuan-my-page .my-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.chuan-my-page .my-form span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

.chuan-my-page .my-form input,
.chuan-my-page .my-form textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chuan-my-page .my-form input:focus,
.chuan-my-page .my-form textarea:focus {
    border-color: #111827;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.chuan-my-page .my-form input[readonly] {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    box-shadow: none;
}

.chuan-my-page .my-form label:focus-within span {
    color: #111827;
}

.chuan-my-page .my-edit-field {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.chuan-my-page .my-edit-field input {
    padding-right: 48px !important;
    width: 100% !important;
}

.chuan-my-page .my-edit-btn {
    position: absolute !important;
    right: 7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
}

.chuan-my-page .my-edit-btn:hover:not(:disabled) {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

.chuan-my-page .my-edit-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    margin: 0 !important;
}

.chuan-my-page .my-edit-btn:disabled {
    color: #d1d5db;
    background: #f9fafb;
    border-color: #f3f4f6;
    cursor: not-allowed;
}

.chuan-my-page .my-edit-field.is-editing input {
    background: #fff;
    color: #111827;
    cursor: text;
    border-color: #111827;
}

.chuan-my-page .email-verify-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
    margin-top: 8px;
}

.chuan-my-page .email-verify-box input {
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
}

.chuan-my-page .email-verify-box button {
    height: 40px;
    border: 1px solid #111827;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chuan-my-page .email-verify-box button:hover:not(:disabled) {
    background: #1f2937;
    border-color: #1f2937;
}

.chuan-my-page .email-verify-box button:disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.chuan-my-page .my-field-hint {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
}

.chuan-my-page .my-input-action {
    display: flex;
    gap: 8px;
}

.chuan-my-page .my-input-action input {
    min-width: 0;
    flex: 1;
}

.chuan-my-page .my-input-action button {
    width: 96px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.chuan-my-page .my-input-action button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.chuan-my-page .black-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    border-radius: 10px;
    background: #111827;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #111827;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.chuan-my-page .black-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

.chuan-my-page .black-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.chuan-my-page .my-thread-card,
.chuan-my-page .my-rank-card {
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 14px;
    overflow: hidden;
}

.chuan-my-page .my-side .my-thread-card {
    margin-top: 0;
    background: #fff;
}

.chuan-my-page .my-side-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.chuan-my-page .my-side-tabs button {
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    color: #8b95a1;
    cursor: pointer;
}

.chuan-my-page .my-side-tabs button.active {
    color: #111827;
    box-shadow: inset 0 -2px #111827;
}

.chuan-my-page .my-side-panel {
    display: none;
}

.chuan-my-page .my-side-panel.active {
    display: block;
}

.my-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.my-dialog-card {
    width: min(720px, 100%);
    height: min(620px, 92vh);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
    display: flex;
    flex-direction: column;
}

.my-dialog-head {
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.my-dialog-close {
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.my-dialog iframe {
    border: 0;
    width: 100%;
    flex: 1;
}

.chuan-my-page .my-list-title {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 800;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.chuan-my-page .my-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    color: #111827;
    font-size: 13px;
}

.chuan-my-page .my-mini-row:last-child {
    border-bottom: 0;
}

.chuan-my-page .my-mini-row span {
    min-width: 0;
    font-weight: 700;
}

.chuan-my-page .my-mini-row em {
    flex-shrink: 0;
    color: #8b95a1;
    font-style: normal;
    font-size: 12px;
}

.chuan-my-page .my-empty {
    padding: 24px;
    color: #8b95a1;
    text-align: center;
    font-size: 13px;
    background: #fafafa;
    border-radius: 14px;
}

.chuan-my-page .my-empty.compact {
    padding: 14px;
    border-radius: 0;
}

.chuan-my-page .my-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.chuan-my-page .my-kpi div {
    padding: 16px;
    border-radius: 14px;
    background: #f6f7f9;
    border: 1px solid rgba(0, 0, 0, .04);
}

.chuan-my-page .my-kpi span {
    display: block;
    color: #8b95a1;
    font-size: 12px;
}

.chuan-my-page .my-kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.chuan-my-page .my-progress {
    height: 8px;
    border-radius: 999px;
    background: #edf0f3;
    overflow: hidden;
    margin-bottom: 20px;
}

.chuan-my-page .my-progress span {
    display: block;
    height: 100%;
    background: #111827;
    border-radius: inherit;
}

.chuan-my-page .my-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.chuan-my-page .my-rank-row {
    display: grid;
    grid-template-columns: 26px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    font-size: 12px;
}

.chuan-my-page .my-rank-row img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px;
    object-fit: cover;
}

.chuan-my-page .my-rank-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.chuan-my-page .my-rank-row em {
    color: #6b7280;
    font-style: normal;
    font-weight: 700;
}

.chuan-my-page .my-rank-row i {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #f3f4f6;
    color: #111827;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
}

.chuan-my-page .my-switch-form {
    display: grid;
    gap: 14px;
}

.chuan-my-page .my-switch-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    background: #fafafa;
}

.chuan-my-page .my-switch-form strong {
    display: block;
    font-size: 13px;
}

.chuan-my-page .my-switch-form em {
    display: block;
    margin-top: 6px;
    color: #8b95a1;
    font-size: 12px;
    font-style: normal;
}

.chuan-thread-flag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.chuan-thread-flag.top {
    background: #111827;
    color: #fff;
}

.chuan-thread-flag.featured {
    background: #fef3c7;
    color: #92400e;
}

.chuan-mod-mini {
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.chuan-mod-mini.danger {
    color: #dc2626;
}

.post-tool-btn {
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 9px;
    background: #fff;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.post-tool-btn.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.chuan-vip-name {
    font-weight: 800 !important;
}

@media (max-width:768px) {
    body {
        background: #fff !important;
    }

    #scroll_to_top,
    #scroll_to_end,
    .d-fixed,
    .uptodown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .chuan-main-shell {
        padding: 0 0 72px !important;
    }

    .mobile-padding {
        padding-bottom: 72px;
    }

    .pagination-wrap {
        padding-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination-wrap::-webkit-scrollbar {
        display: none;
    }

    .chuan-my-page .my-cover {
        border-radius: 0;
        padding: 22px 18px;
    }

    .chuan-my-page .my-cover-upload-btn {
        right: 14px;
        top: 14px;
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .chuan-my-page .my-cover-grid,
    .chuan-my-page .my-cover-profile {
        display: block;
    }

    .chuan-my-page .my-cover-avatar {
        margin-bottom: 14px;
    }

    .chuan-my-page .my-cover-avatar-edit {
        margin-bottom: 18px;
    }

    .chuan-my-page .my-cover-stats {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .chuan-my-page .my-layout {
        display: block;
        margin-top: 0;
    }

    .chuan-my-page .my-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 6px 12px;
        scrollbar-width: none;
    }

    .chuan-my-page .my-nav::-webkit-scrollbar {
        display: none;
    }

    .chuan-my-page .my-nav-item {
        width: auto;
        flex: 0 0 auto;
        height: 34px;
        padding: 0 11px;
        font-size: 12px;
        border-radius: 8px;
    }

    .chuan-my-page .my-panel {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 18px;
    }

    .chuan-my-page .my-panel-head,
    .chuan-my-page .my-mini-row {
        display: block;
    }

    .chuan-my-page .my-panel-head .flex {
        margin-top: 14px;
    }

    .chuan-my-page .my-form,
    .chuan-my-page .my-kpi,
    .chuan-my-page .my-rank-grid {
        grid-template-columns: 1fr;
    }

    .chuan-my-page .my-side {
        display: block;
        border-top: 1px solid rgba(0, 0, 0, .06);
    }

    .chuan-my-page .my-mini-row em {
        display: block;
        margin-top: 8px;
    }
}

#footer {
    display: none !important;
}

/* Extracted page-level styles */

/* plugin/chuan_theme/hook/user_login_start.htm #1 */
/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.08);
}

/* Ambient background blobs */
.ambient-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: pulse-ambient 10s infinite alternate;
}

@keyframes pulse-ambient {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(30px, -30px);
    }
}

.active-tab-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input field premium transitions */
.input-premium {
    transition: all 0.2s ease;
}

.input-premium:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

/* plugin/chuan_theme/hook/user_create_start.htm #1 */
/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.08);
}

/* Ambient background blobs */
.ambient-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: pulse-ambient 10s infinite alternate;
}

@keyframes pulse-ambient {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(30px, -30px);
    }
}

.active-tab-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input field premium transitions */
.input-premium {
    transition: all 0.2s ease;
}

.input-premium:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

.chuan-invite-help {
    margin-top: -8px;
    text-align: right;
}

.chuan-invite-help a,
.chuan-invite-help a:hover {
    text-decoration: none !important;
}

.chuan-invite-modal {
    position: fixed;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.chuan-invite-modal.d-none,
.chuan-invite-pane.d-none {
    display: none !important;
}

.chuan-invite-dialog {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.chuan-invite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.chuan-invite-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 18px 0;
}

.chuan-invite-tab {
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 800;
    cursor: pointer;
}

.chuan-invite-tab.active {
    background: #000;
    color: #fff;
}

.chuan-invite-body {
    padding: 20px 22px 24px;
}

.chuan-invite-qr {
    min-height: 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    background: #fafafa;
}

@media(max-width:575px) {
    .chuan-invite-modal {
        padding: 12px;
    }

    .chuan-invite-dialog {
        border-radius: 16px;
    }

    .chuan-invite-body {
        padding: 16px;
    }

    /* Make the auth page container fill full screen size */
    .chuan-auth-page {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: #ffffff !important;
        overflow-y: auto;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 40px 24px 40px !important;
    }

    /* Make the glass/white background flat and transparent */
    .chuan-auth-card {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Improve styling of inputs on mobile for a native Apple-like look */
    .chuan-auth-page input[type="text"],
    .chuan-auth-page input[type="password"],
    .chuan-auth-page input[type="email"] {
        background-color: #f9fafb !important;
        border-color: #e5e7eb !important;
        color: #111827 !important;
        font-size: 15px !important;
        border-radius: 14px !important;
        height: 48px !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .chuan-auth-page input[type="text"]:focus,
    .chuan-auth-page input[type="password"]:focus,
    .chuan-auth-page input[type="email"]:focus {
        background-color: #ffffff !important;
        border-color: #111827 !important;
        box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05) !important;
    }

    /* Align slider verification track with the updated inputs height and border-radius */
    .chuan-auth-page .chuan-slider-track {
        height: 48px !important;
        border-radius: 14px !important;
        background-color: #f9fafb !important;
        border-color: #e5e7eb !important;
    }

    .chuan-auth-page .chuan-slider-bg {
        border-radius: 14px !important;
    }

    .chuan-auth-page .chuan-slider-btn {
        height: 42px !important;
        width: 44px !important;
        border-radius: 11px !important;
        top: 2px !important;
        left: 2px !important;
    }

    /* Make submit button taller */
    .chuan-auth-page button[type="submit"] {
        height: 48px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    /* Make sendcode button taller */
    .chuan-auth-page #sendcode {
        height: 48px !important;
        border-radius: 14px !important;
    }
}

/* plugin/chuan_theme/hook/post_start.htm #1 */
textarea.theme-editor {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    resize: none;
}

.preview-output {
    line-height: 1.8;
    font-size: 14px;
    color: #374151;
}

.preview-output h1 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.25rem;
}

.preview-output h2 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.preview-output p {
    margin-bottom: 0.75rem;
}

.preview-output ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.preview-output blockquote {
    margin: 0 0 .75rem;
    padding: .75rem 1rem;
    border-left: 3px solid #111827;
    background: #f9fafb;
    border-radius: 12px;
    color: #4b5563;
}

.preview-output hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 1rem 0;
}

.preview-output code {
    font-family: 'JetBrains Mono', monospace;
    background-color: #f3f4f6;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.preview-output pre {
    background-color: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
}

.preview-output pre code {
    background-color: transparent;
    color: #111827;
    padding: 0;
    font-size: 13px;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    background: #111827;
    color: white;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}



/* plugin/chuan_theme/hook/thread_start.htm #1 */
.pagination-wrap .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 12px;
    padding: 6px 12px;
    margin: 0 2px;
}

.pagination-wrap .page-item.active .page-link {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #FFFFFF !important;
}

/* --- Refactored User Center & Profile Page CSS Styles --- */

/* Sidebar usercard (yhxx.php style) */
.chuan-my-usercard {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 18px;
}

.chuan-my-avatar-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: visible;
    display: block;
    position: relative;
}

.chuan-my-avatar-img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Force sidebar avatar size to override global img[src*=avatar] rule */
.chuan-my-sidebar .chuan-my-avatar-wrap,
.chuan-my-drawer .chuan-my-avatar-wrap,
.chuan-my-usercard .chuan-my-avatar-wrap {
    width: 72px !important;
    height: 72px !important;
}

.chuan-my-sidebar .chuan-my-avatar-img,
.chuan-my-drawer .chuan-my-avatar-img,
.chuan-my-usercard .chuan-my-avatar-img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
}

.chuan-my-username {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.chuan-my-uid {
    font-size: 11px;
    color: #4b5563;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin: 0 auto 16px;
    font-weight: 700;
}

.chuan-my-stats {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, .05);
    padding-top: 16px;
}

.chuan-my-stat {
    flex: 1;
    text-align: center;
}

.chuan-my-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.chuan-my-stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Sub-panel Profile Edit Layout (Horizontal tabs) */
.my-sub-layout {
    display: block;
}

.my-sub-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.my-sub-nav::-webkit-scrollbar {
    display: none;
}

.my-sub-nav-item {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.my-sub-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.my-sub-nav-item.active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.my-sub-panel {
    display: none;
}

.my-sub-panel.active {
    display: block;
}

@media (max-width: 767px) {
    .chuan-my-usercard {
        display: none !important;
    }

    .my-sub-nav-item {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .chuan-my-page .my-cover {
        display: none !important;
    }
}

/* Personal Profile Page (gerenzhuye.php) Styles */
.chuan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.chuan-profile-banner {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.chuan-profile-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.chuan-banner-actions {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;
}

.chuan-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    outline: none !important;
}

.chuan-banner-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.chuan-profile-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.chuan-avatar-wrapper {
    position: relative;
    margin-bottom: 0;
    display: inline-block;
}

.chuan-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: none;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chuan-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit;
}

.chuan-user-title {
    flex: 1;
    color: #fff;
}

.chuan-username-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.chuan-username {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.chuan-username-text {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.chuan-user-badges {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.chuan-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.chuan-badge--dark {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.4);
}

.chuan-user-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
}

.chuan-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chuan-meta-item svg {
    width: 14px;
    height: 14px;
}

.chuan-profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chuan-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}

.chuan-btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chuan-btn-light:hover {
    background: #fff;
}

.chuan-btn-danger {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

.chuan-btn-danger:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.chuan-btn-warning {
    background: #fffbeb !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
}

.chuan-btn-warning:hover {
    background: #f59e0b !important;
    color: #fff !important;
}

.chuan-btn-success {
    background: #ecfdf5 !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.chuan-btn-success:hover {
    background: #10b981 !important;
    color: #fff !important;
}

.chuan-profile-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.chuan-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chuan-sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 20px;
}

.chuan-sidebar-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chuan-discovery-forums__rec-mark {
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #000;
    border-radius: 99px;
}

.chuan-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.chuan-stat-item {
    text-align: center;
}

.chuan-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.chuan-stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.chuan-points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chuan-points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chuan-points-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.chuan-points-label svg {
    width: 14px;
    height: 14px;
}

.chuan-points-value {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.chuan-feed-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    z-index: 5;
}

.chuan-feed-card__head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.chuan-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.chuan-tabs::-webkit-scrollbar {
    display: none;
}

.chuan-index-feed-tabs__links {
    display: flex;
    gap: 12px;
}

.chuan-tab {
    height: 36px;
    padding: 0 16px;
    border-radius: 99px;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.chuan-tab:hover {
    color: #111827;
    background: #f3f4f6;
}

.chuan-tab.chuan-active {
    background: #000;
    color: #fff;
}

.chuan-post-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .chuan-profile-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .chuan-profile-banner {
        height: auto;
        min-height: 200px;
        border-radius: 16px;
    }

    .chuan-profile-header {
        display: flex;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }

    .chuan-avatar-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .chuan-avatar {
        width: 80px;
        height: 80px;
    }

    .chuan-username {
        font-size: 20px;
    }

    .chuan-profile-actions {
        margin-top: 16px;
    }

    .chuan-user-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* Mobile H5 User Center Dashboard (wodeh5.php style) */
.chuan-my-mhero {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.chuan-my-mhero-banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.chuan-my-mhero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.chuan-my-mhero-profile {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 20px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.chuan-my-mhero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    position: relative;
}

.chuan-my-mhero-avatar-hit {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.chuan-my-mhero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chuan-my-mhero-id {
    padding-bottom: 4px;
    min-width: 0;
}

.chuan-my-mhero-name {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.chuan-my-mhero-name a {
    color: inherit;
    text-decoration: none;
}

.chuan-my-mhero-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.chuan-my-mhero-vip-strip {
    display: flex;
    align-items: center;
    margin: 16px 20px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    text-decoration: none !important;
    color: #78350f !important;
}

.chuan-my-mhero-vip-strip-ico {
    margin-right: 8px;
    color: #b45309;
}

.chuan-my-mhero-vip-strip-ico svg {
    width: 18px;
    height: 18px;
}

.chuan-my-mhero-vip-strip-copy {
    flex: 1;
}

.chuan-my-mhero-vip-strip-title {
    font-size: 13px;
    font-weight: 800;
    display: block;
}

.chuan-my-mhero-vip-strip-sub {
    font-size: 11px;
    opacity: 0.8;
}

.chuan-my-mhero-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.chuan-my-mhero-quick-item {
    text-align: center;
    text-decoration: none !important;
    color: #4b5563 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.chuan-my-mhero-quick-item svg {
    width: 22px;
    height: 22px;
    color: #374151;
}

.chuan-my-mhero-quick-label {
    font-size: 11px;
    font-weight: 700;
}

.chuan-my-mhero-more {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    padding: 20px;
}

.chuan-my-mhero-logout-wrap {
    padding: 0 20px 20px;
}

.chuan-my-mhero-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    width: max-content;
    padding: 0 24px;
    margin: 0 auto;
    background: #fdf2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #ef4444 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.chuan-my-mhero-logout:active {
    background: #fde8e8;
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .chuan-my-mhero {
        display: none !important;
    }
}

/* H5 Mobile Subpage Transition Styles */
@media (max-width: 767px) {
    .chuan-my-page .my-layout {
        display: none !important;
    }

    .chuan-my-page.h5-subpage-active .chuan-my-mhero,
    .chuan-my-page.h5-subpage-active .chuan-my-m-basic-info-card {
        display: none !important;
    }

    .chuan-my-page.h5-subpage-active .my-layout {
        display: block !important;
    }

    .chuan-my-page.h5-subpage-active .my-side {
        display: none !important;
    }

    .chuan-my-page.h5-subpage-active .my-m-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin: -18px -18px 18px -18px;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .my-m-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        border: 0;
        background: transparent;
        font-size: 14px;
        font-weight: 800;
        color: #4b5563;
        cursor: pointer;
        padding: 0;
    }

    .my-m-back-btn svg {
        color: #374151;
        display: block;
    }

    .my-m-title {
        font-size: 15px;
        font-weight: 900;
        color: #111827;
        margin: 0;
    }
}

/* --- Additional styles for User Center & Profile Page --- */

/* Basic Info Grid Layout */
.chuan-my-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px 0;
}

.chuan-my-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.chuan-my-info-label {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.chuan-my-info-value {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

@media (max-width: 576px) {
    .chuan-my-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile basic info card wrapper */
.chuan-my-m-basic-info-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 20px;
}

.chuan-my-tabs-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

/* Hidden Class Utility */
.hidden {
    display: none !important;
}

/* md:block / md:hidden 覆盖 — 紧跟 .hidden 之后，确保 PC 端 footer 和移动端 tabbar 正常显隐 */
@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:hidden {
        display: none !important;
    }
}

/* lg:block 覆盖 — 必须紧跟 .hidden 之后，确保 PC 端(≥1024px)右侧边栏正常显示 */
@media (min-width: 1024px) {
    .lg\:block {
        display: block !important;
    }
}

/* responsive flex layout overrides to prevent conflicts with .hidden */
@media (min-width: 640px) {
    .sm\:flex {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }
}

/* Hide main site top header navigation when mobile subpage is active in personal center */
body.chuan-h5-subpage-active header {
    display: none !important;
}

/* Fix cover banner top corner rounded borders on mobile */
.chuan-my-mhero-banner {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Avatar Upload & Cover Upload styles override */
#my-sub-panel-edit-avatar .my-inline-box,
#my-sub-panel-edit-cover .my-inline-box {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#my-sub-panel-edit-avatar .d-inline-block.position-relative,
#my-sub-panel-edit-cover .d-inline-block.position-relative {
    border: 0 !important;
    background: transparent !important;
}

#my-sub-panel-edit-avatar .my-cover-avatar {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* Circular avatar edit panel with hover overlay */
/* Circular avatar edit panel with hover overlay */
.chuan-profile-uploader-card {
    position: relative;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: visible;
    margin-bottom: 60px;
    grid-column: 1 / -1;
}

/* Background Cover Uploader */
.chuan-profile-uploader-card .chuan-cover-edit-wrap {
    width: 100%;
    height: 140px;
    border-radius: 16px 16px 0 0;
    position: relative;
    cursor: pointer;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: filter 0.2s ease;
}

.chuan-profile-uploader-card .chuan-cover-edit-wrap:hover {
    filter: brightness(0.95);
}

.chuan-profile-uploader-card .chuan-cover-edit-placeholder {
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
}

.chuan-profile-uploader-card .chuan-cover-edit-placeholder span {
    font-size: 13px;
    font-weight: 600;
}

.chuan-profile-uploader-card .chuan-cover-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.chuan-profile-uploader-card .chuan-cover-edit-wrap:hover .chuan-cover-edit-overlay {
    opacity: 1;
}

.chuan-profile-uploader-card .chuan-cover-edit-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* Avatar Container Overlapping */
.chuan-avatar-uploader-container {
    display: flex;
    align-items: flex-end;
    padding: 0 24px;
    margin-top: -45px;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.chuan-avatar-uploader-container>* {
    pointer-events: auto;
}

.chuan-avatar-uploader-container .chuan-avatar-edit-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chuan-avatar-uploader-container .chuan-avatar-edit-wrap:hover {
    transform: scale(1.05);
}

.chuan-avatar-uploader-container .chuan-avatar-edit-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
}

.chuan-avatar-uploader-container .chuan-avatar-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 50%;
}

.chuan-avatar-uploader-container .chuan-avatar-edit-wrap:hover .chuan-avatar-edit-overlay {
    opacity: 1;
}

.chuan-uploader-tips {
    margin-left: 16px;
    margin-bottom: 8px;
    text-align: left;
}

.chuan-uploader-tips h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.chuan-uploader-tips p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.my-avatar-progress,
.my-cover-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    overflow: hidden;
}

.my-avatar-progress span,
.my-cover-progress span {
    display: block;
    height: 100%;
    background: #fff;
    transition: width 0.1s ease;
}

/* Settings Cards styling */
.chuan-settings-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.chuan-settings-card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 14px;
}

.chuan-settings-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    text-align: left;
}

.chuan-settings-card-header p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    text-align: left;
}

/* Switch Toggle Styling */
.chuan-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    margin: 0;
}

.chuan-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.chuan-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.chuan-switch-slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.chuan-switch input:checked+.chuan-switch-slider {
    background-color: #111827;
}

.chuan-switch input:checked+.chuan-switch-slider::before {
    transform: translateX(20px);
}

.chuan-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px dashed #f3f4f6;
}

.chuan-switch-row:last-child {
    border-bottom: 0;
    padding-bottom: 8px;
}

.chuan-switch-info {
    text-align: left;
}

.chuan-switch-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.chuan-switch-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .chuan-profile-uploader-card {
        margin-bottom: 50px;
    }

    .chuan-profile-uploader-card .chuan-cover-edit-wrap {
        height: 110px;
    }

    .chuan-avatar-uploader-container {
        margin-top: -35px;
        padding: 0 16px;
    }

    .chuan-avatar-uploader-container .chuan-avatar-edit-wrap {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .chuan-uploader-tips {
        margin-left: 12px;
        margin-bottom: 4px;
    }

    .chuan-uploader-tips h4 {
        font-size: 15px;
    }

    .chuan-uploader-tips p {
        font-size: 11px;
    }

    .chuan-settings-card {
        padding: 18px;
    }
}

/* Align avatar correctly inside sidebar usercard card */
.chuan-my-usercard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.chuan-my-avatar-wrap {
    margin: 0 auto 12px !important;
}

/* Darker background for UID badge */
.chuan-my-uid {
    background: #e5e7eb !important;
    color: #374151 !important;
}

/* PC layout mapping for chuan-my-wrap structure */
@media (min-width: 768px) {
    .chuan-my-wrap {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    .chuan-my-drawer {
        display: block !important;
    }

    .chuan-my-drawer-panel {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .chuan-my-drawer-backdrop {
        display: none !important;
    }

    .chuan-my-sidebar {
        display: block !important;
    }
}

/* Mobile H5 adjustments to match wodeh5.php and hide sidebar */
@media (max-width: 767px) {
    .chuan-my-wrap {
        display: block;
    }

    .chuan-my-drawer {
        display: none !important;
    }
}

/* Aliases/mappings for tabs to render identically to wode.php/wodeh5.php */
.chuan-my-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    padding-bottom: 0px;
    margin-bottom: 20px;
    gap: 8px;
}

.chuan-my-tabs::-webkit-scrollbar {
    display: none;
}

.chuan-my-tab {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 99px;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chuan-my-tab:hover {
    color: #111827;
    background: #f3f4f6;
}

.chuan-my-tab.active,
.chuan-my-tab.chuan-active {
    background: #000 !important;
    color: #fff !important;
}

/* Sidebar navigation item overrides to support hover icons and states */
.chuan-my-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    padding: 8px;
}

.chuan-my-nav .my-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.chuan-my-nav .my-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.chuan-my-nav .my-nav-item.active {
    background: #111827 !important;
    color: #fff !important;
}

.chuan-my-nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.chuan-my-nav .my-nav-item.active .chuan-my-nav-icon {
    color: #fff;
}

/* Align avatar correctly inside sidebar usercard card */
.chuan-my-usercard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.chuan-my-avatar-wrap {
    margin: 0 auto 12px !important;
}

.chuan-my-usercard .chuan-my-avatar-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center avatar and actions in modify avatar panel */
#my-sub-panel-edit-avatar .my-inline-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#my-sub-panel-edit-avatar .position-relative {
    margin: 0 auto 16px !important;
}

/* --- Orange-themed VIP Center Styles (Adapted from vip.php) --- */
.vip-tab-content {
    display: none;
}

.vip-tab-content.active {
    display: block;
}

.chuan-vip-usercard {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.chuan-vip-usercard-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chuan-vip-usercard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.chuan-vip-usercard-info {
    flex: 1;
}

.chuan-vip-usercard-name {
    font-size: 16px;
    font-weight: 800;
    color: #ea580c;
}

.chuan-vip-usercard-status {
    font-size: 12px;
    color: #c2410c;
    margin-top: 4px;
}

.chuan-vip-usercard-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.chuan-vip-usercard-btn:hover {
    background: #c2410c;
}

.chuan-vip-usercard-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.chuan-vip-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.chuan-vip-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.chuan-vip-block-header svg {
    width: 18px;
    height: 18px;
    color: #ea580c;
    fill: currentColor;
}

.chuan-vip-block-body {
    padding: 20px;
}

.chuan-vip-priv-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chuan-vip-priv-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.chuan-vip-priv-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.chuan-vip-priv-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chuan-vip-priv-text {
    flex: 1;
}

.chuan-vip-priv-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.chuan-vip-priv-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.chuan-vip-priv-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #9ca3af;
}

.chuan-vip-priv-tag.active {
    background: #ffedd5;
    color: #ea580c;
}

.chuan-vip-grow-bar {
    margin-bottom: 20px;
}

.chuan-vip-grow-track {
    height: 8px;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
}

.chuan-vip-grow-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    border-radius: 9999px;
    transition: width 0.3s;
}

.chuan-vip-grow-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    margin-top: 8px;
}

.chuan-vip-grow-labels span.active {
    color: #ea580c;
}

.chuan-vip-grow-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 16px;
}

.chuan-vip-grow-stat {
    text-align: center;
}

.chuan-vip-grow-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.chuan-vip-grow-stat-val.up {
    color: #16a34a;
}

.chuan-vip-grow-stat-val.down {
    color: #dc2626;
}

.chuan-vip-grow-stat-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.chuan-vip-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chuan-vip-users-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.vu-rank {
    width: 24px;
    display: flex;
    justify-content: center;
}

.vu-rank-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    background: #e5e7eb;
}

.vu-rank-badge.vu-gold {
    background: #fef3c7;
    color: #d97706;
}

.vu-rank-badge.vu-silver {
    background: #f3f4f6;
    color: #4b5563;
}

.vu-rank-badge.vu-bronze {
    background: #ffedd5;
    color: #c2410c;
}

.vu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.vu-info {
    display: flex;
    flex-direction: column;
}

.vu-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.vu-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.vu-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ea580c;
}

.vu-level svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.chuan-vip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.chuan-vip-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.chuan-vip-modal-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.chuan-vip-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chuan-vip-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.chuan-vip-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.chuan-vip-modal-body {
    padding: 20px;
}

.chuan-vip-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chuan-vip-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
}

.chuan-vip-plan-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.chuan-vip-plan-info p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.chuan-vip-plan-actions {
    display: flex;
    gap: 8px;
}

.chuan-vip-plan-actions button {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.chuan-vip-plan-actions button.balance-btn {
    background: #111827;
    color: #fff;
    border: none;
}

.chuan-vip-plan-actions button.balance-btn:hover {
    background: #000;
}

.chuan-vip-plan-actions button.alipay-btn {
    background: #fff;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chuan-vip-plan-actions button.alipay-btn:hover {
    background: #f3f4f6;
}

/* Hide Profile Sub-Tabs Navigation on H5 Mobile viewports */
@media (max-width: 767px) {
    .chuan-my-tabs--profile-nav {
        display: none !important;
    }
}

/* 1. Profile action buttons positioning: right-aligned on PC, full-width/wrapped on mobile */
.chuan-profile-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    /* Push to the right on PC */
}

.chuan-profile-admin-action {
    display: inline-flex;
    align-items: center;
}

.chuan-profile-admin-action a,
.chuan-profile-admin-action button {
    font-size: 13px;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .chuan-profile-header {
        flex-wrap: wrap !important;
    }

    .chuan-profile-right-actions {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* 2. User profile page tabs horizontal layout & swipe support on mobile */
@media (max-width: 767px) {
    .chuan-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chuan-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .chuan-index-feed-tabs__links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .chuan-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* 3. Width of Data Statistics and Points cards on mobile */
@media (max-width: 991px) {
    .chuan-profile-sidebar {
        width: 100% !important;
    }

    .chuan-sidebar-card {
        width: 100% !important;
    }
}

/* 4. Personal Center content tabs underline indicator on PC */
@media (min-width: 768px) {
    .chuan-my-tabs {
        gap: 24px !important;
        padding-bottom: 0 !important;
    }

    .chuan-my-tab {
        border-radius: 0 !important;
        height: 40px !important;
        padding: 0 !important;
        margin-bottom: -1px !important;
        /* Align with container bottom border */
        border-bottom: 2px solid transparent !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
    }

    .chuan-my-tab:hover {
        background: transparent !important;
        color: #111827 !important;
    }

    .chuan-my-tab.active,
    .chuan-my-tab.chuan-active {
        background: transparent !important;
        color: #111827 !important;
        border-bottom-color: #000 !important;
    }
}

/* 5. Personal Center mobile subpages/back header visibility toggle */
@media (max-width: 767px) {

    /* Banner no rounded corners */
    .chuan-my-mhero,
    .chuan-my-mhero-banner {
        border-radius: 0 !important;
    }

    /* By default hide panels & headers, show only cover dashboard */
    .chuan-my-page:not(.h5-subpage-active) .my-panel,
    .chuan-my-page:not(.h5-subpage-active) .my-m-header {
        display: none !important;
    }

    .chuan-my-page:not(.h5-subpage-active) .chuan-my-mhero {
        display: block !important;
    }

    /* Toggle visibility when subpage is active */
    .chuan-my-page.h5-subpage-active .chuan-my-mhero {
        display: none !important;
    }

    .chuan-my-page.h5-subpage-active .my-panel.active {
        display: block !important;
    }

    .chuan-my-page.h5-subpage-active .my-m-header {
        display: flex !important;
    }

    /* Mobile mhero compact layout */
    .chuan-my-mhero-banner {
        height: 120px;
    }

    .chuan-my-mhero-profile {
        padding: 0 16px;
        margin-top: -32px;
        gap: 12px;
    }

    .chuan-my-mhero-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }

    .chuan-my-mhero-name {
        font-size: 18px;
    }

    .chuan-my-mhero-quick {
        padding: 16px;
        gap: 8px;
    }

    .chuan-my-mhero-quick-item svg {
        width: 20px;
        height: 20px;
    }

    .chuan-my-mhero-quick-label {
        font-size: 10px;
    }

    .chuan-my-mhero-more {
        padding: 16px;
        gap: 12px 8px;
    }

    .chuan-my-mhero-vip-strip {
        margin: 12px 16px 0;
        padding: 10px 14px;
    }

    .chuan-my-mhero-logout-wrap {
        padding: 0 16px 16px;
    }

    /* Mobile tab navigation - scrollable horizontal */
    .chuan-my-tabs {
        padding: 0 16px;
        gap: 6px;
        margin-bottom: 16px;
    }

    .chuan-my-tab {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    /* Mobile content padding */
    .chuan-my-body {
        padding: 0 16px;
    }

    /* Mobile avatar edit - always show overlay on touch */
    .chuan-avatar-edit-wrap {
        width: 100px;
        height: 100px;
    }

    .chuan-avatar-edit-img {
        width: 100px !important;
        height: 100px !important;
    }

    .chuan-avatar-edit-overlay {
        opacity: 1;
    }

    /* Mobile cover edit */
    .chuan-cover-edit-wrap {
        height: 130px;
    }
}

/* H5 mobile layout styles for user profile page (chuan_user.htm) */
@media (max-width: 991px) {
    .chuan-profile-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 12px !important;
    }

    .chuan-feed-card {
        order: 1 !important;
        width: 100% !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .chuan-profile-sidebar {
        display: none !important;
    }

    .chuan-sidebar-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 767px) {
    .chuan-container {
        padding: 0 !important;
    }

    .chuan-profile-banner {
        display: block !important;
        height: auto !important;
        min-height: unset !important;
        background-size: 100% 120px !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-color: #fff !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-radius: 16px !important;
        margin: 12px !important;
        overflow: visible !important;
    }

    .chuan-profile-banner::before {
        height: 120px !important;
        border-radius: 16px 16px 0 0 !important;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%) !important;
    }

    .chuan-profile-header {
        display: block !important;
        background: transparent !important;
        padding: 16px !important;
        margin-top: 80px !important;
    }

    .chuan-profile-header .chuan-avatar-wrapper {
        margin-top: -60px !important;
        margin-bottom: 12px !important;
        display: inline-block !important;
    }

    .chuan-profile-header .chuan-avatar {
        width: 72px !important;
        height: 72px !important;
        border: 3px solid #fff !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        background: #fff !important;
        border-radius: 50% !important;
    }

    .chuan-profile-header .chuan-avatar img {
        border-radius: 50% !important;
        width: 100% !important;
        height: 100% !important;
    }

    .chuan-user-title {
        color: #111827 !important;
        margin-top: 0 !important;
    }

    .chuan-username {
        color: #111827 !important;
        font-size: 18px !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .chuan-username-row {
        align-items: flex-start !important;
    }

    .chuan-user-badges {
        display: flex !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .chuan-user-badges .chuan-badge {
        background: #f3f4f6 !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #374151 !important;
    }

    .chuan-user-badges .chuan-badge--dark {
        background: #111827 !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
        color: #fff !important;
    }

    .chuan-user-meta {
        color: #6b7280 !important;
        font-size: 12px !important;
        margin-top: 8px !important;
    }

    .chuan-user-meta svg {
        color: #9ca3af !important;
    }

    .chuan-profile-right-actions {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 16px !important;
        display: block !important;
    }

    .chuan-profile-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 4px !important;
    }

    .chuan-profile-actions::-webkit-scrollbar {
        display: none !important;
    }

    .chuan-profile-actions .chuan-btn {
        flex: 1 1 0% !important;
        justify-content: center !important;
        height: 34px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .chuan-profile-actions .chuan-btn-light {
        background: #f3f4f6 !important;
        color: #374151 !important;
        border: 1px solid #e5e7eb !important;
    }

    .chuan-profile-actions .chuan-btn-light:active {
        background: #e5e7eb !important;
    }

    .chuan-profile-actions .chuan-btn-danger {
        background: #fee2e2 !important;
        color: #dc2626 !important;
        border: 1px solid #fca5a5 !important;
    }

    .chuan-profile-actions .chuan-btn-danger:active {
        background: #dc2626 !important;
        color: #fff !important;
    }

    .chuan-profile-actions .chuan-btn-warning {
        background: #fffbeb !important;
        color: #d97706 !important;
        border: 1px solid #fcd34d !important;
    }

    .chuan-profile-actions .chuan-btn-warning:active {
        background: #d97706 !important;
        color: #fff !important;
    }

    .chuan-profile-actions .chuan-btn-success {
        background: #ecfdf5 !important;
        color: #059669 !important;
        border: 1px solid #6ee7b7 !important;
    }

    .chuan-profile-actions .chuan-btn-success:active {
        background: #059669 !important;
        color: #fff !important;
    }
}

/* Avatar Frame Animations & Sizing Fixes */
@keyframes bbsAvatarFrameRotate {
    0% {
        rotate: 0deg;
    }

    100% {
        rotate: 360deg;
    }
}

@keyframes bbsAvatarFrameGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.35)) drop-shadow(0 0 4px rgba(251, 191, 36, 0.15));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
    }
}

@keyframes bbsAvatarFrameBreath {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.04;
    }
}

/* Ensure consistent layout and alignment for avatar frames across all pages */
.chuan-avatar-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Custom styling override inside H5 profile header and other pages to prevent display block breaking flex centering */
.chuan-profile-header .chuan-avatar-wrapper,
.chuan-my-page .my-cover-avatar-edit .chuan-avatar-wrapper {
    display: inline-flex !important;
}

/* Avatar Frame Overlay image */
.chuan-avatar-wrapper img.chuan-avatar-frame-overlay {
    position: absolute !important;
    inset: -20% !important;
    width: 140% !important;
    height: 140% !important;
    z-index: 10 !important;
    pointer-events: none !important;
    max-width: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transform-origin: center center !important;
    animation: bbsAvatarFrameRotate 8s linear infinite, bbsAvatarFrameGlow 2.4s ease-in-out infinite alternate, bbsAvatarFrameBreath 2.8s ease-in-out infinite !important;
}

/* When avatar frame is equipped, hide standard avatar wrapper background/border details to align perfectly */
.chuan-avatar-wrapper.has-avatar-frame .chuan-avatar,
.chuan-avatar-wrapper:has(.chuan-avatar-frame-overlay) .chuan-avatar {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Ensure correct image sizing inside avatar wrapper */
.chuan-avatar-wrapper.has-avatar-frame .chuan-avatar img,
.chuan-avatar-wrapper:has(.chuan-avatar-frame-overlay) .chuan-avatar img {
    border-radius: 50% !important;
    /* Force rounded avatars if frame is equipped for perfect alignment */
}

/* Handle normal avatar images inside the wrapper */
.chuan-avatar-wrapper>img:not(.chuan-avatar-frame-overlay),
.chuan-avatar-wrapper>a>img:not(.chuan-avatar-frame-overlay) {
    display: block !important;
    box-sizing: border-box !important;
}

/* Prison Alert Styles */
.aframe {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px dashed transparent;
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 85%;
    font-weight: 400;
}

.alert-master {
    border-color: #bedbc4;
}

.alert-master i,
.alert-master b {
    color: #177f2e;
    font-weight: normal;
}

.alert-master hr {
    border-top: 1px #bedbc4 dashed;
}

.alert-master span {
    color: #343a40;
}

.alert-master a {
    color: #c6303e;
    font-weight: 700;
}

.alert-guest {
    border-color: #efc5c9;
}

.alert-guest i {
    color: #f1c84c;
}

.alert-guest b,
.alert-guest span {
    color: #7d6828;
    font-weight: normal;
}

.alert-guest hr {
    border-top: 1px #7d6828 dashed;
}