/**
 * 社区附件二次确认弹层（跟投诉弹层同一套 mytheme-pop 节奏）。
 * 独立文件，不依赖 Tailwind，避免晚加载的全局工具类打穿。
 */

.mytheme-wpf-file-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.mytheme-wpf-file-modal[hidden] {
  display: none !important;
}

.mytheme-wpf-file-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.mytheme-wpf-file-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  max-height: min(88vh, 36rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  text-align: center;
}

.mytheme-wpf-file-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #999999;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mytheme-wpf-file-modal__close:hover {
  color: #222222;
  background: #f5f5f5;
}

.mytheme-wpf-file-modal__close:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.mytheme-wpf-file-modal__topic {
  position: absolute;
  top: 1.15rem;
  left: 1.25rem;
  color: #666666 !important;
  font-size: 0.8125rem; /* text-footnote 13 */
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none !important;
}

.mytheme-wpf-file-modal__topic[hidden] {
  display: none !important;
}

.mytheme-wpf-file-modal__topic:hover,
.mytheme-wpf-file-modal__topic:focus-visible {
  color: #222222 !important;
}

.mytheme-wpf-file-modal__topic:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.mytheme-wpf-file-modal__head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  margin: 0 2rem 1.25rem;
}

.mytheme-wpf-file-modal__title {
  margin: 0;
  color: #222222;
  font-size: 0.9375rem; /* text-subhead 15 */
  font-weight: 500;
  line-height: 1.4;
}

.mytheme-wpf-file-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.875rem;
}

.mytheme-wpf-file-modal__icon svg {
  width: 56px;
  height: 56px;
}

.mytheme-wpf-file-modal__name {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #f5f5f5;
  color: #222222;
  font-size: 0.9375rem; /* text-subhead 15 */
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}

.mytheme-wpf-file-modal__meta {
  margin: 0 0 1.25rem;
  color: #999999;
  font-size: 0.8125rem; /* text-footnote 13 */
  font-weight: 400;
  line-height: 1.45;
}

.mytheme-wpf-file-modal__dot {
  margin: 0 0.35rem;
}

.mytheme-wpf-file-modal__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #ffffff;
  color: #222222 !important;
  font-size: 0.9375rem; /* text-subhead 15 */
  font-weight: 500;
  text-decoration: none !important;
  box-sizing: border-box;
}

.mytheme-wpf-file-modal__dl:hover {
  border-color: #111111;
}

.mytheme-wpf-file-modal__dl:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

body.mytheme-wpf-file-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .mytheme-wpf-file-modal__dl {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mytheme-wpf-file-modal__dl,
  .mytheme-wpf-file-modal__close {
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  }
}
