:root {
  --coffee-dark: #4a3428;
  --coffee: #6f4e37;
  --coffee-light: #a9856a;
  --terracotta: #c98a4b;
  --beige: #f5ead6;
  --beige-light: #faf3e6;
  --cream: #fffaf0;
  --text: #3b2a20;
  --text-muted: #8a7a6a;
  --danger: #b3452f;
  --success: #5b7a4f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  background: var(--beige-light);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--coffee-dark);
  color: var(--cream);
  flex-wrap: wrap;
  gap: 12px;
}

nav .logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--cream);
}

nav .links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav .links a { text-decoration: none; font-size: 14px; color: var(--beige); opacity: 0.9; }
nav .links a:hover { opacity: 1; color: var(--terracotta); }

main { max-width: 960px; margin: 0 auto; padding: 40px 24px; }

.hero {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, var(--beige) 0%, var(--beige-light) 100%);
  border-bottom: 1px solid rgba(74,52,40,0.08);
}
.hero h1 { font-size: 32px; color: var(--coffee-dark); margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 16px; }

.section-title {
  font-size: 22px;
  color: var(--coffee-dark);
  margin: 0 0 20px;
  border-left: 4px solid var(--terracotta);
  padding-left: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(74,52,40,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(74,52,40,0.06);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 180px; object-fit: cover; background: var(--beige); }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.card-body h3 { margin: 0; font-size: 19px; color: var(--coffee-dark); }
.card-body p { margin: 0; color: var(--text-muted); font-size: 14px; white-space: pre-line; line-height: 2; }
.card-body p.card-duration { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.card-body p.card-bullets { margin-top: 4px; }
.card-body p.card-price { font-weight: 600; color: var(--terracotta); font-size: 16px; margin: auto 0 0; }
.card-notice {
  background: var(--beige-light);
  border: 1px solid rgba(74,52,40,0.1);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--coffee);
  color: var(--cream);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--coffee-dark); }
.btn.secondary { background: transparent; border: 1px solid var(--coffee); color: var(--coffee); }
.btn.danger { background: var(--danger); }
.btn.line { background: #06c755; }
.btn.line:hover { background: #05a648; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
label { font-size: 14px; color: var(--coffee-dark); font-weight: 500; }
input, textarea, select {
  padding: 10px 12px;
  border: 1px solid rgba(74,52,40,0.25);
  border-radius: 8px;
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; }

.session-list { display: flex; flex-direction: column; gap: 10px; }
.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(74,52,40,0.15);
  border-radius: 8px;
  background: var(--cream);
}
.session-item.selected { border-color: var(--terracotta); background: var(--beige); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--beige);
  color: var(--coffee-dark);
}
.badge.status-pending { background: #f0e0c0; color: #7a5a1e; }
.badge.status-confirmed { background: #dcecd6; color: var(--success); }
.badge.status-cancelled { background: #f0d6cf; color: var(--danger); }

.photo-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.photo-gallery img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }

.error-text { color: var(--danger); font-size: 13px; }
.muted { color: var(--text-muted); font-size: 13px; }

.booking-list { display: flex; flex-direction: column; gap: 16px; }
.booking-item { background: var(--cream); border: 1px solid rgba(74,52,40,0.1); border-radius: 12px; padding: 16px; }
.booking-item h4 { margin: 0 0 4px; color: var(--coffee-dark); }

footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; }

table { width: 100%; border-collapse: collapse; background: var(--cream); border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 14px; text-align: center; font-size: 14px; border-bottom: 1px solid rgba(74,52,40,0.1); }
th { background: var(--coffee-dark); color: var(--cream); font-weight: 500; }
td:first-child { color: var(--coffee-dark); font-weight: 500; background: var(--beige-light); }
tr:last-child td { border-bottom: none; }

.token-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--beige); border: 1px solid rgba(74,52,40,0.08); color: var(--text);
  border-radius: 14px; padding: 16px 22px; margin-bottom: 18px;
}
.token-strip .token-strip-main { font-size: 13px; color: var(--text-muted); }
.token-strip .token-strip-main strong { display: block; font-size: 30px; line-height: 1.2; color: var(--coffee-dark); margin: 2px 0 0; }
.token-strip .token-strip-main strong small { font-size: 16px; font-weight: 400; margin-left: 4px; }
.token-strip .token-strip-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.token-strip .btn { background: transparent; border: 1px solid var(--terracotta); color: var(--coffee); padding: 10px 18px; }
.token-strip .btn:hover { background: var(--terracotta); color: #fff; }

.cta-book {
  display: block; text-align: center; text-decoration: none; background: var(--coffee); color: var(--cream);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 32px; transition: background .15s;
}
.cta-book:hover { background: var(--coffee-dark); }
.cta-book .cta-title { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.cta-book .cta-sub { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.notice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
@media (max-width: 560px) { .notice-grid { grid-template-columns: 1fr; } }
.notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.notice-head svg { flex: none; width: 22px; height: 22px; stroke: var(--coffee); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notice-head b { font-size: 17px; font-weight: 500; color: var(--coffee-dark); }
.notice-item > span { display: block; padding-left: 32px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.token-price {
  display: inline-block; background: var(--terracotta); color: #fff; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}
.token-price small { font-weight: 400; opacity: 0.9; margin-left: 2px; }
