/* 农户端：政府门户与银行服务相结合的克制视觉 */
body { background: #f5f4f0; }
.gov-utility { background: #2b2522; color: rgba(255,255,255,.78); font-size: 12px; min-height: 36px; display: flex; align-items: center; }
.gov-utility .flex-between { min-height: 36px; }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility-links a:hover { color: #fff; }
.site-header { background: #fff; position: relative; z-index: 20; box-shadow: 0 1px 0 rgba(16,24,40,.04); }
.header-main { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 51px; height: 51px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--red-700), var(--red-900)); box-shadow: 0 7px 18px rgba(112,26,24,.2); }
.brand-mark .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.brand-text { display: grid; gap: 3px; }
.brand-text strong { font-family: var(--serif); font-size: 24px; line-height: 1.2; letter-spacing: .04em; color: #342522; }
.brand-text small { color: var(--gold-700); font-size: 12px; letter-spacing: .2em; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.profile-select-wrap { display: flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.profile-select-wrap .select { width: 190px; border: 0; background: #f7f6f3; font-size: 13px; padding: 8px 30px 8px 10px; }
.header-tool { border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.header-tool:hover { background: #f5f3ef; color: var(--red-700); }
.header-tool[aria-pressed="true"] { background: #fff0ee; color: var(--red-700); }
.font-icon { border: 1px solid currentColor; border-radius: 4px; width: 19px; height: 19px; display: grid; place-items: center; font-family: var(--serif); font-size: 12px; line-height: 1; }
.site-nav { border-top: 1px solid #f0ede7; border-bottom: 3px solid var(--red-800); background: #fbfaf7; }
.nav-inner { display: flex; align-items: center; min-height: 50px; gap: 2px; }
.nav-tab { appearance: none; border: 0; background: transparent; color: #4a4f55; min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; position: relative; }
.nav-tab::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -3px; height: 3px; background: transparent; }
.nav-tab:hover { color: var(--red-700); background: #f6f1eb; }
.nav-tab.active { color: var(--red-800); background: #fff; font-weight: 800; }
.nav-tab.active::after { background: var(--gold-500); }
.nav-trust { margin-left: auto; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.view { animation: viewIn .22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* 首页 */
.home-hero { position: relative; overflow: hidden; background: linear-gradient(110deg, #faf8f3 0%, #fff 54%, #f5ece2 100%); border-bottom: 1px solid #eee9df; }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(126,95,36,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(126,95,36,.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -160px; background: radial-gradient(circle, rgba(181,139,69,.16), rgba(181,139,69,0) 68%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 58px; padding: 58px 0 54px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #ddcda9; border-radius: 999px; color: var(--gold-700); background: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.hero-copy h1 { margin: 18px 0 15px; max-width: 720px; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.22; letter-spacing: .01em; color: #302421; font-weight: 700; }
.hero-copy h1 em { color: var(--red-700); font-style: normal; }
.hero-copy > p { max-width: 660px; color: #5f646a; font-size: 16px; line-height: 1.85; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-actions .btn { min-height: 46px; padding-inline: 22px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.hero-panel { background: rgba(255,255,255,.88); border: 1px solid #e7ded1; border-radius: 20px; padding: 22px; box-shadow: 0 20px 45px rgba(68,45,29,.08); backdrop-filter: blur(6px); }
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #eee8de; }
.hero-panel-head strong { font-family: var(--serif); font-size: 18px; color: #392d28; }
.hero-profile { display: flex; align-items: center; gap: 12px; padding: 17px 0; }
.hero-avatar { width: 44px; height: 44px; border-radius: 13px; background: #f5ede2; display: grid; place-items: center; color: var(--gold-700); }
.hero-profile strong { display: block; font-size: 14px; }
.hero-profile span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.completeness-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.hero-square { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.hero-square > div { background: #faf8f4; border: 1px solid #eee7da; border-radius: 10px; padding: 10px 12px; }
.hero-square strong { display: block; font-size: 20px; color: var(--red-800); line-height: 1.2; }
.hero-square span { font-size: 11px; color: var(--muted); }
.hero-panel .btn { width: 100%; margin-top: 14px; }
.home-body { padding: 46px 0 70px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 48px; }
.quick-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; display: flex; align-items: flex-start; gap: 13px; transition: .18s ease; }
.quick-card:hover { border-color: #d6c3a0; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-icon { width: 42px; height: 42px; border-radius: 12px; background: #f7f1e5; color: var(--gold-700); display: grid; place-items: center; flex: 0 0 auto; }
.quick-card strong { display: block; font-size: 15px; margin-bottom: 3px; }
.quick-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.home-section { margin-top: 48px; }
.home-policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.home-policy { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px; position: relative; overflow: hidden; cursor: pointer; transition: .18s ease; }
.home-policy::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red-700); }
.home-policy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d8dce2; }
.home-policy .meta { display: flex; gap: 7px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.home-policy h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.home-policy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 61px; }
.home-policy-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 11px; }
.home-policy-foot .link-btn { font-size: 12px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e7e2da; border: 1px solid #e7e2da; border-radius: 16px; overflow: hidden; }
.step-card { background: #fff; padding: 24px; }
.step-num { font-family: var(--serif); color: rgba(133,31,29,.18); font-size: 40px; line-height: 1; font-weight: 700; }
.step-card h3 { margin: 14px 0 7px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ai-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ai-preview-copy { padding: 30px; border-radius: 18px; background: #2d2926; color: #fff; position: relative; overflow: hidden; }
.ai-preview-copy::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid rgba(181,139,69,.3); border-radius: 50%; right: -70px; bottom: -90px; box-shadow: 0 0 0 30px rgba(181,139,69,.05), 0 0 0 60px rgba(181,139,69,.03); }
.ai-preview-copy .eyebrow { color: #d8b778; }
.ai-preview-copy h2 { margin: 7px 0 12px; font-family: var(--serif); font-size: 29px; }
.ai-preview-copy p { color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.8; margin: 0 0 20px; max-width: 470px; }
.ai-preview-copy .btn { background: #fff; color: var(--red-800); }
.ai-sample { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ai-bubble { background: #f6f4f0; border-radius: 4px 14px 14px 14px; padding: 13px 15px; color: var(--ink-2); font-size: 13px; }
.ai-answer { margin-top: 10px; margin-left: 42px; border: 1px solid #eadfcb; background: #fffdf8; border-radius: 14px 4px 14px 14px; padding: 14px; font-size: 12px; line-height: 1.75; color: #5a4a35; }
.ai-answer strong { color: var(--red-700); }
.ai-source { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 10px; }

/* 匹配页 */
.page-wrap { padding: 30px 0 70px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.page-title h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 31px; }
.page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.match-profile-bar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.match-profile-icon { width: 42px; height: 42px; border-radius: 12px; background: #f7f1e5; color: var(--gold-700); display: grid; place-items: center; flex: 0 0 auto; }
.match-profile-main { flex: 1; min-width: 0; }
.match-profile-main strong { display: block; font-size: 15px; }
.match-profile-main span { color: var(--muted); font-size: 12px; }
.match-profile-progress { width: 200px; }
.match-profile-progress .completeness-line { margin-bottom: 5px; }
.match-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 15px; }
.match-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: .16s; }
.match-summary:hover { border-color: #c9d0da; transform: translateY(-1px); }
.match-summary.active { box-shadow: inset 0 0 0 1px currentColor; }
.match-summary.green { color: var(--green); }
.match-summary.amber { color: var(--amber); }
.match-summary.blue { color: var(--blue); }
.match-summary.gray { color: var(--muted); }
.match-summary strong { font-size: 24px; line-height: 1; }
.match-summary span { font-size: 12px; color: var(--muted); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 22px; align-items: start; }
.result-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.result-toolbar .select { width: auto; min-width: 150px; padding-block: 8px; }
.result-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.result-list { display: grid; gap: 12px; }
.result-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted-2); border-radius: 12px; padding: 18px 19px; transition: .16s ease; }
.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.result-card.eligible { border-left-color: var(--green); }
.result-card.confirm { border-left-color: #d59a29; }
.result-card.watch { border-left-color: var(--blue); }
.result-card.ineligible { border-left-color: #b6bdc6; }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.result-title-block { min-width: 0; }
.result-title-block h2 { margin: 3px 0 6px; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.result-policy { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.result-title-block .tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; }
.result-side { text-align: right; flex: 0 0 auto; }
.result-side .benefit { display: block; color: var(--red-700); font-weight: 800; font-size: 13px; margin-top: 8px; }
.result-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.reason-block { border-radius: 9px; padding: 10px 11px; font-size: 11.5px; line-height: 1.6; }
.reason-block strong { display: block; font-size: 11px; margin-bottom: 4px; letter-spacing: .04em; }
.reason-block.hit { background: #f0faf5; color: #24614b; }
.reason-block.pending { background: #fff8e8; color: #76551b; }
.reason-block.gap { background: #f6f7f9; color: #58616c; }
.reason-block ul { margin: 0; padding-left: 15px; }
.result-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.result-foot .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; align-items: center; }
.result-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.conflict-note { margin-top: 10px; background: #fff3e0; border: 1px solid #f1d39e; border-radius: 8px; padding: 8px 10px; color: #7b5616; font-size: 11.5px; }
.result-card.collapsed .result-reasons, .result-card.collapsed .conflict-note { display: none; }
.result-aside { position: sticky; top: 18px; display: grid; gap: 13px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px; }
.aside-card h3 { margin: 0 0 10px; font-size: 14px; }
.aside-profile-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 12px; gap: 12px; }
.aside-profile-line:last-of-type { border-bottom: 0; }
.aside-profile-line span { color: var(--muted); flex: 0 0 auto; }
.aside-profile-line strong { font-weight: 600; text-align: right; }
.question-card { background: #fffaf0; border-color: #f0ddb8; }
.question-card p { margin: 0 0 10px; font-size: 12px; color: #74551c; }
.question-card .q-title { font-weight: 800; color: #604516; display: flex; align-items: center; gap: 6px; }

/* 政策库 */
.policy-filter { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .input { padding-left: 38px; }
.filter-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, .7fr)); gap: 10px; }
.policy-list { display: grid; gap: 12px; }
.policy-row { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 164px; gap: 20px; transition: .16s; }
.policy-row:hover { border-color: #cfd6df; box-shadow: var(--shadow-sm); }
.policy-row h2 { margin: 3px 0 7px; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.policy-row .summary { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0 0 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 11.5px; }
.policy-side { border-left: 1px solid var(--line-2); padding-left: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.policy-side .policy-stat { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.policy-side .policy-stat strong { color: var(--ink-2); }
.policy-side .btn { width: 100%; }
.policy-empty { grid-column: 1 / -1; }

/* 政策详情抽屉 */
.detail-headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-summary { margin: 14px 0 0; padding: 14px 15px; border-radius: 10px; background: #faf8f4; border: 1px solid #ede7dc; color: #5f5145; font-size: 13px; line-height: 1.8; }
.detail-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.detail-tab { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.detail-tab.active { border-color: var(--red-700); background: #fff5f3; color: var(--red-700); font-weight: 700; }
.detail-block { margin-bottom: 20px; }
.detail-block h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 17px; display: flex; align-items: center; gap: 7px; }
.detail-block h3::before { content: ""; width: 3px; height: 16px; background: var(--gold-500); border-radius: 2px; }
.detail-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fff; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-item { border: 1px solid var(--line-2); background: #fbfbfc; border-radius: 8px; padding: 10px 12px; }
.detail-item span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.detail-item strong { font-size: 12.5px; line-height: 1.6; }
.detail-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.detail-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.detail-list li .num { width: 20px; height: 20px; border-radius: 50%; background: #f5ede2; color: var(--gold-700); display: grid; place-items: center; flex: 0 0 auto; font-size: 10px; font-weight: 800; margin-top: 1px; }
.material-list { display: grid; gap: 7px; }
.material-item { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 10px; font-size: 12px; cursor: pointer; }
.material-item input { margin-top: 3px; accent-color: var(--green); }
.source-box { border: 1px solid #e8dfd0; background: #fffdf8; border-radius: 10px; padding: 13px; }
.source-box blockquote { margin: 0; color: #5f5143; font-family: var(--serif); font-size: 13px; line-height: 1.9; }
.source-box footer { margin-top: 8px; color: var(--muted); font-size: 10px; }
.detail-disclaimer { margin-top: 22px; }
.sub-item-tabs { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 4px; scrollbar-width: thin; }
.sub-item-tab { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px 10px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sub-item-tab.active { background: var(--red-700); border-color: var(--red-700); color: #fff; font-weight: 700; }
.original-text { white-space: pre-wrap; line-height: 1.9; color: #4a5058; font-family: var(--serif); font-size: 13px; }

/* 问答 */
.chat-page { padding: 26px 0 60px; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; height: min(740px, calc(100vh - 210px)); min-height: 560px; }
.chat-shell { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.chat-head { min-height: 62px; padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-head-main { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--red-700), var(--red-900)); color: #fff; display: grid; place-items: center; }
.chat-head strong { display: block; font-size: 14px; }
.chat-head small { display: block; color: var(--muted); font-size: 10px; }
.chat-log { flex: 1; overflow: auto; padding: 20px; background: linear-gradient(180deg, #fbfbf9, #fff 30%); }
.chat-message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; }
.chat-message.user { flex-direction: row-reverse; }
.chat-message .avatar { width: 28px; height: 28px; border-radius: 9px; background: #eee9df; color: var(--gold-700); display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 800; }
.chat-message.user .avatar { background: var(--red-700); color: #fff; }
.chat-message .bubble { max-width: min(78%, 680px); background: #f7f6f3; border-radius: 4px 13px 13px 13px; padding: 12px 14px; font-size: 13px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; }
.chat-message.user .bubble { background: var(--red-700); color: #fff; border-radius: 13px 4px 13px 13px; }
.chat-message .bubble strong { color: var(--red-700); }
.chat-message.user .bubble strong { color: #fff; }
.chat-cite { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.06); }
.chat-cite button { border: 1px solid #dfd3bd; background: #fffdf8; color: #70572e; border-radius: 5px; padding: 3px 7px; font-size: 10px; }
.chat-feedback { display: flex; gap: 7px; margin-top: 8px; align-items: center; }
.chat-feedback .link-btn { font-size: 10px; color: var(--muted); }
.chat-suggestions { padding: 9px 16px 0; display: flex; gap: 7px; flex-wrap: wrap; background: #fff; }
.suggest-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 5px 10px; font-size: 11px; }
.suggest-chip:hover { border-color: var(--gold-500); background: #fffaf0; }
.chat-input { display: flex; gap: 9px; padding: 12px 16px 16px; background: #fff; }
.chat-input .input { min-height: 44px; }
.chat-input .btn { flex: 0 0 auto; padding-inline: 18px; }
.chat-side { display: grid; align-content: start; gap: 13px; overflow: auto; }
.side-label { font-size: 10px; letter-spacing: .14em; color: var(--gold-700); font-weight: 800; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.side-card h3 { margin: 5px 0 12px; font-size: 14px; }
.side-profile { display: flex; align-items: center; gap: 10px; }
.side-profile .avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f6eee2; color: var(--gold-700); font-family: var(--serif); font-size: 16px; }
.side-profile strong { display: block; font-size: 13px; }
.side-profile span { display: block; color: var(--muted); font-size: 11px; }
.side-facts { margin-top: 13px; }
.side-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 11px; }
.side-facts div:last-child { border-bottom: 0; }
.side-facts span { color: var(--muted); }
.side-trust { color: var(--muted); font-size: 11px; line-height: 1.8; }
.side-trust li { margin-bottom: 5px; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; background: var(--muted-2); border-radius: 50%; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .14s; }
.typing i:nth-child(3) { animation-delay: .28s; }

/* 画像 */
.profile-hero { background: linear-gradient(110deg, #302925, #473b32); color: #fff; border-radius: 18px; padding: 25px 28px; display: flex; justify-content: space-between; align-items: center; gap: 22px; overflow: hidden; position: relative; }
.profile-hero::after { content: ""; position: absolute; right: -50px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 40px rgba(255,255,255,.025); }
.profile-hero h2 { margin: 4px 0 5px; font-family: var(--serif); font-size: 25px; }
.profile-hero p { margin: 0; color: rgba(255,255,255,.64); font-size: 12px; }
.profile-score { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.score-ring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#d6ad66 var(--pct), rgba(255,255,255,.14) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 5px; background: #3d322c; border-radius: 50%; }
.score-ring strong { position: relative; z-index: 1; font-size: 17px; }
.profile-score span { font-size: 11px; color: rgba(255,255,255,.6); }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.dimension-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; min-height: 104px; }
.dimension-card.missing { border-style: dashed; background: #fcfcfd; }
.dimension-card.calc { background: #fafbfc; }
.dimension-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dimension-code { color: var(--gold-700); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.dimension-card h3 { margin: 0 0 6px; font-size: 14px; }
.dimension-card p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.dimension-card.missing p { color: var(--muted); }

/* 帮助 */
.help-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.help-form-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.help-side { display: grid; gap: 12px; }
.help-side-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px; }
.help-side-card h3 { margin: 0 0 9px; font-size: 14px; }
.help-side-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.help-side-card .hotline { font-family: var(--serif); color: var(--red-700); font-size: 23px; font-weight: 700; margin-top: 4px; }
.feedback-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.feedback-quick button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 9px; font-size: 11px; }
.feedback-quick button:hover { border-color: var(--gold-500); }

.site-footer { background: #2c2724; color: rgba(255,255,255,.65); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 32px 0 26px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; margin-bottom: 10px; }
.footer-brand .ic { color: #d2ab69; }
.footer-grid p { margin: 0; font-size: 11px; line-height: 1.8; }
.footer-meta { display: grid; gap: 4px; }
.footer-meta strong { color: rgba(255,255,255,.85); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; font-size: 10px; color: rgba(255,255,255,.45); }

@media (max-width: 1080px) {
  .hero-inner { gap: 30px; grid-template-columns: minmax(0, 1fr) 320px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .home-policy-grid { grid-template-columns: 1fr 1fr; }
  .result-layout, .chat-layout { grid-template-columns: 1fr; }
  .result-aside, .chat-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .chat-layout { height: auto; min-height: 700px; }
  .chat-shell { min-height: 660px; }
  .dimension-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .header-main { min-height: 78px; }
  .brand-text strong { font-size: 20px; }
  .brand-text small { display: none; }
  .profile-select-wrap span { display: none; }
  .profile-select-wrap { padding-left: 0; border-left: 0; }
  .profile-select-wrap .select { width: 150px; }
  .header-tool:last-child { display: none; }
  .nav-inner { overflow-x: auto; }
  .nav-trust { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 42px 0; }
  .hero-panel { max-width: 460px; }
  .ai-preview { grid-template-columns: 1fr; }
  .result-reasons { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid > :first-child { grid-column: 1 / -1; }
  .policy-row { grid-template-columns: 1fr; }
  .policy-side { border-left: 0; border-top: 1px solid var(--line-2); padding: 12px 0 0; flex-direction: row; align-items: center; }
  .policy-side .btn { width: auto; }
  .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gov-utility { display: none; }
  .header-main { padding: 12px 0; gap: 10px; flex-wrap: wrap; }
  .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
  .brand-mark .ic { width: 23px; height: 23px; }
  .brand-text strong { font-size: 17px; }
  .header-tools { margin-left: auto; }
  .profile-select-wrap .select { width: 132px; font-size: 12px; }
  .header-tool { font-size: 0; padding: 8px; }
  .header-tool .font-icon { font-size: 12px; }
  .nav-tab { padding: 0 13px; font-size: 12px; min-height: 46px; }
  .nav-tab .ic { width: 15px; height: 15px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions .btn { flex: 1; }
  .quick-grid, .home-policy-grid, .steps-grid, .match-summary-grid, .dimension-grid { grid-template-columns: 1fr; }
  .page-title { flex-direction: column; }
  .match-profile-bar { align-items: flex-start; flex-wrap: wrap; }
  .match-profile-progress { width: 100%; }
  .match-summary { padding: 12px; }
  .match-summary strong { font-size: 20px; }
  .result-reasons { display: none; }
  .result-card.open-mobile .result-reasons { display: grid; }
  .result-top { gap: 8px; }
  .result-side .benefit { display: none; }
  .result-foot { align-items: flex-start; flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .btn { flex: 1; }
  .result-aside, .chat-side { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-grid > :first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-direction: column; }
  .chat-suggestions { overflow-x: auto; flex-wrap: nowrap; }
  .suggest-chip { white-space: nowrap; }
  .chat-message .bubble { max-width: 86%; }
}

/* 移动端导航保持单行横向滚动，避免中文逐字换行 */
@media (max-width: 840px) {
  .nav-inner { padding-bottom: 0; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 620px) {
  .header-tools { flex: 0 0 100%; justify-content: flex-end; }
  .header-tools .profile-select-wrap { flex: 1; }
  .profile-select-wrap .select { width: 100%; }
  .site-nav { border-bottom-width: 2px; }
  .nav-inner { min-height: 46px; }
}
