/* 通用 */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Microsoft Yahei', sans-serif;
  background: #0b1230;
  color: #fff;
}

/* 背景轮播容器 */
.home {
  position: relative;
  min-height: 100vh;
  transition: background 0.6s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.home.bg-1 {
  /* 使用图片作为第一张轮播背景，并叠加轻微遮罩保证可读性 */
  background-image: linear-gradient(rgba(11,18,48,0.45), rgba(11,18,48,0.45)), url('../img/bg1.png');
}

.home.bg-2 {
  background-image: linear-gradient(rgba(11,18,48,0.45), rgba(11,18,48,0.45)), url('../img/bg1.png');
}

.home.bg-3 {
  background-image: linear-gradient(rgba(11,18,48,0.45), rgba(11,18,48,0.45)), url('../img/bg1.png');
}

.home.bg-4 {
  background-image: linear-gradient(rgba(11,18,48,0.45), rgba(11,18,48,0.45)), url('../img/bg1.png');
}

.home-header {
  padding: 16px;
  text-align: center;
  opacity: 0.9;
}

.home-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 16px 40px;
}

.icon-grid {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
  gap: 16px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  padding: 0 16px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, background .2s ease;
}

.icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.icon.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.icon-img {
  font-size: 28px;
  margin-bottom: 6px;
}

.icon-label {
  font-size: 12px;
  opacity: 0.9;
  text-align: center;
}

/* 已移除搜索按钮与搜索框样式 */

@media (min-width: 560px) {
  .icon-grid {
    grid-auto-rows: 120px;
  }
}
/* Mobile: prevent horizontal scroll and swipe */
html, body {
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Android: remove blue tap highlight on interactive elements */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
/* Home header logo size */
.home-header .home-logo {
  height: 96px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Logo 右上角“体验版”胶囊标签 */
.home-header .logo-wrap {
  display: inline-block;
  position: relative;
}
.home-header .beta-badge {
  position: absolute;
  top: 10px;
  right: -25px;
  background: #2f6df6;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px; /* 胶囊样式 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
}