:root {
  --card-bg: rgba(255, 255, 255, 0.12);
  --text-main: #fff;
  --text-sub: rgba(255, 255, 255, 0.92);
  --icon-size: 62px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("./bg.jpg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

a{
  text-decoration: none;
}

.page {
  width: min(1320px, 100%);
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-20%);
}

.clock {
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 2px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.search-wrap {
  width: min(640px, calc(100% - 28px));
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  opacity: 0.68;
  transform: scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-wrap:focus-within {
  opacity: 1;
  transform: scale(1);
}

.search-wrap input {
  flex: 1;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #334;
  font-size: 15px;
  line-height: 1;
  outline: none;
}

.search-wrap button {
  border: none;
  background: transparent;
  color: #3d5872;
  font-size: 20px;
  cursor: pointer;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.search-wrap .clear-btn {
  font-size: 16px;
  color: #6a7f92;
  padding: 2px 6px;
}

.search-wrap input:placeholder-shown + .clear-btn,
.search-wrap input:placeholder-shown + .clear-btn + button {
  opacity: 0;
  pointer-events: none;
}

.sub-note {
  margin-top: -6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 1px;
  text-shadow: 0 0 10px #ffffffaf;
}

.links-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 16px 16px;
  padding: 14px 8px 0;
}

.site-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-link:hover .icon-placeholder {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.icon-placeholder {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
}

.icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.label {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 76px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-links {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.privacy-entry {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
}

.privacy-entry:hover {
  background: rgba(0, 0, 0, 0.35);
}
