/* 导入 Inter 字体 (DFO网站使用) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700&display=swap');

/* 导入 Exo 2 字体 */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;450;500;600;700&display=swap');

/* 导入 Merriweather 字体 */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap');

/* 全局字体和基础样式 - 正文字体使用Inter */
body {
    font-weight: 300 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* 正文字体和大小统一使用Inter */
p, span, div, li, td, th, a:not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
}

/* 自定义品牌色 */
.bg-blue-600 {
    background-color: #0A2463 !important;
}

.text-blue-600 {
    color: #0A2463 !important;
}

.focus\:ring-blue-600:focus {
    --tw-ring-color: #0A2463 !important;
}

/* 自定义金色 */
.bg-gold-400 {
    background-color: #B8860B !important;
}

.text-gold-200 {
    color: #DAA520 !important;
}

.text-gold-300,
.text-gold-400 {
    color: #B8860B !important;
}

/* Logo 样式 */
nav img[src$="lprd-logo.svg"] {
    height: 3rem !important;
}

@media (min-width: 768px) {
    nav img[src$="lprd-logo.svg"] {
        height: 4rem !important;
    }
}

@media (min-width: 1024px) {
    nav img[src$="lprd-logo.svg"] {
        height: 5rem !important;
    }
}

/* 统一导航栏所有项的字体样式 */
nav a,
nav .menu-with-dropdown > a,
nav .dropdown-menu > a {
    font-weight: 100 !important;
    font-size: 20px !important;
    line-height: 1.8 !important;
    text-transform: uppercase !important;
    color: #0A2463 !important;
}

nav a:hover {
    color: #B8860B !important;
}

.dropdown-menu a {
    color: #0A2463 !important;
}

.dropdown-menu a:hover {
    background-color: rgba(184, 134, 11, 0.1) !important;
    color: #B8860B !important;
}

/* 确保覆盖所有导航相关的样式 */
#mobileMenu a,
#mobileMenu .menu-with-dropdown > a,
#mobileMenu .dropdown-menu > a {
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}

/* 汉堡菜单字体大小调整 - 与语言选择器保持一致 */
#overlay ul,
#overlay ul li,
#overlay ul li a,
#overlay ul li a span,
#overlay ul ul.submenu,
#overlay ul ul.submenu li,
#overlay ul ul.submenu li a,
#overlay ul ul.submenu li a span {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

/* 确保语言选择器与菜单字体大小一致 */
#overlay .language-switcher-mobile,
#overlay .language-switcher-mobile a,
#overlay .language-switcher-mobile a span,
#overlay .language-dropdown-mobile,
#overlay .language-dropdown-mobile li,
#overlay .language-dropdown-mobile li a,
#overlay .language-dropdown-mobile li a span {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

/* Hero 样式 */
.hero-section {
    margin-top: -1rem !important;
    margin-bottom: 4rem !important;
    position: relative;
}

.hero-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0 1rem;
}

.hero-text-container {
    text-align: center;
    color: white;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-text-container h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
    font-family: "Georgia", "Times New Roman", serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    text-transform: none !important;
    font-style: normal !important;
}

/* 服务详情页面Hero样式 - 优先于默认样式 */
.service-hero-section {
    margin-top: -1rem !important;
    margin-bottom: 4rem !important;
    position: relative;
}

.service-hero-container {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.service-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.service-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start !important;
    justify-content: center;
    z-index: 2;
    padding: 4rem 1rem 2rem 1rem !important;
}

.service-hero-text-container {
    text-align: center;
    color: white;
    max-width: 64rem;
    margin: 0 auto;
    margin-top: 3rem !important;
}

.service-hero-text-container h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    font-family: "Merriweather", "Georgia", "Times New Roman", serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    text-transform: none !important;
}

@media (min-width: 768px) {
    .hero-text-container h1 {
        font-size: 4rem !important;
    }
}

.hero-text-container p {
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
    opacity: 0.95 !important;
}

@media (min-width: 768px) {
    .hero-text-container p {
        font-size: 2rem !important;
        line-height: 1.7 !important;
    }
}

/* Intro Section 样式 */
.intro-section {
    min-height: 495px;
    background-color: #f8f9fa;
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 60px 0 !important;
    margin-top: 0 !important;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.intro-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
    width: 100%;
    height: 100%;
}

.intro-image {
    flex: 0 0 50%;
    height: 100%;
    background-image: url('/img/intro.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
}

.intro-text {
    flex: 0 0 50%;
    color: #333;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 首页intro部分Who we are标题左侧金色竖条 */
.intro-text h2 {
    position: relative;
    padding-left: 16px;
    font-size: 1.875rem;
    font-weight: 600 !important;
    margin-bottom: 24px;
    line-height: 1.3;
    color: #0A2463;
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.intro-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #B8860B;
    border-radius: 2px;
}

.intro-paragraphs p {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px;
    color: #555;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 300 !important;
}

/* Services标题底部横线 */
.title-with-line h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 600 !important;
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.title-with-line h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #B8860B;
    border-radius: 2px;
}

/* 桌面端样式 */
@media (min-width: 768px) {
    .intro-text h2 {
        padding-left: 20px;
        font-size: 2.25rem;
    }

    .intro-text h2::before {
        width: 5px;
    }

    .title-with-line h2 {
        padding-bottom: 16px;
    }

    .title-with-line h2::after {
        height: 4px;
    }

    .intro-paragraphs p {
        font-size: 1.125rem !important;
        line-height: 1.7 !important;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1200px) {
    .intro-text h2 {
        padding-left: 24px;
    }

    .intro-text h2::before {
        width: 6px;
    }

    .title-with-line h2 {
        padding-bottom: 20px;
    }

    .title-with-line h2::after {
        height: 3px !important;
    }

    .intro-content {
        gap: 100px;
    }

    .intro-text {
        padding: 80px 20px;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .intro-section {
        min-height: auto;
        padding: 40px 0 100px 0 !important;
        align-items: flex-start;
    }

    .intro-container {
        padding: 0 16px;
        display: block;
    }

    .intro-content {
        flex-direction: column;
        gap: 40px;
        height: auto;
    }

    .intro-image {
        flex: none;
        width: 100%;
        height: 300px;
        order: 1;
    }

    .intro-text {
        flex: none;
        width: 100%;
        padding: 30px 0;
        order: 2;
        justify-content: flex-start;
    }

    .intro-text h2 {
        font-size: 1.75rem;
        padding-left: 12px;
        margin-bottom: 20px;
    }

    .intro-text h2::before {
        width: 3px;
    }

    .intro-paragraphs p {
        font-size: 1.125rem !important;
        line-height: 1.7 !important;
        margin-bottom: 20px;
        color: #555;
        font-weight: 300 !important;
    }

    .title-with-line h2 {
        margin-bottom: 2rem !important;
    }

    .title-with-line h2::after {
        height: 2.5px !important;
        bottom: -1.5rem !important;
    }
}

/* Services Overview 网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background-color: #e5e7eb !important;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1px;
    }
}

.service-item {
    background: #f8fbff !important;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #1f2937;
    position: relative;
    perspective: 1000px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* 左侧两个卡片：左侧白色逐渐变为右侧淡蓝色 */
.service-item:nth-child(1),
.service-item:nth-child(3) {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 20%, #f0f9ff 40%, #f8fbff 60%, #f8fbff 80%, #f8fbff 100%) !important;
}

/* 右侧两个卡片：左侧淡蓝色逐渐变为右侧白色 */
.service-item:nth-child(2),
.service-item:nth-child(4) {
    background: linear-gradient(90deg, #f8fbff 0%, #f8fbff 20%, #f8fbff 40%, #f0f9ff 60%, #ffffff 80%, #ffffff 100%) !important;
}

/* 保留底部分隔线样式 */
.service-item:nth-child(-n+2):not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5px;
    height: 1px;
    background-color: #e5e7eb;
}

/* 移动端只保留垂直分隔线 */
@media (max-width: 767px) {
    .service-item:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -0.5px;
        height: 1px;
        background-color: #e5e7eb;
    }
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
}

.service-item:hover::after {
    width: 80%;
    opacity: 1;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.service-item:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    /* 添加浏览器前缀确保兼容性 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    /* 添加不透明背景色防止内容穿透 */
    background-color: #f8fbff !important;
    /* 添加z-index控制堆叠顺序 */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem !important;
}

/* 背面容器初始状态翻转180度 */
.service-card-back {
    transform: rotateY(180deg);
    padding: 2rem !important;
    /* 确保背面z-index更高 */
    z-index: 2;
}

/* 服务卡片内容样式 */
.service-card-back .text-gray-500,
.service-card-back ul,
.service-card-back li {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
}

.service-card-back ul {
    list-style-type: none !important;
    padding-left: 0.5rem !important;
    text-align: left !important;
}

.service-card-back li {
    margin-bottom: 0.5rem !important;
    text-align: left !important;
}

/* 服务卡片正面样式 */
.service-card-front .text-blue-600 {
    font-size: 4rem !important;
    margin-bottom: 1.5rem !important;
}

.service-card-front h3 {
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

/* 移动端调整 */
@media (max-width: 767px) {
    .service-card-front .text-blue-600 {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }

    .service-card-front h3 {
        font-size: 1.5rem !important;
    }

    .service-card-front {
        padding: 1.5rem !important;
    }

    .services-grid {
        gap: 1px;
    }

    .service-item {
        height: 250px;
        border-radius: 0 !important;
        background: #f8fbff !important;
    }

    /* 移动端移除渐变效果 */
    .service-item:nth-child(1),
    .service-item:nth-child(2),
    .service-item:nth-child(3),
    .service-item:nth-child(4) {
        background: #f8fbff !important;
    }

    /* 移动端服务卡片背面文字模块 */
    .service-card-back {
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem !important;
        text-align: left !important;
        overflow-y: auto;
    }

    .service-card-back ul {
        width: fit-content !important;
        max-width: 90% !important;
        padding-left: 1.5rem !important;
        text-align: left !important;
        align-self: center !important;
    }

    .service-card-back li {
        width: 100% !important;
        text-align: left !important;
    }

    /* 更具体的选择器确保覆盖所有样式 */
    .services-overview-section .service-item .service-card-back ul,
    .services-overview-section .service-item .service-card-back li,
    .services-overview-section .service-item .service-card-back .relative {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }
}

.service-card-back::-webkit-scrollbar,
.service-card-back::-webkit-scrollbar-track,
.service-card-back::-webkit-scrollbar-thumb {
    width: 0;
    background: transparent;
}

.service-card-back::-webkit-scrollbar-thumb {
    border-radius: 2px;
}

/* Services Overview 模块间距 */
.services-overview-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    margin-top: 30px !important;
}

/* 移动端调整 */
@media (max-width: 767px) {
    .services-overview-section {
        margin-top: 20px !important;
    }
}

/* 服务详情页 - Explore Other Services 部分样式 */
.related-services-section .grid > div {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    height: auto;
    text-align: center;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.related-services-section .grid > div > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    gap: 0.1rem;
}

.related-services-section .grid > div .text-blue-600.text-3xl {
    margin-bottom: 0.1rem;
    display: flex;
    justify-content: center;
}

.related-services-section .grid > div h3.text-xl {
    margin-bottom: 0.05rem;
    font-size: 1.1rem;
    line-height: 1.15;
}

.related-services-section .grid > div p.text-gray-600 {
    flex: 1;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    font-size: 0.8rem;
}

.related-services-section .grid > div a.text-blue-600 {
    margin-top: auto;
    align-self: center;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding-top: 0.05rem;
}

/* 服务详情页其他样式 */
.prose {
    margin-bottom: 4rem !important;
}

.related-services-section {
    position: relative;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.services-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* 服务详情页整体布局调整 */
.bg-gray-50.min-h-screen {
    min-height: calc(100vh - 90px) !important;
    position: relative;
    padding-bottom: 2rem !important;
}

/* 修复Explore Other Services模块中图标的居中效果 */
.related-services-section .text-blue-600 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.related-services-section .text-blue-600 i {
    font-size: 2.5rem !important;
    text-align: center !important;
}

.related-services-section .grid {
    margin-bottom: 0 !important;
}

/* Explore Other Services 模块布局优化 */
.related-services-section h2 {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
}

.related-services-section .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
}

.related-services-section .bg-white {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 2rem !important;
    height: 100% !important;
}

.related-services-section h3 {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.25rem !important;
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

.related-services-section .text-gray-600 {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
    flex-grow: 1 !important;
}

.related-services-section .text-blue-600.font-medium {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 0.1rem !important;
    text-align: center !important;
    width: 100% !important;
}

.related-services-section .text-blue-600.font-medium:hover {
    text-decoration: underline !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .related-services-section {
        padding-bottom: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .bg-gray-50.min-h-screen {
        padding-bottom: 1.5rem !important;
    }

    .services-divider {
        margin-bottom: 1.5rem;
    }

    .related-services-section .text-blue-600 i {
        font-size: 2rem !important;
    }

    .related-services-section h2 {
        margin-bottom: 2rem !important;
    }

    .related-services-section .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .related-services-section .bg-white {
        padding: 1.5rem !important;
    }

    .related-services-section .text-blue-600 {
        margin-bottom: 0.5rem !important;
        height: 3.5rem !important;
    }

    .related-services-section h3 {
        margin-bottom: 0.5rem !important;
        font-size: 1.1rem !important;
    }

    .related-services-section .text-gray-600 {
        margin-bottom: 0.1rem !important;
        font-size: 0.9rem !important;
    }

    .related-services-section .text-blue-600.font-medium {
        padding-top: 0.05rem !important;
    }

    /* 服务详情页移动端调整 */
    .related-services-section .grid > div {
        min-height: 160px;
    }

    .related-services-section .grid > div > div {
        gap: 0.05rem;
    }

    .related-services-section .grid > div h3.text-xl {
        font-size: 1rem;
        margin-bottom: 0.025rem;
    }

    .related-services-section .grid > div p.text-gray-600 {
        font-size: 0.75rem;
        margin-bottom: 0.05rem;
    }

    .related-services-section .grid > div a.text-blue-600 {
        font-size: 0.7rem;
        font-weight: 600;
    }
}

/* Core Services标题下方的渐变细线条 */
.text-center.mb-12.title-with-line {
    position: relative !important;
    margin-bottom: 3rem !important;
}

.text-center.mb-12.title-with-line::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2.5rem !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #2563eb 20%, #2563eb 80%, rgba(255, 255, 255, 0) 100%) !important;
    border-radius: 1.5px !important;
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.language-switcher-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #0A2463;
    border-radius: 4px;
    color: #0A2463;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher-btn:hover {
    background-color: rgba(10, 36, 99, 0.05);
    color: #B8860B;
    border-color: #B8860B;
}

.language-switcher-btn::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #0A2463;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: rgba(184, 134, 11, 0.1);
    color: #B8860B;
}

.language-option.active {
    background-color: rgba(10, 36, 99, 0.1);
    color: #0A2463;
    font-weight: 600;
}

/* 导航栏中的语言切换器布局 */
nav .language-switcher {
    margin-left: 1rem;
}

nav .language-switcher-btn {
    border: 1px solid #0A2463;
    color: #0A2463;
}

nav .language-switcher-btn:hover {
    background-color: rgba(10, 36, 99, 0.05);
    color: #B8860B;
    border-color: #B8860B;
}

/* 移动端语言切换器 */
@media (max-width: 767px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .language-switcher-btn {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e5e7eb;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .language-switcher:hover .language-dropdown,
    .language-switcher.active .language-dropdown {
        display: block;
    }

    /* 移动端导航栏语言切换器 */
    nav .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        width: auto;
    }

    nav .language-switcher-btn {
        width: auto;
        justify-content: flex-start;
    }

    /* 移动端语言切换按钮字体大小 - 与导航菜单项保持一致 */
    #overlay .language-switcher-mobile a,
    .language-dropdown-mobile a,
    #overlay .language-switcher-mobile a span,
    .language-dropdown-mobile a span {
        font-size: inherit !important;
        font-weight: inherit !important;
    }
}

/* 消除logo容器和图片的空白 */
.flex.items-center.flex-shrink-0.text-xl.text-grey-900 {
    margin-right: 0 !important;
}

.flex.items-center.flex-shrink-0.text-xl.text-grey-900 a {
    display: block;
    width: 100%;
    height: 100%;
}

.flex.items-center.flex-shrink-0.text-xl.text-grey-900 img {
    margin-right: 0 !important;
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* 微调移动端语言切换栏与Contact之间的间距 */
@media (max-width: 767px) {
    #overlay > div:last-of-type > div:first-of-type {
        margin-top: 0.75rem !important;
    }
}

/* 全局组件字体统一 */
.company-intro-section p,
.company-intro-section .text-gray-600,
.company-intro-section .text-gray-700,
.services-overview-section p,
.services-overview-section .text-gray-500,
.services-overview-section .text-gray-600 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 标题字体统一为 Merriweather */
.company-intro-section h3,
.services-overview-section h3 {
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.company-intro-section p,
.company-intro-section .text-gray-600,
.company-intro-section .text-gray-700 {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
}

.services-overview-section p,
.services-overview-section .text-gray-500,
.services-overview-section .text-gray-600 {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
}

.company-intro-section h3,
.services-overview-section h3 {
    font-weight: 400 !important;
}

.contact-btn-mobile {
    background: linear-gradient(135deg, #0A2463 0%, #1a3a8a 100%);
    border: 2px solid #0A2463;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #B8860B !important; /* 使用网站金色字体 */
    border-radius: 0.5rem !important; /* 改为圆角长方形 */
}

.contact-btn-mobile:hover {
    background: linear-gradient(135deg, #B8860B 0%, #d4af37 100%);
    border-color: #B8860B;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    transform: translateY(-1px);
    color: white !important; /* 悬停时文字变为白色 */
}

.contact-btn-mobile:active {
    transform: translateY(0);
}

/* 强制contact us页面的表单左对齐 */
.content.prose > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 桌面端隐藏移动端Contact按钮 */
@media (min-width: 1024px) {
    .contact-btn-mobile {
        display: none;
    }
}

/* 移动端导航栏布局调整 */
@media (max-width: 1023px) {
    nav .flex.items-center.justify-between {
        padding: 0.75rem 1rem;
    }

    /* 确保Logo和按钮之间有适当间距 */
    nav .flex.items-center.flex-shrink-0 {
        flex: 1;
    }

    /* 右侧按钮容器布局 */
    nav .block.lg\:hidden.flex.items-center {
        gap: 0.5rem;
    }
}