body.complaint-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f5f5;
}

.complaint-page > main {
    flex: 1 0 auto;
}

.complaint-section {
    padding: 36px 0 56px;
}

.complaint-container {
    width: 1260px;
}

.complaint-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 34px 48px 42px;
}

.complaint-page-title {
    margin-bottom: 28px;
}

.complaint-page-title h1 {
    margin: 0;
    color: #222;
    font-size: 30px;
    font-family: "Source Han Sans CN-Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.complaint-report-page {
    background: #f5f5f5;
}

.complaint-report-page > main {
    flex: 1 0 auto;
}

.complaint-report-page .transparency-detail-section {
    padding-bottom: 72px;
}

.complaint-report-page .transparency-detail-tabs {
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.complaint-report-page .transparency-detail-tabs .transparency-detail-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: #fff;
    color: #333;
}

.complaint-report-page .transparency-detail-tabs .transparency-detail-tab:hover {
    background: #fff;
    color: #f17930;
    border-bottom-color: #f17930;
}

.complaint-report-body {
    padding: 32px 40px 40px;
    background: #fff;
    border: 1px solid #efefef;
    border-top: 0;
}

.complaint-report-body .transparency-section-title {
    margin-bottom: 24px;
    font-size: 18px;
}

.complaint-report-form {
    margin: 0;
    max-width: 100%;
}

.complaint-report-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 48px;
    margin-bottom: 20px;
}

.complaint-report-row.is-full {
    grid-template-columns: minmax(0, 1fr);
}

.complaint-report-field {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.complaint-report-field.is-full,
.complaint-report-upload-field {
    align-items: start;
}

.complaint-report-field.is-full .complaint-report-label,
.complaint-report-upload-field .complaint-report-label {
    padding-top: 12px;
}

.complaint-report-label {
    color: #333;
    font-size: 14px;
    text-align: right;
    line-height: 1.4;
    white-space: nowrap;
}

.complaint-report-control {
    display: block;
    width: 100%;
    min-width: 0;
}

.complaint-report-field input,
.complaint-report-field select,
.complaint-report-field textarea,
.complaint-report-control input,
.complaint-report-control select {
    width: 100%;
    min-width: 0;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
}

.complaint-report-field input,
.complaint-report-field select,
.complaint-report-control input,
.complaint-report-control select {
    height: 44px;
    padding: 0 14px;
}

.complaint-report-field textarea {
    min-height: 180px;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
}

.complaint-report-field textarea::placeholder {
    color: #c0c0c0;
}

.complaint-report-field select:invalid,
.complaint-report-control select:invalid {
    color: #c0c0c0;
}

.complaint-report-page .complaint-date-control,
.complaint-report-page .complaint-select-control {
    position: relative;
}

.complaint-report-page .complaint-date-control input[type="date"] {
    background: #fff;
}

.complaint-report-page .complaint-select-control select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
}

.complaint-report-page .complaint-upload {
    min-height: 140px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    padding: 32px 20px 24px;
}

.complaint-report-page .complaint-upload-tip {
    margin-top: 14px;
    color: #b0b0b0;
    font-size: 12px;
}

.complaint-report-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 28px;
    padding-top: 0;
}

.complaint-report-page .complaint-btn {
    min-width: 112px;
    height: 42px;
    border-radius: 4px;
    font-size: 16px;
}

.complaint-report-page .complaint-btn-reset {
    border-color: #dcdfe6;
    color: #666;
}

.complaint-report-page .complaint-btn-submit {
    background: #f17930;
}

.complaint-form {
    max-width: 100%;
}

.complaint-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.complaint-row-top {
    align-items: flex-start;
}

.complaint-row-top .complaint-label {
    padding-top: 12px;
}

.complaint-label {
    flex: 0 0 132px;
    padding-right: 18px;
    color: #333;
    font-size: 14px;
    line-height: 44px;
    text-align: right;
}

.complaint-control {
    flex: 1;
    min-width: 0;
}

.complaint-control input,
.complaint-control select,
.complaint-control textarea {
    width: 100%;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
}

.complaint-control input,
.complaint-control select {
    height: 44px;
    padding: 0 14px;
}

.complaint-control textarea {
    min-height: 168px;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
}

.complaint-control textarea::placeholder {
    color: #c0c0c0;
}

.complaint-control input:focus,
.complaint-control select:focus,
.complaint-control textarea:focus {
    border-color: #d8d8d8;
}

.complaint-date-control,
.complaint-select-control {
    position: relative;
}

.complaint-date-control input[type="date"] {
    position: relative;
    z-index: 2;
    background: transparent;
    padding-right: 42px;
    color: #333;
}

.complaint-date-control:not(.has-value) input[type="date"]::-webkit-datetime-edit {
    color: transparent;
}

.complaint-date-control:not(.has-value) input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: transparent;
}

.complaint-date-control input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.complaint-date-placeholder {
    position: absolute;
    left: 14px;
    top: 0;
    line-height: 44px;
    color: #c0c0c0;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.complaint-date-control.has-value .complaint-date-placeholder {
    display: none;
}

.complaint-date-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -8px;
    pointer-events: none;
    z-index: 1;
}

.complaint-select-control select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    color: #333;
}

.complaint-select-control select:invalid {
    color: #c0c0c0;
}

.complaint-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #bdbdbd;
    pointer-events: none;
}

.complaint-upload {
    min-height: 132px;
    border: 1px solid #e8e8e8;
    background: #f7f7f7;
    padding: 28px 20px 22px;
    text-align: center;
}

.complaint-file-input {
    display: none;
}

.complaint-upload-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.complaint-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.complaint-upload-tip {
    margin: 12px 0 0;
    color: #b0b0b0;
    font-size: 12px;
    line-height: 1.5;
}

.complaint-file-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.complaint-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.complaint-file-item a {
    color: #f17930;
    text-decoration: none;
    word-break: break-all;
}

.complaint-file-remove {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.complaint-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 28px;
    padding-top: 4px;
}

.complaint-btn {
    min-width: 108px;
    height: 40px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 1px;
}

.complaint-btn-reset {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
}

.complaint-btn-submit {
    min-width: 128px;
    border: 0;
    background: #f17930;
    color: #fff;
}

.complaint-btn-submit:hover {
    background: #e56f28;
}

.complaint-btn-submit:disabled,
.complaint-btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.complaint-toast {
    display: none;
    position: fixed;
    left: 50%;
    top: 120px;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.complaint-toast.is-show {
    display: block;
}

.complaint-toast.is-success {
    background: #67c23a;
}

.complaint-toast.is-error {
    background: #f56c6c;
}

@media (max-width: 1280px) {
    .complaint-container {
        width: 100%;
        padding: 0 20px;
    }

    .complaint-panel {
        padding: 28px 24px 32px;
    }
}

@media (max-width: 960px) {
    .complaint-report-body {
        padding: 24px 20px 28px;
    }

    .complaint-report-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .complaint-report-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .complaint-report-label {
        text-align: left;
    }

    .complaint-report-field.is-full .complaint-report-label,
    .complaint-report-upload-field .complaint-report-label {
        padding-top: 0;
    }

    .complaint-page-title h1 {
        font-size: 24px;
    }

    .complaint-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .complaint-label {
        flex: none;
        padding-right: 0;
        line-height: 1.5;
        text-align: left;
    }

    .complaint-row-top .complaint-label {
        padding-top: 0;
        margin-bottom: 8px;
    }

    .complaint-actions {
        flex-direction: column;
    }

    .complaint-btn {
        width: 100%;
    }
}
