/**
 * 图库大厅 — 与主页统一的顶栏 / 页脚
 * 部署路径：/op/aitools/
 */
:root {
  --site-bg-dark: #0A0A0C;
  --site-card-border: rgba(255, 255, 255, 0.08);
  --site-text-primary: #FFFFFF;
  --site-text-secondary: #8E8E93;
  --site-accent-color: #00F2FE;
  --site-accent-gradient: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --site-header-h: 76px;
}

body.has-site-chrome {
  background-color: var(--site-bg-dark);
  color: var(--site-text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
}

body.has-site-chrome::before,
body.has-site-chrome::after {
  opacity: 0.28;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--site-card-border);
  background: rgba(10, 10, 12, 0.4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  background: var(--site-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header nav a {
  color: var(--site-text-secondary);
  text-decoration: none;
  margin-left: 35px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--site-text-primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.ai-status {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--site-card-border);
  color: var(--site-text-secondary);
  white-space: nowrap;
}

.ai-status span {
  width: 6px;
  height: 6px;
  background-color: #00FF66;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px #00FF66;
  animation: site-chrome-blink 2s infinite;
}

@keyframes site-chrome-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--site-card-border);
  padding: 32px 4% 40px;
  text-align: center;
  margin-top: 20px;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--site-text-secondary);
  line-height: 1.8;
}

.site-footer a {
  color: var(--site-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--site-accent-color);
}

.site-footer .divider {
  margin: 0 8px;
  opacity: 0.4;
}

.has-site-chrome .gallery-wrap,
.has-site-chrome .admin-wrap,
.has-site-chrome .gallery-login-page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--site-header-h) + 12px);
}

.has-site-chrome .gallery-login-page {
  max-width: 480px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 48px;
}

.gallery-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border-card, rgba(175, 198, 212, 0.18));
  background: linear-gradient(180deg, rgba(24, 32, 44, 0.55) 0%, rgba(14, 18, 26, 0.38) 100%);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
}

.gallery-app-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e6eaee);
  white-space: nowrap;
}

.gallery-app-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 5%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header nav {
    display: none;
  }

  :root {
    --site-header-h: 68px;
  }
}
