:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #264b3f;
  background: #dfece3;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #368c6c; outline-offset: 4px; }
[hidden] { display: none !important; }

.home-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #eaf3e82b, #194b3c0d),
    url("../assets/background.jpg") center center / cover no-repeat;
}

.home-main {
  width: calc(100% - 48px);
  max-width: 480px;
  margin: auto;
  flex-shrink: 0;
  padding: 37px 35px 27px;
  border: 1px solid #ffffffad;
  border-radius: 21px;
  background: #fafff8df;
  box-shadow: 0 20px 75px #153f3420;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #1c4d3b;
}

.home-intro {
  font-size: 13px;
  line-height: 1.8;
  color: #779184;
  margin: 0 0 26px;
}

.entry-list { display: flex; flex-direction: column; gap: 12px; }

.entry {
  min-height: 68px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid #317c61;
  border-radius: 10px;
  background: #317c61;
  color: #fff;
  box-shadow: 0 4px 12px #327c6117;
  transition: background .18s, box-shadow .18s;
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.entry-name { min-width: 0; overflow-wrap: anywhere; }
.entry-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.entry-state { font-size: 10px; white-space: nowrap; color: #d9eee2; }
.entry-arrow { font-size: 20px; line-height: 1; opacity: .8; }

.entry:hover {
  background: #27694f;
  border-color: #27694f;
  box-shadow: 0 4px 15px #23523b12;
}

.entry:focus-visible { outline-offset: 3px; }

.connection-note {
  min-height: 20px;
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e9789;
  font-size: 12px;
  line-height: 1.8;
}

.home-footer {
  width: calc(100% - 80px);
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 76px;
  flex-shrink: 0;
  font-size: 11px;
  color: #47735f;
}

.home-footer > span {
  padding: 6px 10px;
  border-radius: 6px;
  background: #f4fbf1b8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #355e4b;
}

@media (max-width: 600px) {
  .home-footer { width: calc(100% - 48px); height: 64px; font-size: 10px; }
  .home-backdrop { background-position: 43% center; }
  .home-main { padding: 29px 23px 23px; max-width: 400px; border-radius: 18px; }
  h1 { font-size: 27px; }
  .home-intro { font-size: 12px; margin-bottom: 23px; }
  .entry { min-height: 65px; padding: 17px; font-size: 13px; gap: 10px; }
  .entry-list { gap: 11px; }
  .entry-end { gap: 8px; }
  .entry-state { font-size: 9px; }
}

@media (max-width: 340px) {
  .home-main { width: calc(100% - 36px); padding: 26px 18px 20px; }
  .entry { padding: 16px 14px; }
  .home-footer { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
