/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================
   1. 页面背景（自定义图片）
   使用说明：将 url() 里的链接换成你自己的图片地址
   ====================================================== */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #2d1f12;
    min-height: 100vh;

    /* ---------- 自定义背景图 ---------- */
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1600'); /* 替换成你的图片链接 */
    background-size: cover;           /* 铺满全屏 */
    background-position: center;      /* 居中显示 */
    background-attachment: fixed;     /* 固定背景（滚动时图片不动，更有沉浸感） */

    /* 为了让文字更清晰，叠加一层半透明遮罩 */
    position: relative;
}

/* 遮罩层：让背景变暗/柔化，突出前景文字 */
body::before {
    content: '';
    position: fixed;                 /* 固定定位，覆盖整个视口 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 245, 240, 0.35);  /* 降低透明度，让背景图透出来 */ /* 暖白半透明，可调整透明度 */
    z-index: 0;                      /* 放在最底层，但不遮挡内容 */
    pointer-events: none;            /* 让鼠标穿透，不影响点击 */
}

/* 所有内容放在层级之上 */
body > * {
    position: relative;
    z-index: 1;
}

/* ======================================================
   2. 顶部导航栏（加大版）
   ====================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* 加大内边距：上下 24px，左右 64px（原来 16px 48px） */
    padding: 24px 64px;

    background: rgba(255, 252, 248, 0.78);
    backdrop-filter: blur(16px);      /* 毛玻璃效果加强 */
    border-bottom: 1px solid rgba(200, 180, 160, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;

    /* 增加一点底部阴影，让它更立体 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

/* 品牌 Logo — 字体加大，更有冲击力 */
.brand {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2.4rem;               /* 从 1.8rem 加大到 2.4rem */
    color: #3d2a1a;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 12px rgba(180, 130, 70, 0.12);
    text-decoration: none;
    cursor: default;
    transform-origin: center bottom;
    transition: transform 0.3s ease;
}

.brand:hover {
    animation: birdFly 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3;
}

@keyframes birdFly {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    25%  { transform: translateY(-12px) rotate(4deg) scale(1.04); }
    50%  { transform: translateY(-2px) rotate(-2deg) scale(0.97); }
    75%  { transform: translateY(-8px) rotate(3deg) scale(1.02); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* 导航菜单 */
.nav-links {
    display: flex;
    gap: 44px;                       /* 从 32px 加大到 44px，更舒展 */
    list-style: none;
}

.nav-links a {
    color: #4a3a2a;
    text-decoration: none;
    font-size: 1.2rem;               /* 从 1rem 加大到 1.2rem */
    font-weight: 450;
    padding: 8px 0;                  /* 增加点击区域 */
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #b87a4b;
    border-bottom-color: #b87a4b;
}

.nav-links a.active {
    color: #b87a4b;
    border-bottom-color: #b87a4b;
    font-weight: 600;
}

/* ======================================================
   3. 页面主容器（稍微加大间距）
   ====================================================== */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 48px 100px;        /* 上下左右都加了一点 */
    min-height: calc(100vh - 96px);
}

/* ======================================================
   4. 首页：居中欢迎（文字加一点深度）
   ====================================================== */
.page-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 96px);
}

.page-home h1 {
    font-size: 4.2rem;
    font-weight: 600;
    color: #2d1f12;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); /* 在图片上更清晰 */
}

.page-home .sub {
    font-size: 1.4rem;
    color: #5a4a3a;
    max-width: 520px;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

/* ======================================================
   5. 关于我 / 卡片 / 列表（保留原来样式，微调圆角）
   ====================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-top: 32px;
}

.about-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(232, 221, 208, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #8a7a6a;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-text p {
    color: #3d2d1d;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* 专题卡片 */
.section-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-desc {
    color: #5a4a3a;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.card .icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .arrow {
    display: inline-block;
    margin-top: 16px;
    color: #b87a4b;
    font-weight: 500;
}

/* 列表页（随记/作品集） */
.post-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.post-item:hover {
    border-color: #d5c4b0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
}

.post-item h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.post-item .meta {
    font-size: 0.85rem;
    color: #8a7a6a;
}

.post-item p {
    color: #4a3a2a;
    margin-top: 8px;
    line-height: 1.6;
}

/* 返回链接 */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #5a4a3a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #b87a4b;
}

/* ======================================================
   6. 响应式
   ====================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 18px 24px;
    }
    .brand {
        font-size: 2rem;
    }
    .nav-links {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .page-home h1 {
        font-size: 2.8rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-avatar {
        max-width: 160px;
        margin: 0 auto;
    }
    .page {
        padding: 40px 20px 60px;
    }
}
/* ========== 关于我 · 完全居中 ========== */
.page-about {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);  /* 减去导航栏高度 */
    text-align: center;
}

.page-about .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 640px;
}

.page-about .about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8ddd0, #d5c4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #8a7a6a;
    margin: 0 auto;
}

.page-about .about-text {
    max-width: 600px;
}

.page-about .about-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.page-about .about-text p {
    color: #5a4a3a;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* ========== 专题 · 完全居中 ========== */
.page-topics {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    text-align: center;
}

.page-topics .topics-content {
    width: 100%;
    max-width: 800px;
}

.page-topics .section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-topics .section-desc {
    color: #8a7a6a;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.page-topics .card-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.page-topics .card {
    max-width: 320px;
    flex: 1 1 260px;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(200, 180, 160, 0.15);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.page-topics .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.page-topics .card .icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    display: block;
}

.page-topics .card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.page-topics .card p {
    color: #6a5a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-topics .card .arrow {
    display: inline-block;
    margin-top: 16px;
    color: #b87a4b;
    font-weight: 500;
}
/* ========== 页脚 ========== */
.site-footer {
    background: #f0ebe4;
    border-top: 1px solid rgba(200, 180, 160, 0.25);
    padding: 40px 48px 32px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.footer-copy {
    font-size: 0.95rem;
    color: #4d3a2a;
    font-weight: 450;
}

.footer-copy .brand-foot {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    color: #3d2a1a;
}

.footer-meta {
    font-size: 0.8rem;
    color: #8a7a6a;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}

.footer-meta a {
    color: #8a7a6a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-meta a:hover {
    color: #b87a4b;
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #b0a094;
    max-width: 680px;
    line-height: 1.6;
    margin-top: 4px;
    border-top: 1px solid rgba(200, 180, 160, 0.2);
    padding-top: 14px;
}

/* 保证页脚在内容少时也能贴在底部 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page {
    flex: 1;
}

.site-footer {
    margin-top: auto;
}