  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #0c1e3e, #1a2a6c, #0c1e3e);
            color: #fff;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-size: 400% 400%;
            animation: gradientBG 20s ease infinite;
            position: relative;
            overflow-x: hidden;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .container {
            width: 100%;
            max-width: 900px;
            background: rgba(10, 15, 30, 0.85);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
            margin: 20px 0;
            backdrop-filter: blur(12px);
            border: 1px solid rgba(100, 150, 255, 0.2);
            position: relative;
            z-index: 2;
        }
        
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%238a2be2" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff8c00" stop-opacity="0.1"/></linearGradient></defs><path d="M20,20 Q100,0 180,20 L180,180 Q100,200 20,180 Z" fill="url(%23grad)"/></svg>');
            background-size: cover;
            opacity: 0.15;
            z-index: 1;
        }
        
        header {
            text-align: center;
            padding: 35px 20px;
            background: linear-gradient(to right, rgba(26, 42, 108, 0.7), rgba(138, 43, 226, 0.7));
            border-bottom: 3px solid #c5a568;
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,215,0,0.1)"/></svg>');
            background-size: cover;
            opacity: 0.3;
        }
        
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
            background: linear-gradient(to right, #ffd700, #ffb347, #ff8c00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 1px;
            position: relative;
            z-index: 2;
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #e0e0ff;
            max-width: 700px;
            margin: 15px auto 0;
            line-height: 1.6;
            position: relative;
            z-index: 2;
        }
        
        .content {
            padding: 30px;
            display: flex;
            flex-direction: column;
            min-height: 550px;
        }
        
        .question-container {
            display: none;
            animation: fadeIn 0.6s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(25px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .question-container.active {
            display: block;
        }
        
        .question-title {
            font-size: 1.8rem;
            margin-bottom: 25px;
            color: #ffd700;
            text-align: center;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }
        
        .question-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 3px;
            background: linear-gradient(to right, transparent, #ffd700, transparent);
        }
        
        .options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 18px;
            margin-bottom: 30px;
        }
        
        .option {
            background: rgba(40, 45, 70, 0.8);
            border: 2px solid #3a4570;
            border-radius: 15px;
            padding: 22px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .option::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: #4a90e2;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }
        
        .option:hover {
            transform: translateY(-5px);
            border-color: #ffd700;
            box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
            background: rgba(60, 65, 100, 0.8);
        }
        
        .option.selected {
            border-color: #ff8c00;
            background: rgba(90, 60, 0, 0.6);
            box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
        }
        
        .option.selected::before {
            transform: scaleX(1);
            background: #ff8c00;
        }
        
        .option-icon {
            font-size: 2.8rem;
            margin-right: 18px;
            min-width: 55px;
            text-align: center;
            color: #ffd700;
            transition: transform 0.3s ease;
        }
        
        .option:hover .option-icon {
            transform: scale(1.1);
        }
        
        .option-text {
            flex: 1;
        }
        
        .option-title {
            font-size: 1.35rem;
            margin-bottom: 10px;
            color: #ffd700;
        }
        
        .option-desc {
            font-size: 1rem;
            color: #c0c0ff;
            line-height: 1.5;
        }
        
        .buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 25px;
        }
        
        .btn {
            padding: 15px 35px;
            font-size: 1.15rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #ff8c00, #ff4500, #ff8c00);
            background-size: 200% 200%;
            z-index: -1;
            transition: all 0.5s ease;
        }
        
        .btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        }
        
        .btn:hover::before {
            background-position: 100% 100%;
        }
        
        .btn:active {
            transform: translateY(2px);
        }
        
        .btn i {
            margin-right: 10px;
        }
        
        .btn-prev {
            background: linear-gradient(45deg, #1a2a6c, #4a90e2);
        }
        
        .btn-prev::before {
            background: linear-gradient(45deg, #1a2a6c, #4a90e2, #1a2a6c);
            background-size: 200% 200%;
        }
        
        .btn-disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #555;
        }
        
        .btn-disabled:hover {
            transform: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }
        
        .progress-container {
            margin: 25px 0;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            height: 14px;
            overflow: hidden;
            box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
        }
        
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #1a2a6c, #4a90e2, #ff8c00);
            width: 0%;
            transition: width 0.7s ease;
            box-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
        }
        
        .result-container {
            display: none;
            text-align: center;
            padding: 30px;
            animation: fadeIn 1s ease;
        }
        
        .result-title {
            font-size: 2.5rem;
            margin-bottom: 25px;
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .race-card {
            background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.9));
            border-radius: 20px;
            padding: 35px;
            margin: 25px auto;
            max-width: 650px;
            border: 4px solid;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
        }
        
        .race-card::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            transform: rotate(30deg);
        }
        
        .race-icon {
            font-size: 6rem;
            margin-bottom: 25px;
            color: #ffd700;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0); }
        }
        
        .race-name {
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 3px;
            font-weight: bold;
            text-shadow: 0 0 10px currentColor;
        }
        
        .race-desc {
            font-size: 1.2rem;
            line-height: 1.7;
            margin-bottom: 30px;
            color: #e0e0ff;
        }
        
        .traits {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 18px;
            margin: 25px 0;
        }
        
        .trait {
            background: rgba(80, 80, 120, 0.7);
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 1rem;
            border: 1px solid rgba(255, 215, 0, 0.3);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }
        
        .restart-btn {
            margin-top: 25px;
            background: linear-gradient(45deg, #2e7d32, #66bb6a);
        }
        
        .restart-btn::before {
            background: linear-gradient(45deg, #2e7d32, #66bb6a, #2e7d32);
            background-size: 200% 200%;
        }
        
        .view-all-btn {
            background: linear-gradient(45deg, #8a2be2, #5d3fd3);
            margin-top: 15px;
        }
        
        .view-all-btn::before {
            background: linear-gradient(45deg, #8a2be2, #5d3fd3, #8a2be2);
            background-size: 200% 200%;
        }
        
        .human { border-color: #4a90e2; }
        .dwarf { border-color: #8a6d3b; }
        .orc { border-color: #b21f1f; }
        .fairy { border-color: #9c27b0; }
        .elf { border-color: #4CAF50; }
        .demon { border-color: #ff4500; }
        .god { border-color: #ffd700; }
        
        .human .race-name { color: #4a90e2; }
        .dwarf .race-name { color: #c5a568; }
        .orc .race-name { color: #e74c3c; }
        .fairy .race-name { color: #9c27b0; }
        .elf .race-name { color: #2ecc71; }
        .demon .race-name { color: #ff4500; }
        .god .race-name { color: #ffd700; }
        
        .notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(178, 31, 31, 0.9);
            color: white;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 1.1rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
            animation: slideIn 0.5s ease, fadeOut 0.5s ease 2.5s;
        }
        
        @keyframes slideIn {
            from { top: -50px; opacity: 0; }
            to { top: 20px; opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        .star-gate {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 25px;
            background: rgba(138,43,226,0.8);
            color: #fff;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 0 25px rgba(138,43,226,0.5);
            z-index: 100;
        }

        .star-gate:hover {
            transform: translateX(-50%) scale(1.05);
            background: rgba(138,43,226,1);
        }
        
        /* 全种族资料容器 */
        .all-races-container {
            display: none;
            margin-top: 30px;
            background: rgba(20, 25, 50, 0.8);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
        }
        
        .all-races-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 25px;
            color: #ffd700;
            padding-bottom: 15px;
            border-bottom: 2px solid #ff8c00;
        }
        
        .races-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .race-info-card {
            background: rgba(30, 35, 60, 0.8);
            border-radius: 15px;
            padding: 20px;
            border: 2px solid;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .race-info-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
        }
        
        .race-info-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .race-info-icon {
            font-size: 2.5rem;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .race-info-name {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .race-info-content {
            font-size: 1rem;
            line-height: 1.6;
            color: #e0e0ff;
        }
        
        .race-info-content p {
            margin-bottom: 10px;
        }
        
        .race-info-tag {
            display: inline-block;
            background: rgba(255, 215, 0, 0.1);
            padding: 5px 15px;
            border-radius: 15px;
            font-size: 0.9rem;
            margin-top: 10px;
            border: 1px solid rgba(255, 215, 0, 0.3);
        }
        
        .human-card { border-color: #4a90e2; }
        .dwarf-card { border-color: #c5a568; }
        .orc-card { border-color: #e74c3c; }
        .fairy-card { border-color: #9c27b0; }
        .elf-card { border-color: #2ecc71; }
        .demon-card { border-color: #ff4500; }
        .god-card { border-color: #ffd700; }
        
        .human-card .race-info-name { color: #4a90e2; }
        .dwarf-card .race-info-name { color: #c5a568; }
        .orc-card .race-info-name { color: #e74c3c; }
        .fairy-card .race-info-name { color: #9c27b0; }
        .elf-card .race-info-name { color: #2ecc71; }
        .demon-card .race-info-name { color: #ff4500; }
        .god-card .race-info-name { color: #ffd700; }
        
        .human-card .race-info-icon { background: rgba(74, 144, 226, 0.2); color: #4a90e2; }
        .dwarf-card .race-info-icon { background: rgba(197, 165, 104, 0.2); color: #c5a568; }
        .orc-card .race-info-icon { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
        .fairy-card .race-info-icon { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }
        .elf-card .race-info-icon { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
        .demon-card .race-info-icon { background: rgba(255, 69, 0, 0.2); color: #ff4500; }
        .god-card .race-info-icon { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
        
        .close-all-races {
            text-align: center;
            margin-top: 25px;
        }
        
        .race-detail-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .detail-title {
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 8px;
        }
        
        @media (max-width: 768px) {
            .options {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 2.3rem;
            }
            
            .question-title {
                font-size: 1.5rem;
            }
            
            .race-name {
                font-size: 2rem;
            }
            
            .btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
            
            .races-grid {
                grid-template-columns: 1fr;
            }
        }