/* ===== StarNexus 投稿前自查工具 · author-check.css ===== */
:root {
    --purple: #4A3A6B;
    --gold: #D4AF37;
    --purple-soft: #F5F2FA;
    --gold-soft: #FDF8E6;
    --paper: #FFFFFF;
    --wash: #FAF7F2;
    --line: #E6DFD0;
    --ink: #4A3A6B;
    --text-secondary: #7B6A9C;
    --green: #2F6F4E;
    --orange: #C46B2A;
    --red: #C73E3A;
}

.ac-page { max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; }

/* ===== Hero 区（紫色背景） ===== */
.ac-hero {
    position: relative; margin: 24px 0 40px; padding: 56px 40px 40px;
    border-radius: 18px; overflow: hidden;
    background: linear-gradient(135deg, #4A3A6B 0%, #6B5A8A 100%);
    color: #FFFFFF;
}
.ac-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(circle at 85% 15%, rgba(212,175,55,.28), transparent 42%);
}
.ac-hero-badge {
    position: relative; display: inline-block; margin-bottom: 14px; padding: 5px 16px;
    background: #D4AF37; color: #4A3A6B; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.ac-hero h1 { position: relative; margin: 0; color: #FFFFFF; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: .02em; }
.ac-hero .ac-hero-sub { position: relative; margin: 12px 0 26px; color: #FFFFFF; font-size: 15px; opacity: .9; line-height: 1.7; }
.ac-dim-strip { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.ac-dim-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
    color: #FFFFFF; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.ac-dim-chip .dim-n { color: #D4AF37; font-weight: 800; }
@media (max-width: 640px) { .ac-hero { padding: 40px 20px 32px; } }

/* ===== 自查工作区：两栏 60/40 ===== */
.ac-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .ac-grid { grid-template-columns: 1fr; } }

.ac-panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    padding: 24px; box-shadow: 0 6px 24px rgba(74,58,107,.05);
}
.ac-panel h2 { margin: 0 0 16px; font-size: 17px; color: var(--purple); display: flex; align-items: center; gap: 8px; }

/* 选项卡 */
.ac-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ac-tab {
    flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px 10px 0 0;
    background: var(--wash); color: var(--text-secondary); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; font-family: inherit;
}
.ac-tab.active { background: var(--purple); color: #FFFFFF; border-color: var(--purple); }
.ac-tab:hover:not(.active) { border-color: var(--purple); color: var(--purple); }

.ac-tabpane { display: none; }
.ac-tabpane.active { display: block; }

.ac-textarea {
    width: 100%; min-height: 260px; padding: 14px; box-sizing: border-box;
    border: 2px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.7;
    font-family: inherit; color: var(--ink); background: var(--wash);
    resize: vertical; outline: none; transition: border-color .2s, background .2s;
}
.ac-textarea:focus { border-color: var(--purple); background: #fff; }

/* 拖拽上传区 */
.ac-dropzone {
    border: 2px dashed var(--line); border-radius: 12px; padding: 36px 20px;
    text-align: center; color: var(--text-secondary); cursor: pointer;
    transition: all .2s; background: var(--wash);
}
.ac-dropzone:hover, .ac-dropzone.dragover { border-color: var(--purple); background: var(--purple-soft); }
.ac-dropzone .dz-icon { font-size: 42px; line-height: 1; }
.ac-dropzone .dz-title { margin: 10px 0 4px; font-weight: 700; color: var(--purple); font-size: 15px; }
.ac-dropzone .dz-hint { font-size: 12px; }
.ac-dropzone .dz-formats { margin-top: 10px; font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.ac-file-name { margin-top: 12px; font-size: 13px; color: var(--green); font-weight: 600; }
.ac-file-error { margin-top: 10px; font-size: 12px; color: var(--red); }

/* 表单小部件 */
.ac-label { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 600; margin: 14px 0 6px; }
.ac-input {
    width: 100%; padding: 10px 14px; box-sizing: border-box;
    border: 2px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit;
    color: var(--ink); background: var(--wash); outline: none; transition: border-color .2s, background .2s;
}
.ac-input:focus { border-color: var(--purple); background: #fff; }
.ac-row { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.ac-btn { padding: 11px 26px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all .2s; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ac-btn-gold { background: var(--gold); color: #4A3A6B; }
.ac-btn-gold:hover { background: #E5C048; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(212,175,55,.4); }
.ac-btn-gold:disabled { background: #E9DEBC; cursor: not-allowed; transform: none; box-shadow: none; }
.ac-btn-outline { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.ac-btn-outline:hover { background: var(--purple-soft); border-color: var(--purple); }
.ac-btn-purple { background: var(--purple); color: #FFFFFF; }
.ac-btn-purple:hover { background: #5B4A7C; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(74,58,107,.3); }
.ac-sample-chip {
    padding: 6px 14px; background: var(--purple-soft); border-radius: 999px;
    color: var(--purple); font-size: 12px; font-weight: 600; cursor: pointer; border: none;
}
.ac-sample-chip:hover { background: var(--gold-soft); }

/* 右栏：论文信息概览 */
.ac-meta-card { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ac-meta-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--purple-soft); }
.ac-meta-item .mi-icon { font-size: 24px; }
.ac-meta-item .mi-label { font-size: 12px; color: var(--text-secondary); }
.ac-meta-item .mi-value { font-size: 20px; font-weight: 800; color: var(--purple); }

/* ===== 结果区 ===== */
.ac-result { margin-top: 26px; }
.ac-result-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ac-result-title h2 { margin: 0; font-size: 18px; color: var(--purple); }
.ac-score-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 640px) { .ac-score-overview { grid-template-columns: 1fr; } }
.ac-score-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper); }
.ac-score-card .sc-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.ac-score-card .sc-num { font-size: 30px; font-weight: 900; color: var(--purple); margin: 4px 0; }
.ac-score-card .sc-num small { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.ac-progress { height: 8px; border-radius: 999px; background: #EFE9F5; overflow: hidden; margin-top: 6px; }
.ac-progress .fill { height: 100%; border-radius: 999px; background: var(--purple); transition: width .8s ease; }
.ac-progress .fill.gold { background: var(--gold); }
.ac-level-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ac-level-high { background: #E5F2EC; color: var(--green); }
.ac-level-medium { background: #FDF3E3; color: var(--orange); }
.ac-level-low { background: #FBE9E8; color: var(--red); }

/* 九维度评分条 */
.ac-dim-list { display: flex; flex-direction: column; gap: 12px; }
.ac-dim-row { border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
.ac-dim-row .dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-dim-row .dr-name { font-weight: 700; color: var(--purple); font-size: 14px; }
.ac-dim-row .dr-score { font-size: 13px; font-weight: 800; color: var(--purple); }
.ac-dim-row .dr-score .pill { display: inline-block; min-width: 52px; text-align: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.pill-good { background: #E5F2EC; color: var(--green); }
.pill-mid { background: #FDF3E3; color: var(--orange); }
.pill-low { background: #FBE9E8; color: var(--red); }
.ac-dim-row .dr-bar { height: 6px; border-radius: 999px; background: #EFE9F5; margin: 8px 0 8px; overflow: hidden; }
.ac-dim-row .dr-bar .fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.ac-dim-row .dr-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.ac-dim-row .dr-suggestion { margin-top: 8px; font-size: 13px; color: var(--ink); line-height: 1.6; background: var(--gold-soft); border-radius: 8px; padding: 8px 12px; }
.ac-dim-row .dr-suggestion strong { color: var(--purple); }

.ac-overall { margin-top: 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; background: var(--gold-soft); font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.ac-overall strong { color: var(--purple); }
.ac-journal-note { margin-top: 10px; border-radius: 10px; padding: 10px 14px; background: var(--purple-soft); color: var(--purple); font-size: 13px; }

.ac-export-bar { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ac-loading { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.ac-spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: acspin .8s linear infinite; }
@keyframes acspin { to { transform: rotate(360deg); } }
.ac-empty { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.ac-empty .ac-empty-icon { font-size: 56px; margin-bottom: 10px; opacity: .5; }

/* ===== 历史区 ===== */
.ac-history { margin-top: 26px; }
.ac-history-list { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.ac-history-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: all .2s; background: var(--paper); }
.ac-history-item:hover { border-color: var(--purple); box-shadow: 0 4px 14px rgba(74,58,107,.1); }
.ac-history-item .hi-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ac-history-item .hi-preview { font-size: 13px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-history-item .hi-score { font-size: 12px; font-weight: 800; color: var(--purple); white-space: nowrap; }
.ac-history-item .hi-meta { margin-top: 6px; font-size: 11.5px; color: var(--text-secondary); display: flex; gap: 12px; flex-wrap: wrap; }
.ac-history-empty { text-align: center; padding: 22px 12px; color: var(--text-secondary); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; }

/* ===== 积分提示 ===== */
.ac-points-hint { margin-top: 10px; font-size: 12.5px; color: #7B6A9C; background: rgba(212,175,55,.08); border: 1px dashed rgba(212,175,55,.45); border-radius: 8px; padding: 8px 12px; }
.ac-points-hint b { color: #B8860B; }
.ac-points-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(46,160,67,.08); border: 1px solid rgba(46,160,67,.35); color: #2E7D32; font-size: 13px; }
.ac-points-note b { color: #1B5E20; }
.ac-empty p { margin: 0; }
.ac-empty p + p { margin-top: 14px; }
.ac-empty .ac-btn { display: inline-flex; }

/* ===== Hero 标题双色（“自查”金色强调） ===== */
.ac-hero h1 span { color: var(--gold, #D4AF37); }

/* ===== 报告规范选择器 ===== */
.ac-select {
    width: 100%; padding: 10px 14px; box-sizing: border-box;
    border: 2px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit;
    color: var(--ink); background: var(--wash); outline: none; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.ac-select:focus { border-color: var(--purple); background: #fff; }

@media (max-width: 640px) {
    .ac-page { padding: 0 14px 56px; }
    .ac-panel { padding: 16px; }
}
