:root {
  --bg: #f5fbff;
  --text: #213244;
  --muted: #7890a8;
  --blue: #2f8ee8;
  --blue-deep: #1f6da9;
  --line: #edf4fa;
  --surface: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 22px rgba(89, 149, 200, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #eaf4fb;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #f1f9ff 0%, #fbfdff 42%, #ffffff 100%);
  box-shadow: 0 0 36px rgba(42, 92, 130, 0.16);
}

.app {
  min-height: calc(100dvh - 56px - env(safe-area-inset-bottom));
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.page {
  min-height: 100%;
  padding: 12px 14px 20px;
}

.home-page {
  padding-top: 10px;
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(180, 218, 246, 0.72);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 9px;
  color: #358fda;
  font-size: 11px;
  border-radius: 999px;
  background: #e8f6ff;
}

.section {
  margin-top: 14px;
}

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

.section-title {
  color: #24384d;
  font-size: 16px;
  font-weight: 700;
}

.section-link {
  color: #4c9deb;
  font-size: 12px;
}

.hero-swiper {
  height: clamp(206px, 31dvh, 236px);
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 9px 23px rgba(77, 151, 218, 0.14);
}

.hero-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #eff9ff 0%, #dff2ff 100%);
}

.hero-slide::after {
  position: absolute;
  right: -21px;
  top: -24px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(104, 178, 232, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(32, 74, 112, 0.24);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-arrow-left {
  left: 8px;
}

.hero-arrow-right {
  right: 8px;
}

.hero-mask {
  background: transparent;
}

.hero-mask.poster-mask {
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 17px 15px 0;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.82);
}

.hero-title {
  width: 300px;
  margin-top: 9px;
  color: #18324c;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
}

.hero-subtitle {
  margin-top: 9px;
  color: #5f7890;
  font-size: 17px;
  font-weight: 700;
}

.countdown-inside {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.countdown-label {
  color: #1f5f98;
  font-size: 13px;
  font-weight: 750;
}

.countdown-date {
  margin-top: 4px;
  color: #7890a8;
  font-size: 10.5px;
}

.countdown-boxes {
  display: flex;
  gap: 5px;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(182, 221, 247, 0.8);
}

.count-num {
  color: #2388df;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.count-unit {
  margin-top: 2px;
  color: #7b93aa;
  font-size: 9px;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.dots span {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.dots .active {
  background: #ffffff;
}

.action-grid,
.footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.primary-action,
.light-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 75px;
  padding: 0 14px;
  border-radius: 12px;
  text-align: left;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, #55b9ff 0%, #2c8ee8 100%);
}

.light-action {
  color: #216ead;
  background: #edf8ff;
  border: 1px solid rgba(159, 209, 245, 0.8);
}

.action-title {
  font-size: 16px;
  font-weight: 750;
}

.action-desc {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.84;
}

.event-card {
  padding: 9px 11px 4px;
}

.ceremony-pair,
.track-grid,
.identity-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.ceremony-card {
  display: flex;
  flex-direction: column;
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(137, 203, 247, 0.72);
  border-radius: 10px;
  background: linear-gradient(135deg, #eef9ff 0%, #ffffff 100%);
}

.ceremony-label {
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
}

.ceremony-date {
  margin-top: 7px;
  color: #365b78;
  font-size: 12px;
}

.ceremony-time {
  margin-top: 2px;
  color: #2588df;
  font-size: 16px;
  font-weight: 800;
}

.ceremony-place {
  margin-top: 4px;
  color: #8299ad;
  font-size: 11px;
}

.event-row {
  display: grid;
  grid-template-columns: 17px 1fr auto;
  column-gap: 8px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-dot-wrap {
  display: flex;
  justify-content: center;
}

.event-dot,
.check-dot {
  width: 9px;
  height: 9px;
  border: 2.5px solid #d7efff;
  border-radius: 50%;
  background: #45aaf3;
}

.event-main {
  display: flex;
  flex-direction: column;
}

.event-title {
  color: #25394d;
  font-size: 15px;
  font-weight: 750;
}

.event-place {
  margin-top: 4px;
  color: #8299ad;
  font-size: 11.5px;
}

.event-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #4f728f;
  font-size: 12px;
  line-height: 1.5;
}

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

.quick-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: #367fbf;
  font-size: 13px;
  border: 1px solid rgba(172, 216, 247, 0.78);
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.92);
}

.register-head,
.work-head,
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 2px 4px;
}

.work-head,
.admin-head {
  padding: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(236,248,255,0.96));
}

.page-title {
  margin-top: 9px;
  color: #18324c;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.register-page .page-title {
  font-size: 18px;
  line-height: 1.25;
}

.page-desc {
  margin-top: 6px;
  color: #71879d;
  font-size: 13px;
}

.head-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: #72b9ef;
  font-size: 17px;
  font-weight: 800;
  border-radius: 13px;
  background: #e9f7ff;
}

.step-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding: 5px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: #8aa0b4;
  font-size: 12px;
  border-radius: 7px;
}

.step.active {
  color: #2588df;
  font-weight: 700;
  background: #eaf6ff;
}

.track-card {
  display: flex;
  flex-direction: column;
  min-height: 59px;
  padding: 11px;
  border: 1px solid rgba(176, 216, 245, 0.85);
  border-radius: 11px;
  background: rgba(248, 252, 255, 0.96);
}

.track-card.active {
  border-color: #45aaf3;
  background: linear-gradient(135deg, #e8f7ff 0%, #f8fdff 100%);
  box-shadow: 0 6px 15px rgba(65, 158, 231, 0.13);
}

.track-name {
  color: #20364b;
  font-size: 16px;
  font-weight: 800;
}

.track-subtitle {
  margin-top: 5px;
  color: #7890a8;
  font-size: 11.5px;
  line-height: 1.35;
}

.track-card.active .track-name {
  color: #2187df;
}

.track-note {
  margin-top: 9px;
  padding: 12px;
  border: 1px solid rgba(139, 203, 245, 0.76);
  border-radius: 11px;
  background: #f1f9ff;
}

.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #205b8e;
  font-size: 14.5px;
  font-weight: 750;
}

.note-pill {
  padding: 3px 7px;
  color: #2e8ee3;
  font-size: 11px;
  border-radius: 999px;
  background: #ffffff;
}

.note-row {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 6px;
  margin-top: 6px;
  color: #536d84;
  font-size: 12px;
  line-height: 1.55;
}

.note-dot {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: #65b9f3;
}

.identity-tabs {
  padding: 5px;
  border-radius: 10px;
  background: #edf7ff;
}

.identity-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  color: #6f879e;
  font-size: 13.5px;
  border-radius: 8px;
  background: transparent;
}

.identity-tab.active {
  color: #2388df;
  font-weight: 750;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 150, 215, 0.12);
}

.identity-hint,
.notice {
  margin-top: 7px;
  padding: 9px 10px;
  color: #52718c;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 9px;
  background: #f7fbff;
}

.form-card {
  padding: 12px;
}

.field {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.field:last-child {
  border-bottom: 0;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: #50687f;
  font-size: 13px;
}

.required {
  color: #ff7f7f;
}

.field-input,
.field-textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #22364a;
  font-size: 15px;
  background: transparent;
}

.field-input {
  height: 26px;
}

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

.upload-list {
  display: grid;
  gap: 7px;
}

.upload-tile {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(176, 216, 245, 0.85);
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.96);
}

.upload-tile.required-tile {
  border-color: #64baf4;
  background: #f0f9ff;
}

.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-right: 9px;
  color: #45a1e9;
  font-size: 18px;
  border-radius: 9px;
  background: #ffffff;
}

.upload-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.upload-title {
  color: #26394d;
  font-size: 14px;
  font-weight: 700;
}

.upload-desc {
  margin-top: 4px;
  color: #8299ad;
  font-size: 11.5px;
}

.primary-btn,
.secondary-btn,
.plain-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #58b9ff 0%, #2d8de8 100%);
  box-shadow: 0 7px 14px rgba(55, 142, 224, 0.22);
}

.secondary-btn,
.plain-btn {
  color: #2d8de8;
  background: #eaf6ff;
}

.status-pill {
  padding: 5px 9px;
  color: #2d8de8;
  font-size: 12px;
  border-radius: 999px;
  background: #e5f5ff;
}

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

.upload-photo,
.upload-add {
  width: 100%;
  height: 103px;
  border-radius: 10px;
}

.upload-photo {
  object-fit: cover;
  background: #eef7ff;
}

.upload-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5c9bd0;
  font-size: 12px;
  border: 1px dashed #9fd1f5;
  background: #f1f9ff;
}

.plus {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1;
}

.checklist,
.record-list,
.service-list {
  padding: 4px 12px;
}

.check-row,
.record-row,
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  color: #26394d;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.check-row:last-child,
.record-row:last-child,
.service-row:last-child {
  border-bottom: 0;
}

.check-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  column-gap: 8px;
}

.profile {
  display: flex;
  align-items: center;
  padding: 14px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  border-radius: 15px;
  background: linear-gradient(135deg, #7ecfff, #499ce7);
}

.profile-info {
  margin-left: 11px;
}

.name {
  margin-bottom: 5px;
  color: #20364b;
  font-size: 17px;
  font-weight: 750;
}

.status-card {
  margin-top: 12px;
  padding: 17px 15px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #69c4ff 0%, #328fe5 100%);
  box-shadow: 0 9px 23px rgba(50, 143, 229, 0.2);
}

.status-title {
  font-size: 13px;
  opacity: 0.86;
}

.status-main {
  margin-top: 9px;
  font-size: 23px;
  font-weight: 800;
}

.status-desc {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.88;
}

.personal-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 8px;
}

.progress-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8299ad;
  font-size: 11.5px;
}

.progress-node::after {
  position: absolute;
  top: 6.5px;
  left: 60%;
  width: 80%;
  height: 1px;
  background: #dbeaf5;
  content: "";
}

.progress-node:last-child::after {
  display: none;
}

.progress-node.active {
  color: #278ae2;
  font-weight: 700;
}

.dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: #c9deef;
}

.active .dot {
  background: #3fa8f5;
  box-shadow: 0 0 0 4px rgba(63, 168, 245, 0.14);
}

.progress-label {
  font-size: 12.5px;
}

.progress-status {
  margin-top: 4px;
  color: #8fa3b7;
  font-size: 11px;
  font-weight: 400;
}

.record-value {
  color: #3f93dc;
}

.admin-card,
.empty {
  padding: 12px;
  border: 1px solid rgba(176, 216, 245, 0.85);
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.96);
}

.info-hero {
  overflow: hidden;
}

.info-image {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  background: #edf8ff;
}

.info-copy {
  padding: 14px;
}

.info-list {
  padding: 10px 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 8px;
  padding: 9px 0;
  color: #536d84;
  font-size: 13px;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
}

.footer-actions.single {
  grid-template-columns: 1fr;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-card-title {
  color: #20364b;
  font-size: 15px;
  font-weight: 800;
}

.admin-meta {
  margin-top: 6px;
  color: #6f879e;
  font-size: 12px;
  line-height: 1.5;
}

.empty {
  color: #8299ad;
  font-size: 13px;
  text-align: center;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100vw, 430px);
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  border-top: 1px solid #eef4fa;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9caf;
  font-size: 13px;
  background: transparent;
}

.tab.active {
  color: var(--blue);
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 99;
  max-width: min(330px, calc(100vw - 40px));
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(31, 50, 70, 0.86);
  transform: translateX(-50%);
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    min-height: calc(100dvh - 48px);
    border-radius: 24px;
  }
}

@media (max-height: 760px) {
  .page {
    padding-top: 10px;
  }

  .home-page {
    padding-top: 8px;
  }

  .hero-swiper {
    height: 204px;
  }

  .section {
    margin-top: 11px;
  }

  .action-grid,
  .footer-actions {
    margin-top: 10px;
  }

  .primary-action,
  .light-action {
    height: 66px;
  }

  .event-row {
    min-height: 48px;
  }

  .ceremony-card {
    min-height: 76px;
    padding: 9px;
  }
}
