:root {
  --brand: #23b8c8;
  --brand-dark: #087f92;
  --brand-soft: #e9fbfd;
  --line-green: #06c755;
  --ink: #172b32;
  --muted: #657b82;
  --paper: #ffffff;
  --surface: #f6fafb;
  --warm: #fff7e8;
  --border: rgba(23, 43, 50, 0.13);
  --shadow: 0 18px 48px rgba(17, 92, 105, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 10px clamp(16px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}
.brand img {
  display: block;
  width: 104px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); color: var(--muted); font-size: 15px; font-weight: 800; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .line-button, .primary-button, .secondary-button {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}
.lang-toggle { border: 1px solid var(--border); background: #fff; color: var(--brand-dark); }
.line-button, .floating-line { background: var(--line-green); color: #fff; box-shadow: 0 12px 24px rgba(6, 199, 85, 0.22); }
.primary-button { border: 0; background: var(--brand-dark); color: #fff; }
.secondary-button { border: 1px solid var(--border); background: #fff; color: var(--brand-dark); }

.hero {
  min-height: 650px;
  padding: 92px clamp(18px, 6vw, 78px) 76px;
  background:
    linear-gradient(90deg, rgba(13, 58, 67, 0.92), rgba(13, 58, 67, 0.56) 50%, rgba(13, 58, 67, 0.05)),
    url("assets/hero-airport.png") center / cover;
  color: #fff;
}
.hero-copy { max-width: 920px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #bdf4f9; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(42px, 8vw, 88px); line-height: 1.05; letter-spacing: 0; }
.hero-copy > p { max-width: 650px; color: rgba(255,255,255,.9); font-size: clamp(18px, 2vw, 23px); }

.search-box {
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr auto;
  gap: 12px;
  align-items: end;
  max-width: 980px;
  margin-top: 34px;
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}
label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }

.category-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: -42px auto 0;
  padding: 0 18px;
}
.category-strip a, .card, .booking-form, .admin-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 43, 50, 0.06);
}
.category-strip a { display: flex; align-items: center; gap: 12px; padding: 18px; box-shadow: var(--shadow); font-weight: 900; }
.category-strip span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); }

.section { padding: 82px clamp(18px, 6vw, 78px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2, .page-hero h1, .contact-band h2, .about-grid h2 { margin-bottom: 8px; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; letter-spacing: 0; }
.section-head p, .card p, .about-grid p, .page-hero p { color: var(--muted); }
.section-head > p { max-width: 520px; }
.section-head > a { color: var(--brand-dark); font-weight: 900; }
.page-hero { padding: 76px clamp(18px, 6vw, 78px) 48px; background: #fff; }
.page-hero p { max-width: 760px; font-size: 18px; }

.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 22px; }
.card strong, .card .price { color: var(--brand-dark); font-weight: 900; }
.card .price { display: block; font-size: 30px; }
.card small, .admin-item small, td small { color: var(--muted); }
.guide-list { margin: 0; padding-left: 20px; color: var(--muted); }
.guide-list li + li { margin-top: 8px; }

.booking-form { padding: clamp(18px, 4vw, 34px); }
.service-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.service-tabs label { position: relative; }
.service-tabs input { position: absolute; opacity: 0; }
.service-tabs span { display: grid; min-height: 48px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--brand-soft); color: var(--muted); font-weight: 900; text-align: center; }
.service-tabs input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wide { grid-column: 1 / -1; }
.hidden { display: none; }
.checkout { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.checkout small { display: block; color: var(--muted); font-weight: 800; }
.checkout strong { font-size: 24px; }

.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 62px clamp(18px, 6vw, 78px); background: var(--brand); color: #fff; }
.contact-band .eyebrow, .contact-band p { color: rgba(255,255,255,.9); }
.contact-band p { margin-bottom: 8px; }
.big-line { flex: 0 0 auto; border-radius: 10px; padding: 16px 26px; background: var(--line-green); color: #fff; font-weight: 900; }
.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 42px clamp(18px, 6vw, 78px);
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
}
.footer-contact {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.footer-logo {
  display: block;
  width: 132px;
  height: 66px;
  margin-bottom: 8px;
  border-radius: 8px;
  object-fit: cover;
}
.site-footer h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.site-footer p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.86);
}
.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copyright {
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}
.about-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(280px,.8fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-grid img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.about-hero {
  display: grid;
  min-height: 430px;
  align-items: end;
  padding: 82px clamp(18px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(8, 127, 146, 0.94), rgba(8, 127, 146, 0.58), rgba(8, 127, 146, 0.08)),
    url("assets/hero-airport.png") center / cover;
  color: #fff;
}
.about-hero .eyebrow {
  color: #bdf4f9;
}
.about-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
}
.about-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}
.about-story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #fff;
}
.about-story {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
}
.about-story p {
  margin-bottom: 22px;
}
.story-quote {
  border-left: 5px solid var(--brand);
  padding: 18px 0 18px 22px;
  color: var(--brand-dark);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.42;
}
.story-signature {
  color: var(--brand-dark);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}
.about-image-card {
  position: sticky;
  top: 96px;
}
.about-image-card img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.admin-page .site-header { background: #f7fcfd; }
.admin-shell { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; }
.admin-tabs { display: grid; align-content: start; gap: 8px; border-right: 1px solid var(--border); padding: 16px; background: #f7fcfd; }
.admin-tab { border: 1px solid transparent; border-radius: 8px; padding: 12px; background: transparent; color: var(--muted); text-align: left; font-weight: 900; }
.admin-tab.active { border-color: var(--border); background: #fff; color: var(--brand-dark); }
.admin-panel { display: none; padding: 20px; }
.admin-panel.active { display: block; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h3 { margin: 0; font-size: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.manage-form { display: grid; grid-template-columns: 1fr 1fr 1fr .8fr .8fr auto; gap: 10px; margin-bottom: 16px; }
.plan-form { grid-template-columns: 1fr 1fr .7fr .7fr .7fr 1.2fr auto; }
.manage-list { display: grid; gap: 10px; }
.admin-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: #fff; }
.delete-button { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: #fff; color: #b42318; font-weight: 900; }

.floating-line { position: fixed; right: 18px; bottom: 18px; z-index: 60; border-radius: 999px; padding: 13px 18px; font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; max-width: min(92vw, 560px); transform: translate(-50%, 20px); border-radius: 10px; padding: 14px 18px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .search-box, .grid-3, .grid-2, .about-grid, .about-story-section, .admin-shell { grid-template-columns: 1fr; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--border); }
  .manage-form, .plan-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .brand img { width: 86px; height: 43px; }
  .line-button { display: none; }
  .hero { min-height: 590px; padding-top: 56px; }
  .about-image-card { position: static; }
  .category-strip, .service-tabs, .form-grid, .checkout, .manage-form, .plan-form { grid-template-columns: 1fr; }
  .section-head, .contact-band, .panel-title, .site-footer { display: grid; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .big-line, .primary-button { width: 100%; }
  .admin-tabs { grid-template-columns: 1fr; }
}
