:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: #eef1f5; color: #2d2f33; }
button { font: inherit; cursor: pointer; }
button:focus { outline: 0; }
.icon { display: block; width: 1em; height: 1em; }
.screen { width: 100%; max-width: 390px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: #f3f5f8; }

/* 首页：所有尺寸以原型 390px 逻辑宽度校准，故不包含手机状态栏。 */
.home-screen { position: relative; padding-bottom: 70px; background: #f5f7fb; }
.home-top { padding: calc(12px + var(--safe-top)) 12px 20px; background: radial-gradient(125px 190px at 82% 0%, rgba(157,213,255,.86) 0, rgba(132,198,255,.24) 42%, transparent 72%), linear-gradient(145deg, #1d81f1 0%, #499ef3 62%, #5cafef 100%); }
.search-row { display: flex; align-items: center; gap: 10px; }
.search-field { display: flex; align-items: center; gap: 8px; flex: 1; height: 31px; min-width: 0; padding: 0 11px; border: 0; border-radius: 8px; color: rgba(255,255,255,.92); background: rgba(236,248,255,.45); text-align: left; font-size: 16px; line-height: 1; }
.search-field .icon { width: 18px; height: 18px; flex: none; stroke-width: 1.85; }
.scan-button { display: grid; place-items: center; width: 28px; height: 31px; padding: 0; border: 0; color: #fff; background: transparent; }
.scan-button .icon { width: 22px; height: 22px; stroke-width: 2.3; }
.notice { display: flex; align-items: center; gap: 9px; height: 41px; margin-top: 16px; padding: 0 11px; overflow: hidden; border-radius: 8px; color: #ad7329; background: #fff5df; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.notice .icon { width: 20px; height: 20px; flex: none; color: #fa862d; fill: #fa862d; stroke: #fa862d; }
.notice span { overflow: hidden; text-overflow: clip; }
.annual-card { position: relative; display: flex; height: 203px; margin-top: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.95); border-radius: 10px; background: linear-gradient(130deg, #fff 2%, #f4fbff 50%, #c9edff 100%); box-shadow: 0 8px 18px rgba(17,112,219,.18); }
.annual-card::before { position: absolute; right: -49px; bottom: -76px; width: 174px; height: 174px; border: 18px solid rgba(68,185,255,.11); border-radius: 50%; content: ''; }
.annual-copy { position: relative; z-index: 2; width: 64%; padding: 55px 0 0 17px; }
.annual-copy h1 { margin: 0; color: #202938; font-size: 18px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; white-space: nowrap; }
.annual-copy p { width: 214px; margin: 17px 0 14px; color: #3c4653; font-size: 14px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.annual-action { width: 161px; height: 43px; padding: 0; border: 0; border-radius: 23px; color: #fff; background: linear-gradient(100deg, #247ef4, #4b9bff); box-shadow: 0 6px 10px rgba(35,122,229,.22); font-size: 15px; font-weight: 600; }
.annual-topic { position: absolute; z-index: 5; top: 0; right: 0; display: flex; align-items: center; gap: 5px; height: 53px; padding: 0 14px 0 21px; border: 0; border-radius: 0 9px 0 22px; color: #fff; background: rgba(87,158,245,.82); font-size: 15px; font-weight: 600; }.annual-topic .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.annual-art { position: relative; flex: 1; min-width: 110px; }
.annual-shadow { position: absolute; right: -10px; bottom: 17px; width: 106px; height: 35px; border-radius: 50%; background: rgba(40,155,224,.14); transform: rotate(-8deg); }
.annual-sheet { position: absolute; display: block; width: 57px; height: 92px; border: 3px solid #b9e8ff; border-radius: 7px 7px 3px 3px; background: repeating-linear-gradient(90deg, rgba(126,214,255,.17) 0 1px, transparent 1px 11px), linear-gradient(#f9ffff, #bcefff); box-shadow: 0 5px 11px rgba(54,147,202,.14); }
.sheet-one { right: 45px; bottom: -14px; transform: rotate(-10deg); }.sheet-two { right: 11px; bottom: 6px; height: 65px; opacity: .78; transform: rotate(4deg); }
.annual-tag { position: absolute; z-index: 2; display: grid; place-items: center; height: 16px; border-radius: 3px; color: #4a91d8; background: #fff; box-shadow: 0 3px 5px rgba(47,130,187,.18); font-size: 7px; font-weight: 700; }
.tag-tax { top: 91px; right: 56px; width: 43px; transform: rotate(14deg); }.tag-refund { top: 103px; right: 14px; width: 25px; color: #4599e4; transform: rotate(5deg); }
.annual-screen { position: absolute; right: 41px; bottom: 27px; display: block; width: 67px; height: 38px; border: 3px solid #aee8ff; border-radius: 4px; background: linear-gradient(#eeffff, #88defd); transform: rotate(-5deg); }
.annual-screen i, .annual-screen b, .annual-screen em { position: absolute; display: block; border-radius: 2px; background: #61bff2; }.annual-screen i { left: 8px; top: 8px; width: 38px; height: 4px; }.annual-screen b { left: 8px; top: 17px; width: 25px; height: 3px; }.annual-screen em { left: 8px; top: 24px; width: 33px; height: 3px; }
.annual-person { position: absolute; z-index: 3; right: 17px; bottom: 18px; width: 29px; height: 57px; border-radius: 14px 14px 6px 6px; background: linear-gradient(#262e3b 0 16%, #ffd1ab 17% 33%, #f3ddb4 34% 71%, #2a3d5e 72%); transform: rotate(-5deg); }.annual-person i { position: absolute; left: 5px; top: 17px; width: 19px; height: 13px; border-radius: 9px 9px 5px 5px; background: #ffd1ab; }.annual-person b { position: absolute; left: 4px; bottom: -4px; width: 23px; height: 24px; border-radius: 7px; background: #345a86; }
.home-content { padding: 41px 12px 0; }.home-content h2 { margin: 0 0 14px; color: #232931; font-size: 18px; font-weight: 700; line-height: 1.2; }
.deduction-card { min-height: 164px; padding: 12px; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(123deg, #5baff2 0%, #328eee 63%, #147df0 100%); box-shadow: 0 8px 18px rgba(24,123,225,.2); }
.deduction-head { display: flex; align-items: center; justify-content: space-between; height: 25px; font-size: 16px; font-weight: 600; }.deduction-head > span, .deduction-head a { display: flex; align-items: center; }.deduction-head > span .icon { width: 20px; height: 20px; margin-right: 7px; color: #ff5f57; fill: #ff5f57; stroke: #ff5f57; }.deduction-head a { align-self: flex-start; gap: 2px; height: 39px; margin: -12px -12px 0 0; padding: 0 11px 0 16px; border-radius: 0 9px 0 21px; color: #fff; background: rgba(25,111,218,.52); font-size: 14px; }.deduction-head a .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.deduction-card > strong { display: block; margin: 31px 0 14px; text-align: center; font-size: 17px; font-weight: 600; }
.declaration-button { display: flex; align-items: center; width: 82%; height: 42px; margin: 0 auto; padding: 0 14px; border: 0; border-radius: 22px; color: #2d3441; background: linear-gradient(#fff, #e9efff); }.family-badge { display: grid; place-items: center; width: 34px; height: 31px; color: #825688; }.family-badge .icon { width: 26px; height: 26px; stroke-width: 1.6; }.declaration-button small { margin-left: 7px; color: #41444c; font-size: 12px; }.declaration-button em { width: 1px; height: 22px; margin: 0 14px; background: #d1d7e2; transform: rotate(15deg); }.declaration-button b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.quick-services { display: flex; gap: 12px; margin: 21px -12px 0; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }.quick-services::-webkit-scrollbar { display: none; }.quick-card { flex: 0 0 106px; height: 164px; padding: 11px 9px; border: 0; border-radius: 10px 10px 6px 6px; color: #2f343c; background: #fff; box-shadow: 0 2px 7px rgba(38,81,135,.07); text-align: left; }.quick-card i { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 11px; border-radius: 8px; color: #fff; font-style: normal; }.quick-card i .icon { width: 21px; height: 21px; stroke-width: 2; }.quick-card i.blue { background: #1488f7; }.quick-card i.purple { background: #9757f1; }.quick-card i.mint { background: #15cdae; }.quick-card strong { display: block; margin-bottom: 7px; color: #32363c; font-size: 14px; font-weight: 600; line-height: 1.32; }.quick-card span { display: block; color: #999fa9; font-size: 10px; line-height: 1.5; }.memory-banner { height: 98px; margin-top: 1px; padding: 45px 18px 0; overflow: hidden; color: #ffe5b8; background: radial-gradient(circle at 89% 10%, rgba(255,255,255,.36) 0 1px, transparent 2px 22px), linear-gradient(118deg, #fa9250, #fd6846); font-size: 23px; font-weight: 800; font-style: italic; letter-spacing: -1px; }.memory-banner span { text-shadow: 0 1px 0 #e57c3b; }
.bottom-nav { position: fixed; z-index: 10; bottom: 18px; left: 50%; display: flex; align-items: center; justify-content: space-around; width: min(calc(100% - 30px), 360px); height: 51px; padding: 3px 8px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.9); border-radius: 27px; background: rgba(255,255,255,.94); box-shadow: 0 7px 20px rgba(20,58,108,.17); backdrop-filter: blur(13px); }.nav-item { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 1px; padding: 0; border: 0; color: #2d323a; background: transparent; font-size: 10px; line-height: 1.15; }.nav-icon { display: grid; place-items: center; width: 22px; height: 23px; }.nav-icon .icon { width: 21px; height: 21px; stroke-width: 2; }.nav-item.active { color: #1686f5; font-weight: 600; }.nav-item.active .nav-icon { border-radius: 8px 8px 4px 4px; background: #1686f5; color: #fff; }.nav-item.active .nav-icon .icon { width: 17px; height: 17px; stroke-width: 2.3; }

/* 查询页 */
.filter-screen, .result-screen { min-height: 100dvh; background: #f3f5f8; }.plain-header, .result-header { position: relative; display: flex; align-items: center; justify-content: center; height: calc(63px + var(--safe-top)); padding-top: var(--safe-top); border-bottom: 1px solid #e6e8ec; background: #fff; }.plain-header h1, .result-header h1 { margin: 0; color: #2d3034; font-size: 17px; font-weight: 400; }.back-link, .appeal { position: absolute; top: var(--safe-top); display: flex; align-items: center; height: 63px; padding: 0; border: 0; color: #4386f4; background: transparent; font-size: 17px; font-weight: 400; }.back-link { left: 16px; gap: 1px; }.back-link .icon { width: 24px; height: 24px; stroke-width: 2.1; }.appeal { right: 17px; font-size: 16px; }
.filter-section { margin-top: 12px; background: #fff; }.filter-section h2 { display: flex; align-items: center; gap: 11px; height: 48px; margin: 0; padding: 0 17px; border-bottom: 1px solid #e9ebee; color: #272b30; font-size: 17px; font-weight: 700; }.filter-section h2 > span { width: 4px; height: 24px; border-radius: 4px; background: #4486f5; }.year-row { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 17px; border: 0; color: #33373d; background: #fff; font-size: 17px; text-align: left; }.year-row b { margin-left: 88px; font-weight: 400; }.year-row .icon { width: 23px; height: 23px; margin-left: auto; color: #ced3d9; stroke-width: 1.6; transition: transform .2s ease; }.year-row[aria-expanded="true"] .icon { transform: rotate(90deg); }.type-section { margin-top: 13px; }.type-options { padding: 0 17px; background: #fff; }.type-option { display: flex; align-items: center; width: 100%; height: 52px; padding: 0; border: 0; border-bottom: 1px solid #e7e9ed; color: #30343a; background: #fff; text-align: left; font-size: 17px; }.type-option i { display: grid; place-items: center; width: 24px; height: 24px; margin-right: 19px; border: 1px solid #d6dbe1; border-radius: 50%; color: transparent; font-style: normal; }.type-option i .icon { width: 17px; height: 17px; stroke-width: 2; }.type-option.selected i { border-color: #4386f5; color: #fff; background: #4386f5; }.other-types { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; color: #3a84f5; background: #fff; font-size: 17px; }.other-types .icon { width: 24px; height: 24px; stroke-width: 1.9; }.filter-actions { padding: 34px 20px; }.query-button { width: 100%; height: 49px; border: 0; border-radius: 4px; color: #fff; background: #4486f2; font-size: 18px; font-weight: 400; box-shadow: 0 6px 13px rgba(54,125,236,.14); }

/* 年度选择：点击右侧箭头后，以可上下滑动的原生风格滚轮选择。 */
.year-picker { position: fixed; z-index: 30; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; }.year-picker.open { pointer-events: auto; opacity: 1; }.year-picker-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .24s ease; }.year-picker.open .year-picker-backdrop { opacity: 1; }.year-picker-sheet { position: absolute; bottom: 0; left: 50%; width: min(100%, 390px); height: 360px; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 28px rgba(19,39,69,.13); transform: translate(-50%, 105%); transition: transform .25s cubic-bezier(.2,.75,.3,1); }.year-picker.open .year-picker-sheet { transform: translate(-50%, 0); }.year-picker-sheet header { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 17px; border-bottom: 1px solid #e2e4e8; }.year-picker-sheet header button { min-width: 52px; padding: 0; border: 0; color: #59616d; background: transparent; font-size: 18px; }.year-picker-sheet header .year-confirm { color: #4386f5; }.year-wheel { position: relative; height: 310px; padding: 133px 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }.year-wheel::-webkit-scrollbar { display: none; }.year-selection-frame { position: absolute; z-index: 2; top: 183px; right: 0; left: 0; height: 44px; border-top: 1px solid #d9dce1; border-bottom: 1px solid #d9dce1; pointer-events: none; }.year-option { display: block; width: 100%; height: 44px; padding: 0; border: 0; color: #d7d9dd; background: transparent; font-size: 17px; scroll-snap-align: center; transition: color .15s, font-size .15s; }.year-option.selected { color: #23262b; font-size: 18px; font-weight: 500; }

/* 结果页：页面框架固定，仅明细列表在内部纵向滚动。 */
.result-screen { display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: hidden; }
.result-header { position: relative; z-index: 20; flex: 0 0 auto; }
.result-screen .summary { position: relative; z-index: 19; flex: 0 0 auto; box-shadow: 0 5px 9px rgba(32, 51, 81, .06); }
.summary { padding: 0 17px; background: #fff; }.summary > div { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid #e7e9ed; color: #31343a; font-size: 17px; }.summary > div:last-child { border-bottom: 0; }.summary span { display: flex; align-items: center; }.summary span i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 5px; border: 1.4px solid #4386f5; border-radius: 50%; color: #4386f5; font-style: normal; }.summary span i .icon { width: 14px; height: 14px; stroke-width: 1.7; }.summary strong { color: #292c31; font-size: 17px; font-weight: 400; }.record-list { flex: 1 1 auto; min-height: 0; padding-top: 12px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }.record { min-height: 171px; padding: 18px 17px 14px; border-top: 12px solid #f3f5f8; background: #fff; }.record:first-child { border-top: 0; }.record-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.record-title strong, .record-title time { color: #2d3035; font-size: 17px; font-weight: 400; line-height: 1.2; }.record p { position: relative; overflow: hidden; margin: 0 0 6px; padding-right: 18px; color: #9da4af; font-size: 15px; font-weight: 400; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }.record p:last-child { margin-bottom: 0; }.record p span { color: inherit; }.record .payer .icon { position: absolute; right: -1px; top: -3px; width: 21px; height: 21px; color: #cbd0d6; stroke-width: 1.5; }

@media (min-width: 600px) { body { padding: 18px; }.screen { box-shadow: 0 10px 34px rgba(11,31,61,.14); }.bottom-nav { bottom: 35px; } }
