body.style4-feedback-page {
    background: linear-gradient(180deg, #f6f8fc 0%, #fbfcfe 100%);
    color: #333;
}

body.style4-feedback-page .l-container {
    width: 1450px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

body.style4-feedback-page .feedback-main {
    padding: 40px 0 10px;
}

body.style4-feedback-page .flex {
    display: flex;
}

body.style4-feedback-page .flex-between {
    display: flex;
    justify-content: space-between;
}

body.style4-feedback-page .alcenter {
    align-items: center;
}

body.style4-feedback-page .mb20 {
    margin-bottom: 20px;
}

body.style4-feedback-page .mt-10 {
    margin-top: 10px;
}

body.style4-feedback-page .mt30 {
    margin-top: 30px;
}

body.style4-feedback-page .text-center {
    text-align: center;
}

body.style4-feedback-page .c_b3b3b3 {
    color: #b3b3b3;
}

body.style4-feedback-page .page-title {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

body.style4-feedback-page .page-subtitle {
    margin-bottom: 30px;
    color: #8a94a6;
    font-size: 15px;
    line-height: 1.8;
}

body.style4-feedback-page .feedback-card {
    margin-bottom: 30px;
    padding: 32px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.style4-feedback-page .feedback-card:hover {
    border-color: rgba(255, 86, 5, 0.14);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.style4-feedback-page .feedback-section-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

body.style4-feedback-page .feedback-form__label-required {
    color: #f00;
}

body.style4-feedback-page .feedback-field-hidden {
    display: none;
}

body.style4-feedback-page .form-group {
    margin-bottom: 24px;
}

body.style4-feedback-page .form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
}

body.style4-feedback-page .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    background: #fafbfc;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

body.style4-feedback-page .form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
    background: #fff;
}

body.style4-feedback-page textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

body.style4-feedback-page .select-type {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

body.style4-feedback-page .type-option {
    flex: 0 0 auto;
}

body.style4-feedback-page .type-option input[type="radio"] {
    display: none;
}

body.style4-feedback-page .type-option label {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    background: #f0f2f5;
    color: #555;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.style4-feedback-page .type-option input[type="radio"]:checked + label {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

body.style4-feedback-page .feedback-actions {
    justify-content: flex-end;
}

body.style4-feedback-page .submit-btn {
    padding: 16px 40px;
    border: none;
    border-radius: 40px;
    background: var(--color-primary);
    box-shadow: 0 8px 16px rgba(var(--color-primary-rgb), 0.2);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.style4-feedback-page .submit-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.3);
}

body.style4-feedback-page .submit-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

body.style4-feedback-page .feedback-inline-msg {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

body.style4-feedback-page .filter-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

body.style4-feedback-page .filter-tab {
    position: relative;
    padding: 6px 0;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
}

body.style4-feedback-page .filter-tab.active {
    color: var(--color-primary);
    font-weight: 500;
}

body.style4-feedback-page .filter-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -17px;
    width: 100%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--color-primary);
}

body.style4-feedback-page .feedback-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.style4-feedback-page #feedbackPagination {
    min-height: 34px;
}

body.style4-feedback-page #feedbackPagination .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--color-primary) !important;
}

body.style4-feedback-page #feedbackPagination .layui-laypage .layui-laypage-curr em {
    color: #fff !important;
}

body.style4-feedback-page .feedback-item {
    padding: 24px;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.style4-feedback-page .feedback-item:hover {
    border-color: #d0e9ff;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.06);
}

body.style4-feedback-page .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

body.style4-feedback-page .item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.style4-feedback-page .item-type {
    padding: 4px 12px;
    border-radius: 30px;
    background: #e9f4fe;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
}

body.style4-feedback-page .item-time {
    color: #b3b3b3;
    font-size: 13px;
}

body.style4-feedback-page .status-badge {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

body.style4-feedback-page .status-badge.replied {
    background: #e1f7e6;
    color: #2e9c5a;
}

body.style4-feedback-page .status-badge.pending {
    background: #fff3da;
    color: #d48c1c;
}

body.style4-feedback-page .item-content {
    margin-bottom: 16px;
    padding-right: 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

body.style4-feedback-page .feedback-order {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

body.style4-feedback-page .item-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

body.style4-feedback-page .feedback-state {
    padding: 60px 0;
}

body.style4-feedback-page .feedback-state--muted {
    color: #b3b3b3;
}

body.style4-feedback-page .feedback-state--error {
    color: #ef4444;
}

body.style4-feedback-page .feedback-dialog-fallback {
    padding: 20px;
}

.feedback-ticket-tip,
.feedback-count-tip {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.status-badge.closed {
    background: #eef2f6;
    color: #667085;
}

.feedback-record-btn {
    border: 1px solid #dbe7f3;
    background: #fff;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-record-btn:hover {
    border-color: var(--color-primary);
    background: #f2fbff;
}

.feedback-record-layer .layui-layer-content {
    background: #f8fafc;
}

.feedback-record-layer .layui-layer-title {
    height: 48px;
    line-height: 48px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}

.feedback-record-layer .layui-layer-setwin {
    top: 16px;
    right: 14px;
}

.feedback-record-layer .layui-layer-btn {
    padding: 12px 18px 16px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.feedback-record-layer .layui-layer-btn .layui-layer-btn0 {
    margin: 0;
    height: 34px;
    line-height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: #1e9fff;
}

.feedback-record-dialog {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.feedback-record-list {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background: #fff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.feedback-record-empty {
    padding: 24px 0;
    text-align: center;
    color: #98a2b3;
    font-size: 14px;
}

.feedback-record-item {
    max-width: 78%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f7fb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.feedback-record-item.user {
    margin-left: auto;
    background: linear-gradient(135deg, #f1fbff, #e6f7ff);
}

.feedback-record-item.admin {
    margin-right: auto;
    background: #f7f8fb;
}

.feedback-record-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feedback-record-role {
    min-width: 44px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.feedback-record-role.user {
    background: #38bdf8;
}

.feedback-record-role.admin {
    background: #fb923c;
}

.feedback-record-name {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.feedback-record-time {
    margin-left: auto;
    font-size: 12px;
    color: #98a2b3;
}

.feedback-record-content {
    color: #1f2937;
    line-height: 1.8;
    font-size: 14px;
    word-break: break-word;
}

.feedback-record-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.feedback-record-image-item {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.feedback-record-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-record-editor {
    background: #fff;
    padding: 14px 16px 10px;
}

.feedback-record-textarea {
    width: 100%;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.feedback-record-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 182, 255, 0.12);
}

.feedback-record-toolbar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-record-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-record-tip {
    color: #98a2b3;
    font-size: 12px;
}

.feedback-send-btn {
    border: 0;
    border-radius: 999px;
    background: #69be58;
    color: #fff;
    min-width: 92px;
    height: 32px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.feedback-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    body.style4-feedback-page .l-container {
        width: 100%;
        padding: 0 16px;
    }

    body.style4-feedback-page .feedback-main {
        padding: 20px 0 8px;
    }

    body.style4-feedback-page .page-title {
        font-size: 26px;
    }

    body.style4-feedback-page .page-subtitle {
        margin-bottom: 22px;
        font-size: 14px;
    }

    body.style4-feedback-page .feedback-card {
        padding: 22px 16px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    body.style4-feedback-page .feedback-section-title {
        font-size: 20px;
    }

    body.style4-feedback-page .flex-between.alcenter.mb20 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    body.style4-feedback-page .select-type {
        gap: 12px;
    }

    body.style4-feedback-page .filter-tabs {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    body.style4-feedback-page .filter-tab {
        white-space: nowrap;
    }

    body.style4-feedback-page .item-header,
    body.style4-feedback-page .item-title {
        flex-wrap: wrap;
    }

    body.style4-feedback-page .item-content {
        padding-right: 0;
    }

    body.style4-feedback-page .feedback-actions {
        justify-content: stretch;
    }

    body.style4-feedback-page .submit-btn {
        width: 100%;
    }

    .feedback-ticket-tip,
    .feedback-count-tip {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .feedback-record-layer {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        left: 10px !important;
        margin: 0 !important;
    }

    .feedback-record-layer .layui-layer-content {
        height: calc(100vh - 146px) !important;
    }

    .feedback-record-item {
        max-width: 100%;
    }

    .feedback-record-time {
        width: 100%;
        margin-left: 0;
    }

    .feedback-record-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-send-btn {
        width: 100%;
        height: 40px;
    }
}

@media (max-width: 480px) {
    body.style4-feedback-page .l-container {
        padding: 0 12px;
    }

    body.style4-feedback-page .page-title {
        font-size: 22px;
    }

    body.style4-feedback-page .feedback-card {
        padding: 18px 12px;
    }

    body.style4-feedback-page .type-option {
        width: 100%;
    }

    body.style4-feedback-page .type-option label {
        width: 100%;
        text-align: center;
    }
}
