:root {
    --pink: #ff6fa5;
    --blue: #6f9bff;
    --card-bg: #ffffff;
    --text: #333333;
    --muted: #666666;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #ffd6e8, #e6f0ff);
    background-attachment: fixed;
    color: var(--text);
}

a {
    color: var(--blue);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.site-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
}

.brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--pink);
    text-decoration: none;
}

.nav nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    padding: 4px 6px;
}

.nav nav a:hover {
    color: var(--pink);
}

.nav nav a.active {
    color: var(--pink);
    font-weight: 600;
    position: relative;
}

.nav nav a.active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
}

main.container {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* 首页顶部纪念区 */
.hero {
    text-align: center;
    padding: 36px 0 24px;
}

.hero h1 {
    margin: 0;
    font-size: 30px;
    background: linear-gradient(135deg, #ff6fa5, #6f9bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--muted);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stat {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 14px 10px;
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-size: 22px;
    color: var(--pink);
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

/* 区块 */
.section {
    margin-top: 28px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.section > h2 {
    margin-bottom: 10px;
}

.more {
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}

/* 相册卡片 */
.album-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.album-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.album-card:hover {
    transform: translateY(-4px);
}

.album-cover {
    position: relative;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
}

.album-info {
    padding: 12px 14px 14px;
}

.album-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.album-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* 相册详情 */
.page-head {
    padding: 18px 0 6px;
}

.page-head h1 {
    margin: 0 0 6px;
}

.page-head p {
    margin: 4px 0;
    color: var(--muted);
}

.page-head a {
    text-decoration: none;
}

.page-head a:hover {
    color: var(--pink);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.album-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s;
}

.album-grid img:hover {
    transform: scale(1.02);
}

/* 大图预览 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
}

/* 快捷链接 */
.quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.quicklink {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
}

.quicklink:hover {
    transform: translateY(-3px);
}

.quicklink span {
    color: var(--muted);
    font-size: 13px;
}

/* 入口卡片 */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.entry-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.entry-card:hover {
    transform: translateY(-4px);
}

.entry-card h3 {
    margin: 0 0 6px;
}

.entry-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.entry-card span {
    color: var(--blue);
    font-size: 13px;
}

/* Markdown 长文 */
.markdown-content {
    line-height: 1.75;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin: 1.2em 0 0.5em;
}

.markdown-content h1 {
    font-size: 26px;
}

.markdown-content h2 {
    font-size: 22px;
    border-left: 4px solid var(--pink);
    padding-left: 10px;
}

.markdown-content h3 {
    font-size: 18px;
    color: var(--pink);
}

.markdown-content p {
    margin: 0.6em 0;
    color: #444;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
}

.markdown-content th {
    background: #fdf2f7;
    color: var(--pink);
    font-weight: 600;
}

.markdown-content tr:nth-child(even) td {
    background: #fafafa;
}

.markdown-content blockquote {
    margin: 0.8em 0;
    padding: 8px 14px;
    background: #fdf2f7;
    border-left: 4px solid var(--pink);
    color: #666;
    border-radius: 0 8px 8px 0;
}

.markdown-content code {
    background: #f2f2f2;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 13px;
}

.markdown-content pre {
    background: #2d2d2d;
    color: #eee;
    padding: 12px 14px;
    border-radius: 10px;
    overflow-x: auto;
}

.markdown-content img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 10px;
    display: block;
    margin: 12px 0;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 22px;
}

.markdown-content li {
    margin: 0.35em 0;
}

/* 可访问性 */
a:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 链接列表 */
.link-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.link-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    color: var(--blue);
    text-decoration: none;
}

.link-list a:hover {
    color: var(--pink);
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 28px 10px 34px;
    color: #777;
    font-size: 14px;
}

.site-footer a {
    color: #777;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 22px;
    }

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

    .album-cards {
        grid-template-columns: 1fr 1fr;
    }
}
