/* 主体内容 */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    color: #1a2980;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a2980, #26d0ce);
    border-radius: 2px;
}

/* 个人介绍 */
.profile {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.profile:hover {
    transform: translateY(-5px);
}
.profile-img {
    flex: 0 0 215px; /* 证件照尺寸：约150x200px */
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e4edf5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-content {
    padding: 2rem;
    flex: 1;
}
.profile-content h3 {
    color: #1a2980;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.profile-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
    color: #555;
}
.profile-content .highlight {
    color: #e74c3c;
    font-weight: bold;
}

/**小说区域**/
.card-novel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card-novel-horizontal {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-height: 220px;
}
.card-novel-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card-novel-img {
    flex: 0 0 140px; /* 标准书本封面宽度 */
    background: #e4edf5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-novel-img img {
    max-width: 135px;
    max-height: 190px;
    object-fit: cover;
    border-radius: 6px;
    margin: 10px;
}
.card-novel-body a{
    text-decoration: none;
    background-color: #ff5500;
    width: 70px;
    padding: 2px 5px;
    text-align: center;
    color: #ffffff;
    border-radius: 5px;
    margin-top: 15px;
}
.card-novel-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-novel-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a2980;
    font-weight: 600;
}
.card-novel-desc {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 2rem;
}
.card-novel-date {
    color: #888;
    font-size: 0.9rem;
}

/* 卡片列表样式 - 一行三个 */
.card-list-three {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card-three {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
    min-width: calc(33.333% - 1.5rem);
}
.card-three:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card-three img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
}
.card-body a{
    text-decoration: none;
}
.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #1a2980;
    font-weight: 600;
}
.card-desc {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
}
.card-date {
    color: #888;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-img {
        flex: 0 0 120px;
    }
    .profile-img img {
        width: 100px;
        height: 130px;
    }
    .profile-content {
        padding: 1.5rem;
    }
    /* 平板设备：每行两个 */
    .card-three {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
        min-width: calc(50% - 1.5rem);
    }
}
@media (max-width: 480px) {
    /* 手机设备：每行一个 */
    .card-three {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }
}
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
    }
    .profile-img {
        flex: 0 0 200px;
    }
    .profile-img img {
        width: 160px;
        height: 160px;
    }
}