





./* ==================== 卡片主体 ==================== */
.card {
    position: relative;
    background: #f4f4f6;
    border-radius: 28px;
    padding: 30px 16px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    overflow: visible;
}

/* ==================== 头部区域 ==================== */
.header {
    position: relative;
}

.banner {
    display: flex;
    justify-content: center;
}

.logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name {
    margin-top: 16px;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .25em;
    text-indent: .25em;
    background: linear-gradient(90deg, #c9a227 0%, #fff3b0 50%, #c9a227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
}

.desc {
    text-align: center;
    font-size: 15px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

/* ==================== 徽章区域 ==================== */
.badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.badge-big {
    width: auto;
    height: auto;
    max-width: 110px;
}

/* ==================== 标签栏 ==================== */
.tab-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 20px 0 16px;
}

.tab-item {
    text-align: center;
    padding: 10px 0;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: background .2s ease, color .2s ease;
    user-select: none;
    white-space: nowrap;
}

.tab-item .text {
    pointer-events: none;
}

.tab-item.active {
    background: linear-gradient(135deg, #1a1a1a, #4a3600 45%, #c9a227 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 162, 39, .3);
}

/* ==================== 应用列表 (卡片式) ==================== */
.app-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-list .item {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.content-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
    transition: transform .2s ease;
    transform: translateZ(0);
}

.item:active .content-wrap {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.img-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #e9e9ee;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-name {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    line-height: 1.3;
}

/* ==================== 运行时长 ==================== */
.run-time {
    margin: 24px auto 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #ff5b32;
}

/* ==================== 音乐播放器 ==================== */
.music-bar {
    position: fixed;
    right: 10px;
    bottom: 60px;
    width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(8, 10, 18, .95);
    border: 1px solid rgba(201, 162, 39, .55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    z-index: 9999;
    transform: translateZ(0);
}

.mp-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #111;
}

.mp-body {
    flex: 1;
    min-width: 0;
}

.mp-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mp-name {
    font-size: 13px;
    color: #ffd75e;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-time {
    font-size: 11px;
    color: #7fd4ff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.mp-row2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mp-vol {
    font-size: 12px;
    color: #9aa7c7;
}

.mp-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #e9eefb;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color .2s;
}

.mp-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
    cursor: pointer;
}

.mp-bar-in {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff2d55, #ffb400, #c9a227);
    transition: width .15s linear;
}

body.feedback-open .music-bar {
    display: none !important;
}

/* ==================== 功能按钮 (项目介绍/反馈) ==================== */
.btn-notice {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #e8c257;
    background: rgba(8, 6, 2, .85);
    border: 1px solid rgba(232, 194, 87, .65);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(232, 194, 87, .2);
    transition: background .25s ease, transform .15s ease;
    user-select: none;
    white-space: nowrap;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-notice:hover,
.btn-notice:active {
    background: rgba(8, 6, 2, .98);
    transform: translateY(-1px);
}

/* ==================== 公告栏 ==================== */
.notice-board {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    z-index: 9999;
    width: 85vw;
    max-width: 420px;
    height: 70vh;
    max-height: 500px;
    box-sizing: border-box;
    padding: 16px 14px;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    color: #f5f5f5;
    border: 1px solid rgba(232, 194, 87, .4);
    border-radius: 16px;
    background: #121318;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .7);
    display: none;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
}

.notice-board.show {
    display: flex;
    animation: noticeFade .2s ease;
}

@keyframes noticeFade {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.notice-title {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    color: #ffd75e;
    margin-bottom: 12px;
    padding-right: 40px;
}

.notice-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.notice-scroll::-webkit-scrollbar {
    width: 4px;
}

.notice-scroll::-webkit-scrollbar-thumb {
    background: rgba(232, 194, 87, .4);
    border-radius: 4px;
}

.notice-item {
    white-space: normal;
    margin-bottom: 8px;
}

.notice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    line-height: 28px;
    text-align: center;
    font-size: 16px;
    color: #ffd75e;
    background: rgba(0, 0, 0, .6);
    border: 1px solid rgba(232, 194, 87, .4);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background .2s;
}

.notice-close:active {
    background: rgba(232, 194, 87, .3);
}

/* ==================== 卡片角落按钮 ==================== */
.top-corner-btn {
    position: absolute;
    top: 10px;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, background .2s ease;
}

.new-announcement-btn {
    left: 12px;
    background: rgba(8, 6, 2, .78);
    border: 1px solid rgba(232, 194, 87, .65);
    color: #e8c257;
    box-shadow: 0 0 10px rgba(232, 194, 87, .2);
}

.new-announcement-btn:active {
    background: rgba(8, 6, 2, .98);
    transform: scale(.95);
}

.download-app-btn {
    right: 12px;
    background: linear-gradient(135deg, #1a1a1a, #4a3600 45%, #c9a227 100%);
    border: none;
    color: #fff;
    letter-spacing: .5px;
    box-shadow: 0 2px 10px rgba(201, 162, 39, .35);
}

.download-app-btn:active {
    transform: scale(.95);
    box-shadow: 0 1px 6px rgba(201, 162, 39, .3);
}

/* ==================== 弹窗通用 ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    width: 85vw;
    max-width: 360px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-poster {
    width: 100%;
    max-height: 45vh;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #000;
}

.modal-text {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    word-break: break-all;
}

.modal-close-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    background: #333;
    color: #999;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.modal-close-btn.active {
    background: linear-gradient(135deg, #1a1a1a, #4a3600 45%, #c9a227 100%);
    color: #ffffff;
    cursor: pointer;
}

/* ==================== APP下载弹窗 ==================== */
.dl-app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}

.dl-app-title {
    color: #ffd75e;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.dl-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #bbb;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.dl-info:last-child {
    border-bottom: none;
}

.dl-info span:last-child {
    color: #e8c257;
    font-weight: 600;
}

.dl-btn {
    display: block;
    width: 100%;
    padding: 13px 0;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a, #4a3600 45%, #c9a227 100%);
    box-shadow: 0 4px 14px rgba(201, 162, 39, .3);
}

.dl-btn:active {
    opacity: .85;
}

.dl-tip {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-top: 6px;
}

/* ==================== 全屏覆盖页面 ==================== */
.feedback-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a0c;
    z-index: 100001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    font-family: inherit;
}

.feedback-overlay.show {
    display: flex;
    animation: feedbackFade .3s ease;
}

@keyframes feedbackFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #121318;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    flex: 0 0 auto;
}

.feedback-header .back-btn {
    color: #c9a227;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 5px 10px;
}

.feedback-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #c9a227 0%, #fff3b0 50%, #c9a227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0;
    flex: 1;
    text-align: center;
}

.feedback-header .placeholder {
    width: 60px;
}

.feedback-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feedback-scroll::-webkit-scrollbar {
    width: 4px;
}

.feedback-scroll::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.5);
    border-radius: 4px;
}

.feedback-card {
    background: #16161a;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.feedback-card-media video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    background: #000;
}

.feedback-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-stars {
    color: #ffd700;
    font-size: 16px;
    letter-spacing: 2px;
}

.feedback-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
    word-break: break-all;
    white-space: pre-wrap;
}

.feedback-author {
    font-size: 13px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

/* ==================== 教程页面 ==================== */
.tutorial-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffd75e;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.tutorial-steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tutorial-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.65;
    color: #d8d8d8;
    word-break: break-all;
}

.tutorial-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #fff3b0);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-tip {
    background: rgba(201, 162, 39, 0.08);
    border-left: 3px solid #c9a227;
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #d9c98a;
}

.tutorial-tip strong {
    color: #ffd75e;
}

.tutorial-tip + .tutorial-tip {
    margin-top: 8px;
}

/* ==================== 文本/卡密页面 ==================== */
.text-page-card {
    background: #16161a;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-page-body {
    font-size: 15px;
    line-height: 1.85;
    color: #e8d9a8;
    white-space: pre-wrap;
    word-break: break-word;
    background: #0f0f12;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    letter-spacing: 0.4px;
    -webkit-user-select: text;
    user-select: text;
}

.kami-page .text-page-card {
    background: linear-gradient(160deg, #0b0b0e 0%, #15100a 45%, #2a1d06 100%);
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .55), inset 0 0 30px rgba(201, 162, 39, .06);
}

.kami-page .text-page-body {
    color: #ffffff;
    background: linear-gradient(160deg, #08080a 0%, #100c06 50%, #1d1404 100%);
    border: 1px solid rgba(201, 162, 39, 0.6);
    box-shadow: inset 0 0 24px rgba(201, 162, 39, 0.10);
    text-shadow: 0 0 6px rgba(201, 162, 39, 0.25);
}

.kami-page .text-page-body b,
.kami-page .text-page-body strong {
    color: #ffd75e;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #101014;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    flex: 0 0 auto;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    background: #0a0a0d;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 10px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus {
    border-color: #c9a227;
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}

.search-input::placeholder {
    color: #6f6f7c;
    font-size: 12.5px;
}

.search-count {
    font-size: 12px;
    color: #ffd75e;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
    letter-spacing: .3px;
    flex: 0 0 auto;
    padding: 0 2px;
    min-width: 44px;
}

.search-count.empty {
    color: #ff5b32;
}

.search-nav {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: #ffd75e;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .1s ease;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.search-nav:active {
    background: rgba(201, 162, 39, 0.45);
    transform: scale(.94);
}

mark.search-hit {
    background: rgba(255, 215, 0, 0.55);
    color: #1a1000;
    border-radius: 2px;
    padding: 0 1px;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
    transition: background .15s ease, box-shadow .15s ease;
}

mark.search-hit.current {
    background: #ffb400;
    color: #000000;
    box-shadow: 0 0 12px rgba(255, 180, 0, 0.95);
    outline: 1px solid #fff3b0;
}