body {
    font-family: 'Mochiy Pop One', sans-serif, 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff0f5; /* 淡粉色背景，营造温馨感 */
    color: #5d4037; /* 深棕色文字，柔和对比 */
    line-height: 1.6;
}

.logo-icon {
    width: 60px; /* 调整SVG图标大小 */
    height: 60px;
    margin-right: 15px;
    /* vertical-align: middle; Flexbox会处理对齐 */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Logo和标题居中 */
}

.main-header {
    background-color: #ffc0cb; /* 柔和的粉色 */
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px dashed #ffab73; /* 橙色虚线边框，增加可爱感 */
}

.main-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* 文字阴影增加立体感 */
    vertical-align: middle;
}

.main-header nav ul {
    list-style-type: none;
    padding: 10px 0 0 0;
    margin: 0;
}

.main-header nav ul li {
    display: inline-block; /* 改为inline-block以便更好地控制间距和对齐 */
    margin: 0 15px;
}

.main-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 15px;
    border-radius: 20px; /* 圆角按钮效果 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-header nav ul li a:hover,
.main-header nav ul li a.active {
    background-color: #fff;
    color: #ff7f50; /* 珊瑚色 */
    box-shadow: 0 0 10px rgba(255, 127, 80, 0.5);
}

main {
    padding: 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    flex-wrap: wrap; /* 允许换行 */
}

.hero-content {
    max-width: 500px;
    text-align: center; /* 手机上居中 */
}

.hero-content h2 {
    font-size: 2.8em;
    color: #ff7f50;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background-color: #ff69b4; /* 亮粉色 */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.3em;
    border-radius: 25px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ff1493; /* 深一点的粉色 */
    transform: scale(1.05);
}

.hero-image-container {
    max-width: 400px; /* 限制图片容器宽度 */
    margin-top: 20px; /* 在小屏幕上给图片一些上边距 */
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 5px solid #ffc0cb; /* 粉色边框 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.featured-cats {
    text-align: center;
    padding: 30px 0;
}

.featured-cats h2 {
    font-size: 2.2em;
    color: #5d4037;
    margin-bottom: 30px;
    position: relative;
    display: inline-block; /* 为了让伪元素定位 */
}

/* 可爱的标题装饰 */
.featured-cats h2::before, 
.featured-cats h2::after {
    content: '🐾'; /* 猫爪印 */
    font-size: 0.8em;
    color: #ffab73;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.featured-cats h2::before {
    left: -40px;
}

.featured-cats h2::after {
    right: -40px;
}

.cat-card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* 允许卡片换行 */
    gap: 20px; /* 卡片之间的间隙 */
}

.cat-card {
    background-color: #fff;
    border: 2px solid #ffe4e1; /* 淡粉色边框 */
    border-radius: 10px;
    padding: 20px;
    width: calc(33.333% - 40px); /* 响应式调整，减去gap */
    min-width: 280px; /* 最小宽度 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.cat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.cat-card img {
    width: 100%;
    max-width: 200px; /* 控制图片大小 */
    height: auto;
    border-radius: 50%; /* 圆形图片 */
    margin-bottom: 15px;
    border: 3px solid #ffc0cb;
}

.cat-card h3 {
    font-size: 1.5em;
    color: #ff6347; /* 番茄色 */
    margin-bottom: 8px;
}

.cat-card p {
    font-size: 0.95em;
    color: #777;
}

.main-footer {
    background-color: #ffc0cb;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 3px dashed #ffab73;
}

.main-footer p {
    margin: 0 0 10px 0;
}

.cat-paw-prints span {
    font-size: 1.5em;
    margin: 0 5px;
    color: #fff0f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-content h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .cta-button {
        font-size: 1.1em;
        padding: 10px 20px;
    }
    .cat-card {
        width: calc(50% - 30px);
    }
    .featured-cats h2::before, 
    .featured-cats h2::after {
        display: none; /* 小屏幕上隐藏标题装饰 */
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2em;
    }
    .main-header nav ul li a {
        font-size: 1em;
        padding: 6px 10px;
    }
    .cat-card {
        width: 100%;
    }
}


/* Gallery Page Specific Styles */
.page-title-section {
    text-align: center;
    padding: 20px 0;
    background-color: #fff9de; /* 淡黄色背景，温馨 */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.page-title-section h2 {
    font-size: 2.5em;
    color: #ff7f50; /* 珊瑚色 */
    margin-bottom: 10px;
}

.page-title-section p {
    font-size: 1.1em;
    color: #7a6800; /* 暗黄色 */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 响应式网格布局 */
    gap: 20px; /* 图片间距 */
    padding: 10px;
}

.gallery-item {
    background-color: #fff;
    border: 2px solid #ffd7ba; /* 淡橙色边框 */
    border-radius: 10px;
    overflow: hidden; /* 确保图片和标题在卡片内 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* 为了定位标题 */
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* 固定高度，可根据图片调整 */
    object-fit: cover; /* 保持图片比例并填充 */
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.85; /* 鼠标悬停时图片稍变暗 */
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明黑色背景 */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-caption {
    opacity: 1; /* 鼠标悬停时显示标题 */
}

/* Lightbox 样式 (如果您选择使用) */
/* 通常 lightbox 库会自带样式，这里只是一个简单示例，如果使用库请注释掉或删除 */
/*
.lightboxOverlay {
    background-color: rgba(0,0,0,0.8) !important;
}
.lb-dataContainer {
    background-color: #fff0f5 !important;
}
.lb-caption, .lb-number {
    color: #5d4037 !important;
}
*/


/* Journal Page Specific Styles */
.journal-title-bg {
    background-image: url('../images/bg/journal_bg.png'); /* 可选：一个可爱的背景图案 */
    background-size: cover;
    background-position: center;
    padding: 40px 20px !important; /* 增加内边距 */
    color: #fff; /* 背景图较暗时用白色文字 */
}

.journal-title-bg h2 {
    color: #fff; /* 确保标题在背景图上可见 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.journal-title-bg p {
    color: #f0f0f0; /* 确保段落在背景图上可见 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.journal-entries {
    max-width: 800px; /* 限制日记内容宽度，更易读 */
    margin: 0 auto; /* 居中 */
    padding: 20px;
}

.journal-entry {
    background-color: #fffaf0; /* 象牙白，温馨 */
    border: 1px solid #ffe4b5; /* 蜜桃色边框 */
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
    font-family: 'Noto Sans SC', sans-serif; /* 使用更适合阅读的中文宋体 */
}

.entry-header {
    border-bottom: 2px dashed #ffdab9; /* 蜜桃色虚线 */
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex; /* 让标题和日期在同一行 */
    justify-content: space-between; /* 两端对齐 */
    align-items: baseline; /* 基线对齐 */
}

.entry-title {
    font-family: 'Mochiy Pop One', sans-serif; /* 标题用动漫字体 */
    font-size: 1.8em;
    color: #ff7f50; /* 珊瑚色 */
    margin: 0;
}

.entry-date {
    font-size: 0.9em;
    color: #aaa;
    font-style: italic;
}

.entry-content p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #5d4037;
    margin-bottom: 15px;
}

.entry-content strong {
    color: #d2691e; /* 巧克力色 */
}

.entry-image-left {
    float: left;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 3px solid #ffdab9;
}

.entry-image-right {
    float: right;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-left: 20px;
    margin-bottom: 10px;
    border: 3px solid #ffdab9;
}

/* 清除浮动，确保图片后的内容正确显示 */
.entry-content::after {
    content: "";
    clear: both;
    display: table;
}

.entry-mood {
    margin-top: 20px;
    font-size: 1.1em;
    color: #ff69b4; /* 亮粉色 */
    text-align: right;
    font-weight: bold;
}

/* 响应式调整日记图片 */
@media (max-width: 600px) {
    .entry-image-left,
    .entry-image-right {
        float: none;
        display: block;
        max-width: 80%; /* 图片宽度调整 */
        margin: 15px auto; /* 居中显示 */
    }
    .entry-header {
        flex-direction: column; /* 标题和日期垂直排列 */
        align-items: flex-start;
    }
    .entry-title {
        margin-bottom: 5px;
    }
}