.template-container {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 1%;
    right: 1%;
    margin: auto;
}

.template-content {
    width: 100%;
    height: auto;
    min-height: 800px;
    margin: 40px 0px 0px;
    position: relative;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    max-width: 900px;
    min-width: 250px;
    margin: 0;
    padding: min(30px, 5%);
    padding-bottom: 60px;
    color: #24292f;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.template-content img {
    display: block;
    padding: 0;
    width: 10%;
    position: absolute;
}

.template-content #pattern1 {
    top: 5px;
    left: 5px;
}

.template-content #pattern2 {
    transform: rotate(90deg);
    top: 5px;
    right: 5px;
}

.template-content #pattern3 {
    transform: rotate(180deg);
    right: 5px;
    bottom: 5px;
}

.template-content #pattern4 {
    transform: rotate(270deg);
    left: 5px;
    bottom: 5px;
}

.template-content #pattern5 {
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
}

.template-content p {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #333333;
    opacity: 80%;
}

.template-content .intro-text {
    width: 100%;
    max-width: 800px;
    margin-top: 120px;
    color: #333333;
    line-height: 1.8;
}

.template-content .intro-text p {
    position: static;
    transform: none;
    font-size: 20px;
    opacity: 1;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.template-content .intro-text strong {
    color: #015293;
    font-size: 26px;
}

.template-content .intro-text a {
    color: #015293;
    text-decoration: none;
}

.template-content .intro-text a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.template-content .intro-text i {
    font-style: italic;
    color: #666666;
    /* 灰色 */
}

.template-content .wechat-qr {
    width: 200px;
    height: auto;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.template-content .wechat-qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    position: static;
}

.template-content .wechat-qr p {
    position: static;
    transform: none;
    margin-top: 10px;
    font-size: 16px;
    color: #666666;
    opacity: 1;
}

.template-content .wechat-qr .more-contact {
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    border: 1px solid #dddddd;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.template-content .wechat-qr .more-contact:hover {
    color: #015293;
    border-color: #015293;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(1, 82, 147, 0.1);
}

/* contact start */
.qr-contact {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 100px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-bar {
    width: 100%;
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.icon-bar img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    display: block;
    position: relative;
}

.icon-bar img:hover,
.icon-bar img.active {
    opacity: 1;
    transform: scale(1.1);
}

.qr-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#pattern1,
#pattern2,
#pattern3,
#pattern4,
#pattern5 {
    display: block;
    padding: 0;
    width: 10%;
    position: absolute;
}

.general-contact {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item {
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
    padding-left: 20px;
    position: relative;
    min-height: 24px;
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    opacity: 0.7;
    flex-shrink: 0;
    position: static;
    display: block;
}

.contact-item .text {
    font-size: 16px;
    line-height: 24px;
    padding-left: 8px;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.contact-item .address {
    width: 100%;
}

.map-container {
    width: 100%;
    max-width: 680px;
    height: 300px;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* contact end */