
/* 
    全局样式设置
    设置页面的背景色与字体
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #a1c4fd 70%, #c2e9fb 70%, #ffcc70 95%);
    color: #333;
    line-height: 1.6;
}

/* 
    导航栏样式
    固定顶部，使用玻璃拟态效果
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    transition: transform 0.3s, background-color 0.3s;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffa500;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar a:hover {
    transform: scale(1.1);
    background-color: rgba(255, 165, 0, 0.3);
}

.navbar a:hover::after {
    width: 100%;
    left: 0;
}

/* 
    主视觉区样式
    使用渐变背景和矢量插画
*/
.hero {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat, linear-gradient(135deg, #a1c4fd, #c2e9fb);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3em;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    color: #fff;
    max-width: 800px;
}

/* 
    内容区块样式
    卡片式布局，玻璃拟态效果
*/
.section {
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    width: calc(33% - 40px);
    min-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 
    图片装饰样式
    圆角、阴影和悬浮效果
*/
.decorative-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 
    代码块样式
    美观专业，与正文区分
*/
pre {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    position: relative;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

pre code::before {
    content: '代码示例';
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 
    表格样式
    清晰易读，响应式设计
*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #fff;
}

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

th {
    background: rgba(255, 165, 0, 0.5);
}

/* 
    响应式设计
*/
@media (max-width: 1200px) {
    .card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        min-width: unset;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1em;
    }
}

/* 
    提示文字样式
    突出显示“这是一个网页样式设计参考”
*/
.reference-note {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 165, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 
    其他样式
    包含标题、段落等基础样式
*/
h2, h3, h4 {
    color: #333;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

ol, ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

blockquote {
    background: rgba(255, 165, 0, 0.1);
    padding: 10px 20px;
    border-left: 5px solid #ffa500;
    margin: 20px 0;
}

/* 
    按钮样式
    CTA按钮统一设计
*/
.cta-button {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 25px;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* 
    折叠区域样式
    次要信息的折叠显示
*/
.collapsible {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.collapsible:hover {
    background-color: rgba(255, 165, 0, 0.3);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}


