/* --- 全局设置 --- */
:root {
    --bg-color: whitesmoke;
    --card-bg: #ffffff;
    --primary-color: #3498db;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
    --accent-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

/* --- 图片样式 --- */
img#image01 {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.5s;
}

img#image01:hover {
    transform: rotate(360deg);
}

/* 博客文章内的图片自适应 */
img.blog-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

/* --- 文字排版 --- */
div {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 10px;
    font-weight: bold;
}

h2 {
    margin-top: 40px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* --- 统一的卡片网格布局 --- */
#ul01 ul, .card-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

/* --- 核心卡片样式（通用） --- */
#ul01 li, .blog-card, .content-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* 列表卡片的悬浮效果 */
#ul01 li:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    cursor: pointer;
}

/* --- 文章内容卡片专用 --- */
.content-card {
    text-align: left;
    margin-top: 20px;
    line-height: 1.8;
}

/* --- 按钮样式 --- */
.back-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #2980b9;
}

/* --- 辅助类 --- */
.small {
    font-size: 0.95rem;
    color: #95a5a6;
    font-weight: normal;
}

.medium {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: bold;
    margin: 0 3px;
}
/* --- 彩蛋：隐形链接样式 (SCP收容措施) --- */
a.secret-link {
    color: transparent;       /* 核心：平时完全透明，和背景融为一体 */
    text-decoration: none;    /* 去掉下划线 */
    cursor: default;          /* 关键：鼠标放上去不显示“小手”，假装这里什么都没有 */
    transition: all 0.5s ease; /* 显形时的渐变动画 */
}

a.secret-link:hover {
    color: var(--primary-color); /* 只有被鼠标扫过时，才显现出原本的蓝色 */
    cursor: pointer;             /* 这时候才变回点击小手 */
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5); /* 加一点发光特效，更有科技感 */
}
#link_yiur{
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 10px;
}