/* Page3 样式 */
.page3 {
    width: 100%;
    height: 200vh;
    position: fixed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
}

/* Page3 顶部标题 */
.page3-title {
    position: relative;
    z-index: 200;
    text-align: center;
    color: #FFD700;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8vh;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.page3-main-box {
    width: 100%;
    height: 330px;
    position: fixed;
    top: 200px;
    z-index: 200;
    /* background-color: red; */
}

.page3-main-title {
    position: absolute;
    z-index: 200;
    margin-bottom: 5vh;
    text-align: center;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* height: 100%; */
}

/* Page3 输入卡片 - 固定定位 */
.page3-input-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    z-index: 150;
    width: 85%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 180, 255, 0.2);
    /* background: linear-gradient(to bottom, rgba(7, 97, 189, 0.6) 0%,rgba(100, 180, 255, 0.6) 100%); */
    background-image: url('../img/p3_card_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 280px;
}

/* 卡片蓝色头部 */
.page3-card-header {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'yahei';
    font-size: 4.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page3-header-text {
    flex: 1;
}

.page3-header-line1 {
    margin-bottom: 5px;
}

.page3-header-font{
    text-align: left;
    color: #fff;
    font-family: 'yahei';
    font-size: 2rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page3-pencil-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 卡片白色输入区域 */
.page3-card-input {
    background: #fff;
    /* border: 1px solid rgba(100, 150, 255, 0.3); */
    border-top: none;
    /* padding: 25px 30px; */
    min-height: 40px;
    width: 90%;
    margin: 0 auto;
    border-radius: 15px;
    position: relative;
    top: 73px;
}

.page3-textarea {
    width: 100%;
    min-height: 30px;
    border: none;
    outline: none;
    resize: none;
    font-size: 2.5rem;
    font-family: Avenir, Helvetica, Arial, sans-serif;
    color: #333;
    background: transparent;
    line-height: 1.6;
}

.page3-textarea::placeholder {
    color: #9B7EDE;
    font-size: 2.5rem;
    font-family: 'yahei';
    font-weight: bold;
    opacity: 0.8;
}

/* Page3 确定按钮 - 固定定位 */
.page3-confirm-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 540px; /* 位于输入卡片下方，根据卡片高度调整 */
    z-index: 150;
    width: 200px;
    height: 60px;
    background: linear-gradient(to bottom, 
        rgba(255, 200, 150, 0.9) 0%,
        rgba(255, 180, 120, 0.9) 50%,
        rgba(255, 160, 100, 0.9) 100%);
    border: 2px solid rgba(200, 140, 80, 0.8);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #704826;
    font-size: 2.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 180, 120, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}



/* .page3-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(255, 180, 120, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
} */

/* Page3 响应式调整 */
@media (max-width: 480px) {

    .page3-input-card{
        height: 205px;
    }

    .page3-title {
        font-size: 1.8rem;
        margin-bottom: 6vh;
    }

    .page3-input-card {
        width: 90%;
        top: 50px; /* 移动端稍微上移 */
        height: 205px;
    }

    .page3-confirm-btn {
        top: 470px; /* 移动端调整按钮位置 */
        width: 180px;
        height: 55px;
        font-size: 2.3rem;
    }

    .page3-card-header {
        padding: 5px 25px;
    }

    .page3-header-font {
        font-size: 3rem;
    }

    .page3-pencil-icon {
        width: 35px;
        height: 35px;
        font-size: 24px;
        position: absolute;
        top: 30px;
        right: 20px;
    }

    .page3-card-input {
        margin: 0 auto;
        width: 76%;
        /* padding: 20px 25px; */
        padding-left: 10px;
        min-height: 40px;
    }

    .page3-textarea {
        font-size: 2.2rem;
        min-height: 95px;
    }

    .page3-textarea::placeholder {
        font-size: 2.2rem;
    }
}

/* 敏感词提示弹框遮罩层 */
.page3-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹框内容容器 */
.page3-modal-content {
    width: 80vw;
    height: 50vh;
    background: linear-gradient(to bottom, 
        rgba(255, 200, 150, 0.95) 0%,
        rgba(255, 180, 120, 0.95) 50%,
        rgba(255, 160, 100, 0.95) 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 180, 120, 0.3);
    border: 3px solid rgba(200, 140, 80, 0.9);
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹框标题 */
.page3-modal-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: #704826;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'yahei', Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

/* 红色叉图标容器 */
.page3-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    flex-shrink: 0;
}

/* 敏感词内容 */
.page3-modal-sensitive-words {
    font-size: 2.2rem;
    color: #8B4513;
    text-align: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 2px solid rgba(200, 140, 80, 0.5);
    margin: 10px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    max-width: 90%;
    font-family: 'yahei', Arial, sans-serif;
    font-weight: 500;
}

/* 重新填写按钮 */
.page3-modal-btn {
    width: 200px;
    height: 60px;
    background: linear-gradient(to bottom, 
        rgba(100, 180, 255, 0.9) 0%,
        rgba(7, 97, 189, 0.9) 100%);
    border: 2px solid rgba(7, 97, 189, 0.8);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(7, 97, 189, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    font-family: 'yahei', Arial, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.page3-modal-btn:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 10px rgba(7, 97, 189, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .page3-modal-content {
        width: 85vw;
        height: 50vh;
        padding: 30px 20px;
        border-radius: 25px;
    }

    .page3-modal-title {
        font-size: 2.4rem;
        margin-bottom: 15px;
    }

    .page3-modal-icon {
        margin: 15px 0;
    }

    .page3-modal-icon svg {
        width: 60px;
        height: 60px;
    }

    .page3-modal-sensitive-words {
        font-size: 2rem;
        padding: 12px 15px;
        min-height: 50px;
    }

    .page3-modal-btn {
        width: 180px;
        height: 55px;
        font-size: 2.3rem;
    }
}