* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0055FF;
    --primary-light: #E6F0FF;
    --primary-dark: #0044DD;
    --text-primary: #000000;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --surface: #F7F7F7;
    --surface-dark: #F0F0F0;
    --border: #E5E5E5;
    --shadow: rgba(0, 0, 0, 0.08);
    --accent: #FF6B6B;
    --success: #51CF66;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #E8E8E8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Minecraft 风格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #E8E8E8;
    background-image: 
        /* 点缀层 - 白色点 */
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 90% 50%, rgba(220, 220, 220, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 15% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        /* 格子层 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(0, 0, 0, 0.03) 31px,
            rgba(0, 0, 0, 0.03) 32px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 31px,
            rgba(0, 0, 0, 0.03) 31px,
            rgba(0, 0, 0, 0.03) 32px
        ),
        /* 方块纹理 */
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            #F5F5F5 0deg 90deg,
            #EFEFEF 90deg 180deg,
            #F0F0F0 180deg 270deg,
            #F5F5F5 270deg 360deg
        );
    background-size: 
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px,
        32px 32px;
    background-position: 
        2px 3px,
        8px 12px,
        15px 7px,
        20px 25px,
        28px 18px,
        5px 22px,
        25px 15px,
        10px 5px,
        0 0,
        0 0,
        0 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Logo 容器 */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.education-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: all 0.3s ease;
}

.education-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 85, 255, 0.15));
}

.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid var(--border);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 85, 255, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #0088FF 50%, var(--primary) 100%);
}

.title {
    text-align: center;
    color: var(--text-primary);
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25em;
    font-weight: 400;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
}

/* 信息输入区 */
.info-section {
    max-width: 480px;
    margin: 0 auto;
}

.welcome-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0088FF 100%);
    color: white;
    padding: 32px 24px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.2);
}

.welcome-icon {
    font-size: 3em;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.welcome-card p {
    font-size: 1em;
    opacity: 0.9;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: -0.01em;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1em;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-group input:hover {
    border-color: var(--text-secondary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

.btn-start {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    letter-spacing: -0.01em;
}

.btn-start:hover {
    background: #0044DD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

.btn-start:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.register-link p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 游戏区 */
.game-section {
    text-align: center;
}

.player-info-display {
    background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7FF 100%);
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 48px;
    border: 2px solid rgba(0, 85, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.08);
}

.player-info-display p {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.player-info-display span {
    font-weight: 500;
    color: var(--text-primary);
}

/* 老虎机 */
.slot-machine {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.slot-window {
    width: 220px;
    height: 260px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--surface) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.slot-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #0088FF 100%);
}

.slot-window:hover {
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.slot {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slot-content {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    word-wrap: break-word;
    letter-spacing: -0.02em;
}

.slot.spinning .slot-content {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100%); 
        opacity: 0; 
    }
}

/* 控制面板 */
.control-panel {
    margin-top: 48px;
}

.chances {
    font-size: 1.1em;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.chances span {
    color: var(--primary);
    font-size: 1.4em;
    font-weight: 600;
}

.chances .hint {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 16px;
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-spin, .btn-submit {
    padding: 16px 32px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.btn-spin {
    background: var(--text-primary);
    color: white;
}

.btn-spin:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-spin:disabled {
    background: #E5E5E5;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: var(--primary);
    color: white;
}

.btn-submit:hover {
    background: #0044DD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--background);
    padding: 48px;
    border-radius: 24px;
    max-width: 540px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease-out;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 2em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.selected-items {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
    text-align: left;
    border: 1px solid var(--border);
}

.selected-items p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 16px;
    font-weight: 500;
}

.selected-items ul {
    list-style: none;
    padding: 0;
}

.selected-items li {
    padding: 12px 16px;
    margin: 10px 0;
    background: var(--background);
    border-radius: 12px;
    font-size: 1.1em;
    color: var(--text-primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
    letter-spacing: -0.01em;
}

.btn-download {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    margin: 8px;
    transition: all 0.2s ease;
    font-size: 1em;
    letter-spacing: -0.01em;
}

.btn-download:hover {
    background: #0044DD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

.btn-close {
    padding: 16px 32px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    margin: 8px;
    transition: all 0.2s ease;
    font-size: 1em;
    letter-spacing: -0.01em;
}

.btn-close:hover {
    background: #E5E5E5;
}

/* 报名表单区 */
.register-section {
    max-width: 680px;
    margin: 0 auto;
}

.register-header {
    margin-bottom: 40px;
    position: relative;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-back:hover {
    background: var(--surface-dark);
}

.register-header h3 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.register-subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    text-align: center;
}

.register-form {
    margin-top: 32px;
}

.form-card {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--surface) 100%);
    border-radius: 20px;
    padding: 36px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 85, 255, 0.05);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.input-hint {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

/* 服务选项样式 */
.section-desc {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    display: block;
    cursor: pointer;
    padding: 18px 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 85, 255, 0.1);
}

.service-card input[type="radio"] {
    display: none;
}

.service-card input[type="radio"]:checked + .service-header {
    color: var(--primary);
}

.service-card input[type="radio"]:checked ~ .service-header {
    color: var(--primary);
}

.service-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.2s ease;
}

.service-icon {
    font-size: 1.4em;
}

.service-name {
    flex: 1;
}

/* 子选项 */
.sub-options {
    margin-top: 12px;
    margin-left: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-option-card {
    display: block;
    cursor: pointer;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.sub-option-card:last-child {
    margin-bottom: 0;
}

.sub-option-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.sub-option-card input[type="radio"] {
    display: none;
}

.sub-option-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 8px rgba(0, 85, 255, 0.15);
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.option-icon {
    font-size: 1.3em;
}

.option-name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.option-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.price-tag {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary);
}

.price-note {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* 不上色信息卡片 */
.info-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 10px;
    border: 2px solid var(--border);
}

.info-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content h5 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.info-content p {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.info-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.btn-submit-register {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #0088FF 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 16px rgba(0, 85, 255, 0.3);
}

.btn-submit-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.4);
}

.btn-submit-register:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .logo-container {
        margin-bottom: 24px;
    }

    .education-logo {
        height: 80px;
    }

    .container {
        padding: 32px 24px;
    }

    .title {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .welcome-card {
        padding: 24px 20px;
    }

    .welcome-card h3 {
        font-size: 1.3em;
    }

    .slot-machine {
        gap: 16px;
        margin: 32px 0;
    }

    .slot-window {
        width: 160px;
        height: 200px;
    }

    .slot-content {
        font-size: 1.2em;
        padding: 16px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .btn-spin, .btn-submit {
        width: 100%;
        margin: 8px 0;
    }

    .register-header h3 {
        font-size: 2em;
    }

    .form-card {
        padding: 24px 20px;
    }

    .btn-back {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 24px;
    }
    
    .register-header h3 {
        margin-top: 16px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本颜色 */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

