.comment-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 9999;
    opacity: 0;
    transition: all .5s ease-in-out;
    overflow: hidden;
    height: 0;
}

.comment-container {
    box-sizing: border-box;
    width: 92% !important;
    height: 100%;
    margin: 0 auto;
    padding: 0rem !important;
}

.comment-container .title{
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.comment-container .info{
    text-align: center;
    margin-bottom: 2rem;
    color: #757575;
}

.comment-container .form-box {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.comment-container .form-box .form-item {
    width: 48%;
    height: 7rem;
}


.comment-container .form-box .form-item.more-line{
    width: 100%;
}

.comment-container .form-box .form-item.submit{
    width: 100%;
    height: auto;
    margin-top: 3rem;
    padding: 0;
    text-align: center;
}

.comment-container .form-box .form-item .label{
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.comment-container .form-box .form-item .label sup{
  color: #F53F3F;
  font-size: .875rem;
  margin-left: 4px;
}


.comment-container .form-box .form-item input,
.comment-container .form-box .form-item select{
    width: 100%;
    height: 60px !important;
    border: 1px solid #bbbbbb;
    padding: 0 1rem;
    box-sizing: border-box;
    outline: none;
    font-size: 1rem !important;
    border-radius: 5px;
}

.comment-container .form-box .form-item input:hover,
.comment-container .form-box .form-item select:hover {
    border-color: #999;
    box-shadow: 0 0 1px #bbbbbb;
}

.comment-container .form-box .form-item .error-message{
    width: 100%;
    height: 16px;
    font-size: 15px;
    color:#F53F3F;
    margin: 4px 0 16px 16px;
    visibility: hidden;
}

.comment-container .more-line textarea{
    width: 100%;
    height: 140px;
    border: 1px solid #bbbbbb;
    padding: .75rem;
    box-sizing: border-box;
    outline: none;
    font-size: 1rem;
    border-radius: 5px;
    resize: none;
}

.comment-container .more-line textarea:hover {
    border-color: #999;
    box-shadow: 0 0 1px #bbbbbb;
}

.comment-container .submit-btn {
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 40%;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 32px;

    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg,#ce4348, #e74c3c);
    border: none;
}

.comment-container .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.comment-container .submit-btn:active {
    transform: translateY(-1px);
}

.comment-container .submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.comment-container .submit-btn:hover::after {
    left: 100%;
}

.comment-container .close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 3rem;
    right: 3rem;
    cursor: pointer;
}

.comment-container .close .ipc{
    width: 32px;
    height: 32px;
    color: #a0a0a0;
    font-size: 1.3rem;
}

.comment-container .close .ipc:hover{
   color: #303030;
}

/* 蒙层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.envelope {
    position: absolute;
    width: 80px;
    height: 60px;
    background: #d04447;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    z-index: 2;
    animation: envelope-pulse 2s infinite;
}

.envelope:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 20px solid #d04447;
}

.envelope:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    top: 25px;
    left: 10px;
    border-radius: 5px;
}

.circular-loader {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid rgba(192, 0, 0, 0.2);
    border-radius: 50%;
    border-top: 4px solid #d04447;
    animation: spin 1.5s linear infinite;
    transform-origin: center;
    top: 0;
    left: 0;
}

.loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.progress-text {
    font-size: 16px;
    color: #d04447;
    font-weight: 600;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.hint {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes envelope-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.loading-dots:after {
    content: '';
    animation: dots 1.5s infinite;
}

/* ========== 移动端适配 ========== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .comment-container {
        width: 90%;
        padding: 1.5rem;
    }

    .comment-container .title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .comment-container .submit-btn {
        width: 50%;
        font-size: 1rem;
    }

    .comment-container .close {
        top: 1.5rem;
        right: 2rem;
    }
}

/* 手机设备 (最大宽度 768px) */
@media screen and (max-width: 768px) {

    .comment-wrap {
        height: 0;
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
    }

    .comment-container {
        width: 100%;
        padding: 1.5rem 1rem 2rem;
        box-sizing: border-box;
    }

    .comment-container .title {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem;
        padding-right: 2rem;
        margin-top: 2rem;
    }

    .comment-container .info {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    /* 表单改为单列布局 */
    .comment-container .form-box .form-item {
        width: 100%;
        margin-bottom: 0;
    }

    .comment-container .form-box .form-item .label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }

    .comment-container .form-box .form-item input,
    .comment-container .form-box .form-item select {
        height: 48px;
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    .comment-container .form-box .form-item .error-message {
        font-size: 13px;
        margin: 2px 0 4px 8px;
        height: auto;
    }

    .comment-container .more-line textarea {
        height: 120px;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* 提交按钮占满宽度 */
    .comment-container .submit-btn {
        width: 100%;
        height: 48px;
        font-size: 1rem;
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 24px;
    }

    /* 关闭按钮调整 */
    .comment-container .close {
        width: 28px;
        height: 28px;
        top: 1rem;
        right: 1rem;
    }

    .comment-container .close .ipc {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    /* 加载容器适配 */
    .loading-container {
        padding: 30px 20px;
        width: 90%;
        max-width: 320px;
    }

    .loader {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }

    .envelope {
        width: 70px;
        height: 50px;
    }

    .envelope:before {
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 18px solid #d04447;
        top: -18px;
    }

    .envelope:after {
        width: 50px;
        height: 8px;
        top: 20px;
        left: 10px;
    }

    .circular-loader {
        width: 100px;
        height: 100px;
        border-width: 3px;
        border-top-width: 3px;
    }

    .loading-text {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .progress-text {
        font-size: 14px;
    }

    .hint {
        margin-top: 15px;
        font-size: 12px;
    }
}

/* 小屏手机设备 (最大宽度 480px) */
@media screen and (max-width: 480px) {
    .comment-container {
        padding: 1.25rem 0.875rem 1.75rem;
    }

    .comment-container .title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }

    .comment-container .info {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }

    .comment-container .form-box {
        display: flex;
        justify-content: flex-start;
        gap: 0rem !important;
        flex-wrap: wrap;
    }

    .comment-container .form-box .form-item .label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .comment-container .form-box .form-item input,
    .comment-container .form-box .form-item select {
        height: 50px !important;
        font-size: 0.85rem;
    }

    .comment-container .form-box .form-item .error-message {
        margin: 2px 0 4px 6px;
    }

    .comment-container .more-line textarea {
        height: 100px;
        font-size: 0.85rem;
    }

    .comment-container .submit-btn {
        height: 44px;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .loading-container {
        padding: 25px 15px;
        width: 85%;
    }

    .loader {
        width: 80px;
        height: 80px;
    }

    .envelope {
        width: 60px;
        height: 40px;
    }

    .envelope:before {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 15px solid #d04447;
        top: -15px;
    }

    .envelope:after {
        width: 40px;
        height: 6px;
        top: 17px;
        left: 10px;
    }

    .circular-loader {
        width: 80px;
        height: 80px;
    }

    .loading-text {
        font-size: 14px;
    }

    .progress-text {
        font-size: 13px;
    }
}