/* 互动交流页：仅作用于 interaction-page，避免影响站点公共样式 */
:root {
    --interaction-red: #c91522;
    --interaction-blue: #409eff;
    --interaction-text: #333;
    --interaction-muted: #8a8f98;
    --interaction-border: #e8edf3;
}

body {
    background: #f5f5f5;
}

.content-block {
    display: none !important;
}

.interaction-page {
    background: #f5f5f5;
    color: var(--interaction-text);
    padding: 0 0 34px;
}

.interaction-shell {
    max-width: 1240px;
    min-height: 1010px;
    margin: 0 auto;
    padding: 20px 46px 54px;
    background: #fff;
    box-sizing: border-box;
}

.interaction-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.interaction-breadcrumb .crumb-icon {
    color: var(--interaction-red);
    font-size: 24px;
    line-height: 1;
}

.interaction-breadcrumb .slash {
    color: #222;
}

.interaction-summary {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f5f6f8;
    color: #707782;
    font-size: 14px;
}

.interaction-summary strong {
    color: var(--interaction-blue);
    margin: 0 4px;
}

.interaction-table-wrap {
    overflow-x: auto;
}

.interaction-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.interaction-table th, .interaction-table td {
    height: 68px;
    padding: 10px 12px;
    border: 1px solid var(--interaction-border);
    text-align: center;
    box-sizing: border-box;
}

.interaction-table th {
    height: 46px;
    color: #747b85;
    background: #fff;
    font-weight: 700;
}

.interaction-table tbody tr:nth-child(odd) {
    background: #fafbfd;
}

.interaction-table .expand {
    width: 38px;
    color: #9aa1aa;
    font-size: 20px;
}

.expand-toggle {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8e959e;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.expand-toggle:hover, .expand-toggle:focus {
    color: var(--interaction-blue);
    outline: 0;
}

.expand-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.interaction-table tr.message-detail {
    display: none;
    background: #fff;
}

.interaction-table tr.message-detail.is-expanded {
    display: table-row;
}

.message-detail > td {
    height: auto !important;
    padding: 0 !important;
    text-align: left !important;
}

.message-detail-inner {
    margin: 20px 46px 24px;
    padding: 20px 28px 0;
    background: #fafafa;
}

.detail-row {
    display: flex;
    gap: 38px;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #dfe3e8;
    line-height: 1.65;
}

.detail-row strong {
    flex: 0 0 72px;
    color: #666d76;
    text-align: right;
}

.detail-row span {
    flex: 1;
    color: #3e434a;
}

.reply-card {
    margin: 6px 0 0;
    padding: 18px 22px 16px;
    border: 1px solid #dfe4ea;
    border-left: 4px solid #66c83e;
    border-radius: 6px;
    background: #fff;
}

.reply-card h4 {
    margin: 0 0 12px;
    color: #636a73;
    font-size: 16px;
}

.reply-card p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 6px;
    background: #f4f6f9;
    color: #4e555e;
    line-height: 1.75;
}

.reply-meta {
    margin-top: 14px;
    color: #68717a;
    font-size: 14px;
}

.interaction-table .serial {
    width: 58px;
}

.interaction-table .date {
    width: 120px;
    color: #727984;
    line-height: 1.45;
}

.interaction-table .subject {
    padding-left: 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.interaction-table .operation {
    width: 106px;
}

.status-tag {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #cfe8bf;
    border-radius: 4px;
    color: #67b63b;
    background: #f1faeb;
    font-size: 13px;
}

.interaction-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 28px;
    color: #707782;
    font-size: 14px;
}

.page-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 2px;
    background: #f2f3f5;
    color: #6d737c;
    cursor: pointer;
}

.page-btn:hover, .page-btn.is-active {
    color: #fff;
    background: var(--interaction-blue);
}

.page-btn:disabled {
    color: #c7cbd0;
    background: #f5f6f8;
    cursor: default;
}

.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 8px;
}

.page-jump input {
    width: 40px;
    height: 28px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

.consult-heading {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.consult-intro {
    margin: 10px 0 16px;
    color: #9ca2aa;
    text-align: center;
    font-size: 14px;
}

.consult-form {
    max-width: 1060px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.form-label {
    flex: 0 0 64px;
    padding-top: 11px;
    color: #666d76;
    font-size: 14px;
}

.form-label::first-letter {
    color: #f15b5b;
}

.form-label.required::before {
    content: '*';
    margin-right: 4px;
    color: #ff5f5f;
}

.form-control {
    flex: 1;
    width: 100%;
    min-height: 36px;
    padding: 9px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    outline: 0;
    color: #555;
    font: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #8fc3fa;
    box-shadow: 0 0 0 2px rgba(64,158,255,.12);
}

textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.captcha-row {
    align-items: center;
}

.captcha-row .form-control {
    flex: 0 1 265px;
}

.captcha {
    width: 98px;
    height: 36px;
    margin-left: 6px;
    border: 1px solid #dfe4ea;
    background: #f5f6f8;
    color: #39414a;
    font: 22px Georgia, serif;
    letter-spacing: 4px;
    cursor: pointer;
}

.form-error {
    display: none;
    padding: 2px 0 0 64px;
    margin: -10px 0 11px;
    color: #ef5757;
    font-size: 12px;
}

.form-error.is-visible {
    display: block;
}

.consult-actions {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid #e5e8ec;
    text-align: center;
}

.consult-submit {
    min-width: 72px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: var(--interaction-blue);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.consult-submit:hover {
    background: #2f8de5;
}

.form-success {
    display: none;
    margin-top: 12px;
    color: #56a83e;
    text-align: center;
    font-size: 14px;
}

.form-success.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .interaction-shell {
        padding: 18px 24px 44px;
    }
}

@media (max-width: 640px) {
    .interaction-shell {
        min-height: 0;
        padding: 16px 14px 36px;
    }

    .interaction-breadcrumb {
        font-size: 16px;
    }

    .interaction-pagination {
        gap: 5px;
        flex-wrap: wrap;
    }

    .message-detail-inner {
        margin: 14px 14px 18px;
        padding: 16px 14px 0;
    }

    .detail-row {
        display: block;
    }

    .detail-row strong {
        display: block;
        margin-bottom: 5px;
        text-align: left;
    }

    .reply-card {
        padding: 14px;
    }

    .form-row {
        display: block;
    }

    .form-label {
        display: block;
        padding: 0 0 6px;
    }

    .form-error {
        padding-left: 0;
    }

    .captcha-row .form-control {
        width: calc(100% - 108px);
    }
}
