﻿:root {
  --bg-soft: #f5f7fb;
  --bg-warm: #fff1e2;
  --bg-night: #0b0f1f;
  --ink: #1d2433;
  --muted: #687086;
  --accent: #ff9a3d;
  --accent-2: #2d5bff;
  --accent-3: #1fbfaf;
  --panel: #ffffff;
  --panel-dark: #0d1224;
  --border: rgba(28, 34, 54, 0.15);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 24px 50px rgba(19, 26, 40, 0.16);
  --shadow-md: 0 16px 28px rgba(19, 26, 40, 0.12);
  --font-sans: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', 'Heiti TC', sans-serif;
  --font-display: 'PMingLiU', 'MingLiU', serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: auto;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.02;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(45, 91, 255, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 154, 61, 0.15);
  color: #9b4c10;
  font-weight: 600;
}

.button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: linear-gradient(135deg, #ff9a3d, #ff6d4b);
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 125, 77, 0.3);
}

.button.secondary {
  background: #e7ecff;
  color: #2d5bff;
}

.button:active {
  transform: translateY(1px);
}

.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 18px 20px 0;
}

.card-body {
  padding: 20px;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    font-size: 21px;
    letter-spacing: 0.04em;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.mobile-page-chip {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-more-sheet[hidden] {
  display: none;
}

@media (max-width: 720px) {
  body.has-mobile-bottom-nav {
    --mobile-nav-height: 78px;
    --mobile-nav-surface: #050505;
    --mobile-nav-border: rgba(255, 255, 255, 0.16);
    --mobile-nav-ink: #ffffff;
    --mobile-nav-muted: rgba(255, 255, 255, 0.78);
    --mobile-nav-accent: #ffffff;
    --mobile-nav-accent-soft: rgba(255, 255, 255, 0.14);
    --mobile-nav-shadow: none;
    --mobile-sheet-surface: rgba(255, 255, 255, 0.98);
  }

  html.rooms-page,
  html.posts-page,
  body.has-mobile-bottom-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.rooms-page::-webkit-scrollbar,
  html.posts-page::-webkit-scrollbar,
  body.has-mobile-bottom-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body.has-mobile-bottom-nav .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 4vw 10px;
  }

  body.has-mobile-bottom-nav .brand {
    font-size: 18px;
    letter-spacing: 0.03em;
    gap: 8px;
  }

  body.has-mobile-bottom-nav .nav-links {
    display: none;
  }

  .mobile-page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(45, 91, 255, 0.08);
    color: var(--mobile-nav-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: #050505;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .mobile-bottom-nav.is-hidden {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    opacity: 0;
    pointer-events: none;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__create {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
  }

  .mobile-bottom-nav__item.is-active {
    color: #ffffff;
  }

  .mobile-bottom-nav__item:is(:hover, :focus-visible),
  .mobile-bottom-nav.is-sheet-open [data-mobile-more-toggle] {
    color: #ffffff;
  }

  .mobile-bottom-nav__icon,
  .mobile-bottom-nav__create-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-bottom-nav__create-icon {
    background: transparent;
    box-shadow: none;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon,
  .mobile-bottom-nav__create.is-active .mobile-bottom-nav__create-icon {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .mobile-bottom-nav__item:is(:hover, :focus-visible) .mobile-bottom-nav__icon,
  .mobile-bottom-nav__create:is(:hover, :focus-visible) .mobile-bottom-nav__create-icon,
  .mobile-bottom-nav.is-sheet-open [data-mobile-more-toggle] .mobile-bottom-nav__icon {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-bottom-nav__icon svg,
  .mobile-bottom-nav__create-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .mobile-bottom-nav__label {
    display: none;
  }

  .mobile-bottom-nav__item:focus-visible,
  .mobile-bottom-nav__create:focus-visible,
  .mobile-more-sheet__close:focus-visible,
  .mobile-more-sheet__link:focus-visible {
    outline: none;
  }

  .mobile-bottom-nav__item:focus-visible .mobile-bottom-nav__icon,
  .mobile-bottom-nav__create:focus-visible .mobile-bottom-nav__create-icon {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
    border-radius: 14px;
  }

  .mobile-more-sheet {
    position: fixed;
    inset: 0;
    z-index: 110;
  }

  .mobile-more-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(7, 11, 22, 0.44);
  }

  .mobile-more-sheet__panel {
    position: absolute;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 14px 14px 18px;
    border-radius: 28px;
    border: 1px solid var(--mobile-nav-border);
    background: var(--mobile-sheet-surface);
    box-shadow: 0 24px 54px rgba(12, 19, 38, 0.24);
    color: var(--mobile-nav-ink);
  }

  .mobile-more-sheet__handle {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: rgba(126, 139, 170, 0.42);
  }

  .mobile-more-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-more-sheet__header strong {
    display: block;
    font-size: 16px;
    color: var(--mobile-nav-ink);
  }

  .mobile-more-sheet__header p {
    margin: 6px 0 0;
    color: var(--mobile-nav-muted);
    font-size: 13px;
    line-height: 1.5;
  }

  .mobile-more-sheet__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 91, 255, 0.08);
    color: var(--mobile-nav-ink);
    font-size: 22px;
    line-height: 1;
  }

  .mobile-more-sheet__close:is(:hover, :focus-visible) {
    background: rgba(45, 91, 255, 0.14);
  }

  .mobile-more-sheet__links {
    display: grid;
    gap: 10px;
  }

  .mobile-more-sheet__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(45, 91, 255, 0.06);
    color: var(--mobile-nav-ink);
  }

  .mobile-more-sheet__link:is(:hover, :focus-visible) {
    background: rgba(45, 91, 255, 0.1);
  }

  .mobile-more-sheet__link strong,
  .mobile-more-sheet__link small {
    display: block;
  }

  .mobile-more-sheet__link small {
    margin-top: 3px;
    color: var(--mobile-nav-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .mobile-more-sheet__link-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--mobile-nav-accent-soft);
    color: var(--mobile-nav-accent);
    font-size: 14px;
    font-weight: 800;
  }

  body.mobile-more-sheet-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .mobile-bottom-nav {
    transition: none;
  }
}






