* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafaf8;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --card-bg: #fff;
  --border: #e8e8e4;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --accent: #b8a99a;
  --max-width: 960px;
}

/* ── Dark mode ───────────────────── */
html.dark {
  --bg: #0a0a14;
  --text: #e0e0e0;
  --text-light: #999;
  --text-muted: #666;
  --card-bg: #141428;
  --border: #1e1e32;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --accent: #7a6d5e;
}
html.dark .admin-login-btn { color: #0a0a14; }
html.dark .auth-tab.active { color: #0a0a14; }
html.dark .admin-tab.active { color: #0a0a14; }
html.dark .hero-booking-btn { color: #0a0a14; }
html.dark .upload-submit-btn { color: #0a0a14; }
html.dark .upload-copy-btn { color: #0a0a14; }
html.dark .booking-submit { color: #0a0a14; }
html.dark .auth-submit { color: #0a0a14; }
html.dark .admin-login-input { color: var(--text); }
html.dark .message-textarea { color: var(--text); }
html.dark .booking-input { color: var(--text); }
html.dark .booking-textarea { color: var(--text); }
html.dark .auth-input { color: var(--text); }

html.dark .nav { background: rgba(10, 10, 20, 0.94); }

/* Dark mode toggle button in nav */
.nav-dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  color: var(--text);
  margin-left: 4px;
  transition: background 0.2s;
}
.nav-dark-toggle:hover { background: var(--card-bg); }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0 24px;
}

.nav-link {
  display: block;
  padding: 16px 28px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Language switcher in nav */
.nav-lang-item {
  display: flex;
  align-items: center;
}

.nav-lang-item:first-of-type {
  margin-left: auto;
}

.nav-lang {
  display: block;
  padding: 16px 6px;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  line-height: 1;
}

.nav-lang:hover,
.nav-lang.active {
  opacity: 1;
}

/* ── Hero ─────────────────────────── */

.hero {
  padding: 80px 24px 64px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-avatar {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #eae8e3;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 2;
  margin: 0 auto;
}

/* ── Gallery ──────────────────────── */

.gallery {
  padding: 0 24px 80px;
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ── Photo Card ───────────────────── */

.photo-card {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: zoom-in;
  user-select: none;
}
/* Transparent shield — blocks right-click save-as on the image itself */
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}
/* Watermark — bottom-right corner */
.photo-card::after {
  content: "© 东吴摄影";
  position: absolute;
  z-index: 2;
  bottom: 6px; right: 6px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
html.dark .photo-card::after {
  color: rgba(255, 255, 255, 0.3);
}

/* Lightbox like button */
.lightbox-like {
  position: absolute;
  bottom: 40px; left: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.lightbox-like.liked { color: #e74c3c; }
.lightbox-like span { font-size: 0.85rem; }

/* Lightbox watermark */
.lightbox { position: relative; }
/* Lightbox EXIF bar */
.lightbox-exif {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 8;
  background: rgba(0,0,0,0.65);
  color: #ddd;
  padding: 10px 20px;
  font-size: 0.82rem;
  text-align: center;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lightbox-exif span {
  opacity: 0.85;
  white-space: nowrap;
}
.lightbox::after {
  content: "© 东吴摄影";
  position: absolute;
  z-index: 10;
  bottom: 18px; right: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-card img.loading {
  opacity: 0;
}

.photo-card img.loaded {
  opacity: 1;
}

/* placeholder: no image yet */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d0d0cc;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: #f6f5f3;
}

/* ── Works Page ───────────────────── */

.works-page {
  padding: 100px 24px 80px;
}

.works-cards {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.works-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.works-card--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.works-card-icon {
  color: var(--accent);
}

.works-card-label {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.works-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── About Page ───────────────────── */

.about-page {
  padding: 80px 24px;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #eae8e3;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin: 0 auto 36px;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  color: var(--text);
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2.2;
  text-align: left;
}

.about-body p {
  margin-bottom: 16px;
}

/* ── Footer ───────────────────────── */

.footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.admin-entry {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.admin-entry:hover {
  opacity: 0.8;
}

/* ── Lightbox ──────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Album Gallery ────────────────── */

.album-layout {
  display: flex;
  min-height: calc(100vh - 120px);
  padding-top: 1px; /* collapse margin with nav */
}

.album-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #f7f6f4;
  padding: 40px 0;
}

.album-list {
  list-style: none;
  position: sticky;
  top: 80px;
}

.album-item {
  padding: 14px 32px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-right: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.album-item:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.album-item.active {
  color: var(--text);
  border-right-color: var(--accent);
  background: rgba(0, 0, 0, 0.02);
  font-weight: 500;
}

.album-main {
  flex: 1;
  padding: 40px 48px 80px;
}

.album-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ── Video Page ───────────────────── */

.video-page {
  padding: 60px 24px 80px;
}

.video-page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 48px;
}

.video-player-section {
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.video-player-wrapper {
  position: relative;
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.video-player.show {
  display: block;
}

.video-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #6b6b6b;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.video-player-placeholder.hidden {
  display: none;
}

/* ── Video Playlist ────────────────── */

.video-playlist {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-playlist-item {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-playlist-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.video-playlist-item.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.video-playlist-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.video-playlist-info {
  padding: 12px 16px;
}

.video-playlist-name {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ── Message Page ────────────────── */

.message-page {
  padding: 80px 24px;
}

.message-page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 48px;
}

.message-form {
  max-width: 560px;
  margin: 0 auto;
}

.message-textarea-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.message-textarea {
  display: block;
  width: 100%;
  min-height: 240px;
  padding: 20px 20px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.message-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 169, 154, 0.15);
}

.message-textarea::placeholder {
  color: var(--text-muted);
}

.message-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.message-submit {
  display: block;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.message-submit:hover {
  opacity: 0.85;
}

/* ── Social Page ─────────────────── */

.social-page {
  padding: 80px 24px;
}

.social-page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 60px;
}

.social-links {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 32px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  opacity: 0.92;
}

.social-btn--bilibili { background: #fb7299; }
.social-btn--douyin { background: #111; }
.social-btn--xiaohongshu { background: #fe2c55; }
.social-btn--shipinhao { background: #07c160; }

/* ── Admin Page ──────────────────── */

.admin-page {
  padding: 60px 24px 80px;
}

.admin-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 40px;
}

/* Login form */
.admin-login-form {
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-input {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 169, 154, 0.15);
}

.admin-login-btn {
  padding: 14px 0;
  border: none;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.admin-login-btn:hover { opacity: 0.85; }

.admin-login-error {
  text-align: center;
  font-size: 0.85rem;
  color: #d44;
  min-height: 20px;
}

/* Dashboard header */
.admin-header {
  max-width: 800px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header .admin-title {
  margin-bottom: 0;
  text-align: left;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 0;
}

.admin-tab {
  padding: 8px 24px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.admin-tab:first-child { border-radius: 4px 0 0 4px; }
.admin-tab:last-child { border-radius: 0 4px 4px 0; border-left: none; }
.admin-tab.active { background: var(--text); color: #fff; border-color: var(--text); }

/* Booking table columns */
.col-booking-contact { width: 180px; word-break: break-all; font-size: 0.82rem; }
.col-booking-date { width: 150px; font-size: 0.82rem; }

.admin-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-btn:hover { background: #f0efed; }

.admin-btn--shutdown {
  border-color: #d44;
  color: #d44;
}

.admin-btn--shutdown:hover { background: #fef0f0; }

.admin-btn--danger {
  border-color: #d44;
  color: #d44;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.admin-btn--danger:hover { background: #fef0f0; }

/* Table */
.admin-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}

.admin-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.col-id { width: 50px; }
.col-time { width: 170px; }
.col-actions { width: 100px; }

.admin-table td.col-content {
  line-height: 1.6;
  word-break: break-all;
}

.admin-table .edit-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-table .edit-cell textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.admin-table .edit-actions {
  display: flex;
  gap: 8px;
}

.admin-table .edit-actions button {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-table .edit-actions button:hover { background: #f0efed; }

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ── Auth Page ────────────────────── */

.auth-page {
  padding: 60px 24px 80px;
}

.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.auth-tab {
  padding: 10px 40px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.auth-tab:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.auth-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.auth-form {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 169, 154, 0.15);
}

.auth-submit {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-submit:hover { opacity: 0.85; }

.auth-error {
  text-align: center;
  font-size: 0.85rem;
  color: #d44;
  min-height: 20px;
  margin: 0;
}

.auth-switch {
  text-align: center;
  margin: 0;
}

.auth-switch a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.auth-switch a:hover { color: var(--text); }

/* ── Message Auth Section ─────────── */

.message-auth {
  margin-top: 20px;
  text-align: center;
}

.message-auth-btn {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--text);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.message-auth-btn:hover {
  background: var(--text);
  color: #fff;
}

.message-user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.message-user-name {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.message-logout-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.message-logout-btn:hover {
  color: #d44;
  border-color: #d44;
}

.message-business-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ── Admin User Column ────────────── */

.col-user {
  width: 160px;
  word-break: break-all;
}

/* ── Hero Booking Button ─────────── */

.hero-booking-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 60px;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  transition: opacity 0.25s;
  margin-right: 16px;
}
.hero-booking-btn:hover {
  opacity: 0.85;
}

/* ── Portfolio Page ─────────────── */

.portfolio-page {
  padding: 60px 24px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.portfolio-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.portfolio-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s;
}

.portfolio-card:hover { opacity: 0.8; }

.portfolio-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.06em;
  margin: 0;
}

@media (max-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-booking-btn {
    display: block;
    margin: 12px auto 0 auto;
    max-width: 260px;
    width: 100%;
    margin-right: auto !important;
  }
  .hero-booking-btn:first-of-type { margin-top: 24px; }
}

/* ── Traffic Panel ──────────────── */

.traffic-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.traffic-stat {
  flex: 1;
  min-width: 120px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.traffic-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.traffic-value {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ── Upload Page ─────────────────── */

.upload-page {
  padding: 60px 24px 80px;
}

.upload-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}

.upload-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 36px;
}

.upload-zone {
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(184, 169, 154, 0.06);
}

.upload-icon { font-size: 2.4rem; }

.upload-zone-text {
  color: var(--text);
  font-size: 0.95rem;
  margin: 12px 0 6px;
}

.upload-zone-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.upload-info {
  max-width: 480px;
  margin: 0 auto 12px;
  text-align: center;
}

.upload-filename { color: var(--text); font-size: 0.95rem; word-break: break-all; }
.upload-filesize { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

.upload-expiry {
  max-width: 480px;
  margin: 0 auto 16px;
  text-align: center;
}

.upload-expiry-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.upload-radio {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.upload-progress {
  max-width: 480px;
  margin: 0 auto 16px;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: var(--text);
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

.upload-progress-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 6px;
}

.upload-submit-btn {
  display: block;
  margin: 0 auto;
  padding: 14px 56px;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upload-submit-btn:hover { opacity: 0.85; }
.upload-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.invite-gate {
  max-width: 400px;
  margin: 0 auto 32px;
}

.invite-form {
  display: flex;
  gap: 10px;
}

.invite-form input {
  flex: 1;
}

.invite-form .upload-submit-btn {
  margin: 0;
  padding: 14px 28px;
  white-space: nowrap;
}

.upload-error {
  text-align: center;
  color: #d44;
  font-size: 0.85rem;
  min-height: 20px;
  margin-top: 12px;
}

.upload-result {
  max-width: 480px;
  margin: 24px auto 0;
  text-align: center;
}

.upload-result-title {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
}

.upload-result-url {
  display: flex;
  gap: 8px;
}

.upload-result-url input {
  flex: 1;
}

.upload-copy-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.upload-copy-btn:hover { opacity: 0.85; }

.upload-result-expiry {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ── Booking Page ────────────────── */

.booking-page {
  padding: 60px 24px 80px;
}

.booking-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 40px;
}

.booking-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-sublabel {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.booking-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 169, 154, 0.15);
}

.booking-input-inline {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.booking-input-inline:focus {
  border-color: var(--accent);
}

.booking-contact-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 12px;
}

.booking-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.booking-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.booking-contact-other {
  display: inline-flex;
  align-items: center;
}

.booking-time-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.booking-time-item {
  flex: 1;
}

.booking-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 169, 154, 0.15);
}

.form-counter {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.booking-submit {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.booking-submit:hover { opacity: 0.85; }
.booking-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.booking-error {
  text-align: center;
  font-size: 0.85rem;
  color: #d44;
  min-height: 20px;
  margin: -8px 0 0;
}

/* ── Responsive ───────────────────── */

@media (max-width: 720px) {
  .hero-avatar {
    width: 140px;
    height: 140px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .works-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-body {
    text-align: left;
  }

  /* Mobile nav: horizontal scroll */
  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 0 8px;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-link {
    padding: 16px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .nav-lang { padding: 4px 8px; font-size: 0.8rem; }

  .album-layout {
    flex-direction: column;
  }

  .album-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
  }

  .album-list {
    display: flex;
    justify-content: center;
    position: static;
  }

  .album-item {
    padding: 12px 20px;
    border-right: none;
    border-bottom: 3px solid transparent;
  }

  .album-item.active {
    border-right-color: transparent;
    border-bottom-color: var(--accent);
  }

  .album-main {
    padding: 24px 16px 60px;
  }

  .album-grid {
    gap: 16px;
  }

  .video-playlist {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .col-time,
  .col-user,
  .col-booking-contact,
  .col-booking-date { display: none; }}
