
/* 
金融科技潮流先锋 - CSS 样式表
==================================
此样式表用于金融科技潮流先锋网站，采用HTML5和CSS3技术，旨在创造一个高端大气、具有视觉冲击力的唯美网页。设计遵循单页设计理念，色彩丰富，使用渐变效果，注重响应式布局和用户体验优化。

颜色变量定义
---------------
*/
:root {
    --tech-blue: #007BFF; /* 科技蓝 */
    --neon-purple: #6A11CB; /* 霓虹紫 */
    --deep-black: #121212; /* 深黑背景 */
    --highlight-green: #00FFA8; /* 高亮绿色 */
    --text-color: #FFFFFF; /* 全站文字颜色 */
    --background-gradient: linear-gradient(45deg, #6A11CB, #3D0C8D); /* 蓝紫渐变 */
}

/* 
全局样式
----------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--deep-black);
    line-height: 1.6;
    overflow-x: hidden; /* 避免横向滚动 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--tech-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 
头部和导航栏
------------
*/
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(18, 18, 18, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    color: var(--tech-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--highlight-green);
}

/* 
全屏Banner
---------
*/
.banner {
    height: 100vh;
    background: var(--background-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    animation: bannerMove 15s linear infinite;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.banner .cta-button {
    background: var(--background-gradient);
    padding: 15px 30px;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--highlight-green);
}

/* 
动画效果
----------
*/
@keyframes bannerMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes grow {
    0% { height: 0; }
    100% { height: calc(var(--value) * 1px); }
}

/* 
主要内容区域
-----------
*/
.main-content {
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--tech-blue);
    text-align: center;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
}

/* 
示例展示区
----------
*/
.demo-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
}

.demo-section h2 {
    text-align: center;
    color: var(--highlight-green);
}

.demo-section article {
    margin-top: 30px;
}

.demo-section pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.demo-section code {
    color: #dcdcdc;
    font-family: 'Courier New', Courier, monospace;
}

/* 
图片样式
---------
*/
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* 
响应式设计
----------
*/
@media (max-width: 1440px) {
    .banner h1 {
        font-size: 42px;
    }

    .banner p {
        font-size: 16px;
    }

    .banner .cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 1200px) {
    .features {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .feature-card {
        flex: 1 1 calc(45% - 40px);
    }
}

@media (max-width: 1024px) {
    .feature-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 80px 20px 20px 20px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 16px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 14px;
    }

    .banner .cta-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 320px) {
    .logo {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 12px;
    }

    .banner .cta-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* 
底部样式
---------
*/
footer {
    background: rgba(18, 18, 18, 0.95);
    padding: 20px 40px;
    text-align: center;
    color: var(--text-color);
}

footer p {
    font-size: 14px;
}

/* 
过渡与动画优化
-----------------
*/
button, .cta-button {
    transition: all 0.3s ease;
}

.animate-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-element.active {
    opacity: 1;
    transform: translateY(0);
}

