﻿/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /**/
}

/* 设置整体页面样式 */
body {
    /*
            font-family: 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
            background-color: #f8fbf8;
            color: #333333;
            line-height: 1.6;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: 20px 15px;
            */
}

/* 主容器 - 控制整体宽度 */
.mainBody {
    width: 100%;
    max-width: 700px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 45vh;
    margin:0px auto;
    position:absolute;
    z-index:99;
    top:20%;
    left:40%;
}

    /* 内容区域 */
    .mainBody .content {
        padding: 50px 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }

        /* 第一行文字 */
        .mainBody .content .titleLineFirst {
            font-size: 24px;
            font-weight: 700;
            color: #1e7a1e;
            text-align: center;
            margin-bottom: 25px;
            width: 100%;
            line-height: 1.4;
            letter-spacing: 1px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        /* 第二行文字 - 控制宽度为容器的90% */
        .mainBody .content .titleLineSecond {
            font-size: 20px;
            font-weight: 700;
            color: #1e7a1e;
            text-align: center;
            margin-bottom: 45px;
            width: 90%;
            line-height: 1.5;
            letter-spacing: 0.5px;
            padding: 0 15px;
        }

        /* 图片容器 */
        .mainBody .content .imageSection {
            width: 100%;
            max-width: 280px;
            margin: 0 auto 45px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

            /* 图片样式 - 1:1正方形 */
            .mainBody .content .imageSection .squareImage {
                width: 100%;
                height: 0;
                padding-bottom: 100%; /* 创建1:1正方形比例 */
                background-size:cover;
                background-image: url(/style/images/gdicpa_qrcode.jpg);
                background-repeat: no-repeat;
                background-position: center;
                border-radius: 12px;
                box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
                border: 2px solid #e8f5e8;
            }

            /* 图片下方的文字 */
            .mainBody .content .imageSection .imageLabel {
                content: "";
                display: block;
                font-size: 18px;
                color: #666666;
                margin-top: 20px;
                font-weight: 500;
                letter-spacing: 2px;
                text-align: center;
                width: 100%;
            }

        /* 第四行文字 */
        .mainBody .content .signatureInstruction {
            font-size: 24px;
            font-weight: 500;
            color: #1e7a1e;
            text-align: center;
            margin-top: 15px;
            width: 100%;
        }

    /* 底部按钮容器 */
    .mainBody .bottomButtons {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 30px 35px;
        display: flex;
        justify-content: space-between;
        box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #eef7ee;
    }

        /* 按钮通用样式 */
        .mainBody .bottomButtons .buttonItem {
            flex: 1;
            margin: 0 12px;
        }

            /* 已签名按钮 */
            .mainBody .bottomButtons .buttonItem .signButton {
                width: 100%;
                padding: 20px 10px;
                background-color: #ff3333;
                color: #FFFFFF;
                border: none;
                border-radius: 10px;
                font-size: 22px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: 'Noto Sans SC', sans-serif;
                letter-spacing: 1px;
                box-shadow: 0 5px 15px rgba(255, 51, 51, 0.2);
            }

                .mainBody .bottomButtons .buttonItem .signButton:hover {
                    background-color: #e60000;
                    transform: translateY(-3px);
                    box-shadow: 0 8px 20px rgba(255, 51, 51, 0.3);
                }

                .mainBody .bottomButtons .buttonItem .signButton:active {
                    transform: translateY(0);
                }

            /* 取消按钮 */
            .mainBody .bottomButtons .buttonItem .cancelButton {
                width: 100%;
                padding: 20px 10px;
                background-color: #1e7a1e;
                color: #FFFFFF;
                border: none;
                border-radius: 10px;
                font-size: 22px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: 'Noto Sans SC', sans-serif;
                letter-spacing: 1px;
                box-shadow: 0 5px 15px rgba(30, 122, 30, 0.2);
            }

                .mainBody .bottomButtons .buttonItem .cancelButton:hover {
                    background-color: #176617;
                    transform: translateY(-3px);
                    box-shadow: 0 8px 20px rgba(30, 122, 30, 0.3);
                }

                .mainBody .bottomButtons .buttonItem .cancelButton:active {
                    transform: translateY(0);
                }

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .mainBody .content {
        padding: 35px 25px 120px;
    }

        .mainBody .content .titleLineFirst {
            font-size: 26px;
        }

        .mainBody .content .titleLineSecond {
            font-size: 22px;
            width: 92%;
        }

        .mainBody .content .signatureInstruction {
            font-size: 20px;
        }

        .mainBody .content .imageSection {
            max-width: 350px;
        }

    .mainBody .bottomButtons {
        padding: 25px 30px;
    }

        .mainBody .bottomButtons .buttonItem .signButton,
        .mainBody .bottomButtons .buttonItem .cancelButton {
            padding: 18px 10px;
            font-size: 20px;
        }

    body {
        padding: 15px 10px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .mainBody .content {
        padding: 30px 20px 110px;
    }

        .mainBody .content .titleLineFirst {
            font-size: 22px;
        }

        .mainBody .content .titleLineSecond {
            font-size: 19px;
            width: 95%;
        }

        .mainBody .content .signatureInstruction {
            font-size: 18px;
        }

        .mainBody .content .imageSection {
            max-width: 300px;
        }

            .mainBody .content .imageSection .squareImage {
                background-size: 80px;
            }

            .mainBody .content .imageSection .imageLabel {
                font-size: 16px;
                margin-top: 15px;
            }

    /* 关键修改：确保按钮在一行显示 */
    .mainBody .bottomButtons {
        padding: 20px 25px;
        flex-direction: row; /* 确保按钮在一行 */
        gap: 15px; /* 按钮之间的间距 */
    }

        .mainBody .bottomButtons .buttonItem {
            margin: 0;
        }

            .mainBody .bottomButtons .buttonItem .signButton,
            .mainBody .bottomButtons .buttonItem .cancelButton {
                padding: 16px 8px;
                font-size: 18px;
            }

    body {
        padding: 10px 8px;
    }
}

/* 响应式设计 - 小手机 */
@media (max-width: 360px) {
    .mainBody .content {
        padding: 25px 15px 100px;
    }

        .mainBody .content .titleLineFirst {
            font-size: 20px;
        }

        .mainBody .content .titleLineSecond {
            font-size: 17px;
            width: 98%;
        }

        .mainBody .content .signatureInstruction {
            font-size: 16px;
        }

        .mainBody .content .imageSection {
            max-width: 260px;
        }

    .mainBody .bottomButtons {
        padding: 15px 20px;
        gap: 12px;
    }

        .mainBody .bottomButtons .buttonItem .signButton,
        .mainBody .bottomButtons .buttonItem .cancelButton {
            padding: 14px 6px;
            font-size: 16px;
        }
}

/* 添加微妙的背景纹理 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d8f0d8 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: -1;
    opacity: 0.3;
}

/* 添加顶部装饰线（可选，如果不需要可以删除） */
.mainBody::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e7a1e, #4caf50, #1e7a1e);
}
