* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Noto Serif SC', 'Songti SC', serif;
    background-color: #F5F1EB;
    color: #4a3728;
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: #A87868; z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: -5px;  /* 图片和文字的间距 */
    margin-left: -160px;  /* 负值往左移，自己调数值 */
    font-size: 1.5em;
    font-weight: bold;
    color: #F5F1EB;
    text-decoration: none;
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
}

.logo-img {
    height: 80px;   /* 图片高度，跟导航栏协调 */
    width: auto;
    object-fit: contain;
}

.nav-links { list-style: none; display: flex; gap: 8px; }
.nav-links a {
    color: #F5F1EB; text-decoration: none; padding: 8px 18px;
    border-radius: 20px; font-size: 0.95em; transition: all 0.3s ease; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active {
    background-color: rgba(245,241,235,0.2); color: #fff;
}

.main-content {
    padding-top: 100px; padding-bottom: 60px;
    max-width: 1200px; margin: 0 auto; padding-left: 30px; padding-right: 30px;
}

.search-section { display: flex; justify-content: center; margin-bottom: 50px; }
.search-box { position: relative; width: 100%; max-width: 500px; }
.search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; color: #A87868; pointer-events: none;
}
.search-box input {
    width: 100%; padding: 16px 20px 16px 52px;
    border: 2px solid #CAA59B; border-radius: 50px;
    font-size: 1em; background: #fff; color: #4a3728;
    transition: all 0.3s ease;
    font-family: 'Georgia', 'Noto Serif SC', serif;
}
.search-box input:focus { outline: none; border-color: #A87868; box-shadow: 0 0 0 4px rgba(168,120,104,0.15); }
.search-box input::placeholder { color: #b09a8e; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.person-card {
    background: #fff; border: 2px solid #CAA59B; border-radius: 14px;
    overflow: hidden; cursor: pointer; transition: all 0.35s ease;
    text-decoration: none; color: inherit; display: block;
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168,120,104,0.2);
    border-color: #A87868;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.card-photo {
    width: 100%; aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e8ddd4 0%, #d4c5b8 100%);
    display: flex; justify-content: center; align-items: center;
    color: #A87868; font-size: 1.2em; letter-spacing: 2px;
    position: relative; overflow: hidden;
}
.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.card-photo::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(255,255,255,0.6), transparent);
}

.card-name {
    padding: 14px 16px; font-size: 1.05em; font-weight: 600;
    color: #4a3728; text-align: center; border-top: 1px solid #f0e8e0; letter-spacing: 1px;
}

.no-results { text-align: center; padding: 60px 20px; color: #8b7265; font-size: 1.1em; }

.footer {
    background-color: #A87868; color: #F5F1EB;
    text-align: center; padding: 30px; font-size: 0.9em; letter-spacing: 1px;
}

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .main-content { padding-left: 16px; padding-right: 16px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .nav-links a { padding: 6px 10px; font-size: 0.82em; }
    .search-section { margin-bottom: 30px; }
}
