:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #eff6ff;
  --brand: #2563eb;
  --brand-weak: #dbeafe;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #f9fbff, var(--bg-page));
}

.idphoto-blog-page {
  min-height: 100vh;
}

.idphoto-blog-shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.idphoto-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.idphoto-site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.idphoto-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.idphoto-site-brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.idphoto-site-brand-icon svg {
  width: 24px;
  height: 24px;
}

.idphoto-site-brand-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.idphoto-template-search-trigger {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: var(--text-primary);
  cursor: pointer;
}

.idphoto-mobile-menu-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  background: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.idphoto-mobile-menu-button svg {
  width: 20px;
  height: 20px;
}

.idphoto-site-nav-wrap {
  justify-self: end;
}

.idphoto-site-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.idphoto-site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
}

.idphoto-site-nav-link:hover {
  background: #f3f4f6;
  color: var(--text-primary);
}

.idphoto-site-nav-link[data-active='true'],
.idphoto-site-nav-link[aria-current='page'] {
  color: var(--brand);
  background: var(--brand-weak);
  border-color: #bfdbfe;
  font-weight: 600;
}

.blog-button,
.blog-cta {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-button:hover,
.blog-cta:hover {
  background: #1d4ed8;
}

.idphoto-site-footer {
  border-top: 1px solid #1f2937;
  background: #111827;
  padding: 28px 20px 16px;
}

.idphoto-site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.idphoto-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.idphoto-footer-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.idphoto-footer-title {
  margin: 0;
  color: #f9fafb;
  font-size: 1rem;
  font-weight: 700;
}

.idphoto-footer-desc,
.idphoto-footer-copy,
.idphoto-footer-hint,
.idphoto-site-footer-bottom {
  margin: 0;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.6;
}

.idphoto-footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.idphoto-footer-link {
  color: #f9fafb;
  text-decoration: none;
}

.idphoto-footer-link:visited {
  color: #f9fafb;
}

.idphoto-footer-link:hover,
.idphoto-beian-link:hover {
  color: #93c5fd;
}

.idphoto-footer-qr {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  background: #f9fafb;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  padding: 0;
  overflow: hidden;
}

.idphoto-footer-qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.idphoto-site-footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 12px;
  text-align: center;
}

.idphoto-beian-link {
  display: block;
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
  text-decoration: none;
}

.idphoto-beian-link:visited {
  color: #9ca3af;
}

@media (max-width: 1279px) {
  .idphoto-site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .idphoto-site-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .idphoto-template-search-trigger {
    display: none;
  }

  .idphoto-mobile-menu-button {
    display: inline-flex;
  }

  .idphoto-site-nav-wrap {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .idphoto-site-nav-wrap[data-open='true'] {
    display: block;
  }

  .idphoto-site-nav-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .idphoto-site-footer-inner {
    gap: 16px;
  }

  .idphoto-site-footer {
    padding: 20px 12px 12px;
  }

  .idphoto-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
