
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 主色渐变背景 */
    color: #333333; /* 主体文字颜色 */
    line-height: 1.6;
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 最小宽度500px */
    gap: 40px;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* 阴影效果 */
}

header .logo {
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
}

nav {
    margin-top: 10px;
}

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

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9800; /* 点缀色悬停效果 */
}

/* 强调提示 */
.highlight {
    background: #ff9800; /* 点缀色背景 */
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 阴影效果 */
}

/* 主视觉区 */
.hero-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    padding: 150px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-in-out;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

article h2 {
    color: #1e3c72;
}

article p {
    color: #333333;
    font-size: 16px;
    margin-bottom: 15px;
}

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    margin-bottom: 15px;
}

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

article .language-css {
    color: #d63384;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.button {
    background-color: #ff9800;
    border: none;
    padding: 15px 30px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 5px;
    font-size: 16px;
}

.button:hover {
    background-color: #e68900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s;
}

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

/* 轮播区样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-section {
        padding: 100px 20px;
    }

    header {
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

