/* assets/css/background.css */


/*@import "./code-window.css";*/


@import "./click-values.css";
@import "./responsive_design_adjustments.css";
@import "./nav.css";
@import "./toc.css";
@import "./code_style.css";
@import "./giscus_comment.css";




body {
    /* 使用背景图，居中不平铺并覆盖整个窗口 */
    background: url('../images/background7.jpg') no-repeat center center fixed;
    background-size: cover;
    /* 如果图片加载慢，先给个渐变色做占位 */
    background-color: #f0f0f0;
}
/* 全局限制所有 img 不超过父容器 */
.post-content img,
.markdown-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1em auto;
}

/*笔记表格*/
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 15px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 8px;
    text-align: left;
}


/*.dashboard-bg {*/
/* 可选的背景图片方案，可直接替换 url  */
/*background: url('/assets/bg-night-achen.jpg') center/cover no-repeat;
            position: fixed;
            inset: 0;
            z-index: -1;
            opacity: 0.85;
        }*/

.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.personal-logo-container {
    position: static; /* 不要绝对定位，跟随文档流 */
    width: 90px; /* 你可以自调宽度 */
    height: 90px;
    margin: 1.1em 0 0.3em 0; /* 与副标题和下方间距 */
    display: flex;
    align-items: flex-start; /* 靠左对齐 */
    justify-content: flex-start;
    /* 可选装饰 */
    /* background: rgba(30, 30, 30, 0.15);
    border-radius: 18px;
    box-shadow: 0 4px 14px #0003;
    */
}

.personal-logo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
}



/* 主标题+副标题+卡片区 */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2.7em;
    margin-bottom: 2.1em;
    gap: 1.7em;
}

.main-title-block {
    margin-left: 1.5em;
}

.main-title {
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin: 0;
    line-height: 1.13;
    font-family: 'Kaiti', 'STKaiti', 'FZKai-Z03', 'SimHei', sans-serif;
    background: linear-gradient(95deg, #ffe9b1 24%, #fff7d1 70%, #e0bc6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 24px #fff9, 0 2px 6px #a58c3e36, 0 6px 30px #eac16944;
    transition: text-shadow .2s;
}

.main-title-block:hover .main-title {
    text-shadow: 0 8px 36px #ffe18faa, 0 3px 11px #b19a3a40;
}

.main-title-desc {
    font-size: 1.29rem;
    color: #dec282;
    font-style: italic;
    opacity: 0.82;
    margin-top: 0.89em;
    letter-spacing: 0.10em;
    text-shadow: 0 2px 14px #fff5, 0 1px 6px #b3984d26;
    font-family: 'Kaiti','STKaiti','FZKai-Z03','SimHei',sans-serif;
}

.right-top-cards {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    align-items: flex-end;
    min-width: 310px;
}

.card {
    border-radius: 1.3em;
    background: rgba(50, 50, 50, 0.34);
    box-shadow: 0 4px 18px #4442, 0 2px 7px #fff1;
    padding: 1.35em 1.8em;
    margin-bottom: 0.6em;
    max-width: 410px;
}

.quote-card blockquote {
    margin: 0 0 .25em 0;
    font-size: 1.18em;
    color: #ffeab5;
    font-style: italic;
    text-shadow: 0 1.5px 7px #e7b00070;
}

.quote-card cite {
    color: #f0e0ab;
    font-size: 1.03em;
    letter-spacing: 0.05em;
}

.clock-card {
    text-align: center;
    font-size: 2.23rem;
    color: #ffe07a;
    font-family: 'Consolas','Fira Mono','monospace';
    font-weight: bold;
    letter-spacing: 0.13em;
    margin-bottom: 0.6em;
}

    .clock-card #date {
        font-size: 1.09rem;
        color: #fff9;
        margin-top: 0.2em;
        font-family: inherit;
        letter-spacing: 0.12em;
    }
/* 主页内容 */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.8em 2.5em 2.5em 2.5em;
    font-size: 1.20rem; /* 字号更大 */
    line-height: 1.82;
    color: #fcf7e4; /* 更亮的正文色 */
    text-shadow: 0 2px 10px #19191944, 0 1px 0 #fff2;
    /*font-family: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;*/
    /* font-family: 'ZCOOL KuaiLe', cursive, 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;*/
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    border-radius: 1.3em;
    /*background: rgba(44,44,44,0.14);*/
    background: rgba(0, 0, 0, 0.50);
    box-shadow: 0 6px 40px #2223, 0 2px 8px #fff3;
}



/* ───────────── 简介&链接 ───────────── */
.dashboard-middle {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.intro-card { /* 继承.card，无额外 */
}

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-title {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
    gap: .75rem;
}

.link-card {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: .75rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: background .3s, transform .2s;
}

    .link-card:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }



/* ───────────── 内容区卡片（note, default等复用）───────────── */
.subpage-container {
    max-width: 1000px;
    margin: 2rem auto 3rem auto;
    /*background: rgba(255,255,255,0.12);*/
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(22px) saturate(1.7);
    border-radius: 26px;
    box-shadow: 0 10px 50px 0 rgba(60,60,100,0.19), 0 2px 16px #e1eaff;
    padding: 2.6rem 2.2rem 2.2rem 2.2rem;
    border: 1.8px solid rgba(255,255,255,0.17);
    color: #fffbe7;
    text-shadow: 0 2px 10px #2228, 0 1px 0 #fff3;
    font-size: 1.14rem;
    line-height: 1.92;
}

    .subpage-container img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1.2em auto;
    }

    .subpage-container video {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1.2em auto;
    }


    .subpage-container a {
        color: #ffd970;
        text-decoration: underline;
    }

    .subpage-container strong,
    .subpage-container b {
        color: #fffbe7;
        background: #f6e28a33;
        padding: 0 .2em;
        border-radius: 3px;
    }

    .subpage-container h1, .subpage-container h2, .subpage-container h3, .subpage-container h4 {
        color: #ffeebd;
        text-shadow: 0 2px 8px #2223, 0 1px 0 #fff5;
    }

    

    .subpage-container ul, .subpage-container ol {
        color: #fffbe7;
    }


/*DAYMATTER*/

#daymatter-card {
    width: 250px;
    max-width: 94vw;
    height: auto; /* 高度自适应 */
    margin: 0.8em 0 0 0; /* 跟logo间距 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(40,40,40,0.42);
    border-radius: 20px;
    box-shadow: 0 4px 18px #0005;
    font-family: 'JetBrains Mono', '微软雅黑', monospace;
    z-index: 15; /* 一般不用，除非你有叠层需求 */
}

.daymatter-title {
    font-size: 1.1rem;
    color: #ece2bb;
    margin-bottom: 0.3em;
}

.daymatter-num {
    font-size: 2.6rem;
    font-weight: bold;
    color: #7de5cb;
    line-height: 1;
}

.daymatter-unit {
    font-size: 1rem;
    color: #ece2bb;
    margin-top: 0.2em;
    letter-spacing: 2px;
}



/* ------ 通用标题区（Section Header）------ */
.section-header {
    margin: 1.5rem auto;
    padding: 0.8rem 1.2rem;
    max-width: 600px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    text-align: center;
}

    .section-header h1 {
        margin: 0;
        font-size: 2.5rem;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

/* ------ 卡片网格布局 ------ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* 关键：让每一行等高 */
    justify-items: stretch; /* 让每个格子里的 .post-card 都撑满单元格 */
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* ------ 卡片样式 & 动画 ------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    /* 关键：卡片内部做垂直拉伸布局 */
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255,255,255,0.32);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* 确保它拉伸到单元格的最大宽度 */
}

    .post-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .post-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .post-card:nth-child(3) {
        animation-delay: 0.3s;
    }
    /* ...可以继续 nth-child(4) ... */

    .post-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.post-title {
    margin: 0 0 .6rem;
    font-size: 1.2rem;
}

    .post-title a {
        color: #333;
        text-decoration: none;
    }

        .post-title a:hover {
            color: #007ACC;
            text-decoration: underline;
        }

.post-excerpt {
    margin: 0 0 1rem;
    color: #eee; /* 或 #f6f6f6、#fafafa、#f0f0f0 等 */
    font-size: 0.95rem;
    line-height: 1.4;
}

.post-date {
    display: block;
    text-align: right;
    color: #ffecb3; /* 柔和亮黄，与主色调呼应 */
    font-size: 0.85rem;
}
