/* ========================================
   TOAST 官方页面样式
   公众号风格 - ins 简约黑白
   ======================================== */

/* ---- 全屏容器 ---- */
.toast-official-screen {
  position: absolute;
  inset: 0;
  z-index: 600;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}

.toast-official-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ---- 顶部导航栏 ---- */
.toast-official-nav {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
  gap: 10px;
}

.toast-official-nav__back {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}

.toast-official-nav__back:active {
  background: rgba(0,0,0,.06);
}

.toast-official-nav__back svg {
  width: 20px;
  height: 20px;
}

.toast-official-nav__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.toast-official-nav__badge {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: #1a1a1a;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .5px;
}

/* ---- 可滚动内容区 ---- */
.toast-official-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}

/* ---- 头部封面区 ---- */
.toast-official-header {
  background: #fff;
  padding: 32px 20px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.toast-official-header__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,0,0,.08);
}

.toast-official-header__avatar svg {
  width: 40px;
  height: 40px;
}

.toast-official-header__name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.toast-official-header__desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 20px;
}

/* 统计数据 */
.toast-official-header__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 14px 8px;
}

.toast-official-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.toast-official-stat__num {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.toast-official-stat__label {
  font-size: 11px;
  color: #999;
}

.toast-official-stat__divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,.08);
}

/* ---- Tab 切换栏 ---- */
.toast-official-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.toast-official-tabs__item {
  flex: 1;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}

.toast-official-tabs__item.is-active {
  color: #1a1a1a;
  font-weight: 600;
}

.toast-official-tabs__item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
}

/* ---- Tab 内容区 ---- */
.toast-official-tab-content {
  padding: 16px;
}

.toast-official-tab-content.is-hidden {
  display: none;
}

/* ---- 更新概览列表 ---- */
.toast-official-updates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 单条更新卡片 */
.toast-official-update-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.05);
}

.toast-official-update-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.toast-official-update-card__version {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 6px;
}

.toast-official-update-card__date {
  font-size: 12px;
  color: #aaa;
}

.toast-official-update-card__tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.toast-official-update-card__tag--new {
  background: #e8f5e9;
  color: #2e7d32;
}

.toast-official-update-card__tag--fix {
  background: #fff3e0;
  color: #e65100;
}

.toast-official-update-card__tag--improve {
  background: #e3f2fd;
  color: #1565c0;
}

.toast-official-update-card__body {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.toast-official-update-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toast-official-update-card__body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.toast-official-update-card__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
}

.toast-official-update-card__body li.is-new::before {
  background: #4caf50;
}

.toast-official-update-card__body li.is-fix::before {
  background: #ff9800;
}

.toast-official-update-card__body li.is-improve::before {
  background: #2196f3;
}

/* ---- Bug 提交表单 ---- */
.toast-official-bug-form {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  border: 1px solid rgba(0,0,0,.05);
  margin-bottom: 20px;
}

.toast-official-bug-form__icon {
  text-align: center;
  margin-bottom: 16px;
}

.toast-official-bug-form__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  text-align: center;
}

.toast-official-bug-form__desc {
  font-size: 12px;
  color: #999;
  margin: 0 0 16px;
  text-align: center;
}

.toast-official-form-group {
  margin-bottom: 16px;
}

.toast-official-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.toast-official-form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  background: #fafafa;
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}

.toast-official-form-input:focus {
  border-color: #1a1a1a;
  background: #fff;
}

.toast-official-form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  background: #fafafa;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}

.toast-official-form-textarea:focus {
  border-color: #1a1a1a;
  background: #fff;
}

.toast-official-form-counter {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* 问题类型标签 */
.toast-official-form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toast-official-tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.1);
  background: #f8f8f8;
  color: #666;
  cursor: pointer;
  transition: all .2s;
}

.toast-official-tag.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.toast-official-tag:active {
  transform: scale(.95);
}

/* 提交按钮 */
.toast-official-form-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: 4px;
}

.toast-official-form-submit:active {
  opacity: .8;
  transform: scale(.98);
}

.toast-official-form-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ---- Bug 反馈历史 ---- */
.toast-official-bug-history__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.toast-official-bug-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-official-bug-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.05);
}

.toast-official-bug-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.toast-official-bug-item__title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-official-bug-item__status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.toast-official-bug-item__status--pending {
  background: #fff8e1;
  color: #f9a825;
}

.toast-official-bug-item__status--processing {
  background: #e3f2fd;
  color: #1565c0;
}

.toast-official-bug-item__status--resolved {
  background: #e8f5e9;
  color: #2e7d32;
}

.toast-official-bug-item__desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-official-bug-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #bbb;
}

/* 空状态 */
.toast-official-empty {
  text-align: center;
  padding: 40px 20px;
  color: #ccc;
}

.toast-official-empty__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: .4;
}

.toast-official-empty__text {
  font-size: 13px;
  color: #bbb;
}

/* ---- 提交成功动画 ---- */
.toast-official-success-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

.toast-official-success-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
