/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  /* background: #f5f5f5; */
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {

  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #1890ff;
}

.logo-icon {
  font-size: 24px;
}

.header-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  padding: 8px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  width: 300px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #1890ff;
}

.search-btn {
  padding: 8px 20px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #40a9ff;
}

/* 主要内容区域 */
/* .main-content {
  padding: 30px 0;
} */

.main-wrap {
  background: url(https://res.callmysoft.com/wm-static-resource/Sem/748_wm/bg.png) no-repeat center top / auto 356px;
  padding: 40px 0;
}

/* 顶部搜索和下载区域 */
.top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  overflow: hidden;
}

.search-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 40px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.help-link {
  margin-bottom: 10px;
}

.help-text {
  color: #1890ff;
  text-decoration: none;
  font-size: 14px;
}

.help-text:hover {
  text-decoration: underline;
}

.search-box {
  position: relative;
}

.search-input-main {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.search-btn-main {
  width: 100%;
  padding: 12px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

.search-btn-main:hover {
  background: #40a9ff;
}

.hot-brands-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hot-brands-label {
  color: #666;
  font-size: 14px;
}

.hot-brands-list-inline {
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
}

.hot-brands-list-inline li {
  position: relative;
}

.hot-brands-list-inline li:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -10px;
  color: #ff4d4f;
  font-size: 12px;
}

.hot-brands-list-inline a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.hot-brands-list-inline a:hover {
  color: #1890ff;
}

/* 下载区域 */
.download-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-banner {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.download-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.download-desc {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.8;
}

.download-btn-large {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.download-btn-large:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.download-icon {
  font-size: 20px;
}

.download-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.system-info {
  color: #999;
  font-size: 13px;
}

.printer-image {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.printer-placeholder {
  font-size: 150px;
  opacity: 0.3;
}

/* 热门品牌区域 */
.hot-brands-section {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-heading {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.brand-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.brand-card:hover {
  border-color: #1890ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  transform: translateY(-2px);
}

.brand-logo {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 10px;
}

.brand-name {
  font-size: 14px;
  color: #666;
}

/* 品牌列表区域 */
.brand-list-section {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-list-header {
  margin-bottom: 30px;
}

.brand-list-subtitle {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
}

.alphabet-letter {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  transition: all 0.3s;
}

.alphabet-letter:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

.alphabet-letter.active {
  background: #1890ff;
  color: #fff;
}

.brand-list-search {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.brand-list-content {
  min-height: 200px;
}

.brand-group {
  margin-bottom: 30px;
}

.brand-group-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.brand-group-letter {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #1890ff;
  color: #fff;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  margin-right: 15px;
}

.brand-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-left: 55px;
}

.brand-item {
  padding: 8px 15px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  cursor: pointer;
}

.brand-item:hover {
  border-color: #1890ff;
  color: #1890ff;
  background: #f0f7ff;
}

/* 搜索下拉结果 */
.search-result-dropdown {
  position: fixed;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-dropdown.hide {
  display: none;
}

._search-result-title {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
}

._search-result-list {
  padding: 10px 0;
}

._search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s;
}

._search-result-item:hover {
  background: #f5f5f5;
}

._search-result-index {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #666;
  font-size: 12px;
  margin-right: 12px;
}

._search-result-index.first {
  /* background: #ff4d4f; */
  color: #fff;
}

._search-result-index.second {
  /* background: #ff7a45; */
  color: #fff;
}

._search-result-index.third {
  /* background: #ffa940; */
  color: #fff;
}

._search-result-text {
  flex: 1;
  color: #333;
  font-size: 17px;
}

._search-result-mark {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  margin-left: 10px;
}

._search-result-mark.hot {
  background: #ff4d4f;
  color: #fff;
}

._search-result-mark.new {
  background: #52c41a;
  color: #fff;
}

/* 品牌详情页样式 */
.brand-expert-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  background: transparent;
  padding: 40px 0;
  margin-bottom: 30px;
}

.brand-expert-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.printer-image-large {
  width: 100%;
  max-width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}

.printer-placeholder-large {
  font-size: 200px;
  opacity: 0.3;
}

.brand-expert-right {
  position: relative;
}

.recommend-tag {
  position: absolute;
  top: -10px;
  left: 0;
  background: #ff4d4f;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.brand-expert-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  margin-top: 10px;
}

.expert-features {
  list-style: none;
  margin-bottom: 25px;
}

.expert-features li {
  padding: 10px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  padding-left: 20px;
}

.expert-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #52c41a;
  font-weight: bold;
}

/* 驱动列表区域 */
.driver-list-section {
  background: transparent;
  padding: 30px 0;
}

.driver-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
}

.driver-list-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.back-to-brands-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(78, 110, 242, 1);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 28px;
  transition: all 0.3s;
}

.back-to-brands-btn:hover {
  background: rgba(78, 110, 242, 1);
  opacity: 0.9;
}

.back-icon {
  font-size: 16px;
}

.driver-list-content {
  min-height: 300px;
}

.driver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  background: rgba(217, 217, 217, 0.2);
  position: relative;
  margin-bottom: 15px;
  transition: all 0.3s;
  width: 1200px;
  height: 141.9px;
  box-sizing: border-box;
}

.driver-item:hover {
  background: rgba(78, 109, 242, 0.1);
}

.driver-image {
  width: 136px;
  height: 96px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  overflow: hidden;
}

.driver-image img {
  width: 70%;
  height: 60%;
  object-fit: cover;
}

.driver-info {
  flex: 1;
}

.driver-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.driver-details {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.driver-detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.driver-download-btn {
  padding: 8px 20px;
  background: rgba(78, 110, 242, 1);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s;
  white-space: nowrap;
}

.driver-download-btn:hover {
  background: rgba(78, 110, 242, 1);
  opacity: 0.9;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.pagination-btn {
  padding: 8px 15px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .top-section {
    grid-template-columns: 1fr;
  }

  .brand-expert-section {
    grid-template-columns: 1fr;
  }

  .printer-image {
    position: static;
    transform: none;
    margin-top: 20px;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .header-search {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }
}