
/*  通用样式  */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #0E1C36;
    overflow-x: hidden; /*  防止水平滚动条  */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #eee;
    margin-bottom: 1.2em;
}

a {
    color: #FFC107;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 60px 20px;
    background-color: #1A2B4F;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

pre {
    background-color: #223a66;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /*  代码块水平滚动  */
    tab-size: 4;
    line-height: 1.4;
    font-size: 0.9rem;
    margin-bottom: 1.2em;
    white-space: pre-wrap; /*  代码自动换行  */
    word-wrap: break-word; /*  代码自动换行  */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #fff;
}

th, td {
    border: 1px solid #334d7a;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #223a66;
    font-weight: bold;
}

/*  页面头部样式  */
header {
    background: linear-gradient(to right, #0E1C36, #1A2B4F);
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFC107;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.header-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #ddd;
    font-size: 1.1rem;
}

/*  主内容区域样式  */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    color: #FFC107;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFC107;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

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

.project-list {
    list-style: none;
    padding: 0;
}

.project-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #223a66;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-item h4 {
    color: #FFC107;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1rem;
}

.article-section article {
    background-color: #223a66;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.article-section article h2 {
    font-size: 2.2rem;
    color: #FFC107;
    margin-bottom: 20px;
    text-align: center;
}

.article-section article h3 {
    font-size: 1.6rem;
    color: #ddd;
    margin-top: 2em;
    margin-bottom: 1em;
}

.article-section article p {
    font-size: 1.05rem;
    color: #eee;
}

/*  页脚样式  */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #334d7a;
}

/*  响应式布局  */
@media (max-width: 1024px) {
    main {
        max-width: 90%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .article-section article h2 {
        font-size: 2rem;
    }
    .article-section article h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .article-section article h2 {
        font-size: 1.8rem;
    }
    .article-section article h3 {
        font-size: 1.4rem;
    }
    section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    header p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .article-section article h2 {
        font-size: 1.6rem;
    }
    .article-section article h3 {
        font-size: 1.3rem;
    }
    section {
        padding: 30px 10px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .article-section article h2 {
        font-size: 1.5rem;
    }
    .article-section article h3 {
        font-size: 1.2rem;
    }
}

