* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: url('../img/bj01.webp') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

.floating-emoji {
    position: fixed;
    font-size: 40px;
    cursor: pointer;
    z-index: 50;
    pointer-events: auto;
    transition: all 0.3s ease;
    user-select: none;
}

.floating-emoji.active {
    animation: fade-in-float 20s ease-in-out forwards,
               var(--float-animation, random-float) var(--float-duration, 8s) ease-in-out infinite var(--float-delay, 0s);
}

.floating-emoji:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.floating-emoji.clicked {
    animation: pop-out 0.6s ease forwards;
}

@keyframes random-float-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(40px, -20px); }
    50% { transform: translate(-30px, -40px); }
    75% { transform: translate(-20px, 25px); }
    100% { transform: translate(0, 0); }
}

@keyframes random-float-2 {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-25px, -30px); }
    40% { transform: translate(35px, -15px); }
    60% { transform: translate(45px, 20px); }
    80% { transform: translate(-15px, 35px); }
    100% { transform: translate(0, 0); }
}

@keyframes random-float-3 {
    0% { transform: translate(0, 0); }
    30% { transform: translate(20px, -35px); }
    60% { transform: translate(-40px, -10px); }
    90% { transform: translate(25px, 30px); }
    100% { transform: translate(0, 0); }
}

@keyframes random-float-4 {
    0% { transform: translate(0, 0); }
    15% { transform: translate(-30px, -25px); }
    35% { transform: translate(50px, -10px); }
    55% { transform: translate(-25px, 40px); }
    75% { transform: translate(-50px, -30px); }
    100% { transform: translate(0, 0); }
}

@keyframes random-float {
    0% { transform: translate(0, 0); }
    20% { transform: translate(30px, -15px); }
    40% { transform: translate(-20px, -25px); }
    60% { transform: translate(-35px, 10px); }
    80% { transform: translate(15px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes pop-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes fade-in-float {
    0% {
        opacity: 0;
        transform: translateY(20px) translateX(0);
    }
    10% {
        opacity: 0.8;
        transform: translateY(0) translateX(0);
    }
    30% {
        opacity: 0.8;
        transform: translateY(-5px) translateX(3px);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-8px) translateX(-3px);
    }
    90% {
        opacity: 0.8;
        transform: translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) translateX(0);
    }
}

.ripple {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 49;
    animation: ripple-effect 1s ease-out forwards;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.bottom-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 10%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1));
    animation: wave-animation 20s linear infinite;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateZ(0);
    }
    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    bottom: -50px;
    opacity: 0.3;
    animation: float-up 15s ease-in infinite;
}

.shape:nth-child(1) {
    left: 10%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.shape:nth-child(2) {
    left: 30%;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.shape:nth-child(3) {
    left: 50%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation-delay: 6s;
    animation-duration: 18s;
}

.shape:nth-child(4) {
    left: 70%;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 40%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.shape:nth-child(5) {
    left: 85%;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float-up {
    0% {
        bottom: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        bottom: 250px;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.settings-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
    animation: rotate-pulse 3s ease-in-out infinite;
}

@keyframes rotate-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

.settings-btn:hover {
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mode-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slide-in 0.5s ease;
}

@keyframes slide-in {
    from {
        transform: translateX(200px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mode-campus {
    color: #667eea;
    border: 2px solid #667eea;
}

.mode-domain {
    color: #f093fb;
    border: 2px solid #f093fb;
}

.mode-maintenance {
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.container {
    max-width: 900px;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fade-in-up 0.8s ease;
}

@keyframes fade-in-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: float-avatar 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes float-avatar {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.option-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.option-card:hover::before {
    left: 100%;
}

.option-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.option-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.option-card:hover .option-icon {
    animation: rotate-bounce 0.6s ease;
}

@keyframes rotate-bounce {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.2);
    }
    75% {
        transform: rotate(10deg) scale(1.2);
    }
}

.option-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.option-desc {
    color: #ffffffa7;
    font-size: 0.95em;
    line-height: 1.6;
}

.tip-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc107;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255, 193, 7, 0.4);
    }
}

.tip-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #ff8f00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-title::before {
    content: '💡';
    font-size: 1.2em;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.tip-content {
    color: #ffffff;
    line-height: 1.8;
}

.author-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
    color: #999;
    font-size: 0.95em;
}

.author-name {
    font-weight: bold;
    color: #667eea;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup.show {
    display: flex;
}

.popup-content {
    background: #ffffff8c;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: scale-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-in {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.popup-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    background: rgb(255 255 255 / 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #25252594;
    border-radius: 10px;
    font-size: 1em;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.popup-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.popup-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.popup-btn:hover::before {
    width: 300px;
    height: 300px;
}

.popup-btn-confirm {
    background: rgb(195 135 152);
    color: white;
}

.popup-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.popup-btn-close {
    background: #e0e0e0;
    color: #666;
}

.popup-btn-close:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.popup-btn-go {
    background: rgb(0 0 0 / 20%);
    color: white;
}

.popup-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.settings-panel {
    background: #ffffff40;
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
}

.settings-option {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff54;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.settings-option:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.settings-option-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.settings-option-desc {
    font-size: 0.9em;
    color: #ffffffc4;
}

.maintenance-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.2em;
    }

    .avatar {
        width: 110px;
        height: 110px;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .settings-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .mode-indicator {
        font-size: 12px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }
}