/* ============================================
   搜遇酷图 — 静态页面公共样式
   用于 post / tag 等静态生成页面，
   头部导航和底部栏目与首页保持视觉一致。
   ============================================ */

/* ============================================
   1. Design Tokens（与首页 global.css 一致）
   ============================================ */
:root {
  /* 品牌色 */
  --violet: #6D28D9;
  --violet-soft: #8B5CF6;
  --violet-ghost: rgba(109, 40, 217, 0.06);

  /* 中性色 */
  --ink: #0f0f1a;
  --text: #1a1a2e;
  --text-sub: #5b5b72;
  --text-muted: #8e8ea0;
  --text-faint: #b4b4c4;
  --surface: #fff;
  --bg: #f5f5f7;

  /* 边框 */
  --border: #eeeef2;
  --border-soft: #f4f4f7;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(15, 15, 26, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 15, 26, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 15, 26, 0.08);

  /* 字体 */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', 'Songti SC', serif;

  /* 布局 */
  --nav-h: 64px;
  --max-w: 1200px;
}

/* ============================================
   2. Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--violet);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--violet-soft);
}

/* ============================================
   3. Header / Navbar（与首页 DesktopNavbar 视觉一致）
   ============================================ */
.site-hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.hd-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.hd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hd-logo:hover {
  transform: scale(1.03);
}
.hd-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hd-logo-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.hd-logo-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--violet), var(--violet-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hd-logo-slogan {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}
.hd-logo-wrap {
  display: flex;
  flex-direction: column;
}

/* Nav Links */
.hd-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.hd-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.hd-nav a:hover {
  color: var(--violet);
  background: var(--violet-ghost);
}
.hd-nav a.nav-act {
  color: var(--violet);
  font-weight: 600;
  background: var(--violet-ghost);
}

/* Breadcrumb */
.bc {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.bc a {
  color: var(--text-muted);
}
.bc a:hover {
  color: var(--violet);
}
.bc span {
  color: var(--text);
  font-weight: 500;
}
.bc .s {
  margin: 0 6px;
  color: #d4d4d8;
}

/* ============================================
   4. Footer（与首页 Footer 视觉一致，浅色主题）
   ============================================ */
.site-ft {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 56px 36px;
  border-top: 1px solid var(--border);
}

.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Footer Brand */
.ft-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ft-brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}
.ft-brand-logo-svg {
  width: 28px;
  height: 28px;
}
.ft-brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.ft-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 260px;
}

/* Footer Columns */
.ft-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.ft-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-sub);
  padding: 5px 0;
  transition: color 0.2s;
  font-weight: 400;
}
.ft-col a:hover {
  color: var(--violet);
}

/* Footer Bottom */
.ft-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
}
.ft-bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-icp {
  padding-left: 16px;
  border-left: 1px solid var(--border-soft);
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
a.ft-icp:hover {
  color: var(--text-sub);
}
.ft-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
}
.ft-contact svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ============================================
   5. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hd-inner {
    padding: 0 24px;
  }
  .site-ft {
    padding: 40px 32px 28px;
  }
  .ft-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hd-inner {
    padding: 0 16px;
  }
  .hd-nav {
    display: none;
  }
  .site-ft {
    padding: 36px 20px 24px;
  }
  .ft-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .ft-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .ft-bottom-left,
  .ft-bottom-right {
    justify-content: center;
  }
}
