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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: url('../assets/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* 时间与搜索 */
.clock { font-size: 4rem; font-weight: bold; text-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.date { font-size: 1.2rem; margin-bottom: 20px; opacity: 0.9; }

.search-box {
  margin: 20px auto 40px;
  max-width: 600px;
  display: flex;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 5px 15px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

/* 核心网格布局 */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: 100px;
  gap: 20px;
  padding: 20px 0;
}

/* 卡片不同尺寸控制 */
.icon-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, background 0.2s;
  cursor: grab;
}

.icon-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.3); }
.icon-card img { width: 48px; height: 48px; border-radius: 10px; }
.icon-card span { margin-top: 8px; font-size: 0.85rem; }

/* 网格占用跨度 */
.icon-card.small { grid-column: span 1; grid-row: span 1; }
.icon-card.medium { grid-column: span 2; grid-row: span 1; }
.icon-card.large { grid-column: span 2; grid-row: span 2; }

/* 弹窗与控制按钮 */
#admin-btn { position: fixed; bottom: 20px; right: 20px; border-radius: 50%; padding: 12px; border: none; cursor: pointer; }
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { background: #333; padding: 25px; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; width: 300px; }
.modal-content input, .modal-content select { padding: 8px; border-radius: 6px; border: none; }