@import url("https://fontsapi.zeoseven.com/741/main/result.css");

:root {
  --blue: #00adee;
  --blue-2: #077fb0;
  --green: #06c755;
  --red: #f23e3d;
  --ink: #303030;
  --soft-ink: #3f4a50;
  --muted: #6f777c;
  --line: #d7e0e5;
  --paper: #ffffff;
  --wash: #f5f8fa;
  --mist: #eaf7fb;
  --shadow: 0 12px 34px rgb(39 69 82 / 12%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "LINE Seed TW", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background:
    linear-gradient(180deg, rgb(226 247 255 / 88%) 0%, rgb(246 250 252) 42%, rgb(244 247 249) 100%);
  background-attachment: fixed;
  padding: 116px 0 96px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topArea {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 22px;
  border-bottom: 1px solid rgb(0 173 238 / 14%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 30px rgb(0 70 105 / 8%);
  backdrop-filter: blur(14px);
}

.headerFull,
.headerLeft,
.headerRight,
.formRow,
.actionRow,
.cardHead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.headerRight {
  flex: 1;
  justify-content: flex-end;
  gap: 8px;
}

.mycardLogo {
  width: 76px;
  max-width: 76px;
}

.wrap {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
}

.panel {
  margin-top: 18px;
}

.funcCard,
.post {
  border: 1px solid rgb(48 48 48 / 12%);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.funcCard {
  overflow: hidden;
  padding: 0;
}

.post {
  position: relative;
  padding: 18px;
  margin-top: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--blue);
  border-radius: 10px 0 0 10px;
  content: "";
}

.post:hover {
  transform: translateY(-1px);
  border-color: rgb(0 173 238 / 35%);
  box-shadow: 0 16px 38px rgb(39 69 82 / 16%);
}

.funcCard > .title,
.funcCard > .cardHead {
  padding: 22px 22px 0;
}

.funcCard > hr {
  margin: 14px 22px 0;
}

.funcCard > .formRow,
.funcCard > .fieldBlock,
.funcCard > .label,
.funcCard > .uploader,
.funcCard > .actionRow,
.funcCard > .err,
.funcCard > .ok {
  margin-left: 22px;
  margin-right: 22px;
}

.funcCard > .formRow {
  margin-top: 18px;
}

.funcCard > .actionRow {
  margin-bottom: 22px;
}

.funcCard > .list {
  padding: 8px 22px 22px;
}

.title {
  margin: 0;
  color: var(--soft-ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.cardHead {
  justify-content: space-between;
}

.cardHeadRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.field {
  flex: 1;
  min-width: 230px;
}

.fieldBlock {
  display: block;
  width: calc(100% - 44px);
}

.label {
  margin: 8px 0 6px;
  font-size: 13px;
  font-weight: 900;
}

.ctrl,
.ctrlSelect,
.topCtrl,
.topCtrlSelect,
.topBtn,
.topBtnLite,
.btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgb(0 173 238 / 45%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.ctrl:focus,
.ctrlSelect:focus,
.topCtrl:focus,
.topCtrlSelect:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(0 173 238 / 14%);
  outline: none;
}

.ctrl,
textarea {
  width: 100%;
}

textarea.ctrl {
  min-height: 150px;
  resize: vertical;
}

.ctrlSelect {
  width: 100%;
}

.topCtrl {
  width: 190px;
}

.topCtrlSelect {
  width: 148px;
}

.topBtn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(0 173 238 / 22%);
}

.topBtn:hover,
.btn:hover,
.topBtnLite:hover {
  background: #fff;
  color: var(--blue);
}

.topBtn.active {
  border-color: var(--green);
  background: rgb(6 199 85 / 10%);
  color: #09833c;
  box-shadow: none;
}

.topBtnLite {
  cursor: pointer;
  font-weight: 900;
  color: var(--blue-2);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.uploader {
  border: 1px dashed rgb(0 173 238 / 48%);
  border-radius: 8px;
  padding: 14px;
  background: var(--mist);
}

.note,
.lastRead,
.metaText,
.nameStat {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.err,
.ok {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
}

.err {
  color: var(--red);
}

.ok {
  color: var(--blue);
}

.thumbs,
.imgs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumbItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumbs img,
.imgs img,
.driveThumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--wash);
}

.driveThumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgb(0 173 238 / 38%);
  background: var(--mist);
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.postMeta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-left: 6px;
}

.postIdentity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.personName {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 900;
}

.unitPill,
.typePill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.unitPill {
  background: rgb(0 173 238 / 10%);
  color: var(--blue-2);
}

.typePill {
  background: rgb(48 48 48 / 7%);
  color: var(--soft-ink);
}

.postInfoLine {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.postTime {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.badgeTag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.badge-open {
  background: var(--red);
}

.badge-answered {
  background: var(--green);
}

.answerTitle {
  margin-top: 14px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
}

.questionGroup,
.answer {
  display: flex;
  flex-direction: column;
}

.questionGroup {
  align-items: flex-start;
}

.answer {
  align-items: flex-end;
}

.questionBox,
.answer .body {
  width: min(95%, 1040px);
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--wash);
  white-space: pre-wrap;
  line-height: 1.6;
}

.answer .body {
  border: 1px solid rgb(6 199 85 / 20%);
  background: rgb(6 199 85 / 7%);
}

.answer .answerTitle {
  width: min(95%, 1040px);
  text-align: right;
}

.richTextLink {
  color: var(--blue-2);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgb(0 173 238 / 32%);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.richTextLink:hover {
  color: #09833c;
  text-decoration-color: rgb(6 199 85 / 45%);
}

.askPanel {
  margin-bottom: 18px;
}

.inlineAskGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 22px 0;
}

.inlineAskQuestion {
  margin: 10px 22px 0;
}

.inlineAskQuestion textarea {
  display: block;
}

.inlineAskActions {
  margin: 14px 22px 22px;
  justify-content: flex-end;
}

.inlineAskActions .err,
.inlineAskActions .ok {
  order: -1;
  flex: 1;
}

.floatingFilters {
  position: fixed;
  z-index: 18;
  top: 96px;
  right: 18px;
  display: grid;
  width: 190px;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgb(0 173 238 / 18%);
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.floatingFiltersTitle {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
}

.floatingFilters .topCtrl,
.floatingFilters .topCtrlSelect,
.floatingFilters .topBtnLite {
  width: 100%;
}

.topFloatBtn {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 18;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(6 199 85 / 35%);
  border-radius: 999px;
  background: rgb(6 199 85 / 92%);
  color: #fff;
  box-shadow: 0 12px 28px rgb(6 199 85 / 25%);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.topFloatBtn:hover {
  background: #fff;
  color: #09833c;
}

.bottomArea {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgb(255 255 255 / 86%);
  border-top: 1px solid rgb(0 173 238 / 14%);
  backdrop-filter: blur(10px);
  text-align: center;
}

.bottomArea span {
  font-size: 12px;
}

@media (max-width: 900px) {
  body {
    padding-top: 198px;
  }

  .headerRight,
  .headerLeft {
    width: 100%;
    justify-content: flex-start;
  }

  .topCtrl,
  .topCtrlSelect {
    width: calc(50% - 5px);
  }

  .rowMeta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postMeta {
    flex-direction: column;
  }

  .postTime {
    justify-content: flex-start;
  }

  .inlineAskGrid {
    grid-template-columns: 1fr;
  }

  .floatingFilters {
    position: static;
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floatingFiltersTitle,
  .floatingFilters .topBtnLite {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 228px;
  }

  .topCtrl,
  .topCtrlSelect,
  .topBtnLite {
    width: 100%;
  }

  .title {
    font-size: 22px;
  }
}
