:root{
  --green:#50b550;
  --text:#1a1a1a;
  --bg:#ffffff;
  --icon:#07c160;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:var(--bg);
}

.app{
  max-width:430px;
  margin:0 auto;
  min-height:100vh;
  height:100vh;
  background:var(--bg);
  display:flex;
  flex-direction:column;
}

.hero{
  position:relative;
  background:linear-gradient(180deg, #50b550 0%, #3db34a 100%);
  padding:0 16px;
  padding-top:calc(env(safe-area-inset-top) + 8px);
  padding-bottom:3vh;
  overflow:hidden;
  flex-shrink:0;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='2'%3E%3Cpath d='M120 365h280c18 0 32 14 32 32v105H110V390c0-14 12-25 26-25z'/%3E%3Cpath d='M140 332h238c12 0 22 10 22 22v18H124v-18c0-12 10-22 22-22z'/%3E%3Cpath d='M175 300h170c10 0 18 8 18 18v18H157v-18c0-10 8-18 18-18z'/%3E%3Ccircle cx='342' cy='430' r='22'/%3E%3Cpath d='M332 430h20'/%3E%3Cpath d='M345 417v26'/%3E%3Cpath d='M505 350h230c16 0 29 13 29 29v128H500V370c0-11 9-20 20-20z'/%3E%3Cpath d='M525 324h190c11 0 20 9 20 20v16H505v-16c0-11 9-20 20-20z'/%3E%3Cpath d='M545 298h140c9 0 16 7 16 16v16H529v-16c0-9 7-16 16-16z'/%3E%3Ccircle cx='695' cy='432' r='20'/%3E%3Cpath d='M690 432h10'/%3E%3Cpath d='M695 427v10'/%3E%3Cpath d='M600 470h120'/%3E%3Cpath d='M620 490h80'/%3E%3Cpath d='M86 452h52'/%3E%3Cpath d='M84 480h70'/%3E%3Cpath d='M780 448h60'/%3E%3Cpath d='M770 476h78'/%3E%3Cpath d='M265 414h70'/%3E%3Cpath d='M585 412h70'/%3E%3Cpath d='M445 520h20'/%3E%3Cpath d='M430 545h50'/%3E%3Cpath d='M402 540c10-18 34-18 44 0'/%3E%3Cpath d='M452 540c10-18 34-18 44 0'/%3E%3Cpath d='M320 520h18'/%3E%3Cpath d='M312 545h34'/%3E%3Cpath d='M305 542c8-14 24-14 32 0'/%3E%3Cpath d='M348 542c8-14 24-14 32 0'/%3E%3Cpath d='M740 520h18'/%3E%3Cpath d='M732 545h34'/%3E%3Cpath d='M725 542c8-14 24-14 32 0'/%3E%3Cpath d='M768 542c8-14 24-14 32 0'/%3E%3C/g%3E%3C/svg%3E") center 75% / 115% auto no-repeat;
  opacity:1;
  pointer-events:none;
}

.hero::after{
  display:none;
}

.nav{
  position:relative;
  z-index:2;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}

.nav__icon{
  width:44px;
  height:44px;
  border:0;
  padding:0;
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:absolute;
  left:0;
}

.nav__icon svg{width:20px;height:20px;stroke-width:2.5}

.nav__title{
  font-weight:400;
  font-size:17px;
  letter-spacing:0.3px;
}

.nav__right{
  display:flex;
  align-items:center;
  position:absolute;
  right:0;
}

.nav__group{
  display:flex;
  align-items:center;
  background:rgba(0,0,0,.18);
  border-radius:16px;
  padding:3px;
  gap:3px;
}

.nav__btn{
  border:0;
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:5px 10px;
  height:26px;
}

.nav__btn--circle{
  width:26px;
  height:26px;
  padding:0;
  border-radius:50%;
}

.nav__dots{
  width:22px;
  height:5px;
  background:transparent;
  position:relative;
  display:flex;
  align-items:center;
}
.nav__dots::before,
.nav__dots::after{
  content:"";
  position:absolute;
  width:3.5px;
  height:3.5px;
  border-radius:50%;
  background:#fff;
}
.nav__dots::before{
  left:0;
  top:50%;
  transform:translateY(-50%);
}
.nav__dots::after{
  right:0;
  top:50%;
  transform:translateY(-50%);
}

.nav__dots span{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:5px;
  height:5px;
  border-radius:50%;
  background:#fff;
}

.nav__dot{
  width:16px;
  height:16px;
  border-radius:50%;
  background:transparent;
  border:2px solid #fff;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nav__dot::before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#fff;
}

.summary{
  position:relative;
  z-index:2;
  padding:24px 0 0;
  text-align:center;
  color:#fff;
}

.summary__merchant{
  font-size:24px;
  font-weight:400;
  letter-spacing:0.5px;
  margin-bottom:4px;
}

.summary__chev{
  font-weight:400;
  opacity:1;
  margin-left:2px;
}

.summary__label{
  margin-top:20px;
  font-size:15px;
  color:rgba(255,255,255,.85);
  font-weight:400;
}

.summary__amount{
  margin-top:12px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
}

.summary__currency{
  font-size:36px;
  line-height:1;
  font-weight:400;
}
.summary__value{
  font-size:52px;
  line-height:1;
  font-weight:600;
  letter-spacing:-0.5px;
}

.stats{
  margin:28px auto 0;
  width:calc(100% - 32px);
  max-width:380px;
  height:75px;
  border-radius:8px;
  background:transparent;
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  align-items:center;
  padding-bottom:16px;
}

.stats__item{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.stats__name{
  font-size:13px;
  color:rgba(255,255,255,.75);
  font-weight:400;
}
.stats__val{
  font-size:24px;
  font-weight:500;
}
.stats__divider{
  width:1px;
  height:32px;
  background:rgba(255,255,255,.20);
  justify-self:center;
}

.content{
  background:var(--bg);
  padding-top:8px;
  flex:1;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}

.row{
  height:50px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  margin-bottom:10px;
}

.row__left{
  display:flex;
  align-items:center;
  gap:8px;
}

.row__icon{
  width:20px;
  height:20px;
  color:#c0c0c0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.row__icon svg{
  width:20px;
  height:20px;
  stroke-width:2;
}

.row__text{
  font-size:15px;
  color:#333;
}
.row__chev{
  color:#c8c8c8;
  font-size:20px;
  font-weight:400;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px 10px;
  row-gap:2vh;
  background:var(--bg);
  padding:0 10px;
  flex:1;
}

.cell{
  background:#fff;
  height:auto;
  min-height:85px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  color:var(--text);
  border-radius:8px;
  padding:10px 5px;
}

.cell__icon{
  width:28px;
  height:28px;
  color:var(--icon);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cell__icon svg{
  width:28px;
  height:28px;
  stroke-width:1.8;
}
.cell__icon--badge{
  position:relative;
}
.badge{
  position:absolute;
  top:-4px;
  right:-6px;
  background:#ff4d4f;
  color:#fff;
  font-size:10px;
  font-weight:500;
  min-width:16px;
  height:16px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  line-height:1;
}
.cell__label{
  font-size:15px;
  color:#333;
  font-weight:400;
}

.bottom{
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#1a5490;
  font-size:13px;
  background:var(--bg);
  margin-top:auto;
  padding:2vh 0;
  flex-shrink:0;
}

/* 弹窗样式 */
.modal{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
}
.modal.active{
  display:flex;
}
.modal__overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
}
.modal__content{
  position:relative;
  z-index:1;
  background:#fff;
  border-radius:12px;
  width:85%;
  max-width:320px;
  overflow:hidden;
  animation:modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn{
  from{
    opacity:0;
    transform:scale(0.9) translateY(-20px);
  }
  to{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}
.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid #f0f0f0;
}
.modal__title{
  font-size:17px;
  font-weight:500;
  color:#333;
}
.modal__close{
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  color:#999;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.modal__body{
  padding:24px 20px;
}
.modal__input{
  width:100%;
  height:44px;
  border:1px solid #e0e0e0;
  border-radius:8px;
  padding:0 12px;
  font-size:16px;
  color:#333;
  outline:none;
  transition:border-color 0.2s;
}
.modal__input:focus{
  border-color:#50b550;
}
.modal__footer{
  display:flex;
  gap:12px;
  padding:12px 20px 20px;
}
.modal__btn{
  flex:1;
  height:44px;
  border:0;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  transition:all 0.2s;
}
.modal__btn--cancel{
  background:#f5f5f5;
  color:#666;
}
.modal__btn--cancel:active{
  background:#e8e8e8;
}
.modal__btn--confirm{
  background:#50b550;
  color:#fff;
}
.modal__btn--confirm:active{
  background:#45a045;
}
