/* 一秒互联公司 www.yimiaonet.com：一秒政务通政务便民小程序原型样式。 */
:root {
  --civic-red: #9b1c23;
  --civic-red-deep: #741319;
  --civic-red-soft: #f7eaeb;
  --ink: #1d252c;
  --ink-soft: #4b5660;
  --paper: #f4f6f7;
  --white: #ffffff;
  --gold: #b99145;
  --gold-soft: #f4eddd;
  --jade: #246b5c;
  --jade-soft: #e5efec;
  --blue: #315d7a;
  --blue-soft: #e8f0f4;
  --neutral-soft: #edf0f2;
  --line: rgba(29, 37, 44, .12);
  --line-strong: rgba(29, 37, 44, .2);
  --shadow: 0 28px 80px rgba(29, 37, 44, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #e8ecef; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: #e8ecef; font-family: Arial, "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input, textarea, select { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, textarea, select { outline: 0; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(185, 145, 69, .5); outline-offset: 2px; }

.desktop-stage { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 44px 24px; overflow: hidden; background: linear-gradient(90deg, rgba(255,255,255,.52), transparent 38%), #e8ecef; }
.stage-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(116,20,24,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(116,20,24,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.stage-copy { position: absolute; top: 50%; left: max(5vw, 44px); width: min(390px, 30vw); transform: translateY(-50%); }
.stage-copy::before { content: ""; display: block; width: 72px; height: 5px; margin-bottom: 22px; background: var(--civic-red); }
.stage-copy span { color: var(--civic-red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.stage-copy strong { display: block; margin: 14px 0 8px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(38px, 4.2vw, 64px); line-height: 1; }
.stage-copy p { margin: 0; color: #66717a; font-size: 13px; line-height: 1.8; }
.prototype-badge { position: absolute; top: 25px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #58636c; border: 1px solid rgba(29,37,44,.14); background: rgba(255,255,255,.72); font-size: 11px; transform: translateX(-50%); backdrop-filter: blur(12px); }
.prototype-badge svg { width: 14px; height: 14px; color: var(--civic-red); }

.device-shell { position: relative; z-index: 3; width: 390px; height: 844px; overflow: hidden; border: 10px solid #252526; border-radius: 44px; background: #151516; box-shadow: var(--shadow); }
.device-shell::before { content: ""; position: absolute; z-index: 30; top: 7px; left: 50%; width: 100px; height: 24px; border-radius: 16px; background: #151516; transform: translateX(-50%); }
.device-topbar { position: absolute; z-index: 35; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; background: var(--civic-red-deep); font-size: 10px; font-weight: 900; }
.device-topbar > span { display: flex; align-items: center; gap: 5px; }
.device-topbar svg { width: 11px; height: 11px; stroke-width: 2.5; }
.device-topbar b { font-size: 9px; }
.device-home-indicator { position: absolute; z-index: 40; left: 50%; bottom: 5px; width: 116px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.88); transform: translateX(-50%); }

.mini-app { position: absolute; inset: 30px 0 0; overflow: hidden; background: var(--paper); }
.mini-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 54px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 12px; color: #fff; background: var(--civic-red-deep); border-bottom: 1px solid rgba(255,255,255,.12); }
.mini-title { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.mini-title strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.civic-mark { display: grid; place-items: center; width: 23px; height: 23px; color: var(--civic-red-deep); background: #fff; font-family: Georgia, "Microsoft YaHei", serif; font-size: 13px; font-weight: 900; }
.icon-button, .mini-more { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: inherit; background: transparent; }
.back-button { grid-column: 1; }
.mini-title { grid-column: 2; }
.mini-more { grid-column: 3; }
.icon-button svg { width: 19px; height: 19px; }
.mini-more { justify-self: end; grid-auto-flow: column; gap: 3px; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; }
.mini-more span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.screen { position: absolute; inset: 54px 0 64px; display: none; overflow-x: hidden; overflow-y: auto; padding: 18px 16px 26px; background: var(--paper); overscroll-behavior: contain; scrollbar-width: none; animation: screenIn .32s var(--ease); }
.screen::-webkit-scrollbar, .modal-content::-webkit-scrollbar, .assistant-messages::-webkit-scrollbar { display: none; }
.screen.active { display: block; }
.process-screen { bottom: 0; padding-bottom: 88px; }

.home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.location-button, .identity-chip { display: flex; align-items: center; gap: 5px; padding: 0; color: var(--ink); background: transparent; font-size: 10px; font-weight: 800; }
.location-button svg { width: 15px; height: 15px; color: var(--civic-red); }
.location-button svg:last-child { width: 12px; height: 12px; color: #8d8580; }
.identity-chip { padding: 6px 8px; color: var(--jade); background: var(--jade-soft); border: 1px solid rgba(36,107,92,.12); border-radius: 4px; font-size: 9px; }
.identity-chip svg { width: 12px; height: 12px; }
.global-search { width: 100%; min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 11px; text-align: left; color: #6f7a83; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.global-search:hover { border-color: rgba(49,93,122,.32); box-shadow: 0 6px 16px rgba(29,37,44,.06); }
.global-search:active { transform: scale(.99); }
.global-search svg { width: 17px; height: 17px; color: var(--blue); }
.global-search span { font-size: 11px; }
.global-search kbd { padding: 4px 6px; color: #65717a; background: var(--neutral-soft); border: 1px solid #d9dee2; border-radius: 3px; font-family: inherit; font-size: 8px; }

.civic-hero { position: relative; min-height: 275px; margin: 14px 0 12px; padding: 22px 20px; overflow: hidden; color: #fff; background: var(--civic-red-deep); }
.civic-hero::before { content: ""; position: absolute; width: 190px; height: 190px; right: -72px; bottom: -76px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 23px rgba(255,255,255,.035), 0 0 0 50px rgba(255,255,255,.025); animation: sealTurn 18s linear infinite; }
.civic-hero::after { content: "民生"; position: absolute; right: 22px; top: 60px; color: rgba(255,255,255,.05); font-family: STKaiti, KaiTi, serif; font-size: 76px; font-weight: 900; line-height: 1; writing-mode: vertical-rl; }
.hero-rule { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: #e4c988; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.hero-rule::after { content: ""; position: absolute; top: 50%; left: 92px; right: 30px; height: 1px; background: rgba(228,201,136,.45); }
.hero-rule b { font-family: Georgia, serif; font-size: 14px; font-weight: 400; }
.civic-hero h1 { position: relative; z-index: 2; margin: 20px 0 10px; max-width: 300px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 28px; line-height: 1.22; }
.civic-hero h1 em { color: #ead49e; font-style: normal; }
.civic-hero > p { position: relative; z-index: 2; max-width: 285px; margin: 0; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.7; }
.hero-action { position: relative; z-index: 2; min-width: 220px; height: 41px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 0 13px; color: var(--civic-red-deep); background: #fff; font-size: 10px; font-weight: 900; box-shadow: 0 8px 18px rgba(45,12,15,.12); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hero-action svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.hero-action:hover { box-shadow: 0 10px 24px rgba(45,12,15,.2); transform: translateY(-2px); }
.hero-action:hover svg { transform: translateX(4px); }
.hero-action:active { box-shadow: 0 4px 10px rgba(45,12,15,.16); transform: translateY(0) scale(.98); }
.hero-flow { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 6px; margin-top: 18px; }
.hero-flow > i { height: 1px; background: rgba(255,255,255,.28); }
.hero-flow span { display: grid; justify-items: center; gap: 5px; color: rgba(255,255,255,.55); }
.hero-flow span > i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.hero-flow span svg { width: 12px; height: 12px; }
.hero-flow span b { font-size: 8px; white-space: nowrap; }
.hero-flow span.active { color: #ead49e; }
.hero-flow span.active > i { border-color: #e4c988; background: rgba(228,201,136,.12); }

.notice-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-height: 48px; padding: 8px 10px; background: var(--gold-soft); border-left: 3px solid var(--gold); }
.notice-strip > svg { width: 17px; height: 17px; color: #86672e; }
.notice-strip div { min-width: 0; }
.notice-strip span { color: #745720; font-size: 8px; font-weight: 900; }
.notice-strip p { overflow: hidden; margin: 3px 0 0; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notice-strip button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; background: transparent; }
.notice-strip button svg { width: 14px; height: 14px; }

.service-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 17px 0 23px; }
.service-shortcuts button { min-width: 0; display: grid; justify-items: center; gap: 6px; padding: 0; background: transparent; transition: color .2s var(--ease); }
.service-shortcuts button > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 12px rgba(29,37,44,.04); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.service-shortcuts button:hover > span { border-color: currentColor; box-shadow: 0 8px 18px rgba(29,37,44,.1); transform: translateY(-3px); }
.service-shortcuts button:active > span { box-shadow: 0 3px 8px rgba(29,37,44,.08); transform: translateY(0) scale(.93); }
.service-shortcuts svg { width: 21px; height: 21px; }
.service-shortcuts button[data-action="guide"] > span { color: var(--civic-red); background: var(--civic-red-soft); border-color: rgba(155,28,35,.15); }
.service-shortcuts button[data-action="appointment"] > span { color: var(--blue); background: var(--blue-soft); border-color: rgba(49,93,122,.15); }
.service-shortcuts button[data-action="licenses"] > span { color: var(--jade); background: var(--jade-soft); border-color: rgba(36,107,92,.15); }
.service-shortcuts button[data-action="hotline"] > span { color: #806129; background: var(--gold-soft); border-color: rgba(185,145,69,.2); }
.service-shortcuts b { overflow-wrap: anywhere; font-size: 10px; }
.service-shortcuts small { color: #768089; font-size: 8px; white-space: nowrap; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.section-heading span, .screen-intro > span, .application-heading > span { display: block; color: var(--civic-red); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 18px; }
.section-heading > button { display: flex; align-items: center; gap: 4px; padding: 4px 0 3px 6px; color: #65717a; background: transparent; font-size: 9px; transition: color .2s var(--ease); }
.section-heading > button svg { width: 12px; height: 12px; }
.section-heading > button:hover { color: var(--civic-red); }
.section-heading > button:hover svg { transform: translateX(2px); }
.one-thing-list { background: #fff; border-top: 2px solid var(--ink); }
.one-thing-item { position: relative; width: 100%; min-height: 76px; display: grid; grid-template-columns: 28px 1fr auto 14px; align-items: center; gap: 8px; padding: 11px 8px; text-align: left; background: #fff; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), transform .2s var(--ease); }
.one-thing-item:hover { background: #f8fafb; }
.one-thing-item:active { transform: scale(.985); }
.item-number { color: var(--civic-red); font-family: Georgia, serif; font-size: 15px; }
.one-thing-item div { min-width: 0; }
.one-thing-item b, .one-thing-item small { display: block; }
.one-thing-item b { font-size: 11px; }
.one-thing-item small { overflow: hidden; margin-top: 5px; color: #717b83; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.one-thing-item em { padding: 4px 5px; color: var(--jade); background: #e7f0ed; font-size: 7px; font-style: normal; white-space: nowrap; }
.one-thing-item > svg { width: 13px; height: 13px; color: #8a949c; transition: transform .2s var(--ease), color .2s var(--ease); }
.one-thing-item:hover > svg { color: var(--civic-red); transform: translateX(3px); }

.recommend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recommend-grid button { min-height: 68px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.recommend-grid button:hover { border-color: var(--line-strong); box-shadow: 0 8px 18px rgba(29,37,44,.07); transform: translateY(-2px); }
.recommend-grid button:active { box-shadow: 0 3px 8px rgba(29,37,44,.05); transform: translateY(0) scale(.97); }
.recommend-grid button > svg { width: 32px; height: 32px; padding: 7px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.recommend-grid button[data-matter="fund-withdraw"] > svg, .recommend-grid button[data-matter="medical-record"] > svg { color: var(--jade); background: var(--jade-soft); }
.recommend-grid button[data-matter="vehicle-license"] > svg { color: var(--ink); background: var(--neutral-soft); }
.recommend-grid button[data-matter="school-enrollment"] > svg { color: var(--blue); background: var(--blue-soft); }
.recommend-grid button[data-matter="food-license"] > svg { color: #806129; background: var(--gold-soft); }
.recommend-grid button[data-matter="project-approval"] > svg, .recommend-grid button[data-matter="business-start"] > svg { color: var(--civic-red); background: var(--civic-red-soft); }
.recommend-grid b, .recommend-grid small { display: block; }
.recommend-grid b { font-size: 10px; }
.recommend-grid small { margin-top: 5px; color: #768089; font-size: 8px; }
.screen-disclaimer, .progress-note { margin: 18px 0 0; color: #7c868e; font-size: 8px; line-height: 1.7; text-align: center; }
.app-support { margin: 20px 0 0; font-size: 8px; text-align: center; }
.app-support a { color: #6e6560; text-decoration: none; border-bottom: 1px solid #c8bbb2; }

.screen-intro { margin: 3px 0 16px; }
.screen-intro h1, .application-heading h1 { margin: 7px 0 5px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 26px; }
.screen-intro p, .application-heading p { margin: 0; color: #69747d; font-size: 10px; line-height: 1.7; }
.service-search { height: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 10px; background: #fff; border: 1px solid var(--line-strong); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.service-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,122,.1); }
.service-search > svg { width: 17px; height: 17px; color: var(--blue); }
.service-search input { min-width: 0; border: 0; background: transparent; font-size: 10px; }
.service-search button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #89827c; background: transparent; }
.service-search button svg { width: 14px; height: 14px; }
.service-categories { display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 10px; scrollbar-width: none; }
.service-categories::-webkit-scrollbar { display: none; }
.service-categories button { flex: 0 0 auto; height: 31px; padding: 0 11px; color: #59666f; background: var(--neutral-soft); border-radius: 4px; font-size: 9px; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.service-categories button.active { color: #fff; background: var(--civic-red); }
.service-categories button:active { transform: scale(.94); }
.result-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 5px 0 8px; }
.result-summary span { color: #68747c; font-size: 9px; }
.result-summary span b { color: var(--civic-red); }
.result-summary button { display: flex; align-items: center; gap: 4px; padding: 4px 0; color: var(--civic-red); background: transparent; font-size: 8px; font-weight: 800; }
.result-summary button svg { width: 12px; height: 12px; }
.service-list { border-top: 2px solid var(--ink); }
.service-row { width: 100%; min-height: 88px; display: grid; grid-template-columns: 34px 1fr 14px; align-items: center; gap: 10px; padding: 11px 7px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), transform .2s var(--ease); }
.service-row[hidden] { display: none; }
.service-row:hover { background: rgba(255,255,255,.78); }
.service-row:active { transform: scale(.985); }
.service-row > svg:first-child { width: 32px; height: 32px; padding: 7px; color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(49,93,122,.12); border-radius: 5px; }
.service-row[data-matter="business-start"] > svg:first-child, .service-row[data-matter="food-license"] > svg:first-child { color: var(--civic-red); background: var(--civic-red-soft); border-color: rgba(155,28,35,.12); }
.service-row[data-matter="newborn"] > svg:first-child, .service-row[data-matter="retirement"] > svg:first-child, .service-row[data-matter="fund-withdraw"] > svg:first-child, .service-row[data-matter="medical-record"] > svg:first-child { color: var(--jade); background: var(--jade-soft); border-color: rgba(36,107,92,.12); }
.service-row[data-matter="vehicle-license"] > svg:first-child, .service-row[data-matter="project-approval"] > svg:first-child { color: var(--ink); background: var(--neutral-soft); border-color: rgba(29,37,44,.12); }
.service-row > span { min-width: 0; }
.service-row b, .service-row small, .service-row em { display: block; }
.service-row b { font-size: 11px; }
.service-row small { overflow: hidden; margin-top: 5px; color: #707b83; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.service-row em { display: flex; gap: 4px; margin-top: 7px; font-style: normal; }
.service-row u { padding: 3px 4px; color: #66727a; background: var(--neutral-soft); font-size: 7px; text-decoration: none; }
.service-row > svg:last-child { width: 13px; height: 13px; color: #8c969d; transition: color .2s var(--ease), transform .2s var(--ease); }
.service-row:hover > svg:last-child { color: var(--civic-red); transform: translateX(3px); }
.empty-state, .progress-empty { display: grid; justify-items: center; padding: 54px 20px; text-align: center; }
.empty-state > svg, .progress-empty > svg { width: 38px; height: 38px; color: #9d958f; }
.empty-state b, .progress-empty b { margin-top: 14px; font-size: 11px; }
.empty-state p, .progress-empty p { margin: 8px 0 15px; color: #6f7a82; font-size: 9px; line-height: 1.7; }
.empty-state button, .progress-empty button { min-width: 116px; min-height: 36px; color: #fff; background: var(--civic-red); font-size: 9px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.empty-state button:active, .progress-empty button:active { transform: scale(.96); }

.progress-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 13px; }
.progress-tabs button { height: 36px; color: #5f6b73; background: var(--neutral-soft); font-size: 9px; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.progress-tabs button.active { color: #fff; background: var(--ink); }
.progress-tabs button:active { transform: scale(.96); }
.progress-tabs b { font-size: 8px; }
.progress-list { display: grid; gap: 11px; }
.progress-card { padding: 13px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--civic-red); }
.progress-card.done { border-top-color: var(--jade); }
.progress-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-card header span { font-size: 11px; font-weight: 900; }
.progress-card header b { padding: 4px 6px; color: var(--civic-red); background: var(--civic-red-soft); font-size: 8px; }
.progress-card.done header b { color: var(--jade); background: #e7f0ed; }
.case-number { display: flex; align-items: center; margin: 8px 0 15px; color: #747f87; font-size: 8px; }
.case-number strong { color: #655f5b; font-weight: 500; }
.case-number button { display: grid; place-items: center; width: 25px; height: 22px; padding: 0; color: #77706b; background: transparent; }
.case-number button svg { width: 11px; height: 11px; }
.trust-progress { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; margin: 0 11px; }
.trust-progress span { position: absolute; z-index: 0; left: 0; right: 0; top: 50%; height: 2px; background: #ddd8d2; transform: translateY(-50%); }
.trust-progress i { position: relative; z-index: 1; width: 12px; height: 12px; justify-self: center; border: 3px solid #ddd8d2; border-radius: 50%; background: #fff; }
.trust-progress i.complete { border-color: var(--jade); background: var(--jade); }
.trust-progress i.active { border-color: var(--civic-red); background: #fff; box-shadow: 0 0 0 4px rgba(157,29,34,.12); animation: progressPulse 1.8s infinite; }
.trust-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin: 7px 0 13px; color: #707b83; font-size: 7px; text-align: center; }
.latest-update { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 10px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.latest-update > svg { width: 30px; height: 30px; padding: 7px; color: var(--blue); background: #fff; border-radius: 5px; }
.progress-card.done .latest-update { background: var(--jade-soft); border-left-color: var(--jade); }
.progress-card.done .latest-update > svg { color: var(--jade); }
.latest-update span { min-width: 0; }
.latest-update b, .latest-update small { display: block; }
.latest-update b { font-size: 9px; }
.latest-update small { overflow: hidden; margin-top: 4px; color: #65717a; font-size: 8px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.latest-update time { color: #7f8990; font-size: 7px; white-space: nowrap; }
.progress-card footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.progress-card footer button { min-width: 78px; height: 32px; padding: 0 9px; color: #56636c; background: #fff; border: 1px solid var(--line-strong); font-size: 8px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.progress-card footer .primary-small { color: #fff; background: var(--civic-red); border-color: var(--civic-red); }
.progress-card footer button:active { transform: scale(.96); }
.progress-note { display: flex; align-items: center; justify-content: center; gap: 5px; }
.progress-note svg { width: 12px; height: 12px; }

.profile-head { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 11px; margin: 2px -16px 0; padding: 20px 16px 25px; color: #fff; background: var(--civic-red-deep); }
.profile-seal { position: relative; width: 54px; height: 54px; display: grid; place-items: center; background: #fff; border: 3px solid rgba(255,255,255,.2); }
.profile-seal span { color: var(--civic-red-deep); font-family: Georgia, "Microsoft YaHei", serif; font-size: 22px; font-weight: 900; }
.profile-seal svg { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; padding: 4px; color: #fff; background: var(--jade); border: 2px solid var(--civic-red-deep); border-radius: 50%; }
.profile-head > div:nth-child(2) span { color: #e4c98c; font-size: 8px; }
.profile-head h1 { margin: 5px 0 3px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 22px; }
.profile-head p { margin: 0; color: rgba(255,255,255,.72); font-size: 8px; }
.profile-head > button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(255,255,255,.1); }
.profile-head > button svg { width: 16px; height: 16px; }
.profile-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin: -12px 0 16px; background: #fff; border: 1px solid var(--line); }
.profile-overview button { min-height: 68px; display: grid; place-items: center; align-content: center; gap: 6px; background: transparent; border-right: 1px solid var(--line); transition: background .2s var(--ease), transform .2s var(--ease); }
.profile-overview button:last-child { border-right: 0; }
.profile-overview button:hover { background: #f8fafb; }
.profile-overview button:active { transform: scale(.95); }
.profile-overview strong { color: var(--civic-red); font-family: Georgia, serif; font-size: 16px; }
.profile-overview span { color: #69747c; font-size: 8px; }
.profile-section { margin-top: 13px; background: #fff; border-top: 2px solid var(--ink); }
.profile-section h2 { margin: 0; padding: 12px 10px 7px; font-size: 11px; }
.profile-section > button, .profile-section > label { width: 100%; min-height: 64px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 10px; text-align: left; background: #fff; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), transform .2s var(--ease); }
.profile-section > button:hover { background: #f8fafb; }
.profile-section > button:active { transform: scale(.985); }
.profile-section > button > svg:first-child, .profile-section > label > svg { width: 32px; height: 32px; padding: 7px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.profile-section [data-action="licenses"] > svg:first-child, .profile-section [data-action="authorized-data"] > svg:first-child, .profile-section [data-action="privacy"] > svg:first-child { color: var(--jade); background: var(--jade-soft); }
.profile-section [data-action="hotline-record"] > svg:first-child, .profile-section .setting-row:nth-of-type(2) > svg:first-child { color: #806129; background: var(--gold-soft); }
.profile-section .setting-row:nth-of-type(1) > svg:first-child { color: var(--civic-red); background: var(--civic-red-soft); }
.profile-section span { min-width: 0; }
.profile-section b, .profile-section small { display: block; }
.profile-section b { font-size: 11px; }
.profile-section small { margin-top: 4px; color: #707b83; font-size: 8px; }
.profile-section > button > svg:last-child { width: 13px; height: 13px; color: #8c969d; transition: color .2s var(--ease), transform .2s var(--ease); }
.profile-section > button:hover > svg:last-child { color: var(--civic-red); transform: translateX(3px); }
.setting-row { cursor: pointer; }
.setting-row input { position: absolute; opacity: 0; pointer-events: none; }
.setting-row em { position: relative; width: 36px; height: 20px; border-radius: 12px; background: #bfc7cc; box-shadow: inset 0 0 0 1px rgba(29,37,44,.08); transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.setting-row em::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .2s; }
.setting-row input:checked + em { background: var(--jade); box-shadow: 0 0 0 3px rgba(36,107,92,.1); }
.setting-row input:checked + em::after { transform: translateX(15px); }
.prototype-statement { margin-top: 15px; padding: 14px; color: #5f5752; background: var(--gold-soft); border-left: 4px solid var(--gold); }
.prototype-statement strong { color: var(--civic-red-deep); font-size: 10px; }
.prototype-statement p { margin: 7px 0; font-size: 8px; line-height: 1.75; }
.prototype-statement span { font-size: 8px; font-weight: 800; }

.application-heading { margin: 3px 0 13px; }
.application-heading h1 { font-size: 24px; }
.application-stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: start; gap: 4px; margin: 0 0 18px; }
.application-stepper span { display: grid; justify-items: center; gap: 5px; color: #737e86; font-size: 7px; white-space: nowrap; }
.application-stepper span i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #bdc5ca; border-radius: 50%; background: var(--paper); font-size: 9px; font-style: normal; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.application-stepper span.active { color: var(--civic-red); font-weight: 900; }
.application-stepper span.active i { color: #fff; background: var(--civic-red); border-color: var(--civic-red); }
.application-stepper span.complete i { color: #fff; background: var(--jade); border-color: var(--jade); }
.application-stepper > em { height: 1px; margin-top: 12px; background: #cbc5bf; }
.application-page { display: none; animation: screenIn .28s var(--ease); }
.application-page.active { display: block; }
.matter-summary { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 9px; padding: 12px; color: #fff; background: var(--ink); }
.matter-summary > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: #fff; }
.matter-summary svg { width: 20px; height: 20px; }
.matter-summary b, .matter-summary small { display: block; }
.matter-summary b { font-size: 10px; }
.matter-summary small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 8px; }
.matter-summary em { padding: 5px 6px; color: #ead49e; border: 1px solid rgba(234,212,158,.5); font-size: 7px; font-style: normal; }
.application-section { margin-top: 12px; padding: 13px; background: #fff; border: 1px solid var(--line); }
.application-section h2 { margin: 0 0 10px; font-size: 12px; }
.section-help { margin: -3px 0 11px; color: #6c7780; font-size: 8px; line-height: 1.7; }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; color: #536069; font-size: 9px; line-height: 1.6; }
.check-list svg { width: 15px; height: 15px; color: var(--jade); }
.joint-services { display: flex; flex-wrap: wrap; gap: 6px; }
.joint-services span { padding: 6px 7px; color: #5f6b73; background: var(--neutral-soft); font-size: 8px; }
.material-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.material-overview p { display: grid; justify-items: center; gap: 4px; margin: 0; padding: 10px 4px; background: #f3f1ed; }
.material-overview b { color: var(--civic-red); font-family: Georgia, serif; font-size: 18px; }
.material-overview span { color: #6c7780; font-size: 8px; }
.material-tip { display: flex; gap: 6px; align-items: start; margin: 10px 0 0; color: var(--jade); font-size: 8px; line-height: 1.55; }
.material-tip svg { flex: 0 0 auto; width: 13px; height: 13px; }
.consent-row { display: grid; grid-template-columns: 16px 1fr; gap: 7px; align-items: start; margin: 12px 2px 0; color: #606c75; font-size: 8px; line-height: 1.65; cursor: pointer; }
.consent-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--civic-red); }
.authorization-list { display: grid; gap: 7px; }
.authorization-list label { min-height: 55px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 8px; background: #f5f3ef; cursor: pointer; }
.authorization-list label > svg { width: 30px; height: 30px; padding: 7px; color: var(--jade); background: #fff; border: 1px solid rgba(36,107,92,.13); border-radius: 5px; }
.authorization-list b, .authorization-list small { display: block; }
.authorization-list b { font-size: 10px; }
.authorization-list small { margin-top: 4px; color: #6c7780; font-size: 8px; }
.authorization-list input { position: absolute; opacity: 0; }
.authorization-list em { position: relative; width: 31px; height: 18px; border-radius: 12px; background: #c7c1bb; }
.authorization-list em::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.authorization-list input:checked + em { background: var(--jade); }
.authorization-list input:checked + em::after { transform: translateX(13px); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-grid label { display: grid; gap: 6px; color: #536069; font-size: 9px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; min-height: 40px; padding: 8px; background: #fafbfb; border: 1px solid #cbd2d6; font-size: 10px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,122,.1); }
.form-grid textarea { min-height: 72px; resize: none; line-height: 1.6; }
.form-grid .full-field { grid-column: 1 / -1; }
.form-grid .invalid input, .form-grid .invalid select, .form-grid .invalid textarea { border-color: var(--civic-red); background: #fff7f6; }
.field-error, .signature-error { min-height: 10px; color: var(--civic-red); font-size: 7px; }
.scan-panel { position: relative; min-height: 108px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 14px; overflow: hidden; color: #fff; background: var(--ink); }
.scan-panel > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: #fff; }
.scan-panel > span svg { width: 22px; height: 22px; }
.scan-panel b, .scan-panel small { display: block; }
.scan-panel b { font-size: 11px; }
.scan-panel small { margin-top: 6px; color: rgba(255,255,255,.68); font-size: 8px; line-height: 1.5; }
.scan-panel button { min-width: 72px; height: 32px; color: var(--civic-red-deep); background: #fff; font-size: 8px; font-weight: 900; transition: transform .2s var(--ease); }
.scan-panel button:active { transform: scale(.95); }
.scan-line { position: absolute; z-index: 3; left: 0; right: 0; top: -2px; height: 2px; opacity: 0; background: #e8ce8f; box-shadow: 0 0 10px #e8ce8f; }
.scan-panel.scanning .scan-line { opacity: 1; animation: scanMove 1.4s ease-in-out infinite; }
.material-list { display: grid; gap: 7px; margin-top: 10px; }
.material-list article { min-height: 64px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 9px 10px; background: #fff; border: 1px solid var(--line); transition: border-color .2s var(--ease), background .2s var(--ease); }
.material-list article > svg { width: 32px; height: 32px; padding: 7px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.material-list b, .material-list small { display: block; }
.material-list b { font-size: 10px; }
.material-list small { margin-top: 4px; color: #6c7780; font-size: 8px; }
.material-list em { padding: 4px 5px; color: #647078; background: var(--neutral-soft); font-size: 7px; font-style: normal; }
.material-list article[data-material-state="passed"] em { color: var(--jade); background: var(--jade-soft); }
.material-list article[data-material-state="passed"] > svg { color: var(--jade); background: var(--jade-soft); }
.upload-zone { min-height: 84px; display: grid; justify-items: center; align-content: center; gap: 5px; margin-top: 10px; padding: 10px; text-align: center; background: rgba(255,255,255,.55); border: 1px dashed #bdb5ae; cursor: pointer; }
.upload-zone input { display: none; }
.upload-zone svg { width: 22px; height: 22px; color: var(--civic-red); }
.upload-zone b { font-size: 10px; }
.upload-zone small { max-width: 290px; color: #6d7880; font-size: 8px; line-height: 1.55; }
.uploaded-file { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; margin-top: 8px; padding: 8px; background: #e7f0ed; }
.uploaded-file > svg { width: 28px; height: 28px; padding: 6px; color: var(--jade); background: #fff; }
.uploaded-file b, .uploaded-file small { display: block; }
.uploaded-file b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.uploaded-file small { margin-top: 4px; color: #61746e; font-size: 6px; }
.uploaded-file button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #755f5c; background: transparent; }
.uploaded-file button svg { width: 14px; height: 14px; }
.submit-summary { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 9px; padding: 12px; color: #fff; background: var(--jade); }
.submit-summary > svg { width: 36px; height: 36px; padding: 7px; color: var(--jade); background: #fff; }
.submit-summary b, .submit-summary small { display: block; }
.submit-summary b { font-size: 10px; }
.submit-summary small { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 8px; }
.signature-box { position: relative; height: 118px; overflow: hidden; background: #fbfaf8; border: 1px dashed #bbb3ac; touch-action: none; }
.signature-box canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.signature-box > span { position: absolute; inset: 0; display: grid; place-items: center; color: #b1aaa4; font-family: STKaiti, KaiTi, serif; font-size: 16px; pointer-events: none; }
.signature-box > span.hidden { opacity: 0; }
.signature-box > button { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; color: #5e6971; background: rgba(255,255,255,.92); border: 1px solid var(--line); font-size: 8px; }
.signature-box button svg { width: 11px; height: 11px; }
.delivery-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.delivery-options button { min-height: 72px; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 7px; padding: 8px; text-align: left; background: #f2efeb; border: 1px solid transparent; }
.delivery-options button.active { background: #fff; border-color: var(--civic-red); box-shadow: inset 0 0 0 1px var(--civic-red); }
.delivery-options svg { width: 25px; height: 25px; color: var(--civic-red); }
.delivery-options b, .delivery-options small { display: block; }
.delivery-options b { font-size: 10px; }
.delivery-options small { margin-top: 4px; color: #6c7780; font-size: 8px; line-height: 1.45; }
.security-tip { display: flex; align-items: start; gap: 6px; margin: 12px 0 0; color: #65717a; font-size: 8px; line-height: 1.65; }
.security-tip svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--jade); }
.application-footer { position: absolute; z-index: 18; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 11px 15px 14px; background: rgba(245,244,241,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.application-footer button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; color: #58656e; background: transparent; font-size: 9px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.application-footer button svg { width: 13px; height: 13px; }
.application-footer > span { color: #737e86; font-size: 8px; text-align: center; white-space: nowrap; }
.application-footer > span b { color: var(--civic-red); }
.application-footer .primary-action { justify-self: end; min-width: 104px; color: #fff; background: var(--civic-red); font-weight: 900; }
.application-footer button:active { transform: scale(.96); }

.tabbar { position: absolute; z-index: 22; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 0; color: #66727a; background: transparent; font-size: 8px; transition: color .2s var(--ease); }
.tabbar button svg { width: 30px; height: 30px; padding: 6px; border-radius: 6px; stroke-width: 2; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.tabbar button.active { color: var(--civic-red); font-weight: 900; }
.tabbar button.active svg { background: var(--civic-red-soft); stroke-width: 2.25; transform: translateY(-1px); animation: tabPop .28s var(--ease); }
.tabbar button.active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 2px; background: var(--civic-red); transform: translateX(-50%); }
.tabbar button:focus-visible { outline: 2px solid rgba(185,145,69,.48); outline-offset: -4px; }
.tabbar button:active svg { transform: translateY(0) scale(.9); }
.tabbar button > b { position: absolute; top: 12px; left: calc(50% + 8px); width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--civic-red); }

.modal-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: end center; padding: 20px; background: rgba(24,20,18,.55); backdrop-filter: blur(7px); }
.modal-sheet { width: min(370px, calc(100vw - 24px)); max-height: min(700px, calc(100vh - 50px)); overflow: hidden; background: var(--paper); box-shadow: 0 25px 75px rgba(0,0,0,.3); animation: sheetIn .34s var(--ease); }
.modal-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; color: #fff; background: var(--ink); }
.modal-sheet > header span { color: #dfc481; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.modal-sheet > header h2 { margin: 5px 0 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 20px; }
.modal-sheet > header button { width: 33px; height: 33px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(255,255,255,.1); transition: background .2s var(--ease), transform .2s var(--ease); }
.modal-sheet > header button:hover { background: rgba(255,255,255,.18); }
.modal-sheet > header button:active { transform: scale(.9); }
.modal-sheet > header svg { width: 16px; height: 16px; }
.modal-content { max-height: calc(min(700px, 100vh - 50px) - 77px); overflow-y: auto; padding: 15px; }
.modal-detail-hero { padding: 14px; color: #fff; background: var(--civic-red-deep); }
.modal-detail-hero span { color: #e3cb92; font-size: 8px; }
.modal-detail-hero h3 { margin: 8px 0 6px; font-size: 16px; }
.modal-detail-hero p { margin: 0; color: rgba(255,255,255,.74); font-size: 9px; line-height: 1.65; }
.modal-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 9px; background: #fff; border: 1px solid var(--line); }
.modal-stat-grid span { display: grid; gap: 5px; padding: 10px 6px; text-align: center; border-right: 1px solid var(--line); }
.modal-stat-grid span:last-child { border-right: 0; }
.modal-stat-grid b { color: var(--civic-red); font-size: 11px; }
.modal-stat-grid small { color: #6e7981; font-size: 8px; }
.modal-block { margin-top: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.modal-block h3 { margin: 0 0 8px; font-size: 11px; }
.modal-block p { margin: 0; color: #58656e; font-size: 9px; line-height: 1.75; }
.modal-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.modal-list li { display: grid; grid-template-columns: 16px 1fr; gap: 7px; color: #56636c; font-size: 9px; line-height: 1.55; }
.modal-list li::before { content: "✓"; display: grid; place-items: center; width: 14px; height: 14px; color: #fff; background: var(--jade); border-radius: 50%; font-size: 7px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 12px; }
.modal-actions button { min-height: 40px; color: #58656e; background: #fff; border: 1px solid var(--line-strong); font-size: 9px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.modal-actions button.primary { color: #fff; background: var(--civic-red); border-color: var(--civic-red); font-weight: 900; }
.modal-actions button:active { transform: scale(.96); }
.modal-form { display: grid; gap: 10px; }
.modal-form label { display: grid; gap: 6px; color: #55626b; font-size: 9px; }
.modal-form input, .modal-form textarea, .modal-form select { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #cbd2d6; background: #fff; font-size: 10px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,122,.1); }
.modal-form textarea { min-height: 80px; resize: none; line-height: 1.6; }
.modal-form-error { min-height: 10px; color: var(--civic-red); font-size: 7px; }
.appointment-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 8px; }
.appointment-slots button { min-height: 42px; background: var(--neutral-soft); font-size: 9px; transition: transform .2s var(--ease), background .2s var(--ease); }
.appointment-slots button.active { color: #fff; background: var(--civic-red); }
.appointment-slots button:active { transform: scale(.94); }
.license-list { display: grid; gap: 8px; }
.license-card { min-height: 75px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; padding: 10px; color: #fff; background: var(--blue); }
.license-card:nth-child(2) { background: var(--civic-red-deep); }
.license-card:nth-child(3) { background: var(--jade); }
.license-card > svg { width: 36px; height: 36px; padding: 7px; background: rgba(255,255,255,.12); }
.license-card b, .license-card small { display: block; }
.license-card b { font-size: 10px; }
.license-card small { margin-top: 5px; color: rgba(255,255,255,.72); font-size: 8px; }
.license-card em { padding: 4px 5px; color: #fff; border: 1px solid rgba(255,255,255,.36); font-size: 7px; font-style: normal; }
.guide-options { display: grid; gap: 8px; }
.guide-options button { min-height: 64px; display: grid; grid-template-columns: 30px 1fr 13px; align-items: center; gap: 9px; padding: 10px; text-align: left; background: #fff; border: 1px solid var(--line); transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.guide-options button:hover { border-color: var(--line-strong); background: #f8fafb; }
.guide-options button:active { transform: scale(.98); }
.guide-options button > svg:first-child { width: 30px; height: 30px; padding: 7px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.guide-options button[data-guide-matter="business-start"] > svg:first-child { color: var(--civic-red); background: var(--civic-red-soft); }
.guide-options button[data-guide-matter="newborn"] > svg:first-child, .guide-options button[data-guide-matter="retirement"] > svg:first-child, .guide-options button[data-guide-matter="medical-record"] > svg:first-child { color: var(--jade); background: var(--jade-soft); }
.guide-options button > svg:last-child { width: 12px; height: 12px; color: #879199; transition: color .2s var(--ease), transform .2s var(--ease); }
.guide-options button:hover > svg:last-child { color: var(--civic-red); transform: translateX(3px); }
.guide-options b, .guide-options small { display: block; }
.guide-options b { font-size: 10px; }
.guide-options small { margin-top: 4px; color: #6d7880; font-size: 8px; }

.ai-assistant-button { position: fixed; z-index: 70; right: 25px; bottom: 25px; min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #fff; background: var(--ink); box-shadow: 0 12px 35px rgba(32,36,42,.24); font-size: 10px; font-weight: 900; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.ai-assistant-button:hover { box-shadow: 0 16px 42px rgba(32,36,42,.32); transform: translateY(-3px); }
.ai-assistant-button:active { box-shadow: 0 7px 20px rgba(32,36,42,.24); transform: translateY(0) scale(.95); }
.ai-assistant-button svg { width: 16px; height: 16px; color: #e7cc8d; }
.assistant-panel { position: fixed; z-index: 90; right: 24px; bottom: 78px; width: 340px; height: 500px; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; background: #fff; border: 1px solid rgba(32,36,42,.18); box-shadow: 0 25px 70px rgba(32,36,42,.28); animation: assistantIn .28s var(--ease); }
.assistant-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 12px; color: #fff; background: var(--ink); }
.assistant-panel > header > div { display: flex; align-items: center; gap: 8px; }
.assistant-panel > header > div > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: #e5ca89; }
.assistant-panel header svg { width: 16px; height: 16px; }
.assistant-panel header b, .assistant-panel header small { display: block; }
.assistant-panel header b { font-size: 10px; }
.assistant-panel header small { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 8px; }
.assistant-panel header small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #66c8a5; }
.assistant-panel > header > button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; }
.assistant-messages { overflow-y: auto; padding: 12px; background: var(--paper); }
.assistant-message { display: grid; grid-template-columns: 25px 1fr; gap: 7px; align-items: start; margin-bottom: 10px; }
.assistant-message > span { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--civic-red); font-family: Georgia, serif; font-size: 9px; font-weight: 900; }
.assistant-message p { justify-self: start; max-width: 235px; margin: 0; padding: 9px 10px; color: #4f5c65; background: #fff; font-size: 9px; line-height: 1.7; }
.assistant-message.user { grid-template-columns: 1fr; }
.assistant-message.user p { justify-self: end; color: #fff; background: var(--civic-red); }
.assistant-message.typing p { min-width: 52px; color: #8a827c; }
.assistant-message.typing i { display: inline-block; width: 4px; height: 4px; margin: 0 2px; border-radius: 50%; background: #8f8781; animation: typing .8s infinite alternate; }
.assistant-message.typing i:nth-child(2) { animation-delay: .15s; }
.assistant-message.typing i:nth-child(3) { animation-delay: .3s; }
.assistant-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); scrollbar-width: none; }
.assistant-suggestions button { flex: 0 0 auto; height: 30px; padding: 0 9px; color: #59666f; background: var(--neutral-soft); font-size: 8px; transition: background .2s var(--ease), transform .2s var(--ease); }
.assistant-suggestions button:active { transform: scale(.95); }
.assistant-input { display: grid; grid-template-columns: 1fr 38px; gap: 7px; align-items: end; padding: 9px; border-top: 1px solid var(--line); }
.assistant-input label { position: relative; min-height: 38px; display: block; }
.assistant-input textarea { width: 100%; min-height: 40px; max-height: 80px; padding: 9px 40px 8px 9px; resize: none; border: 1px solid #cbd2d6; font-size: 10px; line-height: 1.55; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.assistant-input textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,122,.1); }
.assistant-input small { position: absolute; right: 6px; bottom: 5px; color: #879199; font-size: 7px; }
.assistant-input > button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: #fff; background: var(--civic-red); transition: transform .2s var(--ease); }
.assistant-input > button:active { transform: scale(.92); }
.assistant-input > button svg { width: 16px; height: 16px; }

.submission-layer { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(25,20,18,.66); backdrop-filter: blur(8px); }
.submission-card { width: min(340px, calc(100vw - 32px)); display: grid; justify-items: center; padding: 28px 22px 22px; text-align: center; background: #fff; border-top: 5px solid var(--civic-red); animation: successIn .42s var(--ease); }
.success-seal { position: relative; width: 67px; height: 67px; display: grid; place-items: center; color: #fff; background: var(--civic-red); border-radius: 50%; }
.success-seal::before { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(157,29,34,.28); border-radius: 50%; animation: successRing 1.8s infinite; }
.success-seal svg { width: 31px; height: 31px; stroke-width: 3; }
.submission-card > span { margin-top: 17px; color: var(--civic-red); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.submission-card h2 { margin: 7px 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 20px; }
.submission-card p { margin: 0; color: #647078; font-size: 9px; line-height: 1.7; }
.submission-card > strong { margin: 17px 0; padding: 9px 14px; color: #5c5550; background: #f0ede9; font-family: Consolas, monospace; font-size: 10px; letter-spacing: .08em; }
.submission-card > button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: var(--civic-red); font-size: 10px; font-weight: 900; transition: transform .2s var(--ease); }
.submission-card > button:active { transform: scale(.97); }
.submission-card button svg { width: 14px; height: 14px; }
.submission-card > small { margin-top: 10px; color: #7f8990; font-size: 8px; }

.toast { position: fixed; z-index: 150; left: 50%; bottom: 30px; min-width: 190px; max-width: min(360px, calc(100vw - 30px)); min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; color: #fff; background: rgba(32,36,42,.96); box-shadow: 0 12px 35px rgba(0,0,0,.22); font-size: 9px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .22s, transform .22s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 14px; height: 14px; color: #e3c780; }

body.elder-mode .mini-app { font-size: 118%; }
body.elder-mode .screen { padding-left: 14px; padding-right: 14px; }
body.elder-mode .service-shortcuts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
body.elder-mode .service-shortcuts button { min-height: 78px; background: #fff; border: 1px solid var(--line); }
body.elder-mode .service-shortcuts small { font-size: 10px; }
body.elder-mode .service-row, body.elder-mode .one-thing-item { min-height: 94px; }
body.elder-mode .service-row b, body.elder-mode .one-thing-item b, body.elder-mode .profile-section b { font-size: 13px; }
body.elder-mode .service-row small, body.elder-mode .one-thing-item small, body.elder-mode .profile-section small { font-size: 10px; }

@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes assistantIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes successIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tabPop { 0% { transform: translateY(2px) scale(.84); } 70% { transform: translateY(-2px) scale(1.05); } 100% { transform: translateY(-1px) scale(1); } }
@keyframes sealTurn { to { transform: rotate(360deg); } }
@keyframes progressPulse { 50% { box-shadow: 0 0 0 7px rgba(157,29,34,0); } }
@keyframes scanMove { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
@keyframes typing { to { transform: translateY(-3px); opacity: .45; } }
@keyframes successRing { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.32); opacity: 0; } }

@media (max-width: 980px) {
  .stage-copy { display: none; }
}

@media (max-width: 720px) {
  html, body { width: 100%; height: 100%; background: var(--paper); }
  body { min-height: 100dvh; }
  .desktop-stage { width: 100%; min-height: 100dvh; display: block; padding: 0; background: var(--paper); }
  .stage-grid, .stage-copy, .prototype-badge { display: none; }
  .device-shell { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; background: var(--paper); }
  .device-shell::before, .device-topbar, .device-home-indicator { display: none; }
  .mini-app { inset: 0; }
  .mini-header { padding-top: env(safe-area-inset-top); height: calc(54px + env(safe-area-inset-top)); }
  .screen { top: calc(54px + env(safe-area-inset-top)); bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 30px; }
  .process-screen { bottom: 0; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .tabbar { height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .application-footer { height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ai-assistant-button { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 43px; height: 43px; padding: 0; justify-content: center; border-radius: 50%; }
  .ai-assistant-button span { display: none; }
  .assistant-panel { inset: 0; width: auto; height: 100dvh; }
  .assistant-panel > header { padding-top: calc(12px + env(safe-area-inset-top)); }
  .modal-layer { padding: 0; }
  .modal-sheet { width: 100%; max-height: 88dvh; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  .service-shortcuts small { display: none; }
  .civic-hero h1 { font-size: 25px; }
  .one-thing-item { grid-template-columns: 24px 1fr 13px; }
  .one-thing-item em { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-field { grid-column: auto; }
  .scan-panel { grid-template-columns: 38px 1fr; }
  .scan-panel button { grid-column: 1 / -1; }
  .delivery-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
