/* 猫咪博客全局样式 */
:root {
    --primary-color: #FFB6C1; /* 肉垫粉 */
    --bg-color: #FDF6E3;      /* 奶油米 */
    --text-color: #4A4A4A;
    --accent-color: #87CEEB;   /* 天空蓝 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* 开启 3D 透视 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: -60px;
    perspective: 1200px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 20px;
    overflow: visible; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform-style: preserve-3d;
    margin-bottom: 1.5rem;
    transition: transform 0.1s ease-out;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    transform: translateZ(20px); /* 文字稍微浮起 */
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--bg-color);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: #888;
}

/* 精致版交互样式 */
.stage {
    position: relative;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at center, #fff 0%, #f9f9f9 100%);
    overflow: visible; 
    border-radius: 20px 20px 0 0;
    transform-style: preserve-3d;
}

.stage-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    object-fit: cover;
    transition: filter 0.4s ease;
    border-radius: inherit;
    transform: translateZ(0);
}

.cat-actor {
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate3d(-50%, 0, -50px); /* 初始在深处 */
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img-source {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prop-layer {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    transform-style: preserve-3d;
}

.hand-tool {
    position: absolute;
    right: -120px;
    top: 40%;
    font-size: 60px;
    filter: drop-shadow(-5px 5px 10px rgba(0,0,0,0.1));
    transform: translateZ(40px); /* 手在最前面 */
}

.treat-item {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate3d(-50%, 0, 30px) scale(0);
    opacity: 0;
    font-size: 50px;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.1));
}

/* 动作动画 */
@keyframes cat-eat {
    0%, 100% { transform: translate3d(-50%, 0, 50px) scale(1); }
    50% { transform: translate3d(-50%, -10px, 60px) scale(1.1); }
}

.eating { animation: cat-eat 0.3s infinite; }

.btn-feed {
    background: var(--bg-color);
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-feed:hover {
    background: var(--primary-color);
    color: white;
}

.highlight-box {
    background: white;
    border: 3px dashed var(--primary-color);
    padding: 2rem;
    border-radius: 30px;
    margin: 3rem 0;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 4rem 0;
    color: #999;
    font-size: 0.9rem;
    background: white;
    margin-top: 5rem;
    border-top: 1px solid var(--bg-color);
}
