.page-profile-module {
  background: #f8f4ec;
}

.module-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 42px;
  background:
    radial-gradient(circle at 76% 18%, rgba(196, 146, 69, .16), transparent 25%),
    linear-gradient(125deg, #fffaf0 0%, #f5eadb 52%, #eaf2ee 100%);
}

.module-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 50, 43, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 50, 43, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.module-hero .container {
  position: relative;
  z-index: 2;
}

.module-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(248, 229, 223, .92);
  font-weight: 900;
}

.module-title-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
}

.module-title-row h1 {
  margin-bottom: 12px;
  font-size: 48px;
}

.module-title-row p {
  max-width: 780px;
  margin: 0;
  color: #636c65;
  font-size: 17px;
  line-height: 1.9;
}

.module-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.module-nav,
.module-panel,
.module-card {
  border: 1px solid rgba(224, 211, 189, .86);
  border-radius: 18px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 22px 58px rgba(57, 48, 36, .08);
}

.module-nav {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.module-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  color: #5e665f;
  font-weight: 900;
  transition: transform .22s ease, color .22s ease, background .22s ease;
}

.module-nav a:hover,
.module-nav a.active {
  color: var(--red);
  background: #f8e5df;
  transform: translateX(4px);
}

.module-main {
  display: grid;
  gap: 20px;
}

.module-panel {
  padding: 28px;
}

.module-panel h2 {
  margin-bottom: 10px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 32px;
}

.module-panel > p {
  color: var(--muted);
  line-height: 1.85;
}

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

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

.module-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.module-card:hover {
  border-color: rgba(196, 146, 69, .42);
  box-shadow: 0 24px 60px rgba(57, 48, 36, .11);
}

.module-card.is-selected {
  border-color: rgba(200, 59, 50, .5);
  background: #fff6f1;
  box-shadow: 0 24px 60px rgba(200, 59, 50, .12);
}

.module-card:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -42%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  transform: skewX(-18deg);
  transition: left .54s ease;
}

.module-card:hover:after {
  left: 112%;
}

.module-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #f8e5df;
  font-weight: 900;
}

.module-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.75;
}

.module-list {
  display: grid;
  gap: 14px;
}

.module-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf8;
}

.module-row h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

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

.pill {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #f8e5df;
  font-weight: 900;
  white-space: nowrap;
}

.form-like {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.form-like p {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.form-like p:last-child {
  border-bottom: 0;
}

.form-like span {
  color: var(--muted);
}

.form-like b {
  color: var(--ink);
}

.bottom-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.editor-form {
  display: grid;
  gap: 18px;
}

.editor-field {
  display: grid;
  gap: 10px;
}

.editor-field label {
  color: var(--ink);
  font-weight: 900;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.editor-field textarea {
  min-height: 160px;
  resize: vertical;
}

.editor-field input:focus,
.editor-field select:focus,
.editor-field textarea:focus {
  border-color: rgba(200, 59, 50, .45);
  box-shadow: 0 0 0 4px rgba(200, 59, 50, .08);
}

.editor-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.upload-box {
  min-height: 136px;
  border: 1px dashed rgba(138, 50, 43, .28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff8f2;
  font-weight: 900;
  cursor: pointer;
}

.switch-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.tilt-card {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
  transition: transform .18s ease, box-shadow .24s ease, border-color .24s ease;
}

.tilt-card:hover {
  --lift: -5px;
}

@media (max-width: 1060px) {
  .module-layout,
  .module-grid,
  .module-grid.two {
    grid-template-columns: 1fr;
  }

  .module-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .module-title-row {
    display: grid;
  }

  .module-title-row h1 {
    font-size: 38px;
  }

  .module-nav {
    grid-template-columns: 1fr;
  }

  .form-like p,
  .module-row,
  .editor-two {
    grid-template-columns: 1fr;
  }
}
