html,
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.xb-nav-wrap {
    background: #850203;
}

.xb-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
}

.xb-nav-logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.xb-nav-logo img {
    height: 80px;
    width: auto;
    margin-right: 8px;
    border-radius: 15px;
}

.xb-nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
    margin-left: auto;
}

.xb-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: space-evenly;
    gap: 0;
}

.xb-nav-menu li {
    margin: 0;
}

.xb-nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    position: relative;
    transition: background 0.2s;
    line-height: 1;
}

.xb-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .xb-nav-menu a::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 6px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.28s ease;
    }

    .xb-nav-menu a:hover::after,
    .xb-nav-menu a:focus-visible::after {
        transform: scaleX(1);
    }
}

.xb-nav-en {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.xb-nav-zh {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 4px;
    letter-spacing: 0.5px;
    font-weight: 400;
}


/* Contact Us 联系我们 – 信息收集通栏 */
.xb-contact-strip {
    width: 100%;
    background: #f5f3f0;
    color: #333;
    padding: 72px 32px 80px;
    box-sizing: border-box;
}

.xb-contact-strip-inner {
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
}

.xb-contact-strip-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 48px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #333;
}

.xb-contact-strip-title .xb-sub {
    display: block;
    font-size: 0.88em;
    font-weight: 400;
    color: #666;
    margin-top: 12px;
}

.xb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.xb-contact-field {
    width: 100%;
    margin-bottom: 28px;
}

.xb-contact-field:last-of-type {
    margin-bottom: 36px;
}

.xb-contact-field label {
    display: block;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #444;
}

.xb-contact-field input,
.xb-contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 1.05rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
}

.xb-contact-field input::placeholder,
.xb-contact-field textarea::placeholder {
    color: #888;
}

.xb-contact-field input:focus,
.xb-contact-field textarea:focus {
    outline: none;
    border-color: #850203;
    background: #fff;
}

.xb-contact-field textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.xb-contact-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.xb-contact-submit {
    padding: 16px 48px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: #850203;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.xb-contact-submit:hover {
    background: #6a0202;
    transform: translateY(-2px);
}

.xb-contact-submit:active {
    transform: translateY(0);
}

.xb-contact-msg {
    text-align: center;
    margin-top: 24px;
    font-size: 1rem;
    min-height: 1.5em;
    line-height: 1.5;
}

.xb-contact-msg.success {
    color: #2d7a2d;
}

.xb-contact-msg.error {
    color: #c0392b;
}


.xb-footer-bar {
    background: #6a0202;
    color: #fff;
    padding: 56px 32px 48px;
}

.xb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px 56px;
}

.xb-footer-contact {
    font-size: 1rem;
    line-height: 1.7;
}

.xb-footer-contact strong {
    display: block;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.xb-footer-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.xb-footer-contact-row:last-child {
    margin-bottom: 0;
}

.xb-footer-contact-row a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.xb-footer-contact-row a:hover {
    text-decoration: underline;
}

.xb-footer-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xb-footer-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.xb-footer-social {
    display: flex;
    gap: 24px;
    align-items: center;
}

.xb-footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.xb-footer-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.xb-footer-social .xb-social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.xb-footer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.xb-footer-credit a {
    color: #fff;
    text-decoration: none;
}

.xb-footer-credit a:hover {
    text-decoration: underline;
}


/* pop message window */
.pop_wrapper {
    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: 9999;
}

.pop_msg_container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pop_title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.pop_msg_content {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.5;
    padding: 20px;
}

.pop_container_bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pop_button {
    background-color: #850203;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    width: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

.pop_button:hover {
    background-color: #6a0202;
}

.pop_button:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .xb-nav-toggle {
        display: block;
    }

    .xb-nav-menu {
        display: none;
        width: 100%;
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 4px;
    }

    .xb-nav-menu.xb-open {
        display: flex;
    }

    .xb-nav-menu li {
        width: 100%;
    }

    .xb-nav-menu a {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 6px;
    }

    .xb-nav-zh {
        margin-top: 0;
        font-size: 0.8rem;
    }

    .xb-nav-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .xb-contact-strip {
        padding: 56px 20px 64px;
    }

    .xb-contact-strip-inner {
        max-width: 100%;
        width: 100%;
    }

    .xb-contact-strip-title {
        margin-bottom: 36px;
    }

    .xb-contact-field {
        margin-bottom: 24px;
    }

    .xb-contact-field:last-of-type {
        margin-bottom: 28px;
    }

    .xb-contact-field input,
    .xb-contact-field textarea {
        padding: 14px 18px;
    }

}

@media (max-width: 480px) {
    .xb-contact-strip {
        padding: 40px 16px 48px;
    }

    .xb-contact-strip-inner {
        max-width: 100%;
        width: 100%;
    }

    .xb-contact-field input,
    .xb-contact-field textarea {
        width: 100%;
        max-width: 100%;
    }

    .xb-footer-bar {
        padding: 40px 24px 36px;
    }

    .xb-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .xb-footer-contact-row {
        justify-content: center;
    }

    .xb-footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pop_msg_container {
        width: 80%;
    }

    .pop_button {
        width: 100%;
    }

    .pop_title {
        font-size: 1.5rem;
    }

    .pop_msg_content {
        font-size: 1.2rem;
    }

    .pop_button {
        font-size: 1.2rem;
    }
}
