/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #0c1426;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== 星空背景 ===== */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: no-repeat top center / cover url(../img/background.webp), #0c1426;
}

.meteor {
  position: absolute;
  top: 30px;
  width: 1px;
  opacity: 0;
  animation: meteor 12s linear infinite;
}

.meteor::after {
  content: "";
  display: block;
  border-width: 0 80px 2px 80px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255,255,255,0.4);
  transform: rotate(-45deg);
}

@keyframes meteor {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-600px, 100vh); }
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ===== 主横幅 ===== */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    no-repeat right center / contain url(../img/ag-66-4.webp),
    no-repeat top center / cover url(../img/backg.webp),
    linear-gradient(130deg, #4a00e0 0%, #6717a6 50%, #220959 100%);
  transition: transform 0.3s;
}

.hero:hover .hero-bg {
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-sub {
  color: #cbd6ff;
  font-size: 14px;
  margin-bottom: 24px;
}

.btn-primary {
  background: #ff9c12;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 10px;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: #ffb01b;
  color: #071e5e;
  box-shadow: 0 4px 20px rgba(255,176,27,0.4);
}

/* ===== 品牌卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ===== 单张卡片 ===== */
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: rgba(96,21,155,0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(96,21,155,0.3);
}

.card-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-info h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-tags {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-promo {
  font-size: 12px;
  color: #fdabab;
}

.card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s;
}

.card:hover .card-arrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ===== 响应式：平板 ===== */
@media screen and (max-width: 768px) {
  .container {
    padding: 12px 12px 32px;
  }

  .hero {
    min-height: 220px;
    margin-bottom: 14px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-tags {
    gap: 8px;
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .btn-primary {
    font-size: 13px;
    padding: 8px 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 14px;
    gap: 12px;
  }

  .card-logo {
    width: 60px;
    height: 60px;
    padding: 6px;
  }

  .card-info h3 {
    font-size: 17px;
  }
}

/* ===== 响应式：小手机 ===== */
@media screen and (max-width: 400px) {
  .hero {
    min-height: 180px;
  }

  .hero-content {
    padding: 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-tags span {
    font-size: 10px;
  }

  .card-logo {
    width: 50px;
    height: 50px;
    padding: 5px;
    border-radius: 10px;
  }

  .card-info h3 {
    font-size: 15px;
  }

  .card-tags, .card-promo {
    font-size: 11px;
  }
}

/* ===== 响应式：大桌面 ===== */
@media screen and (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-logo {
    width: 100px;
    height: 100px;
  }

  .card-info h3 {
    font-size: 24px;
  }

  .card-tags {
    font-size: 13px;
  }

  .card-promo {
    font-size: 13px;
  }
}
