:root {
  --bg: #f5f7fb;
  --bg-deep: #eef4ff;
  --card: #ffffff;
  --ink: #111827;
  --text: #1f2937;
  --muted: #667085;
  --muted-light: #98a2b3;
  --purple: #1677ff;
  --purple-dark: #0958d9;
  --purple-soft: #e6f4ff;
  --blue: #4096ff;
  --line: #e5e7eb;
  --input: #f8fafc;
  --danger: #ff4d4f;
  --shadow-card: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 16px 42px rgba(25, 59, 123, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: grid;
  place-items: center;
  background: #e9eef6;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone-shell {
  width: min(430px, 100vw);
  min-height: 932px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 2%, rgba(225, 235, 255, 0.92) 0 160px, transparent 300px),
    linear-gradient(180deg, #f4f3ff 0%, #fbfbff 46%, #f7f6ff 100%);
  box-shadow: 0 28px 80px rgba(35, 38, 68, 0.22);
}

.page-scroll {
  min-height: 932px;
  padding-bottom: 112px;
  overflow: auto;
}

.status-bar {
  height: 58px;
  padding: 18px 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f1117;
  font-size: 15px;
  font-weight: 900;
}

.battery {
  min-width: 43px;
  height: 23px;
  padding: 1px 5px 0;
  border-radius: 8px;
  background: #101217;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.mini-capsule {
  position: absolute;
  top: 70px;
  right: 16px;
  width: 88px;
  height: 36px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(98, 107, 155, 0.12);
}

.mini-capsule::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 44px;
  width: 1px;
  background: rgba(192, 196, 214, 0.7);
}

.dot-menu {
  transform: translateY(-5px);
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.circle-icon {
  width: 25px;
  height: 25px;
  border: 4px solid #111827;
  border-radius: 50%;
}

.page-title {
  position: relative;
  min-height: 104px;
  padding: 35px 108px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(239, 239, 248, 0.85);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.back-button {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #111827;
  font-size: 40px;
  line-height: 1;
}

.home-head {
  padding: 34px 16px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #7fa2ff 0 15%, transparent 16%),
    radial-gradient(circle at 50% 73%, #7fa2ff 0 29%, transparent 30%),
    #ffffff;
  box-shadow: 0 7px 22px rgba(117, 119, 170, 0.18);
}

.home-head h1 {
  margin: 0;
  color: #20232e;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.hero {
  height: 148px;
  margin: 0 16px 13px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #e6edff;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 48px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 8px 50%, #8c8e99 0 4px, transparent 5px),
    radial-gradient(circle at 24px 50%, #090a0f 0 4px, transparent 5px),
    radial-gradient(circle at 40px 50%, #b9bcc7 0 4px, transparent 5px);
}

.home-card {
  width: calc(100% - 32px);
  min-height: 92px;
  margin: 13px 16px;
  padding: 0 16px 0 24px;
  display: grid;
  grid-template-columns: 58px 1fr 40px;
  align-items: center;
  gap: 9px;
  border-radius: 21px;
  border: 1px solid rgba(212, 207, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 248, 255, 0.88));
  box-shadow: 0 10px 24px rgba(111, 101, 184, 0.07);
  text-align: left;
}

.home-card-icon {
  width: 46px;
  height: 46px;
  position: relative;
  display: block;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaffff, #efe7ff);
  box-shadow: inset 0 -8px 16px rgba(133, 111, 255, 0.08);
}

.home-card-icon::before,
.home-card-icon::after {
  content: "";
  position: absolute;
}

.icon-write::before {
  width: 28px;
  height: 22px;
  left: 9px;
  top: 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #5aa8ff, #7c5cff);
}

.icon-write::after {
  width: 19px;
  height: 5px;
  left: 15px;
  top: 22px;
  border-radius: 999px;
  background: #ffd65f;
  transform: rotate(-9deg);
}

.icon-read::before {
  width: 32px;
  height: 24px;
  left: 8px;
  top: 13px;
  border-radius: 4px 12px 12px 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 46%, rgba(255, 255, 255, 0.35) 47% 52%, rgba(124, 92, 255, 0.2) 53%),
    linear-gradient(135deg, #86d9ff, #7c5cff);
  transform: rotate(-8deg);
}

.icon-read::after {
  width: 23px;
  height: 7px;
  left: 12px;
  top: 33px;
  border-radius: 999px;
  background: rgba(112, 92, 219, 0.16);
}

.icon-evaluate::before {
  width: 30px;
  height: 29px;
  left: 8px;
  top: 12px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 45%, #ffffff 46% 55%, transparent 56%),
    linear-gradient(135deg, #d7efff, #eadfff);
  border: 1px solid rgba(152, 141, 235, 0.2);
}

.icon-evaluate::after {
  width: 27px;
  height: 5px;
  left: 11px;
  top: 21px;
  border-radius: 999px;
  background: #7c5cff;
  transform: rotate(-35deg);
  box-shadow: 6px -5px 0 #ffe070;
}

.home-card h2 {
  margin: 0 0 4px;
  color: #222530;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.3;
}

.arrow-bubble {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0ebff;
  color: var(--purple);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 34px rgba(83, 80, 132, 0.1);
}

.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #9ea3af;
  font-size: 15px;
  font-weight: 800;
}

.tabbar .active {
  color: var(--purple);
}

.tab-icon {
  width: 23px;
  height: 23px;
  position: relative;
  display: block;
}

.home-tab {
  border-radius: 7px;
  background: linear-gradient(135deg, #8d73ff, #5ba8ff);
}

.home-tab::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 11px;
  height: 7px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.mine-tab::before,
.mine-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid currentColor;
}

.mine-tab::before {
  top: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mine-tab::after {
  bottom: 0;
  width: 21px;
  height: 12px;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.select-bar {
  width: calc(100% - 36px);
  min-height: 46px;
  margin: 30px 18px 28px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  color: #5e6470;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
}

.select-bar span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-bar span:last-child {
  flex: 0 0 auto;
  color: #626978;
}

.menu-list {
  padding: 2px 18px;
  display: grid;
  gap: 15px;
}

.menu-row {
  height: 76px;
  padding: 0 19px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(111, 101, 184, 0.055);
  text-align: left;
}

.menu-label {
  position: relative;
  z-index: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.mark-word {
  position: relative;
  color: var(--purple);
}

.mark-word::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -10px;
  bottom: -17px;
  z-index: -1;
  height: 36px;
  border-radius: 50%;
  background: rgba(190, 149, 255, 0.22);
}

.menu-arrow {
  color: var(--purple);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.detail-body {
  min-height: 700px;
  padding: 28px 18px 48px;
  background: var(--bg);
  border-top: 1px solid #efeff9;
}

.section-card {
  margin-bottom: 17px;
  padding: 20px 18px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(95, 88, 157, 0.045);
}

.section-head {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12141c;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.section-head .section-title {
  min-width: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
}

.section-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #8b6cff);
  font-size: 13px;
  line-height: 1;
}

.add-mini {
  height: 31px;
  padding: 0 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #55a7ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.content-box {
  min-height: 54px;
  padding: 14px 14px;
  border-radius: 3px;
  background: var(--input);
  color: #646a77;
  font-size: 18px;
  line-height: 1.85;
}

.deed-list {
  display: grid;
  gap: 12px;
}

.indicator-deeds {
  margin-top: 12px;
}

.deed-item {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #f0eef8;
  background: #fbfaff;
}

.deed-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deed-item h3 {
  margin: 0;
  color: #222631;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.deed-time {
  margin-top: 5px;
  color: #9aa0ac;
  font-size: 12px;
  line-height: 1.35;
}

.deed-desc {
  margin: 11px 0 0;
  color: #626977;
  font-size: 15px;
  line-height: 1.65;
}

.mini-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.mini-actions button {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0ecff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.thumb-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.thumb-grid img,
.image-picker-grid img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  background: #ececf5;
}

.empty-box {
  padding: 18px;
  border-radius: 12px;
  background: #fbfaff;
  color: #969ba8;
  text-align: center;
  font-size: 16px;
}

.signature {
  margin: 13px 0 0 14px;
  color: #111;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 58px;
  line-height: 1;
  transform: rotate(-7deg);
  transform-origin: left center;
}

.eval-time {
  margin: 34px 0 0 0;
  color: #9297a3;
  font-size: 17px;
  line-height: 1.4;
}

.edit-page {
  padding: 28px 18px 44px;
  background: var(--bg);
}

.form-card {
  padding: 18px 18px 22px;
  display: grid;
  gap: 20px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(95, 88, 157, 0.045);
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: #171923;
  font-size: 17px;
  font-weight: 900;
}

.field b {
  color: var(--danger);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e8e7f1;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #242733;
  padding: 12px 13px;
  font-size: 16px;
}

.field input {
  height: 45px;
}

.field textarea {
  min-height: 146px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b2b6c2;
}

.counter {
  justify-self: end;
  margin-top: -4px;
  color: #a0a5b1;
  font-size: 13px;
}

.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.remove-image {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(22, 25, 39, 0.76);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.album-button {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed #c9c7d8;
  border-radius: 8px;
  background: #fbfbff;
  color: #7d8392;
  font-size: 32px;
  font-weight: 300;
}

.helper-text {
  color: #8f95a4;
  font-size: 14px;
  line-height: 1.45;
}

.bottom-submit {
  position: sticky;
  bottom: 16px;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff 0%, #5aa8ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(111, 101, 234, 0.24);
}

.readonly-note {
  padding: 12px;
  border-radius: 12px;
  background: #f2f0fb;
  color: #7b8190;
  font-size: 14px;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(17, 24, 39, 0.28);
}

.sheet {
  width: min(430px, 100vw);
  max-height: 72vh;
  padding: 10px 18px 22px;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -20px 52px rgba(31, 35, 64, 0.18);
}

.sheet.compact {
  text-align: center;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d8dae5;
}

.sheet h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.task-options {
  display: grid;
  gap: 10px;
}

.task-option {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f7ff;
  color: #4b5563;
  text-align: left;
}

.task-option.active {
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}

.sheet-cancel,
.danger-row {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 14px;
  background: #f6f6fb;
  color: #4b5563;
  font-weight: 900;
}

.danger-row {
  background: #fff0f0;
  color: var(--danger);
}

.album-picker {
  width: min(430px, 100vw);
  height: 79vh;
  max-height: 79vh;
  padding: 0 14px 20px;
  overflow: auto;
}

.album-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 58px;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  background: #fff;
}

.album-toolbar h2 {
  margin: 0;
  color: #151922;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
}

.album-toolbar button {
  height: 36px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b606d;
  font-weight: 900;
}

.album-toolbar button:last-child {
  background: var(--purple);
  color: #fff;
}

.album-subtitle {
  padding: 6px 2px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 14px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.album-photo {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #edf0f7;
}

.album-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.album-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

.album-photo.selected::after {
  background: rgba(0, 0, 0, 0.18);
}

.album-photo:disabled {
  opacity: 0.45;
}

.album-check {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.album-photo.selected .album-check {
  border-color: var(--purple);
  background: var(--purple);
}

.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(360px, 88vw);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 25, 39, 0.9);
  color: #fff;
  font-size: 14px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 70px 18px 38px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
}

.viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.viewer-stage {
  position: relative;
  width: min(360px, calc(100vw - 62px));
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.viewer-stage img {
  width: 100%;
  aspect-ratio: 1;
  max-height: min(62vh, 520px);
  display: block;
  object-fit: contain;
  border-radius: 31px;
  background: linear-gradient(135deg, #9277ff 0%, #5aa8ff 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.viewer-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.viewer-prev {
  left: 0;
}

.viewer-next {
  right: 0;
}

.viewer-footer {
  min-height: 54px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.viewer-counter {
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.viewer-dots {
  min-height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.viewer-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.viewer-dot.active {
  width: 22px;
  background: #fff;
}

/* Miniapp visual polish */
body {
  background:
    linear-gradient(90deg, #e6edf7 0, #f7f9fc 18%, #f7f9fc 82%, #e6edf7 100%);
}

.phone-shell {
  background:
    radial-gradient(circle at 78% 0%, rgba(220, 233, 255, 0.9) 0 132px, transparent 276px),
    linear-gradient(180deg, #eff5ff 0%, #f7f9fc 30%, #f5f7fb 100%);
  box-shadow: 0 24px 72px rgba(22, 36, 70, 0.18);
}

.status-bar {
  height: 54px;
  padding: 15px 32px 0;
  color: #0f172a;
  font-size: 25px;
}

.mini-capsule {
  top: 62px;
  right: 16px;
  width: 84px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(218, 226, 239, 0.82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.mini-capsule::after {
  top: 7px;
  bottom: 7px;
  left: 42px;
  background: #e5e7eb;
}

.dot-menu {
  color: #0f172a;
}

.circle-icon {
  width: 24px;
  height: 24px;
  border-color: #0f172a;
}

.page-title {
  min-height: 96px;
  padding: 31px 96px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72));
  border-bottom: 1px solid #e8edf5;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.back-button {
  left: 18px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  color: #0f172a;
  font-size: 36px;
}

.home-head {
  padding: 30px 18px 12px;
  gap: 13px;
}

.home-avatar {
  width: 58px;
  height: 58px;
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.1);
}

.home-head h1 {
  color: #101828;
  font-size: 24px;
}

.hero {
  height: 136px;
  margin: 0 16px 14px;
  border: 1px solid rgba(219, 230, 250, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero::after {
  bottom: 10px;
  background:
    radial-gradient(circle at 8px 50%, #667085 0 4px, transparent 5px),
    radial-gradient(circle at 24px 50%, #0f172a 0 4px, transparent 5px),
    radial-gradient(circle at 40px 50%, #cbd5e1 0 4px, transparent 5px);
}

.home-card {
  min-height: 88px;
  margin: 11px 16px;
  padding: 0 16px 0 22px;
  grid-template-columns: 54px 1fr 38px;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.home-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7ff, #f5f0ff);
}

.home-card h2 {
  margin-bottom: 3px;
  color: #101828;
  font-size: 22px;
}

.home-card p {
  color: #667085;
  font-size: 16px;
}

.arrow-bubble {
  width: 34px;
  height: 34px;
  background: #eef4ff;
  color: var(--purple);
  font-size: 30px;
}

.tabbar {
  height: 84px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.08);
}

.tabbar button {
  color: #98a2b3;
  font-size: 14px;
}

.tabbar .active {
  color: var(--purple);
}

.home-tab {
  background: linear-gradient(135deg, var(--purple), #69b1ff);
}

.select-bar {
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 22px 18px 20px;
  padding: 0 15px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fff;
  color: #475467;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.menu-list {
  padding: 2px 18px 32px;
  gap: 13px;
}

.menu-row {
  height: 72px;
  padding: 0 18px;
  border: 1px solid #edf2fa;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
}

.menu-label {
  font-size: 22px;
}

.mark-word {
  color: var(--purple);
}

.mark-word::before {
  left: -9px;
  right: -7px;
  bottom: -13px;
  height: 28px;
  background: rgba(22, 119, 255, 0.08);
}

.menu-arrow {
  color: var(--purple);
  font-size: 34px;
}

.detail-body {
  min-height: 700px;
  padding: 20px 16px 42px;
  background: var(--bg);
  border-top: 1px solid #e8edf5;
}

.section-card {
  margin-bottom: 14px;
  padding: 18px 16px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.section-head {
  margin-bottom: 13px;
  gap: 10px;
}

.section-title {
  margin-bottom: 13px;
  gap: 8px;
  color: #101828;
  font-size: 20px;
}

.section-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--purple), #69b1ff);
  font-size: 12px;
}

.add-mini {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #40a9ff);
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.2);
  font-size: 12px;
}

.content-box {
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.72;
}

.indicator-deeds {
  margin-top: 12px;
}

.deed-list {
  gap: 10px;
}

.deed-item {
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fff;
}

.deed-item h3 {
  color: #101828;
  font-size: 16px;
}

.deed-time {
  color: #98a2b3;
}

.deed-desc {
  margin-top: 10px;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

.mini-actions button {
  height: 28px;
  padding: 0 10px;
  background: #e6f4ff;
  color: var(--purple);
  font-size: 13px;
}

.thumb-grid,
.image-picker-grid {
  gap: 8px;
}

.thumb-grid img,
.image-picker-grid img {
  border-radius: 8px;
  background: #eef2f7;
}

.empty-box {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed #d6e0ef;
  border-radius: 16px;
  background: #fff;
  color: #98a2b3;
}

.signature {
  margin: 12px 0 0 8px;
  font-size: 54px;
}

.eval-time {
  margin-top: 28px;
  color: #98a2b3;
  font-size: 16px;
}

.edit-page {
  padding: 20px 16px 40px;
  background: var(--bg);
}

.form-card {
  padding: 18px 16px 20px;
  gap: 18px;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.field {
  gap: 8px;
}

.field label {
  color: #101828;
  font-size: 16px;
}

.field input,
.field textarea {
  border-color: #d9e2ef;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.field input {
  height: 48px;
}

.field textarea {
  min-height: 152px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3adbd;
}

.counter {
  margin-top: -3px;
  color: #98a2b3;
  font-size: 12px;
}

.remove-image {
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.album-button {
  border-color: #cfd8e6;
  border-radius: 10px;
  background: #fbfdff;
  color: #667085;
}

.helper-text {
  color: #667085;
  font-size: 13px;
}

.bottom-submit {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), #40a9ff);
  box-shadow: 0 12px 24px rgba(22, 119, 255, 0.22);
  font-size: 16px;
}

.readonly-note {
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  color: #667085;
}

.sheet-mask {
  background: rgba(15, 23, 42, 0.36);
}

.sheet {
  padding: 10px 16px 22px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -22px 52px rgba(15, 23, 42, 0.18);
}

.sheet-handle {
  background: #d0d5dd;
}

.sheet h2 {
  color: #101828;
}

.task-option {
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  color: #475467;
}

.task-option.active {
  border-color: #91caff;
  background: #e6f4ff;
  color: var(--purple);
}

.sheet-cancel {
  background: #f8fafc;
  color: #475467;
}

.album-picker {
  padding: 0 12px 20px;
}

.album-toolbar {
  height: 56px;
}

.album-toolbar h2 {
  color: #101828;
  font-size: 18px;
}

.album-toolbar button:last-child {
  background: var(--purple);
}

.album-grid {
  gap: 4px;
}

.album-photo {
  border-radius: 4px;
  background: #eef2f7;
}

.album-photo.selected .album-check {
  border-color: var(--purple);
  background: var(--purple);
}

.toast {
  top: 78px;
  background: rgba(16, 24, 40, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.image-viewer {
  background: rgba(0, 0, 0, 0.82);
}

.viewer-stage img {
  border-radius: 24px;
  background: linear-gradient(135deg, #69b1ff 0%, #36cfc9 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.viewer-counter {
  background: rgba(255, 255, 255, 0.18);
}

.viewer-dot.active {
  background: #fff;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 430px) {
  .phone-shell {
    width: 100vw;
    min-height: 100vh;
    box-shadow: none;
  }

  .page-scroll {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  body {
    place-items: start;
  }
}
