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

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3CB371;
    padding: 10px 20px;
    position: relative;
    max-width: 940px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 30px;
    height: 20px;
    margin-right: 30px; /* 向左移动一些 */
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }

.menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.menu-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white; /* 背景颜色改为白色 */
    width: 200px; /* 缩窄菜单宽度 */
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}

.menu-list.active {
    display: flex;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list a {
    color: #3CB371; /* 字体颜色改为绿色 */
    text-decoration: none;
    font-size: 1em;
}

.menu-list a:hover {
    text-decoration: underline;
}

/* Header */
header {
    text-align: center;
}

header img {
    max-width: 960px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

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

.aligned-video {
    max-width: 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;
    text-align: center;
}

.main-title {
    font-size: 2.5em;
    animation: scaleAnimation 1.5s 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;
    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 */
footer {
    background-color: #f4f4f4;
    color: black;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.contact-info {
    color: Black;
    padding: 20px;
    margin: 20px auto;
    max-width: 880px;
    text-align: left;
    border: 2px solid #3CB371;
    outline: 3px solid #3CB371;
    outline-offset: 12px;
    position: relative;
}

.contact-info p {
    margin: 0;
}

.contact-info img {
    width: 120px; /* 二维码图片宽度大小 */
    height: auto;
    float: right;
    position: absolute;
    right: 80px;/* 图片距离边框宽度 */
    top: 50%;
    transform: translateY(-50%);
}

.contact-info .text-after-image {
    position: absolute;
    right: 50px; /* 文字距离边框宽度 */
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.contact-info .text-after-image p {
    margin: 0;
    font-size: 0.9em; /* 比联系方式的字小一号 */
    line-height: 1.2em; /* 调整行高以适应垂直排列 */
}

.copyright {
    font-size: 0.8em;
    color: black;
}

/* Bottom Section */
.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 */
.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;
    overflow: hidden;
    white-space: nowrap;
}

.purchase-button .icon {
    height: 1.68em; /* 增大图标尺寸 */
    width: auto;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    animation: scaleIconText 0.5s infinite alternate;
}

.purchase-button span {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.4em; /* 增大文字尺寸 */
    animation: scaleIconText 0.5s infinite alternate;
}

.purchase-button:hover {
    background-color: #FF0000;
}

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