/* wework 主题补充样式：只保留站内实际需要的部分（滚动、链接、公告弹层） */
html { scroll-behavior: smooth; }

/* 站内链接统一去掉下划线与默认色 */
:where(a.wk-nav) {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
/*:where(a.wk-nav):visited { color: inherit; }*/
:where(a.wk-nav):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 公告弹层 */
.wk-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wk-modal[hidden] { display: none; }
.wk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 11, 0.55);
  backdrop-filter: blur(6px);
}
.wk-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow: hidden;
  border-radius: var(--radius-xl, 28px);
  background: var(--color-bg-card, #fff);
  box-shadow: var(--shadow-xl, 0 24px 60px rgba(27, 26, 23, 0.28));
}
.wk-modal__head {
  flex-shrink: 0;
  padding: 24px 24px 20px;
  background: linear-gradient(180deg, var(--color-bg-elevated, #f7f5f1), var(--color-bg-card, #fff));
  border-bottom: 1px dashed var(--color-divider, #e3ded4);
}
.wk-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 8px;
  font-size: var(--font-base, 15px);
  line-height: 1.8;
  color: var(--color-text-primary, #1b1a17);
}
.wk-modal__body p { margin: 0 0 10px; }
.wk-modal__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 20px 20px;
}
html.modal-open { overflow: hidden; }

/* 表单错误/成功提示条 */
.wk-form-tip {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--color-accent-surface, #fce6df);
  color: var(--color-accent-dark, #ad3613);
}
.wk-form-tip.is-error { display: block; }
.wk-form-tip.is-ok { display: block; background: rgba(31, 157, 97, .12); color: var(--color-success, #1f9d61); }
