/*
Theme Name: Moment 时刻
Theme URI: https://example.com/moment
Author: Your Name
Author URI: https://example.com
Description: 仿微信朋友圈风格的 WordPress 主题，支持发布图文动态、点赞、评论、图片灯箱等功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moment
Tags: one-column, custom-colors, custom-menu, editor-style, threaded-comments
*/

/* ================================================
   CSS 变量 — 朋友圈设计系统
   ================================================ */
:root {
  --mom-bg: #EDEDED;
  --mom-card-bg: #FFFFFF;
  --mom-border: #E4E4E4;
  --mom-text-primary: #191919;
  --mom-text-secondary: #888888;
  --mom-text-link: #576B95;
  --mom-accent: #07C160;
  --mom-accent-light: #E8F8EE;
  --mom-heart-red: #FE3B30;
  --mom-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --mom-radius: 12px;
  --mom-radius-sm: 8px;
  --mom-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mom-max-width: 680px;
  --mom-avatar-size: 44px;
  --mom-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ================================================
   基础重置 & 全局
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--mom-font);
  background: var(--mom-bg);
  color: var(--mom-text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* 页面容器 */
.mom-container {
  max-width: var(--mom-max-width);
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ================================================
   顶部导航栏（仿微信）
   ================================================ */
.mom-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--mom-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mom-header__inner {
  max-width: var(--mom-max-width);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
}

.mom-header__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mom-text-primary);
  letter-spacing: 0.5px;
}

.mom-header__actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.mom-header__icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--mom-text-primary);
  transition: var(--mom-transition);
}

.mom-header__icon:hover { opacity: 0.7; }

/* ================================================
   发布入口卡（点击弹出发布框）
   ================================================ */
.mom-publish-entry {
  background: var(--mom-card-bg);
  border-radius: var(--mom-radius);
  padding: 16px;
  margin: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--mom-transition);
  box-shadow: var(--mom-shadow);
}

.mom-publish-entry:hover {
  background: #FAFAFA;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.mom-publish-entry__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.mom-publish-entry__placeholder {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--mom-text-secondary);
  font-size: 15px;
  border: 1.5px dashed #D8D8D8;
  transition: var(--mom-transition);
}

.mom-publish-entry:hover .mom-publish-entry__placeholder {
  border-color: var(--mom-accent);
  color: var(--mom-accent);
  background: var(--mom-accent-light);
}

.mom-publish-entry__camera {
  width: 32px;
  height: 32px;
  color: var(--mom-text-secondary);
  flex-shrink: 0;
}

/* ================================================
   动态卡片
   ================================================ */
.mom-card {
  background: var(--mom-card-bg);
  border-radius: var(--mom-radius);
  margin: 10px 12px;
  padding: 16px 16px 10px;
  box-shadow: var(--mom-shadow);
  animation: fadeSlideUp 0.35s ease-out both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mom-card:nth-child(2) { animation-delay: 0.05s; }
.mom-card:nth-child(3) { animation-delay: 0.10s; }
.mom-card:nth-child(4) { animation-delay: 0.15s; }
.mom-card:nth-child(5) { animation-delay: 0.20s; }

.mom-card__header {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.mom-card__avatar {
  width: var(--mom-avatar-size);
  height: var(--mom-avatar-size);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
  cursor: pointer;
  transition: var(--mom-transition);
}

.mom-card__avatar:hover { opacity: 0.85; }

.mom-card__meta {
  flex: 1;
  min-width: 0;
}

.mom-card__username {
  font-size: 15px;
  font-weight: 600;
  color: #576B95;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

.mom-card__username:hover { text-decoration: underline; }

.mom-card__username.verified::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--mom-accent);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.mom-card__content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mom-text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 10px;
}

.mom-card__content .mom话题 {
  color: var(--mom-text-link);
  cursor: pointer;
}

/* ================================================
   图片网格
   ================================================ */
.mom-card__images {
  margin-bottom: 10px;
}

.mom-images-grid {
  display: grid;
  gap: 4px;
  border-radius: var(--mom-radius-sm);
  overflow: hidden;
}

.mom-images-grid.cols-1 { grid-template-columns: 1fr; }
.mom-images-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.mom-images-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mom-images-grid.cols-more { grid-template-columns: 1fr 1fr 1fr; }

.mom-images-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: var(--mom-transition);
  background: #f0f0f0;
}

.mom-images-grid img:hover { opacity: 0.88; }

/* 单张大图不裁剪 */
.mom-images-grid.cols-1 img,
.mom-images-grid.cols-2 img:first-child:only-child {
  aspect-ratio: auto;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

/* 9宫格最后一张显示更多 */
.mom-images-grid.more-than-9 .mom-img-wrapper:nth-child(9)::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.mom-img-wrapper {
  position: relative;
  overflow: hidden;
}

/* ================================================
   定位 + 时间戳
   ================================================ */
.mom-card__footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--mom-text-secondary);
}

.mom-card__location { cursor: pointer; }
.mom-card__location:hover { color: var(--mom-text-link); }

.mom-card__time {
  cursor: pointer;
  position: relative;
}

.mom-card__time:hover { color: var(--mom-text-link); }

/* ================================================
   互动栏（点赞+评论按钮）
   ================================================ */
.mom-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 6px 0 4px;
  border-top: 1px solid #F0F0F0;
  margin-top: 4px;
}

.mom-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mom-text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--mom-transition);
}

.mom-action-btn:hover { background: #F5F5F5; color: var(--mom-text-primary); }
.mom-action-btn:active { transform: scale(0.95); }

.mom-action-btn svg {
  width: 20px;
  height: 20px;
}

/* 点赞动画 */
@keyframes heartBeat {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.mom-action-btn.liked svg {
  color: var(--mom-heart-red);
  fill: var(--mom-heart-red);
  animation: heartBeat 0.4s ease-out;
}

.mom-action-btn.liked span { color: var(--mom-heart-red); }

.mom-action-btn.mom-comment-btn svg { color: #888; }

/* ================================================
   点赞列表
   ================================================ */
.mom-likes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #F7F7F7;
  border-radius: var(--mom-radius-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
  min-height: 36px;
}

.mom-likes:empty { display: none; }

.mom-likes__item {
  font-size: 13px;
  color: #576B95;
  cursor: pointer;
  white-space: nowrap;
}

.mom-likes__item:hover { text-decoration: underline; }

.mom-likes__item + .mom-likes__item::before {
  content: '、';
  color: var(--mom-text-secondary);
}

/* ================================================
   评论列表
   ================================================ */
.mom-comments { margin-top: 0; }

.mom-comment {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.mom-comment__author {
  color: #576B95;
  cursor: pointer;
  font-weight: 500;
  margin-right: 4px;
}

.mom-comment__author:hover { text-decoration: underline; }

.mom-comment__reply {
  color: #576B95;
  cursor: pointer;
  font-size: 13px;
  margin-left: 4px;
  padding: 0 2px;
  border-radius: 2px;
  transition: var(--mom-transition);
}

.mom-comment__reply:hover {
  background: var(--mom-accent-light);
  color: var(--mom-accent);
}

.mom-comment__text { color: var(--mom-text-primary); }

/* ================================================
   底部导航条
   ================================================ */
.mom-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(249,249,249,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 6px 0 env(safe-area-inset-bottom, 0);
}

.mom-bottom-nav__inner {
  max-width: var(--mom-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.mom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--mom-text-secondary);
  transition: var(--mom-transition);
  border-radius: 8px;
}

.mom-nav-item:hover,
.mom-nav-item.active { color: var(--mom-accent); }

.mom-nav-item svg {
  width: 24px;
  height: 24px;
}

.mom-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* ================================================
   发布模态框
   ================================================ */
.mom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mom-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mom-modal {
  background: white;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: var(--mom-max-width);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.96,0.52,1);
  overscroll-behavior: contain;
}

.mom-modal-overlay.active .mom-modal {
  transform: translateY(0);
}

.mom-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mom-border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.mom-modal__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--mom-text-primary);
}

.mom-modal__close {
  width: 28px;
  height: 28px;
  background: #F0F0F0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  line-height: 1;
  transition: var(--mom-transition);
}

.mom-modal__close:hover { background: #E0E0E0; }

.mom-modal__actions {
  display: flex;
  gap: 10px;
}

.mom-btn-publish {
  background: var(--mom-accent);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--mom-transition);
  font-family: inherit;
}

.mom-btn-publish:hover { background: #06AD56; }
.mom-btn-publish:disabled { background: #CCCCCC; cursor: not-allowed; }

.mom-modal__body { padding: 20px; }

/* 发布表单 */
.mom-form textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.7;
  resize: none;
  font-family: var(--mom-font);
  color: var(--mom-text-primary);
  min-height: 120px;
  background: transparent;
}

.mom-form textarea::placeholder { color: #B2B2B2; }

.mom-form__tools {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mom-border);
}

.mom-form__tool {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mom-text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--mom-transition);
  background: none;
  border: 1.5px solid var(--mom-border);
}

.mom-form__tool:hover {
  border-color: var(--mom-accent);
  color: var(--mom-accent);
  background: var(--mom-accent-light);
}

.mom-form__tool svg { width: 18px; height: 18px; }

/* 图片预览区 */
.mom-form__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.mom-form__img-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

.mom-form__img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mom-form__img-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  line-height: 1;
  transition: var(--mom-transition);
}

.mom-form__img-remove:hover { background: rgba(0,0,0,0.75); }

/* 位置输入 */
.mom-form__location {
  margin-top: 12px;
}

.mom-form__location input {
  width: 100%;
  border: 1.5px solid var(--mom-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--mom-font);
  color: var(--mom-text-primary);
  outline: none;
  transition: var(--mom-transition);
}

.mom-form__location input:focus {
  border-color: var(--mom-accent);
  background: var(--mom-accent-light);
}

.mom-form__location input::placeholder { color: #C8C8C8; }

/* ================================================
   图片灯箱
   ================================================ */
.mom-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mom-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.mom-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.2s;
}

.mom-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--mom-transition);
}

.mom-lightbox__close:hover { background: rgba(255,255,255,0.25); }

/* ================================================
   单条动态页（single-moment.php）
   ================================================ */
.mom-single {
  padding: 0 0 100px;
}

.mom-single__back {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--mom-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mom-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #576B95;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.mom-back-btn svg { width: 22px; height: 22px; }

/* ================================================
   评论输入框（固定底部）
   ================================================ */
.mom-comment-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: #F7F7F7;
  border-top: 1px solid var(--mom-border);
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  max-width: var(--mom-max-width);
  margin: 0 auto;
}

body.mom-comment-bar-open .mom-comment-bar {
  transform: translateY(0);
}

.mom-comment-bar textarea {
  flex: 1;
  border: 1.5px solid var(--mom-border);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: var(--mom-font);
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.5;
  background: white;
  transition: var(--mom-transition);
}

.mom-comment-bar textarea:focus {
  border-color: var(--mom-accent);
}

.mom-comment-bar__send {
  background: var(--mom-accent);
  color: white;
  border: none;
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--mom-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.mom-comment-bar__send:hover { background: #06AD56; }
.mom-comment-bar__send:disabled { background: #ccc; cursor: not-allowed; }

.mom-comment-bar__cancel {
  background: #F0F0F0;
  color: #666;
  border: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--mom-transition);
  flex-shrink: 0;
}

.mom-comment-bar__cancel:hover { background: #E0E0E0; }

.mom-comment-replying-to {
  font-size: 12px;
  color: var(--mom-text-secondary);
  padding: 4px 16px 0;
  max-width: var(--mom-max-width);
  margin: 0 auto;
  display: none;
}

body.mom-comment-bar-open .mom-comment-replying-to { display: block; }

/* ================================================
   登录/访客提示
   ================================================ */
.mom-need-login {
  text-align: center;
  padding: 40px 20px;
  color: var(--mom-text-secondary);
  font-size: 14px;
}

.mom-need-login a {
  color: var(--mom-text-link);
  text-decoration: none;
}

.mom-need-login a:hover { text-decoration: underline; }

/* ================================================
   加载状态
   ================================================ */
.mom-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: var(--mom-text-secondary);
}

.mom-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--mom-border);
  border-top-color: var(--mom-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mom-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mom-text-secondary);
}

.mom-empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.mom-empty__text { font-size: 15px; }

/* ================================================
   滚动加载指示器
   ================================================ */
.mom-scroll-trigger {
  text-align: center;
  padding: 20px;
  color: var(--mom-text-secondary);
  font-size: 13px;
}

/* ================================================
   通知 Toast
   ================================================ */
.mom-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.78);
  color: white;
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 14px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.mom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================
   发布页（page-publish.php）
   ================================================ */
.mom-publish-page {
  max-width: var(--mom-max-width);
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.mom-publish-page h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--mom-text-primary);
  text-align: center;
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 480px) {
  :root {
    --mom-avatar-size: 40px;
    --mom-max-width: 100%;
  }
  
  .mom-card {
    margin: 8px 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--mom-border);
  }
  
  .mom-card:first-child { border-radius: 0 0 var(--mom-radius) var(--mom-radius); }
  
  .mom-container { padding-bottom: 70px; }
  
  .mom-bottom-nav { border-radius: 12px 12px 0 0; }
}

/* ================================================
   暗色模式（可选）
   ================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --mom-bg: #1C1C1E;
    --mom-card-bg: #2C2C2E;
    --mom-border: #3A3A3C;
    --mom-text-primary: #F5F5F7;
    --mom-text-secondary: #8E8E93;
    --mom-text-link: #6DB3F2;
    --mom-accent-light: rgba(7,193,96,0.15);
    --mom-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  
  .mom-header { background: rgba(44,44,46,0.88); border-color: var(--mom-border); }
  .mom-modal { background: #2C2C2E; }
  .mom-modal__header { background: #2C2C2E; border-color: var(--mom-border); }
  .mom-form textarea { color: var(--mom-text-primary); }
  .mom-likes { background: #3A3A3C; }
  .mom-comment-bar { background: #2C2C2E; border-color: var(--mom-border); }
  .mom-comment-bar textarea { background: #1C1C1E; border-color: var(--mom-border); color: white; }
  .mom-bottom-nav { background: rgba(44,44,46,0.92); }
  .mom-card__actions { border-color: #3A3A3C; }
  .mom-form__tools { border-color: var(--mom-border); }
}

/* ================================================
   隐藏文件输入框
   ================================================ */
input[type="file"][accept*="image"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
