
/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    color: #333333;
    line-height: 1.6;
}

/* 全局元素 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: #007BFF;
    margin-top: 0;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: #ff5722;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e64a19;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 1.5rem;
}

.navbar ul li a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ff5722;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 横幅 */
.banner {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease forwards;
}

.banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.banner .cta-button {
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, #ff5722, #ff8a50);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.banner .cta-button:hover {
    transform: scale(1.05);
}

.banner .cta-button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* 服务模块 */
.services {
    padding: 4rem 2rem;
    background: #ffffff;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #007BFF;
}

.services .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 300px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: #ff5722;
}

.card p {
    font-size: 0.95rem;
    color: #555555;
}

.card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #007BFF, #00c6ff);
    color: #ffffff;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card a:hover {
    background: linear-gradient(45deg, #0056b3, #0099e6);
    transform: scale(1.05);
}

/* 示例展示 */
.example-display {
    padding: 4rem 2rem;
    background: #f0f0f0;
}

.example-display h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #007BFF;
}

.example-display article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.example-display pre {
    background: #272822;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 1rem;
}

.example-display code {
    font-family: 'Courier New', Courier, monospace;
}

/* 数据展示表格 */
.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.table-responsive th, .table-responsive td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #dddddd;
}

.table-responsive th {
    background: #007BFF;
    color: #ffffff;
}

.table-responsive tr:hover {
    background: #f1f1f1;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 底部 */
.footer {
    background: #007BFF;
    color: #ffffff;
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 适应性布局 */
@media (max-width: 1440px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .navbar ul {
        display: flex;
    }

    .services .cards {
        justify-content: space-between;
    }
}

@media (max-width: 1024px) {
    .navbar ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .services .cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .services .cards {
        gap: 1.5rem;
    }
}

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

    .banner p {
        font-size: 0.9rem;
    }

    .card {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .banner h1 {
        font-size: 1.2rem;
    }

    .banner p {
        font-size: 0.8rem;
    }

    .services .cards {
        gap: 1rem;
    }
}

/* 侧滑菜单 */
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 2rem 1rem;
    z-index: 1001;
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    margin-bottom: 1.5rem;
}

.side-menu ul li a {
    color: #333333;
    font-size: 1.2rem;
}

.side-menu ul li a:hover {
    color: #ff5722;
}

/* 庆祝动画 */
@keyframes star-fall {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { transform: translateY(50vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes fireworks {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.star {
    position: fixed;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: gold;
    border-radius: 50%;
    animation: star-fall 3s linear infinite;
    z-index: 1002;
}

/* 动态图表 */
.dynamic-chart {
    width: 100%;
    height: 300px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.dynamic-chart::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center center;
    background-size: cover;
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

