/* ===== 公共基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ===== 导航栏弹出框 ===== */
.nav-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.nav-popup.show {
    display: flex;
}
.nav-popup-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.nav-popup-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}
.nav-popup-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.nav-popup-close:hover {
    color: #333;
}

/* ===== Let's Talk 弹窗 ===== */
.letstalk-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.letstalk-popup.show {
    display: flex;
}
.letstalk-popup-inner {
    background: #4a7fb5;
    border-radius: 12px;
    padding: 40px 50px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: #fff;
}
.letstalk-popup-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    line-height: 1;
}
.letstalk-popup-close:hover {
    color: #fff;
}
.letstalk-popup-inner .contact-form {
    max-width: 100%;
    margin: 0;
}

/* ===== 导航栏 ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    isolation: isolate;
}
.nav-left, .nav-right {
    display: flex;
    gap: 30px;
}
.nav-right {
    z-index: 2;
}
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: color 0.3s;
    cursor: pointer;
}
.nav-link:hover {
    color: #888;
}
.nav-link.active {
    color: #cc4400;
}
.brand-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== 语言切换按钮 ===== */
.lang-switch-btn {
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s;
    line-height: 1.4;
}
.lang-switch-btn:hover {
    background: #333;
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 5;
}
.footer-bg {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('https://www.kkkmp.xyz/images/common/bot_banner.webp');
    background-size: cover;
    background-position: center;
    padding: 60px;
    color: #fff;
    min-height: 400px;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto 40px;
}
.textarea-wrapper {
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 15px;
    padding-bottom: 50px;
    min-height: 100px;
}
.contact-form textarea {
    width: 100%;
    height: 60px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    resize: none;
    outline: none;
}
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.plus-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.plus-btn:hover {
    background: rgba(255,255,255,0.15);
}
.image-preview-list {
    position: absolute;
    bottom: 10px;
    left: 52px;
    display: flex;
    gap: 8px;
}
.image-preview-item {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-preview-item .remove-img {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.image-preview-item .remove-img:hover {
    background: rgba(220,50,50,0.9);
}
.form-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}
.form-row input {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.form-row input::placeholder {
    color: rgba(255,255,255,0.7);
}
.quote-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.quote-btn:hover {
    background: rgba(255,255,255,0.1);
}
/* Get a quote 弹窗 */
.quote-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.quote-popup.show {
    display: flex;
}
.quote-popup-content {
    background: #fff;
    padding: 35px 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.quote-popup-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
}
.quote-popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #999;
}
.quote-popup-close:hover {
    color: #333;
}
.quote-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}
.quote-message {
    background: #f5f5f5;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}
.quote-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.quote-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.footer-bottom {
    padding-top: 30px;
}
.footer-slogan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.footer-slogan p {
    font-size: 20px;
    font-style: italic;
}
.footer-slogan hr {
    display: none;
}
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-social-icon {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}
.footer-social-icon:hover {
    opacity: 0.7;
}
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 25px;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 0;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 12px;
    border-left: 3px solid transparent;
    margin-left: -2px;
    transition: all 0.3s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-links a.active {
    color: #fff;
    border-left-color: #fff;
}
.footer-contact {
    min-width: 180px;
}
.footer-contact p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}
.footer-brand {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.footer-brand-logo {
    height: 70px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.footer-brand h2 {
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.footer-brand p {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* ===== 汉堡菜单按钮（桌面端隐藏） ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 移动端导航覆盖层 ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.mobile-nav-overlay.show {
    display: flex;
}
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.mobile-nav-menu .nav-link {
    font-size: 20px;
    letter-spacing: 2px;
}

/* ===== 响应式 - 平板/手机 ≤768px ===== */
@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
    }
    /* 白色遮罩：header下方延伸，抹平与sticky分类栏的缝隙 */
    .header::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 8px;
        background: #fff;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav-left {
        display: none;
    }
    .nav-right {
        display: flex;
        margin-left: auto;
        z-index: 2;
    }
    .nav-right .nav-link {
        font-size: 12px;
        white-space: nowrap;
    }
    .lang-switch-btn {
        font-size: 11px;
        padding: 2px 8px;
    }
    .nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .brand-logo {
        height: 32px;
    }

    .footer-bg {
        padding: 30px 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-left: none;
        gap: 12px;
    }
    .footer-links a {
        border-left: none;
        margin-left: 0;
        padding: 4px 8px;
    }
    .footer-contact {
        text-align: center;
    }
    .footer-brand {
        position: static;
        text-align: center;
        align-items: center;
        margin-top: 20px;
    }
    .footer-brand-logo {
        height: 60px;
    }
    .footer-slogan p {
        font-size: 16px;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .form-row input {
        width: 100%;
    }
    .quote-btn {
        width: 100%;
    }
}

/* ===== 移动端触摸切换图片（替代 hover） ===== */
.hover-switch-img.tapped .img-cartoon {
    opacity: 0;
}
.hover-switch-img.tapped .img-real {
    opacity: 1;
}
