/* Swiper slide styles */
.swiper-slide {
    width: auto;
    flex-shrink: 0;
}

/* 首页背景图使用 assets 路径 */
.page-Home-bg[data-v-dd5ca6e1] {
    background-image: url('../images/bg12.png');
}

input[type="range"] {
    accent-color: #0f52ba;
}

.text-month {
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 手机端适配 */
@media (max-width: 768px) {
    #customerTrustContainer {
        padding-bottom: 120px !important;
        margin-bottom: 160px !important;
    }
}

/* PC端 */
#customerTrustContainer {
    padding-bottom: 240px !important;
    margin-bottom: 160px !important;
}

/* Dialog styles */
.my-dialog-backdrop {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.my-dialog-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-card.show {
    transform: scale(1);
    opacity: 1;
}

/* Language dropdown styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.q-timeline h6 {
    font-size: 1rem !important;
}

.language-dropdown .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.language-dropdown .lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown .lang-menu li {
    padding: 6px 12px;
}

.language-dropdown .lang-menu li+li {
    margin-top: 4px;
}

.language-dropdown .lang-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
}

.language-dropdown .lang-menu li.active {
    background: #f5f5f5;
}

.language-dropdown .lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    z-index: 100;
}

/* Q-field styles */
.q-field .q-field__control-container {
    position: relative;
}

.q-field .q-field__label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left top;
    transition: top .16s ease, transform .16s ease, font-size .16s ease, opacity .16s ease;
    pointer-events: none;
    opacity: .7;
}

.q-field.is-focused .q-field__label,
.q-field.has-value .q-field__label {
    top: 6px;
    transform: none;
    font-size: 12px;
    opacity: 1;
}

.q-field .q-field__native::placeholder {
    color: transparent;
}

.q-btn-dropdown__arrow {
    transition: transform 0.3s ease;
}

.q-btn-dropdown__arrow.open {
    transform: rotate(180deg);
}

/* Login modal styles */
.login-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.login-modal-mask.show {
    display: flex;
}

.login-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.login-modal .close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.login-modal h3 {
    text-align: center;
    color: #0f52ba;
    margin-bottom: 20px;
}

.login-modal .form-group {
    margin-bottom: 16px;
}

.login-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.login-modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: #0f52ba;
}

.login-modal .code-input-group {
    display: flex;
    gap: 10px;
}

.login-modal .code-input-group input {
    flex: 1;
}

.login-modal .code-input-group .send-code-btn {
    padding: 12px 16px;
    background: #0f52ba;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.login-modal .code-input-group .send-code-btn:disabled {
    background: #ccc;
}

.login-modal .submit-btn {
    width: 100%;
    padding: 14px;
    background: #0f52ba;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-modal .submit-btn:hover {
    background: #0a3d8f;
}

.login-modal .remember-me-group {
    margin-bottom: 16px;
}

.login-modal .remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.login-modal .remember-me-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-modal .switch-mode {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.login-modal .switch-mode a {
    color: #0f52ba;
    cursor: pointer;
    text-decoration: none;
}

.login-modal .tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.login-modal .tabs .tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.login-modal .tabs .tab.active {
    color: #0f52ba;
    border-bottom-color: #0f52ba;
}

.login-modal .tab-content {
    display: none;
}

.login-modal .tab-content.active {
    display: block;
}

/* Scroll notice styles */
.notice-bar {
    background: linear-gradient(90deg, #0f52ba, #1e6bb8);
    color: #fff;
    padding: 8px 16px;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.notice-bar .notice-icon {
    margin-right: 10px;
    font-size: 16px;
}

.notice-bar .notice-content {
    flex: 1;
    overflow: hidden;
    height: 20px;
    line-height: 20px;
}

.notice-bar .notice-item {
    white-space: nowrap;
    animation: noticeScroll 30s linear infinite;
}

@keyframes noticeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
