/* 测评模块（2026-11-11 融入） */
body.guest-mode .header-nav a:not([data-route="test"]),
body.guest-mode .mobile-nav a:not([data-route="test"]) { display: none !important; }
body.guest-mode .top-user { display: none !important; }
body.guest-mode .header-nav { justify-content: center; }
body.guest-mode .mobile-nav { justify-content: center; }

.as-hero { margin-bottom: 14px; }
.as-hero h2 { margin: 0 0 6px; }
.as-hero p { color: #5c6b66; margin: 0; }
.as-code-card { border: 1px dashed #0d4c43; background: #f2f8f6; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.as-code-row { display: flex; gap: 8px; margin-top: 10px; }
.as-code-row input { flex: 1; padding: 10px 12px; border: 1px solid #cfd8d4; border-radius: 10px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.as-card { border: 1px solid #e3eae7; border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.as-card h3 { margin: 0; font-size: 17px; }
.as-card p { margin: 0; color: #5c6b66; font-size: 13px; flex: 1; }
.as-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #0d4c43; }
.as-meta span { background: #eef4f2; border-radius: 999px; padding: 2px 8px; }
.as-badge { background: #0d4c43 !important; color: #fff; }
.as-q { border: 1px solid #e3eae7; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.as-q legend, .as-q h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.as-opt { display: block; padding: 9px 12px; border: 1px solid #e3eae7; border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.as-opt:has(input:checked) { border-color: #0d4c43; background: #f2f8f6; }
.as-opt input { margin-right: 8px; }
.as-progress { position: sticky; top: 0; background: #fff; padding: 10px 0; z-index: 5; font-size: 13px; color: #5c6b66; }
.as-report-head { text-align: center; padding: 10px 0 4px; }
.as-report-head .as-result-label { font-size: 26px; font-weight: 700; color: #0d4c43; margin: 6px 0; }
.as-dim { margin-bottom: 12px; }
.as-dim-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.as-bar { height: 8px; background: #eef1f0; border-radius: 999px; overflow: hidden; }
.as-bar i { display: block; height: 100%; background: #0d4c43; border-radius: 999px; }
.as-dim p { margin: 6px 0 0; color: #43524d; font-size: 14px; line-height: 1.7; }
.as-action-card { border-left: 4px solid #0d4c43; background: #f2f8f6; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.as-rec-card { border: 1px solid #f0d48a; background: #fffaf0; border-radius: 14px; padding: 16px; margin: 16px 0; }
.as-locked { text-align: center; padding: 18px; border: 1px dashed #c8d2ce; border-radius: 14px; background: #fbfcfc; }
.as-list-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid #e3eae7; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; color: inherit; text-decoration: none; }
.as-list-item small { color: #5c6b66; display: block; }

/* 报告详情页版式统一（2026-11-11）：居中限宽、统一区块节奏与卡片规格、长文案防溢出 */
.as-report { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.as-report > * { margin-top: 0; margin-bottom: 0; }
.as-report .as-report-head { padding: 4px 0 0; }
.as-report .as-meta { justify-content: center; }
.as-report-head p, .as-dim p { overflow-wrap: break-word; }
.as-dims { display: flex; flex-direction: column; gap: 12px; }
.as-report .as-dim { margin-bottom: 0; }
.as-report .panel, .as-report .as-action-card, .as-report .as-rec-card { padding: 20px; border-radius: 16px; }
.as-report .panel h3, .as-report .as-action-card h3 { margin: 0 0 10px; font-size: 17px; }
.as-report .panel p, .as-report .as-action-card p { margin: 0; line-height: 1.8; }
.as-report .panel .btn { margin-top: 14px; }
.as-step-title { font-size: 17px; }
.as-rec-card .as-step-title { margin: 0 0 8px; }
.as-rec-card h3 { margin: 0 0 10px; }
.as-rec-card p { margin: 0; line-height: 1.8; }
.as-rec-card .btn { margin-top: 14px; }
.as-rec-card .as-rec-sub { margin: 12px 0 0; color: #5c6b66; line-height: 1.8; }
/* 次链接可识别样式（2026-11-11）：全局 a{color:inherit;text-decoration:none} 使正文内链接与正文同色无下划线、看不出可点；统一为品牌深绿＋加粗＋下划线，仍保持次级层级、不做成按钮 */
.as-report .as-rec-sub a { color: #0d4c43; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.as-report .as-rec-sub a:hover { color: #083830; text-decoration-thickness: 2px; }
.as-back { text-align: center; margin: 0; }
/* 根因修复：全局 .btn 基础规则未声明 display，<a class="btn"> 在报告页为行内元素，纵向 padding 绘出线盒与相邻文字重叠；报告页内统一为 inline-flex */
.as-report .btn { display: inline-flex; align-items: center; justify-content: center; }

/* 兑换动线理顺（2026-11-11 A–F）：再输码入口、答题页开测前提示 */
.as-code-more { margin-top: 10px; }
.as-linklike { background: none; border: none; color: #0d4c43; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.as-notice { border: 1px solid #e3eae7; background: #fbfcfc; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; color: #43524d; font-size: 14px; line-height: 1.7; }
.as-notice.ok { border-color: #bcd8d1; background: #f2f8f6; }
.as-notice.warn { border-color: #f0d48a; background: #fffaf0; }
.as-notice-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 测评中心规模化（2026-11-11）：分类筛选 chips、只看已兑换开关、本地分页 */
.as-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.as-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.as-chip { border: 1px solid #cfd8d4; background: #fff; color: #43524d; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.as-chip.active { background: #0d4c43; border-color: #0d4c43; color: #fff; font-weight: 700; }
.as-owned-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #43524d; cursor: pointer; padding: 6px 2px; }
.as-owned-toggle input { width: 16px; height: 16px; accent-color: #0d4c43; }
/* 搜索框＋自适应排满（2026-11-23）：搜索框占筛选行中间空位，窄屏自动换行 */
.as-search { flex: 1 1 220px; min-width: 160px; max-width: 380px; padding: 8px 14px; border: 1px solid #cfd8d4; border-radius: 999px; font-size: 14px; color: #43524d; background: #fff; }
.as-search:focus { outline: none; border-color: #0d4c43; }
.as-center-meta { color: #5c6b66; font-size: 13px; margin: 0 0 10px; min-height: 18px; }
.as-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 10px; font-size: 14px; color: #43524d; flex-wrap: wrap; }
.as-pager .btn[disabled] { opacity: .45; cursor: default; }
