/*
Theme Name: Pro Camera Products Review
Theme URI: https://procameraproducts.pics
Description: Professional imaging optics and body breakdowns. Camera sensor benchmarks, lens sharpness comparisons, and studio lighting configurations.
Style ID: be821f
Version: 1.0.0
Text Domain: pro-camera-products
*/

/* ============ 配色系统 ============ */
:root {
  --bg: #f7f6f8;
  --bg-alt: #ecebef;
  --bg-deep: #e2e0e5;
  --text: #1f1d26;
  --text-muted: #706b7b;
  --accent: #4812c4;
  --border: #dfdde4;
  /* Memphis 撞色点缀（高饱和，呼应 warm editorial） */
  --mem-coral: #ff6b4a;
  --mem-sun: #ffd23f;
  --mem-pink: #ff8fab;
  --mem-teal: #2ec4b6;
  --mem-ink: #1f1d26;
  /* 视觉密度：标准 */
  --spacing: 18px;
  --spacing-lg: 40px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 29, 38, 0.08);
  --font-head: 'Nunito', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Quicksand', -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ============ 基础重置 ============ */
.be821f-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Memphis 重复图案背景（极淡圆点网格） */
  background-image:
    radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

.be821f-body *, .be821f-body *::before, .be821f-body *::after {
  box-sizing: border-box;
}

.be821f-body a {
  color: var(--accent);
  text-decoration: none;
}

.be821f-body a:hover {
  opacity: 0.8;
}

.be821f-body img {
  max-width: 100%;
  height: auto;
}

.be821f-body h1, .be821f-body h2, .be821f-body h3,
.be821f-body h4, .be821f-body h5, .be821f-body h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 800;
}

.be821f-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 页首 Header & 导航 ============ */
.be821f-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.be821f-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.be821f-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.be821f-logo a {
  color: var(--text);
}

.be821f-logo-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.be821f-logo-dot::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--mem-sun);
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

.be821f-hamburger {
  background: var(--text);
  border: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 110;
}

.be821f-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.be821f-hamburger.be821f-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.be821f-hamburger.be821f-open span:nth-child(2) { opacity: 0; }
.be821f-hamburger.be821f-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全屏菜单 */
.be821f-fullmenu {
  position: fixed;
  inset: 0;
  background: var(--text);
  color: #fff;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.be821f-fullmenu.be821f-open {
  opacity: 1;
  visibility: visible;
}

.be821f-fullmenu-inner {
  max-width: 720px;
  width: 100%;
  padding: 40px 24px;
  text-align: center;
}

.be821f-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.be821f-nav-list li a {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.be821f-nav-list li a:hover {
  color: var(--mem-sun);
  transform: translateX(6px);
}

.be821f-nav-sub {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.be821f-nav-sub li a {
  color: var(--text-muted);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}

.be821f-nav-sub li a:hover { color: var(--mem-pink); }

/* ============ 文章卡片（样式 C：图片背景 + overlay） ============ */
.be821f-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 220px;
  display: block;
}

.be821f-card .be821f-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.be821f-card:hover .be821f-card-bg { transform: scale(1.06); }

.be821f-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,29,38,0.05) 0%, rgba(31,29,38,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.be821f-card-cat {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--accent);
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.be821f-card-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.be821f-card-title a { color: #fff; }

.be821f-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* 文章元数据（作者头像 + 名字 + 阅读时长 + 日期） */
.be821f-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.be821f-meta-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}

.be821f-meta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.be821f-meta-name { color: var(--text); font-weight: 600; }

.be821f-meta-sep {
  color: var(--border);
}

/* ============ 归档/索引页 ============ */
.be821f-page-head {
  padding: 60px 0 30px;
  position: relative;
}

.be821f-page-head h1 {
  font-size: 42px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.be821f-page-head .be821f-page-desc {
  color: var(--text-muted);
  max-width: 640px;
}

.be821f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 60px;
}

.be821f-grid .be821f-card { min-height: 260px; }

/* ============ 单篇文章页（带右侧栏 70/30） ============ */
.be821f-single-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0 70px;
}

.be821f-post-header { margin-bottom: 30px; }

.be821f-post-header h1 {
  font-size: 44px;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.be821f-post-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.be821f-post-featured img { display: block; width: 100%; }

.be821f-post-content {
  font-size: 18px;
  line-height: 1.85;
  color: #2a2733;
}

.be821f-post-content p { margin: 0 0 1.4em; }

.be821f-post-content h2 {
  font-size: 28px;
  margin: 1.6em 0 0.6em;
}

.be821f-post-content h3 { font-size: 22px; margin: 1.4em 0 0.5em; }

.be821f-post-content a { text-decoration: underline; }

.be821f-post-tags {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.be821f-post-tags a {
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.be821f-post-tags a:hover { background: var(--accent); color: #fff; }

/* 右侧栏 */
.be821f-sidebar { font-size: 15px; }

.be821f-sidebar-widget {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.be821f-sidebar-widget h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.be821f-sidebar-widget h3::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--mem-coral);
  border-radius: 50%;
  display: inline-block;
}

.be821f-sidebar-list { list-style: none; margin: 0; padding: 0; }

.be821f-sidebar-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.be821f-sidebar-list li:last-child { border-bottom: none; }

.be821f-sidebar-list a { color: var(--text); font-weight: 600; line-height: 1.4; }
.be821f-sidebar-list a:hover { color: var(--accent); }

/* ============ 页脚 Footer（4 列） ============ */
.be821f-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

/* Memphis 点缀 */
.be821f-footer::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: var(--accent);
  border-radius: 50%;
  top: -70px;
  right: 8%;
  opacity: 0.5;
}

.be821f-footer::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--mem-sun);
  bottom: 20px;
  left: 6%;
  opacity: 0.6;
}

.be821f-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.be821f-footer h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.be821f-footer-mission {
  font-size: 15px;
  line-height: 1.6;
}

.be821f-footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

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

.be821f-footer ul li { margin-bottom: 10px; }

.be821f-footer ul li a { color: rgba(255,255,255,0.75); font-size: 15px; }
.be821f-footer ul li a:hover { color: var(--mem-sun); }

.be821f-footer-bottom {
  max-width: 1160px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

/* ============ 404 页 ============ */
.be821f-404 {
  text-align: center;
  padding: 120px 24px;
}

.be821f-404 h1 {
  font-size: 100px;
  letter-spacing: -3px;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .be821f-grid { grid-template-columns: repeat(2, 1fr); }
  .be821f-single-wrap { grid-template-columns: 1fr; }
  .be821f-sidebar { order: 2; }
  .be821f-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .be821f-grid { grid-template-columns: 1fr; }
  .be821f-post-header h1 { font-size: 32px; }
  .be821f-footer-grid { grid-template-columns: 1fr; }
  .be821f-nav-list li a { font-size: 24px; }
  .be821f-page-head h1 { font-size: 30px; }
}
