* {
    margin: 0;
    padding: 0;
}

body {
    background: url(../images/bg.png);
    background-repeat: no-repeat;
    background-size: cover;

}

/* 字体 */

@font-face {
    font-family: "Alimama ShuHeiTi";
    src: url(../fonts/AlimamaShuHeiTi-Bold.woff2);
}

.flex {
    display: flex;
}

.center {
    justify-content: center;
}

.flex-row {
    flex-direction: row;
}




@font-face {
    font-family: "iconfont";
    src: url('https://at.alicdn.com/t/c/font_4545932_ukt0brhzhmc.woff2?t=1768371790841') format('woff2'),
        url('https://at.alicdn.com/t/c/font_4545932_ukt0brhzhmc.woff?t=1768371790841') format('woff'),
        url('https://at.alicdn.com/t/c/font_4545932_ukt0brhzhmc.ttf?t=1768371790841') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
}

.iconfont {
    font-family: iconfont, sans-serif !important;
    font-size: 20px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.iconfont-navbar-back:before {
    content: ""
}

.container .header {
    height: 182px;
    background: url(../images/headerIcon.png) no-repeat center center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100vw 158px;
    padding-top: 130px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.container-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    box-sizing: border-box;
}

.container-explain .container-top {
    background-color: #fdecbc;
}

.container .top-back {
    width: 24px;

}

.container-explain .top-title {
    flex: 1;
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.container .top-title {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}


.container .header-text {
    font-family: "Alimama ShuHeiTi", sans-serif;
    font-size: 22px;
    color: #7c4b00;
    font-weight: bold;
}

.container .header-tip {
    margin-top: 10px;
}

.container .content {
    margin-top: 0px;
    padding: 0 15px 100px 15px;
}

.container .content img {
    width: 100%;
    height: 100%;
}

.container-explain .content {
    padding-top: 40px;
}



/* 底部悬浮栏 */
.bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.consult-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
}

.consult-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consult-text {
    font-size: 12px;
    color: #666;
}

.guarantee-btn {
    flex: 1;
    margin-left: 20px;
    padding: 12px 20px;
    background: #f6a046;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.guarantee-btn:hover {
    background: #f6a046;
}

.guarantee-btn:active {
    background: #f6a046;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0px 0;
}

.identity-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.identity-card {
    flex: 1;
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}



.identity-card.selected {
    flex: 1.5;
    background-color: #fff;
    border: 1px solid #f6a046;
}

.identity-card.selected .identity-text {
    background-color: #f6a046;
    color: #fff;
}

.identity-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.identity-icon svg {
    width: 100%;
    height: 100%;
}

.identity-text {
    font-size: 12px;
    color: #333;
    font-weight: 400;
    background-color: #f5f5f5;
    padding: 6px 0;
}

.modal-footer {
    padding-top: 0px;
}

.start-transaction-btn {
    width: 100%;
    padding: 14px 20px;
    /* background: #f6a046; */
    background-color: rgba(246, 160, 70, 0.5) !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}



.start-transaction-btn.active {
    background: #f6a046;
    background-color: rgba(246, 160, 70, 1) !important;
}

.buyer-id-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.buyer-id-explain {
    color: #ff6600;
    text-decoration: underline;
    margin-left: 8px;
    font-size: 12px;
}

.buyer-id-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.buyer-id-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    font-size: 14px;
    box-sizing: border-box;
}

.seller-id-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.seller-id-explain {
    color: #ff6600;
    text-decoration: underline;
    margin-left: 8px;
    font-size: 12px;
}

.seller-id-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.seller-id-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    font-size: 14px;
    box-sizing: border-box;
}