
/* 网页通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0c192c, #213b59);
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #f0f0f0;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

p {
    margin-bottom: 1.2em;
    color: #d0d0d0;
}

a {
    color: #7bbfff;
    text-decoration: none;
}

a:hover {
    color: #a0cfff;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 60px;
    padding: 30px;
    background-color: rgba(25, 45, 70, 0.6);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.section:hover {
    background-color: rgba(35, 55, 80, 0.7);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    background-color: rgba(40, 60, 85, 0.7);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 图像样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 强调色和装饰 */
.highlight {
    color: #a6cfff;
    font-weight: bold;
}

.neon-border {
    border: 2px solid #4ab0ff;
    box-shadow: 0 0 15px #4ab0ff;
    padding: 20px;
    border-radius: 12px;
}

.gradient-text {
    background: linear-gradient(to right, #6dd5ed, #2193b0);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bolder;
}

/* 代码块样式 */
pre {
    background-color: #1e293b;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto; /* 代码块超出容器时显示滚动条 */
    tab-size: 4;
    line-height: 1.4;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5em;
    white-space: pre-wrap; /* 代码在小屏幕设备上自动换行 */
    word-wrap: break-word;
}

code {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #ff6b6b; /* 强调代码中的关键词等 */
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden; /* 防止边框溢出 */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: bold;
    color: #ccc;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}

li {
    margin-bottom: 0.5em;
    color: #d0d0d0;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    .section {
        padding: 25px;
        margin-bottom: 50px;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .grid-item {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .section {
        padding: 20px;
        margin-bottom: 40px;
    }
    .grid-container {
        grid-template-columns: 1fr; /* 平板及更小屏幕改为单列 */
        gap: 20px;
    }
    .grid-item {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 15px;
        margin-bottom: 30px;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

/* 额外视觉元素和动效 */
.parallax-bg {
    background-image: url('https://images.gptkong.com/demo/sample9.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px; /* 调整高度以适应内容 */
    margin-bottom: 60px;
    opacity: 0.7;
    filter: grayscale(20%);
}

.tilt-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease-in-out;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateY(10deg) scale(1.05);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.4);
}

/* 示例数据展示样式 */
.data-card {
    background-color: rgba(35, 55, 80, 0.7);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.data-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.data-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.data-card p {
    color: #ddd;
    margin-bottom: 20px;
}

.data-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.data-card .tag {
    background-color: #4ab0ff;
    color: #0c192c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

/* jQuery hover 效果 */
.hover-image {
    transition: transform 0.4s ease;
}

.hover-image:hover {
    transform: scale(1.05);
}


