body.feedback-page-mode {
    background-color: #fff7fa;
    color: var(--text-main);
}

body.feedback-page-mode.dark-theme {
    background-color: #1c1719;
}

.feedback-main {
    flex: 1;
}

.feedback-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 120px auto 28px;
}

.feedback-head {
    text-align: center;
    margin-bottom: 24px;
}

.feedback-head .kicker {
    color: var(--primary);
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.feedback-head h1 {
    margin: 10px 0 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
}

.feedback-head p {
    margin: 12px auto 0;
    max-width: 780px;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.feedback-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 18px;
    align-items: start;
}

.feedback-panel,
.feed-panel {
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feedback-form {
    display: grid;
    gap: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 10px;
}

.feedback-form label {
    display: grid;
    gap: 7px;
    font-size: 0.93rem;
    color: var(--text-muted);
    font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea,
.feedback-form button {
    font: inherit;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-main);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: rgba(88, 76, 83, 0.7);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: rgba(255, 112, 150, 0.58);
    box-shadow: 0 0 0 3px rgba(255, 112, 150, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.feedback-form textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.75;
}

.paste-zone {
    border: 1px dashed rgba(255, 112, 150, 0.55);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.54);
    min-height: 94px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.paste-zone.is-drag {
    border-color: rgba(255, 112, 150, 0.95);
    background: rgba(255, 236, 243, 0.9);
}

.paste-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paste-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.paste-info strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-main);
    font-size: 0.96rem;
}

.paste-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

#pick-image {
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-main);
    padding: 0 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

#pick-image:hover {
    border-color: rgba(255, 112, 150, 0.45);
}

.pending-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pending-item {
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.pending-item img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.pending-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
}

.pending-meta small {
    color: var(--text-muted);
    font-size: 0.76rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pending-meta button {
    border: 0;
    border-radius: 8px;
    background: rgba(255, 112, 150, 0.15);
    color: #9e3857;
    font-size: 0.76rem;
    padding: 4px 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.submit-btn,
.jump-btn {
    height: 44px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn {
    border: none;
    color: #ffffff;
    background: linear-gradient(120deg, #ff7096 0%, #ff97b4 100%);
    box-shadow: 0 10px 24px rgba(255, 112, 150, 0.28);
}

.jump-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-main);
}

.submit-btn:hover,
.jump-btn:hover {
    transform: translateY(-1px);
}

.form-msg {
    min-height: 1.35em;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-msg.is-error {
    color: #b33a5a;
}

.form-msg.is-success {
    color: #1f8f67;
}

.feed-panel {
    display: flex;
    flex-direction: column;
}

.feed-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-muted);
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.chip.is-active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(120deg, #ff7096 0%, #ff97b4 100%);
}

.feed-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
}

.feed-empty {
    border: 1px dashed rgba(255, 112, 150, 0.4);
    border-radius: 12px;
    min-height: 86px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.94rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.45);
}

.post-card {
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    padding: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.post-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.post-title {
    margin: 8px 0 0;
    font-size: 1.06rem;
    color: var(--text-main);
}

.post-time {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge.bug {
    color: #b23c5a;
    border-color: rgba(255, 112, 150, 0.5);
    background: rgba(255, 112, 150, 0.14);
}

.badge.feat {
    color: #1c7c60;
    border-color: rgba(45, 176, 129, 0.44);
    background: rgba(45, 176, 129, 0.14);
}

.badge.fix {
    color: #2f658e;
    border-color: rgba(67, 140, 207, 0.44);
    background: rgba(67, 140, 207, 0.14);
}

.post-content {
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-images {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-images img {
    width: 100%;
    height: 102px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    object-fit: cover;
}

.post-foot {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-comment-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-open-btn,
.post-delete-btn {
    border-radius: 999px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.post-open-btn:hover,
.post-delete-btn:hover {
    border-color: rgba(255, 112, 150, 0.46);
}

.post-delete-btn {
    color: #a23557;
    background: rgba(255, 112, 150, 0.12);
    border-color: rgba(255, 112, 150, 0.33);
}

body.feedback-modal-open {
    overflow: hidden;
}

.feedback-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.feedback-detail-modal.is-open {
    display: block;
}

.feedback-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 22, 32, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.feedback-detail-dialog {
    position: relative;
    width: min(860px, calc(100% - 18px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.detail-head-main h2 {
    margin: 8px 0 0;
    font-size: clamp(1.26rem, 2.4vw, 1.8rem);
}

.detail-time {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.detail-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-delete,
.detail-close {
    border-radius: 999px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-main);
    padding: 0 14px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
}

.detail-delete {
    color: #a23557;
    background: rgba(255, 112, 150, 0.12);
    border-color: rgba(255, 112, 150, 0.35);
}

.detail-body {
    display: grid;
    gap: 10px;
}

.detail-content {
    color: var(--text-main);
    line-height: 1.78;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-images {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-images img {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    object-fit: cover;
}

.detail-comments {
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    padding-top: 12px;
    display: grid;
    gap: 10px;
}

.detail-comments-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.detail-comments-head h3 {
    margin: 0;
    font-size: 1rem;
}

#detail-comment-count {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.detail-comment-form {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    padding: 10px;
}

.detail-comment-form label {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-comment-form input,
.detail-comment-form textarea {
    font: inherit;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-main);
    padding: 8px 10px;
    outline: none;
}

.detail-comment-form input:focus,
.detail-comment-form textarea:focus {
    border-color: rgba(255, 112, 150, 0.58);
    box-shadow: 0 0 0 3px rgba(255, 112, 150, 0.2);
}

.detail-comment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.detail-submit {
    height: 38px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(120deg, #ff7096 0%, #ff97b4 100%);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
}

.detail-replying {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px dashed rgba(255, 112, 150, 0.42);
    border-radius: 10px;
    padding: 7px 9px;
    background: rgba(255, 238, 244, 0.78);
    color: #8f3553;
    font-size: 0.84rem;
}

.detail-replying button {
    border: 0;
    border-radius: 8px;
    background: rgba(255, 112, 150, 0.15);
    color: #8f3553;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
}

.detail-comment-msg {
    min-height: 1.2em;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.detail-comment-msg.is-error {
    color: #b33a5a;
}

.detail-comment-msg.is-success {
    color: #1f8f67;
}

.detail-comments-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.detail-comment-empty {
    border: 1px dashed rgba(255, 112, 150, 0.35);
    border-radius: 10px;
    padding: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.44);
}

.detail-comment-item {
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    padding: 9px 10px;
    display: grid;
    gap: 6px;
    margin-left: calc(var(--comment-level, 0) * 18px);
}

.detail-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-weight: 700;
}

.detail-role {
    border-radius: 999px;
    border: 1px solid;
    padding: 0 6px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.detail-role.admin {
    color: #8f3553;
    border-color: rgba(255, 112, 150, 0.45);
    background: rgba(255, 112, 150, 0.14);
}

.detail-role.user {
    color: #2f658e;
    border-color: rgba(67, 140, 207, 0.45);
    background: rgba(67, 140, 207, 0.14);
}

.detail-role.guest {
    color: #486071;
    border-color: rgba(108, 137, 159, 0.35);
    background: rgba(108, 137, 159, 0.14);
}

.detail-comment-parent {
    font-size: 0.76rem;
    color: #7f6874;
}

.detail-comment-content {
    margin: 0;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.68;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-comment-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.detail-comment-reply {
    border: 0;
    background: rgba(255, 112, 150, 0.14);
    color: #8f3553;
    border-radius: 8px;
    height: 26px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.detail-comment-delete {
    border: 0;
    background: rgba(255, 112, 150, 0.14);
    color: #a23557;
    border-radius: 8px;
    height: 26px;
    padding: 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

body.feedback-page-mode.dark-theme .feedback-panel,
body.feedback-page-mode.dark-theme .feed-panel {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 20px 56px rgba(2, 6, 23, 0.34);
}

body.feedback-page-mode.dark-theme .feedback-head p,
body.feedback-page-mode.dark-theme .feedback-form label,
body.feedback-page-mode.dark-theme .paste-info p,
body.feedback-page-mode.dark-theme .form-msg,
body.feedback-page-mode.dark-theme .post-content,
body.feedback-page-mode.dark-theme .post-time,
body.feedback-page-mode.dark-theme .post-comment-count,
body.feedback-page-mode.dark-theme .pending-meta small,
body.feedback-page-mode.dark-theme .feed-empty,
body.feedback-page-mode.dark-theme .chip {
    color: #d2c4ca;
}

body.feedback-page-mode.dark-theme .feedback-form input,
body.feedback-page-mode.dark-theme .feedback-form select,
body.feedback-page-mode.dark-theme .feedback-form textarea,
body.feedback-page-mode.dark-theme .paste-zone,
body.feedback-page-mode.dark-theme #pick-image,
body.feedback-page-mode.dark-theme .jump-btn,
body.feedback-page-mode.dark-theme .chip,
body.feedback-page-mode.dark-theme .pending-item,
body.feedback-page-mode.dark-theme .post-card,
body.feedback-page-mode.dark-theme .feed-empty,
body.feedback-page-mode.dark-theme .feedback-detail-dialog,
body.feedback-page-mode.dark-theme .detail-comment-form,
body.feedback-page-mode.dark-theme .detail-comment-item,
body.feedback-page-mode.dark-theme .detail-comment-empty {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.62);
    color: #fff0f5;
}

body.feedback-page-mode.dark-theme .feedback-form input::placeholder,
body.feedback-page-mode.dark-theme .feedback-form textarea::placeholder {
    color: rgba(226, 214, 219, 0.72);
}

body.feedback-page-mode.dark-theme .feedback-form input:focus,
body.feedback-page-mode.dark-theme .feedback-form select:focus,
body.feedback-page-mode.dark-theme .feedback-form textarea:focus {
    border-color: rgba(255, 183, 205, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 183, 205, 0.2);
    background: rgba(30, 41, 59, 0.75);
}

body.feedback-page-mode.dark-theme .post-title,
body.feedback-page-mode.dark-theme .paste-info strong {
    color: #fff0f5;
}

body.feedback-page-mode.dark-theme .detail-time,
body.feedback-page-mode.dark-theme .detail-comment-msg,
body.feedback-page-mode.dark-theme #detail-comment-count,
body.feedback-page-mode.dark-theme .detail-comment-meta,
body.feedback-page-mode.dark-theme .detail-comment-parent {
    color: #d2c4ca;
}

body.feedback-page-mode.dark-theme .detail-delete,
body.feedback-page-mode.dark-theme .detail-close,
body.feedback-page-mode.dark-theme .post-open-btn,
body.feedback-page-mode.dark-theme .post-delete-btn,
body.feedback-page-mode.dark-theme .detail-comment-reply,
body.feedback-page-mode.dark-theme .detail-comment-delete,
body.feedback-page-mode.dark-theme .detail-replying button {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(51, 65, 85, 0.82);
    color: #ffe7ef;
}

body.feedback-page-mode.dark-theme .detail-replying {
    border-color: rgba(255, 183, 205, 0.45);
    background: rgba(255, 183, 205, 0.16);
    color: #ffe7ef;
}

body.feedback-page-mode.dark-theme .detail-comment-form input,
body.feedback-page-mode.dark-theme .detail-comment-form textarea {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.68);
    color: #fff0f5;
}

body.feedback-page-mode.dark-theme .detail-comment-form input:focus,
body.feedback-page-mode.dark-theme .detail-comment-form textarea:focus {
    border-color: rgba(255, 183, 205, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 183, 205, 0.2);
}

body.feedback-page-mode.dark-theme .chip.is-active {
    color: #1c1719;
    background: linear-gradient(120deg, #ffb7cd 0%, #ffe0ea 100%);
}

@media (max-width: 1040px) {
    .feedback-layout {
        grid-template-columns: 1fr;
    }

    .feed-list {
        max-height: 560px;
    }
}

@media (max-width: 768px) {
    .feedback-shell {
        width: calc(100% - 18px);
        margin: 96px auto 24px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .feedback-form textarea {
        min-height: 220px;
    }

    .paste-zone {
        flex-direction: column;
        align-items: flex-start;
    }

    #pick-image {
        width: 100%;
    }

    .pending-images,
    .post-images,
    .detail-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .post-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pending-images,
    .post-images,
    .detail-images {
        grid-template-columns: 1fr;
    }

    .detail-head {
        flex-direction: column;
    }

    .detail-head-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .detail-comment-row {
        grid-template-columns: 1fr;
    }

    .detail-submit {
        width: 100%;
    }
}
