/* lvzhanhome - Shared Styles */

/* Font loading */
/* Base */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  margin: 0;
}

/* Custom colors for Tailwind CDN config */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s;
}
.navbar.transparent {
  background: transparent;
}
.navbar.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Navbar home page behavior */
body.home-page .navbar {
  background: transparent;
}
body.home-page .navbar.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 首页下拉后：背景变白，文字/Logo 同步切换为深色 */
body.home-page .navbar.solid .navbar-logo {
  filter: none !important;
}
body.home-page .navbar.solid .navbar-brand {
  color: #0F172A !important;
}
body.home-page .navbar.solid .navbar-dot {
  background-color: #1E40AF !important;
}
body.home-page .navbar.solid .navbar-desktop-nav a {
  color: #4B5563 !important;
}
body.home-page .navbar.solid .navbar-desktop-nav a:hover {
  color: #1E40AF !important;
}
body.home-page .navbar.solid .navbar-desktop-nav a.is-active {
  color: #1E40AF !important;
}
body.home-page .navbar.solid .navbar-auth-login {
  color: #4B5563 !important;
}
body.home-page .navbar.solid .navbar-auth-login:hover {
  color: #1E40AF !important;
}
body.home-page .navbar.solid .navbar-auth-register {
  background-color: #1E40AF !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
body.home-page .navbar.solid .navbar-auth-register:hover {
  background-color: #3B82F6 !important;
}
body.home-page .navbar.solid .navbar-auth-dashboard {
  background-color: #1E40AF !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
body.home-page .navbar.solid .navbar-auth-dashboard:hover {
  background-color: #3B82F6 !important;
}
body.home-page .navbar.solid .navbar-menu-icon {
  color: #0F172A !important;
}

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  background-color: #1E40AF;
  color: white;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s;
}
.btn-primary:hover {
  background-color: #3B82F6;
  box-shadow: 0 10px 25px rgba(30,64,175,0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s;
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Animations */
@keyframes slide-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Prose styles for article content */
.prose-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0F172A;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
}
@media (min-width: 768px) {
  .prose-content h2 { font-size: 1.5rem; }
}
.prose-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 9999px;
  background-color: #1E40AF;
}
.prose-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0F172A;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .prose-content h3 { font-size: 1.25rem; }
}
.prose-content p {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .prose-content p { font-size: 1rem; }
}
.prose-content strong {
  color: #0F172A;
  font-weight: 600;
}
.prose-content li {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .prose-content li { font-size: 1rem; }
}

/* Category filter active */
.cat-btn.active {
  background-color: #1E40AF;
  color: white;
  box-shadow: 0 4px 12px rgba(30,64,175,0.2);
}
.cat-btn:not(.active) {
  background-color: #F8FAFC;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}
.cat-btn:not(.active):hover {
  color: #1E40AF;
}

/* Pricing comparison table */
.pricing-compare-btn i {
  transition: transform 0.3s;
}
.pricing-compare-btn i.rotated {
  transform: rotate(180deg);
}

/* Floating service */
.floating-panel {
  display: none;
}
.floating-panel.open {
  display: block;
}

.floating-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 6rem;
  z-index: 60;
  transform: translateX(-50%) translateY(0.5rem);
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.floating-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toast / modal overlay */
.modal-overlay {
  display: none;
}
.modal-overlay.open {
  display: flex;
}

/* Legal agreement page */
@media (min-width: 1024px) {
  .legal-page .legal-sidebar-wrap {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    z-index: 10;
  }

  .legal-page .legal-sidebar {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.legal-toc-link {
  color: #4b5563;
  text-decoration: none;
}

.legal-toc-link:hover:not(.is-active) {
  color: #1E40AF;
  background: rgba(30, 64, 175, 0.05);
}

.legal-toc-link.is-active {
  background-color: #1E40AF !important;
  color: #ffffff !important;
  font-weight: 500;
}

.legal-document .legal-section:not(.legal-signature) {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.legal-document .legal-signature {
  padding-top: 0.5rem;
}