/* fatelink.art 二级页面共享样式（与首页视觉一致） */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #13151f;
    --bg-card: #1a1d2b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #818cf8;
    --accent-dark: #6366f1;
    --accent-soft: rgba(129, 140, 248, 0.1);
    --border: #2e344b;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.bg-gradient {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.bg-gradient.second {
    top: auto;
    bottom: -25%;
    left: auto;
    right: -15%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 65%);
}
.content { position: relative; z-index: 1; }
.container { max-width: 780px; margin: 0 auto; padding: 40px 24px 40px; }

/* 顶部导航 */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(10, 11, 16, 0.78);
    border-bottom: 1px solid var(--border);
}
.site-nav-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}
.site-nav-brand {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    margin-right: auto;
    letter-spacing: -0.01em;
}
.site-nav a.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 0;
}
.site-nav a.nav-link:hover { color: var(--accent); }
.site-nav a.nav-link.active { color: var(--accent); font-weight: 600; }

/* 页头 */
.page-label {
    display: inline-block;
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(129, 140, 248, 0.2);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 18px;
}
.page-header { margin-bottom: 44px; }
.page-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle { font-size: 16px; color: var(--text-secondary); }
.page-meta { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

section { margin-bottom: 48px; }
.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
    flex: none;
}
.prose p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 14px;
}
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 6px;
}
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 26px 0 10px;
}
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    color: #c7d2fe;
}
pre {
    background: #080a12;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    overflow-x: auto;
    margin-bottom: 18px;
}
pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.75; color: #cbd5e1; }

/* 卡片 */
.card-grid { display: grid; gap: 16px; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    transition: var(--transition);
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }
.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(129, 140, 248, 0.2);
    flex: none;
}

/* 笔记列表 */
a.entry {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    text-decoration: none;
    transition: var(--transition);
}
a.entry:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.entry-date { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.entry-title { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 6px 0 8px; }
.entry-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 9999px;
    padding: 2px 10px;
}

/* 提示卡片 */
.notice-card {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.07) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.notice-title { font-size: 16px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.notice-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.8; }

/* 信息表 */
.info-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-key { color: var(--text-muted); }
.info-val { color: var(--text-secondary); word-break: break-all; }

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: var(--transition);
}
.back-link:hover { color: var(--accent); }

footer {
    border-top: 1px solid var(--border);
    padding-top: 26px;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
    .container { padding: 28px 18px 32px; }
    .page-title { font-size: 30px; }
    .info-row { grid-template-columns: 1fr; gap: 4px; }
}
