/* spirit.css - 精神谱系页面样式 */

/* 子项目通用样式 */
.item{
    margin:25px 0 40px;  /* 外边距：上25像素，下40像素，左右0 */
    width:100%;  /* 宽度100%填充父元素 */
    display: flex;  /* 弹性布局 */
    justify-content: space-between;  /* 子元素两端对齐 */
    border: 3px solid #f0e6d9;  /* 3像素浅米色边框 */
    border-radius: 16px;  /* 16像素圆角 */
    background-color: white;  /* 白色背景 */
    box-shadow: 0 8px 30px rgba(183, 28, 28, 0.1);  /* 红色调阴影效果 */
    overflow: hidden;  /* 隐藏溢出内容 */
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);  /* 所有属性0.6秒贝塞尔曲线过渡效果 */
    position: relative;  /* 相对定位 */
}

/* 子项目悬停效果 */
.item:hover{
    transform: translateY(-8px) scale(1.01);  /* 向上移动8像素并放大1.01倍 */
    box-shadow: 0 20px 50px rgba(183, 28, 28, 0.18);  /* 加深阴影效果 */
    border-color: #ffb74d;  /* 边框颜色变为橙色 */
}

/* 子项目内图片样式 */
.item>img{
    height: 320px;  /* 高度320像素 */
    width: 500px;  /* 宽度500像素 */
    margin: 20px 12px;
    object-fit: cover;  /* 图片填充方式：保持比例，裁剪填充 */
    border-right: 3px solid #f0e6d9;  /* 右侧3像素浅米色边框 */
    transition: all 0.8s ease;  /* 所有属性0.8秒过渡效果 */
    filter: sepia(0.1);  /* 添加10%怀旧色调 */
    position: relative;  /* 相对定位 */
    overflow: hidden;  /* 隐藏溢出内容 */
}

/* 子项目悬停时图片效果 */
.item:hover img {
    transform: scale(1.05);  /* 放大1.05倍 */
    filter: sepia(0);  /* 移除怀旧色调 */
    border-right-color: #ff9800;  /* 右侧边框颜色变为亮橙色 */
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);  /* 右侧添加阴影效果 */
}

/* 子项目内信息区域样式 */
.item > .info{
    width: 680px;  /* 宽度680像素 */
    padding:30px 35px;  /* 内边距：上下30像素，左右35像素 */
    background: linear-gradient(to right, #fffaf5, white);  /* 从左到右的浅米色到白色渐变背景 */
    transition: all 0.5s ease;  /* 所有属性0.5秒过渡效果 */
}

/* 子项目悬停时信息区域效果 */
.item:hover .info {
    background: linear-gradient(to right, #fff8f0, white);  /* 悬停时背景渐变变为更暖色调 */
}

/* 信息区域内标题样式 */
.info > h4{
    margin-top: 15px;  /* 顶部外边距15像素 */
    letter-spacing: 4px;  /* 字符间距4像素 */
    font-family: "楷体", "STKaiti", serif;  /* 楷体字体族 */
    color: #c62828;  /* 红色文字 */
    margin-bottom: 28px;  /* 底部外边距28像素 */
    font-weight: bold;  /* 文字加粗 */
    text-align: center;  /* 文字水平居中 */
    line-height: 1.4;  /* 行高1.4倍字体大小 */
    font-size: 30px;  /* 字体大小30像素 */
    border-bottom: 3px double #ffccbc;  /* 底部3像素浅橙色双线边框 */
    padding-bottom: 15px;  /* 底部内边距15像素 */
    position: relative;  /* 相对定位 */
    transition: all 0.4s ease;  /* 所有属性0.4秒过渡效果 */
}

/* 子项目悬停时标题效果 */
.item:hover .info h4 {
    color: #b71c1c;  /* 文字颜色变为深红色 */
    letter-spacing: 5px;  /* 字符间距增加到5像素 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);  /* 添加黑色文字阴影 */
}

/* 标题后的装饰符号 */
.info > h4::after {
    content: '✦';  /* 星形符号作为装饰 */
    position: absolute;  /* 绝对定位 */
    bottom: -10px;  /* 底部偏移-10像素（在边框下方） */
    left: 50%;  /* 左侧50%位置 */
    transform: translateX(-50%);  /* 向左平移自身宽度的50%，实现居中 */
    color: #ff9800;  /* 橙色 */
    font-size: 20px;  /* 字体大小20像素 */
    opacity: 0;  /* 初始透明度为0（完全透明） */
    transition: opacity 0.4s ease;  /* 透明度0.4秒过渡效果 */
}

/* 子项目悬停时装饰符号显示效果 */
.item:hover .info h4::after {
    opacity: 1;  /* 透明度变为1（完全不透明） */
}

/* 信息区域内段落样式 */
.info > p{
    font-size: 17px;  /* 字体大小17像素 */
    text-indent: 2em;  /* 首行缩进2个字符 */
    line-height: 1.8;  /* 行高1.8倍字体大小 */
    color: #5d4037;  /* 深棕色文字 */
    text-align: justify;  /* 两端对齐 */
    transition: all 0.4s ease;  /* 所有属性0.4秒过渡效果 */
}

/* 子项目悬停时段落效果 */
.item:hover .info p {
    color: #3e2723;  /* 文字颜色变为更深棕色 */
    line-height: 1.85;  /* 行高增加到1.85倍字体大小 */
}