/* Site shell alignment with the KunQiong AI ID Photo project.
   Keep tool-area layout untouched; only header/footer styling lives here. */

:root {
  --site-primary: #1e88e5;
  --site-primary-dark: #1565c0;
  --site-primary-light: #e3f2fd;
  --site-header-height: 72px;
  --site-header-bg: #ffffff;
  --site-footer-bg: #1d2939;
  --site-footer-border: rgba(255, 255, 255, 0.08);
  --site-text: #1e293b;
  --site-muted: #64748b;
  --site-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --site-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1025px) {
  body.qv-homepage {
    zoom: 0.8;
  }
}

.site-header {
  background: var(--site-header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--site-header-height);
  box-shadow: var(--site-shadow-sm);
}

.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--site-header-height);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 0;
}

.site-header .header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.site-header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--site-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.site-header .logo a:hover {
  transform: scale(1.02);
}

.site-header .logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header .nav {
  display: flex;
  gap: 16px;
  margin-left: 16px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-header .nav::-webkit-scrollbar {
  display: none;
}

.site-header .nav-link {
  text-decoration: none;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 6px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--site-primary);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--site-primary);
}

.site-header .nav-item-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-header .category-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin-left: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-primary);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.site-header .category-dropdown-toggle:hover {
  background: rgba(30, 136, 229, 0.1);
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header .search-box {
  display: flex;
  align-items: center;
  width: 220px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header .search-icon-btn {
  border: none;
  background: transparent;
  color: #7c8ba1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header .search-icon-svg {
  width: 18px;
  height: 18px;
}

.site-header .search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 9px 8px 9px 0;
  color: #334155;
  font-size: 14px;
}

.site-header .search-box input::placeholder {
  color: #94a3b8;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .header-search-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #334155;
  align-items: center;
  justify-content: center;
}

.site-header .header-search-btn:hover {
  background: #f5f7fb;
}

.site-header .header-search-icon {
  width: 20px;
  height: 20px;
}

.site-header .mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--site-primary);
  color: var(--site-primary);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header .header-login-btn {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.25);
  cursor: pointer;
}

.site-header .header-login-btn:hover {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.35);
  transform: translateY(-1px);
}

.app-shell {
  margin-top: 0;
}

.site-footer {
  background: var(--site-footer-bg);
  color: #c7d2e0;
  margin-top: 0;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 28px;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer .footer-brand-section {
  padding-right: 12px;
}

.site-footer .footer-logo {
  width: auto;
  max-height: 44px;
  margin-bottom: 18px;
}

.site-footer .footer-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-section h4 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.site-footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-section li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #c7d2e0;
}

.site-footer .footer-section a {
  color: #c7d2e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-section a:hover {
  color: #ffffff;
}

.site-footer .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.site-footer .contact-icon-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #60a5fa;
  margin-top: 2px;
}

.site-footer .footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--site-footer-border);
}

.site-footer .copyright-links {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.site-footer .copyright-links a {
  color: #c7d2e0;
  text-decoration: none;
}

.site-footer .copyright-links a:hover {
  color: #ffffff;
}

.site-footer .separator {
  margin: 0 8px;
  opacity: 0.55;
}

@media (max-width: 1024px) {
  .site-header .header-container {
    padding: 0 20px;
  }

  .site-header .search-box {
    width: 180px;
  }

  .site-header .nav {
    gap: 10px;
  }

  .site-header .nav-link {
    font-size: 15px;
  }

  .site-footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-brand-section {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  .site-header .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  .site-header .logo-img {
    height: 32px;
  }

  .site-header .search-box {
    display: none;
  }

  .site-header .header-search-btn,
  .site-header .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header .header-login-btn {
    padding: 0 12px;
    height: 36px;
    font-size: 13px;
  }

  .site-header .header-right {
    gap: 8px;
  }

  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 10;
    margin: 6px 0 0;
    padding: 10px 0 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
    border-top: 1px solid #e5edf6;
  }

  .site-header.site-header--nav-open .nav {
    display: flex;
  }

  .site-header .nav-item-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .site-header .nav-link {
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 10px 4px;
  }

  .site-header .nav-link:hover::after,
  .site-header .nav-link.active::after {
    left: 0;
    right: auto;
    width: 100%;
  }

  .site-footer .container {
    padding: 36px 16px 24px;
  }

  .site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer .copyright-links {
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .site-header .header-container {
    padding: 10px 12px;
  }

  .site-header .header-login-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .site-header .nav-link {
    font-size: 13px;
  }
}
