/* ================= 1. 全局基础与 #8AF637 / #D03D2F 发光纸飞机光标 ================= */
* { box-sizing: border-box; }

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
}

:root {
    /* 默认光标：#8AF637 */
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='glow' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='1.5' flood-color='%238AF637'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M2,2 L24,13 L13,16 L9,26 L7,17 Z' fill='rgba(138,246,55,0.2)' stroke='%238AF637' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' filter='url(%23glow)'/%3E%3Cpath d='M2,2 L13,16' stroke='%238AF637' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%23ffffff'/%3E%3C/svg%3E") 2 2, auto;
    
    /* 选中/悬浮光标：#D03D2F */
    --cursor-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='glow' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='1.8' flood-color='%23D03D2F'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M2,2 L24,13 L13,16 L9,26 L7,17 Z' fill='rgba(208,61,47,0.25)' stroke='%23D03D2F' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' filter='url(%23glow)'/%3E%3Cpath d='M2,2 L13,16' stroke='%23D03D2F' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='2' cy='2' r='2' fill='%23ffffff'/%3E%3C/svg%3E") 2 2, pointer;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=80') no-repeat center center fixed !important;
    background-size: cover !important;
    cursor: var(--cursor-default) !important;
}

/* 悬浮在链接、复制按钮、提交按钮等交互元素时精准切换为 #D03D2F 红色纸飞机 */
a, a *, 
button, button *, 
.copy-code-btn, 
.side-nav-item, 
#go-to-top, #go-to-top *,
.github-corner, .github-corner *,
.hero-scroll-down, 
.feedback_area_title a, 
.feedback_area_title span, 
input[type="button"], 
input[type="submit"] { 
    cursor: var(--cursor-hover) !important; 
}

/* ================= 2. 隐藏多余默认组件与重复标题 ================= */
#header, 
#blogTitle, 
#sidebar_search, 
.mySearch, 
#widget_my_google, 
#widget_my_zzk,
#sidebar_scorerank, 
#sidebar_categories, 
#sidebar_archive, 
#sidebar_postarchive, 
#sidebar_topviewedposts, 
#sidebar_topcommentedposts, 
#sidebar_recentcomments,
#sidebar_shortcut,
#sidebar_recentposts,
#sidebar_toptags,
.post_top_title,
.entrylistTitle,
#topics .postTitle,
#cb_post_title_url { 
    display: none !important; 
}

/* ================= 3. 外层结构彻底清透 ================= */
#home, #main, #mainContent, .forFlow, #sideBar, #sideBarMain,
#comment_form_container, .commentform, #blog-news {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

#home {
    max-width: 1240px !important;
    width: 94% !important;
    margin: 30px auto !important;
}

/* 顶部导航条 */
#navigator {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 14px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
#navList li a { color: #111827 !important; -webkit-text-fill-color: #111827 !important; font-weight: 600; }

/* ================= 4. 首屏 Hero 英雄区 ================= */
#hero-section {
    position: relative;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(rgba(15, 15, 25, 0.35), rgba(15, 15, 25, 0.55)), 
                url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
}
.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin: 0 0 16px 0;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 2px;
    max-width: 85%;
    margin-bottom: 45px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.hero-scroll-down {
    position: absolute;
    bottom: 35px;
    font-size: 36px;
    color: #ffffff !important;
    text-decoration: none !important;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ================= 5. 安全高质感卡片 ================= */
.day, 
.entrylistItem,
#topics, 
#sidebar_news,
#blog-calendar,
#calendar,
#comment_form {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.day, .entrylistItem {
    padding: 24px !important;
    margin-bottom: 24px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.day:hover, .entrylistItem:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(163, 147, 235, 0.2) !important;
}

#topics { padding: 32px !important; margin-bottom: 25px !important; }

/* ================= 6. 正文文字 100% 纯黑深色 ================= */
#main, #mainContent, #topics, .post, .postBody, 
#cnblogs_post_body, .cnblogs-markdown, .entrylistItem, .day {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

#cnblogs_post_body p, #cnblogs_post_body span:not(.token):not([class*="hljs"]), #cnblogs_post_body li, 
.cnblogs-markdown p, .cnblogs-markdown span:not(.token):not([class*="hljs"]), .cnblogs-markdown li,
.postBody p, .postBody li {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    line-height: 1.85 !important;
    font-size: 15.5px !important;
}

/* 大标题加粗纯黑 */
#topics h1, #topics h2, #topics h3,
#cnblogs_post_body h1, #cnblogs_post_body h2,
.cnblogs-markdown h1, .cnblogs-markdown h2,
.postTitle, .entrylistPosttitle a {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

/* 表格强化 */
.cnblogs-post-body table, .cnblogs-markdown table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.cnblogs-post-body table th, .cnblogs-markdown table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 800 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 11px 16px !important;
}
.cnblogs-post-body table td, .cnblogs-markdown table td {
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    padding: 10px 16px !important;
}

/* ================= 7. Mac 风格代码块 + One Dark 语法高亮 ================= */
.cnblogs-markdown pre, 
.cnblogs-post-body pre, 
pre {
    position: relative !important;
    padding: 46px 18px 16px 18px !important;
    background: #282c34 !important;
    color: #abb2bf !important;
    -webkit-text-fill-color: initial !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    overflow-x: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin: 22px 0 !important;
}

.cnblogs-markdown pre::before, 
.cnblogs-post-body pre::before, 
pre::before {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    left: 16px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #fc625d !important;
    box-shadow: 20px 0 0 #fdbc40, 40px 0 0 #35cd4b !important;
    z-index: 3 !important;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px;
    font-size: 11.5px;
    transition: all 0.25s;
    outline: none;
    z-index: 5;
}
.copy-code-btn:hover {
    background: #a393eb !important;
    color: #ffffff !important;
    border-color: #a393eb !important;
}

pre code, .cnblogs-markdown pre code, pre span {
    font-family: Consolas, "Fira Code", Monaco, "Courier New", monospace !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    -webkit-text-fill-color: initial !important;
}
pre .token.keyword, pre .hljs-keyword { color: #c678dd !important; -webkit-text-fill-color: #c678dd !important; font-weight: bold; }
pre .token.string, pre .hljs-string { color: #98c379 !important; -webkit-text-fill-color: #98c379 !important; }
pre .token.function, pre .hljs-function, pre .hljs-title { color: #61afef !important; -webkit-text-fill-color: #61afef !important; }
pre .token.comment, pre .hljs-comment { color: #7f848e !important; -webkit-text-fill-color: #7f848e !important; font-style: italic; }
pre .token.number, pre .hljs-number { color: #d19a66 !important; -webkit-text-fill-color: #d19a66 !important; }
pre .token.operator, pre .token.punctuation { color: #abb2bf !important; -webkit-text-fill-color: #abb2bf !important; }
pre .token.property, pre .token.variable { color: #e06c75 !important; -webkit-text-fill-color: #e06c75 !important; }

/* ================= 8. 评论区：去分割线 + 占位符浅色修复 ================= */
#blog-comments-placeholder {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.feedback_area_title {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 16px;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}
.feedback_area_title a {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    font-weight: 600;
    text-decoration: none !important;
    padding: 3px 8px;
    border-radius: 4px;
}
.feedback_area_title a:hover {
    background: #a393eb;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.feedbackItem {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feedbackItem:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(163, 147, 235, 0.2) !important;
}
.feedbackItem, .feedbackItem *,
.feedbackCon, .feedbackCon * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
.feedbackListSubtitle {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    margin-bottom: 8px !important;
}

/* 发表评论大卡片 */
#comment_form {
    padding: 24px !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

/* 去除上下横线 */
#comment_form .commentbox_title,
#comment_form .commentbox_footer,
#comment_form hr,
#comment_form [class*="header"],
#comment_form [class*="footer"],
#comment_form .border-top,
#comment_form .border-bottom {
    border-top: none !important;
    border-bottom: none !important;
    border: none !important;
}

#tbCommentBody {
    width: 100% !important; 
    border-radius: 12px;
    border: 1.5px solid rgba(163, 147, 235, 0.4) !important;
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    padding: 14px; 
    outline: none;
}
#tbCommentBody:focus { border-color: #a393eb !important; }

/* “支持 Markdown”占位文字强制浅色 */
#tbCommentBody::placeholder,
textarea#tbCommentBody::placeholder,
#tbCommentBody::-webkit-input-placeholder,
#tbCommentBody::-moz-placeholder,
#tbCommentBody:-ms-input-placeholder,
#comment_form [class*="placeholder"],
#comment_form [class*="placeholder"] *,
#comment_form .comment-placeholder,
#comment_form .CodeMirror-placeholder,
.placeholder-text {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 0.75 !important;
    font-size: 14px !important;
}

#btn_comment_submit {
    padding: 8px 26px; background: #a393eb; color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none; border-radius: 20px; font-weight: 600;
}
#btn_comment_submit:hover { background: #8b78e6; }

/* ================= 9. 侧边栏公告与日历 ================= */
#sidebar_news {
    padding: 18px 16px !important;
    margin-bottom: 22px !important;
}
#sidebar_news h3.catListTitle {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(163, 147, 235, 0.2) !important;
}

#blog-calendar, #calendar {
    padding: 16px 12px !important;
    margin-bottom: 22px !important;
}
#blog-calendar table, #calendar table { 
    width: 100% !important; 
    border-collapse: separate !important; 
    border-spacing: 2px !important; 
    background: transparent !important;
}
#blog-calendar td, #blog-calendar th, #calendar td, #calendar th {
    background: transparent !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    text-align: center;
    padding: 4px 2px;
}
#blog-calendar td.CalTodayDay, #calendar td.CalTodayDay {
    background: #a393eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(163, 147, 235, 0.4);
}

.avatar-box { text-align: center; padding: 0 !important; }
.img_avatar {
    width: 96px !important;
    height: 96px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 15px rgba(163, 147, 235, 0.35);
    transition: all 0.35s ease;
    display: inline-block;
}
.img_avatar:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: #a393eb !important;
}
.avatar-name { 
    margin-top: 10px; 
    font-weight: 700; 
    font-size: 16px; 
    color: #111827 !important; 
    -webkit-text-fill-color: #111827 !important;
}
.avatar-motto { 
    font-size: 12px; 
    color: #4b5563 !important; 
    -webkit-text-fill-color: #4b5563 !important;
    margin-top: 5px; 
    line-height: 1.5; 
}

.side-nav { 
    margin-top: 14px; 
    display: flex; 
    flex-direction: column;
    gap: 8px; 
    width: 100%;
}
.side-nav-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 0 !important;
    background: #a393eb;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 600;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(163, 147, 235, 0.35);
}
.side-nav-item:hover {
    background: #f5c7f7;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(245, 199, 247, 0.6);
}

#profile_block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(163, 147, 235, 0.25);
    font-size: 12px;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    line-height: 1.8;
}

/* ================= 10. GitHub 角标悬浮摆手动画 ================= */
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out infinite !important;
}
@keyframes octocat-wave {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-25deg); }
    40%, 80% { transform: rotate(10deg); }
}

#top-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(to right, #a393eb, #f5c7f7, #64CEAA); z-index: 9999999; width: 0; }
#go-to-top {
    position: fixed; right: 25px; bottom: 35px; width: 44px; height: 44px;
    background: #a393eb; color: #ffffff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; box-shadow: 0 4px 15px rgba(163, 147, 235, 0.45);
    transition: all 0.3s ease; opacity: 0; visibility: hidden; transform: translateY(20px);
}
#go-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#go-to-top:hover { background: #8b78e6; transform: translateY(-3px) scale(1.08); }
#go-to-top svg { width: 20px; height: 20px; fill: currentColor; }

#jsi-flying-fish-container { width: 100%; height: 160px; position: relative; margin-top: -160px; pointer-events: none; z-index: 1; }