:root {
  --green: #20b889;
  --green-dark: #149e76;
  --green-soft: #e5f7f0;
  --blue: #3b8df0;
  --indigo: #3a51df;
  --ink: #222629;
  --muted: #8a949b;
  --line: #edf0f1;
  --page: #fff;
  --surface: #fff;
  --shadow: 0 10px 28px rgba(30, 62, 70, .08);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: #fff; }
body { min-height: 100vh; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(32, 184, 137, .35); outline-offset: 2px; }
img { max-width: 100%; }

.desktop-caption { display: none; }
.caption-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.caption-divider { color: #b5c0c4; }
.app-shell { position: relative; display: flex; flex-direction: column; width: min(100%, 680px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--page); }
.content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.page { width: 100%; padding: 22px 18px 32px; }
.page > * { max-width: 610px; margin-left: auto; margin-right: auto; }

.status-row { display: flex; align-items: center; justify-content: space-between; height: 31px; padding: 0 24px; color: #202324; background: #f0f1f1; font-weight: 700; }
.status-time { font-size: 15px; }
.status-right { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.signal { letter-spacing: -2px; }
.battery { padding: 1px 5px; border: 1px solid #363b3b; border-radius: 4px; font-size: 10px; }
.browser-row { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; background: #f0f1f1; }
.browser-control { width: 42px; height: 42px; padding: 0; color: #202324; background: transparent; }
.close-control { font-size: 43px; font-weight: 200; line-height: 35px; }
.more-control { font-size: 19px; letter-spacing: 3px; }
.browser-title { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.browser-title strong { font-size: 20px; font-weight: 600; }
.browser-title small { color: #7e898e; font-size: 13px; }
.brand-row { position: relative; display: flex; align-items: center; justify-content: center; height: 67px; color: #fff; background: var(--green); }
.brand-row.compact { color: var(--ink); background: #fff; border-bottom: 1px solid #edf0f0; }
.brand-row.simple { font-size: 25px; }
.brand-title { font-size: 25px; font-weight: 600; }
.brand-wordmark { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 700; }
.brand-wordmark img { width: 41px; height: 32px; object-fit: contain; }
.back-control, .exit-control { position: absolute; top: 50%; width: 48px; height: 48px; padding: 0; color: inherit; background: transparent; transform: translateY(-50%); }
.back-control { left: 18px; font-size: 54px; font-weight: 200; line-height: 39px; }
.exit-control { right: 21px; font-size: 37px; }

.bottom-nav { display: flex; flex: none; height: 77px; padding: 8px 5px max(9px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e8eded; }
.nav-item { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; color: #8b9295; background: transparent; }
.nav-item.active { color: var(--green); }
.nav-icon { width: 30px; height: 30px; object-fit: contain; opacity: .72; filter: grayscale(1); }
.nav-item.active .nav-icon { opacity: 1; filter: brightness(0) saturate(100%) invert(58%) sepia(47%) saturate(1000%) hue-rotate(116deg) brightness(90%); }
.nav-label { max-width: 100%; overflow: hidden; font-size: 11px; letter-spacing: -.35px; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.local-banner, .profile-callout { display: flex; align-items: center; gap: 11px; padding: 12px 14px; margin-bottom: 16px; color: #3f6562; background: var(--green-soft); border: 1px solid #d1eee4; border-radius: 14px; }
.local-banner > span:not(.local-lock), .profile-callout > span:not(.callout-icon) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.local-banner b, .profile-callout b { color: #236d5c; font-size: 14px; }
.local-banner small, .profile-callout small { color: #698f88; font-size: 11px; }
.local-banner button { padding: 7px 11px; color: var(--green-dark); background: #fff; border: 1px solid #b9e5d7; border-radius: 9px; font-size: 12px; }
.local-lock, .callout-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; color: var(--green); background: #fff; border-radius: 10px; font-size: 20px; }
.promo-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 95px; padding: 18px 16px; margin-bottom: 14px; }
.surface { background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.promo-title { color: #313638; font-size: 19px; }
.small-title { font-size: 17px; }
.promo-subtitle { margin-top: 9px; color: #778084; font-size: 14px; }
.vote-pill { display: inline-flex; gap: 7px; align-items: center; padding: 5px 9px; margin-left: 6px; color: #a9754d; background: #fff0df; border-radius: 6px; font-size: 11px; }
.vote-pill b { color: #ed8730; font-size: 15px; }
.green-pill { flex: none; min-width: 82px; padding: 11px 14px; color: #fff; background: var(--green); border-radius: 25px; font-size: 14px; }
.job-line { margin-top: 11px; color: #f0793c; font-size: 15px; }
.job-pill { display: inline-block; padding: 5px 9px; margin-left: 10px; color: #28aa88; background: #dff8ef; border-radius: 6px; font-size: 11px; }
.survey-banner { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 93px; padding: 13px 13px 13px 17px; margin-bottom: 20px; overflow: hidden; color: #287bd6; text-align: left; background: #dfeeff; border-radius: 15px; }
.survey-copy { display: flex; flex-direction: column; gap: 3px; font-size: 21px; line-height: 1.2; }
.survey-copy em { display: inline-block; padding: 6px 8px; color: #fff; background: #a883ed; border-radius: 5px; font-size: 13px; font-style: normal; font-weight: 400; }
.survey-banner img { width: 130px; height: 86px; align-self: stretch; object-fit: cover; object-position: 55% 50%; mix-blend-mode: multiply; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 8px; padding: 7px 0 17px; }
.entry-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 83px; color: #303436; background: transparent; font-size: 14px; line-height: 1.35; text-align: center; }
.entry-item > img { width: 54px; height: 54px; object-fit: contain; }
.entry-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 40px; padding: 0 7px; border-radius: 13px; color: #fff; font-size: 25px; font-weight: 700; }
.entry-icon.green { background: var(--green); }
.entry-icon.blue { background: #238de6; }
.entry-icon.yellow { background: #f7b515; }
.entry-icon:not(.green):not(.blue):not(.yellow) { background: #2d83df; }
.home-note { display: flex; justify-content: space-between; padding: 9px 2px 0; color: #9ca6aa; font-size: 11px; }

.archive-banner { position: relative; display: flex; align-items: center; min-height: 100px; padding: 16px 17px; margin-bottom: 23px; overflow: hidden; color: #3f55b5; background: #dcd9f2; border-radius: 15px; }
.archive-banner-copy { position: relative; z-index: 1; display: flex; width: 68%; flex-direction: column; gap: 5px; }
.archive-banner-copy strong { font-size: 24px; }
.archive-banner-copy span { max-width: 265px; font-size: 13px; line-height: 1.45; }
.archive-banner img { position: absolute; right: 0; bottom: 0; width: 42%; height: 100%; object-fit: cover; object-position: 68% 50%; mix-blend-mode: multiply; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 17px 2px 3px; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading span { color: #9ca4a7; font-size: 12px; }
.archive-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 114px; padding: 20px 21px; margin: 0 0 20px; color: #fff; text-align: left; border-radius: 17px; box-shadow: 0 13px 22px rgba(35, 130, 120, .2); }
.archive-card.green { background: linear-gradient(120deg, #4ab084, #5ec896); }
.archive-card.blue { background: linear-gradient(120deg, #3589ec, #5aa4ef); box-shadow: 0 13px 22px rgba(54, 137, 236, .2); }
.archive-card.indigo { background: linear-gradient(120deg, #3c50da, #6383eb); box-shadow: 0 13px 22px rgba(60, 80, 218, .2); }
.archive-card-title { display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); font-size: 21px; }
.archive-card-title b { flex: none; padding: 7px 11px; color: #fff; background: rgba(0, 0, 0, .14); border-radius: 16px; font-size: 12px; font-weight: 500; }
.archive-card-subtitle { display: flex; gap: 12px; align-items: center; margin-top: 15px; font-size: 15px; }
.archive-card-subtitle i { color: rgba(255, 255, 255, .88); font-size: 12px; font-style: normal; }
.card-chevron { position: absolute; top: 39px; right: 17px; color: rgba(255,255,255,.7); font-size: 26px; }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 17px; margin-bottom: 14px; color: #9da5a8; background: #fff; border-radius: 15px; box-shadow: var(--shadow); text-align: center; }
.empty-card strong { color: #404446; font-size: 20px; }
.empty-card span { font-size: 13px; line-height: 1.6; }
.unbound-card { display: flex; flex-direction: column; align-items: center; min-height: 158px; padding: 27px 22px 0; margin-bottom: 24px; color: #333; background: #fff; border-radius: 15px; box-shadow: var(--shadow); text-align: center; }
.unbound-card strong { display: block; flex: 1; width: 100%; max-width: 510px; padding: 0 4px 20px; font-size: 19px; font-weight: 500; line-height: 1.55; }
.help-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 5px; color: #929a9d; border: 1px solid #aeb6b8; border-radius: 50%; font-family: Arial, sans-serif; font-size: 11px; font-weight: 400; line-height: 1; vertical-align: middle; transform: translateY(-1px); }
.unbound-card button { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% + 44px); height: 51px; margin: 0 -22px; color: var(--green); background: #fff; border-top: 1px solid #edf0f0; font-size: 16px; }
.button-chevron { width: 8px; height: 8px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

.detail-page { padding-top: 19px; }
.detail-hero { padding: 25px 21px; color: #fff; border-radius: 17px; box-shadow: 0 15px 24px rgba(26, 135, 104, .2); }
.green-hero { background: linear-gradient(120deg, #4ab084, #5ec896); }
.blue-hero { background: linear-gradient(120deg, #348aee, #5ba6ef); box-shadow: 0 15px 24px rgba(54, 137, 236, .2); }
.indigo-hero { background: linear-gradient(120deg, #3b4eda, #6384eb); box-shadow: 0 15px 24px rgba(57, 78, 218, .2); }
.identity-block { display: flex; align-items: flex-start; gap: 12px; }
.photo-pair { display: flex; flex: none; flex-direction: column; align-items: center; gap: 5px; }
.photo-pair img { width: 66px; height: 83px; object-fit: cover; border: 1px solid rgba(255,255,255,.75); border-radius: 10px; background: #dcece7; }
.photo-pair small { font-size: 10px; }
.identity-copy { display: flex; flex: 1; flex-direction: column; gap: 9px; padding-top: 3px; font-size: 15px; }
.identity-copy strong { font-size: 25px; font-weight: 500; }
.identity-copy i { font-style: normal; }
.hero-school { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 27px; }
.hero-school strong { font-size: 24px; font-weight: 500; }
.hero-school b { flex: none; padding: 8px 13px; background: rgba(0, 0, 0, .14); border-radius: 18px; font-size: 13px; font-weight: 500; }
.hero-major { display: flex; gap: 11px; margin-top: 15px; font-size: 16px; }
.hero-major i { opacity: .6; font-style: normal; }
.detail-fields { padding: 36px 3px 13px; }
.field-row { display: grid; grid-template-columns: 41% 59%; min-height: 44px; align-items: center; }
.field-label { color: #92999d; font-size: 15px; text-align: right; }
.field-value { padding-left: 22px; color: #333739; font-size: 15px; }
.report-button { width: 100%; height: 51px; color: #fff; background: var(--green); border-radius: 7px; font-size: 18px; }

.profile-page, .settings-page { padding-top: 17px; }
.form-section { padding: 16px 15px 7px; margin-bottom: 13px; background: #fff; border-radius: 15px; box-shadow: var(--shadow); }
.form-section h2 { margin: 0 0 6px; color: #2d3133; font-size: 17px; }
.photo-section { padding-bottom: 16px; }
.photo-editor { display: flex; gap: 21px; }
.photo-picker { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #288e78; font-size: 12px; cursor: pointer; }
.photo-picker img { width: 83px; height: 104px; object-fit: cover; border: 1px solid #d1e7e0; border-radius: 10px; background: #eef9f5; }
.photo-picker input { display: none; }
.photo-picker em { padding: 4px 8px; color: #fff; background: var(--green); border-radius: 12px; font-size: 10px; font-style: normal; }
.form-row { display: flex; align-items: center; min-height: 45px; border-bottom: 1px solid var(--line); }
.form-row:last-child { border-bottom: 0; }
.form-row > span { flex: none; width: 30%; color: #8b9497; font-size: 13px; }
.form-row input { width: 70%; min-width: 0; padding: 8px 0; color: #2f3436; background: transparent; border: 0; font-size: 14px; text-align: right; }
.form-row input::placeholder { color: #c5cbcd; }
.form-actions { display: flex; gap: 11px; margin-top: 4px; }
.primary-button, .secondary-button { height: 48px; border-radius: 8px; font-size: 16px; }
.primary-button { flex: 1; color: #fff; background: var(--green); }
.secondary-button { width: 90px; color: var(--green-dark); background: #fff; border: 1px solid #9edbc9; }

.settings-hero { display: flex; align-items: center; gap: 13px; padding: 17px; margin-bottom: 15px; background: linear-gradient(120deg, #e6f8f1, #f7fffd); border-radius: 15px; }
.settings-icon { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; color: var(--green); background: #fff; border-radius: 14px; font-size: 25px; }
.settings-hero h1 { margin: 0 0 4px; font-size: 21px; }
.settings-hero p { margin: 0; color: #78928d; font-size: 12px; }
.settings-list { overflow: hidden; background: #fff; border-radius: 15px; box-shadow: var(--shadow); }
.settings-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 17px; color: #333; background: #fff; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.settings-list button:last-child { border-bottom: 0; }
.settings-list button b { color: #adb4b6; font-size: 25px; font-weight: 300; }
.settings-list button.danger { color: #dc6b61; }
.about-box { display: flex; flex-direction: column; gap: 7px; padding: 18px; margin-top: 15px; color: #929b9e; background: #fff; border-radius: 15px; font-size: 12px; line-height: 1.45; }
.about-box b { color: #343a3c; font-size: 15px; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 95px; max-width: calc(100% - 45px); padding: 11px 16px; color: #fff; background: rgba(26, 31, 32, .84); border-radius: 22px; font-size: 13px; text-align: center; transform: translateX(-50%); }
.toast[hidden] { display: none; }
noscript { display: block; padding: 20px; color: #8a3d34; background: #fff1ef; text-align: center; }

@media (max-width: 520px) {
  .desktop-caption { display: none; }
  .app-shell { min-height: 100vh; }
}

@media (min-width: 900px) {
  .app-shell { min-height: 100vh; box-shadow: 0 0 35px rgba(25, 65, 72, .13); }
  .page { padding-left: 28px; padding-right: 28px; }
}
