* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 解决长文本换行问题 */
  word-wrap: break-word;
  word-break: break-all;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f7fa;
  padding: 20px;
  line-height: 1.5;
}

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

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

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

.app-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s;
}

.app-card:hover {
  transform: translateY(-5px);
}

/* 超椭圆图标效果 */
.icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: #eee;
  /* 使用 clip-path 绘制标准的超椭圆曲线 */
  clip-path: path('M 0,36 C 0,5.4 5.4,0 36,0 C 66.6,0 72,5.4 72,36 C 72,66.6 66.6,72 36,72 C 5.4,72 0,66.6 0,36 Z');
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title {
  font-size: 17px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.app-desc {
  font-size: 13px;
  color: #95a5a6;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 10vh auto;
  padding: 25px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #bdc3c7;
}

#activity-list {
  list-style: none;
  margin-top: 20px;
}

#activity-list li {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

/* 活动链接样式 */
.activity-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.activity-name {
  font-weight: bold;
  color: #007AFF; /* 蓝色引导跳转 */
  font-size: 15px;
  margin-bottom: 4px;
}

.activity-desc {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

/* ADB 复制按钮 */
.copy-btn {
  border: none;
  background: #f0f2f5;
  color: #475569;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #e2e8f0;
}