:root {
  --bg: #f7f0e7;
  --paper: #fffaf3;
  --card: #ffffff;
  --text: #2d2926;
  --muted: #84746b;
  --line: #eadfd3;
  --primary: #e85b3f;
  --primary-dark: #c9422d;
  --orange: #f3a53d;
  --green: #8fb86a;
  --teal: #5eaaa8;
  --gold: #d8a642;
  --shadow: 0 18px 45px rgba(91, 62, 38, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

button:active {
  transform: scale(0.97);
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 44px min(6vw, 72px) 20px;
}

.project-header h1 {
  margin: 4px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.header-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.palette {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
}

.palette span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.section {
  padding: 24px min(6vw, 72px) 48px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title span {
  font-size: 24px;
  font-weight: 800;
}

.section-title p,
.muted {
  margin: 0;
  color: var(--muted);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 375px));
  gap: 28px;
  align-items: start;
}

.phone {
  width: 375px;
  height: 812px;
  max-width: 100%;
  overflow: hidden;
  border: 10px solid #211d1b;
  border-radius: 34px;
  background: #211d1b;
  box-shadow: var(--shadow);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.phone.screen-focus,
.phone.state-updated {
  box-shadow: 0 0 0 4px rgba(232, 91, 63, 0.2), var(--shadow);
}

.phone.screen-focus {
  transform: translateY(-4px);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  color: #fff;
  font-size: 12px;
  background: #211d1b;
}

.statusbar span:last-child {
  width: 48px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.screen {
  position: relative;
  height: 760px;
  overflow: hidden;
  padding: 24px 18px 22px;
  background: linear-gradient(180deg, #fff8ef 0%, #f7efe6 100%);
  border-radius: 22px 22px 24px 24px;
}

.screen.with-tab {
  padding-bottom: 84px;
}

.login-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.center {
  text-align: center;
}

.inline-id {
  display: inline-block;
  margin-left: 12px;
  color: #5f5752;
  font-size: 22px;
  font-weight: 800;
  vertical-align: baseline;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(232, 91, 63, 0.28);
}

.logo-image {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 8px;
  background: #fff;
}

.small-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  font-size: 26px;
}

h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin: 18px 0 10px;
  font-size: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.form-card,
.info-card,
.task-card,
.booking-card,
.need-card,
.teacher-card,
.review-card,
.share-card,
.income-card,
.level-card,
.wallet,
.menu-list,
.team-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(86, 52, 26, 0.08);
}

.form-card {
  margin: 28px 0 12px;
  padding: 18px;
}

label {
  display: block;
  margin: 12px 0 8px;
  color: #6f5f56;
  font-size: 13px;
  font-weight: 700;
}

.input,
.textarea,
.search {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #ead8c8;
  border-radius: 8px;
  background: #fff;
  color: #a08e83;
  font-size: 14px;
}

.filled {
  color: var(--text);
}

.textarea {
  min-height: 78px;
  align-items: flex-start;
  padding-top: 12px;
  line-height: 1.45;
}

.input-action {
  justify-content: space-between;
}

.input-action button {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--primary);
  background: #fff0e9;
  font-size: 12px;
}

.primary,
.secondary,
.ghost {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
}

.primary {
  color: #fff;
  background: var(--primary);
}

.secondary {
  color: var(--primary);
  background: #fff0e9;
  border: 1px solid #ffd2c3;
}

.ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.full {
  width: 100%;
  margin-top: 14px;
}

.small {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff0e9;
  font-weight: 700;
}

.bottom-action {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  width: auto;
}

.role-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.role-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.role-card:active {
  transform: scale(0.99);
}

.role-card.active {
  border-color: #f5a28e;
  background: #fff4ec;
}

.role-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.role-icon,
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  font-weight: 800;
}

.review-card {
  margin-top: 34px;
  padding: 28px 20px;
  text-align: center;
}

.review-dot {
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--orange) 0 30%, #fff0cf 32% 100%);
}

.review-card h3 {
  margin: 16px 0 8px;
}

.review-card p,
.task-card p,
.booking-card p,
.need-card p,
.teacher-card p,
.info-card p,
.share-card p,
.level-card p,
.income-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.timeline {
  margin-top: 24px;
}

.timeline div {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.timeline span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #dacabd;
}

.timeline .done span,
.timeline .current span {
  border-color: var(--primary);
  background: var(--primary);
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.top-row,
.between,
.info-card.row,
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-card {
  margin: 20px 0 14px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
}

.hero-card.teacher {
  background: linear-gradient(135deg, #df704e, var(--teal));
}

.hero-card.partner {
  background: linear-gradient(135deg, #d56645, var(--green));
}

.hero-card p,
.hero-card strong {
  display: block;
  margin: 0;
}

.hero-card strong {
  margin-top: 4px;
  font-size: 34px;
}

.hero-card button {
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 800;
}

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

.stats div {
  min-height: 66px;
  padding: 12px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.stats strong,
.stats span {
  display: block;
}

.stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.task-card,
.booking-card,
.need-card,
.info-card {
  padding: 14px;
  margin-bottom: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 14px;
}

.flow-strip.three-step {
  grid-template-columns: repeat(3, 1fr);
}

.flow-strip span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  color: #9c6512;
  background: #fff2d6;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.flow-strip span.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 7px 14px rgba(232, 91, 63, 0.18);
}

.waiting {
  color: #9a640f;
  background: #fff2d6;
}

.success {
  color: #4d7a32;
  background: #ecf6e7;
}

.status.done {
  color: #6d625b;
  background: #f0e8df;
}

.teacher-mini,
.teacher-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.teacher-mini {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.teacher-mini div:nth-child(2) {
  flex: 1;
}

.teacher-mini p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 78px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #dd775a, #f0b45b);
  font-size: 28px;
  font-weight: 900;
}

.photo.gold {
  background: linear-gradient(145deg, #d5a13e, #8fb86a);
}

.photo.large {
  width: 102px;
  height: 118px;
  margin: 0 auto 12px;
  font-size: 40px;
}

.teacher-info {
  flex: 1;
  min-width: 0;
}

.matched-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 18px;
}

.matched-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.certificate-photo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 86px;
  height: 115px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.grade-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #756b65;
  font-weight: 700;
}

.level {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #9c6512;
  background: #fff0ce;
  font-size: 12px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #7e6b60;
  background: #f4ece3;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.chip:active {
  transform: scale(0.96);
}

.chip.on {
  color: var(--primary-dark);
  background: #ffe7dd;
}

.profile-head {
  position: relative;
  text-align: center;
}

.favorite {
  display: grid;
  place-items: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #d78a12;
  background: #fff3d8;
  border: 1px solid #f1d59c;
  font-size: 22px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.favorite.active {
  color: #fff;
  background: #d78a12;
  border-color: #d78a12;
}

.favorite:active {
  transform: scale(0.92);
}

.booking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.small-fav {
  position: static;
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  margin: 16px 0;
  border-radius: 8px;
  background: #eaded1;
}

.segment.four-segment {
  grid-template-columns: repeat(4, 1fr);
}

.segment span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 7px;
  color: #806f65;
  font-size: 13px;
  font-weight: 700;
}

.segment .on {
  color: var(--primary-dark);
  background: #fff;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 64px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.96);
}

.tabbar span {
  display: grid;
  place-items: center;
  color: #87756b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tabbar .on {
  color: var(--primary);
}

.form-list {
  margin-top: 14px;
}

.stepper,
.action-pair {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.stepper button {
  height: 42px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff0e9;
  font-size: 20px;
  font-weight: 800;
}

.stepper strong {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-box {
  display: grid;
  place-items: center;
  height: 128px;
  margin: 16px 0;
  border: 1px dashed #e6ad98;
  border-radius: 8px;
  color: var(--primary);
  background: #fff5ef;
  font-weight: 700;
}

.action-pair {
  grid-template-columns: 1fr 1fr;
}

.action-pair button {
  width: 100%;
}

.level-card,
.income-card,
.wallet {
  padding: 18px;
  margin: 18px 0;
}

.level-card {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.level-card.partner {
  background: linear-gradient(135deg, #d25c42, var(--green));
}

.level-card p {
  color: rgba(255, 255, 255, 0.84);
}

.level-card span,
.level-card strong,
.income-card span,
.income-card strong,
.wallet span,
.wallet strong {
  display: block;
}

.level-card strong,
.income-card strong,
.wallet strong {
  margin-top: 6px;
  font-size: 30px;
}

.rank-row,
.menu-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.rank-row {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank-row.active {
  border-color: #f0b09e;
  background: #fff4ec;
}

.rank-row b,
.menu-list b,
.team-row b {
  color: var(--primary);
  font-size: 13px;
}

.teacher-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 18px 20px;
  margin-top: 12px;
  border-radius: 8px;
  color: #fff;
  background: #f47600;
}

.teacher-profile-card img {
  width: 78px;
  height: 88px;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fff;
}

.teacher-profile-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.8;
}

.profile-logo {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}

.teacher-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: #fff;
}

.teacher-stats div {
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 8px;
  color: #5e5a58;
  background: #e3e3e3;
}

.teacher-stats strong {
  font-size: 15px;
}

.teacher-stats span {
  font-size: 30px;
}

.growth-rule-entry {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 2px;
  color: #e42020;
  background: #fff;
  font-weight: 800;
}

.growth-rule-screen {
  padding: 28px 28px 34px;
  background: #fff7ef;
}

.growth-rule-screen h2 {
  margin-bottom: 22px;
  color: #34302d;
  font-weight: 500;
}

.growth-rule-copy strong,
.growth-rule-copy p,
.growth-rights strong,
.growth-rights p {
  color: #e7222a;
  font-size: 15px;
  line-height: 1.45;
}

.growth-rule-copy strong {
  display: block;
  margin-top: 24px;
}

.growth-rule-copy p,
.growth-rights p {
  margin: 8px 0 0;
  font-weight: 800;
}

.growth-rule-copy span {
  display: block;
  margin-top: 6px;
  color: #68625e;
  font-size: 16px;
  font-weight: 800;
}

.growth-rights {
  margin-top: 46px;
}

.growth-back {
  margin-top: 64px;
  border-radius: 12px;
  background: #ff4e55;
}

.wallet {
  color: #fff;
  background: linear-gradient(135deg, #d86648, #f3a53d);
}

.menu-list {
  overflow: hidden;
}

.share-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px;
  margin: 22px 0 14px;
  text-align: center;
}

.qr {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin-top: 22px;
  border: 8px solid #fff;
  border-radius: 8px;
  color: var(--primary);
  background:
    linear-gradient(90deg, #211d1b 12px, transparent 12px) 0 0 / 28px 28px,
    linear-gradient(#211d1b 12px, transparent 12px) 0 0 / 28px 28px,
    #fff;
  box-shadow: inset 0 0 0 1px #ddd0c4;
  font-weight: 800;
}

.team-row {
  min-height: 70px;
  margin-bottom: 10px;
  padding: 12px;
}

.team-row div {
  flex: 1;
}

.team-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.income-card {
  color: #fff;
  background: linear-gradient(135deg, #da6a4b, #d8a642);
}

.settlement-card {
  padding: 14px;
  border: 1px solid #dfead5;
  border-radius: 8px;
  background: #f2f8ec;
}

.settlement-card span,
.settlement-card strong {
  display: block;
}

.settlement-card span {
  color: #57783f;
  font-size: 12px;
  font-weight: 800;
}

.settlement-card strong {
  margin-top: 5px;
}

.settlement-card p {
  margin: 7px 0 0;
  color: #65765a;
  font-size: 13px;
}

.star-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.star-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #c8b8a9;
  background: #fff6e7;
  font-size: 20px;
}

.star-row button.active {
  color: #fff;
  background: #d78a12;
}

.is-hidden {
  display: none !important;
}

.live-card {
  animation: cardPulse 0.8s ease;
}

@keyframes cardPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(86, 52, 26, 0.08);
  }
  45% {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(232, 91, 63, 0.18);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(86, 52, 26, 0.08);
  }
}

[data-jump],
[data-modal-title],
[data-action] {
  cursor: pointer;
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(45, 41, 38, 0.42);
  z-index: 20;
}

.modal-layer.show {
  display: grid;
}

.modal-card {
  width: min(340px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 24px 60px rgba(45, 41, 38, 0.28);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: min(330px, calc(100vw - 36px));
  padding: 11px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(45, 41, 38, 0.92);
  box-shadow: 0 14px 32px rgba(45, 41, 38, 0.22);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .project-header {
    display: block;
    padding: 28px 18px 12px;
  }

  .palette {
    margin-top: 18px;
  }

  .section {
    padding: 20px 18px 36px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 6px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
