@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap');

:root {
    --bg: #0a0f1b;
    --bg-2: #121a2b;
    --panel: rgba(14, 20, 33, 0.72);
    --panel-soft: rgba(17, 24, 39, 0.6);
    --panel-strong: rgba(9, 14, 24, 0.88);
    --line: rgba(126, 163, 255, 0.18);
    --line-strong: rgba(126, 163, 255, 0.3);
    --text: #eef4ff;
    --muted: rgba(219, 231, 255, 0.7);
    --accent: #8fe9ff;
    --accent-2: #98a0ff;
    --accent-3: #a8ffd4;
    --accent-pink: #ffb8d8;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at 10% 12%, rgba(143, 233, 255, 0.18), transparent 18%),
        radial-gradient(circle at 88% 14%, rgba(152, 160, 255, 0.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(168, 255, 212, 0.12), transparent 28%),
        radial-gradient(circle at 28% 75%, rgba(255, 184, 216, 0.08), transparent 20%),
        linear-gradient(180deg, #070b14 0%, var(--bg) 42%, var(--bg-2) 100%);
    overflow-x: hidden;
}

.page-shell,
.noise-grid,
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-shell {
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at center, black 24%, transparent 90%);
    opacity: 0.18;
}

.noise-grid {
    background-image: radial-gradient(rgba(255,255,255,0.05) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    opacity: 0.08;
}

.ambient {
    filter: blur(60px);
    opacity: 0.55;
}

.ambient-a {
    background: radial-gradient(circle, rgba(143,233,255,0.18), transparent 58%);
    transform: translate(-12%, -20%);
}

.ambient-b {
    background: radial-gradient(circle, rgba(152,160,255,0.2), transparent 62%);
    transform: translate(58%, -10%);
}

@keyframes floaty {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes blink {
    0%, 44%, 100% { transform: scaleY(1); opacity: 1; }
    46%, 48% { transform: scaleY(0.2); opacity: 0.85; }
}

@keyframes pulseRing {
    0% { transform: scale(0.96); opacity: 0.35; }
    50% { transform: scale(1); opacity: 0.65; }
    100% { transform: scale(1.04); opacity: 0.28; }
}

.layout {
    width: min(1160px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.detail-layout {
    padding-top: 40px;
}

.hero-card,
.note-item,
.note-detail,
.search-box,
.tag-filter,
.year-filter,
.month-filter {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 24px;
    min-height: 450px;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(12,18,31,0.88), rgba(15,22,37,0.62));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card::before,
.note-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(143,233,255,0.08), transparent 30%, transparent 70%, rgba(152,160,255,0.08));
}

.hero-card::after,
.note-detail::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(143,233,255,0.1);
    border-radius: 24px;
    pointer-events: none;
}

.hero-copy,
.hero-panel,
.panel-content,
.note-detail > * {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-topline,
.detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.eyebrow,
.meta-label,
.panel-title,
.archive-month,
.section-note {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.76rem;
}

.status-pill,
.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(168,255,212,0.22);
    background: rgba(168,255,212,0.08);
    color: #e6fff5;
    font-size: 0.84rem;
}

.status-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 12px var(--accent-3);
}

.hero-copy h1,
.note-detail h1,
.section-heading h2,
.note-main h3,
.note-content h2,
.note-content h3,
.note-content h4,
.archive-year {
    font-family: 'ZCOOL XiaoWei', 'PingFang SC', serif;
    font-weight: 400;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    max-width: 10ch;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
}

.hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, #f2f6ff 0%, var(--accent) 42%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    max-width: 610px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.95;
}

.paw-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: -6px;
    color: rgba(255, 184, 216, 0.92);
    opacity: 0.9;
}

.paw-row span:nth-child(1) { transform: rotate(-12deg); }
.paw-row span:nth-child(2) { transform: translateY(6px) rotate(4deg); }
.paw-row span:nth-child(3) { transform: rotate(12deg); }

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-meta > div,
.stat-card,
.note-item,
.note-detail,
.search-box,
.tag-filter,
.year-filter,
.month-filter {
    border: 1px solid rgba(126,163,255,0.14);
    background: rgba(11, 18, 30, 0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.hero-meta > div {
    border-radius: 18px;
    padding: 16px 18px;
}

.meta-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(143,233,255,0.76);
    font-size: 0.7rem;
}

.hero-meta strong {
    font-size: 1rem;
    line-height: 1.5;
}

.hero-panel {
    position: relative;
    min-height: 100%;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 20, 33, 0.94), rgba(12, 17, 28, 0.8));
    overflow: hidden;
}

.cat-console {
    position: relative;
    height: 208px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    animation: floaty 5.8s ease-in-out infinite;
}

.cat-head {
    position: relative;
    width: 136px;
    height: 122px;
    border-radius: 48% 48% 44% 44%;
    border: 1px solid rgba(143,233,255,0.34);
    background: radial-gradient(circle at 50% 38%, rgba(143,233,255,0.18), rgba(152,160,255,0.08) 44%, rgba(255,184,216,0.06) 58%, rgba(8,12,20,0.92) 90%);
    box-shadow: 0 0 36px rgba(143,233,255,0.14), inset 0 0 28px rgba(152,160,255,0.08);
}

.ear,
.face-ring,
.eye,
.nose,
.blush,
.whisker {
    position: absolute;
}

.ear {
    top: -20px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(143,233,255,0.28);
    background: rgba(15, 22, 35, 0.95);
    transform: rotate(45deg);
}

.ear-left { left: 18px; border-radius: 10px 0 0 0; }
.ear-right { right: 18px; border-radius: 0 10px 0 0; }

.face-ring {
    inset: 10px;
    border-radius: 52px;
    border: 1px solid rgba(152,160,255,0.18);
}

.eye {
    top: 44px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 12px var(--accent-3);
    transform-origin: center;
    animation: blink 6.2s ease-in-out infinite;
}

.eye-left { left: 36px; }
.eye-right { right: 36px; }

.blush {
    top: 68px;
    width: 16px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 184, 216, 0.6);
    filter: blur(1px);
}

.blush-left { left: 22px; }
.blush-right { right: 22px; }

.nose {
    left: 50%;
    bottom: 28px;
    width: 12px;
    height: 10px;
    border-radius: 50% 50% 70% 70%;
    transform: translateX(-50%);
    background: rgba(255, 208, 208, 0.9);
}

.whisker {
    bottom: 26px;
    width: 26px;
    height: 1px;
    background: rgba(238,244,255,0.4);
}

.whisker-left {
    left: 14px;
    transform: rotate(10deg);
}

.whisker-right {
    right: 14px;
    transform: rotate(-10deg);
}

.signal-rings {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(143,233,255,0.12);
}

.ring-a { width: 214px; height: 214px; animation: pulseRing 4.8s ease-in-out infinite; }
.ring-b { width: 286px; height: 286px; border-color: rgba(152,160,255,0.12); animation: pulseRing 6.5s ease-in-out infinite reverse; }

.panel-content {
    height: calc(100% - 228px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-title {
    color: rgba(143,233,255,0.8);
    font-size: 0.76rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.stat-card {
    border-radius: 20px;
    padding: 22px 18px;
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--accent);
}

.stat-card small,
.note-preview,
.note-tag,
.note-date-block span,
.empty-state,
.note-content p,
.note-content li,
.note-detail .date,
.panel-log,
.search-box,
.tag-filter,
.year-filter,
.month-filter,
.archive-month {
    color: var(--muted);
}

.panel-log {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(126,163,255,0.14);
    background: rgba(7, 11, 18, 0.6);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.content-grid {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-note {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.8;
    max-width: 420px;
}

.tool-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    min-width: min(100%, 440px);
    border-radius: 16px;
}

.search-box span {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.search-box input::placeholder {
    color: rgba(219,231,255,0.36);
}

.tag-filters,
.year-filters,
.month-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-row {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.tag-filter,
.year-filter,
.month-filter {
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tag-filter.active,
.tag-filter:hover,
.year-filter.active,
.year-filter:hover,
.month-filter.active,
.month-filter:hover {
    color: #08111a;
    background: linear-gradient(90deg, var(--accent), var(--accent-pink));
    border-color: transparent;
    transform: translateY(-1px);
}

.timeline-list {
    display: grid;
    gap: 18px;
}

.archive-group {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
}

.archive-year {
    font-size: 2.1rem;
    color: var(--accent);
}

.archive-month-group {
    display: grid;
    gap: 14px;
}

.archive-month {
    font-size: 0.76rem;
    padding-left: 2px;
}

.archive-notes {
    display: grid;
    gap: 18px;
}

.note-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 22px;
    align-items: start;
    padding: 24px;
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.note-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(143,233,255,0.06), transparent 40%, transparent 70%, rgba(255,184,216,0.05));
    pointer-events: none;
}

.note-item::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(143,233,255,0.7), rgba(152,160,255,0.08));
}

.note-item:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(143,233,255,0.08);
}

.note-date-block {
    padding-left: 18px;
}

.note-date-block strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent);
}

.note-main {
    min-width: 0;
}

.note-main h3 {
    margin-bottom: 10px;
    font-size: 1.48rem;
}

.note-preview {
    line-height: 1.9;
    font-size: 0.98rem;
}

.note-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.note-tag {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(126,163,255,0.14);
    background: rgba(8, 14, 24, 0.52);
    font-size: 0.78rem;
}

.note-arrow,
.back-link {
    color: var(--accent);
}

.note-arrow {
    font-size: 1.35rem;
    transition: transform 0.22s ease;
}

.note-item:hover .note-arrow {
    transform: translateX(4px);
}

.empty-state {
    padding: 36px 24px;
    border-radius: 24px;
    border: 1px dashed rgba(126,163,255,0.22);
    background: rgba(11, 18, 30, 0.5);
}

.note-detail {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 42px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11,18,30,0.9), rgba(10,15,25,0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cute-detail {
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,184,216,0.05);
}

.detail-topline {
    margin-bottom: 18px;
}

.note-detail h1 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.note-detail .date {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(126,163,255,0.12);
}

.note-content {
    color: rgba(238,244,255,0.92);
    line-height: 1.95;
    font-size: 1.04rem;
}

.note-content h2,
.note-content h3,
.note-content h4 {
    margin: 28px 0 14px;
}

.note-content ul,
.note-content ol {
    padding-left: 20px;
}

.note-content code {
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(143,233,255,0.08);
    font-size: 0.92em;
}

.note-content hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid rgba(126,163,255,0.12);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

@media (max-width: 960px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .note-item {
        grid-template-columns: 1fr;
        padding-left: 56px;
    }

    .note-side {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .layout {
        width: min(100vw - 20px, 1160px);
        padding-top: 18px;
    }

    .hero-card,
    .note-detail {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        min-width: 100%;
    }

    .note-item {
        padding: 20px 18px 20px 46px;
        border-radius: 20px;
    }

    .note-item::after {
        left: 18px;
    }
}
