/*!
 * aphoto 极简风格增强层
 * 当主题为 aphoto 系列（ap- 前缀）时自动加载
 * 基于光影集 DOM 结构，叠加 aphoto.cc 的极简美学
 */

/* ============================================================
   aphoto 模式基础调整
   ============================================================ */
body.aphoto-mode {
  --radius: 4px;
  --shadow: none;
  letter-spacing: 0.01em;
}

/* ============================================================
   顶部导航
   ============================================================ */
body.aphoto-mode .topbar {
  background: transparent;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 0;
}
body.aphoto-mode .topbar.scrolled {
  background: var(--surface);
  opacity: 0.95;
}
body.aphoto-mode .logo {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}
body.aphoto-mode .mainnav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.3s;
}
body.aphoto-mode .mainnav a:hover,
body.aphoto-mode .mainnav a.on {
  opacity: 1;
}
body.aphoto-mode .mainnav a.on::after {
  display: none;
}

/* ============================================================
   通用区块：去除卡片感，增加留白
   ============================================================ */
body.aphoto-mode .section {
  padding: 100px 0;
}
body.aphoto-mode .section-head {
  margin-bottom: 60px;
  text-align: left;
}
body.aphoto-mode .section-head .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}
body.aphoto-mode .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ============================================================
   Banner 区块
   ============================================================ */
body.aphoto-mode .banner {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}
body.aphoto-mode .banner h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
body.aphoto-mode .banner p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
  line-height: 1.8;
}

/* ============================================================
   相册网格：无边框、极简展示
   ============================================================ */
body.aphoto-mode .album-grid {
  gap: 40px 24px;
}
body.aphoto-mode .album-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}
body.aphoto-mode .album-card:hover {
  transform: none;
  box-shadow: none;
}
body.aphoto-mode .album-card .cover {
  border-radius: 0;
  aspect-ratio: 4/5;
}
body.aphoto-mode .album-card .cover img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body.aphoto-mode .album-card:hover .cover img {
  transform: scale(1.05);
}
body.aphoto-mode .album-info {
  padding: 16px 4px 0;
  text-align: left;
  background: transparent;
}
body.aphoto-mode .album-info h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
}
body.aphoto-mode .album-info p {
  font-size: 0.8rem;
  opacity: 0.5;
}
body.aphoto-mode .album-badge {
  top: 12px;
  left: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ============================================================
   文章列表
   ============================================================ */
body.aphoto-mode .article-list {
  gap: 0;
}
body.aphoto-mode .article-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
body.aphoto-mode .article-card:first-child {
  border-top: 1px solid var(--line);
}
body.aphoto-mode .article-card:hover {
  transform: none;
  box-shadow: none;
}
body.aphoto-mode .article-card .thumb {
  aspect-ratio: 3/2;
  border-radius: 0;
}
body.aphoto-mode .article-card .info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
}
body.aphoto-mode .article-card .info .meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}
body.aphoto-mode .article-card .info p {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 8px;
}

/* ============================================================
   关于我 / 图文区块
   ============================================================ */
body.aphoto-mode .about-block,
body.aphoto-mode .text-image-block {
  gap: 60px;
}
body.aphoto-mode .about-block .image,
body.aphoto-mode .text-image-block .image {
  border-radius: 0;
  overflow: hidden;
}
body.aphoto-mode .about-block h3,
body.aphoto-mode .text-image-block h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
body.aphoto-mode .about-block p,
body.aphoto-mode .text-image-block p {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.8;
}

/* ============================================================
   联系表单
   ============================================================ */
body.aphoto-mode .contact-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
}
body.aphoto-mode .contact-form input,
body.aphoto-mode .contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  font-size: 1rem;
  transition: border-color 0.3s;
}
body.aphoto-mode .contact-form input:focus,
body.aphoto-mode .contact-form textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
  outline: none;
}
body.aphoto-mode .contact-form button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 40px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s;
}
body.aphoto-mode .contact-form button:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   页脚
   ============================================================ */
body.aphoto-mode .footer {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  color: var(--muted);
}
body.aphoto-mode .footer .copyright {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============================================================
   按钮通用
   ============================================================ */
body.aphoto-mode .btn {
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  font-weight: 500;
}
body.aphoto-mode .btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
body.aphoto-mode .btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

/* ============================================================
   底纹弱化（aphoto 风格更干净）
   ============================================================ */
body.aphoto-mode .theme-bg::before {
  opacity: 0.3 !important;
}

/* ============================================================
   响应式调整
   ============================================================ */
@media (max-width: 768px) {
  body.aphoto-mode .section {
    padding: 60px 0;
  }
  body.aphoto-mode .section-head {
    margin-bottom: 40px;
  }
  body.aphoto-mode .album-grid {
    gap: 32px 16px;
  }
  body.aphoto-mode .article-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  body.aphoto-mode .about-block,
  body.aphoto-mode .text-image-block {
    gap: 32px;
  }
  body.aphoto-mode .banner {
    min-height: 70vh;
    padding: 100px 20px 60px;
  }
}
