
/* 
网页整体样式设计
本样式旨在创建一个融合未来感与高级质感的响应式网页，采用HTML5和CSS3技术，通过渐变、阴影、动画等高级特性，营造科技美学体验。配色遵循黄金比例，主色占70%，辅色占25%，点缀色占5%，确保色彩丰富而协调。
*/

/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027 70%, #203a43 25%, #2c5364 5%);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

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

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #00ffcc;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a:hover {
    color: #00ffcc;
}

/* 主内容样式 */
.main-content {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(32, 58, 67, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.chapter-nav h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #00ffcc;
}

.chapter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-nav ul li {
    margin-bottom: 10px;
}

.chapter-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chapter-nav ul li a:hover {
    color: #00ffcc;
}

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

article h2, article h3, article h4 {
    color: #a0c4ff;
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

article h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

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

article pre {
    background: #1e2a38;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.button {
    background: #00ffcc;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    color: #ffffff;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
    transform: scale(1.05);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .chapter-nav {
        display: none;
    }

    .main-content {
        padding: 100px 10px 50px 10px;
    }
}

@media (min-width: 769px) {
    /* 适用于更大屏幕的样式 */
}

/* 代码块样式 */
.code-block {
    background: #1e2a38;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 动画效果 */
@keyframes auroraMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.background {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    height: 100vh;
    animation: auroraMove 10s infinite alternate;
}

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(32, 58, 67, 0.8);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #203a43;
}

.collapsible:after {
    content: '\002B';
    color: #ffffff;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2212";
}

.content {
    padding: 0 15px;
    display: none;
    background-color: rgba(32, 58, 67, 0.6);
    border-radius: 5px;
    margin-bottom: 20px;
}

.content p {
    font-size: 15px;
}

/* 高级特性应用 */
.service-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

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

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

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

th {
    background-color: #203a43;
}

td {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 动态数据展示样式 */
.chart {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.3;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 代码示例样式 */
.code-example {
    background: #1e2a38;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.code-example code {
    color: #ffadad;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 其他装饰元素 */
.decorative-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #a0c4ff);
    margin: 20px 0;
    border: none;
}

/* 链接样式 */
a {
    color: #00ffcc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a0c4ff;
}

/* 输入选择器颜色自定义 */
.color-picker {
    margin: 10px 0;
    padding: 5px;
    border: none;
    border-radius: 5px;
}


