
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0D47A1, #1976D2); /* 主色调渐变背景 */
    color: #FFFFFF;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background-color: #0D47A1; /* 深蓝色主色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 14px 0; /* 内边距优化 */
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 14px 20px;
    transition: background-color 0.3s ease; /* 平滑过渡 */
    rel: "nofollow"; /* 强制添加nofollow属性 */
}

.navbar a:hover {
    background-color: #1976D2; /* 悬停时颜色变化 */
}

/* 头部样式 */
.header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover; /* 背景图片 */
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.6); /* 半透明覆盖层 */
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
}

.button {
    background-color: #FFA000; /* 亮橙色点缀 */
    border: none;
    padding: 10px 20px;
    color: #FFFFFF;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* 平滑过渡和缩放 */
}

.button:hover {
    background: linear-gradient(45deg, #FFA000, #FFB300);
    transform: translateY(-2px);
}

/* 容器样式，使用网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自适应布局 */
    grid-gap: 20px;
    padding: 80px 20px 20px 20px;
}

/* 卡片翻转效果 */
.card {
    perspective: 1000px; /* 3D视角 */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 200px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg); /* 翻转动画 */
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* 隐藏背面 */
    border-radius: 8px;
}

.card-front {
    background-color: #1565C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.card-back {
    background-color: #424242;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 4px;
}

/* 仪表盘样式 */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #1E88E5;
}

.dashboard-item {
    flex: 1 1 300px;
    background-color: #263238;
    padding: 20px;
    border-radius: 8px;
}

/* 图片叠加效果 */
.image-overlay {
    position: relative;
}

.image-overlay img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影效果 */
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.5); /* 半透明覆盖层 */
    mix-blend-mode: overlay; /* 混合模式 */
    border-radius: 8px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards; /* 动画 */
}

/* 用户内容样式 */
.user-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #0D47A1;
}

.user-content-item {
    flex: 1 1 calc(33.333% - 30px);
    background-color: #37474F;
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.user-content-item:hover {
    transform: scale(1.05); /* 放大效果 */
}

/* AR演示样式 */
.ar-demo {
    perspective: 1000px;
    padding: 20px;
    background-color: #1565C0;
}

.ar-demo-inner {
    width: 100%;
    height: 200px;
    background-color: #1E88E5;
    border-radius: 8px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.ar-demo:hover .ar-demo-inner {
    transform: rotateY(180deg); /* 翻转动画 */
}

.ar-demo-inner::after {
    content: 'AR 功能演示';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    backface-visibility: hidden;
}

/* 页面过渡效果 */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-transition.active {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .user-content-item {
        flex: 1 1 100%;
    }
    
    .dashboard-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 500px) {
    .header h1 {
        font-size: 2em;
    }
    
    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

