* {
    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;
}

.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: hidden !important;
}

.chuan-my-page .my-cover-avatar {
    width: 76px !important;
    height: 76px !important;
    border-radius: 18px !important;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .25);
    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: 14px;
}

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

.chuan-my-page .my-form span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.chuan-my-page .my-form input,
.chuan-my-page .my-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    font-size: 13px;
    background: #fafafa;
}

.chuan-my-page .my-form input[readonly] {
    color: #8b95a1;
    background: #f3f4f6;
    cursor: not-allowed;
}

.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: 30px !important;
    height: 30px !important;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    line-height: 1 !important;
}

.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: #c3cad3;
    cursor: not-allowed;
    background: #f9fafb;
}

.chuan-my-page .my-edit-field.is-editing input {
    background: #fff;
    color: #111827;
    cursor: text;
    border-color: rgba(0, 0, 0, .18);
}

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

.chuan-my-page .email-verify-box input {
    height: 38px;
    background: #fff;
}

.chuan-my-page .email-verify-box button {
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.chuan-my-page .email-verify-box button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.chuan-my-page .my-field-hint {
    display: block;
    margin-top: 7px;
    color: #8b95a1;
    font-size: 11px;
    font-style: normal;
    line-height: 1.5;
}

.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: 38px;
    padding: 0 18px;
    border-radius: 11px;
    background: #000;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.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;
}