* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #FFF9F1;
  color: #3A3330;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input {
  font: inherit;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 18px 56px;
  min-height: 100vh;
}

h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 10px 0 6px;
}

h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 6px;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 8px;
}

p {
  margin: 6px 0;
}

.muted {
  color: #8A7F76;
  font-size: 14px;
}

.card {
  background: #fff;
  border: 1px solid #EADFD0;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 12px 0;
}

.test-card {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.test-card:active {
  background: #FFF4E8;
}

.price {
  color: #C9825A;
  font-weight: 700;
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  background: #C9825A;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn.ghost {
  background: transparent;
  color: #C9825A;
  border: 1.5px solid #C9825A;
}

.btn.link {
  background: none;
  color: #8A7F76;
  font-weight: 400;
  font-size: 15px;
  padding: 8px;
}

.btn.inline {
  width: auto;
  margin: 0;
  padding: 4px 0;
}

.btn:disabled {
  opacity: .45;
  cursor: default;
}

input.code {
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  margin-top: 10px;
  border: 1.5px solid #EADFD0;
  border-radius: 12px;
  letter-spacing: 1px;
  background: #FFFDF9;
}

input.code:focus {
  outline: none;
  border-color: #C9825A;
}

ul.list {
  padding-left: 20px;
  margin: 6px 0;
}

ul.list li {
  margin: 4px 0;
}

/* 答题 */
.qhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #8A7F76;
}

.progress {
  height: 6px;
  background: #F0E6D8;
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 18px;
}

.progress>i {
  display: block;
  height: 100%;
  background: #C9825A;
  transition: width .25s;
}

.qtitle {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  margin: 4px 0 6px;
}

.opts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1.5px solid #EADFD0;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.opt.on {
  border-color: #C9825A;
  background: #FFF1E4;
}

.opt .sub {
  display: block;
  font-size: 13px;
  color: #8A7F76;
}

/* 识别题的材质色块：只画地板、家具、墙面的颜色和纹理，不出现任何风格的房间 */
.sw {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
}

.sw-tile-light {
  background-color: #EFE7D8;
  background-image: linear-gradient(#D6CBB9 2px, transparent 2px), linear-gradient(90deg, #D6CBB9 2px, transparent 2px);
  background-size: 28px 28px;
}

.sw-tile-grey {
  background-color: #C9CDD1;
  background-image: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .55) 0 5px, transparent 7px), linear-gradient(#ABB0B5 2px, transparent 2px), linear-gradient(90deg, #ABB0B5 2px, transparent 2px);
  background-size: 56px 56px, 28px 28px, 28px 28px;
}

.sw-wood-light {
  background: repeating-linear-gradient(90deg, #DDBF95 0 13px, #CBA97C 13px 15px);
}

.sw-wood-dark {
  background: repeating-linear-gradient(90deg, #7A3B27 0 13px, #5A2819 13px 15px);
}

.sw-f-white {
  background: #F4F0E8;
}

.sw-f-lightwood {
  background: linear-gradient(135deg, #DDBB90, #C99E70);
}

.sw-f-orangewood {
  background: linear-gradient(135deg, #C46A2E, #94461F);
}

.sw-f-dark {
  background: linear-gradient(135deg, #4A4A4E, #2B2B2E);
}

.sw-f-color {
  background: linear-gradient(90deg, #EDA8B9 0 33%, #B9A2D8 33% 66%, #9EC2E6 66%);
}

.sw-w-white {
  background: #FBFAF6;
}

.sw-w-color {
  background: linear-gradient(90deg, #8FAE8F 0 25%, #EDB9AE 25% 50%, #E9A25F 50% 75%, #9DB9D9 75%);
}

.sw-w-stain {
  background-color: #EEE3C8;
  background-image: radial-gradient(circle at 25% 30%, rgba(150, 120, 70, .35) 0 7px, transparent 9px), radial-gradient(circle at 70% 65%, rgba(150, 120, 70, .3) 0 10px, transparent 12px), radial-gradient(circle at 62% 20%, rgba(120, 110, 90, .25) 0 4px, transparent 6px);
}

.sw-c-pink {
  background: linear-gradient(90deg, #F0A6BA 50%, #B488D8 50%);
}

.sw-c-green {
  background: #7FA16C;
}

.sw-c-warm {
  background: linear-gradient(90deg, #E2793A 0 33%, #C8402F 33% 66%, #E9C24B 66%);
}

.sw-c-blue {
  background: #6FA1D9;
}

.sw-c-none {
  background: linear-gradient(90deg, #FFFFFF 0 25%, #D9D9D9 25% 50%, #E9DDC9 50% 75%, #A47E5B 75%);
}

/* 结果页 */
.hero {
  border-radius: 22px;
  padding: 22px 20px 20px;
  margin: 8px 0 12px;
  border: 1px solid rgba(0, 0, 0, .05);
}

.hero .room {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(58, 51, 48, .08);
}

.hero .kicker {
  font-size: 14px;
  color: #6F655D;
}

.hero .persona {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 8px;
}

.hero .pill {
  display: inline-block;
  font-size: 15px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.hero .line {
  margin-top: 12px;
  font-size: 16px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #3A3330;
  color: #FFF3E6;
  margin: 0 6px 8px 0;
}

.axis {
  margin: 12px 0;
}

.axis .lab {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.axis .lab .win {
  font-weight: 700;
}

.axis .bar {
  height: 10px;
  border-radius: 5px;
  background: #F0E6D8;
  overflow: hidden;
  margin-top: 4px;
}

.axis .bar>i {
  display: block;
  height: 100%;
  background: #C9825A;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  flex: 1 1 0;
  text-align: center;
  font-size: 12px;
  color: #8A7F76;
  line-height: 1.4;
}

.swatch i {
  display: block;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  margin-bottom: 4px;
}

.kw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #EADFD0;
}

.kw:last-of-type {
  border-bottom: 0;
}

.kw small {
  display: block;
  color: #8A7F76;
  font-size: 13px;
}

.copy {
  flex: 0 0 auto;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #C9825A;
  color: #C9825A;
  background: #fff;
  cursor: pointer;
}

.cta {
  background: #3A3330;
  color: #FFF3E6;
  border-color: #3A3330;
}

.cta .muted {
  color: #D9CABB;
}

/* 分享图弹层与提示 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 20, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}

.modal[hidden] {
  display: none;
}

.modal .sheet {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  max-width: 420px;
  width: 100%;
  max-height: 94vh;
  overflow: auto;
  text-align: center;
}

.modal img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  max-width: 86vw;
  background: rgba(58, 51, 48, .92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 20;
}

.toast[hidden] {
  display: none;
}

/* 分享弹层里的配文 */
.modal .caption {
  text-align: left;
  background: #FFF9F1;
  border: 1px dashed #EADFD0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 14px;
}

.modal .caption .btn {
  margin-top: 8px;
  font-size: 15px;
  padding: 10px 12px;
}