/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fff2f2 0%, #ffdeeb 40%, #e8dbfc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

/* 顶部标题区 */
.main-header {
    text-align: center;
    margin-bottom: 45px;
}

.main-header h1 {
    font-size: 2.8rem;
    color: #d81b60;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(255, 92, 138, 0.2);
}

/* 网格布局 */
.container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 角色卡片通用样式 */
.char-card {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #ffb7c5;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(255, 183, 197, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.char-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 183, 197, 0.28);
    border-color: #ff7a99;
}

.char-card h2 {
    font-size: 19px;
    color: #c2185b;
    margin-bottom: 15px;
}

.char-card .summary {
    font-size: 13.5px;
    color: #607d8b;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* 萌娘百科直达按钮 */
.moe-btn {
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid #ffb7c5;
    color: #d81b60;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.moe-btn:hover {
    background: #ff5c8a;
    color: #fff;
    border-color: #ff5c8a;
}

/* 页脚 */
footer {
    font-size: 11px;
    color: #b0bec5;
    letter-spacing: 1px;
    margin-top: auto;
}