
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 体背景和字体 */
body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(0, 23, 72, 1) 0%, rgba(0, 109, 119, 1) 100%);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #fff8e1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.header p {
    font-size: 18px;
    margin-top: 10px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主内容 */
.main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
}

.module h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffe082;
}

.module p {
    font-size: 16px;
    color: #ffffff;
}

.module img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
}

/* 数据仪表盘 */
.dashboard {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}

.dashboard h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffcc80;
}

.dashboard .data {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.data-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    width: 45%;
    margin-bottom: 15px;
    text-align: center;
}

.data-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #ffeb3b;
}

.data-item p {
    font-size: 16px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #ffeb3b, #ffc107);
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.button:hover {
    background: linear-gradient(to bottom, #ffe082, #ffd54f);
}

.button:active {
    transform: scale(0.95);
}

/* 示例展示文章 */
.sample-article {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-top: 40px;
}

.sample-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: #aed581;
}

.sample-article p {
    font-size: 16px;
    margin-bottom: 15px;
}

.sample-article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.sample-article code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffcc80;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

table th {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .module {
        flex: 1 1 calc(33.333% - 40px);
    }
}

@media (max-width: 1200px) {
    .module {
        flex: 1 1 calc(50% - 40px);
    }
}

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

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .module {
        flex: 1 1 100%;
    }

    .dashboard .data {
        flex-direction: column;
    }

    .data-item {
        width: 100%;
    }
}

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

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

    .module h2 {
        font-size: 20px;
    }

    .module p, .sample-article p, .dashboard p {
        font-size: 14px;
    }

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

@media (max-width: 320px) {
    .header h1 {
        font-size: 24px;
    }

    .navbar a {
        font-size: 16px;
        padding: 8px 16px;
    }

    .sample-article h2 {
        font-size: 22px;
    }
}

/* 动画效果 */
@keyframes ship-sail {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ship-animation {
    width: 100px;
    height: 100px;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    position: absolute;
    top: 10%;
    left: -10%;
    animation: ship-sail 15s linear infinite;
}

/* 页面提示 */
.reference-note {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #b2dfdb;
}

