:root {
    --c-yellow: #FFDE00;
    --c-pink: #FF9AA2;
    --c-blue: #4ECDC4;
    --c-black: #1A1A1A;
    --c-white: #FFFFFF;
    --c-purple: #9D4EDD;
    --border-thick: 4px solid var(--c-black);
    --shadow-hard: 6px 6px 0px var(--c-black);
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-blue);
    background-image: radial-gradient(var(--c-black) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: 'Arial Black', 'Heiti SC', 'SimHei', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--c-black);
}

/* ========== 跑马灯 ========== */
.marquee-container {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--c-yellow);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    padding: 10px 0;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-top { top: 0; transform: rotate(-1deg) scale(1.02); }
.marquee-bottom { bottom: 0; transform: rotate(1deg) scale(1.02); background: var(--c-pink); }

.marquee-text {
    display: inline-block;
    font-weight: 900;
    font-size: 1.2rem;
    animation: scroll 10s linear infinite;
    padding-left: 100%;
}

@keyframes scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ========== 粒子动画 ========== */
@keyframes particle-explode {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0) rotate(180deg); opacity: 0; }
}

@keyframes particle-fly {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0) rotate(360deg); opacity: 0; }
}

.particle {
    position: fixed;
    pointer-events: none;
    border: 3px solid var(--c-black);
    z-index: 1000;
    animation: particle-explode 0.8s ease-out forwards;
}

/* ========== 主卡片 ========== */
.main-card {
    background: var(--c-white);
    border: var(--border-thick);
    box-shadow: var(--shadow-hard);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 5;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.main-card:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--c-black);
}

/* ========== 进度条 ========== */
.progress-container {
    margin-top: 20px;
    background: var(--c-black);
    border: var(--border-thick);
    height: 30px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--c-yellow), var(--c-pink), var(--c-blue));
    background-size: 200% 100%;
    animation: progress-fill 3s ease-out forwards, shimmer 2s linear infinite;
    width: 0%;
}

@keyframes progress-fill {
    0% { width: 0%; }
    70% { width: 95%; }
    85% { width: 98%; }
    95% { width: 99%; }
    100% { width: 99%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--c-white);
    mix-blend-mode: difference;
}

/* ========== 标题 ========== */
h1 {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 3px 3px 0px var(--c-pink);
    letter-spacing: -2px;
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 1px); text-shadow: 3px 3px 0px var(--c-blue), -2px -2px 0px var(--c-pink); }
    92% { transform: translate(2px, -1px); text-shadow: -3px 3px 0px var(--c-yellow), 2px -2px 0px var(--c-purple); }
    93% { transform: translate(-1px, 2px); text-shadow: 3px -3px 0px var(--c-pink), -2px 2px 0px var(--c-blue); }
    94% { transform: translate(0); text-shadow: 3px 3px 0px var(--c-pink); }
}

.subtitle {
    background: var(--c-black);
    color: var(--c-yellow);
    display: inline-block;
    padding: 5px 10px;
    font-weight: bold;
    margin-top: 10px;
    transform: rotate(-2deg);
    font-size: 1.2rem;
}

.description {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: bold;
}

/* ========== Z-Bot 吉祥物 ========== */
.z-bot {
    width: 120px;
    height: 100px;
    background: var(--c-purple);
    border: var(--border-thick);
    border-radius: 40% 40% 45% 45%;
    margin: 0 auto 20px auto;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-radius 0.2s;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.z-bot:hover {
    animation: float-excited 0.5s ease-in-out infinite;
}

@keyframes float-excited {
    0%, 100% { transform: translateY(0px) rotate(-3deg) scale(1.1); }
    50% { transform: translateY(-5px) rotate(3deg) scale(1.1); }
}

.z-bot:active {
    animation: none;
    transform: scale(0.9) rotate(-5deg);
    border-radius: 45% 45% 30% 30%;
}

/* 眨眼动画 */
@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.eyes-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 25px;
}

.eyes-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.eye {
    width: 30px;
    height: 30px;
    background: var(--c-white);
    border: 3px solid var(--c-black);
    border-radius: 50%;
    position: relative;
    transform-origin: center;
    animation: blink 4s ease-in-out infinite;
}

.eye:nth-child(2) {
    animation-delay: 0.1s;
}

.pupil {
    width: 12px;
    height: 12px;
    background: var(--c-black);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mouth {
    width: 20px;
    height: 10px;
    background: var(--c-black);
    border-radius: 0 0 20px 20px;
    margin: 10px auto 0;
    transition: height 0.2s;
}

.z-bot:hover .mouth {
    height: 20px;
    width: 30px;
    border-radius: 50%;
}

/* ========== 按钮 ========== */
.btn {
    margin-top: 30px;
    background: var(--c-yellow);
    border: var(--border-thick);
    padding: 15px 30px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer !important;
    box-shadow: 4px 4px 0px var(--c-black);
    transition: all 0.1s;
    display: inline-block;
    text-decoration: none;
    color: var(--c-black);
    position: relative;
    z-index: 10;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--c-black);
    background: var(--c-pink);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--c-black);
}

/* ========== 漂浮装饰物 ========== */
.shape {
    position: absolute;
    border: var(--border-thick);
    cursor: grab;
    z-index: 2;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.shape:active {
    cursor: grabbing;
    transform: scale(1.1) !important;
}

.shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-pink);
    top: 20%;
    left: 15%;
    animation: drift1 8s ease-in-out infinite;
}

.shape-triangle {
    width: 60px;
    height: 60px;
    background: var(--c-yellow);
    transform: rotate(45deg);
    top: 70%;
    right: 15%;
    border-radius: 10px;
    animation: drift2 10s ease-in-out infinite;
}

.shape-squig {
    width: 100px;
    height: 40px;
    background: var(--c-white);
    border-radius: 20px;
    top: 15%;
    right: 25%;
    transform: rotate(-15deg);
    animation: drift3 7s ease-in-out infinite;
}

.shape-cross {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--c-black);
    font-size: 80px;
    font-weight: 900;
    top: 60%;
    left: 10%;
    pointer-events: none;
    z-index: 1;
}

/* ========== 更多互动元素 ========== */
.floating-emoji {
    position: fixed;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s;
    filter: drop-shadow(3px 3px 0px var(--c-black));
    animation: emoji-float 4s ease-in-out infinite;
}

.floating-emoji:hover {
    transform: scale(1.3) rotate(15deg) !important;
}

.floating-emoji:active {
    transform: scale(0.8) !important;
}

@keyframes emoji-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 弹跳小球 */
.bouncing-ball {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--c-black);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.1s;
}

.bouncing-ball:hover {
    transform: scale(1.5);
}

/* 波浪线装饰 */
.wavy-line {
    position: fixed;
    width: 100px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}

.wavy-line svg {
    width: 100%;
    height: 100%;
}

/* 闪烁星星 */
.twinkle-star {
    position: fixed;
    font-size: 1.5rem;
    z-index: 1;
    animation: twinkle 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -15px) rotate(10deg); }
    50% { transform: translate(-10px, -25px) rotate(-5deg); }
    75% { transform: translate(-20px, -10px) rotate(15deg); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    33% { transform: translate(-25px, 15px) rotate(60deg); }
    66% { transform: translate(15px, 20px) rotate(30deg); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) rotate(-15deg); }
    50% { transform: translate(30px, -20px) rotate(5deg); }
}

/* ========== 联系弹窗 ========== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    position: relative;
    background: var(--c-white);
    border: var(--border-thick);
    box-shadow: 12px 12px 0px var(--c-black);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) rotate(-5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-modal.active .contact-modal-content {
    transform: scale(1) rotate(0deg);
}

.contact-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--c-pink);
    border: var(--border-thick);
    box-shadow: 4px 4px 0px var(--c-black);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s;
}

.contact-modal-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--c-black);
    background: var(--c-yellow);
}

.contact-modal-close:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--c-black);
}

.contact-modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 0px var(--c-pink);
}

.contact-modal-subtitle {
    background: var(--c-black);
    color: var(--c-yellow);
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(-1deg);
    margin-bottom: 25px;
}

.contact-qrcode {
    width: 180px;
    height: 180px;
    border: var(--border-thick);
    box-shadow: 6px 6px 0px var(--c-black);
    margin: 0 auto 20px;
    background: var(--c-white);
    padding: 10px;
    transition: transform 0.2s;
}

.contact-qrcode:hover {
    transform: scale(1.05) rotate(2deg);
}

.contact-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-qrcode-label {
    background: var(--c-purple);
    color: var(--c-white);
    padding: 8px 20px;
    font-weight: 900;
    font-size: 0.9rem;
    display: inline-block;
    border: var(--border-thick);
    box-shadow: 4px 4px 0px var(--c-black);
    margin-bottom: 25px;
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-weight: 900;
    color: var(--c-black);
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 4px;
    background: var(--c-black);
}

.contact-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--c-yellow);
    border: var(--border-thick);
    padding: 15px 20px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--c-black);
    transition: all 0.1s;
    word-break: break-all;
}

.contact-email:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--c-black);
    background: var(--c-blue);
}

.contact-email:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--c-black);
}

.contact-email-icon {
    font-size: 1.3rem;
}

.contact-email-copied {
    background: var(--c-white) !important;
}

/* ========== 移动端适配 ========== */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .main-card { padding: 20px; width: 85%; }
    .shape { display: none; }
    
    .contact-modal-content {
        padding: 25px;
        max-width: 320px;
    }
    
    .contact-qrcode {
        width: 150px;
        height: 150px;
    }
    
    .contact-modal-title {
        font-size: 1.5rem;
    }
}
