/* 底部整体样式设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #272932;
}

footer {
    background: #272932;  /* 深色背景 */
    color: white;         /* 文字颜色为白色 */
    padding: 80px 0;      /* 上下内边距80px */
    width: 100%;          /* 确保宽度100% */
    box-sizing: border-box; /* 确保padding不会增加宽度 */
    margin: 0;            /* 确保没有外边距 */
}

/* 内容容器样式 */
.footer-content {
    max-width: 1300px;    /* 最大宽度1200px */
    margin: 0 auto;       /* 水平居中 */
    padding: 0 20px;      /* 左右内边距20px */
    box-sizing: border-box; /* 确保padding不会增加宽度 */
    }

/* 页脚标题部分样式 */
.footer-header {
    text-align: left;     /* 文字左对齐 */
    margin-bottom: 120px; /* 底部外边距120px */
    font-family: 'Poppins', sans-serif;
}

/* 标题文字样式 */
.footer-header h1 {
    font-size: 85px;      /* 标题字体大小 */
    line-height: 1.2;     /* 行高为字体大小的1.2倍 */
    margin-bottom: 60px;  /* 底部外边距40px */
}

/* 连接按钮样式 */
.connect-btn {
    display: inline-block;  /* 行内块级元素 */
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);  /* 渐变背景 */
    color: white;          /* 按钮文字颜色 */
    text-decoration: none; /* 移除下划线 */
    padding: 16px 40px;    /* 内边距：上下16px，左右40px */
    border-radius: 10px;   /* 圆角半径 */
    font-size: 18px;       /* 按钮文字大小 */
    transition: all 0.3s ease;  /* 所有属性变化添加过渡效果 */
    margin-top: 20px;
    width: 240px;
    text-align: center;
}

/* 按钮悬停效果 */
.connect-btn:hover {
    transform: translateY(-2px);  /* 向上移动2px */
    box-shadow: 0 5px 15px rgba(238, 73, 253, 0.4);  /* 添加阴影效果 */
}

/* 导航区域样式 */
.footer-nav {
    display: flex;          /* 弹性布局 */
    justify-content: space-between;  /* 两端对齐 */
    align-items: flex-start;  /* 顶部对齐 */
    margin-bottom: 80px;    /* 底部外边距80px */
    padding-top: 120px;
}

/* Logo区域和语言选择器布局 */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo图片样式 */
.footer-logo img {
    height: 60px;          /* 图片高度60px */
    margin-right: 40px;    /* 右侧外边距40px */
    margin-top: 10px;      /* 顶部外边距10px */
    margin-bottom: 10px;
}

/* 语言选择器样式 */
.language-selector {
    margin-top: 50px;
    width: 240px;
    max-width: 240px;
    margin: 20px 0 0 0; /* 左对齐 */
}

.language-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.language-dropdown {
    position: relative;
    width: 100%;
}

/* 初始状态样式 */
.selected-language {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #272932;
    position: relative;
    border-radius: 8px;
    padding: 0 15px;
    height: 50px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 2;
}

.selected-language span {
    display: inline-block;
    vertical-align: middle;
}

/* 使用伪元素创建可动画的边框 */
.selected-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-sizing: border-box;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* 图标样式 */
.flag-icon {
    width: 24px !important;
    height: 16px !important;
    margin-right: 10px ;
    object-fit: cover ;
    vertical-align: middle ;
    border-radius: 0 ; /* 移除边框圆角 */
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* 选项容器 */
.language-options {
    position: absolute;
    top: calc(100% - 1px); /* 精确对齐，避免边框间隙 */
    left: 0;
    width: 100%;
    background-color: #272932;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: visibility 0.3s, opacity 0.3s;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    z-index: 2; /* 确保下拉菜单在其他元素之上 */
}

/* 打开状态 */
.language-dropdown.open .selected-language::before {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.language-dropdown.open .language-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* 创建内容容器 */
.language-options-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px; /* 设置选项高度为50px */
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option span {
    display: inline-block;
    vertical-align: middle;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.language-option.active {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 链接区域样式 */
.footer-links {
    display: flex;          /* 弹性布局 */
    gap: 80px;              /* 列之间的间隔80px */
    flex-wrap: wrap;        /* 允许换行 */
}

/* 链接列样式 */
.link-column {
    display: flex;          /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 20px;              /* 链接之间的间隔20px */
}

/* 链接样式 */
.link-column a {
    color: white;          /* 链接文字颜色 */
    text-decoration: none; /* 移除下划线 */
    font-size: 16px;       /* 链接文字大小 */
    transition: all 0.3s ease;  /* 所有变化添加过渡效果 */
    white-space: nowrap;   /* 防止文字换行 */
    position: relative;    /* 为下划线定位做准备 */
}

/* 链接下划线基础样式 */
.link-column a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 链接悬停效果 */
.link-column a:hover {
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 链接悬停时下划线效果 */
.link-column a:hover::after {
    width: 20px;
}

/* 当前页面高亮样式 */
.link-column a.active {
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

.link-column a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 20px;
    height: 2px;
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    border-radius: 2px;
}

/* 法律声明区域样式 */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);  /* 顶部边框 */
    margin-bottom: -50px;
}

/* 法律声明文字样式 */
.footer-legal p {
    color: rgba(255, 255, 255, 0.2);  /* 文字颜色为半透明白色 */
    font-size: 13px;       /* 文字大小14px */
    line-height: 1.6;      /* 行高为字体大小的1.6倍 */
    max-width: 100%;      /* 最大宽度800px */
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 页脚整体内边距调整 */
    footer {
        padding: 40px 0;  /* 减小上下内边距 */
    }
    
    /* 页脚标题部分样式调整 */
    .footer-header {
        margin-bottom: 60px;  /* 减小底部外边距 */
        text-align: center;   /* 文字居中 */
    }
    
    /* 标题文字样式调整 */
    .footer-header h1 {
        font-size: 36px;     /* 减小标题字体大小 */
        margin-bottom: 20px; /* 减小底部外边距 */
        text-align: center;  /* 文字居中 */
        word-break: break-word; /* 允许在单词内换行 */
    }
    
    /* 连接按钮样式调整 */
    .connect-btn {
        padding: 12px 24px;  /* 减小内边距 */
        font-size: 14px;     /* 减小字体大小 */
        width: 100%;         /* 宽度100% */
        max-width: 280px;    /* 最大宽度280px */
        margin: 20px auto 0; /* 水平居中 */
        display: block;      /* 块级元素 */
    }
    
    /* 导航区域样式调整 */
    .footer-nav {
        flex-direction: column;  /* 垂直排列 */
        align-items: left;     /* 水平靠左 */
        gap: 40px;               /* 元素之间的间隔40px */
        margin-bottom: 40px;     /* 减小底部外边距 */
    }
    
    /* Logo区域样式调整 */
    .footer-logo {
        margin-bottom: 20px;
        text-align: left; /* 改为左对齐 */
        align-items: flex-start;
    }
    
    /* Logo图片样式调整 */
    .footer-logo img {
        height: 50px;        /* 减小图片高度 */
        margin-right: 0;     /* 移除右侧外边距 */
    }
    
    /* 链接区域样式调整 */
    .footer-links {
        flex-direction: column;  /* 垂直排列 */
        gap: 30px;               /* 减小列之间的间隔 */
        width: 100%;             /* 宽度100% */
        align-items: center;     /* 水平居中 */
    }
    
    /* 链接列样式调整 */
    .link-column {
        align-items: left;  /* 水平靠左 */
        width: 100%;          /* 宽度100% */
    }
    
    /* 链接样式调整 */
    .link-column a {
        text-align: left;  /* 文字靠左 */
        padding: 8px 0;      /* 增加上下内边距 */
    }
    
    /* 法律声明区域样式调整 */
    .footer-legal {
        padding-top: 20px;  /* 减小顶部内边距 */
        text-align: left; /* 文字靠左 */
    }
    
    /* 法律声明文字样式调整 */
    .footer-legal p {
        font-size: 12px;    /* 减小字体大小 */
        text-align: left; /* 文字靠左 */
    }
    
    /* 移动端链接悬停时下划线效果 */
    .link-column a:hover::after {
        width: 30px; /* 移动端下划线稍长一些 */
    }
    
    /* 移动端当前页面高亮样式 */
    .link-column a.active::after {
        width: 30px; /* 移动端下划线稍长一些 */
    }
    
    /* 语言选择器调整 */
    .language-selector {
        width: 120px;
        max-width: 120px;
        margin: 20px 0 0 0; /* 左对齐 */
    }
} 