/* Behavioural layers only; the localized prototype stylesheet owns the visual design. */
html[data-yd-rack=true] #portal-root{opacity:1!important;font-size:14px;overflow-y:auto;overflow-x:hidden}
html[data-yd-rack=true] #portal-root>.portal-loading{padding:40px 20px;color:#ddd;text-align:center}
.portal-toast{position:fixed;z-index:9999;left:50%;top:45%;transform:translate(-50%,-50%);padding:13px 20px;max-width:85vw;border-radius:7px;background:rgba(0,0,0,.86);color:white;font-size:14px;text-align:center;line-height:1.6}
.portal-overlay{position:fixed;inset:0;z-index:9998;background:#0009;display:flex;align-items:center;justify-content:center;font-size:14px}
.portal-dialog{width:85%;max-width:380px;padding:20px;background:linear-gradient(#efefeb,#c4c7c6);color:#171b1d;border:3px solid #353b3d;box-shadow:0 8px 30px #0008;border-radius:5px}
.portal-dialog h3{font-size:18px;margin:0 0 16px}.portal-dialog input,.portal-dialog select{width:100%;padding:12px;margin:8px 0;border:1px solid #999;background:white;color:#222;border-radius:3px;font-size:15px}
.portal-dialog button,.portal-action{padding:10px 16px;border:1px solid #873607;background:#ef792d;color:#15191a;border-radius:4px;font-size:14px;cursor:pointer}
.portal-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:15px}.portal-dialog .cancel{background:#c7cccd;border-color:#7e878b}
.portal-panel{margin:12px;padding:18px;background:linear-gradient(#e9eae5,#c7cac7);color:#161b1d;border:2px solid #394044;border-radius:3px;line-height:1.7;font-size:14px}
.portal-panel h2{font-size:18px;margin-bottom:18px}.portal-panel input,.portal-panel textarea,.portal-panel select{display:block;width:100%;padding:12px;margin:12px 0;border:1px solid #777;background:#f6f7f4;color:#181c1e;font-size:14px;border-radius:4px}
.portal-panel label{display:block;margin-top:12px}.portal-record{padding:14px 0;border-bottom:1px solid #999}.portal-record strong{display:block}.portal-record small{color:#525b60}
.portal-empty{padding:25px;text-align:center;color:#899196;font-size:14px}.portal-generic{min-height:calc(100vh - 70px);padding-bottom:84px}
.portal-generic .van-nav-bar{position:sticky;top:0;z-index:10}.portal-tabs-pane{display:block!important;transform:none!important}.portal-tabs-pane[hidden]{display:none!important}
.portal-link{cursor:pointer}.portal-busy{opacity:.6;pointer-events:none}button:disabled{opacity:.6}
.index-home-banner-swiper .swiper-wrapper{transition:transform .35s}.index-home-banner-swiper .swiper-slide{flex-shrink:0}.index-home-banner-pagination button{border:0;padding:0}
.portal-record-status{float:right;color:#9a4a1f}.portal-back{cursor:pointer}.portal-private{font-size:13px;color:#5b6264}.portal-bank{padding:14px;margin:10px 0;background:#d9dedc;border:1px solid #707b7f}
.portal-field-error{color:#a52b16;font-size:12px}body[data-yd-route=compute-power] #portal-root{height:auto;min-height:100vh}
@media(max-width:360px){.portal-panel{margin:8px;padding:12px}}
.portal-product-rule{padding:14px;line-height:1.9;font-size:14px;white-space:normal}.portal-product-rule p{margin-bottom:12px}.portal-rule-heading{padding:15px;font-weight:bold}.portal-rule-flow{display:flex;justify-content:space-around;text-align:center;padding:15px;line-height:1.8}.portal-service-frame{display:block;width:100%;height:calc(100vh - 130px);border:0}

/* News list: neutralize captured inline colors and duplicate fixed-header spacing. */
body[data-yd-page="news"] .home_tit_top{background:#171d20!important}
body[data-yd-page="news"] .van-tabs{margin-top:8px!important;border-top:0!important}
body[data-yd-page="news"] .van-tabs__wrap{position:relative!important;top:auto!important;left:auto!important;right:auto!important;transform:none!important;z-index:auto!important;border-top:0!important;padding-top:0!important;background:#101618!important;width:100%!important;height:44px!important}
body[data-yd-page="news"] .level_con_item{padding-top:0!important;margin:0 12px!important;border-radius:0!important}
body[data-yd-page="news"] .level_con_item>div{padding:12px 0!important;border-bottom:1px solid #60686b!important}
body[data-yd-page="news"] .line-clamp2{color:#f1f2ee!important;font-size:14px!important;line-height:22px!important;height:auto!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
body[data-yd-page="news"] .line-clamp2+div:empty{display:none!important}
body[data-yd-page="news"] .level_con_item>div:not(:first-child) img{width:clamp(96px,28vw,126px)!important;height:78px!important;object-fit:cover;flex-shrink:0}
body[data-yd-page="news"] .level_con_item>div:first-child img{width:100%!important;height:auto!important;display:block}
body[data-yd-page="news"] .level_con_item>div>div>div{min-width:0}

.portal-version-notch{position:fixed;z-index:20000;top:0;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);padding:8px 18px;padding-top:max(8px,env(safe-area-inset-top));border:1px solid #687074;border-top:0;border-radius:0 0 16px 16px;background:#101315;color:#fff;font:13px/20px system-ui;white-space:nowrap;box-shadow:0 3px 14px #0008;cursor:pointer}

/* Four primary destinations and undecorated account menu panels. */
html[data-yd-rack="true"] #footer{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-yd-rack="true"] #footer .item{width:100%!important;flex:1 1 0!important}
html[data-yd-rack="true"] body[data-yd-route="user"] .user_con_mid::after{content:none!important;display:none!important}

/* Keep the final home help row above the fixed navigation. */
html[data-yd-rack="true"] body[data-yd-route="home"] .index{padding-bottom:calc(var(--yd-footer-height) + env(safe-area-inset-bottom) + 16px)!important}

/* Plain-text identity and the supplied company profile. */
.portal-brand-name{display:block;color:#f4f4ed;font-size:28px;font-weight:700;line-height:1.4;letter-spacing:3px;text-align:center}
html[data-yd-rack="true"] .index-top-logo{display:flex!important;align-items:center;justify-content:center}
html[data-yd-rack="true"] body[data-yd-route="home"] .portal-company-card{height:auto!important;min-height:0!important}
html[data-yd-rack="true"] body[data-yd-route="home"] .portal-company-intro{white-space:pre-line!important;height:auto!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;display:block!important}
.portal-company-detail{margin:12px 0;line-height:1.85;font-size:14px;color:#161b1d;overflow-wrap:anywhere}

/* Frontend typography: bright gold on dark surfaces, deep gold on silver. */
html[data-yd-rack="true"] body {
  --portal-gold-bright:#D4AF37;
  --portal-gold-deep:#8A6500;
  --portal-text-gold:var(--portal-gold-bright);
}
html[data-yd-rack="true"] body :is(
  .index-intro-card,.index-intro-adv-cell,.index-news-card,.user_con_mid,
  .register_block,.portal-panel,.portal-dialog,.portal-bank,
  .productSort_block,.detacon_con,.detacon_quxian,.interest_card,.card_item,
  .signIn_btn,.signIn_list .item,.business_con_pic,.business_con_txt,.jiangli_con_cnt,
  .tixian_block,.rlbaddbox,.promoterHeader,.promoter-list>.list .item,
  .yd-tp-stat,.yd-tp-progress-card,.yd-tp-loading,.yd-tp-error,
  .yd-cp-silver,.yd-cp-plate,.yd-cp-order,.yd-cp-no-order,.yd-cp-empty,.yd-cp-log li,
  .van-dialog,.van-popup,.van-picker,.van-action-sheet,.van-calendar,
  .portal-dialog input,.portal-dialog select,.portal-panel input,.portal-panel textarea,
  .portal-panel select,option
){--portal-text-gold:var(--portal-gold-deep)}
html[data-yd-rack="true"] body[data-yd-page="bank"] .level_con {
  --portal-text-gold:var(--portal-gold-deep);
}
html[data-yd-rack="true"] body :is(
  #footer,.index-top-logo,.portal-brand-name,.home_msg,.user-header,.user-balance-bar,
  .user_con_mid .cell,.cell-item,.van-nav-bar,.jiangli_top,
  .portal-toast,.van-toast,.portal-version-notch,.portal-loading,.portal-service-frame,
  .yd-cp-bottom,.yd-cp-header,.yd-cp-toast,.index-intro-tag,.register_block_list,.van-field
){--portal-text-gold:var(--portal-gold-bright)}
html[data-yd-rack="true"] body .portal-action,
html[data-yd-rack="true"] body .register_submit,
html[data-yd-rack="true"] body .portal-dialog button {
  --portal-text-gold:var(--portal-gold-deep);
}
/* ID specificity overrides the captured stylesheet without recoloring image/SVG icons. */
html[data-yd-rack="true"] body :is(#portal-root,.portal-overlay,.portal-toast,.portal-version-notch,.van-popup,.van-dialog,.van-toast,.van-notify),
html[data-yd-rack="true"] body :is(#portal-root,.portal-overlay,.portal-toast,.portal-version-notch,.van-popup,.van-dialog,.van-toast,.van-notify) :not(svg):not(svg *):not(img):not(.iconfont):not(.van-icon) {
  color:var(--portal-text-gold)!important;
  -webkit-text-fill-color:var(--portal-text-gold)!important;
}
html[data-yd-rack="true"] body :is(#portal-root,.portal-overlay,.van-popup,.van-dialog) :is(input,textarea)::placeholder {
  color:var(--portal-text-gold)!important;
  -webkit-text-fill-color:var(--portal-text-gold)!important;
  opacity:1;
}
html[data-yd-rack="true"] body :is(#portal-root,.portal-overlay) input:-webkit-autofill {
  -webkit-text-fill-color:var(--portal-text-gold)!important;
  caret-color:var(--portal-text-gold);
}
html[data-yd-rack="true"] #portal-root #footer .item.on,
html[data-yd-rack="true"] #portal-root .van-tab--active {font-weight:700!important}
html[data-yd-rack="true"] body .portal-field-error {font-weight:700;text-decoration:underline}

html[data-yd-rack="true"] body :is(.iconfont,.van-icon,svg){-webkit-text-fill-color:currentColor!important}
/* Nested surfaces keep their own contrast instead of inheriting the outer panel. */
html[data-yd-rack="true"] body :is(.fengxian1,.yd-tp-gap,.tixian_shuru,.van-key,.yd-cp-rule){--portal-text-gold:var(--portal-gold-bright)}
html[data-yd-rack="true"] body .apply-exit-page :is(.tips,.van-field){--portal-text-gold:var(--portal-gold-deep)}
html[data-yd-rack="true"] body[data-yd-page="czcontent"] .register_block>div[style*="rgb(255, 255, 255)"]{--portal-text-gold:var(--portal-gold-deep)}
html[data-yd-rack="true"] body .yd-tp-progress-card h3{--portal-text-gold:var(--portal-gold-bright)}

/* Authentication panels: remove the decorative handles. */
html[data-yd-rack="true"] body:is([data-yd-route="login"],[data-yd-route="register"]) .register_block::after{content:none!important;display:none!important}
