:root {
  --gray: #0d0d0e; --gray-2: #1c1c1f; --coffee: #2a2a2e; --coffee-d: #141416;
  --gold: #d4af37; --gold-l: #f0d78c; --fg: #f2f2f3; --muted: #9a9aa2;
  --card: rgba(38, 38, 42, .72); --line: rgba(255, 255, 255, .09); --accent: var(--gold);
}
* { box-sizing: border-box; margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; color: var(--fg);
  background-color: var(--gray);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(80, 80, 88, .25), transparent 70%),
    linear-gradient(180deg, var(--gray-2) 0%, var(--gray) 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
header.top { position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 14, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, .18); }
.brand { max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 80px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, .35)); }
.brand img.wordmark { width: auto; height: 38px; filter: drop-shadow(0 2px 10px rgba(212, 175, 55, .3)); }
.brand span { font-size: 1.4rem; font-weight: 700; letter-spacing: .08em;
  background: linear-gradient(180deg, var(--gold-l), var(--gold) 60%, #a8841f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { max-width: 1080px; width: 100%; margin: 0 auto; padding: 36px 16px 24px; }
.intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; padding-left: 12px; border-left: 3px solid var(--gold); }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 16px 48px; }
section + section { margin-top: 32px; }
h2 { font-size: .95rem; color: var(--gold); font-weight: 600; margin: 0 4px 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 104px;
}
.card:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(52, 52, 58, .85); box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(212,175,55,.25); }
.card:active { transform: scale(.98); }
.logo { flex: none; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.ph { font-size: 1.9rem; font-weight: 700; color: var(--coffee-d); background: linear-gradient(135deg, var(--gold-l), var(--gold)); width: 100%; height: 100%; display: grid; place-items: center; }
.meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.meta strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta small { color: var(--muted); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta small.domain { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .01em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { flex: none; width: 18px; height: 18px; color: var(--muted); }
.card:hover .go { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
footer { text-align: center; color: var(--muted); border-top: 1px solid var(--line); margin: 0 16px; font-size: .85rem; padding: 24px 16px 32px; }
.cs { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20;
  width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--coffee-d); text-decoration: none; background: linear-gradient(135deg, var(--gold-l), var(--gold) 55%, #b8901f);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 0 3px rgba(212,175,55,.25); transition: transform .15s; }
.cs::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
.cs:hover { transform: translateY(-2px) scale(1.04); }
.cs svg { width: 24px; height: 24px; }
.cs span { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .cs::before { animation: none; } }
footer { padding-bottom: 150px !important; }
@media (max-width: 560px) {
  .brand { height: 68px; gap: 10px; }
  .brand img { width: 50px; height: 50px; }
  .brand img.wordmark { width: auto; height: 32px; }
  .logo { width: 80px; height: 80px; }
  .brand span { font-size: 1.2rem; }
  .intro { padding: 24px 16px 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { flex-direction: column; text-align: center; padding: 16px 10px; gap: 10px; }
  .meta strong { white-space: normal; }
  .go { display: none; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }
/* recent-visit ticker (bottom-right, above the service button) */
.ticker { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 72px); z-index: 19;
  max-width: min(300px, calc(100vw - 40px)); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 20, 22, .88); border: 1px solid rgba(212, 175, 55, .35); color: var(--fg); font-size: .8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ticker .tk-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ticker .pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.ticker.in { animation: tkIn .45s ease-out; }
@keyframes tkIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticker.in, .ticker .pulse { animation: none; } }
