@charset "utf-8";

/* ========== 基础布局 - 固定1440px宽度 ========== */
.main-layout {
    width: 1440px;
    margin: 0 auto;
    padding: 25px 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    zoom: 1;
    margin-bottom: 70px;
}

.content-card {
    background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
    border: 1px solid rgba(168, 136, 96, 0.35);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(168, 136, 96, 0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.content-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e87a6f, #f9e2d0, #e87a6f);
    background-size: 200% 100%;
    border-radius: 10px 10px 0 0;
    animation: lineFlow 2.5s linear infinite;
}

@keyframes lineFlow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.content-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(240, 217, 156, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.content-card > * {
    position: relative;
    z-index: 1;
}

.content-card a {
    color: #584830;
    transition: color 0.3s;
}

.content-card a:hover {
    color: #e87a6f;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168, 136, 96, 0.25);
    overflow: hidden;
    zoom: 1;
}

.content-title {
    color: #e87a6f;
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(240, 217, 156, 0.6);
}

.content-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: #786040;
    flex-wrap: wrap;
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-meta span::before {
    color: #e69a88;
    font-size: 14px;
}

/* ========== 人物列表样式 ========== */
.preson {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
}

.preson ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.preson li {
    width: calc(20% - 16px); /* 5列布局，减去gap间距 */
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
    border: 1px solid rgba(168, 136, 96, 0.2);
    position: relative;
}

.preson li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e87a6f, #f9e2d0, #e87a6f);
    background-size: 200% 100%;
    border-radius: 10px 10px 0 0;
    animation: lineFlow 2.5s linear infinite;
}


.preson li a {
    display: block;
    text-decoration: none;
    color: #584830;
    text-align: center;
    width: 100%;
}

.preson li a img {
    width: 100%;
    display: block;
    aspect-ratio: 469/800;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(168, 136, 96, 0.2);
}

.preson li a span {
    display: block;
    padding: 10px 0;
    background: linear-gradient(135deg, #e69a88, #f0d99c);
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 8px 8px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(168, 136, 96, 0.3);
}

.preson li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 136, 96, 0.2);
    border-color: rgba(230, 154, 136, 0.5);
}

/* ========== 弹窗样式 ========== */
.cols {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(168, 136, 96, 0);
    left: 0;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.cols.hover {
    opacity: 1;
    visibility: visible;
    background: rgba(168, 136, 96, 0.6);
}

.details {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
    z-index: 99999;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    border: 1px solid rgba(168, 136, 96, 0.35);
    visibility: hidden;
    box-shadow: 0 8px 30px rgba(168, 136, 96, 0.25);
}

.details.hover {
    opacity: 1;
    visibility: visible;
    width: 910px;
    height: 600px;
    transform: translate(-50%, -50%) scale(1);
    /* overflow: hidden; */
}

.details::before {
      content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e87a6f, #f9e2d0, #e87a6f);
    background-size: 200% 100%;
    border-radius: 10px 10px 0 0;
    animation: lineFlow 2.5s linear infinite;
}


/* ========== 关闭按钮 ========== */
.close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e69a88, #e87a6f);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 32px;
    z-index: 9;
    box-shadow: 0 2px 10px rgba(168, 136, 96, 0.3);
}

.close-btn:hover {
    background: linear-gradient(135deg, #e87a6f, #e69a88);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(230, 154, 136, 0.5);
}

.close-btn:active {
    transform: scale(0.95);
}

/* ========== 弹窗内容区域 ========== */
.datails_con {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
    overflow-y: auto;
}

.datails_con_left {
    width: 280px;
    float: left;
}

.datails_con_left img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(168, 136, 96, 0.2);
    box-shadow: 0 4px 15px rgba(168, 136, 96, 0.15);
}

.datails_con_z {
    float: left;
    width: 520px;
    color: #584830;
    position: relative;
    margin-left: 25px;
    padding-bottom:20px;
}

.datails_con_z h1 {
    color: #e87a6f;
    position: relative;
    display: block;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 4px rgba(240, 217, 156, 0.25);
}

.datails_con_z h1 i {
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e69a88, #f0d99c);
}

.datails_con_z p {
    line-height: 32px;
    font-size: 14px;
    color: #e87a6f;
}

.datails_con_z span {
    color: #584830;
}

.datails_con_right {
    width: 280px;
    height: auto;
    float: left;
    margin-left: 20px;
    position: relative;
    margin-top: 30px;
}

.r_preson {
    width: 80px;
    height: auto;
    margin: 20px auto;
    text-align: center;
}

.r_preson img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(168, 136, 96, 0.2);
    box-shadow: 0 4px 10px rgba(168, 136, 96, 0.1);
}

.r_but {
    width: 100%;
    height: auto;
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.r_but i {
    position: absolute;
    left: 0;
    top: -15px;
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e69a88, transparent);
}

.r_but button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e69a88, #f0d99c);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.r_but_l {
    float: left;
}

.r_but_r {
    float: right;
}

.r_but button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 154, 136, 0.4);
}

/* ========== 下拉选择器样式 ========== */
.class_xiala {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

.class_but {
    width: 100%;
    max-width: 260px;
    height: 42px;
    background: linear-gradient(135deg, #e69a88, #e87a6f);
    border-radius: 8px;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(230, 154, 136, 0.3);
    position: relative;
}

.class_but span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    line-height: 42px;
    padding-left: 1.2em;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.class_but span i {
    position: absolute;
    right: 15px;
    top: 0;
    line-height: 42px;
    color: #fff;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-style: normal;
}

.class_but ul {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    position: absolute;
    left: 0;
    top: 44px;
    background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
    border: 1px solid rgba(168, 136, 96, 0.3);
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    display: none;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(168, 136, 96, 0.15);
}

.class_but ul.hover {
    display: block;
    opacity: 1;
}

.class_but ul li {
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding-left: 1.2em;
    font-size: 14px;
    color: #584830;
    transition: all 0.3s ease;
}

.class_but ul li:hover {
    background: rgba(230, 154, 136, 0.15);
    color: #e87a6f;
}

.class_but ul li::after {
    content: '';
    display: block;
    width: calc(100% - 2.4em);
    height: 1px;
    background: rgba(168, 136, 96, 0.15);
    margin-left: 1.2em;
}

.class_but ul li:last-child::after {
    display: none;
}

/* 滚动条样式 */
.class_but ul::-webkit-scrollbar {
    width: 6px;
}

.class_but ul::-webkit-scrollbar-track {
    background: rgba(168, 136, 96, 0.1);
    border-radius: 10px;
}

.class_but ul::-webkit-scrollbar-thumb {
    background: #e69a88;
    border-radius: 10px;
}

.class_but ul::-webkit-scrollbar-thumb:hover {
    background: #e87a6f;
}

/* ========== 响应式样式 ========== */

/* 屏幕宽度 <= 1440px */
@media screen and (max-width: 1440px) {
    .main-layout {
        width: 1200px;
    }
}

/* 屏幕宽度 <= 1200px */
@media screen and (max-width: 1200px) {
    .main-layout {
        width: 100%;
        padding: 20px 15px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .preson li {
        width: calc(25% - 15px); /* 4列布局 */
    }
    
    .details.hover {
        width: 85%;
        height: auto;
        min-height: 500px;
        max-height: 80vh;
    }
    
    .datails_con_left {
        width: 35%;
    }
    
    .datails_con_z {
        width: 55%;
    }
    
    .datails_con_right {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        float: none;
        clear: both;
    }
}

/* 屏幕宽度 <= 768px */
@media screen and (max-width: 768px) {
    .main-layout {
        padding: 15px 12px;
    }
    
    .content-card {
        padding: 18px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .preson li {
        width: calc(50% - 10px); /* 2列布局 */
    }
    
    .preson li a span {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .details.hover {
        width: 95%;
        height: auto;
        min-height: 400px;
    }
    
    .datails_con {
        padding: 15px;
    }
    
    .datails_con_left {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    
    .datails_con_left img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    .datails_con_z {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    
    .datails_con_z h1 {
        font-size: 20px;
    }
    
    .datails_con_z p {
        line-height: 28px;
        font-size: 13px;
    }
    
    .close-btn {
        top: -8px;
        right: -8px;
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 16px;
    }
    
    .r_but button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .class_but {
        height: 38px;
    }
    
    .class_but span {
        line-height: 38px;
        font-size: 13px;
    }
    
    .class_but ul li {
        height: 38px;
        line-height: 38px;
        font-size: 13px;
    }
}