:root {
            /* 音游高对比度配色 */
            --maimai-blue: #0066ff;
            --maimai-cyan: #00bfff;
            --maimai-purple: #8a2be2;
            --bg-gradient: linear-gradient(135deg, #e1e9f5 0%, #ebdff5 100%);
            
            /* 高对比度白容器 */
            --box-bg: #ffffff;
            --text-dark: #0a111f;
            --text-sub: #3c485c;
            --border-color: #a2b4cf;
        }

        body {
            /* 确保这里的字体和后续样式能正常衔接 */
            font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-dark);
    box-sizing: border-box;
    overflow-x: auto;
}

/* 固定卡片布局 */
.page-wrapper {
    width: 850px;
    padding: 0 25px;
    box-sizing: border-box;
}

/* 主报告卡片容器 */
.report-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../bg/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f4fa;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(10, 20, 40, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 顶部炫彩饰条 */
.report-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--maimai-cyan), var(--maimai-blue), var(--maimai-purple));
    z-index: 5;
}

/* 头部排版 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(10, 20, 40, 0.15);
    padding-bottom: 24px;
    margin-bottom: 24px;
    gap: 20px;
}

.title-area {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: #003cd2;
    text-shadow: 0px 2px 4px rgba(255, 255, 255, 1), 0px 0px 10px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-sub);
    margin-top: 8px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

.subtitle::before {
    content: '//';
    color: var(--maimai-blue);
}

/* 玩家输入区 */
.player-space {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #002266;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 50%;
}

.input-wrapper {
    display: inline-grid;
    align-items: center;
    justify-items: start;
    position: relative;
    min-width: 100px;
}

.input-wrapper::after {
    content: attr(data-value) " ";
    visibility: hidden;
    white-space: pre;
    grid-area: 1 / 1;
    font-size: 16px;
    font-weight: 900;
    padding: 2px 4px;
    letter-spacing: 0.5px;
}

.player-space input {
    grid-area: 1 / 1;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--maimai-blue);
    background: transparent;
    text-align: left;
    font-size: 16px;
    outline: none;
    font-weight: 900;
    color: #0044cc;
    padding: 2px 4px;
    border-radius: 0;
    letter-spacing: 0.5px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.player-space input:focus {
    border-bottom-color: var(--maimai-cyan);
}

.section-title {
    font-size: 16px;
    font-weight: 900;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #002266;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: linear-gradient(to bottom, var(--maimai-cyan), var(--maimai-blue));
    border-radius: 3px;
}

/* Rating 区域 */
.rating-change-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #bbcddc;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow {
    font-size: 32px;
    font-weight: 900;
    color: var(--maimai-blue);
    user-select: none;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px; 
    line-height: 56px;
    margin-bottom: 22px; 
}

.hidden-rating-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.rating-container {
    position: relative;
    width: 270px; 
    height: 56px;
    background-image: url('../assets/icons/rating/UI_CMA_Rating_Base_0.png'); /* 路径更正 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: text;
    transition: transform 0.2s;
    box-sizing: border-box; 
}

.rating-container.is-focused {
    filter: drop-shadow(0px 0px 8px var(--theme-glow-color, rgba(0, 102, 255, 0.6)));
    transform: scale(1.02);
}

.digit-display {
    position: absolute;
    top: 13px; 
    width: 24px;
    height: 34px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    box-sizing: border-box;
}

.digit-w  { left: 115px; } 
.digit-q  { left: 144px; } 
.digit-b  { left: 172px; } 
.digit-s  { left: 201px; } 
.digit-g  { left: 229px; } 

.tip {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.9);
}

/* 网格系统 */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.box-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.image-uploader {
    position: relative;
    background-color: var(--box-bg);
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    cursor: pointer;
    border: 2px dashed var(--border-color);
    box-sizing: border-box; 
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    padding: 0; 
}

.image-uploader.has-image {
    border-style: solid;
}

.image-uploader.drag-over {
    border-color: var(--maimai-blue) !important;
    background-color: #f0f5ff !important;
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25) !important;
}

/* 激活选框高亮 */
.box-wrapper.is-active .image-uploader {
    border-color: var(--maimai-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

.box-wrapper.show-delete .image-uploader {
    border-color: var(--maimai-purple) !important;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.4), 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.image-uploader:hover {
    border-color: var(--maimai-blue);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

/* 框内未上传图片时显示的交互层 */
.uploader-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px;
    box-sizing: border-box;
    z-index: 5;
}

.action-sub-btn {
    width: 85%;
    padding: 6px 0;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    background-color: var(--maimai-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 102, 255, 0.2);
    transition: background 0.2s;
}
.action-sub-btn.local-btn {
    background-color: #5c7699;
    box-shadow: 0 2px 6px rgba(92, 118, 153, 0.2);
}
.action-sub-btn:hover {
    opacity: 0.9;
}

.upload-icon {
    font-size: 24px;
    color: #7a8ba6;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
    text-align: center;
}

/* 全局网页遮罩搜索窗口（Modal） */
.global-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    width: 480px;
    max-width: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-title {
    font-size: 16px;
    font-weight: 900;
    color: #002266;
    margin: 0;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    border: 2px solid var(--maimai-blue);
    border-radius: 8px;
    outline: none;
    font-weight: bold;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-tips {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: bold;
    margin: -4px 0 0 2px;
}

.search-preview-container {
    width: 160px;
    height: 160px;
    margin: 10px auto;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    display: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.modal-footer-btns {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.search-confirm-btn {
    flex: 1;
    display: none;
    background: var(--maimai-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.search-cancel-btn {
    flex: 1;
    background: #e2e8f0;
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: auto; 
    z-index: 3;
}

.file-input {
    display: none;
}

/* 删除按钮 */
.delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #ff3344;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15;
    box-shadow: 0 3px 8px rgba(255, 51, 68, 0.5);
    border: 2px solid #ffffff;
    transition: transform 0.1s ease;
    cursor: pointer;
}

.delete-btn::before, .delete-btn::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
}
.delete-btn::before { transform: rotate(45deg); }
.delete-btn::after { transform: rotate(-45deg); }

.delete-btn:active {
    transform: scale(0.85);
}

.box-wrapper.show-delete .delete-btn {
    display: flex;
}

.box-desc {
    font-size: 12px;
    text-align: center;
    color: var(--text-dark);
    margin-top: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 1), -1px -1px 2px rgba(255, 255, 255, 1);
}

/* 底部两栏布局 */
.bottom-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.open-area {
    display: flex;
    flex-direction: column;
}

.blue-textarea {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    flex-grow: 1;
    min-height: 200px;
    padding: 16px;
    box-sizing: border-box;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    color: var(--text-dark);
    font-weight: 600;
    transition: border-color 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.blue-textarea:focus {
    border-color: var(--maimai-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.blue-textarea::placeholder {
    color: #8da1bf;
}

.right-tip {
    font-size: 11px;
    color: var(--text-sub);
    text-align: right;
    margin-top: 8px;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.9);
}

/* 导出按钮 */
.action-container {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.export-btn {
    background: linear-gradient(135deg, #0055ff 0%, #0033cc 100%);
    border: none;
    color: white;
    padding: 16px 54px;
    font-size: 16px;
    font-weight: 900;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 2px;
}

.export-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1a66ff 0%, #0044ee 100%);
    box-shadow: 0 14px 32px rgba(0, 85, 255, 0.5);
}

.export-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}