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

/* 页面背景与整体布局 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #ff9800;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.75em;
    margin-top: 30px;
}

/* 段落与文本样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #f5f5f5;
    text-align: justify;
}

a {
    color: #ff9800;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

a:hover::after {
    width: 100%;
}

/* 按钮样式 */
button, .button {
    background: #ff9800;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    font-size: 1em;
}

button:hover, .button:hover {
    background: #e68900;
    transform: scale(1.05);
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 115, 177, 0.8);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

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

.navbar li {
    margin-left: 20px;
}

.navbar a {
    color: #ffffff;
    font-size: 1em;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ff9800;
}

/* 主要内容区样式 */
.main-content {
    padding: 100px 20px 20px 20px;
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 40px;
}

.section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.section .content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section .content .text {
    flex: 1;
    min-width: 300px;
}

.section .content .images {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 20px;
}

.code-block pre {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
}

.code-block code {
    display: block;
}

/* 示例展示样式 */
.sample-display {
    background: rgba(255, 152, 0, 0.2);
    padding: 20px;
    border-left: 5px solid #ff9800;
    margin-top: 40px;
    border-radius: 5px;
}

.sample-display h2 {
    color: #ffffff;
}

.sample-display p {
    color: #e0e0e0;
}

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

@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(34, 193, 195), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        max-width: 1000px;
    }
}

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

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

    .main-content .section .content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    .navbar {
        padding: 10px 20px;
    }

    .navbar .logo {
        font-size: 1.2em;
    }

    .section img {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    .button, button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* 数据可视化样式 */
.chart {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.chart svg {
    width: 100%;
    height: 300px;
}

.chart path.line {
    fill: none;
    stroke: #ff9800;
    stroke-width: 2px;
}

.chart circle.data-point {
    fill: #0073b1;
    r: 4;
}

/* 按钮动画 */
.button-animated {
    position: relative;
    overflow: hidden;
}

.button-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.button-animated:hover::after {
    left: 0;
    right: 0;
    transition: all 0.3s;
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 10px;
}

.icon-home {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
}

.icon-user {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
}

.icon-settings {
    background-image: url('https://images.gptkong.com/demo/sample3.png');
}

.icon-help {
    background-image: url('https://images.gptkong.com/demo/sample4.png');
}

/* 反馈动画 */
.success-animation {
    animation: success-check 1s ease forwards;
}

@keyframes success-check {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 图文并茂布局 */
.image-text {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.image-text img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: 10px;
}

.image-text .description {
    flex: 1;
    color: #ffffff;
}

/* 强调文字 */
.highlight {
    color: #ff9800;
    font-weight: bold;
}

/* 提示信息 */
.alert {
    background: rgba(255, 152, 0, 0.3);
    padding: 15px;
    border-left: 5px solid #ff9800;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 列表样式 */
ul.features {
    list-style: none;
    padding-left: 0;
}

ul.features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #f5f5f5;
}

ul.features li .icon {
    margin-right: 10px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 40px;
    border-radius: 10px;
}

footer p {
    color: #ffffff;
    font-size: 0.9em;
}

/* 图片动画 */
.img-animate {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}


