/* Shared app-like UI for every website template. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select {
  box-sizing: border-box;
  line-height: normal;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-comic .image-stack,
.comic-reader .image-stack,
.single_mianimage .image-stack {
  display: block !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: #000;
}
.page-comic .image-stack img,
.comic-reader .image-stack img,
.single_mianimage .image-stack img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: -1px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  vertical-align: bottom !important;
}
.page-comic .image-stack img:first-child,
.comic-reader .image-stack img:first-child,
.single_mianimage .image-stack img:first-child { margin-top: 0 !important; }

.web-floating-back {
  position: fixed;
  z-index: 980;
  top: calc(14px + env(safe-area-inset-top));
  left: max(12px, calc((100vw - 1080px) / 2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 13px 0 10px;
  color: #303138;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 13px;
  box-shadow: 0 8px 25px rgba(0,0,0,.13);
  backdrop-filter: blur(14px);
}
.web-floating-back i { display: inline-flex; align-items: center; justify-content: center; height: 18px; font-size: 18px; line-height: 1; }
.page-paywall .web-floating-back { top: calc(74px + env(safe-area-inset-top)); }

.web-member-shell { width: min(720px, calc(100% - 28px)); margin: 22px auto 42px; color: #17181d; font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Segoe UI",sans-serif; }
.web-member-shell *, .web-member-shell *::before, .web-member-shell *::after { box-sizing: border-box; }
.web-member-shell button, .web-member-shell a, .web-member-shell input { font: inherit; }
.web-profile-card { display:flex;align-items:center;gap:16px;padding:23px;color:#fff;background:linear-gradient(135deg,#25262c,#3a3c46);border-radius:24px;box-shadow:0 14px 38px rgba(0,0,0,.13); }
.web-profile-avatar { display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;color:#fff;font-size:27px;font-weight:750;background:var(--member-brand,#ff4f7b);border-radius:22px;box-shadow:0 10px 24px color-mix(in srgb,var(--member-brand,#ff4f7b) 35%,transparent); }
.web-profile-identity { min-width:0;flex:1; }.web-profile-identity small{color:#ffffff85}.web-profile-identity h2{margin:4px 0;color:#fff;font-size:23px}.web-profile-identity p{max-width:260px;margin:0;overflow:hidden;color:#ffffffa0;font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.web-member-badge{flex:0 0 auto;padding:6px 9px;color:#fff;font-size:9px;font-weight:700;background:#ffffff18;border:1px solid #ffffff25;border-radius:99px}
.web-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.web-profile-stats button{padding:15px 7px;color:#25262c;text-align:center;background:#fff;border:0;border-radius:17px;box-shadow:0 5px 20px #00000008}.web-profile-stats strong,.web-profile-stats span{display:block}.web-profile-stats strong{font-size:16px}.web-profile-stats span{margin-top:4px;color:#999ba2;font-size:10px}
.web-profile-stats button:first-child strong{display:flex;align-items:center;justify-content:center;gap:4px}
.web-member-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.web-member-shortcuts button,.web-member-shortcuts a{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;min-width:0;padding:13px 12px;color:inherit;text-align:left;text-decoration:none;background:#fff;border:0;border-radius:17px;box-shadow:0 5px 20px #00000007}.web-member-shortcuts b{display:grid;place-items:center;width:36px;height:36px;color:var(--member-brand,#ff4f7b);font-size:18px;background:color-mix(in srgb,var(--member-brand,#ff4f7b) 9%,white);border-radius:12px}.web-member-shortcuts span{min-width:0}.web-member-shortcuts strong,.web-member-shortcuts small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.web-member-shortcuts strong{color:#35363c;font-size:12px}.web-member-shortcuts small{margin-top:3px;color:#a0a2a8;font-size:9px}.web-member-shortcuts em{color:#bbbcc1;font-size:18px;font-style:normal}
.web-member-panel{display:none;margin-top:12px;padding:18px;scroll-margin-top:72px;background:#fff;border-radius:20px;box-shadow:0 5px 20px #00000008}.web-member-panel.active{display:block}.web-member-panel>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.web-member-panel>header small{color:#b0b1b6;font-size:9px;font-weight:700;letter-spacing:.14em}.web-member-panel>header h3{margin:3px 0 0;color:#24252a;font-size:17px}.web-member-panel>header button{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 11px;color:var(--member-brand,#ff4f7b);font-size:11px;background:color-mix(in srgb,var(--member-brand,#ff4f7b) 8%,white);border:0;border-radius:10px}
.web-account-rows{overflow:hidden;background:#f7f7f9;border-radius:15px}.web-account-rows>div{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:49px;padding:10px 13px;color:#5c5e65;font-size:11px;border-bottom:1px solid #eaeaee}.web-account-rows>div:last-child{border-bottom:0}.web-account-rows strong{max-width:65%;overflow:hidden;color:#2f3035;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.web-wallet-balance{display:flex;align-items:center;gap:7px;padding:18px;color:#fff;background:linear-gradient(135deg,var(--member-brand,#ff4f7b),#6650a4);border-radius:17px}.web-wallet-balance small{margin-right:auto;font-size:10px;opacity:.8}.web-wallet-balance strong{display:flex;align-items:center;gap:5px;font-size:30px}.web-wallet-balance span{font-size:11px;opacity:.8}.web-payment-channel{margin-top:16px}.web-payment-channel h4{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 2px;color:#35363c;font-size:14px}.web-payment-channel h4 small{padding:3px 6px;color:#777;background:#f1f1f3;border-radius:6px;font-size:9px}.web-payment-channel h4 em{color:#8a8b91;font-size:10px;font-style:normal;font-weight:500}.web-recharge-plans{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.web-recharge-plans button{display:flex;align-items:center;justify-content:space-between;min-height:62px;padding:12px;color:#2f3035;background:#f7f7f9;border:1px solid transparent;border-radius:14px}.web-recharge-plans button strong{font-size:13px}.web-recharge-plans button span{display:flex;flex-direction:column;align-items:flex-end;color:var(--member-brand,#ff4f7b);font-size:12px;font-weight:700}.web-recharge-plans button span small{margin-top:3px;color:#85868c;font-size:9px;font-weight:500}
.web-saved-list{display:grid;gap:7px}.web-saved-item{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:10px;padding:7px;color:inherit;text-decoration:none;background:#f7f7f9;border-radius:14px}.web-saved-item img{width:54px;height:68px;object-fit:cover;background:#e5e5e9;border-radius:10px}.web-saved-item span{min-width:0}.web-saved-item strong,.web-saved-item small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.web-saved-item strong{font-size:12px}.web-saved-item small{margin-top:5px;color:#999ba1;font-size:9px}.web-saved-item em{color:#bbb;font-size:18px;font-style:normal}.web-member-empty{padding:32px 15px;color:#9b9ca2;text-align:center}.web-member-empty b{display:block;color:var(--member-brand,#ff4f7b);font-size:38px;font-weight:400}.web-member-empty h4{margin:8px 0 5px;color:#3b3c42;font-size:15px}.web-member-empty p{margin:0;font-size:11px;line-height:1.6}
.web-saved-kind{margin:13px 2px 3px;color:#777;font-size:13px}.web-saved-kind:first-child{margin-top:0}
.web-vip-plans{display:grid;grid-template-columns:1fr 1fr;gap:9px}.web-vip-plans article{display:grid;gap:8px;padding:13px;color:#292a30;text-align:left;background:#f7f7f9;border-radius:15px}.web-vip-plans span,.web-vip-plans strong,.web-vip-plans small{display:block}.web-vip-plans small{margin-top:5px;color:#999;font-size:9px}.web-vip-plans article>b{color:var(--member-brand,#ff4f7b);font-size:20px}.web-vip-plans article button{display:flex;align-items:center;justify-content:center;min-height:39px;padding:0 7px;color:#fff;font-size:10px;font-weight:700;background:var(--member-brand,#ff4f7b);border:0;border-radius:11px}.web-vip-plans article button.coin-pay{color:#75500a;background:#ffe9a7}.gold-coin-icon{width:24px;height:24px;margin-right:5px;object-fit:contain;animation:goldCoinShine 1.8s ease-in-out infinite;filter:drop-shadow(0 2px 5px #e7a71366)}@keyframes goldCoinShine{0%,100%{transform:rotateY(0) scale(1);filter:brightness(1) drop-shadow(0 2px 5px #e7a71366)}45%{transform:rotateY(22deg) scale(1.08);filter:brightness(1.45) drop-shadow(0 0 9px #ffd958cc)}60%{transform:rotateY(-8deg) scale(1.03);filter:brightness(1.12) drop-shadow(0 2px 5px #e7a71388)}}.web-checkin-card{text-align:center}.web-checkin-card>strong{display:block;color:var(--member-brand,#ff4f7b);font-size:42px}.web-checkin-card>span{color:#777;font-size:11px}.web-checkin-card p,.web-referral-card p{margin:13px 0;color:#888;font-size:11px;line-height:1.7}.web-checkin-card button,.web-referral-card>button{display:flex;align-items:center;justify-content:center;width:100%;height:48px;color:#fff;font-weight:700;background:var(--member-brand,#ff4f7b);border:0;border-radius:14px}.web-checkin-card button:disabled{background:#c9cad0}.web-referral-card>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.web-referral-card>div span{padding:14px;text-align:center;background:#f7f7f9;border-radius:14px}.web-referral-card>div strong,.web-referral-card>div small{display:block}.web-referral-card>div strong{font-size:20px}.web-referral-card>div small{margin-top:4px;color:#999;font-size:9px}.web-referral-card code{display:block;margin:12px 0;padding:12px;color:#36373d;text-align:center;background:#f0f0f3;border-radius:12px;font-size:18px;font-weight:800;letter-spacing:.12em}
.web-logout{display:flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:12px;color:#d14f62;font-size:13px;font-weight:700;text-decoration:none;background:#fff;border:0;border-radius:15px;box-shadow:0 5px 20px #00000007}
.web-member-records{margin-top:14px;text-align:left}.web-member-records h4{margin:14px 0 7px;color:#35363c;font-size:13px}.web-member-records>div:not(.web-record-empty){display:block!important;overflow:hidden;border:1px solid #ececf0;border-radius:13px}.web-member-records p{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:0!important;padding:11px 12px!important;border-bottom:1px solid #eeeef1;font-size:11px;line-height:1.45!important}.web-member-records p:last-child{border-bottom:0}.web-member-records p span{min-width:0;padding:0!important;color:#555;background:none!important}.web-member-records p strong{flex:0 0 auto;color:#d59600;font-size:11px}.web-record-empty{padding:18px;color:#999;text-align:center;background:#f7f7f9;border-radius:13px;font-size:11px}
.web-member-free-state{padding:32px 18px;text-align:center;background:#f5fbf6;border:1px solid #dbeede;border-radius:17px}.web-member-free-state b{display:block;color:#37a65b;font-size:34px}.web-member-free-state h4{margin:7px 0 5px;color:#28362d;font-size:17px}.web-member-free-state p{margin:0;color:#718077;font-size:11px;line-height:1.7}
.web-payment-status-backdrop{position:fixed;z-index:99999;inset:0;display:grid;place-items:center;padding:24px;background:#10111680;backdrop-filter:blur(7px)}.web-payment-status-card{width:min(86vw,340px);padding:26px 22px 22px;text-align:center;background:#fff;border-radius:22px;box-shadow:0 22px 70px #0005}.web-payment-status-spinner{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 15px;color:#fff;font-size:24px;background:transparent;border:4px solid #f7cbd6;border-top-color:var(--member-brand,#ff4f7b);border-radius:50%;animation:web-payment-status-spin .8s linear infinite}.web-payment-status-card.success .web-payment-status-spinner{background:#35aa61;border-color:#35aa61;animation:none}.web-payment-status-card h3{margin:0;color:#25262b;font-size:19px}.web-payment-status-card p{margin:9px 0 10px;color:#777980;font-size:12px;line-height:1.65}.web-payment-status-card small{color:#aaa;font-size:10px}@keyframes web-payment-status-spin{to{transform:rotate(360deg)}}
@media(max-width:560px){.web-member-shell{margin-top:14px}.web-profile-card{padding:19px 17px}.web-profile-avatar{flex-basis:58px;width:58px;height:58px;border-radius:18px}.web-member-shortcuts{grid-template-columns:1fr}.web-recharge-plans,.web-vip-plans{grid-template-columns:1fr 1fr}.web-floating-back{left:12px}}

/* Member shortcuts stay visible as a compact three-column navigation grid. */
.web-member-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.web-member-shortcuts button,.web-member-shortcuts a { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:96px;padding:10px 6px;text-align:center; }
.web-member-shortcuts b { flex:0 0 36px; }
.web-member-shortcuts span { width:100%; }
.web-member-shortcuts strong,.web-member-shortcuts small { width:100%; }
.web-member-shortcuts em { display:none; }
@media(max-width:560px){
  .web-member-shell { width:min(720px,calc(100% - 20px)); }
  .web-member-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
  .web-member-shortcuts button,.web-member-shortcuts a { min-height:91px;padding:8px 3px; }
  .web-member-shortcuts strong { font-size:11px; }
  .web-member-shortcuts small { font-size:8px; }
}

/* Authentication CAPTCHA rows must stay inside narrow mobile forms. */
.auth-captcha-row{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;box-sizing:border-box}
.auth-captcha-row input{min-width:0!important;flex:1 1 auto!important;width:auto!important;box-sizing:border-box}
.auth-captcha-row img{display:block!important;flex:0 0 160px;width:160px!important;max-width:48%;height:52px!important;margin:0!important;border-radius:8px;object-fit:fill;cursor:pointer;box-sizing:border-box}
@media(max-width:420px){
  .auth-captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:8px}
  .auth-captcha-row img{width:132px!important;max-width:132px;height:43px!important}
}
/* 网页搜索记录按内容模块切换，手机端不会再把三个栏目的词混在一起。 */
.search-module-tabs {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    width:100%;
    margin:12px 0 10px;
    padding:4px;
    border-radius:12px;
    background:rgba(127,127,127,.1);
}
.search-module-tabs button {
    min-width:0;
    min-height:34px;
    padding:5px 6px;
    overflow:hidden;
    border:0;
    border-radius:9px;
    color:inherit;
    font:inherit;
    font-size:12px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
    background:transparent;
    cursor:pointer;
}
.search-module-tabs button.active {
    color:#fff;
    background:#ef476f;
    box-shadow:0 4px 12px rgba(239,71,111,.24);
}
.search-module-panel[hidden] {display:none!important}
.search-module-panel {min-height:34px}
.search-history-title {display:block;margin:12px 0 9px;font-size:13px;font-weight:800}
.search-history-empty {margin:0;padding:12px 14px;border-radius:10px;color:#8a8d94;background:rgba(127,127,127,.08);font-size:12px;line-height:1.6}
