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

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #032B44, #4B0082);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通知栏 */
.notification {
    background-color: rgba(255, 165, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 导航栏 */
header {
    margin-top: 50px; /* 为了避开固定通知栏 */
    background: rgba(3, 43, 68, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #FFA500;
    letter-spacing: 2px;
}

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

.nav-links li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #FFA500;
}

/* 汉堡菜单图标 */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background: #FFFFFF;
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(3, 43, 68, 0.8), rgba(75, 0, 130, 0.8)), url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: #FFA500;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.button {
    background-color: #FFA500;
    color: #FFFFFF;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 165, 0, 0.3);
}

/* 特性模块 */
.features {
    padding: 100px 20px 50px 20px;
    background-color: #EAEAEA;
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: calc(33% - 20px);
    margin: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #032B44;
    margin-bottom: 10px;
}

.card p {
    color: #555555;
}

/* 示例数据展示 */
.example-data {
    padding: 50px 20px;
    background: linear-gradient(135deg, #4B0082, #032B44);
    color: #FFFFFF;
}

.example-data h2 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    margin-bottom: 30px;
}

.example-data ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.example-data ul li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

.example-data ul li strong {
    color: #FFA500;
}

/* 示例文章展示 */
.example-article {
    padding: 50px 20px;
    background-color: #FFFFFF;
}

.example-article h2 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #032B44;
    margin-bottom: 30px;
}

.example-article article {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #F9F9F9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.example-article h3 {
    font-family: 'Inter', sans-serif;
    color: #032B44;
    margin-top: 20px;
}

.example-article pre {
    background: #333333;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.example-article code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

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

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

.example-article th {
    background-color: #FFA500;
    color: #FFFFFF;
}

.example-article img {
    width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

/* 页脚 */
footer {
    background-color: #032B44;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #FFA500;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* 动画效果 */
@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);
    }
}

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

/* 响应式设计 */

/* 1440px及以上 */
@media (min-width: 1440px) {
    .card {
        width: calc(25% - 20px);
    }
}

/* 1200px */
@media (max-width: 1440px) and (min-width: 1200px) {
    .card {
        width: calc(33.33% - 20px);
    }
}

/* 1024px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .card {
        width: calc(50% - 20px);
    }
}

/* 768px */
@media (max-width: 1023px) and (min-width: 768px) {
    .features .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
    }
}

/* 480px */
@media (max-width: 767px) and (min-width: 480px) {
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }
}

/* 320px */
@media (max-width: 479px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .nav-links {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .features {
        padding: 80px 10px 40px 10px;
    }

    .example-data ul li {
        font-size: 0.9rem;
    }

    .example-article article {
        padding: 15px;
    }
}

/* 移动端菜单展开 */
.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 30px;
    background-color: rgba(3, 43, 68, 0.95);
    width: 200px;
    border-radius: 8px;
    padding: 10px 0;
}

.nav-active li {
    margin: 10px 0;
    text-align: center;
}

.nav-active li a {
    font-size: 1rem;
}

/* 滚动时内容动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

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

/* 代码块样式 */
pre {
    background-color: #2d2d2d;
    color: #cccccc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

