* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.space-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: backgroundFadeIn 2s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 20, 40, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

.spaceship-container {
    position: absolute;
    right: 8%;
    top: 85%;
    transform: translateY(-50%);
    z-index: 3;
}

.spaceship {
    width: 890px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 150, 255, 0.6));
    animation: spaceshipSlideIn 2s ease-out forwards;
    opacity: 0;
}

.hero-title {
    position: absolute;
    left: 10%;
    top: 40%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: 50%;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    margin-bottom: 20px;
}

.title-line-1 {
    display: block;
    font-size: 4rem;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: titleDropIn 1.5s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(-100px);
}

.title-line-2 {
    display: block;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: titleDropIn 1.5s ease-out 1.3s forwards;
    opacity: 0;
    transform: translateY(-100px);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 2s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    animation: fadeInUp 1s ease-out 2.5s forwards;
    opacity: 0;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spaceshipSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(200px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes titleDropIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 1200px) {
    .spaceship {
        width: 550px;
    }

    .title-line-1 {
        font-size: 3rem;
    }

    .title-line-2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        left: 5%;
        max-width: 90%;
        text-align: center;
    }

    .spaceship-container {
        right: 5%;
    }

    .spaceship {
        width: 400px;
    }
    
    .title-line-1 {
        font-size: 2.5rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        top: 30%;
    }

    .spaceship-container {
        top: 60%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .title-line-1 {
        font-size: 2rem;
    }

    .title-line-2 {
        font-size: 1.5rem;
    }
}

.intro-section {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
    overflow: hidden;
}

.intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.intro-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-sizing: border-box;
}

.intro-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.intro-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.intro-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.intro-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.intro-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.features-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.features-list li i {
    color: #00d4ff;
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
}

.intro-quote {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    font-style: italic;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.contact-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 80px 0;
    flex-direction: column;
    overflow: hidden;
}

.contact-title {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-title h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.contact-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

:root {
    --card-width: 280px;
    --card-height: 380px;
    --card-transition-duration: 800ms;
    --card-transition-easing: ease;
}

.contact-app {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.contact-app.animate {
    opacity: 1;
    transform: translateY(0);
}

.cardList {
    position: absolute;
    width: calc(3 * var(--card-width));
    height: var(--card-height);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cardList__btn {
    --btn-size: 50px;
    width: var(--btn-size);
    height: var(--btn-size);
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cardList__btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.cardList__btn.btn--left {
    left: -8%;
}

.cardList__btn.btn--right {
    right: -8%;
}

.cardList__btn .icon {
    width: 100%;
    height: 100%;
}

.cardList__btn .icon svg {
    width: 60%;
    height: 60%;
}

.cards__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.contact-card {
    --card-translateY-offset: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--card-translateX-offset)) translateY(var(--card-translateY-offset)) rotateY(var(--card-rotation-offset)) scale(var(--card-scale-offset));
    display: inline-block;
    width: var(--card-width);
    height: var(--card-height);
    transition: transform var(--card-transition-duration) var(--card-transition-easing);
    user-select: none;
    border-radius: 20px;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity var(--card-transition-duration) var(--card-transition-easing);
    opacity: calc(1 - var(--opacity));
}

.card__content {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.contact-card.current--card {
    --current-card-rotation-offset: 0;
    --card-translateX-offset: 0;
    --card-rotation-offset: var(--current-card-rotation-offset);
    --card-scale-offset: 1.1;
    --opacity: 1;
}

.contact-card.previous--card {
    --card-translateX-offset: calc(-1 * var(--card-width) * 1.2);
    --card-rotation-offset: 25deg;
}

.contact-card.next--card {
    --card-translateX-offset: calc(var(--card-width) * 1.2);
    --card-rotation-offset: -25deg;
}

.contact-card.previous--card, .contact-card.next--card {
    --card-scale-offset: 0.85;
    --opacity: 0.6;
}

/* 信息显示区域 */
.infoList {
    position: absolute;
    width: 100%;
    height: 120px;
    pointer-events: none;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.info__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.info {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--info-translateX-offset));
    width: 100%;
    text-align: center;
    transition: transform var(--card-transition-duration) var(--card-transition-easing), opacity var(--card-transition-duration) var(--card-transition-easing);
    opacity: var(--info-opacity);
}

.info.current--info {
    --info-translateX-offset: 0;
    --info-opacity: 1;
}

.info.previous--info {
    --info-translateX-offset: -100%;
    --info-opacity: 0;
}

.info.next--info {
    --info-translateX-offset: 100%;
    --info-opacity: 0;
}

.info .text {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.info.current--info .text {
    opacity: 1;
    transform: translateY(0);
}

.text.name {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.text.location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.text.description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.contact__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.contact__bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact__bg__image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--image-translate-offset, 0));
    width: 120%;
    height: 120%;
    transition: transform 1000ms ease, opacity 1000ms ease;
    overflow: hidden;
}

.bg-gradient {
    width: 100%;
    height: 100%;
}

.register-gradient {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.qq-gradient {
    background: linear-gradient(135deg, #2d1b69, #11998e, #38ef7d);
}

.bilibili-gradient {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #feca57);
}

.contact__bg__image.current--image {
    opacity: 1;
    --image-translate-offset: 0;
}

.contact__bg__image.previous--image, .contact__bg__image.next--image {
    opacity: 0;
}

.contact__bg__image.previous--image {
    --image-translate-offset: -25%;
}

.contact__bg__image.next--image {
    --image-translate-offset: 25%;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.flip-card-front h3, .flip-card-back h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.flip-card-front p, .flip-card-back p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #0099cc, #007399);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
}

.qq-number {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.copy-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-toast.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .contact-title h2 {
        font-size: 2.5rem;
    }

    :root {
        --card-width: 240px;
        --card-height: 320px;
    }

    .contact-app {
        height: 620px;
        position: relative;
    }

    .infoList {
        bottom: -40px;
    }

    .cardList__btn {
        --btn-size: 44px;
        background: rgba(0, 212, 255, 0.8);
        border: 2px solid rgba(0, 212, 255, 0.6);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }

    .cardList__btn:hover {
        background: rgba(0, 212, 255, 0.9);
        transform: translateY(-50%) scale(1.1);
    }

    .cardList__btn.btn--left {
        left: 5px;
    }

    .cardList__btn.btn--right {
        right: 5px;
    }

    .card__content {
        padding: 30px 20px;
    }

    .card-icon {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        min-width: 65px;
        min-height: 65px;
    }

    .text.name {
        font-size: 1.6rem;
    }

    .text.location {
        font-size: 1rem;
    }

    .text.description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.8rem;
    }

    .contact-title h2 {
        font-size: 2rem;
    }

    :root {
        --card-width: 200px;
        --card-height: 280px;
    }

    .contact-app {
        height: 550px;
        padding: 0 10px;
    }

    .cardList__btn {
        --btn-size: 44px;
        background: rgba(0, 212, 255, 0.9);
        border: 2px solid rgba(0, 212, 255, 0.8);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    .cardList__btn:hover {
        background: rgba(0, 212, 255, 1);
        transform: translateY(-50%) scale(1.15);
    }

    .cardList__btn.btn--left {
        left: 2px;
    }

    .cardList__btn.btn--right {
        right: 2px;
    }

    .card__content {
        padding: 25px 15px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        min-width: 60px;
        min-height: 60px;
        box-sizing: border-box;
    }

    .card__content h3 {
        font-size: 1.2rem;
    }

    .text.name {
        font-size: 1.4rem;
    }

    .infoList {
        bottom: -20px;
    }
}

.mobile-indicators {
    display: none;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    gap: 12px;
}

.mobile-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-indicator.active {
    background: rgba(0, 212, 255, 0.8);
    border-color: rgba(0, 212, 255, 1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .mobile-indicators {
        display: flex;
    }
}
