
/* 网页通用样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #03071e, #370617);
    color: #f0f0f0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* 标题和提示信息样式 */
h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.reference-tip {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 30px;
    text-align: center;
}

/* 内容容器样式 */
.container {
    width: 95%;
    max-width: 1200px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* 区块链应用展示区域样式 */
.blockchain-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 40px;
}

.app-item {
    width: 30%;
    min-width: 250px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.app-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.app-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.app-item p {
    font-size: 0.95em;
    color: #bbbbbb;
    line-height: 1.5;
}

/* 示例文章展示区域样式 */
.article-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.article-section h2 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-section h3 {
    font-size: 1.6em;
    color: #d0d0d0;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-section h4 {
    font-size: 1.3em;
    color: #c0c0c0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section p {
    font-size: 1em;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 15px;
}

.article-section b {
    color: #ffffff;
    font-weight: bold;
}

.article-section pre {
    background-color: #222;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 代码块横向滚动条 */
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    white-space: pre-wrap; /* 代码自动换行 */
    word-wrap: break-word;
}

.article-section code {
    font-family: monospace, monospace;
}

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

.article-section th, .article-section td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: left;
    color: #dddddd;
}

.article-section th {
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    color: #ffffff;
}

.article-section ol {
    padding-left: 30px;
    color: #cccccc;
    margin-bottom: 15px;
}

.article-section li {
    line-height: 1.7;
    margin-bottom: 8px;
}

/* 自适应布局调整 */
@media (max-width: 1024px) {
    .container {
        width: 98%;
        padding: 25px;
    }

    .blockchain-apps {
        justify-content: center;
    }

    .app-item {
        width: 45%;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .blockchain-apps {
        flex-direction: column;
        align-items: center;
    }

    .app-item {
        width: 80%;
        min-width: auto;
    }

    .article-section h2 {
        font-size: 1.8em;
    }

    .article-section h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    .app-item {
        width: 95%;
    }

    .article-section h2 {
        font-size: 1.5em;
    }

    .article-section h3 {
        font-size: 1.2em;
    }
    .reference-tip {
        font-size: 0.8em;
    }
}

@media (max-width: 320px) {
     .container {
        padding: 10px;
    }
    h1 {
        font-size: 1.4em;
    }
    .article-section h2 {
        font-size: 1.3em;
    }
    .article-section h3 {
        font-size: 1.1em;
    }
}

