/* 基础样式与移动端适配 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f7f8fa;
  color: #111;
}

.page { max-width: 560px; margin: 0 auto; padding: 12px 12px 24px; }
.header .title { font-size: 20px; margin: 4px 0 12px; font-weight: 600; }

/* 轮播 */
.carousel { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.slides {
  display: flex;
  width: 100%;
  transition: transform 400ms ease;
  touch-action: pan-y;
}
.slide {
  min-width: 100%;
  aspect-ratio: 16 / 9; /* 保持高度比例，移动端友好 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-inner { color: #fff; text-align: left; padding: 16px; max-width: 92%; }
.slide-inner h3 { margin: 0 0 6px; font-size: 18px; }
.slide-inner p { margin: 0; opacity: 0.92; }

/* 三种渐变背景 */
.s1 { background: linear-gradient(135deg, #2e7cf0, #6cc0ff); }
.s2 { background: linear-gradient(135deg, #ff895b, #ff5880); }
.s3 { background: linear-gradient(135deg, #6b7bff, #36d1dc); }

.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); border: none; padding: 0; }
.dot.active { background: #fff; }

/* 应用中心 */
.apps .section-title { font-size: 18px; margin: 16px 0 10px; font-weight: 600; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.app-item { text-decoration: none; color: #111; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.app-icon img { width: 70%; height: 70%; object-fit: contain; display: block; }
.app-name { font-size: 12px; text-align: center; line-height: 1.2; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 640px) { .page { max-width: 640px; } }