/* style.css - 风格一：日出杏粉 (Sunrise Apricot) */

/* 颜色变量 */
:root {
    --color-primary: #ffb7a5; /* 柔和的杏粉色 */
    --color-secondary: #fef8f6; /* 极浅的暖白背景 */
    --color-text: #4a4a4a; /* 柔和的深灰文字 */
    --color-dark-text: #2c2c2c;
}

/* 全局设置 */
body {
    font-family: 'Avenir', 'Nunito', sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.6;
}

/* 头部和 Logo */
header {
    border-bottom: 2px solid var(--color-primary) !important;
}

.blog-header-logo {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--color-dark-text) !important;
}

a.blog-header-logo {
    text-decoration: none  !important;
    border: none  !important;
}


/* 导航栏 */
.nav-scroller {
    border-bottom: 1px solid #f2e3de !important;
    padding-top: 0.5rem !important;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text) !important;
    text-transform: capitalize;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

.nav-link.active {
    /* 激活状态 */
    border-bottom: 4px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-weight: 700;
}

/* 内容卡片 */
.card.shadow-sm {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 183, 165, 0.25) !important; /* 杏粉色柔和阴影 */
    border-radius: 10px;
}

/* 友情链接 */
a {
    color: var(--color-dark-text);
    text-decoration: none;
    padding: 0.1rem 0;
    border-bottom: 1px dashed #888888;
}

a:hover {
    color: var(--color-primary);
}

/* 页脚 */
footer {
    background-color: #fffaf7 !important;
    border-top: 1px solid var(--color-primary); 
    color: #888888 !important;
}

footer a {
    color: var(--color-primary);
    font-weight: 700;
}

/* 1. 默认展开状态的样式，或作为基线 */
.main-content {
    position: relative;
    overflow: visible;
    transition: max-height 0.5s ease-in-out; /* 平滑过渡效果 */
}

/* 2. 折叠状态 (默认显示 350px 高度) */
.main-content.collapsed {
    max-height: 650px; /* 设定初始高度 */
    overflow: hidden;
}

/* 3. 创建半透明渐变覆盖层，以提醒用户内容被截断 */
.main-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px; /* 渐变层的高度 */
    /* 模拟白色的淡出效果 */
    background: linear-gradient(to top, white 10%, rgba(255, 255, 255, 0.1) 100%); 
    pointer-events: none; /* 确保不影响内容点击 */
}

/* 4. 当内容展开时，移除渐变覆盖层 */
.main-content:not(.collapsed)::after {
    display: none;
}
