        /* ================= 无 body, *, html 选择器 ================= */
        .lottery-app {
            max-width: 1100px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
            background: linear-gradient(145deg, #f0f4ff 0%, #e9eef9 100%);
            min-height: 100vh;
            box-sizing: border-box;
        }
        
        .lottery-app, .lottery-app * {
            box-sizing: border-box;
        }
        
        /* 标题居中 */
        .title-section {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        h1 {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb4d);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
            margin: 0 0 0.5rem 0;
            font-weight: 700;
        }
        .sub {
            color: #4a5568;
            font-size: 0.95rem;
            background: rgba(255,255,240,0.6);
            display: inline-block;
            padding: 0.3rem 1rem;
            border-radius: 40px;
            backdrop-filter: blur(2px);
        }
        
        /* 上下布局 */
        .vertical-cards {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        /* 卡片样式 — 无悬停位移，内部内容居中 */
        .lottery-card {
            width: 100%;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(12px);
            border-radius: 2rem;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0,0,0,0.05);
            padding: 1.8rem 1.5rem 2rem;
            transition: box-shadow 0.2s ease, background 0.2s ease;
            border: 1px solid rgba(255,255,255,0.6);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .lottery-card:hover {
            background: rgba(255, 255, 255, 0.85);
            box-shadow: 0 22px 38px -14px rgba(0, 0, 0, 0.25);
            transform: none;
        }
        
        .card-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px dashed rgba(100, 100, 140, 0.3);
            padding-bottom: 0.75rem;
            width: 100%;
        }
        .card-icon {
            font-size: 2rem;
            background: linear-gradient(145deg, #3b3b5e, #1f1f3a);
            width: 50px;
            height: 50px;
            border-radius: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 6px 12px -6px rgba(0,0,0,0.2);
        }
        .card-header h2 {
            font-size: 1.8rem;
            margin: 0;
            font-weight: 600;
            color: #1e293b;
            letter-spacing: -0.3px;
        }
        .card-badge {
            background: #2c3e66;
            color: white;
            padding: 0.2rem 0.7rem;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 500;
            margin-left: 0.5rem;
        }
        
        /* 结果展示区域 */
        .result-area {
            background: #ffffffcc;
            border-radius: 1.5rem;
            padding: 1.5rem;
            text-align: center;
            margin: 1.5rem 0;
            min-height: 130px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 1px 3px #00000010, 0 4px 8px rgba(0,0,0,0.02);
            border: 1px solid rgba(255,255,255,0.9);
        }
        .result-text {
            font-size: 1.8rem;
            font-weight: 700;
            color: #0f172a;
            word-break: break-word;
            text-align: center;
        }
        .map-result .result-text {
            font-size: 1.3rem;
            line-height: 1.4;
        }
        @media (max-width: 640px) {
            .result-text { font-size: 1.4rem; }
            .map-result .result-text { font-size: 1rem; }
            h1 { font-size: 1.9rem; }
        }
        
        /* 动画 */
        .result-text.animate-draw {
            animation: elegantPop 0.32s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }
        @keyframes elegantPop {
            0% { opacity: 0; transform: scale(0.85) translateY(8px); }
            60% { opacity: 1; transform: scale(1.02) translateY(-2px); }
            100% { opacity: 1; transform: scale(1) translateY(0); }
        }
        
        /* 按钮组 */
        .button-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 1rem;
            width: 100%;
        }
        .btn {
            border: none;
            font-weight: 600;
            padding: 0.8rem 1.8rem;
            border-radius: 60px;
            font-size: 1rem;
            cursor: pointer;
            font-family: inherit;
            background: white;
            color: #1e293b;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }
        .btn-primary {
            background: linear-gradient(105deg, #2c3e66, #1e2a4a);
            color: white;
            box-shadow: 0 8px 18px -6px #1e2a4a60;
        }
        .btn-primary:hover {
            background: linear-gradient(105deg, #3e5a82, #2a3a5e);
            transform: scale(0.96);
        }
        .btn-secondary {
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            color: #334155;
        }
        .btn-secondary:hover {
            background: #e6edf4;
            transform: translateY(-2px);
        }
        .btn:active {
            transform: translateY(1px);
        }
        
        /* 历史记录区域 - 表格样式 */
        .history-section {
            width: 100%;
            margin-top: 1.2rem;
            background: rgba(245, 245, 255, 0.5);
            border-radius: 1.2rem;
            padding: 0.8rem;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,240,0.6);
        }
        .history-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: #2c3e66;
            letter-spacing: 0.5px;
            margin-bottom: 0.6rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            justify-content: center;
        }
        .history-table-wrapper {
            max-height: 200px;
            overflow-y: auto;
            border-radius: 0.8rem;
        }
        .history-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 0.8rem;
        }
        .history-table th {
            background: rgba(44, 62, 102, 0.2);
            padding: 0.4rem 0.5rem;
            text-align: left;
            font-weight: 600;
            color: #1e293b;
            border-bottom: 1px solid #cbd5e1;
            position: sticky;
            top: 0;
            backdrop-filter: blur(4px);
        }
        .history-table td {
            padding: 0.4rem 0.5rem;
            border-bottom: 1px solid #e2e8f0;
            color: #334155;
            word-break: break-word;
        }
        .history-table tr:last-child td {
            border-bottom: none;
        }
        .empty-history {
            text-align: center;
            color: #6c7a91;
            font-size: 0.7rem;
            padding: 0.8rem;
            font-style: italic;
        }
        .clear-history-btn {
            background: none;
            border: none;
            font-size: 0.65rem;
            color: #7e5a5a;
            cursor: pointer;
            margin-left: 0.5rem;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .clear-history-btn:hover {
            opacity: 1;
            text-decoration: underline;
        }
        
        /* 极隐蔽重置权重按钮 */
        .stealth-reset {
            text-align: center;
            font-size: 0.6rem;
            color: #9aa9bf;
            margin-top: 0.5rem;
            opacity: 0.4;
            transition: opacity 0.2s;
            cursor: pointer;
            user-select: none;
        }
        .stealth-reset:hover {
            opacity: 0.8;
            color: #b91c1c;
            text-decoration: underline;
        }
        
        .card-footer-note {
            font-size:0.7rem; 
            text-align:center; 
            margin-top:1rem; 
            color:#5a6e8a;
            width: 100%;
        }
        .security-note {
            text-align: center;
            font-size: 0.75rem;
            color: #4a5b7a;
            background: rgba(255,255,245,0.7);
            padding: 0.5rem 1rem;
            border-radius: 60px;
            display: inline-block;
            width: auto;
            margin: 1rem auto 0;
            backdrop-filter: blur(4px);
        }
        .footer-note {
            text-align: center;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(0,0,0,0.05);
            color: #4b5568;
            font-size: 0.8rem;
            position: relative;
        }
        .flex-center {
            display: flex;
            justify-content: center;
        }