/*
Theme Name: PDFMagic Child
Theme URI: https://pdfmagic.cc
Description: PDFMagic Blog Child Theme
Author: PDFMagic
Template: generatepress
Version: 1.0
*/


/* ======================
   Layout
====================== */
.header {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ======================
   Left
====================== */
.left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-weight: 600;
  font-size: 16px;
  color: #111;
  text-decoration: none;
}

/* ======================
   Nav
====================== */
.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  position: relative;
}

.nav a:hover {
  color: #4f46e5;
}

.nav a.active {
  color: #4f46e5;
  font-weight: 500;
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #4f46e5;
  border-radius: 2px;
}

/* ======================
   Right
====================== */
.right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px; /* 原来 6px，稍微收紧 */
}

.lang-switch button {
  padding: 2px 2px; /* 横向收紧 */
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}

.lang-switch button.active {
  color: #4f46e5;
  font-weight: 500;
}

/* Mobile Menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ======================
   Mobile
====================== */
@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

.footer {
  border-top: 1px solid #eee;
  margin-top: 64px;
  background: #fafafa;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.footer-nav ul,
.footer-legal ul {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}

.footer-nav a,
.footer-legal a {
  color: #666;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.footer-nav a.active,
.footer-legal a.active {
  color: #4f46e5;
  font-weight: 500;
}

.footer-nav a.active::after,
.footer-legal a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #4f46e5;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .footer-nav ul,
  .footer-legal ul {
    flex-wrap: wrap;
    gap: 12px;
  }
}
