
/* 网页通用样式 */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #0a0e1d, #1a1429); /* 深邃星空渐变背景 */
    color: #f0f0f0; /* 浅灰色文字，提升对比度 */
    overflow-x: hidden; /* 避免水平滚动条 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #e0f7fa; /* 亮青色标题文字 */
    text-shadow: 1px 1px 2px #000; /* 标题文字阴影，增强立体感 */
    margin-bottom: 0.8em;
}

p, li, td, th {
    font-size: 16px;
    line-height: 1.7;
    color: #d0d0d0; /* 柔和的段落文字颜色 */
}

a {
    color: #90caf9; /* 链接颜色 */
    text-decoration: none; /* 移除默认下划线 */
    transition: color 0.3s ease; /* 颜色过渡效果 */
}

a:hover {
    color: #e3f2fd; /* 鼠标悬停链接颜色 */
}

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

.header {
    text-align: center;
    padding: 50px 20px;
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    letter-spacing: 2px; /* 增加字符间距，提升视觉效果 */
}

.header p {
    font-size: 1.2em;
    color: #b0bec5; /* 描述文字颜色 */
}

.section {
    margin-bottom: 60px;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.05); /* 半透明背景卡片 */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 卡片阴影 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #bbdefb; /* 区块标题颜色 */
    text-transform: uppercase; /* 标题文字大写 */
    letter-spacing: 1px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式网格列 */
    gap: 30px;
}

.grid-item {
    padding: 25px;
    background-color: rgba(38, 50, 56, 0.6); /* 网格项背景色 */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); /* 网格项阴影 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 过渡效果 */
}

.grid-item:hover {
    transform: translateY(-5px); /* 悬停时轻微向上移动 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* 悬停时阴影增强 */
}

.grid-item h3 {
    margin-top: 0;
    color: #80deea; /* 网格项标题颜色 */
}

.grid-item p {
    color: #cfd8dc; /* 网格项段落文字颜色 */
}

/* 代码块样式 */
pre {
    background-color: #263238; /* 代码块背景色 */
    color: #f8f8f2; /* 代码颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，当代码过长时 */
    tab-size: 4; /* 制表符宽度 */
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap; /* 代码块自动换行 */
    word-wrap: break-word; /* 代码行过长时断词换行 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* 代码块阴影 */
}

code {
    font-family: 'Courier New', monospace;
}

/* 图片样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 图片网格列 */
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 图片阴影 */
    transition: transform 0.3s ease-in-out; /* 图片过渡效果 */
}

.image-grid img:hover {
    transform: scale(1.05); /* 悬停时放大 */
}

/* 自适应布局调整 */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header {
        padding: 40px 15px;
    }
    .header h1 {
        font-size: 2.8em;
    }
    .section {
        padding: 20px 15px;
        margin-bottom: 50px;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .grid-container {
        gap: 20px;
    }
    .grid-item {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 2.2em;
    }
    .header p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.7em;
    }
    p, li, td, th {
        font-size: 15px;
    }
}

@media screen and (max-width: 320px) {
    .header h1 {
        font-size: 2em;
    }
    .section-title {
        font-size: 1.5em;
    }
    p, li, td, th {
        font-size: 14px;
    }
    .grid-container {
        grid-template-columns: 1fr; /* 小屏幕单列布局 */
    }
}

/* 特殊样式 - 星河主题装饰 */
.starry-bg {
    position: relative;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle linear infinite; /* 星星闪烁动画 */
}

@keyframes twinkle {
    50% { opacity: 1; }
}

/* 卡片式数据展示样式 */
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center; /* 水平居中卡片 */
}

.data-card {
    background-color: rgba(55, 71, 79, 0.7); /* 数据卡片背景色 */
    border-radius: 12px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* 数据卡片阴影 */
    transition: transform 0.3s ease-in-out;
}

.data-card:hover {
    transform: scale(1.03); /* 悬停时轻微放大 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6); /* 悬停阴影增强 */
}

.card-title {
    font-size: 1.8em;
    color: #a7ffeb; /* 卡片标题颜色 */
    margin-bottom: 15px;
}

.card-type {
    font-size: 1.1em;
    color: #b2ebf2; /* 卡片类型颜色 */
    margin-bottom: 10px;
}

.card-description {
    font-size: 1em;
    color: #eceff1; /* 卡片描述颜色 */
    margin-bottom: 15px;
}

.card-blockchain-address {
    font-size: 0.9em;
    color: #90a4ae; /* 区块链地址颜色 */
    word-wrap: break-word; /* 长地址自动换行 */
}

/* "示例数据展示" 样式 */
.example-article-section {
    background-color: rgba(17, 25, 35, 0.8); /* 示例文章区域背景色 */
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); /* 更强的阴影效果 */
    margin-bottom: 70px;
}

.example-article-section h2 {
    color: #cddc39; /* 示例文章标题颜色 */
    border-bottom: 2px solid #cddc39; /* 标题下划线 */
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.example-article-section h3 {
    color: #8bc34a; /* 示例文章子标题颜色 */
    margin-top: 25px;
    margin-bottom: 15px;
}

.example-article-section ul, .example-article-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.example-article-section li {
    margin-bottom: 8px;
}

.example-article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.example-article-section th, .example-article-section td {
    border: 1px solid #607d8b; /* 表格边框颜色 */
    padding: 10px;
    text-align: left;
}

.example-article-section th {
    background-color: #37474f; /* 表头背景色 */
    color: #fff; /* 表头文字颜色 */
}

/* 页脚提示信息样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #78909c; /* 页脚文字颜色 */
    border-top: 1px solid #455a64; /* 页脚分隔线 */
    font-size: 0.9em;
}

