/* ============================================
   Components Styles - 组件样式
   ============================================ */

/* ============================================
   Header Container Placeholder - Header 占位容器
   ============================================ */
#header-container {
    width: 100%;
    height: 140px;
    min-height: 140px;
    position: relative;
    z-index: 10000;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    /* 防止内容闪动 */
    visibility: visible;
}

/* PC端：导航吸顶效果 */
@media screen and (min-width: 769px) {
    #header-container .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        background-color: #FFFFFF;
    }
}

/* ============================================
   Header Component - 根据 Figma 设计 1:1 还原
   ============================================ */

/* Header Container */
.header {
    width: 100%;
    height: 140px;
    padding: 0;
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    overflow: visible;
}

.header-container {
    width: 100%;
    height: 140px;
    /* max-width: 1920px; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 220px;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
}


@media screen and (max-width: 1600px) {
    .header-container {
        width: 90%;
        min-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
}

/* 更小屏幕适配 - 当屏幕宽度小于1200px时 */
@media screen and (max-width: 1200px) {
    .header-container {
        width: calc(100% - 80px);
        padding: 0 40px;
        min-width: 700px;
    }
    
    /* 小屏幕时调整logo大小，保持比例 */
    .header-logo {
        width: calc(282px * 0.85);
        height: calc(54px * 0.85);
    }
    
    .nav-item {
        width: auto;
        min-width: 70px;
        padding: 6px 8px;
    }
    
    .nav-item-text {
        font-size: 15px;
    }
}

/* 更小屏幕适配 - 当屏幕宽度小于1024px时 */
@media screen and (max-width: 1024px) {
    .header-container {
        width: calc(100% - 40px);
        padding: 0 20px;
        min-width: 600px;
    }
    
    .header-logo {
        width: calc(282px * 0.75);
        height: calc(54px * 0.75);
    }
    
    .nav-item {
        width: auto;
        min-width: 60px;
        padding: 6px 6px;
    }
    
    .nav-item-text {
        font-size: 14px;
    }
    
    .header-language {
        margin-left: 15px;
    }
}

/* PC端中等屏幕适配 - 在移动端之前 */
@media screen and (max-width: 1600px) {
    .footer-container {
        padding: 0 ;
    }
    .footer{
        min-width: 740px;
    }
    
    .footer-left {
        left: 10%;
    }
    
    .footer-center {
        left: calc(50% - 167px);
    }
    
    .footer-right {
        right: 160px;
        left: auto;
    }
}

/* ============================================
   移动端适配 - 当屏幕宽度小于768px时（基于390px设计稿）
   注意：移动端样式必须在所有其他媒体查询之后，确保最高优先级
   ============================================ */
@media screen and (max-width: 768px) {
    /* Header Mobile - 78px高度 */
    #header-container {
        height: 78px;
        min-height: 78px;
    }
    
    /* 移动端：导航吸顶效果 */
    #header-container .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        background-color: #FFFFFF;
    }
    
    .header {
        height: 78px;
        padding: 0;
    }
    
    .header-container {
        width: calc(100% - 60px);
        height: 78px;
        min-width: auto ;
        padding: 0;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Logo Mobile - 根据390px设计稿调整 */
    div.header-logo {
        width: 120px;
        height: 38px;
        flex-shrink: 0;
        cursor: pointer; /* 移动端也可点击跳转首页 */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* 移动端点击高亮 */
    }
    
    .header-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* 导航菜单在移动端隐藏 */
    .header-nav {
        display: none !important;
    }
    
    .header-nav .nav-item,
    .nav-item {
        display: none;
    }
    
    /* 移动端右侧操作区 */
    .mobile-header-right {
        display: flex !important;
        align-items: center;
        gap: calc(12px * 100vw / 390px);
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 1px) {
        .mobile-header-right > *:not(:last-child) {
            margin-right: calc(12px * 100vw / 390px);
        }
    }
    
    /* 移动端语言选择器 - 在header中隐藏 */
    .header-language.mobile-language-show {
        display: none;
        height: auto;
        padding: 0;
        margin-top: 0;
    }
    
    /* PC端语言选择器在移动端隐藏 */
    .header-nav .header-language:not(.mobile-language-show) {
        display: none;
    }
    
    .mobile-language-show .language-content {
        position: relative; /* 为伪元素定位 */
        width: calc(40px * 100vw / 390px);
        max-width: 40px;
        height: auto;
        padding: calc(6px * 100vw / 390px) calc(8px * 100vw / 390px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(3px * 100vw / 390px);
        border: 1px solid rgba(198, 157, 122, 0.5);
        border-radius: calc(8px * 100vw / 390px);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 1px) {
        .mobile-language-show .language-content > *:not(:last-child) {
            margin-right: calc(3px * 100vw / 390px);
        }
    }
    
    /* 增加点击区域：使用伪元素扩大可点击范围 */
    .mobile-language-show .language-content::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 54px; /* 移动端推荐的最小点击区域 */
        height: 54px;
        background: transparent;
        z-index: 1;
        pointer-events: auto;
    }
    
    .mobile-language-show .language-content:hover {
        background-color: rgba(198, 157, 122, 0.05);
    }
    
    .mobile-language-show .language-text {
        font-size: clamp(12px, calc(14px * 100vw / 390px), 14px);
        font-weight: 500;
    }
    
    .mobile-language-show .language-arrow {
        width: calc(8px * 100vw / 390px);
        max-width: 8px;
        height: calc(8px * 100vw / 390px);
        max-height: 8px;
    }
    
    .mobile-language-show .language-dropdown {
        top: calc(100% + 4px);
        right: 0;
        min-width: clamp(100px, calc(120px * 100vw / 390px), 120px);
        z-index: 99999;
    }
    
    /* 移动端汉堡菜单图标 */
    .mobile-menu-toggle {
        position: relative; /* 为伪元素定位 */
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: calc(32px * 100vw / 390px);
        max-width: 32px;
        height: calc(32px * 100vw / 390px);
        max-height: 32px;
        cursor: pointer;
        z-index: 1002;
        transition: all 0.3s ease;
    }
    
    /* 增加点击区域：使用伪元素扩大可点击范围 */
    .mobile-menu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 54px; /* 移动端推荐的最小点击区域 */
        height: 54px;
        background: transparent;
        z-index: 1;
        pointer-events: auto;
    }
    
    .mobile-menu-toggle:hover {
        opacity: 0.8;
    }
    
    .mobile-menu-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* ============================================
       Footer Mobile - 移动端Footer竖排布局（基于390px设计稿）
       ============================================ */
    
    .footer {
        min-width: 100%;
    }
    
    .footer-container {
        height: 100px;
        padding: 0;
        position: absolute;
        width: 100%;
        top: -100px;
    }
    
    .footer-container::before {
        content: '' ;
        display: block;
        width: 100%;
        height: calc(100px * 100vw / 390px);
        max-height: 100px;
        border-radius: 0 calc(100px * 100vw / 390px) 0 0;
        border-top: 1px solid #D3D4D7;
    }
    
    /* 版权信息 - 第一行，居中 */
    .footer-center {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 35px;
        width: 100%;
        height: calc(19px * 100vw / 390px);
        max-height: 19px;
        font-size: clamp(8px, calc(10px * 100vw / 390px), 10px);
        text-align: center;
        white-space: nowrap;
    }
    
    /* Website Design - 第二行，左对齐 */
    .footer-left {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 20px;
        width: 100%;
        height: calc(19px * 100vw / 390px);
        max-height: 19px;
        font-size: clamp(8px, calc(10px * 100vw / 390px), 10px);
        text-align: center;
        white-space: nowrap;
    }
    
    /* 隐私政策 - 第三行，右对齐 */
    .footer-right {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 58px;
        width: 100%;
        height: calc(22px * 100vw / 390px);
        max-height: 22px;
        font-size: clamp(10px, calc(12px * 100vw / 390px), 12px);
        text-align: center;
        white-space: nowrap;
        text-decoration: underline;
    }
    
    .language-content {
        width: calc(40px * 100vw / 390px);
        max-width: 40px;
        height: auto;
        padding: calc(6px * 100vw / 390px) calc(8px * 100vw / 390px);
    }
    
    .language-text {
        font-size: clamp(12px, calc(14px * 100vw / 390px), 14px);
    }
    
    .language-arrow {
        width: calc(8px * 100vw / 390px);
        max-width: 8px;
        height: calc(8px * 100vw / 390px);
        max-height: 8px;
    }
    
    .language-dropdown {
        top: calc(100% + 4px);
        right: 0;
        min-width: clamp(100px, calc(120px * 100vw / 390px), 120px);
    }
    
    .language-option {
        padding: clamp(6px, calc(8px * 100vw / 390px), 8px) clamp(10px, calc(12px * 100vw / 390px), 12px);
        font-size: clamp(11px, calc(12px * 100vw / 390px), 12px);
    }
    
    .language-option-code {
        font-size: clamp(9px, calc(10px * 100vw / 390px), 10px);
    }
    
    /* ============================================
       移动端导航弹窗样式
       ============================================ */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(252, 251, 251, 0.95);
        -webkit-backdrop-filter: blur(4px); /* Safari 兼容性 */
        backdrop-filter: blur(4px);
        z-index: 9999;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .mobile-nav-overlay.active {
        display: flex;
        flex-direction: column;
    }
    
    /* 导航内容容器 - 可滚动区域 */
    .mobile-nav-content {
        flex: 1;
        width: 100%;
        padding: 150px 0 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column; 
        align-items: center;
    }

    /* 语言展开时收紧顶部 padding */
    .mobile-nav-content.lang-open {
        padding: 130px 0;
    }
    
    .mobile-nav-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: calc(24px * 100vw / 390px);
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 16px) {
        .mobile-nav-content > *:not(:last-child) {
            margin-bottom: 16px;
        }
    }
    
    .mobile-nav-item {
        display: inline-flex;
        align-self: center;
        width: auto;
        max-width: 350px;
        padding: calc(12px * 100vw / 390px) 0;
        cursor: pointer;
        text-align: center;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    /* 导航展开后，上方导航子项上下间距压缩为10px（基于390px） */
    .mobile-nav-overlay.active .mobile-nav-item {
        padding: 10px 0;
    }
    
    /* 语言下拉打开时，减小导航菜单和导航项的间距，确保下拉框在footer上方 */
    .mobile-language-dropdown.active {
        z-index: 10002;
    }
    
    /* 语言下拉打开时，减小导航菜单的间距 */
    .mobile-nav-content.lang-dropdown-open .mobile-nav-menu {
        margin-bottom: calc(15px * 100vw / 390px);
        gap: 10px;
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 10px) {
        .mobile-nav-content.lang-dropdown-open .mobile-nav-menu > *:not(:last-child) {
            margin-bottom: 10px;
        }
    }
    
    /* 语言下拉打开时，减小导航项的padding */
    .mobile-nav-content.lang-dropdown-open .mobile-nav-item {
        padding: calc(6px * 100vw / 390px) 0;
    }
    
    .mobile-nav-text {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(15px, calc(17px * 100vw / 390px), 17px);
        line-height: 1.4em;
        color: #384963;
    }
    
    /* 移动端语言选择器 */
    .mobile-language-selector {
        width: calc(100px * 100vw / 390px);
        max-width: 100px;
        position: relative;
        margin: 12px auto 0;
        align-self: center;
    }
    
    /* 移动端Footer - 固定在弹窗底部 */
    .mobile-nav-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100px * 100vw / 390px);
        max-height: 100px;
        background-color: #FCFBFB;
        border-top: 1px solid rgba(211, 212, 215, 0.5);
        z-index: 10000;
    }
    
    .mobile-footer-container {
        width: 100%;
        height: 100%;
        position: relative;
        padding: 0;
    }
    
    .mobile-footer-container::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(235, 238, 239, 0.2);
        border-radius: calc(100px * 100vw / 390px) 0 0 0;
        z-index: 0;
    }
    
    /* 版权信息 - 第一行，居中 */
    .mobile-footer-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(20px * 100vw / 390px);
        width: calc(330px * 100vw / 390px);
        max-width: 330px;
        height: calc(19px * 100vw / 390px);
        max-height: 19px;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(8px, calc(10px * 100vw / 390px), 10px);
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: center;
        white-space: nowrap;
        z-index: 1;
    }
    
    /* Website Design - 第二行，居中 */
    .mobile-footer-left {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(35px * 100vw / 390px);
        width: calc(183px * 100vw / 390px);
        max-width: 183px;
        height: calc(19px * 100vw / 390px);
        max-height: 19px;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(8px, calc(10px * 100vw / 390px), 10px);
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: center;
        white-space: nowrap;
        z-index: 1;
    }
    
    /* 隐私政策 - 第三行，居中 */
    .mobile-footer-right {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(58px * 100vw / 390px);
        width: 100%;
        height: calc(22px * 100vw / 390px);
        max-height: 22px;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(10px, calc(12px * 100vw / 390px), 12px);
        text-decoration: underline;
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: center;
        cursor: pointer;
        white-space: nowrap;
        z-index: 1;
    }
    
    .mobile-footer-right:hover {
        text-decoration: underline;
    }
    
    .mobile-language-current {
        width: calc(100px * 100vw / 390px);
        max-width: 100px;
        padding: calc(8px * 100vw / 390px) calc(10px * 100vw / 390px);
        background-color: transparent;
        border-radius: calc(8px * 100vw / 390px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(6px * 100vw / 390px);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 1px) {
        .mobile-language-current > *:not(:last-child) {
            margin-right: calc(6px * 100vw / 390px);
        }
    }
    
  
    .mobile-language-text {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(14px, calc(16px * 100vw / 390px), 16px);
        color: #384963;
    }
    
    .mobile-language-arrow {
        width: calc(10px * 100vw / 390px);
        height: calc(8px * 100vw / 390px);
        max-width: 10px;
        max-height: 8px;
        transition: transform 0.3s ease;
        transform-origin: center;
        object-fit: contain;
        display: block;
    }
    
    .mobile-language-current.active .mobile-language-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-language-dropdown {
        display: none;
        position: absolute;
    left: 0;
    transform: none;
        top: calc(100% + calc(8px * 100vw / 390px));
    width: 100%;
    margin-top: 0;
    background-color: #FFFFFF;
    border: 1px solid rgba(198, 157, 122, 0.2);
    border-radius: calc(8px * 100vw / 390px);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(56, 73, 99, 0.12);
    z-index: 10001;
    }
    
    .mobile-language-dropdown.active {
        display: block;
    }
    
    .mobile-language-option {
        width: 100%;
        padding: calc(10px * 100vw / 390px) 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .mobile-language-option:hover {
        background-color: rgba(198, 157, 122, 0.05);
    }
    
    .mobile-language-option.active {
        background-color: transparent;
        color: #C69D7A;
    }
    
    .mobile-language-option-text {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(14px, calc(16px * 100vw / 390px), 16px);
        color: #384963;
        white-space: nowrap;
    }
    
    .mobile-language-option-code {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(12px, calc(14px * 100vw / 390px), 14px);
        color: #C69D7A;
    }
    
    /* ============================================
       Modal Component - 移动端弹窗样式（基于390px设计稿）
       尺寸：330px × 400px，屏幕居中展示
       ============================================ */
    
    .modal-container {
        position: relative;
        z-index: 2;
        width: 330px;
        max-width: 330px;
        height: 400px;
        max-height: 400px;
        background-color: #FCFBFB;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 40px 24px;
        opacity: 0.95;
        border-radius: 60px;
        border: 1px solid #C69D7A;
    }
    
    .modal-close {
        position: absolute;
        top: calc(16px * 100vw / 390px);
        right: calc(16px * 100vw / 390px);
        left: auto;
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid #C69D7A;
        border-radius: 50%;
        cursor: pointer;
        padding: calc(6px * 100vw / 390px);
        transition: opacity 0.2s ease;
        z-index: 10;
        flex-shrink: 0;
        opacity: 1;
        box-sizing: border-box;
    }
    
    .modal-close:hover {
        opacity: 0.7;
    }
    
    .modal-close svg {
        width: calc(20px * 100vw / 390px);
        max-width: 20px;
        height: calc(20px * 100vw / 390px);
        max-height: 20px;
        flex-shrink: 0;
    }
    
    .modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .modal-title {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 600;
        font-size: 44px;
        line-height: 1em;
        color: #C69D7A;
        margin:  20px 0;
        text-align: center;
    }
    
    /* 移动端英文和日语版本：modal-title 字体大小为 40px */
    .lang-en .modal-title {
        font-size: 40px;
        margin: 20px 0 10px;
    }
    .lang-ja .modal-title{
        font-size: 27px;
        width: 200px;
        margin: 20px 0 10px;
    }
    
    .modal-subtitle {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5em;
        color: #384963;
        margin: 0 0 20px 0;
        text-align: center;
    }
    
    .modal-text {
        font-size: 14px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .modal-text p {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: clamp(12px, calc(14px * 100vw / 390px), 14px);
        line-height: 1.6em;
        letter-spacing: 0.02em;
        color: #384963;
        margin-bottom: calc(12px * 100vw / 390px);
        text-align: center;
    }
    
    .modal-text p:last-child {
        margin-bottom: 0;
    }
}

/* Logo Section - 位置: (1, 0), 尺寸: 282px × 54px */
.header-logo {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-left: 1px;
    cursor: pointer;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 移动端元素 - PC端隐藏（默认隐藏，移动端媒体查询中会覆盖） */
.mobile-header-right {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

.header-language.mobile-language-show {
    display: none !important;
}

/* Navigation Section */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    height: 35px;
    flex-wrap: nowrap;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.nav-item {
    /* PC 默认：左右内边距随屏幕宽度轻微自适应，大屏稍微更宽一些 */
    padding: 6px clamp(10px, 0.9vw, 25px);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* English and Japanese: adjust padding and remove width restriction */
.lang-en .nav-item,
.lang-ja .nav-item {
    width: auto;
}

/* 中文和繁体中文：首页 nav-item 宽度增加 33px（仅PC端） */
@media screen and (min-width: 769px) {
    .lang-zh-cn .nav-item[data-page="index"],
    .lang-zh-tw .nav-item[data-page="index"] {
        padding: 6px calc(clamp(10px, 0.9vw, 25px) + 16px);
    }
}

.nav-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40px;
    width: 100%;
}

.nav-item-text {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 38px;
    letter-spacing: 0.02em;
    color: #495563;
    text-align: center;
}

.nav-item:not(.active) .nav-item-text {
    color: #495563B3; /* 70% opacity */
}

.nav-item.active .nav-item-text {
    font-weight: 500;
    color: #495563;
}

.nav-item-indicator {
    width: auto;
    height: 2px;
    background-color: #C69D7A;
    opacity: 0;
    transition: opacity 0.2s ease, width 0.2s ease;
    align-self: center;
}

.nav-item.active .nav-item-indicator {
    opacity: 1;
}

/* Language Selector */
.header-language {
    margin-left: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 6px 10px;
    margin-top: -4px;
}


.language-content {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 61.3px;
    height: 22px;
}

/* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
@supports not (gap: 3px) {
    .language-content > *:not(:last-child) {
        margin-right: 3px;
    }
}

.language-text {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6em;
    letter-spacing: 0.05em;
    color: #4F5D6C;
}

.language-arrow {
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.header-language:hover .language-arrow {
    transform: rotate(-180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 73px;
    width: auto;
    height: 148px;
    background-color: #FCFBFB;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    padding: 12px 20px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    margin-top: 8px;
}

/* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
@supports not (gap: 2px) {
    .language-dropdown > *:not(:last-child) {
        margin-bottom: 2px;
    }
}

/* 添加连接区域，确保鼠标移动时下拉菜单不会关闭 */
.header-language::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 8px;
    background: transparent;
    pointer-events: none;
    z-index: 99998;
}

.header-language:hover::after {
    pointer-events: auto;
}

.header-language:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}


.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.language-option:hover {
    background-color: transparent;
}

.language-option:hover .language-option-text {
    color: #C69D7A;
}

.language-option.active {
    background-color: transparent;
}

.language-option.active .language-option-text {
    color: #4F5D6C;
    font-weight: 500;
}

.language-option-text {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6em;
    letter-spacing: 0.02em;
    color: #384963;
    flex: 1;
    white-space: nowrap;
}

.language-option-code {
    display: none;
}

/* ============================================
   Footer Component - PC端样式（默认，> 768px）
   ============================================ */

#footer-container {
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.footer {
    width: 100%;
    margin-top: 0;
    position: absolute;
}

/* PC端Footer样式 - 仅在屏幕宽度 > 768px 时生效 */
@media screen and (min-width: 769px) {
    /* 确保移动端导航在 PC 端隐藏 */
    .mobile-nav-overlay {
        display: none;
    }
    
    .footer-container {
        width: 100%;
        height: 61px;
        margin: 0 auto;
        padding: 0 clamp(20px, 11.46vw, 220px);
        position: absolute;
        top: -61px;
        box-sizing: border-box;
    }
    
    .footer-container::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 1px;
        width: 95%;
        height: 60px;
        border-top: 1px solid #D3D4D7;
        border-radius: 0 100px 0 0;
        z-index: 0;
    }
    .footer-container::after {
        content: '';
        position: absolute;
        left: 0;
        top: 1px;
        width: 10%;
        border-top: 1px solid #D3D4D7;
        z-index: 0;
    }
    
    .footer-left {
        position: absolute;
        left: clamp(20px, 11.46vw, 220px);
        top: 50%;
        transform: translateY(-50%);
        width: 185px;
        height: 19px;
        margin: 0;
        padding: 0;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: 10px;
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: left;
        white-space: nowrap;
        z-index: 1;
    }
    
    .footer-center {
        position: absolute;
        left: calc(50% - 167px);
        top: 50%;
        transform: translateY(-50%);
        width: 334px;
        height: 19px;
        margin: 0;
        padding: 0;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: 10px;
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: center;
        white-space: nowrap;
        z-index: 1;
    }
    
    .footer-right {
        position: absolute;
        right: clamp(20px, 11.46vw, 220px);
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 22px;
        margin: 0;
        padding: 0;
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.6em;
        letter-spacing: 0.05em;
        color: #384963;
        text-align: right;
        cursor: pointer;
        white-space: nowrap;
        z-index: 1;
        text-decoration: underline;
    }
    
    .footer-right:hover {
        text-decoration: underline;
    }
}

/* ============================================
   Modal Component - 弹窗组件样式
   根据 Figma 设计 1:1 还原
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* PC端Modal样式 - 仅在屏幕宽度 > 768px 时生效 */
@media screen and (min-width: 769px) {
    .modal-container {
        position: relative;
        z-index: 2;
        width: 780px;
        background-color: #FCFBFB;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        opacity: 0.95;
        border-radius: 80px;
        border: 1px solid #C69D7A;
    }
}

/* PC端Modal关闭按钮样式 */
@media screen and (min-width: 769px) {
    .modal-close {
        position: absolute;
        top: 40px;
        left: 674px;
        width: 66px;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid #C69D7A;
        border-radius: 60px;
        cursor: pointer;
        padding: 22px;
        gap: 10px;
        transition: opacity 0.2s ease;
        z-index: 10;
        flex-shrink: 0;
        opacity: 1;
        box-sizing: border-box;
    }
    
    /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
    @supports not (gap: 10px) {
        .modal-close > *:not(:last-child) {
            margin-right: 10px;
        }
    }
    
    .modal-close:hover {
        opacity: 0.7;
    }
    
    .modal-close svg {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
}

/* PC端Modal内容样式 */
@media screen and (min-width: 769px) {
    .modal-content {
        padding: 80px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
        box-sizing: border-box;
    }
    
    .modal-title {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 600;
        font-size: 56px;
        line-height: 1em;
        color: #C69D7A;
        margin: 20px 0;
        text-align: center;
    }
    
    .modal-subtitle {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: 18px;
        line-height: 1.5em;
        color: #384963;
        margin: 0 0 30px 0;
        text-align: center;
    }
    
    .modal-text {
        width: 100%;
        max-width: 660px;
        text-align: left;
        margin: 0 auto;
    }
    
    .modal-text p {
        font-family: 'PingFang SC', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.8em;
        letter-spacing: 0.02em;
        color: #384963;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .modal-text p:last-child {
        margin-bottom: 0;
    }
}
