  
/*download 搜索*/
.user-search-container {
    max-width: 900px;
    margin: 0 auto 20px;
    display: flex;
    gap: 8px;
}

.user-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.user-search-input:focus {
    border-color: #004c98;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 76, 152, 0.2);
}

.user-search-btn {
    background-color: #004c98;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-search-btn:hover {
    background-color: #003d7a;
}

.user-search-reset-btn {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-search-reset-btn:hover {
    background-color: #e0e0e0;
}

/* 搜索结果高亮样式 */
.user-product-item.highlight {
    border: 2px solid #004c98;
    box-shadow: 0 0 10px rgba(0, 76, 152, 0.2);
}

.user-product-item.hide {
    display: none;
}
  
    /*user 用户中心*/

/* 基础重置：解决浏览器默认样式差异 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}

.user-section-title {
  font-size: 22px;
  color: #004c98;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}

/* 容器基础样式：仅外层使用，避免重复 */
.user-products-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 0 20px 0;
}

/* 核心：兼容IE11的Flex布局 */
.user-product-item {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 12px 15px;
  display: -webkit-box; /* 旧版Safari */
  display: -ms-flexbox; /* IE10+ */
  display: flex;
  -webkit-box-align: center; /* 垂直居中：旧版语法 */
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 8px; /* 替代gap（IE不支持flex gap） */
  transition: all 0.2s ease;
  border: 1px solid #e1e8f0;
  width: 100%;
}

.user-product-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Logo样式：固定尺寸，避免压缩 */
.user-product-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  -ms-flex-negative: 0; /* IE10+ */
  flex-shrink: 0;
  margin-right: 12px; /* 替代gap */
}

/* 产品名称：兼容旧版Safari溢出处理 */
.user-product-name {
  font-size: 16px;
  color: #1a365d;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 15px;
  -ms-flex-negative: 1;
  flex-shrink: 1;
  min-width: 0; /* 修复Safari溢出 */
  -webkit-min-logical-width: 0; /* 旧版Safari */
}

/* 按钮组：兼容IE11的Flex布局 */
.user-btn-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
  /* 替代gap：给子元素加margin */
}
.user-btn-group > .user-btn,
.user-btn-group > .user-account-btns {
  margin-left: 8px; /* 替代gap:8px */
}
.user-btn-group > :first-child {
  margin-left: 0; /* 第一个元素清除margin */
}

/* 注册+登录连体：兼容IE11 */
.user-account-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.user-register-btn {
  color: #004c98;
  background-color: #003d7a;
  border: 1px solid #004c98;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.user-register-btn:hover {
  background-color: #e53e3e;
  color: #fff; /* 补充hover文字色，避免看不见 */
}
.user-login-btn {
  background-color: #0066cc;
  color: #fff;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 6px 12px;
  margin-left: -1px; /* 边框重叠 */
  border: 1px solid #0066cc; /* 补充边框，避免IE漏边 */
}
.user-login-btn:hover {
  background-color: #0052a3;
}

/* 按钮基础样式：兼容所有浏览器 */
.user-btn {
  font-size: 13px;
  padding: 6px 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  color: #fff;
  cursor: pointer; /* 补充鼠标样式 */
}

/* 按钮配色 */
.user-proxy-btn {
  background-color: #9c27b0;
}
.user-proxy-btn:hover {
  background-color: #7b1fa2;
}
.user-pc-download-btn {
  background-color: #4CAF50;
}
.user-pc-download-btn:hover {
  background-color: #3e8e41;
}
.user-android-download-btn {
  background-color: #3ddc84;
}
.user-android-download-btn:hover {
  background-color: #2ca56a;
}
.user-price-btn {
  background-color: #ff9800;
}
.user-price-btn:hover {
  background-color: #e68900;
}

/* 图标样式：兼容所有浏览器（替换相对路径为绝对路径，避免加载失败） */
.user-btn i.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  font-style: normal;
}
.user-btn i.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
/* 建议改为绝对路径，如 /static/images/sz1.png，避免页面层级问题 */
i.icon-search::before { background-image: url(./images/sz-search.png); } /* 新增搜索图标 */
i.icon-link::before { background-image: url(./images/sz1.png); }
i.icon-download::before { background-image: url(./images/sz2.png); }
i.icon-android::before { background-image: url(./images/sz3.png); }
i.icon-yen::before { background-image: url(./images/sz4.png); }
i.icon-user-plus::before { background-image: url(./images/sz5.png); }
i.icon-sign-in::before { background-image: url(./images/sz6.png); }

/* 空按钮隐藏：替代:has()，兼容所有浏览器（通过HTML内联style+CSS双重保障） */
.user-btn[href=""],
.user-btn[href="#"],
.user-btn:empty,
.user-btn.only-icon {
  display: none !important;
}

/* 响应式适配：兼容小屏+IE11 */
@media (max-width: 768px) {
  .user-product-item {
    /* 关键修改1：保持水平布局，取消垂直布局 */
    -webkit-box-orient: horizontal; /* 旧版Safari - 改为水平 */
    -webkit-box-direction: normal;
    -ms-flex-direction: row; /* 改为水平 */
    flex-direction: row;
    padding: 10px;
    -webkit-box-align: center; /* 垂直居中 */
    -ms-flex-align: center;
    align-items: center;
    /* 去掉align-items: flex-start */
    flex-wrap: wrap; /* 新增：按钮组自动换行 */
  }
  .user-product-logo {
    /* 关键修改2：保留横向间距，取消纵向间距 */
    margin-bottom: 0; 
    margin-right: 8px;
  }
  .user-product-name {
    /* 关键修改3：取消纵向间距，保留横向间距，宽度自适应 */
    margin-bottom: 0;
    margin-right: 8px;
    width: auto; /* 取消100%宽度，改为自适应 */
    max-width: 180px; /* 新增：限制标题最大宽度，避免挤压按钮 */
  }
  .user-btn-group {
    /* 关键修改4：按钮组换行显示，宽度100%，margin重置 */
    width: 100%;
    margin-left: 0; /* 取消靠右，改为顶格 */
    margin-top: 8px; /* 新增：和logo/标题拉开纵向间距 */
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .user-btn-group > .user-btn,
  .user-btn-group > .user-account-btns {
    margin-bottom: 6px;
    -webkit-box-flex: 1; /* 旧版Safari自适应宽度 */
    -ms-flex: 1 1 calc(50% - 4px); /* 优化：每行2个按钮（更适配移动端） */
    flex: 1 1 calc(50% - 4px);
    min-width: 80px;
    margin-left: 0px;
    margin-right: 4px;
  }
  .user-btn-group > :first-child {
    margin-left: 4px; /* 适配新的margin规则 */
  }
  .user-account-btns {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(50% - 4px); /* 登录/注册按钮组也占半宽 */
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .user-btn {
padding: 6px 8px;
font-size: 12px;
border-radius: 4px !important;
margin-left: 0 !important;
width: 100%;
  }
  .user-product-logo {
    width: 28px;
    height: 28px;
    margin-right: 8px; /* 保持和768px一致 */
  }
  .user-product-name {
    font-size: 16px;
    max-width: 100%; /* 更小屏缩小标题最大宽度 */
  }
}



