/* 寄给作者（玩家反馈）入口与手账信笺弹窗样式 */

.pc-feedback-intro {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 12;
    min-height: 30px;
    padding: 5px 11px;
    background: rgba(34, 24, 16, 0.88);
    border: 1px solid rgba(211, 162, 76, 0.72);
    border-left: 3px solid #d9b46a;
    border-image: none !important;
    border-radius: 2px;
    color: #f3e8cf;
    font: 700 12px/1.2 'Fusion Pixel', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.pc-feedback-intro:hover,
.pc-feedback-intro:focus-visible {
    background: rgba(54, 38, 24, 0.96);
    border-color: #f1e4c2;
    border-left-color: #f1e4c2;
    outline: none;
}

.pc-feedback-chip {
    min-height: 28px;
    min-width: 44px;
    padding: 4px 9px;
    background: #faf6ea;
    border: 1px solid #c8b899;
    border-left: 3px solid var(--s2-terra, #a63a2b);
    border-image: none !important;
    border-radius: 2px;
    color: var(--px-ink, #2b241d);
    font: 700 11px/1.2 'Fusion Pixel', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 1px 2px 0 rgba(43, 36, 29, 0.16);
    white-space: nowrap;
}
.pc-feedback-chip:hover,
.pc-feedback-chip:focus-visible {
    background: #fffdf5;
    border-color: var(--s2-terra, #a63a2b);
    border-left-color: var(--s2-terra, #a63a2b);
    outline: none;
}

html.book-skin body #app .main:has(#view-adventure.active #branch-intro:not(.hidden)) .pc-page-controls .pc-feedback-chip {
    background: rgba(26, 20, 16, 0.82);
    border-color: rgba(217, 180, 106, 0.55);
    color: #f1e4c2;
}

@media (max-width: 1079px) {
    html.book-skin body #app .main::before {
        padding-right: 236px;
    }
}

/* 弹窗遮罩与主体 */
.pc-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(16, 12, 9, 0.72);
    backdrop-filter: blur(2px);
}
.pc-feedback-modal.hidden {
    display: none;
}

.pc-feedback-card {
    width: min(460px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #faf4e4;
    border: 2px solid #5c462e;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(211, 162, 76, 0.35);
    border-radius: 4px;
    padding: 18px 20px 16px;
    color: #2b241d;
    font-family: Georgia, 'PingFang SC', 'Microsoft YaHei', serif;
    box-sizing: border-box;
}

.pc-fb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(92, 70, 46, 0.35);
}
.pc-fb-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2b241d;
}
.pc-fb-close {
    min-width: 28px;
    min-height: 28px;
    padding: 2px 8px;
    background: #efe5cc !important;
    border: 1px solid rgba(92, 70, 46, 0.45) !important;
    border-image: none !important;
    border-radius: 2px;
    color: #3f3224 !important;
    text-shadow: none !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.pc-fb-close:hover {
    background: #e3d5b2 !important;
}

.pc-fb-desc {
    margin: 10px 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #5a4a38;
}

.pc-fb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.pc-fb-tag {
    padding: 4px 10px;
    background: #efe4c8 !important;
    border: 1px solid #b5a17d !important;
    border-image: none !important;
    border-radius: 999px;
    color: #2b241d !important;
    text-shadow: none !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.pc-fb-tag[aria-pressed="true"] {
    background: #2e4a7d !important;
    border-color: #2e4a7d !important;
    color: #faf6ea !important;
}

.pc-fb-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4b3a28;
}
.pc-fb-textarea,
.pc-fb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    background: #fffdf6;
    border: 1px solid #bba887;
    border-radius: 3px;
    color: #2b241d;
    font: 400 14px/1.55 Georgia, 'PingFang SC', 'Microsoft YaHei', serif;
}
.pc-fb-textarea {
    min-height: 98px;
    resize: vertical;
    margin-bottom: 10px;
}
.pc-fb-input {
    margin-bottom: 10px;
}
.pc-fb-textarea:focus,
.pc-fb-input:focus {
    outline: 2px solid rgba(46, 74, 125, 0.35);
    border-color: #2e4a7d;
}

.pc-fb-privacy {
    margin: 2px 0 12px;
    padding: 7px 10px;
    background: rgba(63, 106, 78, 0.08);
    border-left: 3px solid #3f6a4e;
    font-size: 12px;
    line-height: 1.5;
    color: #375140;
}

.pc-fb-status {
    min-height: 18px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #a63a2b;
}
.pc-fb-status.is-ok {
    color: #2d6a4f;
    font-weight: 700;
}

.pc-fb-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.pc-fb-btn {
    padding: 7px 14px;
    border-radius: 2px;
    border-image: none !important;
    text-shadow: none !important;
    font: 700 13px/1.2 Georgia, 'PingFang SC', 'Microsoft YaHei', serif;
    cursor: pointer;
}
.pc-fb-btn-cancel {
    background: #eadec0 !important;
    border: 1px solid #b5a17d !important;
    color: #2b241d !important;
}
.pc-fb-btn-submit {
    background: #a63a2b !important;
    border: 1px solid #822b1f !important;
    color: #fffaf0 !important;
}
.pc-fb-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
