       * { box-sizing: border-box; }
        body, html { margin: 0; padding: 0; height: 100%; width: 100%; font-family: -apple-system, sans-serif; background-color: #f4f6f9; }
        
        /* 顶部绿条和工具栏 */
        .excel-header { background-color: #107c41; color: white; height: 48px; padding: 0 16px; display: flex; align-items: center; }
        .excel-logo { font-size: 16px; font-weight: bold; text-decoration: none; color: white; display: flex; align-items: center; gap: 8px;}
        .excel-toolbar { background: white; border-bottom: 1px solid #d3d3d3; padding: 10px 16px; display: flex; gap: 12px; align-items: center; }
        
        /* 按钮还原 */
        .tool-btn { padding: 6px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: bold; border: 1px solid #d9d9d9; display: flex; align-items: center; gap: 6px;}
        .btn-add { background: white; color: #333; }
        .btn-bet { background: #e6f4ea; color: #188038; border-color: #ceead6; }
        .btn-prize { background: #e8f0fe; color: #1a73e8; border-color: #d2e3fc; } /* 🌟 新增彩种按钮颜色 */
        .btn-clear { background: #fce8e6; color: #d93025; border-color: #fad2cf; }

        /* 表格区域 */
        .grid-wrapper { height: calc(100vh - 160px); width: 100%; overflow: auto; background: #e1dfdd; padding: 1px; }
        .excel-table { border-collapse: collapse; background: white; font-size: 13px; table-layout: fixed; width: max-content; }
        .excel-table th, .excel-table td { border: 1px solid #d0d0d0; padding: 0; height: 32px; text-align: center; vertical-align: middle; }
        
        /* 🎯 仅在这里加上两行代码，就实现了表格内部的表头冻结 */
        .excel-table th { 
            background: #f3f3f3; 
            color: #333; 
            font-weight: normal; 
            
            position: sticky !important; /* 开启冻结 */
            top: 0 !important;           /* 冻结在表格容器最顶部 */
            z-index: 100 !important;     /* 确保滚动时不被数字挡住 */
        }
        
        /* 输入单元格 */
        .excel-cell { width: 100%; height: 100%; padding: 4px 6px; outline: none; display: flex; align-items: center; justify-content: center; }
        .excel-cell[contenteditable="true"]:hover { background: #f8f9fa; cursor: text; }
        .excel-cell:focus { box-shadow: inset 0 0 0 2px #107c41; z-index: 10; position: relative; background: #fff !important; }
        
        /* 底部统计栏配色 */
        .summary-row { background: #f9f9f9; font-size: 14px; }
        .bg-grey { background: #f3f3f3; font-weight: bold; }
        .bg-light-green { background: #e6f4ea; color: #188038; font-weight: bold; } 
        .bg-light-yellow { background: #fff2cc; color: #d93025; font-weight: bold; } 
        
        .text-red { color: #d93025; font-weight: bold; }
        .text-black-bold { color: #000; font-weight: bold; }
        
        .col-idx { width: 45px; } .col-name { width: 85px; } .col-amt { width: 70px; } .col-stat { width: 95px; }
		
		.header-editable {
           width: 100%;
           cursor: pointer;
           outline: none;
           padding: 4px 6px;
           transition: all 0.2s;    /* 增加过渡动画 */
		   border-radius: 3px;
		   color: #1a73e8;          /* 保持颜色与原表头一致 */
		   text-align: center;      /* 文字居中 */
        }
		/* 鼠标悬停：显示淡淡的蓝色背景，暗示这里可交互 */
		.header-editable:hover {
			background-color: #eef5ff;
		}
		/* 正在编辑时：显示清晰的外边框 */
        .header-editable:focus {
            background-color: #ffffff;
            border: 1px solid #1a73e8; /* 用外框代替虚线，更专业 */
			cursor: text;               /* 变成输入光标 */
        }
		#userMenu {
            display: none; 
            position: absolute; 
            background: white; 
            color: #333; 
            padding: 10px; 
            border-radius: 8px; /* 稍微圆润一点更像 App */
            right: 5px; 
            top: 45px; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* 加深阴影，更有质感 */
            z-index: 9999; /* 确保它浮在所有层级之上 */
            width: 120px;
        }
		/* 针对你截图中显示的 HTML 结构，直接强制隐藏 */
        #kj-wrapper .waibox {
            display: none !important;
            visibility: hidden !important;
            position: absolute !important;
            left: -9999px !important; /* 把它移出屏幕外 */
            pointer-events: none !important; /* 禁止点击 */
            height: 0 !important;
            width: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }

        /* 同时微调一下主容器，防止留下空白高度 */
        #kj-wrapper {
            display: block !important; /* 如果之前开了 flex，这里改回 block 更容易控制 */
            overflow: hidden !important;
        }
		
		/* 找到包裹那一行导航按钮的父级容器，假设其类名为 .excel-toolbar */
        .excel-toolbar {
            display: flex !important;
            flex-wrap: nowrap !important; /* 关键：禁止换行 */
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
            gap: 2px !important;           /* 减小间距，腾出空间给文字 */
            overflow-x: auto !important;   /* 防止溢出：如果真的放不下，允许横向滚动而不是换行 */
        }
		
        .tool-btn {
            flex: 1 !important;           /* 平分宽度 */
            white-space: nowrap !important; /* 强制单行 */
            padding: 6px 2px !important;    /* 进一步减小左右内边距 */
            font-size: 12px !important;    /* 调小字号，确保塞得下 */
            overflow: hidden !important;   /* 防止溢出 */
            text-overflow: ellipsis !important; /* 如果字实在太多，显示为 ... */
            min-width: 0 !important;      /* 关键：允许按钮宽度收缩到比内容小 */
	        display: flex !important;       /* 开启 Flex 布局 */
            align-items: center !important; /* 垂直居中 */
            justify-content: center !important; /* 水平居中 */
        }
		/* 登录容器手机端适配 */
        .login-container {
            width: 90%;           /* 手机宽度占屏幕 90% */
            max-width: 400px;     /* 电脑屏幕保持最大 400px */
            margin: 50px auto;    /* 垂直居中 */
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        /* 输入框增强触控体验 */
        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 15px;        /* 增大高度方便点击 */
            margin: 10px 0;
            box-sizing: border-box; 
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;      /* iOS 必须 16px 以上防止自动放大 */
        }

        /* 按钮增强 */
        button {
            width: 100%;
            padding: 15px;
            background-color: #107c41;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 18px;
            cursor: pointer;
        }
