.life-container {
            min-width: 900px; /* 最小宽度，防止在小屏幕上过分压缩 */        
            max-width: 1500px;
            margin: 0 auto;
            background: white;
            padding: 40px;
        }      
        
.life-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
}
        
.life-title {
            font-weight: 400;
            font-size: 24px;
            margin-bottom: 5px;
            color: #222;
        }                
        
.life-subtitle {
            font-weight: 300;
            font-size: 14px;
            color: #888;
}        

.life-nav {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
}
        
.life-nav-btn {
            background: none;
            border: none;
            padding: 8px 16px;
            margin: 0 5px;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            position: relative;
            z-index: 1;

}
        
.life-nav-btn.active {
            color: #222;
}
        
.life-nav-btn.active:after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            right: 0;
            height: 1px;
            background: #222;
}

.life-content {
            min-height: 500px;
}
        
.life-section {
            display: none;
}
        
.life-section.active {
            display: block;
}
        
.life-entry {
            margin-bottom: 30px;
            padding-bottom: 30px;
            border-bottom: 1px solid #f0f0f0;
}
        
.life-entry:last-child {
            border-bottom: none;
}
        
.life-entry-header {
            margin-bottom: 15px;
}
        
.life-entry-title {
            font-size: 18px;
            font-weight: 500;
            color: #222;
            text-decoration: none;
            text-align: left; /* 确保标题左对齐 */
}
        
.life-entry-title:hover {
            color: #4a69bd;
}
        
.life-entry-content {
            color: #444;
            margin-bottom: 15px;
            font-weight: 300;
            line-height: 1.7;
}
        
.life-entry-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
}
        
.life-tags {
            display: flex;
}
        
.life-tag {
            color: #888;
            font-size: 12px;
            margin-right: 10px;
}
        
.life-entry-date {
            color: #888;
            font-size: 13px;
}
        
.life-travel-entry {
            border-left: 3px solid #6a89cc;
            padding-left: 30px;
            position: relative; /* 为伪元素提供定位上下文 */
            
}

.life-essay-entry {
            border-left: 3px solid #f19066;
            padding-left: 15px;
}
        
.life-new-entry-form {
            background: #fafafa;
            padding: 30px;
            border-radius: 6px;
}
        
.life-form-group {
            margin-bottom: 20px;
}
        
.life-label {
            display: block;
            margin-bottom: 8px;
            color: #444;
            font-size: 14px;
}
        
.life-input, .life-textarea, .life-select {
            width: 100%;
            padding: 10px;
            border: 1px solid #eee;
            background: white;
            font-size: 15px;
            font-weight: 300;
            border-radius: 4px;
}
        
.life-input:focus, .life-textarea:focus, .life-select:focus {
            outline: none;
            border-color: #ddd;
}
        
.life-textarea {
            min-height: 150px;
            resize: vertical;
}
        
.life-btn {
            background: #222;
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 14px;
            cursor: pointer;
            border-radius: 4px;
}

.life-btn:hover {
            background: #4a69bd;
}
        
.life-footer {
            text-align: center;
            margin-top: 50px;
            padding-top: 20px;
            color: #888;
            font-size: 13px;
            border-top: 1px solid #eee;
}        

@media (max-width: 768px) {
            /* define container */
    .life-container {
            min-width: auto; /* 最小宽度，防止在小屏幕上过分压缩 */
            margin: 0 auto;
            background: white;
            padding: 40px;
        }   
}