/* --- 1. 基础布局 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #E3E3E3; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; font-family: sans-serif; }
main { display: grid; grid-template-columns: 1fr; gap: 2rem; width: 100%; max-width: 1400px; }

/* 共有容器 */
aside, section {  border: 3px solid #000; border-radius: 20px; background: #F9F9F9; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; max-height: 85vh; }
aside::-webkit-scrollbar, section::-webkit-scrollbar { display: none; }
h2 { padding: 1.25rem; text-align: center; font-size: 1.25rem; position: sticky; top: 0; z-index: 10; }

@media (min-width: 1024px) {
  main { grid-template-columns: 280px 1fr 1fr; }
  aside, section { height: 80vh; }
}

/* --- 2. Profile  --- */
aside { background: #FFC0CB; padding: 2rem; gap: 1.5rem; align-items: center; text-align: center; overflow: hidden; max-height: none; }
aside figure { width: 9rem; height: 9rem; border-radius: 50%; border: 2px solid #000; overflow: hidden; flex-shrink: 0; }
aside figure img { width: 100%; height: 100%; object-fit: cover; }
aside h1 { font-size: 1.875rem; font-weight: 900; }
aside p { font-size: 0.875rem; font-weight: bold; opacity: 0.7; }
aside nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; }
aside nav a { background: #FFF; border: 2px solid #000; padding: 0.75rem; border-radius: 0.75rem; display: flex; justify-content: center; transition: 0.2s; }
aside nav a:hover { background: #000; }
aside nav a:active { transform: scale(0.95); }
aside nav a img { width: 1.25rem; height: 1.25rem; filter: invert(0); transition: 0.2s; }
aside nav a:hover img { filter: invert(1); }

/* --- 3. Blog  --- */
section:first-of-type h2 { background: #facc15; }
section:first-of-type > a { display: block; background: #FFFDED; border: 2px solid #000; padding: 0.75rem 1rem; border-radius: 0.75rem; margin: 0 1.5rem 1rem; text-decoration: none; color: inherit; transition: 0.2s; }
section:first-of-type > a:first-of-type { margin-top: 1.5rem; }
section:first-of-type a:hover { background: #FFF; }
section:first-of-type a:active { transform: scale(0.98); }
section a time { font-size: 10px; font-weight: 900; color: gray; display: block; }
section:first-of-type a h3 { margin: 0.25rem 0 0.5rem; font-size: 1rem; font-weight: bold; line-height: 1.25;}
section:first-of-type a p { font-size: 0.75rem; opacity: 0.6; line-height: 1.25rem; height: 2.5rem; overflow: hidden; position: relative; }
section:first-of-type a p::after { content: "..."; position: absolute; bottom: 0; right: 0; padding-left: 20px; background: linear-gradient(to right, transparent, #FFFDED 50%); }

/* --- 4. Memories  --- */
section:last-of-type h2 { background: #4ade80; }
section:last-of-type h3 { display: flex; align-items: center; gap: 1rem; margin: 1rem 1.5rem; font-size: 1.125rem; font-family: monospace; font-style: italic; }
section:last-of-type h3::after { content: ""; flex-grow: 1; border-top: 2px dashed rgba(0,0,0,0.3); }
section:last-of-type > a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem .75rem 4rem; text-decoration: none; font-weight: bold; color: inherit; position: relative; transition: 0.2s; }
section:last-of-type > a::before { content: ""; position: absolute; left: 2.3rem; top: 0; bottom: 0; width: 2px; background: #000; }
section:last-of-type > a::after { content: ""; position: absolute; left: 2.1rem; width: .5rem; height: .5rem; background: #000; border-radius: 50%; box-shadow: 0 0 0 4px #f9f9f9; z-index: 1; }
section:last-of-type a:hover { color: #16a34a; }