html {
    font-size: 16px;
    /* 基准值 */
}

body {
    background-color: #f9fafb;
    color: #1D2129;
    line-height: 1.6;
    font-family: "Microsoft YaHei", sans-serif;
}

.company-container {
    width: 99vw;
    padding: 8vw 0 5vw 0;
}

.go-back {
    position: relative;
    color: #e3e4e8;
    font-size: 1rem;
    cursor: pointer;
    z-index: 3;
    padding-left: 12.9375rem;
    display: flex;
    bottom: 0.6vw;
    width: 5vw;
}

.back-arrow {
    font-size: 1.9vw;
    font-weight: 100;
    margin-top: -0.5vw;
    margin-right: -0.3vw;
    height: 2vw;
    line-height: 2vw;
}

.go-back:active {
    transform: translateY(2px);
    color: #49626e;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}

/* 主内容区 */
main {
    width: 50vw;
}

/* 公司列表 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 12px;
}

.section-title p {
    color: #666;
    margin: 0 auto;
}

.company-flex {
    display: flex;
    /* grid-template-columns: repeat(7, 1fr); */
    gap: 0.6vw;
    width: 80vw;
    margin: 0 auto;
    flex-wrap: wrap;
    /* 新增：修改主轴对齐方式为左对齐 */
    justify-content: center;
    /* 可选：确保容器宽度正确 */
    box-sizing: border-box;
}

.company-card {
    width: 10vw;
    border-radius: 0.6vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* margin: 0 auto; */
    /* border: 1px solid #f1f1f1; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.15);
}

.row-even {
    margin-left: 5vw;
}


/* .company-info {
    display: flex;
    align-items: center;
} */

.logo-container {
    width: 9vw;
    height: 4.5vw;
    border-radius: 8px;
    margin: auto;
    /* 容器自身水平居中（如需） */
    /* 新增：开启 Flex 布局，用于子元素居中 */
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    overflow: hidden;
    /* 防止图片超出容器 */
}

.logo-container img {
    /* 移除原 width: 100%，改为以下属性 */
    max-width: 100%;
    /* 最大宽度不超过容器，保证不溢出 */
    max-height: 100%;
    /* 最大高度不超过容器，保证不溢出 */
    object-fit: contain;
    /* 保持图片比例，完整显示在容器内（可选） */
}

.company-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.company-id {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.view-detail {
    color: #165DFF;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.view-detail i {
    margin-left: 4px;
}

/* 公司详情页 */
.company-detail {
    padding: 24px 0;
    /* display: none; */
    width: 80vw;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-logo {
        justify-content: flex-start;
    }
}

.footer-logo i {
    color: #165DFF;
    font-size: 24px;
}

.footer-logo span {
    font-weight: bold;
    font-size: 18px;
}

.footer-desc {
    color: #bbb;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .footer-desc {
        text-align: left;
    }
}


/* 标题样式 */
.title {
    font-size: 2.5vw;
    font-weight: bold;
    color: #2e3138;
}

/* 副标题样式 */
.subtitle {
    font-size: 1.2vw;
    color: #454954;
    margin-top: 1.2vw;
}

/* 平台按钮容器 - 相对定位，作为二维码的定位基准 */
.platform-button-wrapper {
    position: relative;
    /* 关键：作为二维码的定位父元素 */
    margin: 0.5vw 0 0 0;
    /* 按钮之间的间距 */
}


/* 按钮容器样式 */
.buttons-container {
    display: flex;
    gap: 1vw;
    margin-top: 1.6vw;
}

/* 平台按钮样式 */
.platform-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #286c89;
    color: white;
    border-radius: 0.4vw;
    height: 2.3vw;
    /* width: 5vw; */
    font-size: 0.8vw;
    padding: 0 1vw;
    cursor: pointer;
    transition: background-color 0.3s;
}

.platform-button:hover {
    background-color: #1e536b;
}

/* 禁用状态按钮样式 */
.platform-button.disabled {
    opacity: 0.5;
    /* 半透明效果 */
    cursor: not-allowed;
    /* 禁止鼠标指针 */
    background-color: #f0f0f0;
    /* 灰色背景 */
    color: #999;
    /* 灰色文字 */
    pointer-events: none;
    /* 阻止点击事件 */
}

/* 信息样式 */
.footer-info {
    font-size: 0.8vw;
    color: #737a8c;
    margin-top: 2vw;
}

/* 主容器样式 */
.main-container {
    padding-top: 8vw;
    width: 99vw;
    height: 60vw;
    background-image: url(https://eventech.oss-cn-shanghai.aliyuncs.com/web/sel_Cust/unsplash.png);
    background-size: cover;
    /* 添加这一行使背景图片覆盖整个容器 */
    background-repeat: no-repeat;
    /* 确保图片不重复 */
}

.content-wrap {
    position: relative;
    z-index: 5;
    border-radius: 10px;
    display: flex;
    margin: 0 auto;
    width: 76vw;
    height: 33vw;
    background-color: rgba(255, 255, 255, 0.8);
    /* 白色背景，40%透明度 */
    backdrop-filter: blur(8px);
    /* 模糊底层背景（关键属性） */
    -webkit-backdrop-filter: blur(5px);
    /* 兼容Safari */
}

.pic {
    background-image: url(../image/Frame302.png);
    width: 30vw;
    height: 26vw;
    background-size: cover;
    /* 添加这一行使背景图片覆盖整个容器 */
    background-repeat: no-repeat;
    /* 确保图片不重复 */
}

/* 新增样式 */
.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 0.8vw;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 0.4vw 0.5vw;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

.dropdown-container.active .dropdown-content {
    display: block;
}

.dropdown-container.active .platform-button {
    background-color: #1e536b;
}

/* 下拉箭头样式及旋转动画 */
.dropdown-arrow {
    width: 0.8vw;
    height: 0.8vw;
    transition: transform 0.3s ease;
    /* 平滑旋转过渡 */
    transform-origin: center;
    /* 以中心为旋转点 */
}

/* 箭头旋转状态 - 下拉菜单展开时 */
.platform-button.expanded .dropdown-arrow {
    transform: rotate(180deg);
    /* 旋转180度 */
}

/* 二维码容器样式 - 使用vw单位进行定位 */
.qrcode-container-wrapper {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    width: 10vw;
    /* 二维码宽度 */
    padding: 0.5vw;
    background: white;
    border-radius: 0.5vw;
    box-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.15);
    z-index: 100;
    top: 3vw;
    /* 相对于按钮下方的距离 */
    left: -3vw;
    /* 与按钮左对齐 */
}

/* 关闭按钮样式 */
.qrcode-close {
    position: absolute;
    top: 0.2vw;
    right: 0.2vw;
    font-size: 1vw;
    cursor: pointer;
    color: #666;
    width: 1.5vw;
    height: 1.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}