
/* 
整体页面样式设计
采用现代扁平化设计风格，主色调为深蓝色、白色和绿色，辅以浅灰色和橙色作为辅助和强调色。
使用Roboto和Lato字体，确保文字清晰易读。
页面响应式设计，适配不同屏幕宽度，确保在各种设备上都能有良好的显示效果。
*/

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Lato', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
}

/* 顶部导航栏 */
.navbar {
    width: 100%;
    background: linear-gradient(90deg, #0074D9, #2ECC40);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-menu li a:hover {
    color: #FF851B;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2ECC40, #0074D9);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #FF851B;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.hero .btn:hover {
    background: linear-gradient(45deg, #FF851B, #FF4136);
    transform: scale(1.05);
}

/* 内容区块 */
.section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.section:nth-child(even) {
    background: #ffffff;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0074D9;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2ECC40;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* 动态图表 */
.chart-section {
    text-align: center;
}

.chart-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 用户评价 */
.testimonials {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    padding: 60px 20px;
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #0074D9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    color: #555;
}

.testimonial span {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-weight: bold;
    color: #0074D9;
}

/* 示例数据展示 */
.example-data {
    padding: 60px 20px;
    background: #f9f9f9;
}

.example-data-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.example-data-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #FF851B;
}

.example-data article {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.example-data h2 {
    font-size: 2rem;
    color: #0074D9;
    margin-bottom: 20px;
}

.example-data h3, .example-data h4 {
    color: #2ECC40;
}

.example-data p, .example-data ul, .example-data table {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.example-data ul {
    list-style: disc;
    margin-left: 20px;
}

.example-data table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.example-data table, .example-data th, .example-data td {
    border: 1px solid #ddd;
}

.example-data th, .example-data td {
    padding: 10px;
    text-align: left;
}

.example-data pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-data code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

/* 页脚 */
.footer {
    background: #0074D9;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p, .footer-section a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #FF851B;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #ccc;
}

/* 按钮样式 */
.btn-primary {
    background-color: #2ECC40;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #28B463, #239B36);
    transform: scale(1.05);
}

/* 隐藏式菜单（移动端） */
.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }
    .mobile-menu {
        display: block;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .navbar-container {
        padding: 10px 0;
    }
    .navbar-logo {
        font-size: 1.2rem;
    }
    .example-data article {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
}

