:root {
  --bg-deep: #070b14;
  --bg-card: rgba(18, 24, 40, 0.85);
  --gold: #d4af37;
  --gold-soft: #e8d48b;
  --gold-dim: #a88b2d;
  --text: #f4f0e6;
  --text-muted: #b8b0a0;
  --border: rgba(212, 175, 55, 0.25);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
a { color: var(--gold-soft); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.nav-logo {
  font-family: "Noto Serif TC", "Noto Serif SC", serif;
  font-size: 1.15rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.5rem; font-size: 0.92rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--gold-soft); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.lang {
  display: flex; overflow: hidden;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem;
}
.lang a {
  min-width: 36px; min-height: 34px; padding: 0 0.55rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 500;
}
.lang a.active { background: var(--gold); color: #1a1508; }
.lang a:hover { color: var(--gold); }
.lang a.active:hover { color: #1a1508; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem;
}

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: url("/images/hero-bg.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,11,20,0.55) 0%, rgba(7,11,20,0.75) 50%, rgba(7,11,20,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-badge {
  display: inline-block; border: 1px solid var(--border); color: var(--gold-soft);
  font-size: 0.85rem; padding: 0.35rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem;
  letter-spacing: 0.12em; background: rgba(212,175,55,0.08);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.25; margin-bottom: 0.8rem;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 300; }
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.9rem; border-radius: 8px; font-weight: 500; font-size: 0.98rem;
  transition: all 0.3s; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #1a1508; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.35); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold-soft); }
.btn-outline:hover { background: rgba(212,175,55,0.12); }
.btn-block { width: 100%; }

section { padding: 5rem 1.5rem; }
.container { max-width: 1080px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 1.9rem; color: var(--gold); margin-bottom: 0.6rem; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
}

.about { background: linear-gradient(180deg, var(--bg-deep) 0%, #0c1220 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.about-img-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-img-wrap img { width: 100%; height: auto; display: block; }
.about-text h3 { font-size: 1.45rem; color: var(--gold-soft); margin-bottom: 1.2rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.lineage {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,175,55,0.1); border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.92rem; color: var(--gold-soft); margin-top: 0.8rem;
}

.qimen-intro { background: #0a101c; }
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.intro-text p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.intro-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.intro-img img { width: 100%; height: auto; display: block; }

.services { background: linear-gradient(180deg, #0a101c 0%, var(--bg-deep) 100%); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--gold); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.5); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 1.8rem; margin-bottom: 0.7rem; display: block; }
.service-card h4 { font-size: 1.15rem; color: var(--gold-soft); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.notes { background: #0c1220; }
.notes-box {
  background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(18,24,40,0.9));
  border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem;
  max-width: 780px; margin: 0 auto; box-shadow: var(--shadow);
}
.notes-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.notes-list li { display: flex; gap: 1rem; align-items: flex-start; }
.note-num {
  flex-shrink: 0; width: 32px; height: 32px; background: var(--gold); color: #1a1508;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.note-content h4 { font-size: 1.08rem; color: var(--gold-soft); margin-bottom: 0.25rem; }
.note-content p { color: var(--text-muted); font-size: 0.98rem; }

.cta {
  padding: 4.5rem 1.5rem;
  background: url("/images/misty-temple.jpg") center/cover no-repeat;
  position: relative;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(7,11,20,0.82); }
.cta-content { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
.booking-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.booking-copy h2 { font-size: 1.8rem; color: var(--gold); margin-bottom: 0.5rem; }
.booking-copy .divider { margin: 0.8rem 0 1.2rem; }
.booking-copy p { color: var(--text-muted); margin-bottom: 1rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.4rem; margin: 1.2rem 0; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }

.form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow);
}
.form label { display: block; color: var(--gold-soft); font-size: 0.92rem; margin-bottom: 0.9rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; margin-top: 0.4rem; padding: 0.65rem 0.85rem;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-deep);
  color: var(--text); font: inherit; outline: none;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); }
.form select option { background: #121828; color: var(--text); }
.form-msg { font-size: 0.9rem; color: var(--gold-soft); margin: 0.4rem 0 0.8rem; }
.or-row {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0.9rem 0;
}
.or-row span:first-child, .or-row span:last-child { flex: 1; height: 1px; background: var(--border); }

footer {
  background: #05080f; border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
footer .logo { font-family: "Noto Serif TC", "Noto Serif SC", serif; color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem; }

@media (max-width: 860px) {
  .about-grid, .intro-grid, .booking-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,11,20,0.97); padding: 1.2rem;
    border-bottom: 1px solid var(--border); gap: 0.4rem;
  }
  .nav-links.open a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 500px) {
  section { padding: 3.5rem 1.2rem; }
  .hero { padding: 5.5rem 1.2rem 3rem; }
  .notes-box, .form { padding: 1.8rem 1.3rem; }
}
