html,
body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    color: #000000;
    font-size: 16px;
    line-height: 125%;
    font-family: Montserrat-Regular;
    /* 横向间距 */
    /* letter-spacing: 1.2px; */
}

body {
    position: relative;
}

a {
    list-style: none;
    text-decoration: none;
}


/* 弹出提示 */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 25px;
    font-size: 14px;
    z-index: 9999;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0px 8px 20px 0px #00000014;
    box-shadow: 0px 12px 32px 4px #0000000A;
}





/* 顶部导航栏样式 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-nav .u-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  min-height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-logo img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}

/* 平板设备适配 */
@media screen and (max-width: 1024px) {
  .nav-logo img {
    height: 28px;  /* 中等屏幕尺寸调整 */
  }
  
  .nav-content {
    padding: 10px 0;
    min-height: 52px;
  }
}

/* 小屏幕设备适配 */
@media screen and (max-width: 768px) {
  .nav-logo img {
    height: 24px;  /* 小屏幕尺寸调整 */
  }
  
  .nav-content {
    padding: 8px 0;
    min-height: 48px;
  }
  
  .top-nav .u-container {
    padding: 10px 16px;  /* 移动端减少左右内边距 */
  }
}

/* 超小屏幕设备适配 */
@media screen and (max-width: 480px) {
  .nav-logo img {
    height: 20px;  /* 超小屏幕尺寸调整 */
  }
  
  .nav-content {
    padding: 6px 0;
    min-height: 44px;
  }
  
  .top-nav .u-container {
    padding: 10px 12px;  /* 移动端进一步减少内边距 */
  }
}

/* 语言切换组件样式 */
.language-selector {
  display: flex;
  align-items: center;  /* 改为居中对齐 */
  justify-content: center;
  /* 删除 height: 100%，避免容器拉高错位 */
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f3f5;
  border-radius: 9999px;
  padding: 4px 8px;
  transform: translateY(1px);
  min-height: 40px; 
}

.lang-option {
  display: inline-flex;
  align-items: center;
  line-height: 1;  
  padding: 6px 12px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color .2s ease, color .2s ease;
}

.lang-option:hover {
  background: #e9ecef;
  color: #333;
}

.lang-option.active {
  background: #3898EC;
  color: #fff;
}

.lang-divider {
  width: 1px;
  height: 16px;
  background: #d0d7de;
}

/* 页面主区域轻量优化 */
main.legal-page {
  padding-top: 6px;
}




/* 移动端对语言切换的间距优化 */
@media screen and (max-width: 767px) {
  .language-selector .u-container {
    padding: 10px 15px;
  }
  .lang-option {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* 兼容超小屏 */
@media screen and (max-width: 479px) {
  .lang-switch {
    gap: 8px;
    padding: 3px 6px;
  }
}




/* footer */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;              /* 关键：撑满视口，为 sticky footer 提供高度基线 */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer-container {
    margin-top: auto;
}

html[lang="zh-CN"] body,
html[lang="zh"] body {
    font-family: "Comic Neue", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang="zh-CN"] .footer-copyright::first-letter,
html[lang="zh"] .footer-copyright::first-letter {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont,
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.18em;   /* 轻微放大 15% 左右，可按需 1.15~1.2 调整 */
    line-height: 1;      /* 避免行高拉高 */
    position: relative;  /* 基线微调，让 © 与数字更齐 */
    top: 0.02em;
}


html[lang="en"] body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
                 Helvetica, Arial, sans-serif;
}


/* footer */


.site-footer {
    margin-top: auto; 
    background: #000;
    color: #fff;
    padding: 48px 24px;
    --newsletter-width: 560px; 
    --footer-inner-max: 1200px; 
    --footer-side-indent: 50px; 
}

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

.site-footer .footer-content {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: var(--footer-inner-max);
    margin: 0 auto;
    text-wrap: nowrap;
}

/* 左侧导航 */
.footer-left-nav .footer-nav-list {
    text-decoration: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-left-nav .footer-nav-list li {
    margin-left: 50px;
    margin-bottom: 18px;
}

.footer-left-nav .footer-nav-list a {
    font-size: 18px;
    line-height: 26px;
    transition: border-bottom 0.2s ease;
}

.footer-left-nav .footer-nav-list a:not(.disabled-link):hover {
    border-bottom: 2px solid #fff;
}


/* 中央订阅区 */
.footer-newsletter .footer-title {
    font-size: 18px;
    line-height: 40px;
    margin: 0 0 8px 0;
    font-weight: normal;
    text-align: left;
    max-width: var(--newsletter-width);
}



.footer-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    max-width: var(--newsletter-width);
}

/* 输入框包裹（黑底灰框） */
.footer-input-wrapper {
    display: flex;
    align-items: center;
    background: #222;
    padding: 16px;
    border-radius: 4px;
}

.footer-email-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    opacity: 0.9;
}

.footer-email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    ::placeholder {
        color: #9b9b9b;
    }
}

/* 提交按钮：初始为白描边透明背景 */
.footer-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid #828282;
    background: transparent;
    color: #828282;
    border-radius: 6px;
    cursor: pointer;
    transition: all 160ms ease;
}

.footer-submit-btn .footer-submit-text {
    font-size: 18px;  
    line-height: 24px;
    transition: color 160ms ease;
}

.footer-submit-btn.btn-valid .footer-submit-text {
    color: #fff;
}

.footer-submit-btn:not(.btn-valid) .footer-submit-text {
    color: #9b9b9b;
}

.footer-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;     
}


.footer-submit-btn .footer-arrow-icon {
    width: 18px;
    height: 18px;
}

/* 合法邮箱时的按钮样式（截图1） */
.footer-submit-btn.btn-valid {
    background: #FD5B1F;
    border-color: transparent; /* 无描边 */
}

/* 提示语（截图2样式） */
.footer-hint {
    margin-top: 12px;
    color: #828282;
    font-size: 14px;
    line-height: 22px;
    min-height: 22px; /* 保持区域高度稳定 */
}



/* 禁用链接的统一样式，避免点击/跳顶 */
.disabled-link {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

/* 社交图标行 */
.footer-social {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social img {
    width: 28px;
    height: 28px;
    display: block;
}

/* 右侧页面标识 */
.footer-right-label {
    list-style: none;
    text-decoration: none;
    display: flex;
    align-items: start;
    justify-content: flex-end;
    font-size: 18px;
    opacity: 0.9;
    margin-left: 60px;
    margin-right: 30px;
    align-self: start;
     margin-top: var(--form-top-gap-desktop);
}

.footer-right-label a {
    list-style: none;
    text-decoration: none;
    border-bottom: 1.5px solid #FD5B1F;
    text-wrap: nowrap;
    transition: font-size 0.2s ease;
}

.footer-right-label a:hover {
    font-size: 20px;
}

/* 大 Logo 区域 */
.footer-logo-big-wrap {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.footer-logo-big {
    max-width: min(80%, 900px);;
    height: auto;
    opacity: 0.8;
}

/* 底部条款与版权 */
.footer-bottom {
    margin-top: 10px;
    padding-top: 16px;
    /* border-top: 1px solid #222; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--footer-inner-max);
    margin: 0 auto;  
}

.footer-legal-links {
    display: flex;
    gap: 28px;
    margin-left: var(--footer-side-indent);
    text-align: left;
}

.footer-legal-links a {
    color: #9b9b9b;
}

.footer-copyright {
    color: #9b9b9b;
    margin-left: auto;
    margin-right: var(--footer-side-indent); /* 与右侧标签的 50px 匹配 */
    text-align: right;
}

/* 响应式微调 */
@media (max-width: 900px) {
    @media (hover: hover) {
        .footer-right-label a {
            transition:  font-size 0.3s ease, border-bottom-width 0.2s ease, transform 0.15s ease;
        }
        .footer-right-label a:hover {
            font-size: 24px;
            border-bottom-width: 4px;      /* 悬停时加粗下划线 */
            transform: translateY(-2px);   /* 轻微上移，避免大幅度换行抖动 */
        }
    }

     @media (hover: none) {
        .footer-right-label a {
            -webkit-tap-highlight-color: transparent; /* 去掉 iOS 高亮块 */
            transition: border-bottom-width 0.2s ease, transform 0.15s ease;
            outline: none;
        }
        .footer-right-label a:active,
        .footer-right-label a:focus,
        .footer-right-label a:focus-visible {
            border-bottom-width: 3px;      /* 轻微加粗下划线作为反馈 */
            transform: translateY(-1px);   /* 轻微上移 */
        }
    }
    .site-footer .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;          /* 左右两列 */
        grid-template-areas:
            "newsletter newsletter"              /* 顶部订阅区占满 */
            "leftnav rightlabel"                 /* 中段双列：左导航、右标签 */
            "logo logo"                          /* 大 Logo 占满 */
            "bottom bottom";                     /* 底部条款/版权占满 */
        row-gap: 28px;
        column-gap: 16px;
    }

    /* 2) 区域映射（不改 HTML，通过 grid-area 定位） */
    .footer-newsletter { grid-area: newsletter; }
    .footer-left-nav   { grid-area: leftnav; }
    .footer-right-label{
        grid-area: rightlabel;
        justify-content: flex-end;  /* 右列对齐 */
        text-align: right;
        margin-right: 0;
        align-self: start;          /* 顶部对齐，和左列第一行齐平 */
    }
    .footer-logo-big-wrap { grid-area: logo; }
    .footer-bottom        { grid-area: bottom; }

     .footer-form,
    .footer-social {
        max-width: var(--newsletter-width);
    }

    /* 3) 社交图标圆形外框：更大尺寸、居中分布 */
    .footer-social {
       justify-content: flex-start; /* 改为靠左 */
        margin-left: 0;              /* 避免意外外边距 */
         margin-bottom: clamp(24px, 6vw, 48px);
        width: 100%;         
    }
    .footer-social a {
        width: 44px;                 /* 加大圆形尺寸，贴近视觉 */
        height: 44px;
        border-radius: 50%;
        /* border: 1px solid #545454; */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .footer-social img {
        width: 30px;                 /* 图标相对圆框的视觉大小 */
        height: 30px;
    }

    /* 4) 左列导航：去缩进、保持较大字号与行距 */
    .footer-left-nav .footer-nav-list li {
        margin-left: 0;
        margin-bottom: 18px;
    }
    .footer-left-nav .footer-nav-list a {
        font-size: 15px;
        line-height: 19px;
        font-weight: 700;
    }

     .footer-left-nav a {
        font-size: clamp(18px, 6.8vw, 32px);
        line-height: 1.2;
        font-weight: 700; /* 保持与设计稿一致的粗细 */
    }

     .footer-left-nav li + li {
        margin-top: clamp(10px, 3.2vw, 18px);
    }

    /* 5) 右侧标签：字号与下划线（橙色 2px），右对齐 */
    .footer-right-label a {
        font-size: clamp(14px, 4.8vw, 22px);
        line-height: 1.2;
        border-bottom: 2px solid #FD5B1F;
    }

    /* 6) 大 Logo：手机端缩小并居中 */
    .footer-logo-big {
        max-width: 70%;
        display: block;
        margin: 0 auto;
    }
    .footer-logo-big-wrap {
        margin-top: 64px;
        display: flex;
        justify-content: center;
    }

    /* 7) 底部条款与版权：居中排布与间距 */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        gap: 32px;                   /* 拉开间距，贴近视觉 */
    }

     .footer-legal-links,
    .footer-copyright {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}




/* Language Selector */

.top-nav {
    background: #F5F3EF;
}

/* 覆盖：当页面含有 legal-page 主内容时，顶栏背景改为白色 */
body:has(main.legal-page) .top-nav {
    background: #fff;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-switch {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 5px;
}

.lang-switch a {
    text-decoration: none;
    color: #333;
}

.lang-option {
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-option.active {
    background-color: #fff;
    color: #FD5B1F;
    font-weight: bold;
}

.lang-divider {
    width: 1px;
    height: 15px;
    background-color: #ccc;
    margin: 0 5px;
}

.lang-option:not(.active):hover {
    background-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }

    .lang-switch {
        border-radius: 12px;
        padding: 4px;
    }

    .lang-option {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 8px;
    }

    .lang-divider {
        height: 12px;
    }
}

@media (max-width: 600px) {
    /* 标题在小屏更紧凑 */
    .footer-newsletter .footer-title {
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 10px;
        text-align: left;
    }

    /* 表单上下堆叠，间距更小 */
    .footer-form {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    /* 输入框与图标在手机端的触控优化 */
    .footer-input-wrapper {
        padding: 12px;
        border-radius: 6px;
    }
    .footer-email-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        opacity: 0.9;
    }
    .footer-email-input {
        font-size: 15px;
        line-height: 22px;
    }

    /* 提交按钮占满宽度并居中内容 */
    .footer-submit-btn {
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 8px;
    }
    .footer-submit-btn .footer-submit-text {
        font-size: 16px;
        line-height: 22px;
    }
    .footer-submit-btn .footer-arrow-icon {
        width: 18px;
        height: 18px;
    }
}

