/* ==================================================
   作者區文字、入口與底部資訊
   ================================================== */

/* 作者資料靠左 */
.editor-profile,
.editor-profile__content {
  text-align: left;
}

.editor-profile__content h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  text-align: left;
}

.editor-profile__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}

/* 信箱與社群 */
.editor-profile__contact {
  justify-content: flex-start;
  text-align: left;
}

.editor-profile__contact i,
.editor-profile__contact a i {
  color: #fff;
}

/* ==================================================
   右側主要入口
   ================================================== */

.editor-actions {
  text-align: left;
}

.editor-actions > a {
  justify-items: start;
  text-align: left;
}

.editor-actions > a > span:nth-child(2) {
  align-items: flex-start;
  text-align: left;
}

.editor-actions strong,
.editor-actions small {
  width: 100%;
  text-align: left;
}

/* 圖示與箭頭全部白色 */
.editor-actions__icon,
.editor-actions__icon i,
.editor-actions__arrow {
  color: #fff;
}

.editor-actions__icon {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.13);
}

/* 入口標題 */
.editor-actions strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* 入口說明 */
.editor-actions small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

/* ==================================================
   底部資訊
   ================================================== */

.editor-panel__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

/* 更新日誌、服務條款 */
.editor-policy-links {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
}

.editor-policy-links a {
  position: relative;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.editor-policy-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.editor-policy-links a:hover {
  color: #fff;
}

.editor-policy-links a:hover::after {
  transform: scaleX(1);
}

/* 訪問人數與版權 */
.editor-panel__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* 強制取消訪問人數原本的黑色膠囊 */
.editor-panel__meta #visitor-count {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  transform: none;
}

.editor-panel__meta #visitor-count:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* 鍵盤操作 */
.editor-panel a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

/* ==================================================
   平板
   ================================================== */

@media (max-width: 760px) {
  .editor-panel {
    width: min(calc(100% - 24px), 860px);
    margin-top: 34px;
    margin-bottom: 98px;
  }

  .editor-panel__main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .editor-actions {
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

/* ==================================================
   手機
   ================================================== */

@media (max-width: 520px) {
  .editor-panel {
    border-radius: 19px;
  }

  .editor-panel__main {
    padding: 21px 17px;
  }

  .editor-profile {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
  }

  .editor-profile__avatar {
    width: 64px;
    height: 64px;
  }

  .editor-profile__content h2 {
    font-size: 21px;
  }

  .editor-profile__content p {
    font-size: 12px;
    line-height: 1.7;
  }

  .editor-profile__contact {
    grid-column: 1 / -1;
  }

  .editor-profile__contact a:first-child {
    flex: 1 1 auto;
  }

  .editor-actions > a {
    min-height: 54px;
  }

  .editor-actions strong {
    font-size: 13px;
  }

  .editor-actions small {
    font-size: 10px;
  }

  .editor-panel__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 15px 17px;
  }

  .editor-policy-links {
    justify-content: flex-start;
  }

  .editor-policy-links a {
    font-size: 13px;
  }

  .editor-panel__meta {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
  }

  .editor-panel__meta #visitor-count {
    font-size: 12px;
  }
}

/* ==================================================
   減少動態
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  .editor-panel *,
  .editor-panel *::before,
  .editor-panel *::after {
    transition: none !important;
  }
}