/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 7rem;          /* 与咨询按钮错开，避免重叠 */
    right: 2.5rem;
    z-index: 9998;         /* 低于弹窗（99999），高于普通内容 */
    display: none;         /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s;
    opacity: 0;
    transform: translateY(20px);
}
 
.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(79, 70, 229, 0.9);
    transform: scale(1.05);
}

.back-to-top:active {
    transform: scale(0.92);
}

/* 移动端适配：按钮稍小，位置调整 */
@media (max-width: 640px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 6rem;
        right: 1.5rem;
    }
    .back-to-top svg {
        width: 22px;
        height: 22px;
    }
} @media (max-width: 768px){
    .thlist{
      flex: 0 0 auto;
      width: 50%;
    }
 .txtfont{
  font-weight: bold; ;
  }
  .txtfont1{
    font-weight: bold; ;
  color: red;
  }
  }
  @media (min-width: 768px){
    .thlist{
      flex: 0 0 auto;
      width: 25%;
    }
  }

.join-dl{ color: #575757; padding-bottom: 40px; border-top: 1px solid #e6e6e6;}

.join-dl dt{ cursor:pointer; position:relative; padding:25px 20px; border-bottom: 1px solid #e6e6e6; height: 22px; position: relative; overflow: hidden; font: 14px/1.8 "microsoft yahei"; background-color: #fff;}

.join-dl dt .joico{ width:15px; height:15px; position:absolute; right:20px; top:28px;}

.join-dl dt .joico .line1{ width:15px; height:3px; overflow:hidden; background:#575757; position:absolute; left:0; top:6px; transition:400ms;}

.join-dl dt .joico .line2{ width:3px; height:15px; overflow:hidden; background:#575757; position:absolute; left:6px; top:0; transition:400ms;}

.join-dl dt .joico .line3{ width:15px; height:3px; overflow:hidden; background:#fff; position:absolute; left:50px; top:6px; opacity:0; filter:alpha(opacity=0); transition:400ms;}

.join-dl dt.joinact .line1{ left:-70px; opacity:0; filter:alpha(opacity=0);}

.join-dl dt.joinact .line2{ top:-70px; opacity:0; filter:alpha(opacity=0);}

.join-dl dt.joinact .line3{ left:0px; opacity:1; filter:alpha(opacity=100);}

.join-dd{ padding:28px 20px 40px; border-bottom: 1px solid #e6e6e6; display: none; color: #333; background-color: #E3E3E3;}

.join-dl dt.joinact{ background-color: #E6EBEF; color: #fff;}

.join-dl0 dt.joinact{ background-color: #686868;}

.join-dl0 .join-dd{ background-color: #f8f8f8;}
  .txtfont{
  font-weight: bold; ;
  }
  .txtfont1{
    font-weight: bold; ;
 color: red;
  }
  .th_img {
    width: 100%;
    object-fit: cover;
  }
  .thlist_left{
    height: 150px;
  }
  .newsummary {
      margin-top: 4px;
  }
  .newsummary p{
    min-height: 36px;
    line-height: 18px;
    overflow: hidden;
    text-overflow:ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }
  .thinfo{
    width: 100%;
    text-align: right;
    margin-bottom: 13px;
  }
  .page-content{
    line-height: 32px;
    font-size: 12px;
    color: #666;
  
    overflow: hidden;
    font-size: 16px;
  }
 .page-content img {
   
   
    height: auto;
    margin: 1px auto;
    display: block;
    padding: 1px;
    border: 1px solid #f5f5f5;
}
       /* ---------- 浮动按钮 ---------- */
.float-btn {
    position: fixed; bottom: 2.5rem; right: 2.5rem; z-index: 9999;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.8rem; border: none; border-radius: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E); /* WhatsApp 绿 */
    color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    user-select: none; white-space: nowrap;
}
.float-btn:hover { transform: scale(1.05); box-shadow: 0 12px 44px rgba(37, 211, 102, 0.5); }
.float-btn::before {
    content: ''; position: absolute; inset: -4px; border-radius: 60px;
    background: inherit; opacity: 0.3; z-index: -1;
    animation: pulse-ring 2.4s ease-in-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
@media (max-width: 640px) {
    .float-btn { bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px; padding: 0; border-radius: 50%; justify-content: center; }
    .float-btn .btn-label { display: none; }
    .float-btn .btn-icon { font-size: 1.5rem; }
}

/* ---------- 弹窗遮罩 ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 99999; display: none;
    align-items: center; justify-content: center;
    background: rgba(15,23,42,0.55); backdrop-filter: blur(6px);
    padding: 1.5rem; animation: overlay-in 0.3s ease;
}
.modal-overlay.active { display: flex; }
@keyframes overlay-in { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- 弹窗主体 ---------- */
.modal-box {
    position: relative; width: 100%; max-width: 540px;
    background: #ffffff; border-radius: 1.75rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.20);
    padding: 2rem 2rem 2.2rem;
    animation: modal-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 110vh; overflow-y: auto;
}
@keyframes modal-pop {
    0% { opacity: 0; transform: scale(0.90) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; font-size: 1.8rem; line-height: 1;
    color: #94a3b8; cursor: pointer; transition: color 0.2s, transform 0.2s;
    padding: 0.2rem 0.5rem; border-radius: 8px;
}
.modal-close:hover { color: #1e293b; transform: rotate(90deg); }
.modal-head { margin-bottom: 1.5rem; padding-right: 2rem; }
.modal-head .badge {
    display: inline-block; background: #e8f5e9; color: #1b8c3a;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
    padding: 0.2rem 0.8rem; border-radius: 30px; text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.modal-head h2 { font-size: 1.6rem; font-weight: 700; color: #0f172a; }
.modal-head p { color: #64748b; font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- WhatsApp 重磅入口 ---------- */
.wa-hero-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    width: 100%; padding: 1rem; border-radius: 0.75rem;
    background: #25D366; color: #fff; font-weight: 700; font-size: 1.1rem;
    text-decoration: none; transition: background 0.2s, transform 0.2s;
    border: none; cursor: pointer; margin-bottom: 1.2rem;
}
.wa-hero-btn:hover { background: #1da851; transform: scale(1.01); }
.wa-hero-btn svg { width: 28px; height: 28px; fill: white; flex-shrink: 0; }
.divider-text {
    display: flex; align-items: center; gap: 1rem;
    color: #94a3b8; font-size: 0.8rem; margin: 0.8rem 0 1.2rem;
}
.divider-text::before, .divider-text::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* ---------- 表单样式 ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #1e293b; margin-bottom: 0.35rem; }
.form-group label .required { color: #ef4444; margin-left: 2px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.7rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 0.75rem;
    font-size: 0.95rem; font-family: inherit;
    background: #fafbfc; transition: border-color 0.25s, box-shadow 0.25s;
    color: #0f172a;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15); background: #ffffff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group.error input, .form-group.error textarea {
    border-color: #ef4444; background: #fef2f2;
}
.form-error { display: none; font-size: 0.8rem; color: #ef4444; margin-top: 0.25rem; font-weight: 500; }
.form-group.error .form-error { display: block; }

.submit-btn {
    width: 100%; padding: 0.9rem; border: none; border-radius: 0.75rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(15,23,42,0.2); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.submit-btn .btn-loader { display: none; width: 1.2rem; height: 1.2rem; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 成功状态 */
.success-state { display: none; text-align: center; padding: 1.5rem 0 0.5rem; }
.success-state .check { font-size: 3.5rem; display: block; margin-bottom: 0.5rem; }
.success-state h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; }
.success-state p { color: #64748b; margin-top: 0.3rem; }
.success-state .btn-close-success {
    margin-top: 1.5rem; padding: 0.6rem 2rem; border: none; border-radius: 40px;
    background: #e2e8f0; color: #1e293b; font-weight: 600; cursor: pointer;
}
.success-state .btn-close-success:hover { background: #cbd5e1; }
.modal-box.success .form-wrap { display: none; }
.modal-box.success .wa-hero-btn { display: none; }
.modal-box.success .divider-text { display: none; }
.modal-box.success .success-state { display: block; }

@media (max-width: 480px) {
    .modal-box { padding: 1.5rem 1.2rem 1.8rem; }
    .modal-head h2 { font-size: 1.3rem; }
}

/* 产品详情页咨询按钮 */
.btn-consult-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
 
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.30);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-consult-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.45);
}

.btn-consult-now:active {
    transform: scale(0.96);
}

.btn-consult-now .icon {
    font-size: 1.5rem;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .btn-consult-now {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
}
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.captcha-wrapper input {
    flex: 1;
    min-width: 120px;
}
.captcha-wrapper img {
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 2px;
}
.captcha-wrapper #refreshCaptchaLink {
    font-size: 0.85rem;
    color: #4f46e5;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}
.captcha-wrapper #refreshCaptchaLink:hover {
    color: #7c3aed;
}
/* 移动端适配 */
@media (max-width: 480px) {
    .captcha-wrapper {
        gap: 6px;
    }
    .captcha-wrapper img {
        height: 34px;
    }
}
