/* Salon Platform · layout.css — 顶栏(桌面) + 底栏(移动) 布局系统 · 新拟物派 */

/* ─── Layout ─── */
.app-layout {
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .app-layout {
    padding-bottom: 64px;
  }
}

/* ─── Top Bar ─── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  border-bottom: none;
  box-shadow: var(--raise-sm);
  z-index: 100;
  transition: background-color var(--dur) var(--ease);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
}

.topbar-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: -0.01em;
}

.brand-dot {
  color: var(--accent);
  font-weight: 700;
}

/* ─── Top Nav ─── */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.topnav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--r);
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
}

.topnav-item:hover {
  color: var(--ink);
  box-shadow: var(--raise-xs);
}

.topnav-item.active {
  color: var(--accent);
  font-weight: 500;
  box-shadow: var(--inset-sm);
}

/* 「交流」特殊醒目 */
.topnav-item--highlight {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--raise-sm);
  font-weight: 600;
}

.topnav-item--highlight:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: var(--raise-hover-sm);
}

.topnav-item--highlight:active {
  box-shadow: var(--inset-sm);
}

.tni-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tni-icon svg { width: 100%; height: 100%; }
.tni-caret { font-size: 10px; margin-left: 2px; opacity: 0.5; }

/* ─── Dropdown ─── */
.topnav-dropdown { position: relative; }

.topnav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: var(--bg);
  border: none;
  border-radius: var(--r);
  padding: 6px;
  box-shadow: var(--raise-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 200;
}

.topnav-dropdown:hover .dropdown-menu,
.topnav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.dropdown-item:hover {
  box-shadow: var(--raise-xs);
  color: var(--accent);
}

.dropdown-item.active {
  color: var(--accent);
  font-weight: 500;
  box-shadow: var(--inset-sm);
}

.di-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-faint);
}

.di-icon svg { width: 100%; height: 100%; }

/* ─── User Menu ─── */
.topbar-user { position: relative; }

.user-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--raise-sm);
  transition: box-shadow var(--dur) var(--ease);
}

.user-trigger:hover {
  box-shadow: var(--raise-hover-sm);
}

.user-trigger:active {
  box-shadow: var(--inset-sm);
}

.user-trigger img { width: 100%; height: 100%; object-fit: cover; }

.topbar-user .user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--bg);
  border: none;
  border-radius: var(--r);
  padding: 6px;
  box-shadow: var(--raise-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 200;
}

.topbar-user:hover .user-menu,
.topbar-user.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Auth Buttons (topbar) ─── */
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-auth .topnav-item {
  padding: 7px 14px;
  font-size: 13px;
}

/* ─── Bottom Bar ─── */
.bottombar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  border-top: none;
  box-shadow: 0 -4px 8px var(--shadow-dark), 0 -2px 4px var(--shadow-light);
  z-index: 100;
}

.bottombar-inner {
  display: flex;
  height: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 8px;
}

.bottombar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  border-radius: var(--r);
}

.bottombar-item:hover { color: var(--ink); }
.bottombar-item.active { color: var(--accent); font-weight: 500; }

.bottombar-item--highlight {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  margin: 4px 0;
  box-shadow: var(--raise-sm);
}

.bottombar-item--highlight:hover {
  color: #fff;
  background: var(--accent-deep);
}

.bb-icon { display: inline-flex; width: 20px; height: 20px; }
.bb-icon svg { width: 100%; height: 100%; }
.bb-label { line-height: 1.2; }

/* 通知红点 */
.badge-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 14px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--bg);
}

/* ─── Main Content ─── */
.main-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ─── Hero ─── */
.hero { padding: 0 0 48px; max-width: 720px; margin: 0 auto; }
.hero-eyebrow { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.hero-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 440px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 10px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--bg-elevated); }
.hero-meta .stat-num { font-size: 24px; font-weight: 600; color: var(--ink); }
.hero-meta .stat-label { font-size: 12px; color: var(--ink-faint); margin-top: 1px; }

/* ─── Footer ─── */
.footer { padding: 24px 0; border-top: 1px solid var(--bg-elevated); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-faint); }
.footer a { color: var(--ink-faint); transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .topbar-auth .topnav-item { display: none; }
  .bottombar { display: block !important; }
  .main-content { padding: 24px 16px 48px; }
  .section { padding: 36px 0; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .main-content { padding: 20px 14px 40px; }
  .topbar-inner { padding: 0 14px; }
}
