.article-content .aiw-source-ai-note {
    min-height: 44px;
    gap: 5px;
}

.article-content .aiw-article-report-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid #e6eaee;
    color: #687580;
    font-size: 13px;
    line-height: 1.6;
    text-indent: 0;
}

.article-content .aiw-report-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0 2px 0 12px;
    border: 0;
    background: transparent;
    color: #687580;
    font: inherit;
    line-height: 1.4;
    text-indent: 0;
    cursor: pointer;
    transition: color .18s ease;
}

.article-content .aiw-report-trigger svg { width: 16px; height: 16px; }
.article-content .aiw-report-trigger:hover { color: #167da9; }
.article-content .aiw-report-trigger:focus-visible { outline: 2px solid #218cbb; outline-offset: 2px; }
body.aiw-report-open { overflow: hidden; }

.aiw-report-modal {
    --report-accent: #167da9;
    --report-text: #303b46;
    --report-muted: #6b747d;
    --report-border: #d7dce1;
    position: fixed;
    z-index: 10040;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--report-text);
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    text-align: left;
    text-indent: 0;
}

.aiw-report-modal, .aiw-report-modal * { box-sizing: border-box; }
.aiw-report-modal[hidden], .aiw-report-modal [hidden] { display: none !important; }
.aiw-report-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .43); }
.aiw-report-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 600px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .2);
    animation: aiw-report-enter .18s ease-out;
}

@keyframes aiw-report-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.aiw-report-modal button { font: inherit; cursor: pointer; touch-action: manipulation; }
.aiw-report-modal button:disabled { opacity: .5; cursor: not-allowed; }
.aiw-report-modal :focus-visible { outline: 2px solid var(--report-accent); outline-offset: 3px; }
.aiw-report-modal p { margin: 0; text-indent: 0; }
.aiw-report-header { display: flex; min-height: 56px; padding: 0 10px 0 24px; align-items: center; justify-content: space-between; flex: 0 0 auto; border-bottom: 1px solid #eceff2; background: #fafbfc; }
.aiw-report-header h2 { margin: 0; padding: 0; color: #283744; font-size: 17px; font-weight: 600; line-height: 1.5; }
#aiw-report-close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #697781; font-size: 26px; font-weight: 400; }
#aiw-report-close:hover { background: #eef2f5; color: #222; }
.aiw-report-form { display: flex; min-height: 0; margin: 0; flex-direction: column; }
.aiw-report-body { min-height: 0; padding: 20px 24px 16px; overflow-y: auto; overscroll-behavior: contain; }
.aiw-report-modal .aiw-report-article { margin-bottom: 20px; color: var(--report-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.aiw-report-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; margin-bottom: 20px; }
.aiw-report-label { margin: 0; padding-top: 10px; color: #36424c; font-size: 13px; font-weight: 400; }
.aiw-report-required { color: #c43a35; }
.aiw-report-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
.aiw-report-modal label { cursor: pointer; }
.aiw-report-options label, .aiw-report-rights-options label { display: flex; min-height: 44px; margin: 0; padding: 8px 0; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 400; line-height: 1.65; }
.aiw-report-modal input[type="radio"], .aiw-report-modal input[type="checkbox"] { width: 15px; height: 15px; margin: 3px 0 0; flex: 0 0 15px; accent-color: var(--report-accent); cursor: pointer; }
.aiw-report-rights-option { grid-column: span 2; }
.aiw-report-rights-option small { display: block; color: var(--report-muted); font-size: 12px; }
.aiw-report-rights { margin-top: 8px; padding: 12px; border: 1px solid #dce8f0; border-radius: 4px; background: #f7fafc; font-size: 13px; }
.aiw-report-rights-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; margin-top: 4px; }
.aiw-report-modal .aiw-report-help { margin-top: 6px; color: var(--report-muted); font-size: 12px; line-height: 1.6; }
.aiw-report-modal .aiw-report-error { margin-top: 6px; color: #b52c2c; font-size: 12px; line-height: 1.6; }
.aiw-report-textarea { position: relative; }
.aiw-report-modal textarea, #aiw-report-contact { display: block; width: 100%; border: 1px solid #cbd2d9; border-radius: 3px; background: #fff; color: var(--report-text); font: inherit; box-shadow: none; }
.aiw-report-modal textarea { min-height: 126px; max-height: 240px; margin: 0; padding: 10px 12px 30px; resize: vertical; line-height: 1.65; }
.aiw-report-modal textarea::placeholder, #aiw-report-contact::placeholder { color: #7a838b; font-size: 12px; }
.aiw-report-modal [aria-invalid="true"] { outline: 1px solid #bd3434; outline-offset: 2px; }
#aiw-report-count { position: absolute; right: 12px; bottom: 7px; color: var(--report-muted); font-size: 12px; pointer-events: none; }
#aiw-report-contact { height: 44px; padding: 8px 12px; }
.aiw-report-modal .aiw-report-privacy-note { padding: 10px 12px; border-radius: 3px; background: #f5f7f9; color: #667481; font-size: 12px; line-height: 1.7; }
.aiw-report-message { margin-top: 12px; padding: 12px; border: 1px solid #cddfe9; border-radius: 3px; background: #f1f8fc; color: #365c73; font-size: 13px; overflow-wrap: anywhere; }
.aiw-report-message strong { display: block; margin-bottom: 5px; }
.aiw-report-footer { display: flex; padding: 12px 24px; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px solid #eceff2; background: #fff; }
.aiw-report-footer button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 3px; font-size: 13px; }
.aiw-report-message.is-error { border-color: #eccaca; background: #fff7f7; color: #ad3030; }
#aiw-report-submit { min-width: 136px; background: var(--report-accent); color: #fff; transition: background .18s ease; }
#aiw-report-submit:hover { background: #126b92; }

@media (max-width: 600px) {
    .aiw-report-modal { padding: 12px; }
    .aiw-report-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .aiw-report-header { padding-left: 18px; }
    .aiw-report-body { padding: 16px 18px; }
    .aiw-report-row { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 16px; }
    .aiw-report-label { padding-top: 0; font-size: 14px; }
    .aiw-report-options { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .aiw-report-rights-option { grid-column: auto; }
    .aiw-report-rights-options { column-gap: 12px; }
    .aiw-report-modal textarea, #aiw-report-contact { font-size: 16px; }
    .aiw-report-footer { padding: 10px 18px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .aiw-report-panel { animation: none; }
    .article-content .aiw-report-trigger, #aiw-report-submit { transition: none; }
}

/* Replace the submitted form with a short confirmation, then close automatically. */
.aiw-report-modal.is-submitted .aiw-report-panel { width: 420px; }
.aiw-report-success { padding: 28px 24px 30px; text-align: center; }
.aiw-report-success-icon { display: block; width: 48px; height: 48px; margin: 0 auto 16px; color: var(--report-accent); }
.aiw-report-success h3 { margin: 0 0 12px; color: var(--report-text); font-size: 20px; font-weight: 600; line-height: 1.5; }
.aiw-report-success p { font-size: 14px; line-height: 1.8; }
.aiw-report-success .aiw-report-success-hint { margin-top: 12px; color: var(--report-muted); font-size: 12px; }
