:root {
    --primary-color: #ff4655; /* APEX主题红 */
    --secondary-color: #1e90ff;
    --dark-bg: #0f1923;
    --darker-bg: #0a141b;
    --light-text: #ffffff;
    --dark-text: #768079;
    --accent-color: #f8f8f8;
    --slot-bg: rgba(15, 25, 35, 0.7);
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    height: 100vh;
    overflow: hidden;
    line-height: 1.6;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

/* 通用屏幕样式 */
.screen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
    overflow: auto;
}

.hidden {
    display: none !important;
}

/* 标题界面 */
#title-screen {
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.9), rgba(10, 20, 30, 0.9));
    text-align: center;
    cursor: pointer;
}

.title-container {
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(15, 25, 35, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 70, 85, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(500px) rotateX(0deg);
    transition: all 0.5s ease;
}

.title-container:hover {
    transform: perspective(500px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.title-text {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 70, 85, 0.7);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-color);
}

.start-hint {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--light-text);
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--light-text);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.5; }
    100% { top: 5px; opacity: 1; }
}

/* 模式选择界面 */
.mode-container {
    width: 100%;
    max-width: 1200px;
    padding: 30px;
    background: rgba(15, 25, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 70, 85, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.mode-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.mode-option {
    background: rgba(30, 40, 50, 0.6);
    border: 1px solid rgba(255, 70, 85, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    width: 280px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation-delay: var(--delay);
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: forwards;
}

.mode-option.animate__fadeInUp {
    opacity: 1;
    transform: translateY(0);
}

.mode-option:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 70, 85, 0.3);
    background: rgba(255, 70, 85, 0.1);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.mode-option:hover .mode-icon {
    transform: scale(1.2);
}

.mode-option h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.mode-option p {
    color: var(--accent-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

.mode-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 70, 85, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-option:hover .mode-glow {
    opacity: 1;
}

/* 自定义选项 */
#custom-options {
    margin-top: 30px;
    background: rgba(20, 30, 40, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 70, 85, 0.3);
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.custom-option {
    margin: 15px 0;
    animation-delay: var(--delay);
    transform: scale(0.8);
    opacity: 0;
    animation-fill-mode: forwards;
}

.custom-option.animate__bounceIn {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
 transition: all 0.3s ease;
}

.custom-checkbox:hover .checkmark {
background-color: rgba(255, 70, 85, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
background-color: var(--primary-color);
}

.checkmark:after {
content: "";
position: absolute;
display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
display: block;
}

.custom-checkbox .checkmark:after {
left: 7px;
top: 3px;
width: 6px;
height: 12px;
border: solid white;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
}

.option-text {
margin-left: 10px;
font-size: 1.1rem;
color: var(--accent-color);
}

/* 按钮样式 */
.glow-button {
position: relative;
padding: 15px 40px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
overflow: hidden;
margin-top: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: 0 5px 15px rgba(255, 70, 85, 0.4);
z-index: 1;
}

.glow-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #ff4655, #ff6b7f);
z-index: -1;
transition: opacity 0.3s ease;
opacity: 1;
}

.glow-button:hover::before {
opacity: 0;
}

.glow-button::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #ff6b7f, #ff4655);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}

.glow-button:hover::after {
opacity: 1;
}

.glow-button:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 8px 20px rgba(255, 70, 85, 0.6);
}

.glow-button:active {
transform: translateY(1px);
}

.pulse-animation {
animation: pulse 2s infinite;
}

@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.7); }
70% { box-shadow: 0 0 0 15px rgba(255, 70, 85, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0); }
}

.button-text {
position: relative;
z-index: 1;
}

.button-spinner {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
margin-left: 10px;
}

.spinner-dot {
width: 8px;
height: 8px;
background-color: white;
border-radius: 50%;
animation: spinner-bounce 1.4s infinite ease-in-out;
}

.spinner-dot:nth-child(1) {
animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
animation-delay: -0.16s;
}

@keyframes spinner-bounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1); }
}

/* 抽取界面 */
.draw-container {
width: 100%;
max-width: 1200px;
padding: 30px;
background: rgba(15, 25, 35, 0.7);
backdrop-filter: blur(10px);
border-radius: 15px;
border: 1px solid rgba(255, 70, 85, 0.3);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.draw-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
position: relative;
}

.icon-button {
background: rgba(255, 255, 255, 0.1);
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}

.icon-button svg {
width: 24px;
height: 24px;
fill: currentColor;
}

.icon-button:hover {
background: rgba(255, 70, 85, 0.3);
transform: rotate(-90deg);
}

.slots-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 25px;
margin-bottom: 40px;
}

.draw-slot {
background: var(--slot-bg);
border: 1px solid rgba(255, 70, 85, 0.3);
border-radius: 15px;
width: 220px;
height: 220px;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.draw-slot:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(255, 70, 85, 0.2);
}

.slot-label {
background: rgba(255, 70, 85, 0.3);
color: white;
padding: 12px;
text-align: center;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 1.1rem;
}

.slot-icon {
font-size: 1.2rem;
}

.slot-content {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.3rem;
text-align: center;
padding: 20px;
color: var(--accent-color);
font-weight: bold;
transition: all 0.3s ease;
position: relative;
z-index: 1;
}

.slot-particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}

/* 结果弹窗 */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
}

.modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
}

.modal-content {
position: relative;
background: linear-gradient(135deg, rgba(30, 40, 50, 0.95), rgba(20, 30, 40, 0.95));
padding: 40px;
border-radius: 20px;
max-width: 500px;
width: 90%;
border: 1px solid rgba(255, 70, 85, 0.5);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
text-align: center;
z-index: 2;
overflow: hidden;
}

.modal-title {
color: var(--primary-color);
margin-bottom: 30px;
font-size: 1.8rem;
text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.result-items {
margin-bottom: 30px;
font-size: 1.2rem;
line-height: 2;
text-align: left;
}

.result-items div {
padding: 10px 15px;
margin: 5px 0;
background: rgba(255, 255, 255, 0.05);
border-left: 3px solid var(--primary-color);
border-radius: 0 5px 5px 0;
transition: all 0.3s ease;
}

.result-items div:hover {
background: rgba(255, 70, 85, 0.1);
transform: translateX(5px);
}

/* 彩花效果 */
.confetti {
position: absolute;
width: 10px;
height: 10px;
background-color: var(--primary-color);
opacity: 0;
z-index: 1;
animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
0% {
transform: translateY(-100px) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(360deg);
opacity: 0;
}
}

/* 响应式设计 */
@media (max-width: 768px) {
.title-text {
font-size: 2.5rem;
}

.mode-options {
flex-direction: column;
align-items: center;
}

.mode-option {
width: 100%;
max-width: 300px;
}

.slots-container {
flex-direction: column;
align-items: center;
}

.draw-slot {
width: 100%;
max-width: 250px;
height: 180px;
}

.modal-content {
padding: 30px 20px;
}
}

@media (max-width: 480px) {
.title-text {
font-size: 2rem;
}

.section-title {
font-size: 1.5rem;
}

.mode-container, .draw-container {
padding: 20px 15px;
}

.glow-button {
padding: 12px 30px;
font-size: 1rem;
}
}
