
/* 
主色调采用冷色系蓝色和紫色，通过线性渐变营造科技感和专业性
*/
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
}

/* 
固定顶部导航栏，使用半透明背景，确保内容可见
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 1000;
}

/* 
导航栏链接样式，添加悬停时的颜色过渡效果
*/
.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffbb00;
}

/* 
页面主要内容区，使用CSS Grid布局，确保响应式设计
*/
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 100px 60px 60px 60px; /* 上方留出导航栏空间 */
}

/* 
标题样式，增强视觉层级
*/
h2, h3, h4 {
    color: #ffbb00;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* 
段落样式，保证可读性和视觉舒适度
*/
p {
    font-size: 1.6em;
    line-height: 1.8em;
    margin-bottom: 20px;
}

/* 
代码块样式，与正文区分开，增加可读性
*/
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #ffbb00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6em;
}

/* 
图片样式，添加圆角、阴影和悬停效果
*/
img.decorative {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 
按钮样式，使用高对比色彩并添加互动效果
*/
.button {
    background: #ffbb00;
    color: #1e3c72;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 
卡片样式，用于展示案例或数据，增加层次感
*/
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 
视差滚动效果的背景区域，增加动态感
*/
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample5.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 
加载动画样式，提供用户等待时的视觉反馈
*/
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #ffbb00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 
个性化推荐卡片的布局与效果
*/
.recommendation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
    background: rgba(30, 60, 114, 0.7);
    border-radius: 15px;
}

.recommendation .chart {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.recommendation .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 
AR互动效果的覆盖层
*/
.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ar-container:hover .ar-overlay {
    opacity: 1;
}

.ar-button {
    background: #ffbb00;
    color: #1e3c72;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1em;
}

/* 
页面底部提示信息样式，确保显眼位置
*/
.footer-note {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 1.6em;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 
响应式调整，确保在不同设备上良好显示
*/
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .main-content {
        padding: 120px 20px 20px 20px;
    }
    .recommendation {
        grid-template-columns: 1fr;
    }
}

