/* 隐藏 Vue 初始化前的模板，避免空身份与未编译表达式闪现。 */
[v-cloak] { visibility: hidden; }

/* 周期状态按服务器时间着色，覆盖美术样式中第一周及选中周的固定绿色。 */
#app .page-ranking .ranking-weekly .ranking-week-tabs .tab-week .week-status { color: #f2e6c4; -webkit-filter: drop-shadow(0 1px 0 #1a1d1f) drop-shadow(0 -1px 0 #1a1d1f) drop-shadow(1px 0 0 #1a1d1f) drop-shadow(-1px 0 0 #1a1d1f); filter: drop-shadow(0 1px 0 #1a1d1f) drop-shadow(0 -1px 0 #1a1d1f) drop-shadow(1px 0 0 #1a1d1f) drop-shadow(-1px 0 0 #1a1d1f); }
#app .page-ranking .ranking-weekly .ranking-week-tabs .tab-week .week-status.is-ongoing { color: #68ff86; -webkit-filter: drop-shadow(0 1px 0 #124b11) drop-shadow(0 -1px 0 #124b11) drop-shadow(1px 0 0 #124b11) drop-shadow(-1px 0 0 #124b11); filter: drop-shadow(0 1px 0 #124b11) drop-shadow(0 -1px 0 #124b11) drop-shadow(1px 0 0 #124b11) drop-shadow(-1px 0 0 #124b11); }

/* 登录欢迎语包含游戏和服务器，长名称可换行，退出按钮始终排列在文字右侧。 */
#app .page-home .panel-account { width: auto; height: auto; max-width: 70%; display: flex; align-items: center; justify-content: flex-end; }
#app .page-home .panel-account .account-identity { position: relative; left: auto; top: auto; width: auto; height: auto; min-width: 0; flex: 0 1 auto; }
#app .page-home .panel-account .account-identity .account-welcome { position: relative !important; left: auto; top: auto; transform: none; min-width: 0; white-space: normal; overflow-wrap: break-word; text-align: right; }
#app .page-home .panel-account .account-actions { position: relative; left: auto; top: auto; transform: none; width: 73px; height: 32px; margin-left: 10px; flex: 0 0 73px; }

/* 巅峰榜复用总榜倒计时美术，定位在右侧榜单区域，避免遮挡左侧空位。 */
.page-peak .peak-ranking .peak-countdown { left: 50%; top: 270px; transform: translateX(-50%); }
body[data-type="khd"] .page-peak .peak-ranking .peak-countdown { top: 135px; }

/* 未开始的四个推荐位沿用卡片背景和阶梯布局，使用已有剪影素材与空位文案。 */
.candidate-empty { position: absolute; left: 50%; top: 50%; width: 142px; height: 330px; transform: translate(-50%, -50%); }
.candidate-empty-silhouette { width: 100%; height: 100%; background: url("https://img5.99.com/zf/activity/2026/10/celeb/img/pc/img-90-12.png") center / contain no-repeat; }
.candidate-empty-label { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); margin: 0; padding: 5px 16px; border: 1px solid #95734a; background: #30251b; color: #eecd97; font: 18px/1.75 "Microsoft YaHei", sans-serif; white-space: nowrap; }
/* 客户端推荐卡片较小，空位剪影与文案同步缩小。 */
body[data-type="khd"] .candidate-empty { width: 80px; height: 190px; }
body[data-type="khd"] .candidate-empty-label { padding: 3px 10px; font-size: 12px; }

/* 请求状态和记录入口沿用活动暖金色系，不改动原有美术和说明。 */
.integration-status { position: absolute; z-index: 120; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: 75%; padding: 10px 20px; border: 1px solid #cfa961; border-radius: 6px; background: #201b16; color: #fced9c; font-size: 22px; text-align: center; }
.integration-status button, .integration-tools button { cursor: pointer; margin-left: 12px; padding: 6px 14px; border: 1px solid #cfa961; border-radius: 4px; background: #433321; color: #fced9c; font: inherit; }
.integration-tools { position: absolute; z-index: 120; right: 32px; top: 24px; font-size: 22px; }
.integration-tools button:disabled { opacity: .5; cursor: default; }

/* 后端可能返回七页排名，取消原稿对第四、第五页按钮的固定隐藏。 */
.page-ranking .ranking-total .ranking-pagination .pagination-pages .btn-page:nth-child(n), .page-peak .peak-pagination .pagination-pages .btn-page:nth-child(n) { display: flex; }
/* 多页时让方向按钮随页码自然排列，避免第六页与下一页按钮重叠。 */
.page-ranking .ranking-total .ranking-pagination { display: flex; align-items: center; justify-content: center; width: auto; left: 50%; transform: translateX(-50%); gap: 8px; }
.page-ranking .ranking-total .ranking-pagination.has-previous { margin-left: 0; }
.page-ranking .ranking-total .ranking-pagination .pagination-pages, .page-ranking .ranking-total .ranking-pagination .pagination-directions { position: static; transform: none; }

/* 通用提示沿用 dialogs 美术与底部按钮，仅让长正文独立滚动，避免遮挡确认按钮。 */
.dialogs .variant-notice .dialog-body .dialog-viewport { overflow-y: auto; }
.dialogs .variant-notice .rank-notice-message { margin: 20px 0 28px; line-height: 1.7; text-align: left; white-space: pre-wrap; overflow-wrap: break-word; }
/* 投票记录沿用规则弹窗的尺寸及内嵌缩放，长列表仅在正文视口滚动。 */
.dialogs .dialog-shell.variant-records .dialog-body .dialog-viewport { overflow-y: auto; }
.dialogs .variant-records .records-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #cbb265; font-size: 20px; line-height: 30px; text-align: center; }
.dialogs .variant-records .records-table th, .dialogs .variant-records .records-table td { padding: 12px 16px; border-bottom: 1px solid rgba(199, 165, 88, .5); overflow-wrap: break-word; }
.dialogs .variant-records .records-table th { background-color: rgba(130, 105, 67, .361); color: #f3e2c5; }
.dialogs .variant-records .records-table td { background-color: rgba(110, 90, 55, .2); }
.dialogs .variant-records .records-feedback { margin: 20px 0; color: #cbb265; font-size: 20px; line-height: 30px; text-align: center; overflow-wrap: break-word; }

/* 内嵌页面使用自身画布尺寸，避免大字号遮挡登录及投票控件。 */
body[data-type="khd"] .integration-status { bottom: 8px; padding: 5px 10px; font-size: 13px; }
body[data-type="khd"] .integration-tools { right: 8px; top: 8px; font-size: 13px; }

/* 海外官方登录组件只生成结构，页面负责提供窗口样式；所有选择器限定在官方窗口内。 */
/* #accountlogin.commonbox, .login_form_class.commonbox { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; color: #fced9c; font: 16px/1.5 Arial, sans-serif; }
#accountlogin.commonbox.show, .login_form_class.commonbox.show { display: flex; }
.commonbox .mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.commonbox .tipbox { position: relative; z-index: 1; width: 500px; max-width: 90vw; max-height: 90vh; overflow: auto; padding: 28px; border: 1px solid #cfa961; border-radius: 10px; background: #201b16; }
.commonbox .tip_t h2 { margin: 0 0 20px; text-align: center; font-size: 24px; }
.commonbox .close { position: absolute; right: 12px; top: 6px; color: #fced9c; font-size: 28px; }
.commonbox .form li { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.commonbox .form label { flex: 0 0 110px; text-align: right; }
.commonbox .form input, .commonbox .form select { min-width: 0; width: 240px; height: 34px; padding: 3px 6px; color: #222; background: #fff; border: 1px solid #cfa961; font: inherit; }
.commonbox .form input.code { width: 110px; }
.commonbox .code_img img { max-width: 110px; max-height: 36px; }
.commonbox .two_btns { display: flex; justify-content: center; gap: 20px; margin: 20px 0 10px; }
.commonbox .btn_tip { display: block; padding: 6px 24px; border: 1px solid #cfa961; border-radius: 4px; background: #433321; }
.commonbox a { color: #fced9c; } */
