/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    min-height: 100vh;
}

/* 背景星空 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-stars {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* 主容器 */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 居中主Logo */
.main-logo {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 100;
}

.main-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    }
}

/* 动画核心区域 */
.animation-core {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 2rem 0;
}

/* SVG圆环容器 */
.ring-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
}

.ring-svg {
    width: 100%;
    height: 100%;
    animation: rotate 80s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.ring-svg.paused {
    animation-play-state: paused;
}

.ring-svg.clicked-paused {
    animation-play-state: paused;
}

.ring-circle {
    stroke-dasharray: 30 20;
    stroke-dashoffset: 0;
    animation: ringFlow 3s linear infinite, ringPulse 4s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ringFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -100;
    }
}

@keyframes ringPulse {
    0% {
        stroke-width: 8;
        opacity: 0.7;
    }
    100% {
        stroke-width: 12;
        opacity: 1;
    }
}

/* SVG圆环悬停效果 */
.ring-container:hover .ring-svg {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    transform: scale(1.05);
    animation-play-state: paused;
}

.ring-container:hover .ring-circle {
    stroke-width: 14;
    opacity: 1;
}

/* 中央AI角色悬停时停止圆环旋转 */
.character-container:hover ~ .ring-container .ring-svg {
    animation-play-state: paused;
}

/* AI角色容器 */
.character-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    cursor: pointer;
    z-index: 10;
}

.character {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

/* AI角色浮动动画 */
.floating {
    animation: float 4s ease-in-out infinite;
}

.floating.paused {
    animation-play-state: paused;
}

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

/* 角色悬停效果 */
.character-container:hover .character {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
    transform: scale(1.1);
}

/* 文本元素容器 */
.text-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

/* 文本项基础样式 */
.text-item {
    position: absolute;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: textSlideIn 0.8s ease-out forwards;
    transition: all 0.3s ease;
}

/* 文本入场动画 */
@keyframes textSlideIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 文本位置定位 */
.text-hri {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.2s;
}

.text-llm {
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
    animation-delay: 0.4s;
}

.text-holo {
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

/* 文本图片样式 */
.text-item img {
    
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    transition: all 0.3s ease;
}

/* 文本描述 */
.text-description {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 8px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 文本悬停效果 */
.text-item:hover img {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
}

.text-item:hover .text-description {
    opacity: 1;
    color: #8B5CF6;
}

/* CTA按钮 */
.cta-button {
    margin: 2rem 0;
}

.create-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* 底部描述 */
.bottom-description {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.bottom-description strong {
    color: #8B5CF6;
}

/* 交互提示 */
.interaction-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ccc;
    backdrop-filter: blur(10px);
}

/* 暂停状态样式 */
.paused {
    animation-play-state: paused !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-logo img {
        height: 50px;
    }
    
    .animation-core {
        width: 400px;
        height: 400px;
    }
    
    .ring-container {
        width: 500px;
        height: 500px;
    }

    .ring-circle {
        r: 320;
        stroke-width: 8;
    }
    
    .character-container {
        width: 150px;
        height: 150px;
    }
    
    .text-item img {
        height: 40px;
    }
    
    .text-hri {
        top: -100px;
    }

    .text-llm {
        left: -250px;
    }

    .text-holo {
        bottom: -100px;
    }

    .circle-connections {
        transform: scale(0.9);
        animation: circleRotate 25s linear infinite;
    }
}

/* 文本位置定位 - 与圆环形成视觉交集 */
.text-hri {
    
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.2s;
    z-index: 20;
}

.text-llm {
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
    animation-delay: 0.4s;
    z-index: 20;
}

.text-holo {
    
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
    z-index: 20;
}

/* 文本图片样式 */
.text-image {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4))
            drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
    position: relative;
    z-index: 25;
}

/* SVG圆形连接线样式 */
.circle-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: auto;
    transform-origin: center center;
    animation: circleRotate 25s linear infinite;
    transition: animation-play-state 0.3s ease;
}

/* 主圆形连接线 */
.connection-circle {
    stroke-dasharray: 15 10;
    stroke-dashoffset: 0;
    opacity: 0.6;
    animation: circleDashFlow 4s linear infinite, circleGlow 4s ease-in-out infinite alternate;
    transform-origin: center;
    transition: opacity 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

/* 流动圆形 */
.flow-circle {
    stroke-dasharray: 20 15;
    stroke-dashoffset: 0;
    opacity: 0.4;
    animation: circleDashFlow 6s linear infinite reverse, flowGlow 3s ease-in-out infinite alternate;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

/* 连接点 */
.connection-point {
    opacity: 0.8;
    animation: pointPulse 2s ease-in-out infinite alternate;
    transition: opacity 0.3s ease, r 0.3s ease;
}

.point-top {
    animation-delay: 0s;
}

.point-left {
    animation-delay: 0.7s;
}

.point-bottom {
    animation-delay: 1.4s;
}

/* 动画定义 */
@keyframes circleDashFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -50;
    }
}

@keyframes circleGlow {
    0% {
        opacity: 0.4;
        stroke-width: 3;
    }
    100% {
        opacity: 0.8;
        stroke-width: 6;
    }
}

@keyframes flowGlow {
    0% {
        opacity: 0.2;
        stroke-width: 4;
    }
    100% {
        opacity: 0.6;
        stroke-width: 8;
    }
}

@keyframes pointPulse {
    0% {
        opacity: 0.5;
        r: 4;
    }
    100% {
        opacity: 1;
        r: 8;
    }
}

/* 光粒子样式 */
.light-particle {
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 0.9;
}

.particle-1 {
    animation: particleGlow 3s ease-in-out infinite alternate;
}

.particle-2 {
    animation: particleGlow 3.5s ease-in-out infinite alternate;
    animation-delay: 1s;
}

.particle-3 {
    animation: particleGlow 2.8s ease-in-out infinite alternate;
    animation-delay: 2s;
}

@keyframes particleGlow {
    0% {
        opacity: 0.5;
        filter: drop-shadow(0 0 4px currentColor);
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 12px currentColor);
    }
}

/* 圆形连接线旋转动画 */
@keyframes circleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 鼠标悬停时暂停旋转 */
.circle-connections:hover {
    animation-play-state: paused;
}

/* 悬停时的视觉增强 */
.circle-connections:hover .connection-circle {
    opacity: 1;
    stroke-width: 6;
    filter: url(#strongGlow);
}

.circle-connections:hover .flow-circle {
    opacity: 0.8;
    stroke-width: 8;
}

.circle-connections:hover .connection-point {
    opacity: 1;
    r: 10;
}

.circle-connections:hover .light-particle {
    opacity: 1;
    filter: drop-shadow(0 0 15px currentColor);
}

/* 文本模块悬停时增强圆形连接线 */
.text-item:hover ~ .circle-connections {
    animation-play-state: paused;
}

.text-item:hover ~ .circle-connections .connection-circle {
    opacity: 1;
    stroke-width: 8;
    animation-duration: 2s;
    filter: url(#strongGlow);
}

.text-item:hover ~ .circle-connections .flow-circle {
    opacity: 0.8;
    stroke-width: 10;
    animation-duration: 3s;
}

/* 特定模块悬停效果 */
.text-hri:hover ~ .circle-connections .point-top {
    opacity: 1;
    r: 12;
    animation-duration: 1s;
}

.text-llm:hover ~ .circle-connections .point-left {
    opacity: 1;
    r: 12;
    animation-duration: 1s;
}

.text-holo:hover ~ .circle-connections .point-bottom {
    opacity: 1;
    r: 12;
    animation-duration: 1s;
}

/* 中央角色悬停时整个圆形系统增强 */
.character-container:hover ~ .text-elements ~ .circle-connections {
    animation-play-state: paused;
}

.character-container:hover ~ .text-elements ~ .circle-connections .connection-circle {
    opacity: 1;
    stroke-width: 10;
    animation-duration: 1.5s;
    filter: url(#strongGlow);
}

.character-container:hover ~ .text-elements ~ .circle-connections .flow-circle {
    opacity: 0.9;
    stroke-width: 12;
    animation-duration: 2s;
}

.character-container:hover ~ .text-elements ~ .circle-connections .connection-point {
    opacity: 1;
    r: 10;
}

/* 文本悬停效果 */
.text-item:hover {
    transform: scale(1.05);
}

.text-item:hover .text-image {
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
    transform: scale(1.02);
}

/* 文本模块点击状态 */
.text-item.clicked {
    transform: scale(1.05);
}

.text-item.clicked .text-image {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 1))
            drop-shadow(0 0 50px rgba(168, 85, 247, 0.6));
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .animation-core {
        width: 300px;
        height: 300px;
    }
    
    .ring-container {
        width: 400px;
        height: 400px;
    }

    .ring-circle {
        r: 280;
        stroke-width: 6;
    }
    
    .character-container {
        width: 100px;
        height: 100px;
    }
    
    .text-item img {
        height: 30px;
    }

    .text-hri {
        top: -80px;
    }

    .text-llm {
        left: -200px;
    }

    .text-holo {
        bottom: -80px;
    }

    .circle-connections {
        transform: scale(0.7);
        animation: circleRotate 25s linear infinite;
    }
}
