:root {
  color-scheme: light;
  --green-900: #123b22;
  --green-800: #1b5e20;
  --green-700: #1b5e20;
  --green-100: #eef7ee;
  --line: #d7e5d5;
  --gold: #e9a62a;
  --gold-text: #704700;
  --text: #0f2b1d;
  --muted: #40584c;
  --bg: #f7faf4;
  --white: #fff;
}

* {
  box-sizing: border-box;
}
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 74px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}
.desktop-nav a:hover {
  color: var(--green-700);
}
.desktop-nav a[aria-current="page"] {
  color: var(--green-700);
  box-shadow: inset 0 -3px 0 var(--green-700);
}
.header-post-button {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #211600;
  font-weight: 900;
  white-space: nowrap;
}

.home-hero {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 34px 16px;
  background:
    linear-gradient(180deg, rgba(18, 59, 34, 0.68), rgba(18, 59, 34, 0.88)),
    url("https://images.unsplash.com/photo-1488459716781-31db52582fe9?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}
.home-hero-inner {
  width: min(100%, 760px);
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
  color: white;
}
.home-logo {
  width: 92px;
  height: 92px;
  border-radius: 18px;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(48px, 14vw, 92px);
  line-height: 1;
}
.home-hero p {
  margin: 0;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 800;
}
.home-actions {
  width: min(100%, 620px);
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.home-button {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--green-900);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}
.home-button.primary {
  background: var(--gold);
  color: #201500;
}
.home-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 42px 16px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.15;
}
.section-note {
  margin: 0 0 16px;
  color: var(--muted);
}
.text-link {
  color: var(--green-700);
  font-weight: 900;
  white-space: nowrap;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 26px 16px 96px;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.entry-page {
  min-height: calc(100svh - 72px);
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 26px 16px 96px;
  background:
    linear-gradient(180deg, rgba(18, 59, 34, 0.72), rgba(18, 59, 34, 0.88)),
    url("https://images.unsplash.com/photo-1488459716781-31db52582fe9?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}
.entry-hero,
.action-panel,
.one-purpose {
  width: min(100%, 720px);
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.entry-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(42px, 14vw, 84px);
  line-height: 1.05;
}
.lead {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 5vw, 28px);
}
.action-panel {
  display: grid;
  gap: 12px;
}
.action-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  min-height: 92px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.action-card.primary {
  background: var(--gold);
  color: #211600;
}
.action-card span {
  font-size: 24px;
  font-weight: 900;
}
.action-card small {
  color: inherit;
  opacity: 0.78;
  font-weight: 700;
}
.one-purpose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}
.one-purpose p {
  margin: 0;
}
.one-purpose a {
  color: #ffe6a6;
  font-weight: 800;
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 16px 98px;
}
.page-shell.narrow {
  width: min(100%, 760px);
}
.page-title {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.page-title.compact {
  padding: 16px 18px;
}
.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.15;
}
.page-title p {
  margin: 0;
  color: var(--muted);
}
.logistics-title {
  background: var(--green-900);
  color: white;
}
.logistics-title .eyebrow,
.logistics-title p {
  color: rgba(255, 255, 255, 0.86);
}
.logistics-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.logistics-actions .home-button {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.logistics-list {
  padding-inline: 0;
}

.task-strip {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.task-card {
  display: block;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.task-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.task-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.task-card.active {
  border-color: var(--green-700);
  background: #f0f8ef;
}

.info-grid,
.listing-grid {
  display: grid;
  gap: 14px;
}
.info-card,
.content-card,
.form-card,
.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.info-card,
.content-card {
  padding: 18px;
}
.info-card h2,
.content-card h2,
.form-step h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.info-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
}
.clean-list {
  padding-left: 1.2em;
  color: var(--muted);
}
.inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green-700);
  font-weight: 900;
}

.filter-bar,
.search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filter-bar.compact {
  margin-top: 12px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfe0cf;
  background: white;
  color: var(--text);
}
textarea {
  min-height: 116px;
  resize: vertical;
}
button,
.search-panel button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--green-700);
  color: white;
  font-weight: 900;
  cursor: pointer;
}
button.secondary {
  background: #e8efe8;
  color: var(--green-800);
}
.quick-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.quick-row button {
  white-space: nowrap;
  background: var(--green-100);
  color: var(--green-800);
}

.listing-card {
  overflow: hidden;
}
.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #dfe8dc;
}
.listing-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}
.listing-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.price {
  color: #c55418;
  font-size: 22px;
  font-weight: 900;
}
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
}
.empty-state,
.message {
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
}
.hidden {
  display: none !important;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}
.form-step {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fbfdf9;
  border: 1px solid #edf4eb;
}
.form-subsection {
  display: grid;
  gap: 10px;
}
.field-guide {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--green-700);
  background: var(--green-100);
  color: var(--green-800);
}
.toggle-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.toggle-field input {
  width: auto;
  min-height: auto;
}
.post-submit-actions {
  display: flex;
  justify-content: center;
}
.post-submit-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--green-700);
  color: white;
  font-weight: 900;
}
.two-col {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.two-col.single-col {
  grid-template-columns: 1fr;
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.check-row legend {
  font-weight: 900;
  padding: 0 6px;
}
.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check-row input {
  width: auto;
  min-height: auto;
}
.photo-drop {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed #9cc49e;
  border-radius: 16px;
  background: #f3faf0;
  color: var(--muted);
  overflow: hidden;
  cursor: pointer;
}
.photo-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.photo-drop img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}
.preview-text {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: white;
  color: var(--green-800);
  font-weight: 800;
}
.form-actions {
  display: grid;
  gap: 10px;
}
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--green-800);
  font-weight: 900;
  cursor: pointer;
}
.freight-textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: white;
  color: var(--text);
  font: inherit;
}
.freight-rules-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: white;
  color: var(--text);
  font: inherit;
}
.freight-rate-grid,
.freight-summary {
  display: grid;
  gap: 10px;
}
.freight-rate-grid label {
  display: grid;
  gap: 6px;
  color: var(--green-800);
  font-weight: 900;
}
.freight-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5fbf3;
}
.freight-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.freight-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--green-900);
  font-size: clamp(1.15rem, 5vw, 1.9rem);
  word-break: break-word;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
}
.check-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--green-800);
  font-weight: 800;
}
.check-line input {
  width: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}
.modal-card {
  width: min(100%, 720px);
  max-height: 88vh;
  overflow: auto;
  background: white;
  border-radius: 18px;
  padding: 16px;
}
.modal-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-width: 100vw;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}
.mobile-bottom-nav a {
  min-width: 0;
  padding: 12px 6px calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--green-800);
  font-weight: 900;
}
.mobile-bottom-nav a[aria-current="page"] {
  background: #f0f8ef;
  color: var(--green-700);
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }
  .desktop-nav {
    display: flex;
  }
  .mobile-bottom-nav {
    display: none;
  }
  .header-post-button {
    display: inline-flex;
    min-width: 112px;
  }
  .task-strip {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .home-actions {
    grid-template-columns: repeat(4, 1fr);
  }
  .site-footer {
    padding-bottom: 26px;
  }
  .entry-page {
    padding-inline: 36px;
  }
  .action-panel {
    grid-template-columns: repeat(3, 1fr);
  }
  .info-grid,
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-bar {
    grid-template-columns: 1.4fr 1.1fr repeat(6, minmax(0, 1fr));
    align-items: center;
  }
  .search-panel {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }
  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .logistics-actions {
    grid-template-columns: repeat(2, minmax(0, 260px));
  }
  .freight-rate-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .freight-summary {
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
  }
  .form-actions {
    grid-template-columns: 1fr auto;
  }
}
