/* ============================================================
   小麦 · 起始页样式 · 清爽软萌风
   布局：上时钟（主视觉） + 下双栏（42% / 58%）
   ============================================================ */

:root {
  --accent1: #99c2ff;
  --accent2: #ffb3d1;
  --ink: #24303f;
  --ink-soft: #5b6b7d;
  --card: rgba(20, 28, 42, 0.46);
  --card-brd: rgba(255, 255, 255, 0.18);
  --shadow: 0 10px 26px rgba(12, 22, 38, 0.26);
  --card-ink: #f4f8ff;
  --card-ink-soft: rgba(228, 238, 255, 0.75);
  --radius: 20px;
  --gap: 24px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #eef4ff;
  overflow-x: hidden;
}

/* ---------- 背景：风景照片 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #eef4ff;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.blob {
  display: none;
}
.b1 { width: 420px; height: 420px; background: #a9c9ff; top: -80px; left: -60px; }
.b2 { width: 360px; height: 360px; background: #ffc2dd; bottom: -80px; right: -40px; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #b7f0e4; top: 40%; left: 55%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

/* ---------- 页面骨架 ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---------- 顶部大时钟 ---------- */
.clock-hero {
  text-align: center;
  padding: 4px 0 2px;
}
.time {
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.78), 0 0 14px rgba(0, 0, 0, 0.45);
}
.date {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}

/* ---------- 头像区（居中横排，更紧凑） ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  padding: 0;
}
.hd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  margin: 0;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(120, 150, 210, 0.35);
  background-size: cover; background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex: none;
}
.name {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.motto { margin: 0; color: var(--ink-soft); font-size: 13px; }
.greeting {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.9;
}

/* 文字浮在风景背景上时的可读性 */
.name, .motto, .greeting, .copyright, .date {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78), 0 0 10px rgba(0, 0, 0, 0.45);
}
.motto, .greeting { color: rgba(255, 255, 255, 0.92); }

/* ---------- 搜索 ---------- */
/* 搜索：居中通栏 */
.search-card { width: 100%; padding: 0; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  border: none;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: var(--shadow);
}
.search-icon { width: 19px; height: 19px; color: rgba(228, 238, 255, 0.7); flex: none; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--card-ink);
  min-width: 0;
  padding: 8px 0;
}
.search-bar input::placeholder { color: rgba(228, 238, 255, 0.55); }
.search-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  transition: filter 0.15s, transform 0.15s;
}
.search-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* 搜索联想 */
.suggest {
  margin-top: 8px;
  background: rgba(20, 28, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(10, 20, 35, 0.4);
  color: var(--card-ink);
}
.suggest div {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.suggest div:hover, .suggest div.active { background: rgba(255, 255, 255, 0.1); }

/* ---------- 快捷链接 ---------- */
.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--card-ink);
  transition: transform 0.16s, box-shadow 0.16s;
}
.link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12, 22, 38, 0.34); }
.link .ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #dbe8ff;
  flex: none;
}
.link .ic svg { width: 20px; height: 20px; }
.link .meta { min-width: 0; }
.link .nm { font-size: 15px; font-weight: 600; color: var(--card-ink); }
.link .ds { font-size: 12.5px; color: var(--card-ink-soft); margin-top: 3px; }

/* ---------- 一言 ---------- */
.hitokoto {
  max-width: 100%;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: rgba(35, 48, 70, 0.82);
  padding: 2px 14px;
  line-height: 1.7;
  min-height: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

/* ---------- 页脚 ---------- */
.footer {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.footer > .copyright {
  width: fit-content;
  margin: 0;
  padding: 6px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #eef4ff;
  background: rgba(20, 28, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 6px 18px rgba(12, 22, 38, 0.24);
  text-shadow: none;
}
.footer .copyright a { color: inherit; text-decoration: none; }
.footer .copyright a:hover { text-decoration: underline; }

.noscript {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #eef4ff; color: var(--ink);
}

/* ---------- 入场动画 ---------- */
.up { opacity: 0; transform: translateY(14px); animation: up 0.6s cubic-bezier(.2,.7,.3,1) forwards; }
.d0 { animation-delay: 0.02s; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.20s; }
.d4 { animation-delay: 0.26s; }
.d5 { animation-delay: 0.32s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 800px) {
  .page {
    padding: 22px 16px 30px;
    gap: 20px;
  }
  .clock-hero { text-align: center; }
  .time { font-size: clamp(44px, 14vw, 68px); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar, .link { border-radius: 16px; }
  .footer > .copyright { font-size: 12px; padding: 6px 14px; }
  .bg { background-attachment: scroll; }
}
