:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  color: #111111;
  background: #f4f4f4 url("background.jpg") center / cover fixed no-repeat;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
    url("background.jpg") center / cover fixed no-repeat;
  color: #111;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(17, 17, 17, .22); outline-offset: 3px; }

.home-page { width: min(100% - 40px, 724px); min-height: 100vh; margin: 0 auto; padding: 40px 0 90px; position: relative; }
.top-toolbar { max-width: 700px; height: 32px; margin: 0 auto; }
.top-toolbar-inner { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 5px; }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.icon-button:hover { background: rgba(255,255,255,.72); transform: scale(1.08); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-btn { width: 32px; height: 32px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.action-buttons { display: flex; align-items: center; gap: 10px; }
.bookmark-btn, .share-btn { width: 26px; height: 26px; }
.bookmark-btn svg { width: 16px; height: 16px; }
.share-btn svg { width: 17px; height: 17px; }
.action-divider { width: 1px; height: 15px; background: rgba(0,0,0,.18); }

.container { max-width: 700px; margin: 12px auto 0; }
.section-profile { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; text-align: center; }
.avatar { width: 80px; height: 80px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
h1 { margin: 0 0 6px; font-size: 20px; line-height: 27px; font-weight: 700; }
.subtitle { margin: 0; color: #555; font-size: 14px; line-height: 21px; }
.section-content { width: 100%; }
.content-area { display: grid; gap: 38px; }
.link-group-title { margin: 0 5px 12px; color: #777; font-size: 13px; font-weight: 500; }
.link-group-list { display: grid; gap: 30px; }
.content-list { margin: 0; padding: 0 5px; list-style: none; }
.content-link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 48px; border-radius: 12px; color: #111; background: rgba(255,255,255,.65); text-align: center; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.015); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.content-link:hover { background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: scale(1.012); }
.content-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right-icon { position: absolute; right: 16px; width: 18px; height: 18px; fill: none; stroke: #777; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-state { margin: 28px 0; color: #777; text-align: center; font-size: 14px; }
.page-footer { position: absolute; right: 0; bottom: 30px; left: 0; color: #999; font-size: 12px; text-align: center; }

.modal-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.18); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade-in .2s ease; }
.modal-overlay[hidden] { display: none; }
.modal { width: min(100%, 430px); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.16); animation: slide-up .22s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; }
.modal h2 { margin: 0; font-size: 17px; }
.close-button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #666; font-size: 24px; line-height: 1; }
.close-button:hover { background: #f1f1f1; }
.search-input-wrapper { display: flex; align-items: center; margin: 0 22px 12px; padding: 0 12px; border: 1px solid #e6e6e6; border-radius: 10px; background: #fafafa; }
.search-input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; }
.search-key { color: #999; font-size: 12px; white-space: nowrap; }
.search-results { max-height: 300px; overflow: auto; padding: 0 22px 18px; }
.search-result { display: block; padding: 12px 0; color: inherit; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.search-result small { display: block; margin-top: 3px; color: #888; font-size: 12px; }
.tutorial-content { display: grid; gap: 12px; padding: 0 22px 22px; }
.tutorial-step { padding: 15px; border-radius: 10px; background: #f7f7f7; }
.tutorial-step strong, .tutorial-step span { display: block; }
.tutorial-step strong { margin-bottom: 3px; font-size: 13px; }
.tutorial-step span { color: #666; font-size: 14px; }
.tutorial-step p { margin: 8px 0 0; color: #555; font-size: 13px; line-height: 1.6; }
kbd { padding: 2px 5px; border: 1px solid #ddd; border-bottom-width: 2px; border-radius: 4px; background: #fff; font-size: 12px; }
.share-description { margin: 0; padding: 0 22px 14px; color: #666; font-size: 14px; }
.share-row { display: flex; gap: 8px; padding: 0 22px; }
.share-row input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid #e6e6e6; border-radius: 8px; color: #666; background: #fafafa; font-size: 13px; }
.share-row button { padding: 0 14px; border: 0; border-radius: 8px; background: #111; color: #fff; font-size: 13px; }
.copy-status { min-height: 18px; margin: 10px 22px 18px; color: #5e8d5e; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { body { background-attachment: scroll; } .home-page { width: min(100% - 28px, 724px); padding-top: 24px; } .container { margin-top: 20px; } .content-area { gap: 18px; } .content-link { min-height: 54px; padding: 15px 46px; } .page-footer { bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
