/* ==========================================
   全局组件 1：右侧悬浮联系方式 (整体滑出)
   ========================================== */
#tin-sidebar {
    position: fixed; right: 0; top: 38%; 
    transform: translateY(-50%) translateX(120%);
    width: 60px; 
    background-color: #F08200; 
    z-index: 999999;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease, opacity 0.4s ease;
    opacity: 0; 
    font-family: "Helvetica", "Arial", sans-serif;
    display: flex; flex-direction: column; 
}
#tin-sidebar.is-visible { transform: translateY(-50%) translateX(0); opacity: 1; }
#tin-sidebar:hover { width: 280px; } 

.tin-item {
    display: flex; align-items: center; 
    height: 54px; width: 280px; 
    text-decoration: none; 
    border-bottom: 1px solid rgba(255,255,255,0.3); 
    box-sizing: border-box;
}
.tin-item:last-child { border-bottom: none; }

.tin-icon { width: 60px; min-width: 60px; height: 100%; display: flex; justify-content: center; align-items: center; }
.tin-icon svg { width: 20px; height: 20px; fill: #ffffff; }

.tin-text { color: #ffffff; font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease 0.1s; padding-left: 5px; font-weight: 500; }
#tin-sidebar:hover .tin-text { opacity: 1; }
.tin-text.email-text { font-size: 13px; }

/* ==========================================
   全局组件 2：完美回到顶部
   ========================================== */
.progress-wrap {
    position: fixed; right: 30px; bottom: 40px;
    height: 46px; width: 46px; cursor: pointer; display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1); 
    z-index: 999998; opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: all 200ms linear; background-color: transparent;
}
.progress-wrap.active-progress { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-circle { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-circle path {
    fill: none; stroke: #F08200; stroke-width: 4;
    box-sizing: border-box; transition: stroke-dashoffset 10ms linear;
}
.progress-wrap .arrow-up { position: absolute; left: 0; top: 0; height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; z-index: 1; }
.progress-wrap .arrow-up svg { width: 18px; height: 18px; fill: none; stroke: #F08200; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================
   全局组件 3：左下角 Online Message
   ========================================== */
.om-trigger-wrapper { position: fixed; bottom: 40px; left: 30px; z-index: 999997; display: flex; align-items: center; gap: 15px; }
.om-trigger-btn { width: 56px; height: 56px; background: #F08200; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.om-trigger-btn svg { width: 26px; height: 26px; fill: #fff; }
.om-trigger-btn:hover svg { animation: bounce 0.5s ease infinite alternate; }
@keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-4px); } }

.om-tooltip {
    background: #fff; padding: 10px 15px; border-radius: 4px;
    font-size: 13px; color: #777; line-height: 1.5; position: relative;
    border: 1px solid #e0e0e0; font-family: "Helvetica", "Arial", sans-serif; cursor: pointer;
}
.om-tooltip::before { content: ""; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); border-width: 6px 6px 6px 0; border-style: solid; border-color: transparent #e0e0e0 transparent transparent; }
.om-tooltip::after { content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); border-width: 5px 5px 5px 0; border-style: solid; border-color: transparent #fff transparent transparent; }

#online-message-popup {
    position: fixed; bottom: 110px; left: 30px; width: 360px; background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15); border-radius: 6px; z-index: 999998; overflow: hidden; font-family: "Helvetica", "Arial", sans-serif;
    transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#online-message-popup.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.om-header { background: #F08200; color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.om-header-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: bold; }
.om-header-title svg { width: 24px; height: 24px; fill: #fff; }
.om-close { cursor: pointer; font-size: 26px; line-height: 1; opacity: 0.8; transition: 0.3s; }
.om-close:hover { opacity: 1; transform: rotate(90deg); }

.om-body { padding: 25px 20px; }
.om-desc { font-size: 13px; color: #999; margin-top: 0; margin-bottom: 20px; line-height: 1.6; text-align: center; }

.om-field { position: relative; margin-bottom: 15px; }
.om-field input, .om-field textarea {
    width: 100%; box-sizing: border-box; padding: 12px 35px 12px 12px;
    border: 1px solid #e0e0e0; border-radius: 3px; font-size: 13px; font-family: inherit; color: #333333; transition: 0.3s;
}
.om-field input:focus, .om-field textarea:focus { outline: none; border-color: #F08200; box-shadow: 0 0 4px rgba(240,130,0,0.1); }
.om-field input::placeholder, .om-field textarea::placeholder { color: #999; font-weight: 300; }
.om-field textarea { resize: none; height: 100px; }
.om-field .input-icon { position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; fill: #ccc; pointer-events: none; }

.om-submit {
    width: 100%; background: #F08200; color: #fff; border: none; padding: 14px;
    border-radius: 3px; cursor: pointer; font-weight: bold; font-size: 15px; transition: background 0.3s;
}
.om-submit:hover { background: #d97500; }