        :root {
            --primary: #a94f2a; /* 枫叶红 */
            --secondary: #c8872d; /* 低饱和金 */
            --accent: #7d351e; /* 深红棕 */
            --snow-white: #fffaf1; /* 暖白 */
            --ice-blue: #f3e5cf; /* 浅杏 */
            --dark-blue: #382319; /* 深栗棕 */
            --frost: #e5c48f; /* 秋叶金 */
            
            /* 秋季主题变量 */
            --bg-primary: #f5efe2; /* 雾米白 */
            --bg-secondary: #ead2ad; /* 浅麦色 */
            --bg-tertiary: #d5ae78; /* 枯叶棕 */
            --text-primary: #382319; /* 深栗棕文本 */
            --text-secondary: #69452e; /* 柔和棕文本 */
            --card-bg: rgba(255, 250, 241, 0.90); /* 半透明暖白卡片 */
            --input-bg: rgba(255, 255, 255, 0.92); /* 浅色输入框 */
            --border-color: rgba(125, 53, 30, 0.24); /* 红棕色边框 */
            --glow-primary: rgba(169, 79, 42, 0.32); /* 枫叶红辉光 */
            --glow-secondary: rgba(200, 135, 45, 0.30); /* 秋金辉光 */
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f7f0e4 0%, #ead6b7 100%);
            color: var(--text-primary);
            min-height: 100vh;
            padding: 20px;
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
            position: relative;
            isolation: isolate;
        }
        
        /* 秋季飘落枫叶背景 */
        .autumn-decoration {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .cover-leaves {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }

        .cover-leaves .autumn-leaf {
            --leaf-opacity: 0.28;
        }
        
        .autumn-leaf {
            position: absolute;
            top: -10vh;
            will-change: transform, opacity;
            width: var(--leaf-size, 18px);
            height: calc(var(--leaf-size, 18px) * 0.58);
            opacity: var(--leaf-opacity, 0.38);
            user-select: none;
            border-radius: 100% 0 100% 0;
            background: linear-gradient(135deg, #c98a35, #9a4226);
            box-shadow: 0 2px 5px rgba(56, 35, 25, 0.14);
        }

        .autumn-leaf::after {
            content: '';
            position: absolute;
            width: 58%;
            height: 1px;
            top: 50%;
            left: 22%;
            background: rgba(255, 250, 241, 0.58);
            transform: rotate(-28deg);
            transform-origin: left center;
        }

        .autumn-leaf.leaf-b {
            border-radius: 0 100% 0 100%;
            background: linear-gradient(135deg, #b85a31, #7d351e);
        }

        .autumn-leaf.leaf-c {
            width: calc(var(--leaf-size, 18px) * 0.76);
            height: calc(var(--leaf-size, 18px) * 0.76);
            border-radius: 50% 8% 50% 8%;
            background: linear-gradient(135deg, #d6ae59, #a7662a);
        }

        @keyframes leafFall {
            0% { transform: translate3d(0, -12vh, 0) rotate(var(--start-rot)); opacity: 0; }
            10% { opacity: var(--leaf-opacity, 0.38); }
            88% { opacity: var(--leaf-opacity, 0.38); }
            100% { transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rot-end)); opacity: 0; }
        }
        
        /* 封面覆盖层样式 - 秋季主题（简约） */
        .cover-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                linear-gradient(135deg, #f7f0e4 0%, #ead6b7 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9998;
            transition: opacity 0.8s ease, visibility 0.8s ease;
            overflow: hidden;
        }

        .cover-overlay.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .cover-inner {
            text-align: center;
            padding: 20px;
            animation: coverRise 0.9s ease both;
            position: relative;
            z-index: 2;
        }
        
        @keyframes coverRise {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .cover-title {
            font-size: 3.4rem;
            line-height: 1.25;
            font-weight: 800;
            letter-spacing: 2px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 48%, var(--secondary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            min-height: 4.4rem;
            text-shadow: 0 0 18px var(--glow-primary);
            transition: opacity 0.28s ease, transform 0.28s ease;
        }
        
        .cover-cursor {
            display: inline-block;
            width: 4px;
            height: 3.2rem;
            margin-left: 4px;
            vertical-align: -0.55rem;
            background: var(--accent);
            border-radius: 2px;
            animation: blink 0.9s step-end infinite;
            box-shadow: 0 0 10px rgba(210, 105, 30, 0.6);
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        
        .cover-subtitle {
            margin-top: 14px;
            font-size: 1.3rem;
            color: var(--text-secondary);
            letter-spacing: 6px;
            opacity: 0;
            transition: opacity 0.8s ease;
        }

        .cover-subtitle.show { opacity: 1; }

        .cover-inner.is-loading .cover-title,
        .cover-inner.is-loading .cover-subtitle {
            opacity: 0;
            transform: translateY(-8px);
        }
        
        .enter-btn {
            position: relative;
            margin-top: 40px;
            width: 220px;
            height: 56px;
            padding: 0;
            font-size: 1.15rem;
            font-weight: 600;
            letter-spacing: 2px;
            color: #7a3a0e;
            background: rgba(255, 248, 235, 0.30);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 40px;
            cursor: pointer;
            opacity: 0;
            transform: translateY(12px);
            pointer-events: none;
            overflow: hidden;
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
                        0 8px 20px rgba(210, 105, 30, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.6s ease, transform 0.4s ease,
                        box-shadow 0.3s ease, background 0.3s ease,
                        border-color 0.3s ease,
                        width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                        height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                        border-radius 0.5s ease, border-width 0.5s ease;
        }
        
        .enter-btn.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        
        .enter-btn:hover {
            background: rgba(255, 248, 235, 0.45);
            border-color: rgba(255, 255, 255, 0.7);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7),
                        0 12px 28px rgba(210, 105, 30, 0.4);
        }
        
        #enterBtnText {
            transition: opacity 0.35s ease, transform 0.35s ease;
            white-space: nowrap;
        }
        
        .enter-btn.loading {
            opacity: 0;
            transform: translateY(-8px) scale(0.96);
            pointer-events: none;
        }

        .cover-loader {
            position: fixed;
            top: 50%;
            left: 50%;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            width: min(300px, calc(100vw - 48px));
            gap: 14px;
            text-align: center;
            opacity: 0;
            transform: translate(-50%, calc(-50% + 12px));
            pointer-events: none;
            transition: opacity 0.28s ease, transform 0.28s ease;
        }

        .cover-loader.show {
            opacity: 1;
            transform: translate(-50%, -50%);
        }

        .loading-progress {
            width: 100%;
            flex: 0 0 12px;
            height: 12px;
            overflow: hidden;
            border: 1px solid rgba(125, 53, 30, 0.20);
            border-radius: 999px;
            background: rgba(255, 251, 244, 0.62);
            box-shadow: inset 0 1px 3px rgba(56, 35, 25, 0.10), 0 8px 20px rgba(125, 53, 30, 0.12);
        }

        .loading-progress-fill {
            --progress: 0;
            width: 100%;
            height: 100%;
            transform: scaleX(var(--progress));
            transform-origin: left center;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
            box-shadow: 0 0 12px rgba(210, 105, 30, 0.42);
        }

        .loading-percent {
            margin: 0;
            color: var(--accent);
            font-size: 1.25rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

        .loading-message {
            margin: 0;
            color: var(--text-secondary);
            font-size: 1rem;
            letter-spacing: 1px;
        }
        
        /* 封面响应式 */
        @media (max-width: 560px) {
            .cover-title { font-size: 2.4rem; min-height: 3.2rem; letter-spacing: 1px; }
            .cover-subtitle { font-size: 1.1rem; letter-spacing: 4px; }
            .enter-btn { width: 200px; }
            .autumn-leaf { --leaf-size: 13px; }
        }

        /* 主页面容器 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease, transform 0.8s ease;
            position: relative;
            z-index: 2;
        }
        
        /* 封面关闭、正式进入后，主页面淡入 */
        body.site-entered .container {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 页面内容样式 */
        header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .header-controls {
            position: absolute;
            top: 6px;
            right: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-action {
            width: auto;
            min-width: 0;
            min-height: 42px;
            padding: 9px 14px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            font: inherit;
            font-size: 0.9rem;
            font-weight: 600;
            line-height: 1;
            white-space: nowrap;
            color: var(--text-secondary);
            box-shadow: 0 2px 7px rgba(93, 47, 13, 0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .header-action:hover {
            background: rgba(255, 250, 241, 0.98);
            border-color: var(--accent);
            color: var(--accent);
            box-shadow: 0 5px 12px rgba(93, 47, 13, 0.14);
        }

        .header-action:focus-visible {
            outline: 3px solid rgba(200, 135, 45, 0.34);
            outline-offset: 2px;
        }

        .header-action.active {
            background: rgba(224, 142, 11, 0.22);
            color: var(--accent);
        }

        .header-icon-action {
            width: 42px;
            min-width: 42px;
            padding: 0;
            display: grid;
            place-items: center;
            font-size: 1.15rem;
        }
        
        .exclude-icon {
            font-size: 1.2rem;
        }
        
        /* 主标题：秋季落日枫叶渐变 */
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 48%, var(--secondary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 14px var(--glow-primary);
            padding: 10px 0;
            position: relative;
            background-size: 100% 100%;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 110px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            border-radius: 3px;
        }
        
        .autumn-title {
            font-size: 1.5rem;
            margin-top: 5px;
            color: var(--accent);
            font-weight: 300;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 20px;
            text-shadow: 0 1px 2px rgba(255, 248, 235, 0.4);
        }
        
        .controls {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.14), 0 0 20px rgba(210, 105, 30, 0.18);
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        
        .controls::before {
            display: none;
        }
        
        .controls:hover {
            transform: none;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.14), 0 0 20px rgba(210, 105, 30, 0.18);
        }
        
        .control-group {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .control-item {
            flex: 1;
            min-width: 200px;
        }
        
        .control-item-full {
            flex: 100%;
            min-width: 100%;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-secondary);
        }
        
        input, select, button {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: none;
            background: var(--input-bg);
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border: 1px solid rgba(210, 105, 30, 0.25);
        }
        
        input:focus, select:focus {
            outline: none;
            box-shadow: 0 0 0 2px var(--accent), 0 0 15px var(--glow-primary);
            border-color: var(--secondary);
        }
        
        button {
            background: var(--accent);
            color: var(--button-text, white);
            font-weight: bold;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(210, 105, 30, 0.45);
            border: none;
        }
        
        button:hover {
            box-shadow: 0 7px 20px rgba(210, 105, 30, 0.65);
            background: var(--primary);
        }
        
        button:active {
            transform: translateY(1px);
            box-shadow: 0 2px 10px rgba(210, 105, 30, 0.35);
        }
        
        button:disabled {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        button:disabled:hover {
            transform: none;
            box-shadow: none;
        }
        
        button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }
        
        button:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }
        
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 10px;
        }
        
        .toggle-label {
            margin-right: 10px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--toggle-off-bg, #e8b878);
            transition: 0.4s;
            border-radius: 30px;
            box-shadow: inset 0 0 5px rgba(93,47,13,0.12);
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.12);
        }
        
        input:checked + .slider {
            background: var(--toggle-on-bg, var(--accent));
            box-shadow: 0 0 10px var(--glow-primary);
        }
        
        input:checked + .slider:before {
            transform: translateX(30px);
        }
        
        .gender-info {
            display: none;
            margin-top: 10px;
            margin-bottom: 25px;
            padding: 15px;
            background: var(--input-bg);
            border-radius: 8px;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }
        
        /* 排除名单弹窗样式 - 秋季主题 (暖橙枫叶配色) */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(56, 35, 25, 0.58);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 24px;
            overflow-y: auto;
            backdrop-filter: blur(8px);
        }
        
        .modal {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 28px 30px;
            width: min(700px, 100%);
            max-width: 700px;
            max-height: min(760px, calc(100vh - 48px));
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.20), 0 0 30px rgba(210, 105, 30, 0.35);
            border: 1px solid var(--border-color);
            animation: modalFadeIn 0.3s ease;
            position: relative;
            backdrop-filter: blur(10px);
        }
        
        .modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--secondary));
            border-radius: 15px 15px 0 0;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.9) translateY(-20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .modal-title {
            font-size: 1.35rem;
            font-weight: bold;
            color: var(--text-primary);
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            width: 44px;
            height: 44px;
            padding: 0;
            display: grid;
            place-items: center;
            border-radius: 8px;
            transition: color 0.3s ease;
        }
        
        .close-modal:hover {
            color: var(--accent);
            transform: none;
            box-shadow: none;
        }
        
        /* 排除名单列表区域 - 秋季暖色配色 */
        .exclude-list {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 14px;
            max-height: min(52vh, 470px);
            overflow-y: auto;
            padding: 12px;
            background: rgba(249, 226, 179, 0.42);
            border-radius: 10px;
            box-shadow: inset 0 0 6px rgba(210, 105, 30, 0.10);
            border: 1px solid rgba(210, 105, 30, 0.28);
            backdrop-filter: blur(6px);
        }
        
        /* 自定义滚动条 秋季风格 */
        .exclude-list::-webkit-scrollbar {
            width: 6px;
        }
        .exclude-list::-webkit-scrollbar-track {
            background: rgba(224, 142, 11, 0.2);
            border-radius: 10px;
        }
        .exclude-list::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--accent), var(--secondary));
            border-radius: 10px;
        }
        
        .exclude-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 8px;
            transition: all 0.25s ease;
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid rgba(210, 105, 30, 0.4);
            backdrop-filter: blur(2px);
            min-height: 48px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        }
        
        .exclude-item:hover {
            background: rgba(255, 248, 235, 0.98);
            border-color: var(--accent);
            box-shadow: 0 8px 18px rgba(93, 47, 13, 0.08), 0 0 0 2px rgba(210, 105, 30, 0.18);
        }
        
        .exclude-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            accent-color: var(--accent);
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: none;
            background: white;
        }
        
        .exclude-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 0.94rem;
            color: var(--text-primary);
            cursor: pointer;
            flex: 1;
            font-weight: 500;
        }
        
        .student-id-badge {
            background: linear-gradient(135deg, var(--accent), var(--primary));
            color: white;
            font-size: 0.75rem;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 24px;
            min-width: 36px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            letter-spacing: 0.5px;
        }
        
        .gender-indicator {
            font-size: 0.8rem;
            padding: 3px 8px;
            border-radius: 40px;
            background: rgba(255,255,255,0.7);
            font-weight: 600;
        }
        
        .male-indicator {
            background: rgba(210, 105, 30, 0.22);
            color: #8b3a00;
            border: 1px solid rgba(210, 105, 30, 0.5);
        }
        
        .female-indicator {
            background: rgba(183, 65, 14, 0.20);
            color: #922b21;
            border: 1px solid rgba(183, 65, 14, 0.5);
        }
        
        .modal-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap;
        }

        .modal-intro {
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.6;
        }
        
        .counter-info {
            color: var(--text-secondary);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(224, 142, 11, 0.22);
            padding: 5px 14px;
            border-radius: 30px;
            font-weight: 500;
            backdrop-filter: blur(2px);
        }
        
        .modal-actions button {
            width: auto;
            padding: 8px 20px;
            border-radius: 40px;
            font-weight: 500;
        }

        .reset-modal {
            width: min(480px, 100%);
            max-width: 480px;
        }

        .reset-options {
            display: grid;
            gap: 10px;
            margin-top: 18px;
        }

        .reset-option {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 48px;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: rgba(249, 226, 179, 0.30);
            color: var(--text-primary);
            cursor: pointer;
        }

        .reset-option:hover {
            border-color: var(--accent);
            background: rgba(249, 226, 179, 0.52);
        }

        .reset-option input {
            width: 18px;
            height: 18px;
            accent-color: var(--accent);
            flex: 0 0 auto;
        }

        .reset-option span {
            font-size: 0.94rem;
            line-height: 1.4;
        }

        .reset-confirm-btn:disabled {
            cursor: not-allowed;
            opacity: 0.48;
            filter: grayscale(0.35);
            transform: none;
            box-shadow: none;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .animation-area {
            position: relative;
            min-height: 300px;
            background: var(--card-bg);
            border-radius: 15px;
            margin-bottom: 30px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.14), 0 0 20px rgba(210, 105, 30, 0.18);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
        }
        
        .lottery-animation {
            display: none;
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .flashing-name {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3.5rem;
            font-weight: bold;
            text-align: center;
            color: var(--accent);
            text-shadow: 0 0 15px rgba(224, 142, 11, 0.8);
            z-index: 10;
            transition: all 0.1s ease;
            animation: nameGlow 1.5s infinite alternate;
        }
        
        @keyframes nameGlow {
            0% { text-shadow: 0 0 10px rgba(224, 142, 11, 0.8), 0 0 20px rgba(210, 105, 30, 0.6); }
            100% { text-shadow: 0 0 20px rgba(224, 142, 11, 1), 0 0 30px rgba(183, 65, 14, 0.8); }
        }
        
        .result-area {
            display: none;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.8s ease;
            max-height: 70vh;
            overflow-y: auto;
            width: 100%;
        }
        
        .result-card {
            background: linear-gradient(135deg, rgba(210, 105, 30, 0.16), rgba(224, 142, 11, 0.16));
            border-radius: 12px;
            padding: 20px;
            width: 180px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(93, 47, 13, 0.12), 0 0 10px rgba(210, 105, 30, 0.18);
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            animation: cardPop 0.5s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(5px);
        }
        
        .result-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--secondary));
        }
        
        @keyframes cardPop {
            0% { transform: scale(0.8) rotate(-3deg); opacity: 0; }
            100% { transform: scale(1) rotate(0); opacity: 1; }
        }
        
        .result-card:hover {
            box-shadow: 0 10px 25px rgba(93, 47, 13, 0.18), 0 0 15px var(--glow-primary);
        }
        
        .result-name {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--accent);
            text-shadow: 0 1px 2px rgba(255,248,235,0.4);
        }
        
        .result-id {
            font-size: 1.2rem;
            color: var(--text-secondary);
            background: rgba(93, 47, 13, 0.06);
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-block;
            box-shadow: inset 0 0 5px rgba(93,47,13,0.05);
        }
        
        .history-section {
            margin-top: 40px;
        }
        
        .history-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--accent);
            position: relative;
            display: inline-block;
        }
        
        .history-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--accent), transparent);
            border-radius: 2px;
        }
        
        .history-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .history-item {
            background: var(--card-bg);
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 0.9rem;
            border-left: 3px solid var(--accent);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .history-item:hover {
            box-shadow: 0 5px 10px rgba(93, 47, 13, 0.12);
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            justify-content: center;
        }
        
        .action-buttons button {
            flex: 1;
            max-width: 200px;
        }
        
        .copy-btn {
            background: var(--accent);
            box-shadow: 0 4px 15px rgba(210, 105, 30, 0.45);
        }
        
        .copy-btn:hover {
            box-shadow: 0 7px 20px rgba(210, 105, 30, 0.65);
        }
        
        .reset-btn {
            background: var(--primary);
            box-shadow: 0 4px 15px rgba(224, 142, 11, 0.45);
        }
        
        .reset-btn:hover {
            box-shadow: 0 7px 20px rgba(224, 142, 11, 0.65);
        }
        
        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            border-top: 1px solid var(--border-color);
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            background: var(--accent);
            color: var(--notification-text, #ffffff);
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(210, 105, 30, 0.55);
            transform: translateX(150%);
            transition: transform 0.3s ease;
            z-index: 1000;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(210, 105, 30, 0.45);
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .copy-area {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 10px;
            background: rgba(240, 180, 107, 0.95);
            color: var(--accent);
            text-align: center;
            z-index: 1001;
            transform: translateY(-105%);
            transition: transform 0.3s ease;
            border-bottom: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
            white-space: pre-line;
        }
        
        .copy-area.show {
            transform: translateY(0);
        }
        
        .changelog-modal {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            width: 90%;
            max-width: 700px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.20), 0 0 30px rgba(210, 105, 30, 0.35);
            border: 1px solid var(--border-color);
            animation: modalFadeIn 0.3s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(10px);
        }
        
        .changelog-modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--secondary));
            border-radius: 15px 15px 0 0;
        }
        
        .changelog-content {
            margin-bottom: 20px;
            overflow-y: auto;
            flex: 1;
            padding-right: 5px;
        }
        
        .changelog-content::-webkit-scrollbar {
            width: 6px;
        }
        
        .changelog-content::-webkit-scrollbar-track {
            background: rgba(210, 105, 30, 0.12);
            border-radius: 3px;
        }
        
        .changelog-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--accent), var(--secondary));
            border-radius: 3px;
        }
        
        .changelog-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .changelog-date {
            font-weight: bold;
            color: var(--accent);
            margin-bottom: 5px;
            font-size: 1.1rem;
        }
        
        .changelog-description {
            color: var(--text-secondary);
            line-height: 1.5;
        }
        
        .changelog-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .gender-modal {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 25px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(93, 47, 13, 0.20), 0 0 30px rgba(210, 105, 30, 0.35);
            border: 1px solid var(--border-color);
            animation: modalFadeIn 0.3s ease;
            position: relative;
            backdrop-filter: blur(10px);
        }
        
        .gender-modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--secondary));
            border-radius: 15px 15px 0 0;
        }
        
        .gender-controls {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 20px;
        }
        
        .gender-input-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .gender-label {
            min-width: 80px;
            font-weight: 500;
            color: var(--text-secondary);
        }
        
        .gender-input {
            flex: 1;
        }
        
        .gender-input input {
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .control-group { flex-direction: column; }
            .control-item { min-width: 100%; }
            h1 { font-size: 2rem; }
            .autumn-title { font-size: 1.2rem; }
            .flashing-name { font-size: 2.5rem; }
            .result-card { width: 140px; padding: 15px; }
            .result-name { font-size: 1.3rem; }
            .result-id { font-size: 1rem; }
            .header-controls { position: relative; top: auto; right: auto; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; }
            .modal,
            .changelog-modal { width: 100%; padding: 22px 18px; }
            .exclude-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
            .exclude-label { font-size: 0.9rem; }
            .modal-actions { flex-direction: column; align-items: stretch; }
            .modal-actions button { width: 100%; }
            .modal-action-buttons { width: 100%; }
            .modal-action-buttons button { flex: 1; }
            .counter-info { justify-content: center; }
            .autumn-leaf { --leaf-size: 15px; }
        }
        
        @media (max-width: 480px) {
            .result-card { width: 120px; padding: 10px; }
            .result-name { font-size: 1.1rem; }
            .exclude-list { grid-template-columns: 1fr; }
            .exclude-item { padding: 8px 10px; }
            .changelog-actions { margin-top: 4px; }
            .autumn-decoration { opacity: 0.72; }
        }

        @media (prefers-reduced-motion: reduce) {
            .autumn-decoration { display: none; }
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
            }
        }
