/* --- 全局样式 --- */
:root {
    --primary-color: #ff8a80; /* 可爱的粉红色 */
    --secondary-color: #ffcc80; /* 活泼的橙色 */
    --text-color: #333;
    --bg-color: #fffaf0; /* 奶油色背景 */
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --logo-font: 'ZCOOL KuaiLe', cursive; /* 使用引入的可爱字体 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 导航栏 --- */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--logo-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- 英雄区 --- */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 60px; /* 为导航栏留出空间 */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.laimi-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #fff;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /* 增加一个简单的猫咪肉垫动画效果 */
    transition: transform 0.3s ease;
}

.laimi-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.hero h1 {
    font-family: var(--logo-font);
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- 公共 Section 样式 --- */
section {
    padding: 80px 0;
}

h2 {
    font-family: var(--logo-font);
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* --- 关于莱米 --- */
.about {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    border-bottom: 5px solid var(--secondary-color);
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-item h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 15px;
}

/* --- 图片廊 --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    height: 250px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-item:hover span {
    transform: translateY(0);
}

/* --- 页脚 --- */
footer {
    background-color: #333;
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* --- 响应式 (手机端) --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none; /* 简化的移动端，隐藏链接，可以通过增加 JS 做汉堡菜单 */
    }
}
