﻿
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        
        html, body {
            height: 100%;
            overflow: hidden;
        }
        
        body {
            background-color: #f5f5f5;
           
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: -10px auto 0 auto;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .header {
            background-color: #ffffff;
            border-bottom: 2px solid #f0f0f0;
            padding: 15px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }
        
        .title-container {
            display: flex;
            align-items: center;
            font-weight: bold;
            color: #333;
        }
        
        .title-icon {
            margin-right: 10px;
            font-size: 20px;
            color: #1890ff;
        }
        
        .title-input {
            border: none;
            background: transparent;
            font-weight: bold;
            font-size: 18px;
            width: 400px;
            color: #333;
            padding: 5px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        .title-input:focus {
            outline: none;
            background-color: rgba(24, 144, 255, 0.1);
        }
        
        .button-group {
            display: flex;
            gap: 12px;
        }
        
        .button-group button {
            padding: 10px 18px;
            background-color: white;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }
        
        .button-group button:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .button-group button:active {
            transform: translateY(0);
        }
        
        .reset-button {
            color: #ff4d4f;
            border-color: #ff4d4f !important;
        }
        
        .reset-button:hover {
            background-color: #fff1f0 !important;
        }
        
        .add-button {
            color: #52c41a;
            border-color: #52c41a !important;
        }
        
        .add-button:hover {
            background-color: #f6ffed !important;
        }
        
        .save-button {
            background-color: #1890ff !important;
            color: white !important;
            border: none !important;
        }
        
        .save-button:hover {
            background-color: #40a9ff !important;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35) !important;
        }
        
        .fullscreen-button {
            color: #722ed1;
            border-color: #722ed1 !important;
        }
        
        .fullscreen-button:hover {
            background-color: #f9f0ff !important;
        }
        
        .content {
            padding: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            
        }
        
        .ranking-container {
            padding: 20px;
            min-height: 600px;
            margin-bottom: 20px; /* 与项目池保持20px间距 */
            transition: all 0.3s ease;
        }
        
        /* 全屏模式下的样式 */
        body.fullscreen {
            background-color: white;
        }
        
        body.fullscreen .ranking-container {
            padding: 40px 20px;
            min-height: 100vh;
        }
        
        /* 全屏模式下隐藏指定元素 */
        body.fullscreen .reset-button,
        body.fullscreen .add-button,
        body.fullscreen .edit-button {
            display: none !important;
        }
        
        /* 全屏模式下优化排行榜行 */
        body.fullscreen .ranking-row {
            margin-bottom: 25px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
        }
        
        .ranking-row {
            display: flex;
            height: 120px;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            position: relative;
            margin-bottom: 5px; /* 减小上下间距 */
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            overflow: hidden;
        }
        
        .ranking-row:hover {
            background-color: #fafafa;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .ranking-cell {
            display: flex;
            justify-content: center;
            align-items: center;
            width: auto;
            height: 100%;
            aspect-ratio: 1/1;
            font-size: 18px;
            font-weight: 500;
            color: #333;
            position: relative;
            transition: all 0.3s ease;
            border-right: 1px solid #f0f0f0;
        }
        
        .ranking-cell:last-child {
            border-right: none;
        }
        
        .cell-text {
            font-size: 1.2vw;
            font-weight: 700;
            padding: 8px;
            text-align: center;
        }
        
        .ranking-cell::after {
            display: none;
        }
        
        .ranking-cell:hover .edit-btn {
            opacity: 1;
            transform: scale(1.1);
        }
        
        .edit-btn {
            position: absolute;
            right: 15px;
            top: 15px;
            width: 30px;
            height: 30px;
            background-color: rgba(255, 255, 255, 0.9);
            color: #1890ff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: all 0.3s;
            z-index: 1;
            border: 1px solid #1890ff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            font-size: 12px;
        }
        
        .edit-btn:hover {
            background-color: #1890ff;
            color: white;
            transform: scale(1.2);
        }
        
        .drag-area {
            flex: 1;
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 5px;
            padding: 1px;
            height: 100%; /* 与ranking-cell高度一致 */
            border: none;
            background-color: #fafafa;
            overflow-x: auto;
            overflow-y: hidden;
        }
        
        .drag-area-item {
            width: auto;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0;
            flex-shrink: 0;
        }
        
        .drag-area-item-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        
        .drag-area-item {
            width: auto;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0;
            flex-shrink: 0;
            aspect-ratio: 1/1; /* 确保1x1比例 */
        }
        
        .drag-area-item-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            aspect-ratio: 1/1; /* 确保1x1比例 */
        }
        
        .drag-area-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 1/1; /* 确保1x1比例 */
        }
        
        .drag-area-item-text {
            font-size: 14px;
            text-align: center;
            word-break: break-all;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .red {
            background-color: #e23b2d;
            color: black;

        }
        
        .orange {
            background-color: #f1ca4d;
            color: black;
        }
        
        .yellow {
            background-color: #f9ff28;
            color: black;
        }
        
        .npc {
            background-color: #f9f3d0;
            color: black;
        }
        
        .gray {
            background-color: #fafbf8;
            color: black;
        }
        

        
        .item-pool-container {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 1200px;
            background-color: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
            padding: 15px;
            z-index: 1000;
        }
        
        .item-pool-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .item-pool-title {
            font-weight: 600;
            font-size: 18px;
            color: #333;
        }
        
        .upload-button {
            background-color: #1890ff;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .upload-button:hover {
            background-color: #40a9ff;
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35);
        }
        
        .upload-button input[type="file"] {
            display: none;
        }
        
        .item-list {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            min-height: 100px;
            max-height: 100px; /* 限制图片列表最大高度 */
            overflow-y: auto; /* 当项目过多时显示滚动条 */
        }
        
        .item {
            width: 80px;
            height: 80px;
            cursor: move; /* 默认显示拖动样式 */
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .item:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
            cursor: move; /* 鼠标经过时显示拖动样式 */
            border-color: #1890ff;
        }
        
        /* 拖拽过程中的样式 */
        .sortable-drag {
            opacity: 0.8;
            transform: rotate(5deg);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .item-image {
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .item-text {
            font-size: 12px;
            color: #666;
            text-align: center;
            word-break: break-all;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .file-input {
            display: none;
        }
        
        .upload-btn {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .upload-icon {
            font-size: 24px;
            color: #999;
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 30px;
            border: none;
            width: 550px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .modal-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 25px;
            color: #333;
        }
        
        .form-group {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-group label {
            font-weight: 500;
            color: #555;
            font-size: 14px;
        }
        
        .form-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
        }
        
        .color-picker-group {
            display: flex;
            gap: 15px;
            margin-top: 8px;
        }
        
        .color-picker-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .color-picker-item input[type="color"] {
            width: 60px;
            height: 40px;
            padding: 0;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }
        
        .color-picker-item input[type="color"]:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }
        
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 25px;
        }
        
        .modal-actions button {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .cancel-btn {
            background-color: #f5f5f5;
            border: 1px solid #d9d9d9 !important;
            color: #666;
        }
        
        .cancel-btn:hover {
            background-color: #e8e8e8;
        }
        
        .confirm-btn {
            background-color: #1890ff;
            color: white;
            border: none;
        }
        
        .confirm-btn:hover {
            background-color: #40a9ff;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
        }
        
        /* 全屏样式 */
        body.fullscreen {
            padding: 20px;
            background-color: white;
        }
        
        body.fullscreen .container {
            max-width: 100%;
            border-radius: 0;
            height: auto;
            min-height: calc(50vh - 20px);
            margin: 0 auto;
            box-shadow: none;
        }
        
        body.fullscreen .item-pool-container {
            max-width: 100%;
            border-radius: 0;
            margin: 0 auto;
            box-shadow: none;
        }
        
        body.fullscreen .ranking-container {
            flex: 1;
            overflow-y: auto;
        }
        
        /* 全屏模式下隐藏编辑按钮和上传按钮 */
        body.fullscreen .edit-btn {
            display: none;
        }
        
        body.fullscreen .upload-button {
            display: none;
        }

        body.fullscreen .backtitle {
            display: none;
        }
