/* 基本样式 */
:root {
    --primary-color: #ffcc00;
    --secondary-color: #333;
    --text-color: #333;
    --background-color: #333;
    --font-size-large: 2.5em;
    --font-size-medium: 1.8em;
    --font-size-small: 1em;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background-color: var(--background-color);
    text-align: left;
    position: relative;
}

header img.logo {
    height: auto;
    width: 15%; /* 保持图片的宽高比 */
    position: absolute; /* 使图片绝对定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    border-radius: 10px; /* 圆角 */
}

main {
    overflow: hidden;
    width: 60%; /* 固定宽度 */
    position: relative;
    border: 5px solid white; /* 白色外边框 */
    box-sizing: border-box; /* 确保边框不会影响内容宽度 */
    margin: 0 auto; /* 居中 */
}


/* 文章样式 */
.article {
    padding: 5px; /* 内边距为5% */
    margin: 40px auto; /* 上下外边距为40px，左右居中 */
    box-sizing: border-box; /* 确保内边距不会影响内容宽度 */
}

.article h2 {
    font-size: var(--font-size-large); /* 较大的字体 */
    color: var(--primary-color); /* 深黄色 */
    margin-bottom: 20px;
}

.article h3 {
    font-size: var(--font-size-medium); /* 比p标签大，比h2标签小 */
    color: var(--secondary-color); /* 深灰色 */
    font-weight: bold; /* 加粗 */
    margin-top: 20px;
    margin-bottom: 10px;
}

.article p {
    font-size: var(--font-size-small); /* 文字大小为1em */
    color: var(--text-color); /* 深灰色 */
    text-align: justify; /* 两端对齐 */
    margin-bottom: 15px;
}

/* 图片和文字样式 */
.image-text {
    text-align: center; /* 使容器内的内联元素居中 */
}

.image-text img {
    width: 50%;
    height: auto;
    margin-right: 20px;
    display: block; /* 使图片成为块级元素 */
    margin: 0 auto; /* 使图片水平居中 */
}

.image-text h2 {
    font-size: var(--font-size-large); /* 较大的字体 */
    color: var(--primary-color); /* 深黄色 */
    margin-bottom: 20px;
    text-align: left; /* 使h2向左对齐 */
}

/* 底部样式 */
footer {
    background-color: var(--background-color);
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer .company-info, footer .contact-info {
    margin-bottom: 10px;
}

/* 手机端优化 */
@media (max-width: 768px) {
    header {
        display: none; /* 隐藏header */
    }

    main {
        width: 95%; /* 宽度设置为95% */
    }

    .article {
        padding: 10px; /* 调整内边距 */
        margin: 20px auto; /* 调整外边距 */
    }

    .article h2 {
        font-size: 2em; /* 调整字体大小 */
    }

    .article h3 {
        font-size: 1.5em; /* 调整字体大小 */
    }

    .article p {
        font-size: 1em; /* 调整字体大小 */
    }

    .image-text img {
        width: 80%; /* 调整图片宽度 */
    }

    .image-text h2 {
        font-size: 2em; /* 调整字体大小 */
    }
}