
/* 基本页面设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto无衬线字体，确保现代感与易读性 */
    background: linear-gradient(135deg, #001f3f, #005b96); /* 渐变背景，传达科技感与专业性 */
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.9); /* 半透明背景，增强层次感 */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease; /* 背景渐变过渡效果 */
}

.navbar a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease; /* 颜色过渡效果 */
    rel: "nofollow"; /* 添加nofollow属性 */
}

.navbar a:hover {
    color: #FFA500; /* 橙色悬停效果，突出重点 */
}

/* 章节导航系统 */
.chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 31, 63, 0.8);
    padding: 10px;
    border-radius: 8px;
}

.chapter-nav a {
    display: block;
    color: #ffffff;
    margin: 5px 0;
    text-decoration: none;
    font-size: 14px;
}

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

/* Hero Section样式 */
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::after {
    content: '这是一个网页样式设计参考';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 31, 63, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    color: #FFA500;
    animation: fadeInOut 5s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 功能介绍区样式 */
.features {
    padding: 60px 20px;
    background: #002746;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.feature-item {
    flex: 1 1 300px;
    margin: 20px;
    background: #003366;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px); /* 悬停上移效果，增强互动感 */
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.features h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

/* 成功案例区样式 */
.cases {
    padding: 60px 20px;
    background: #001f3f;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.case-item {
    background: #003366;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.case-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.case-text {
    font-size: 16px;
    line-height: 1.5;
}

/* 行动呼吁区样式 */
.cta {
    padding: 60px 20px;
    background: #005b96;
    text-align: center;
}

.cta-button {
    background: #28a745;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: #218838;
    transform: scale(1.05); /* 缩放效果，吸引注意 */
}

/* 代码块样式 */
code.language-css {
    display: block;
    background: #002746;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #FFA500;
    margin: 20px 0;
}

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

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

table th {
    background: #003366;
}

table td {
    background: #002746;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #003366;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 4px;
    margin-top: 10px;
}

.active, .collapsible:hover {
    background-color: #005b96;
}

.content {
    padding: 0 18px;
    display: none;
    background-color: #002746;
    overflow: hidden;
    border-radius: 4px;
}

/* 图片装饰样式 */
img.decorative {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05); /* 悬停放大效果 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .chapter-nav {
        position: static;
        margin-top: 20px;
    }
    .features, .cases {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
}

