:root {
  color: #24342b;
  background: #f5f7f4;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --green: #0d684e;
  --green-dark: #103e31;
  --green-soft: #e8f4ed;
  --line: #e3e9e4;
  --muted: #8a9790;
  --orange: #bd6c38;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { min-width: 320px; max-width: 100%; margin: 0; overflow-x: hidden; background: #f5f7f4; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.page { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 10px 24px 80px; }
.topbar { position: sticky; top: 0; z-index: 80; min-height: 54px; margin: 0 -8px; padding: 7px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(218, 228, 221, .82); border-radius: 0 0 14px 14px; background: rgba(245, 247, 244, .94); box-shadow: 0 7px 18px rgba(34, 63, 50, .06); backdrop-filter: blur(14px); }
.brand-block { display: flex; align-items: center; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 11px; box-shadow: 0 6px 16px rgba(13, 103, 78, .16); }
.brand-copy { margin-left: 9px; display: flex; flex-direction: column; }
.brand-copy strong { color: #17211d; font-size: 20px; line-height: 1.1; }
.brand-copy small { margin-top: 3px; color: #8a9690; font-size: 11px; }
.header-code-button { position: relative; min-height: 38px; padding: 6px 10px 6px 7px; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e8c76f; border-radius: 12px; color: #174f3d; background: linear-gradient(135deg, #fff8df, #f5dfa0); box-shadow: 0 8px 20px rgba(170, 125, 28, .18); font-size: 12px; font-weight: 700; animation: header-code-pulse 2.6s ease-in-out infinite; isolation: isolate; }
.header-code-button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(170, 125, 28, .25); }
.header-code-button::after { position: absolute; top: -50%; bottom: -50%; left: -45%; z-index: 0; width: 28%; content: ""; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent); animation: header-code-shine 3.8s ease-in-out infinite; }
.header-code-button > span { position: relative; z-index: 1; }
.header-code-badge { padding: 4px 6px; border-radius: 7px; color: #fff; background: var(--green); font-size: 10px; line-height: 1; letter-spacing: .5px; }
.header-code-text { white-space: nowrap; }
.header-code-arrow { margin-left: -1px; font-size: 20px; line-height: 1; }
@keyframes header-code-pulse { 0%, 100% { box-shadow: 0 8px 20px rgba(170, 125, 28, .16); } 50% { box-shadow: 0 8px 25px rgba(170, 125, 28, .32); } }
@keyframes header-code-shine { 0%, 58% { left: -45%; opacity: 0; } 64% { opacity: 1; } 82%, 100% { left: 125%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .header-code-button, .header-code-button::after { animation: none; } }

.intro-card { min-height: 180px; margin-top: 24px; padding: 28px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #103e31 0%, #176b51 100%); box-shadow: 0 18px 42px rgba(18, 82, 62, .15); }
.intro-copy { position: relative; z-index: 1; }
.intro-eyebrow { color: #e6c577; font-size: 11px; letter-spacing: 2px; font-weight: 800; }
.intro-card h1 { margin: 15px 0 9px; font-size: 34px; line-height: 1.2; }
.intro-card p { max-width: 360px; margin: 0; color: #c0d8cf; font-size: 15px; line-height: 1.6; }
.intro-orbit { flex: 0 0 84px; width: 84px; height: 84px; margin-right: 4px; display: grid; place-items: center; border: 1px solid rgba(234, 207, 139, .72); border-radius: 50%; color: #f2d794; box-shadow: 0 0 0 11px rgba(255,255,255,.04), 0 0 0 22px rgba(255,255,255,.025); font-size: 36px; font-weight: 800; }

.filter-area { position: relative; }
.filter-entry { position: sticky; top: 58px; z-index: 30; width: 100%; min-height: 70px; margin-top: 14px; padding: 10px 14px; display: flex; align-items: center; border: 1px solid #e4eae5; border-radius: 16px; color: inherit; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(34, 63, 50, .05); text-align: left; backdrop-filter: blur(12px); }
.filter-entry-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #e8f3ed; font-size: 17px; font-weight: 800; }
.filter-entry-copy { min-width: 0; margin-left: 12px; flex: 1; display: flex; flex-direction: column; }
.filter-entry-copy strong { color: #203128; font-size: 16px; }
.filter-entry-copy small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.filter-count { min-width: 24px; height: 24px; margin-right: 10px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: #e18b54; font-size: 12px; }
.filter-entry-arrow { color: #5a766a; font-size: 13px; }

.filter-panel { max-height: 0; margin-top: 0; padding: 0 16px; overflow: hidden; border-radius: 16px; opacity: 0; transform: translateY(-8px); background: #fff; box-shadow: 0 9px 24px rgba(34, 63, 50, .06); transition: max-height .32s cubic-bezier(.2,.75,.25,1), opacity .24s ease, transform .32s ease, padding .32s ease, margin .32s ease; }
.filter-panel.open { max-height: 2400px; margin-top: 10px; padding: 18px 16px 16px; overflow: visible; opacity: 1; transform: translateY(0); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-heading h2 { margin: 0; color: #203128; font-size: 18px; }
.panel-heading p { margin: 4px 0 0; color: #96a19b; font-size: 12px; }
.reset-button { padding: 4px; color: #b46a3d; background: transparent; font-size: 13px; }
.condition-block { position: relative; margin-top: 16px; }
.condition-label-row { display: flex; align-items: center; justify-content: space-between; }
.condition-label { color: #34443b; font-size: 14px; font-weight: 650; }
.condition-label b { margin-right: 3px; color: #d9534f; }
.condition-hint { color: #9aa69f; font-size: 12px; }
.options-wrap { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.option { min-height: 32px; padding: 0 12px; border: 1px solid #e4eae5; border-radius: 8px; color: #637169; background: #fbfcfb; font-size: 12px; }
.option.selected { border-color: #aed6c4; color: var(--green); background: var(--green-soft); font-weight: 650; }

.province-picker, .major-picker { width: 100%; min-height: 44px; margin-top: 8px; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; color: #25362d; background: #f8faf8; text-align: left; }
.selected-province-list { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.province-tag { padding: 5px 7px 5px 9px; display: inline-flex; align-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 12px; }
.province-remove { margin-left: 7px; color: #4d806c; font-size: 17px; line-height: 13px; cursor: pointer; }
.picker-arrow { margin-left: 8px; color: #5a766a; font-size: 16px; }
.placeholder { color: #9aa69f; }
.popup { position: absolute; left: 0; right: 0; z-index: 40; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 13px 30px rgba(34, 63, 50, .14); }
.search-box { height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 9px; color: #789087; background: #f5f8f5; }
.search-box input { min-width: 0; height: 100%; margin-left: 7px; flex: 1; border: 0; outline: 0; color: #25362d; background: transparent; }
.province-options { max-height: 240px; margin-top: 7px; overflow-y: auto; overscroll-behavior: contain; }
.province-option { width: 100%; min-height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; color: #637169; background: transparent; font-size: 13px; text-align: left; }
.province-option.selected { color: var(--green); background: var(--green-soft); font-weight: 650; }
.province-option b { font-size: 16px; }
.popup-footer { margin-top: 8px; padding-top: 9px; display: flex; align-items: center; justify-content: center; gap: 14px; border-top: 1px solid #eef2ef; color: #95a099; font-size: 12px; }
.popup-footer button { min-width: 74px; height: 34px; border-radius: 8px; color: #fff; background: var(--green); font-size: 12px; font-weight: 650; }

.major-picker { padding: 0 6px 0 12px; }
.major-picker input { min-width: 0; height: 42px; flex: 1; border: 0; outline: 0; color: #25362d; background: transparent; font-size: 13px; }
.major-clear { flex: 0 0 32px; display: grid; place-items: center; color: #94a29a; font-size: 20px; }
.major-dropdown { max-height: 330px; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.major-option { width: 100%; padding: 10px 13px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid #eef1ef; color: #25362d; background: #fff; text-align: left; }
.major-option:hover, .major-option.selected { background: #edf7ef; }
.major-option.selected { box-shadow: inset 3px 0 #2f8f5b; }
.major-option strong { font-size: 14px; }
.major-option span { color: #477b61; font-size: 12px; line-height: 1.45; }
.popup-empty { padding: 24px; color: #8d9991; font-size: 13px; text-align: center; }
.apply-button { width: 100%; height: 46px; margin-top: 17px; border-radius: 10px; color: #fff; background: var(--green); font-size: 15px; font-weight: 700; }
.apply-button:disabled { opacity: .7; }

.results-section { min-width: 0; max-width: 100%; scroll-margin-top: 90px; }
.list-heading { margin: 25px 3px 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.list-heading h2 { margin: 0; color: #23342b; font-size: 20px; }
.list-heading p { margin: 5px 0 0; color: #8d9992; font-size: 12px; }
.list-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.h5-export-button { min-height: 32px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e5c56d; border-radius: 9px; color: #174f3d; background: #fff5d4; font-size: 11px; font-weight: 700; box-shadow: 0 5px 13px rgba(170,125,28,.12); }
.h5-export-button small { padding: 2px 4px; border-radius: 4px; color: #fff; background: var(--green); font-size: 8px; font-weight: 700; }
.sort-picker { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.sort-picker > span { color: #78857d; font-size: 12px; }
.sort-option { padding: 6px 8px; border: 1px solid #dfe7e1; border-radius: 8px; color: #78857d; background: #fff; font-size: 11px; }
.sort-option.selected { border-color: #8bc5a0; color: #277b4c; background: #edf7ef; }

.position-list { min-width: 0; max-width: 100%; }
.position-card { width: 100%; min-width: 0; max-width: 100%; margin-bottom: 12px; padding: 18px 17px 14px; overflow: hidden; border: 1px solid #e8ece9; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(34, 63, 50, .045); }
.position-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.position-heading-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.year-tag { align-self: flex-start; padding: 4px 7px; border-radius: 6px; color: #9b712a; background: #fff6df; font-size: 11px; }
.position-heading h3 { margin: 9px 0 0; overflow: hidden; color: #24342b; font-size: 18px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.favorite-button { min-width: 50px; margin-left: 10px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; color: #93a098; background: transparent; }
.favorite-button span { height: 27px; font-size: 27px; line-height: 27px; }
.favorite-button small { margin-top: 3px; font-size: 11px; }
.department-line { margin: 11px 0 0; overflow: hidden; color: #617068; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.department-line i { padding: 0 6px; color: #bbc5bf; font-style: normal; }
.field-grid { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 8px; }
.field-cell { min-width: 0; padding: 8px 9px; border-radius: 8px; background: #f6f9f6; }
.field-cell span { display: block; color: #9aa69f; font-size: 11px; }
.field-cell strong { display: block; margin-top: 3px; overflow: hidden; color: #3f5047; font-size: 12px; line-height: 1.4; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.field-cell strong.strong { color: #29483b; font-weight: 700; }
.field-cell strong.score { color: var(--orange); font-weight: 700; }
.position-footer { min-width: 0; margin-top: 9px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef1ef; color: #a0aaa4; font-size: 11px; }
.position-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.position-footer button { padding: 4px 0 4px 8px; color: #31725a; background: transparent; font-size: 12px; }
.position-footer b { margin-left: 2px; font-size: 17px; vertical-align: -1px; }
.inline-promo { width: 100%; min-width: 0; max-width: 100%; margin-bottom: 12px; padding: 17px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #163d32, #1b7157); box-shadow: 0 9px 24px rgba(18,82,62,.12); }
.inline-promo > div { min-width: 0; }
.inline-promo span { color: #e6c577; font-size: 10px; letter-spacing: 1px; }
.inline-promo strong { display: block; margin-top: 5px; font-size: 15px; }
.inline-promo p { margin: 4px 0 0; color: #bfd5cd; font-size: 11px; }
.inline-promo button { flex: 0 0 auto; padding: 9px 11px; border-radius: 8px; color: var(--green-dark); background: #f3d992; font-size: 11px; font-weight: 700; }
.empty-state { min-height: 180px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #dce5df; border-radius: 16px; color: #8d9991; background: #fff; text-align: center; }
.empty-state strong { color: #405149; font-size: 16px; }
.empty-state span { margin-top: 7px; font-size: 13px; }
.empty-state button { margin-top: 15px; padding: 9px 14px; border-radius: 8px; color: #fff; background: var(--green); }
.list-loading-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #dce5df; border-radius: 16px; color: #607068; background: #fff; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid #dcebe3; border-top-color: var(--green); border-radius: 50%; animation: loading-rotate .8s linear infinite; }
@keyframes loading-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.list-footer { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #88968e; font-size: 12px; }
.load-more { padding: 9px 14px; border: 1px solid #cfe0d5; border-radius: 9px; color: var(--green); background: #fff; font-weight: 650; }

.guide-card { margin-top: 18px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 18px; color: #fff; background: #163f33; }
.guide-kicker { color: #e6c577; font-size: 11px; letter-spacing: 1px; }
.guide-card h2 { margin: 7px 0 4px; font-size: 19px; }
.guide-card p { margin: 0; color: #bad2c8; font-size: 12px; }
.guide-code-button { flex: 0 0 auto; padding: 10px 13px; border-radius: 9px; color: #173f33; background: #f2d794; font-size: 12px; font-weight: 700; }
.bottom-space { height: 50px; }
.back-to-top { position: fixed; right: 18px; bottom: 82px; z-index: 48; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid #d5e5da; border-radius: 50%; color: var(--green); background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(34,63,50,.18); font-size: 24px; line-height: 1; font-weight: 700; backdrop-filter: blur(10px); }
.back-to-top:active { transform: scale(.96); }

.tabbar { position: fixed; left: 50%; bottom: 0; z-index: 50; width: min(100%, 760px); height: 64px; padding: 6px max(38px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(38px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-around; transform: translateX(-50%); border-top: 1px solid #e4eae5; background: rgba(255,255,255,.96); box-shadow: 0 -7px 20px rgba(34,63,50,.05); backdrop-filter: blur(14px); }
.tab-item { min-width: 70px; padding: 0; display: flex; flex-direction: column; align-items: center; color: #9ba69f; background: transparent; font-size: 11px; text-decoration: none; }
.tab-symbol { height: 26px; font-size: 23px; line-height: 26px; }
.tab-item.active { color: var(--green); font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 18px; display: grid; place-items: center; background: rgba(16, 32, 26, .56); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(100%, 410px); max-height: min(86vh, 760px); padding: 27px 22px 22px; overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(9,36,27,.26); text-align: center; }
.modal-close { position: absolute; top: 10px; right: 11px; width: 34px; height: 34px; border-radius: 50%; color: #7f8b84; background: #f3f6f4; font-size: 22px; }
.modal-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.modal-card h2 { margin: 11px 22px 7px; color: #203128; font-size: 21px; }
.modal-card > p { margin: 0 auto; max-width: 300px; color: #7b8880; font-size: 13px; line-height: 1.65; }
.mini-code { width: 210px; max-width: 80%; margin: 17px auto; display: block; border-radius: 14px; }
.modal-confirm { width: 100%; min-height: 43px; margin-top: 14px; border-radius: 10px; color: #fff; background: var(--green); font-weight: 700; }
.detail-modal-card { width: min(100%, 700px); text-align: left; }
.detail-modal-card .modal-badge { margin-left: 2px; }
.detail-modal-card h2 { margin-left: 0; }
.detail-grid { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.detail-cell { display: grid; grid-template-columns: 128px 1fr; border-bottom: 1px solid #eef2ef; text-align: left; }
.detail-cell:last-child { border-bottom: 0; }
.detail-cell span, .detail-cell strong { padding: 11px 13px; font-size: 13px; line-height: 1.6; }
.detail-cell span { color: #78857d; background: #f6f9f6; }
.detail-cell strong { color: #33443b; font-weight: 500; word-break: break-word; }
.page-toast { position: fixed; left: 50%; bottom: 90px; z-index: 200; padding: 10px 15px; border-radius: 9px; color: #fff; opacity: 0; transform: translate(-50%, 10px); background: rgba(23,39,32,.9); box-shadow: 0 8px 20px rgba(0,0,0,.16); font-size: 13px; pointer-events: none; transition: .2s ease; }
.page-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 980px) {
  body { background: radial-gradient(circle at 20% 5%, #edf6f0 0, transparent 30%), #f5f7f4; }
  .page { width: min(100% - 48px, 1180px); padding-top: 10px; }
  .topbar, .intro-card { max-width: 1180px; }
  .intro-card { min-height: 210px; padding: 34px 42px; }
  .intro-card h1 { font-size: 39px; }
  .intro-orbit { flex-basis: 112px; width: 112px; height: 112px; font-size: 46px; }
  .filter-area { float: left; width: 390px; }
  .filter-entry { top: 64px; }
  .filter-panel.open { max-height: none; }
  .results-section { margin-left: 422px; min-height: 600px; }
  .list-heading { margin-top: 20px; }
  .position-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .position-card, .inline-promo { min-width: 0; margin-bottom: 0; }
  .inline-promo { grid-column: 1 / -1; }
  .guide-card { clear: both; margin-top: 30px; }
  .back-to-top { right: max(24px, calc((100vw - 1180px) / 2 + 16px)); bottom: 28px; }
  .tabbar { display: none; }
  .bottom-space { height: 10px; }
}

@media (max-width: 620px) {
  .page { padding: 6px 15px 72px; }
  .topbar { margin: 0 -6px; padding: 6px; }
  .header-code-button { padding: 6px 8px 6px 6px; }
  .intro-card { min-height: 146px; margin-top: 19px; padding: 22px 20px; border-radius: 20px; }
  .intro-card h1 { margin-top: 13px; font-size: 26px; }
  .intro-card p { width: 230px; font-size: 13px; }
  .intro-orbit { flex-basis: 70px; width: 70px; height: 70px; font-size: 31px; }
  .list-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .list-actions { width: 100%; justify-content: flex-start; }
  .sort-picker { width: 100%; justify-content: flex-start; }
  .guide-card { align-items: flex-start; flex-direction: column; }
  .guide-code-button { width: 100%; }
  .detail-cell { grid-template-columns: 92px 1fr; }
  .detail-cell span, .detail-cell strong { padding: 9px 10px; font-size: 12px; }
}

@media (max-width: 380px) {
  .intro-orbit { display: none; }
  .intro-card p { width: auto; }
  .position-card { padding: 16px 14px 13px; }
  .option { padding: 0 10px; }
}
