/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    text-align: center;
}

header img {
    max-width: 950px; /* 设置图片的最大宽度为950px */
    width: 100%; /* 图片将根据容器宽度自适应 */
    height: auto; /* 维持图片的宽高比 */
    display: block;
    margin: 10px auto; /* 居中显示 */
}

main {
    text-align: center;
    padding: 20px;
}

/* 更新视频样式，使其宽度与文本块一致 */
.aligned-video {
    max-width: 890px; /* 设置视频的最大宽度为890px */
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.text-block {
    background-color: #3CB371; /* 稍微深一点的绿色背景 */
    color: white; /* 白色字体 */
    padding: 20px;
    margin: 20px auto;
    max-width: 850px; /* 设置文字框的最大宽度为850px */
    text-align: center; /* 文字居中 */
}

.main-title {
    font-size: 2.5em; /* 主标题字体加大一号 */
    animation: scaleAnimation 2s infinite alternate;
    text-align: center; /* 主标题居中 */
}

@keyframes scaleAnimation {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.text-container {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px auto;
    max-width: 850px; /* 设置文字框的最大宽度为850px */
    text-align: center; /* 整个容器的文本对齐方式为居中 */
}

.text-container h2, 
.text-container p {
    font-size: 1em;
    line-height: 1.6;
    text-align: center; /* 正文段落居中 */
    color: #3CB371; /* 设置正文字体颜色为绿色 */
    font-weight: bold; /* 加粗字体 */
}

.text-container h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

footer {
    background-color: #f4f4f4; /* 背景颜色与页面背景颜色一致 */
    color: black; /* 字体颜色为黑色 */
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.contact-info {
    color: Black; /* 框内字体颜色改为黑色 */
    position: relative; /* 使用相对定位以便调整内层边框 */
    padding: 20px;
    margin: 20px auto;
    max-width: 880px; /* 设置联系信息的最大宽度为880px */
    text-align: left;
    border: 2px solid #3CB371; /* 外层绿色边框，宽度为2px */
    outline: 3px solid #3CB371; /* 内层绿色边框，宽度为2px */
    outline-offset: 12px; /* 内层边框距离外框12px */
}

.copyright {
    font-size: 0.8em;
    color: black; /* 版权信息字体颜色为黑色 */
}

/* 底部标题和正文样式 */
.bottom-section {
    text-align: center; /* 文本居中 */
    padding: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.bottom-section h2 {
    color: #FF0000; /* 纯红色 */
}

.bottom-section h2 span.black-text {
    color: black; /* 保持默认颜色为黑色 */
}

/* 购买按钮样式 */
.purchase-button {
    display: inline-flex;
    align-items: center; /* 垂直居中对齐 */
    padding: 20px 100px; /* 增加内边距使按钮更宽 */
    background-color: #3CB371; /* 按钮背景颜色 */
    color: #FFFFFF; /* 字体颜色 */
    font-size: 1.2em;
    font-weight: bold; /* 加粗文字 */
    text-decoration: none;
    border-radius: 25px; /* 圆角边框 */
    transition: background-color 0.3s ease;
}

.purchase-button .icon {
    height: 1.2em; /* 与字体大小一致 */
    width: auto; /* 自动调整宽度以保持比例 */
    margin-right: 10px; /* 图标与文本之间的间距 */
}

.purchase-button:hover {
    background-color: #FF0000; /* 按钮红色背景（悬停效果） */
}

/* 响应式设计 */
@media (min-width: 768px) { /* 针对平板及更大的屏幕 */
    header img {
        max-width: 950px; /* 在大屏上限制图片的最大宽度 */
        display: block; /* 让图片单独显示 */
    }

    .aligned-video {
        max-width: 890px; /* 在大屏上限制视频的最大宽度 */
        display: block; /* 让视频单独显示 */
    }
}