* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f7fb;
  font-family:
    Inter,
    PingFang SC,
    Helvetica,
    Arial,
    sans-serif;
  color: #111;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 36px 120px 100px;
}

/* 顶部 */

.header {
  height: 72px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.site-title {
  font-size: 26px;
  font-weight: 700;
}

/* 搜索 */

.search-box {
  margin-bottom: 28px;
}

.search-input {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 22px;
  background: white;
  padding: 0 26px;
  font-size: 18px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* 广告 */

.ggao-wrap {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 42px;
}

.ggao-item {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  display: block;
  background: #fff;
  box-shadow:
    0 4px 18px rgba(0,0,0,.04);

}

.ggao-item img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
  transition: .3s;
}

.ggao-item:hover img {
  transform: scale(1.03);
}

.ggao-item:hover img {
  transform: scale(1.03);
}

/* 热门 */

.hot-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #111;
}

/* 网格 */

.hot-grid,
.app-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(140px, 1fr));
  gap: 28px;
}

/* 分类 */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.tab {
  padding: 11px 20px;
  background: white;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: .25s;
  user-select: none;
}

.tab:hover {
  background: #111;
  color: white;
}

.tab.active {
  background: #111;
  color: white;
  font-weight: 600;
}

/* 卡片 */

.app-card {
  width: 100%;
  min-height: 124px;
  background: white;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: .25s;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.app-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
}

.app-name {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #222;
}

/* footer */

.footer {
  margin-top: 100px;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.footer-copy {
  margin-top: 18px;
  font-size: 13px;
  color: #999;
}

/* 滚动条 */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 999px;
}

/* 笔记本 */

@media (max-width: 1440px) {

  .container {
    padding: 32px 80px 90px;
  }

}

/* 平板 */

@media (max-width: 1024px) {

  .container {
    padding: 28px 40px 80px;
  }

}

/* 手机 */

@media (max-width: 768px) {

  .container {
    padding: 18px 16px 60px;
  }

  .header {
    height: 64px;
    margin-bottom: 20px;
  }

  .site-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .site-title {
    font-size: 22px;
  }

  .search-box {
    margin-bottom: 22px;
  }

  .search-input {
    height: 54px;
    font-size: 16px;
    border-radius: 18px;
    padding: 0 18px;
  }

.ggao-wrap {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.ggao-item {
  border-radius: 18px;
}

.ggao-item img {
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 82px;
  max-height: 110px;
  object-fit: cover;
}

  .tabs {
    gap: 10px;
    margin-bottom: 26px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex-shrink: 0;
    padding: 9px 16px;
    font-size: 13px;
  }

  .hot-grid,
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .app-card {
    min-height: 110px;
    border-radius: 22px;
  }

  .app-logo {
    width: 44px;
    height: 44px;
  }

  .app-name {
    font-size: 13px;
  }

}

/* 小屏手机 */

@media (max-width: 480px) {

  .container {
    padding: 14px 12px 50px;
  }

  .hot-grid,
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

}