
/* 主体背景采用蓝紫渐变，象征科技与信任 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(30, 60, 114, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 221, 87, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 头部区域样式 */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 1.5em;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部背景视频 */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('micro-animation.mp4') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
    animation: videoLoop 30s linear infinite;
}

@keyframes videoLoop {
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}

/* 容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 40px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 渐变文字样式 */
.gradient-text {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 2em;
}

/* 数据流动场景 */
.data-flow {
    background: url('data-flow-illustration.svg') no-repeat center center;
    background-size: contain;
    width: 100%;
    height: 400px;
    animation: moveFlow 10s linear infinite;
}

@keyframes moveFlow {
    from { background-position: 0 0; }
    to { background-position: -1000px 0; }
}

/* 动态数据图表 */
.chart {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.chart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('dynamic-chart.svg') no-repeat center center;
    background-size: contain;
    animation: rotateChart 20s linear infinite;
}

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

/* 折叠面板样式 */
.accordion {
    background-color: rgba(30, 60, 114, 0.8);
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion:hover {
    background-color: rgba(255, 221, 87, 0.6);
}

.panel {
    padding: 0 18px;
    background-color: rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 5px 5px;
}

.accordion.active + .panel {
    max-height: 500px; /* 根据需要调整 */
}

/* 联系方式样式 */
.footer-contact {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffdd57;
}

/* 订阅选项样式 */
.footer-subscribe {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
}

.footer-subscribe .btn {
    background: linear-gradient(45deg, #ffdd57, #ffa500);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.footer-subscribe .btn:hover {
    background: linear-gradient(45deg, #ffa500, #ffdd57);
    transform: scale(1.05);
}

/* 图片样式 */
img.decoration {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

img.decoration:hover {
    transform: scale(1.05);
}

/* 不对称布局样式 */
.modules {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.module-left {
    background: linear-gradient(160deg, #1e3c72, #2a5298);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
    margin-right: 20px;
    flex: 1;
}

.module-right {
    background: linear-gradient(200deg, #2a5298, #1e3c72);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
    flex: 2;
}

/* 代码块样式 */
pre code {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 15px;
    border-radius: 10px;
    overflow: visible;
    display: block;
    font-family: 'Courier New', Courier, monospace;
}

pre code::before {
    content: "代码示例";
    display: block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .modules {
        flex-direction: column;
    }
}

