/* =============================================
   我是豐原人・徵才平台 - 前台樣式
   ============================================= */

:root {
  --amber-deep: #7C4A00;
  --amber-mid: #B86A00;
  --amber-warm: #E8920A;
  --amber-light: #FFBE5C;
  --amber-pale: #FFF4E0;
  --green-dark: #2D5016;
  --green-mid: #4A7C2B;
  --green-light: #A8C97B;
  --earth: #6B4423;
  --sand: #F5E6C8;
  --white: #FFFDF8;
  --gray-dark: #2A1F0E;
  --gray-mid: #7A6A55;
  --gray-light: #CEC4B0;
  --tag-blue: #1A5276;
  --tag-green: #145A32;
  --tag-purple: #4A235A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--white);
  color: var(--gray-dark);
  overflow-x: hidden;
}

/* -- NAV -- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--amber-light);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 40px; height: 40px;
  background: var(--amber-warm);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 18px;
  color: white;
}
.nav-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700; font-size: 18px;
  color: var(--amber-deep);
  line-height: 1.2;
}
.nav-sub { font-size: 11px; color: var(--gray-mid); font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--gray-dark);
  font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover { color: var(--amber-warm); border-bottom-color: var(--amber-warm); }
.btn-post {
  background: var(--amber-warm); color: white;
  border: none; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: 'Noto Sans TC', sans-serif;
}
.btn-post:hover { background: var(--amber-deep); transform: translateY(-1px); }

/* -- HERO -- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--amber-deep) 0%, var(--amber-mid) 45%, var(--green-mid) 100%);
  min-height: 480px;
  display: flex; align-items: center;
  padding: 60px 24px 80px;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: .07;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.hero-decor {
  position: absolute; right: -60px; top: -60px;
  width: 420px; height: 420px;
  background: rgba(255,190,92,.15);
  border-radius: 50%;
}
.hero-decor2 {
  position: absolute; right: 120px; bottom: -100px;
  width: 280px; height: 280px;
  background: rgba(168,201,123,.12);
  border-radius: 50%;
}
.hero-content { position: relative; max-width: 900px; margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: 5px 14px;
  color: rgba(255,255,255,.9); font-size: 12px; margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--amber-light); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: clamp(32px, 5vw, 54px);
  color: white; line-height: 1.25; margin-bottom: 12px;
}
.hero h1 em { color: var(--amber-light); font-style: normal; }
.hero p {
  color: rgba(255,255,255,.8); font-size: 16px;
  line-height: 1.7; max-width: 520px; margin-bottom: 32px;
}

/* Search Box */
.search-box {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex; gap: 12px; flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 760px;
}
.search-input-wrap {
  flex: 1; min-width: 200px;
  position: relative;
}
.search-input-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray-mid);
}
.search-box input, .search-box select {
  width: 100%; padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px; font-size: 14px;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--gray-dark); background: white;
  transition: border .2s;
  appearance: none;
}
.search-box select { padding-left: 38px; cursor: pointer; }
.search-box input:focus, .search-box select:focus {
  outline: none; border-color: var(--amber-warm);
}
.search-box input::placeholder { color: var(--gray-light); }
.select-wrap { position: relative; min-width: 150px; }
.select-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.btn-search {
  background: var(--amber-warm); color: white;
  border: none; border-radius: 10px;
  padding: 10px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: 'Noto Sans TC', sans-serif;
}
.btn-search:hover { background: var(--amber-deep); }

/* Quick tags */
.hero-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tags span { font-size: 12px; color: rgba(255,255,255,.7); }
.hero-tag {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); font-size: 12px;
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.hero-tag:hover { background: rgba(255,255,255,.3); }

/* Stats strip */
.stats-strip {
  background: var(--amber-deep);
  padding: 14px 24px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.stat-item { text-align: center; color: white; }
.stat-num { font-family: 'Noto Serif TC', serif; font-weight: 900; font-size: 24px; color: var(--amber-light); }
.stat-label { font-size: 12px; opacity: .8; }

/* -- MAIN LAYOUT -- */
.main-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 24px;
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
}

/* Sidebar */
.sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-card {
  background: white; border-radius: 16px;
  border: 1.5px solid #EDE4D0;
  padding: 20px; margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.sidebar-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700; font-size: 14px;
  color: var(--amber-deep); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-title::before {
  content:''; width: 4px; height: 14px;
  background: var(--amber-warm); border-radius: 2px;
  flex-shrink: 0;
}

/* District filter */
.district-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.district-btn {
  padding: 7px 10px; border-radius: 8px;
  border: 1.5px solid var(--gray-light);
  background: white; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .15s; text-align: center;
  font-family: 'Noto Sans TC', sans-serif; color: var(--gray-dark);
  text-decoration: none; display: block;
}
.district-btn:hover { border-color: var(--amber-warm); color: var(--amber-warm); }
.district-btn.active {
  background: var(--amber-warm); border-color: var(--amber-warm);
  color: white; font-weight: 700;
}
.district-all {
  grid-column: span 2;
  background: var(--amber-pale); border-color: var(--amber-light);
  color: var(--amber-deep); font-weight: 700;
}
.district-all.active { background: var(--amber-warm); border-color: var(--amber-warm); color: white; }

/* Industry filter */
.industry-list { display: flex; flex-direction: column; gap: 4px; }
.industry-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s; font-size: 13px;
  text-decoration: none; color: inherit;
}
.industry-item:hover { background: var(--amber-pale); }
.industry-item.active { background: var(--amber-pale); color: var(--amber-deep); font-weight: 600; }
.industry-count {
  background: var(--sand); color: var(--amber-mid);
  font-size: 11px; padding: 2px 7px; border-radius: 10px; font-weight: 600;
}

/* Job Type */
.jobtype-list { display: flex; flex-direction: column; gap: 6px; }
.jobtype-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer;
}
.jobtype-label input[type=checkbox] { accent-color: var(--amber-warm); width: 15px; height: 15px; }

/* -- JOB LISTINGS -- */
.listings-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.listings-count { font-size: 14px; color: var(--gray-mid); }
.listings-count strong { color: var(--amber-deep); }
.sort-select {
  padding: 7px 12px; border: 1.5px solid var(--gray-light); border-radius: 8px;
  font-size: 13px; font-family: 'Noto Sans TC', sans-serif;
  background: white; cursor: pointer;
}

/* Filter chips */
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-pale); border: 1px solid var(--amber-light);
  color: var(--amber-deep); font-size: 12px;
  padding: 4px 10px; border-radius: 20px;
  text-decoration: none;
}
.chip-close { cursor: pointer; opacity: .6; }
.chip-close:hover { opacity: 1; }

/* Job Card */
.job-card {
  background: white; border-radius: 16px;
  border: 1.5px solid #EDE4D0;
  padding: 22px; margin-bottom: 16px;
  cursor: pointer; transition: all .2s;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.job-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--amber-light); transition: background .2s;
}
.job-card:hover {
  border-color: var(--amber-warm);
  box-shadow: 0 8px 32px rgba(184,106,0,.15);
  transform: translateY(-2px);
}
.job-card:hover::before { background: var(--amber-warm); }
.job-card.featured::before { background: var(--green-mid); }
.job-card.featured { border-color: var(--green-light); }
.job-card.urgent::before { background: #C0392B; }

.card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.company-logo {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: var(--sand); font-family: 'Noto Serif TC', serif;
  font-weight: 700;
}
.card-info { flex: 1; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.badge {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  font-weight: 700; letter-spacing: .5px;
}
.badge-urgent { background: #FDECEA; color: #C0392B; }
.badge-featured { background: #EAF4EA; color: var(--green-dark); }
.badge-new { background: #EEF2FF; color: #3730A3; }
.badge-part { background: #FFF3E0; color: #E65100; }
.badge-full { background: #E3F2FD; color: #1565C0; }
.badge-intern { background: #F3E5F5; color: #6A1B9A; }

.card-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700; font-size: 18px;
  color: var(--gray-dark); margin-bottom: 2px;
  transition: color .15s;
}
.job-card:hover .card-title { color: var(--amber-deep); }
.company-name { font-size: 13px; color: var(--gray-mid); }
.salary-tag {
  background: var(--amber-pale); border: 1px solid var(--amber-light);
  color: var(--amber-deep); font-weight: 700; font-size: 14px;
  padding: 5px 12px; border-radius: 8px; white-space: nowrap;
  flex-shrink: 0;
}

.card-desc {
  font-size: 13px; color: var(--gray-mid); line-height: 1.6;
  margin-bottom: 14px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--gray-mid);
}
.meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light); flex-shrink: 0;
}
.meta-dot.red { background: #E74C3C; }
.meta-dot.gray { background: var(--gray-light); }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #F0EAE0;
  flex-wrap: wrap; gap: 8px;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tag {
  background: var(--sand); color: var(--earth);
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
}
.card-time { font-size: 11px; color: var(--gray-light); }
.btn-apply {
  background: var(--amber-pale); color: var(--amber-deep);
  border: 1.5px solid var(--amber-light);
  border-radius: 8px; padding: 6px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s; font-family: 'Noto Sans TC', sans-serif;
}
.btn-apply:hover { background: var(--amber-warm); color: white; border-color: var(--amber-warm); }

/* Section head */
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 18px; color: var(--gray-dark);
  white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: #EDE4D0; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 32px; flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1.5px solid #EDE4D0; background: white;
  font-size: 14px; cursor: pointer; transition: all .15s;
  font-family: 'Noto Sans TC', sans-serif;
}
.page-btn:hover { border-color: var(--amber-warm); color: var(--amber-warm); }
.page-btn.active { background: var(--amber-warm); border-color: var(--amber-warm); color: white; font-weight: 700; }
.page-btn.dots { border: none; background: none; cursor: default; }

/* -- HOW IT WORKS -- */
.how-section {
  background: var(--amber-pale);
  padding: 60px 24px;
  border-top: 2px solid var(--amber-light);
  border-bottom: 2px solid var(--amber-light);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 28px;
  color: var(--amber-deep); text-align: center; margin-bottom: 8px;
}
.how-sub { text-align: center; color: var(--gray-mid); margin-bottom: 40px; font-size: 15px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how-card {
  background: white; border-radius: 16px;
  padding: 28px 22px; text-align: center;
  border: 1.5px solid var(--amber-light);
  transition: transform .2s;
}
.how-card:hover { transform: translateY(-4px); }
.how-num {
  width: 52px; height: 52px;
  background: var(--amber-warm);
  border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 22px; color: white;
}
.how-card h3 { font-weight: 700; margin-bottom: 8px; color: var(--amber-deep); }
.how-card p { font-size: 13px; color: var(--gray-mid); line-height: 1.7; }

/* -- COMPANY SECTION -- */
.company-section {
  max-width: 1200px; margin: 60px auto;
  padding: 0 24px;
}
.company-logos {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 24px;
}
.co-logo-card {
  background: white; border: 1.5px solid #EDE4D0;
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--gray-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: all .15s; cursor: pointer;
}
.co-logo-card:hover { border-color: var(--amber-warm); color: var(--amber-warm); }
.co-icon { font-size: 24px; }

/* -- CTA SECTION -- */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 60px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content:''; position: absolute; inset:0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 0, transparent 50%);
  background-size: 16px 16px;
}
.cta-section h2 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 30px;
  color: white; margin-bottom: 10px; position: relative;
}
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 30px; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-cta-primary {
  background: var(--amber-warm); color: white;
  border: none; border-radius: 10px;
  padding: 13px 30px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans TC', sans-serif;
  transition: all .2s; text-decoration: none;
}
.btn-cta-primary:hover { background: var(--amber-light); color: var(--amber-deep); }
.btn-cta-secondary {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.5); border-radius: 10px;
  padding: 13px 30px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans TC', sans-serif;
  transition: all .2s; text-decoration: none;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,.1); border-color: white; }

/* -- FOOTER -- */
footer {
  background: var(--gray-dark);
  padding: 40px 24px 24px;
  color: rgba(255,255,255,.6);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900; font-size: 20px; color: white; margin-bottom: 8px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.7; }
.footer-districts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.footer-district {
  background: rgba(255,255,255,.08); border-radius: 6px;
  padding: 3px 8px; font-size: 11px; color: rgba(255,255,255,.6);
}
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: white;
  margin-bottom: 12px; letter-spacing: .5px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 13px; margin-bottom: 7px; transition: color .15s;
}
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* -- FORM STYLES -- */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-dark); margin-bottom: 6px;
}
.form-row .required { color: #E74C3C; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #E0D8CC; border-radius: 10px;
  font-size: 14px; font-family: 'Noto Sans TC', sans-serif;
  color: var(--gray-dark); transition: border .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--amber-warm);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%; background: var(--amber-warm); color: white;
  border: none; border-radius: 12px; padding: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif; transition: background .2s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--amber-deep); }

/* Salary rules */
.salary-rules-box {
  background: linear-gradient(135deg, #FFF8EE, #FFF3E0);
  border: 2px solid var(--amber-light);
  border-radius: 14px; padding: 18px 20px;
  margin-bottom: 20px;
}
.salary-rules-title {
  font-weight: 700; font-size: 14px; color: var(--amber-deep);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.salary-rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:520px){ .salary-rules-grid { grid-template-columns: 1fr; } }
.salary-rule-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: white; border-radius: 10px; padding: 12px;
  border: 1px solid #F0E4CC;
}
.rule-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: white;
}
.rule-law { background: #2C3E50; }
.rule-platform { background: var(--amber-warm); }
.rule-label { font-size: 12px; font-weight: 700; color: var(--gray-dark); margin-bottom: 3px; }
.rule-values { font-size: 14px; color: var(--amber-deep); margin-bottom: 3px; }
.rule-source { font-size: 11px; color: var(--gray-mid); line-height: 1.4; }

/* Salary type buttons */
.salary-type-group { display: flex; gap: 8px; flex-wrap: wrap; }
.salary-type-btn {
  flex: 1; min-width: 80px; text-align: center;
  padding: 9px 14px; border-radius: 10px;
  border: 2px solid var(--gray-light);
  background: white; cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: all .2s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--gray-mid);
}
.salary-type-btn input[type=radio] { display: none; }
.salary-type-btn.active {
  border-color: var(--amber-warm);
  background: var(--amber-pale);
  color: var(--amber-deep);
}
.salary-type-btn:hover:not(.active) { border-color: var(--amber-light); color: var(--amber-mid); }

/* 輸入框前綴 */
.input-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; color: var(--gray-mid); pointer-events: none;
}
.salary-input.has-prefix { padding-left: 42px !important; }

/* 薪資 hint 狀態 */
.salary-hint { font-size: 12px; margin-top: 6px; min-height: 18px; line-height: 1.5; }
.hint-error { color: #C0392B; }
.hint-warn  { color: #E67E22; }
.hint-ok    { color: #27AE60; }

/* 輸入框狀態 */
.form-row input.input-error { border-color: #E74C3C !important; background: #FFF5F5; }
.form-row input.input-warn  { border-color: #E67E22 !important; background: #FFFBF5; }
.form-row input.input-ok    { border-color: #27AE60 !important; background: #F0FFF4; }

/* 薪資進度條 */
.salary-progress-wrap { margin-top: 14px; }
.salary-progress-bar {
  position: relative; height: 32px;
  background: #F0EAE0; border-radius: 10px; overflow: hidden;
  display: flex;
}
.progress-seg {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; text-align: center; line-height: 1.2;
  border-right: 2px solid white; z-index: 1;
  position: relative;
}
.seg-label { color: white; font-weight: 700; font-size: 9px; }
.seg-law { background: rgba(44,62,80,.6); }
.seg-platform { background: rgba(232,146,10,.7); }
.progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 10px; transition: width .4s ease, background .3s ease;
  opacity: .35;
}
.salary-progress-desc { font-size: 12px; margin-top: 6px; font-weight: 600; }

.salary-error-banner {
  background: #FDECEA; border: 2px solid #E74C3C; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 14px;
  font-size: 13px; color: #922B21; font-weight: 600; line-height: 1.6;
}

.hourly-notice {
  background: #FFF8E1; border: 1px solid #FFD54F; border-radius: 10px;
  padding: 10px 14px; font-size: 12px; color: #7B5800; margin-top: 6px;
}
.negotiable-notice {
  background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 10px;
  padding: 14px; font-size: 13px; color: #312E81; line-height: 1.7; margin-bottom: 12px;
}
.checkbox-confirm {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; cursor: pointer; line-height: 1.5;
}
.checkbox-confirm input { accent-color: var(--amber-warm); margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }

/* Animations */
.fade-in { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-in:nth-child(2){animation-delay:.1s}
.fade-in:nth-child(3){animation-delay:.2s}
.fade-in:nth-child(4){animation-delay:.3s}

/* Responsive */
@media(max-width:900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media(max-width:600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 60px; }
  .stats-strip { gap: 20px; }
  .form-2col { grid-template-columns: 1fr; }
  .salary-rules-grid { grid-template-columns: 1fr; }
}
