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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #0a0e27;
}

/* 科技感渐变背景动画 */
#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 60%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* 网格背景 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* 内容区域 */
.container {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题 */
.title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* 副标题 */
.subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #11fa28;
    text-align: center;
    text-shadow: 0 0 25px rgba(102, 126, 234, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 10px;
    margin: 0 auto;
}

/* AI机器人 */
.robot-container {
    width: 120px;
    height: 120px;
    margin: 20px auto 30px;
    position: relative;
    animation: robotFloat 3s ease-in-out infinite;
}

.robot {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4),
                0 0 30px rgba(102, 126, 234, 0.3);
}

.robot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.7;
    animation: borderGlow 3s ease-in-out infinite;
}

.robot-face {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-eye {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    position: absolute;
    animation: blink 3s infinite;
}

.robot-eye.left {
    left: 18px;
}

.robot-eye.right {
    right: 18px;
}

.robot-mouth {
    width: 20px;
    height: 8px;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 12px;
}

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

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

/* 正文 */
.content {
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 10px;
    padding: 0 10px;
    max-width: 100%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(102, 126, 234, 0.4);
    font-weight: 500;
}

/* 输入框 */
.input-container {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
}

.input-box {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-box:focus {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* 按钮 */
.analyze-btn {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.analyze-btn:hover::before {
    width: 300px;
    height: 300px;
}

.analyze-btn:active {
    transform: scale(0.98);
}

.analyze-btn:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.analyze-btn span {
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 17px;
    }

    .content {
        font-size: 16px;
    }

    .robot-container {
        width: 100px;
        height: 100px;
        margin: 15px auto 5px;
    }
}