﻿:root{--hjcolor:#2e0099;;}
.ad-slot{margin-top:20px;}
.ad-slot img{height:100%;}
.ad-slot span{display: block;position: relative;top: -25px;left: 35px;width: 30px;height: 15px;text-align: center;line-height: 15px;background-color: rgba(255,255,255,.4);}
.about .jianjies p{font-size:14px;line-height:2em;}
.post_comments{width:370px;margin-left:25px;margin-top:25px;border-radius:10px;height:220px;}

.ad-slot{margin-top:20px;}
.ad-slot img{height:100%;}
.ad-slot span{display: block;position: relative;top: -25px;left: 35px;width: 30px;height: 15px;text-align: center;line-height: 15px;background-color: rgba(255,255,255,.4);}
.about .jianjies p{font-size:14px;line-height:2em;}
.post_comments{width:370px;margin-left:25px;margin-top:25px;border-radius:10px;height:220px;}
/* 模态框样式 */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.active {
    display: flex;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}
.flex {
    display: flex;
}
.justify-between {
    justify-content: space-between;
}
.items-center {
    align-items: center;
}
.mb-4 {
    margin-bottom: 16px;
}
.text-lg {
    font-size: 18px;
}
.font-bold {
    font-weight: bold;
}
.text-neutral-800 {
    color: #2d3748;
}
.close-modal {
    background: none;
    border: none;
    cursor: pointer;
}
.space-y-4 > div {
    margin-bottom: 16px;
}
.text-sm {
    font-size: 14px;
}
.text-neutral-700 {
    color: #4a5568;
}
.mb-1 {
    margin-bottom: 4px;
}
.w-full {
    width: 100%;
}
.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}
.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}
.border {
    border: 1px solid;
}
.border-gray-300 {
    border-color: #e2e8f0;
}
.rounded-md {
    border-radius: 4px;
}
.focus:outline-none {
    outline: none;
}
.focus:ring-2 {
    ring-width: 2px;
}
.focus:ring-primary\/50 {
    ring-color: rgba(59, 130, 246, 0.5);
}
.focus:border-primary {
    border-color: #3b82f6;
}
.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}
.bg-primary {
    background-color: #3b82f6;
}
.text-white {
    color: white;
}
.hover:bg-primary\/90 {
    background-color: rgba(59, 130, 246, 0.9);
}
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.flex-1 {
    flex: 1;
}
.gap-2 > * + * {
    margin-left: 8px;
}
.w-32 {
    width: 8rem;
}
.h-10 {
    height: 2.5rem;
}
.object-cover {
    object-fit: cover;
}
.cursor-pointer {
    cursor: pointer;
}
.show-phone-btn {

    width:130px;
    height:40px;
    padding:5px 10px;
    background-color:var(--hjcolor) ;
    margin-left: 10px;
    color: #fff;
    cursor: pointer;
    font-size:14px;
    font-weight:200;
}
.show-phone-btn:hover{background-color:#FD583A;}
/* 留言模态框整体样式 */
#messageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

/* 强制居中，不受内容影响 */
#messageModal::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#messageModal.active {
    opacity: 1;
    visibility: visible;
}

/* 模态框内容 - 紧凑尺寸 */
#messageModal .modal-content {
    background: #f5f7fa;
    width: 100%;
    max-width: 380px;
    max-height: 530px;
    border-radius: 12px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

/* 标题栏优化 */
#messageModal .modal-header {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#messageModal .modal-title {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* 关闭按钮调整 */
#messageModal .close-modal {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#messageModal .close-modal:hover {
    background: #eef0f3;
    color: #555;
    box-shadow:
        2px 2px 4px rgba(163, 177, 198, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* 表单区域压缩 */
#messageModal .modal-body {
    padding: 15px 18px;
    max-height: 70vh; /* 限制最大高度 */
    overflow-y: auto;
}

/* 减小表单间距 */
#messageModal .space-y-4 > div {
    margin-bottom: 10px;
}

/* 输入框样式优化 */
#messageModal input[type="text"],
#messageModal input[type="tel"],
#messageModal textarea {
    width: 100%;
    padding: 10px 14px;
    background: #f5f7fa;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    border:1px solid #dedede;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
    outline:none;
    margin-top:5px;
}

#messageModal textarea {
    min-height: 80px; /* 进一步降低高度 */
    resize: vertical;
}

/* 验证码区域调整 */
#messageModal .flex.gap-2 {
    gap: 6px;
}

#messageModal img[src*="vercode"] {
    border-radius: 2px;
    position:relative;
    top:5px;
    width: 1.2rem;
    height: 35px;
}

/* 提交按钮优化 */
#messageModal button[type="submit"] {
    width: 100%;
    background-color: var(--hjcolor);
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;

}

#messageModal button[type="submit"]:hover {
background-color:##0F0042;
}

#messageModal button[type="submit"]:active {
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.6);
}

/* 滚动条调整 */
#messageModal .modal-body::-webkit-scrollbar {
    width: 5px;
}

#messageModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(163, 177, 198, 0.3);
    border-radius: 3px;
}