* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%); */
	/* --tw-gradient-to: rgb(54 191 250 / 0.1) var(--tw-gradient-to-position); */
	background: linear-gradient(to bottom right, rgb(22 93 255 / 0.1), transparent);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: -1;

    /*background-image: url(./img/1.png);*/

    /* background: url(img/1.png) no-repeat; */
    background-size: 100% 100%;
}
.line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #00ffff, transparent);
    animation: pulse 2s infinite ease-in-out;
}
.line:nth-child(1) { left: 10%; animation-delay: 0s; }
.line:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.line:nth-child(3) { left: 50%; animation-delay: 1s; }
.line:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.line:nth-child(5) { left: 90%; animation-delay: 2s; }
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 页面容器样式 */
.page-container {
	color: #f0f0f0; /* 浅色文字，提高对比度 */
	line-height: 1.6;
    padding: 20px;
    padding-bottom: 80px; /* 为底部导航留出空间 */
    min-height: 100vh;
    display: none; /* 默认隐藏所有页面 */
}

.page-container.active {
    display: block; /* 显示当前活跃页面 */
}

/* 首页样式 */
.home-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 60px;
}

.robot-container {
    margin-bottom: 30px;
    position: relative;
}
.robot {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(145deg, #4CAF50, #2196F3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    animation: float 3s ease-in-out infinite;
}
.robot-face {
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.robot-eyes {
    display: flex;
    gap: 15px;
}
.eye {
    width: 12px;
    height: 8px;
    background: #00ffff;
    border-radius: 10px;
    animation: blink 4s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.title-box {
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}
.title-box h1 {
    font-size: 18px;
    font-weight: normal;
    color: #00ffff;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}
.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.input-container {
    margin-bottom: 30px;
}

/*
.input-field {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
}
.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.input-field:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}*/

.analyze-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #165DFF, #36BFFA);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}
.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}
.analyze-button:active {
    transform: translateY(0);
}

/* 其他页面样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 10px;
	color: #36BFFA; /* 亮蓝色 */
	    text-shadow: 0 0 10px rgba(54, 191, 250, 0.5);
}

.content-card {
	background: rgba(30, 30, 50, 0.7); /* 更深的背景 */
	border: 1px solid rgba(0, 255, 255, 0.2);
	backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	   color: #e0e0e0; /* 浅灰色文字 */
}

/* 信息页面文字优化 */
#info-page .content-card p {
    color: #d0d0d0; /* 浅灰色 */
    font-size: 15px;
}

/* 个人资料页面文字 */
#profile-page .profile-item div {
    color: #e0e0e0;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-name {
    font-weight: bold;
	color: #36BFFA; /* 亮蓝色 */
	    font-weight: 600;
}

.stock-price {
     color: #4CAF50; /* 绿色保持不变 */
        font-weight: 500;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}
.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
    filter: brightness(0.5);
}
.nav-item.active {
    color: #00ffff;
    filter: brightness(1);
}
.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .home-content {
        padding: 20px 15px;
        padding-top: 40px;
    }

    .robot {
        width: 100px;
        height: 100px;
    }

    .robot-face {
        width: 70px;
        height: 70px;
    }

    .title-box h1 {
        font-size: 16px;
    }
}

/* 修复分析弹窗样式 */
.analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* 增强背景不透明度 */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(15px); /* 增强模糊效果 */
}

.analysis-modal.show {
    display: flex;
}

/* 添加弹窗内容容器样式 */
.analysis-content {
    background: rgba(26, 26, 46, 0.95); /* 添加半透明背景 */
    border: 2px solid #00ffff; /* 添加边框突出弹窗 */
    border-radius: 15px;
    padding: 30px;
    width: 90%; /* 增加宽度 */
    max-width: 500px; /* 设置最大宽度 */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); /* 添加发光效果 */
    text-align: center;
}

/* 修复进度条布局 */
.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* 增加间距 */
    font-size: 14px;
    width: 100%; /* 确保占满宽度 */
}

.progress-check {
    width: 24px; /* 稍微增大 */
    height: 24px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.progress-label {
    color: #888;
    margin-right: 15px;
    min-width: 100px; /* 增加标签宽度 */
    text-align: left;
    flex-shrink: 0;
    font-size: 14px;
}

.progress-bar-container {
    flex: 1; /* 占据剩余空间 */
    height: 8px; /* 增加进度条高度 */
    background: rgba(51, 51, 51, 0.8);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2); /* 添加边框 */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #00ffff);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progress-glow 2s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* 添加发光效果 */
}

/* 增强进度状态样式 */
.progress-item.completed .progress-label {
    color: #4CAF50;
    font-weight: bold;
}

.progress-item.active .progress-label {
    color: #00ffff;
    font-weight: bold;
}

.progress-item.completed .progress-check {
    background: #4CAF50;
    color: white;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-item.active .progress-check {
    background: #00ffff;
    color: #000;
    animation: progress-pulse 1s infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.progress-item .progress-check {
    background: #333;
    border: 1px solid #666;
}

@keyframes progress-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

@keyframes progress-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 255, 255, 1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .analysis-content {
        width: 95%;
        padding: 20px;
    }

    .progress-label {
        min-width: 80px;
        font-size: 12px;
    }
}

.cta {
    position: fixed;
    top: 50%; /* 垂直居中 */
    left: 50%; 
    transform: translate(-50%, -50%); /* 确保绝对居中 */
    width: 90%; /* 响应式宽度 */
    max-width: 400px; /* 最大宽度 */
    background: rgba(22, 93, 255, 0.9);
    backdrop-filter: blur(15px);
    color: white;
    padding: 30px;
    text-align: center;
    z-index: 3000;
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* 阴影 */
    display: none;
    flex-direction: column;
    gap: 15px;
    border: 2px solid #36BFFA;
    /* animation: slide-up 0.5s ease-out; */
}

/* 添加遮罩层 */
.cta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2999;
    display: none;
}

.cta-button {
    background: white; /* 改为白色背景 */
    color: #165DFF; /* 使用蓝色文字 */
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 93, 255, 0.5);
}

.cta span:first-child {
    font-size: 18px;
    font-weight: bold;
    color: #36BFFA;
}

.cta span:nth-child(2) {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
