* { 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: 900px; margin: 0 auto; padding-left: 30px; padding-right: 30px;
}

.page-header { text-align: center; margin-bottom: 50px; }
.page-header h1 { font-size: 2.4em; color: #4a3728; letter-spacing: 4px; margin-bottom: 12px; }
.page-header .subtitle { font-size: 1.05em; color: #8b7265; letter-spacing: 1px; }
.header-divider { width: 80px; height: 3px; background: linear-gradient(90deg, #B39B56, #A87868, #2C8079); border-radius: 2px; margin: 16px auto 0; }

.characters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 750px; margin: 0 auto; }

.character-card {
    background: #fff; border: 2px solid #CAA59B; border-radius: 16px;
    overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; align-items: center;
    transition: all 0.4s ease; position: relative;
    box-shadow: 0 4px 16px rgba(168,120,104,0.1);
}
.character-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #B39B56, #A87868, #2C8079);
}
.character-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(168,120,104,0.25); border-color: #A87868; }

.avatar-area {
    width: 100%; aspect-ratio: 4/3;
    background: transparent; 
    display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden;
}

/* 冰心卡片背景图 */
.card-bingxin {
    background: url('./picture/people1.jpg') center/cover no-repeat;
}

/* 宋庆龄卡片背景图 */
.card-songqingling {
    background: url('./picture/people2.jpg') center/cover no-repeat;
}

/* 半透明罩板 — 盖在图片上，让文字更清晰 */
.avatar-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 241, 235, 0.4);  /* 透明度自己调 */
    z-index: 0;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 241, 235, 0.5);  /* 整体罩板 */
    z-index: 0;
}

/* 让内容在罩板上面 */
.avatar-area, .card-info {
    position: relative;
    z-index: 1;
}


.card-info {
    background: rgba(255, 255, 255, 0.8); /* 白色+  %不透明度 */
    padding: 24px 24px 28px;
    text-align: center;
    width: 100%;
}

.card-info .name { font-size: 1.5em; font-weight: 700; color: #4a3728; letter-spacing: 3px; margin-bottom: 8px; }
.card-info .years { font-size: 0.85em; color: #B39B56; letter-spacing: 1px; margin-bottom: 12px; }
.card-info .desc { font-size: 0.92em; color: #6b5348; line-height: 1.7; margin-bottom: 18px; 
    min-height: 75px; /* 固定最小高度，以免不一样高 */
}
.chat-btn {
    display: inline-block; padding: 10px 28px; background: #A87868; color: #F5F1EB; 
    border-radius: 25px; font-size: 0.9em; letter-spacing: 2px; transition: all 0.3s ease; border: 2px solid transparent;
}
.character-card:hover .chat-btn { background: #B15736; border-color: #B15736; }

.bottom-note { text-align: center; margin-top: 50px; padding: 20px; color: #8b7265; font-size: 0.9em; font-style: italic; letter-spacing: 1px; }

.footer { background-color: #A87868; color: #F5F1EB; text-align: center; padding: 30px; font-size: 0.9em; letter-spacing: 1px; }

@media (max-width: 700px) {
    .characters-grid { grid-template-columns: 1fr; gap: 24px; max-width: 400px; }
    .page-header h1 { font-size: 1.8em; }
    .nav-links { gap: 4px; }
    .nav-links a { padding: 6px 10px; font-size: 0.82em; }
    .main-content { padding-left: 16px; padding-right: 16px; }
}