@charset "UTF-8";

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 字体定义 */
@font-face {
  font-family: "SourceHanSerifCNRegular";
  src: url("https://file-cn.liuzhuapp.com/global/SourceHanSerifCN-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSerifCNBold";
  src: url("https://file-cn.liuzhuapp.com/global/SourceHanSerifCN-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "SourceHanSerifCNRegular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  max-width: 750px;
  margin: 0 auto;
  overflow-x: hidden;
  background: #f5e3c7 url(img/bg-foot.png) center bottom / contain no-repeat;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.color-red{
  color: #B44331;
}
i {
  display: inline-block;
}
.fz-16{
  font-size: 16px !important;
}
.f-weight-bold{
  font-weight: bold;
  font-family: "SourceHanSerifCNBold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
i.icon {
  width: 12px;
  height: 12px;
  background-size: 12px 12px;
}

i.calendar {
  background-image: url("img/icon1.png");
}

i.clock {
  background-image: url("img/icon3.png");
}
i.Chinese-calendar{
  background-image: url("img/icon2.png");
}
i.square{
  background-image: url("img/icon5.png");
}
i.house-type{
  background-image: url("img/icon6.png");
}
i.angle{
  background-image: url("img/icon7.png");
}

.bagua {
  background-image: url("img/icon4.png");
}
.title{
  display: flex;
  align-items: center;
}
.title span{
  font-size: 12px;
  color: #704D27;
  line-height: 14px;
  margin-left: 5px;
}
/* 背景布局 */
.bg-box,
.main,
.box-line,
.box-top,
.box-bottom {
  width: 100%;
  background: center top / contain no-repeat;
}

.bg-box {
  background-image: url(img/bg-head.png);
  height: 100vh;
}

.main {
  padding-top: 44%;
}

.box {
  width: 100%;
  overflow: hidden;
}

.box-top,
.box-bottom {
  width: 100%;
  aspect-ratio: 750 / 80;
  background-size: 100% 100%;
}

.box-top {
  background-image: url(img/box-top.png);
}

.box-bottom {
  background-image: url(img/box-bottom.png);
}

.box-line {
  width: 100%;
  background-image: url(img/box-line.png);
  background-repeat: repeat-y;
  background-size: 100% auto;
  padding: 0 38px;
  margin-top: -8px;
}

/* 表单项 */
.box-item h2 {
  font-size: 14px;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
}

.box-item h2 i {
  width: 12px;
  height: 12px;
  margin-right: 5px;
}

.box-item h2 span {
  font-size: 14px;
  line-height: 14px;
  color: #704d27;
}

.time h2,
.items h2 {
  margin-top: 10px;
}

/* 选项框基础样式 */
.item-bg-box {
  background-color: #eae0d0;
  border-radius: 5px;
  color: #41270e;
  font-size: 14px;
  line-height: 14px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-bg-box.active {
  background-color: #7f4622;
  color: #fff5e4;
}

/* 日期项特殊样式 */
.date .item-bg-box {
  justify-content: space-between;
  padding: 0 18px;
}

.date .item-bg-box i {
  width: 12px;
  height: 12px;
}

.solar-calendar {
  font-size: 14px;
  color: #41270e;
  font-weight:bold
}

.lunar-calendar {
  font-size: 14px;
  color: #704d27;
  font-weight:bold;
  margin-left: 5px;
}

/* 时间/事项网格布局 */
.time .time-box,
.items .time-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 8px;
}

.items .item-bg-box {
  text-align: center;
}

/* 开始按钮 */
.start-button {
  width: 280px;
  height: 50px;
  background-image: url("img/start-btn.png");
  background-size: 280px 50px;
  margin: 5px auto 0;
}
/* 重新起算按钮 */
.reset-button{
  width: 280px;
  height: 50px;
  background-image: url("img/reset-btn.png");
  background-size: 280px 50px;
  margin: 5px auto 0;
}
/*创建立极尺按钮 create-vertical-scale-btn*/
.create-vertical-scale-button{
  width: 280px;
  height: 50px;
  background-image: url("img/create-vertical-scale-btn.png");
  background-size: 280px 50px;
  margin: 5px auto 0;
}
/*生成方案按钮*/
.create-plan-button{
  width: 280px;
  height: 50px;
  background-image: url("img/create-plan-btn.png");
  background-size: 280px 50px;
  margin: 5px auto 0;
}
/* 版权信息 */
.copyright {
  color: #7e6146;
  font-size: 10px;
  text-align: center;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* 日期选择器 */
.date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.date-picker {
  background: #fff5e4;
  border-radius: 10px;
  padding: 15px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.date-picker-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #41270e;
  margin-bottom: 10px;
}

.date-picker-display {
  text-align: center;
  font-size: 14px;
  color: #704d27;
  margin-bottom: 15px;
  padding: 8px;
  background: #eae0d0;
  border-radius: 5px;
}

.date-picker-panel {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.date-picker-panel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 36px;
  transform: translateY(-50%);
  background: rgba(127, 70, 34, 0.1);
  pointer-events: none;
}

.date-picker-col {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.date-picker-col::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.date-picker-item {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #41270e;
  cursor: pointer;
  border-radius: 5px;
  scroll-snap-align: center;
}

.date-picker-item:hover {
  background: #eae0d0;
}

.date-picker-item.active {
  background: #7f4622;
  color: #fff5e4;
}

.date-picker-btn-area {
  display: flex;
  gap: 10px;
}

.date-picker-cancel,
.date-picker-confirm {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.date-picker-cancel {
  background: #eae0d0;
  color: #41270e;
}

.date-picker-cancel:hover {
  background: #d4c9b9;
}

.date-picker-confirm {
  background: #7f4622;
  color: #fff5e4;
}

.date-picker-confirm:hover {
  background: #6a3a1c;
}

/* 响应式 */
@media (max-width: 375px) {
  html {
    font-size: 14px;
  }
}
.loading-overlay{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 28, 17, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.loading-wrapper{
  width: 270px;
  height: 270px;
  background-color: #F9F2E6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.loading-wrapper img{
  height: 200px;
  object-fit: contain;
  margin: 10px auto 0;
}
.loading-wrapper .loading-text{
  font-size: 16px;
  line-height: 18px;
  color: #41270E;
  text-align: center;
  margin-top: 9px;
}
.direction .direction-row{
  display: flex;
  align-items: center;
  justify-content: center;

}
.direction .row-left ,  .row-right{
  width: 130px;
  height: 40px;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.direction .row-center{
  width: 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.direction .row-center .v-line{
  width: 1px;
  height: 100%;
  background:#DEC59B;
  margin-left: 1px;
}
.result .row-center .v-line , .result .row-center , .result .row-left ,  .row-right{
  height: 30px;
}
.direction-row-line{
  display: flex;
  align-items: center;
}
.direction-row-line .row-left ,.direction-row-line .row-right{
  height: 1px;
  width: 130px;
  background: #DEC59B;
}
.direction-row-line .row-center{
  height: 24px;
}
.direction .result-title{
  width: 158px;
  height: 26px;
  background-image: url("img/divination-result.png");
  background-size: 158px 26px;
  margin: 0 auto  20px;
}
.upload-wrapper{
  margin-bottom: 13px;
  margin-top: 5px;
}
.upload-box{
  width: 100%;
  height: 150px;
  background: #EAE0D0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-box .plus{
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("img/icon8.png");
  background-size: 24px 24px;
}
.upload-box .upload-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.input-box{
  width: 100%;
  height: 32px;
  background: #EAE0D0;
  border-radius: 5px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}
.input-box input{
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  box-sizing: border-box;
  padding: 0 10px;
  flex: 1;
}
.input-box .angle-btn{
  width: 60px;
  height: 32px;
  background: #7F4622;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 32px;
}
.input-box input::-webkit-outer-spin-button,
.input-box input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.input-box input[type=number]{
  -moz-appearance: textfield;
}

.step-two .solar-calendar ,
.step-two .lunar-calendar,
.step-two .divination-time ,
.step-two .divination-subject {
  color: #41270E ;
}
.step-two .direction .row-left div:nth-child(1) , .step-two .direction .row-right div:nth-child(1){
  display: flex;
  align-items: center;
}
.step-two .direction .row-left div:nth-child(1) span , .step-two .direction .row-right div:nth-child(1) span{
  color: #704D27;
  font-size: 12px;
  margin-left: 5px;
}
