        /* 合并 :root 变量与原有 body 样式 (移除 body/html/* 选择器) */
        :root {
            --primary: #7F5FFF;
            --secondary: #5F9FFF;
            --accent: #FF6B8B;
            font-family: 'Poppins', sans-serif;
        }

        @keyframes float {
            0%, 100% { transform: translate(0,0) rotate(0deg); }
            25% { transform: translate(200px,150px) rotate(90deg); }
            50% { transform: translate(0,300px) rotate(180deg); }
            75% { transform: translate(-200px,150px) rotate(270deg); }
        }
        @keyframes cardAppear {
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse-empty {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        @keyframes pulse-box {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.02); opacity: 0.9; }
        }
        @keyframes resultShow {
            0% { transform: scale(0) rotate(-5deg); opacity: 0; filter: blur(20px); }
            70% { transform: scale(1.2) rotate(1deg); filter: blur(0); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        @keyframes shine {
            to { left: 100%; top: 100%; }
        }
        @keyframes confettiFall {
            0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(1000px) rotate(360deg); opacity: 0; }
        }

        /* 原 .container 保留（可能被头部/页脚使用） */
        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            padding: 40px;
            width: auto;
            margin: 50px 28% 50px 28%;
            position: relative;
            z-index: 1;
            border: 1px solid rgba(255,255,255,0.3);
        }

        h1 {
            color: var(--primary);
            text-align: center;
            margin-bottom: 40px;
            font-size: 2.8em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            position: relative;
        }
        h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 30%;
            height: 3px;
            background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
        }

        .input-area {
            margin-bottom: 30px;
            position: relative;
        }

        textarea {
            width: 95%;
            height: 200px;
            padding: 25px;
            border: 2px solid rgba(127,95,255,0.2);
            border-radius: 20px;
            resize: vertical;
            font-size: 16px;
            line-height: 1.6;
            transition: all 0.3s;
            background: rgba(255,255,255,0.9);
            color: #333;
            font-family: inherit;
        }
        textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 25px rgba(127,95,255,0.2);
            background: rgba(255,255,255,1);
            outline: none;
        }

        .button-container {
            text-align: center;
            margin: 40px 0;
        }

        button {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            border: none;
            padding: 18px 50px;
            border-radius: 35px;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(127,95,255,0.3);
            position: relative;
            overflow: hidden;
            font-family: inherit;
        }
        button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 300%;
            height: 300%;
            background: rgba(255,255,255,0.1);
            transform: translate(-50%, -50%) rotate(45deg);
            transition: all 0.5s;
        }
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(127,95,255,0.4);
        }
        button:hover::before {
            width: 0;
            height: 0;
        }
        button:active {
            transform: translateY(1px);
        }

        /* 分组卡片样式 (可能被其他模板引用，保留) */
        .results-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 40px;
            text-align: left;
        }
        .group-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(5px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.6s forwards;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.3);
        }
        .group-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, 
                rgba(127,95,255,0.05) 0%,
                rgba(95,159,255,0.05) 50%,
                rgba(255,107,139,0.05) 100%);
            transform: rotate(45deg);
            z-index: -1;
        }
        .group-member {
            padding: 18px;
            margin: 15px 0;
            background: rgba(255,255,255,0.9);
            border-radius: 15px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.05);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        .group-member::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(127,95,255,0.1), transparent);
            transition: all 0.5s;
        }
        .group-member:hover {
            transform: translateX(10px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .group-member:hover::before {
            left: 100%;
        }
        .group-number {
            color: var(--primary);
            font-size: 1.4em;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 10px;
            position: relative;
        }
        .group-number::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }
        .empty-slot {
            color: #aaa;
            font-style: italic;
            animation: pulse-empty 2s infinite;
        }

        .config-panel {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-bottom: 30px;
        }
        .input-group {
            position: relative;
            background: rgba(255,255,255,0.9);
            border-radius: 15px;
            padding: 10px 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        .input-group label {
            color: var(--primary);
            font-size: 14px;
            margin-right: 10px;
        }
        .input-group input {
            width: 80px;
            padding: 10px 15px;
            border: 2px solid rgba(127,95,255,0.2);
            border-radius: 10px;
            font-size: 16px;
            text-align: center;
            transition: all 0.3s;
            font-family: inherit;
        }
        .input-group input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(127,95,255,0.2);
            outline: none;
        }

        .export-btn {
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            margin-left: 20px;
            padding: 12px 30px;
        }
        .export-btn:hover {
            box-shadow: 0 5px 20px rgba(76,175,80,0.3);
        }

        /* 抽签器专属样式 (.containerr) */
        .containerr {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            padding: 40px;
            width: auto;
            margin: 50px 20% 50px 20%;
            position: relative;
            z-index: 1;
            border: 1px solid rgba(255,255,255,0.3);
            text-align: center;
            overflow: hidden;
        }

        h2 {
            margin: 0 0 2rem 0;
            font-size: 2.8em;
            position: relative;
            background: linear-gradient(45deg, #64b5f6, #ba68c8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .input-areaaa {
            margin: 2rem 0;
            position: relative;
        }

        .button-grouppp {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            margin: 2rem 0;
        }

        .draw-btnnn, .reset-btnnn {
            padding: 16px 40px;
            border: none;
            border-radius: 35px;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-family: inherit;
        }

        .draw-btnnn {
            background: linear-gradient(45deg, #64b5f6, #42a5f5);
            color: white;
            box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
        }
        .draw-btnnn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
        }

        .reset-btnnn {
            background: linear-gradient(45deg, #ba68c8, #ab47bc);
            color: white;
            box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3);
        }
        .reset-btnnn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(186, 104, 200, 0.4);
        }

        .animation-boxxx {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            min-height: 40px;
            font-size: 1.6em;
            color: #2c3e50;
            border: 1px dashed #64b5f6;
        }

        .result {
            font-size: 2.5em;
            color: white;
            font-weight: 700;
            margin: 30px 0;
            padding: 25px 40px;
            background: linear-gradient(45deg, #64b5f6, #ba68c8);
            border-radius: 15px;
            display: inline-block;
            animation: resultShow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 10px 30px rgba(100, 181, 246, 0.3);
            position: relative;
            overflow: hidden;
        }
        .result::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(45deg);
            animation: shine 1.5s ease-out 0.5s;
        }

        .notice {
            color: #95a5a6;
            font-size: 0.95em;
            margin-top: 25px;
            opacity: 0.9;
            position: relative;
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background: linear-gradient(45deg, #64b5f6, #ba68c8);
            animation: confettiFall 3s ease-out;
        }

        /* 响应式保留不变 */
        @media screen and (max-width: 1024px) {
            .container, .containerr {
                margin: 50px 15% 50px 15% !important;
            }
        }
        @media screen and (max-width: 768px) {
            .container, .containerr {
                margin: 15px !important;
                padding: 25px;
                border-radius: 15px;
            }
            h1, h2 {
                font-size: 2em !important;
                margin-bottom: 25px;
            }
            textarea {
                height: 150px;
                padding: 15px;
                font-size: 14px;
            }
            .button-container {
                flex-direction: column;
                gap: 10px;
            }
            button, .draw-btnnn, .reset-btnnn {
                width: 100%;
                padding: 14px 20px;
                font-size: 16px;
            }
            .config-panel {
                flex-direction: column;
                gap: 10px;
            }
            .input-group {
                width: 100%;
                padding: 8px 15px;
            }
            .results-container {
                grid-template-columns: 1fr;
            }
            .group-card {
                padding: 15px;
            }
            .group-member {
                padding: 12px;
                font-size: 14px;
            }
            .result {
                font-size: 1.8em;
                padding: 15px 25px;
            }
            .animation-boxxx {
                font-size: 1.2em;
                padding: 15px;
            }
            .button-grouppp {
                flex-direction: column;
            }
        }
        @media screen and (max-width: 480px) {
            .container, .containerr {
                padding: 15px;
                margin: 10px !important;
            }
            h1, h2 {
                font-size: 1.6em !important;
            }
            textarea {
                height: 120px;
                padding: 12px;
            }
            .result {
                font-size: 1.5em;
                padding: 12px 20px;
            }
        }