@font-face {
  font-family: 'Mabry Pro';
  src: url('../fonts/mabry-regular-pro.7dc10a79.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

html { background: var(--color-bg, #fff); font-size: calc(100vw / 14.4); }
@media (min-width: 1440px) {
  html { font-size: 100px; }
}
body { font-family: 'Mabry Pro', -apple-system, sans-serif; margin: 0; background: var(--color-bg, #fff); color: var(--color-text, #000); }
#app { margin: 0 auto; width: 100%; max-width: 14.4rem; min-height: 100vh; position: relative; }

/* Responsive show/hide */
.show-pc { display: block; }
.show-mobile { display: none !important; }
@media (max-width: 768px) {
  .show-pc { display: none !important; }
  .show-mobile { display: block !important; }
  #app { max-width: 100%; padding-bottom: 1.2rem; background: #f5f5f5; }
  html { font-size: calc(100vw / 3.75) !important; }
  body { background: #f5f5f5; }
}

/* Nav links — fallback when scoped attrs present */
.nav_pc .nav_item { text-decoration: none; color: var(--color-text-muted, rgba(0,0,0,.5)); }
.nav_pc .nav_item.active, .nav_pc .nav_item:hover { color: var(--color-text, #000) !important; }
.nav_item { text-decoration: none; }
.logo { text-decoration: none; color: var(--color-text, #000); }
.actions_content .action { text-decoration: none; color: var(--color-text, #000); cursor: pointer; }

/* Mobile tab bar — PC 端绝不显示 */
.mobile-tab-bar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 768px) {
  .mobile-tab-bar {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 1rem; background: var(--color-bg-dark, #1f1f1f);
    border-top: none;
    border-radius: .24rem .24rem 0 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (min-width: 769px) {
  .mobile-tab-bar,
  .nav_mobile_top.show-mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}
.mobile-tab-bar .tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-decoration: none; color: var(--color-text-muted, rgba(0,0,0,.5)); font-size: .1rem;
}
.mobile-tab-bar .tab-item img { width: .22rem; height: .22rem; margin-bottom: .04rem; filter: brightness(0) invert(1); opacity: .45; }
.mobile-tab-bar .tab-item.active img { opacity: 1; }
.mobile-tab-bar .tab-item { color: rgba(255,255,255,.45); }
.mobile-tab-bar .tab-item.active { color: #fff; font-weight: 500; }

/* Form styles */
.form-group { margin-top: .22rem; }
.form-group label {
  display: block; font-size: .14rem; color: var(--color-text-muted, rgba(0,0,0,.5)); margin-bottom: .08rem;
}
.form-input {
  width: 100%; height: .68rem; box-sizing: border-box;
  border: .02rem solid var(--color-border-input, rgba(0,0,0,.2)); border-radius: var(--radius-lg, .2rem);
  padding: 0 .28rem; font-size: .18rem; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--color-text, #000); }
.form-input::placeholder { color: var(--color-text-muted, rgba(0,0,0,.5)); }
.input-wrap { position: relative; }
.input-wrap .toggle-pwd {
  position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  cursor: pointer; width: .24rem; height: .24rem;
}
.btn-primary {
  width: 100%; height: .64rem; border: none; border-radius: .2rem;
  background: var(--gradient-cta, linear-gradient(180deg, #ffdc61, #ffbc49));
  font-weight: 700; font-size: .2rem; color: var(--color-text, #000);
  cursor: pointer; font-family: inherit;
}
.btn-primary:hover { opacity: .9; }
.btn-black {
  width: 100%; height: .64rem; border: none; border-radius: .2rem;
  background: var(--color-text, #000); font-weight: 700; font-size: .2rem; color: var(--color-text-inverse, #fff);
  cursor: pointer; font-family: inherit;
}
.btn-outline {
  height: .42rem; padding: 0 .24rem; border: .01rem solid var(--color-text, #000);
  border-radius: var(--radius-pill, .24rem); background: var(--color-bg, #fff); font-size: .16rem;
  cursor: pointer; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--color-text, #000);
}

/* Pass (login/register) page */
.pass-page { padding-top: .75rem; min-height: 80vh; }
.pass-page .pass_container { display: flex; justify-content: center; max-width: 12rem; margin: 0 auto; }
.pass-page .pass_left { width: 5rem; }
.pass-page .pass_left.mobile-full { width: 100%; padding: 0 .24rem; box-sizing: border-box; }
.pass-page .wel_title { font-weight: 700; font-size: .38rem; color: #000; margin-bottom: .44rem; }
.pass-page .pass_right { margin-left: .8rem; width: 4.64rem; text-align: center; }
.pass-page .pass_right img { max-width: 100%; height: auto; }
.pass-page .pass_right .intro_content .title { font-weight: 700; font-size: .3rem; margin: .28rem auto 0; max-width: 3.27rem; }
.pass-page .pass_right .intro_content .content { margin-top: .22rem; color: rgba(0,0,0,.5); font-size: .18rem; }
.pass-page .type_content { font-size: .18rem; color: rgba(0,0,0,.5); margin-top: .36rem; text-align: center; }
.pass-page .type_content a { color: #000; text-decoration: none; font-weight: 500; }
.pass-page .tips_content { text-align: center; font-size: .14rem; color: rgba(0,0,0,.5); margin-top: .5rem; padding-bottom: .4rem; }

@media (max-width: 768px) {
  .pass-page { padding-top: .5rem; }
  .pass-page .pass_container { flex-direction: column; padding: 0 .24rem; }
  .pass-page .pass_right { display: none; }
  .pass-page .wel_title { font-size: .28rem; margin-bottom: .3rem; }
}

/* Home phone mockups fallback */
.home-header-imgs .imgs-left img,
.home-header-imgs .imgs-right img { width: 100%; height: auto; }
.home-header[data-v-5f8a2430] { position: relative; }
.home-header-imgs[data-v-5f8a2430] { position: relative; }
.home-header[data-v-5f8a2430]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background: url('../img/noise.4d21caf6.png') repeat;
}
.home-header-imgs .phone-mockup-left { width: 2.74rem; position: absolute; left: -.3rem; top: 2.6rem; z-index: -1; filter: drop-shadow(-.15rem 1.04rem .4rem rgba(0,0,0,.08)); }
.home-header-imgs .phone-mockup-right { width: 3.32rem; position: absolute; right: 0; top: 0; z-index: -1; filter: drop-shadow(-.15rem 1.04rem .4rem rgba(0,0,0,.08)); }

/* Market list */
.market-tabs { display: flex; gap: .2rem; padding: .2rem .6rem; }
.market-tabs .tab { padding: .08rem .2rem; border-radius: var(--radius-pill, .2rem); cursor: pointer; font-size: .16rem; color: var(--color-text-muted, rgba(0,0,0,.5)); border: none; background: none; font-family: inherit; }
.market-tabs .tab.active { background: var(--color-bg-dark, #333); color: var(--color-text-inverse, #fff); }

/* Account page - legacy fallback */
.account-page { padding: 1rem .6rem; max-width: 8rem; margin: 0 auto; }

/* Alert/Toast */
.toast { position: fixed; top: .2rem; left: 50%; transform: translateX(-50%); background: var(--color-bg-dark, #333); color: var(--color-text-inverse, #fff); padding: .12rem .24rem; border-radius: var(--radius-sm, .08rem); font-size: .14rem; z-index: 9999; display: none; }
.toast.show { display: block; }

/* Sign popup */
.popup-sign { z-index: 9999; position: fixed; background: var(--color-bg-overlay, rgba(0,0,0,.3)); top: 0; left: 0; width: 100%; height: 100%; display: none; justify-content: center; align-items: center; }
.popup-sign.show { display: flex; }
.sign-content { width: 6rem; padding: .28rem; background: var(--color-bg-dark, #333); border-radius: .15rem; box-shadow: 0 .02rem .48rem rgba(0,0,0,.04); }
.sign-content .title { text-align: center; font-size: .24rem; font-weight: 600; color: var(--color-text-inverse, #fff); }
.sign-content .sign-box { margin-top: .24rem; }
.sign-content .top { border-bottom: .01rem solid hsla(0,0%,72%,.1); padding-bottom: .11rem; }
.sign-content .top .account { color: #fff; font-size: .18rem; }
.sign-content .top .address { margin-top: .1rem; font-size: .16rem; color: hsla(0,0%,100%,.7); word-break: break-all; }
.sign-content .btn-area { display: flex; gap: .12rem; margin-top: .38rem; }
.sign-content .btn { flex: 1; height: .48rem; border-radius: .13rem; text-align: center; line-height: .48rem; font-weight: 600; font-size: .16rem; cursor: pointer; border: none; font-family: inherit; }
.sign-content .btn.confirm { background: var(--color-bg, #fff); color: var(--color-text, #000); }
.sign-content .btn.cancel { background: var(--color-bg-dark, #333); border: .01rem solid rgba(134,131,164,.5); color: var(--color-text-inverse, #fff); }

@media (max-width: 768px) {
  .sign-content { width: calc(100% - .48rem); box-sizing: border-box; }
  .account-page { padding: .9rem .24rem 1.5rem; }
  .market-tabs { padding: .2rem .24rem; overflow-x: auto; }
}

/* Language picker */
.lang-panel { min-width: 4.8rem; }
.lang-options { display: flex; gap: .24rem; }
.lang-options .section_option { flex: 1; }
.lang-options .item_name { cursor: pointer; display: block; padding: .08rem .16rem; border-radius: .08rem; font-size: .16rem; color: rgba(0,0,0,.7); transition: background .2s, color .2s; }
.lang-options .item_name:hover { background: rgba(0,0,0,.05); }
.lang-options .item_name.active { background: var(--color-bg-dark, #333); color: var(--color-text-inverse, #fff); }

.mobile-lang-btn {
  border: none; background: rgba(0,0,0,.06); border-radius: .16rem;
  padding: 0 .12rem; height: .32rem; font-size: .12rem; margin-right: .08rem;
  font-family: inherit; cursor: pointer; color: rgba(0,0,0,.7);
}
.lang-overlay { position: fixed; inset: 0; z-index: 10000; }
.lang-overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.lang-overlay-panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: .16rem .16rem 0 0; padding: .24rem; max-height: 70vh; overflow-y: auto;
  padding-bottom: calc(.24rem + env(safe-area-inset-bottom));
}
.lang-overlay-header { display: flex; justify-content: space-between; align-items: center; font-size: .18rem; font-weight: 600; margin-bottom: .2rem; }
.lang-overlay-close { border: none; background: none; font-size: .28rem; line-height: 1; cursor: pointer; padding: 0 .08rem; }
.lang-overlay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem; }
.lang-overlay-item {
  border: none; background: rgba(0,0,0,.04); border-radius: .08rem; padding: .12rem .08rem;
  font-size: .14rem; text-align: center; cursor: pointer; font-family: inherit; color: #000;
}
.lang-overlay-item.active { background: var(--color-bg-dark, #333); color: var(--color-text-inverse, #fff); }
