* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #fefaff;
    color: #333;
    line-height: 1.7;
}
a { color: #b399ff; text-decoration: none; }
a:hover { color: #ff8cd9; text-decoration: underline; }
.header {
    background: linear-gradient(135deg, #e6d4ff 0%, #ffd6f5 100%);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #ffccf9;
}
.site-title {
    font-size: 3.2rem;
    font-weight: bold;
    background: linear-gradient(to right, #8a65cc, #ff66b2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
}
.site-subtitle {
    font-size: 1.1rem;
    color: #777;
    letter-spacing: 4px;
    margin-bottom: 25px;
}
.nav a {
    margin: 0 18px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #666;
}
.nav a:hover { color: #ff66b2; }
.notice {
    background-color: #f0f7ff;
    border: 1px solid #ccdfff;
    padding: 15px;
    margin: 25px auto;
    max-width: 1000px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #336;
    text-align: center;
}
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.section-title {
    font-size: 1.8rem;
    color: #5a3a7a;
    border-left: 5px solid #c792ff;
    padding-left: 15px;
    margin: 40px 0 25px;
}
.works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.work-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.work-card:hover {
    transform: translateY(-10px);
}
.work-cover {
    width: 100%;
    border-radius: 10px 10px 0 0;
}
.cover-crop-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 10px 10px 0 0;
}
.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.work-card:hover .cover-image {
    transform: scale(1.05);
}
.work-info { 
    padding: 20px; 
    display: flex;
    flex-direction: column; /* 新增 */
    height: calc(100% - 220px); /* 假设封面固定高200px，使所有卡片信息区等高 */
    min-height: 220px; /* 设置一个最小高度，保证有足够空间 */
}
.work-info h3 { 
    margin-bottom: 10px; 
    color: #444; 
}
.work-info p { 
    color: #666; 
    font-size: 0.95rem; 
    margin-bottom: 20px;
    flex-grow: 1; /* 新增：关键，让描述区域填充空间 */
    overflow: hidden; /* 为截断做准备 */
}
.button-hint {
    background-color: #f0f7ff;
    border: 1px solid #c6e0ff;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #2c5282;
}
.hint-text {
    flex: 1;
}
.work-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.work-info .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}
.btn-download {
    background: linear-gradient(to right, #d58cff, #ff82cf);
    color: white;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
    order: 1;
}
.btn-download:hover {
    background: linear-gradient(to right, #938cff, #e282ff);
    color: white;
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.4);
    transform: translateY(-2px);
}
.btn-preview {
    background: linear-gradient(to right, #f7fafc, #edf2f7);
    color: #4a5568;
    border: 1px solid #cbd5e0;
    order: 2;
}
.btn-preview:hover {
    background: linear-gradient(to right, #edf2f7, #e2e8f0);
    color: #ec6af1;
    border-color: #a0aec0;
}
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background-color: #f5f0ff;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #e6ddff;
}
.footer-links { 
    margin: 20px 0; 
}
.footer-links a { 
    margin: 0 12px; 
    color: #999; 
}
.beian {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #aaa;
}
@media (max-width: 480px) {
    .work-buttons {
        flex-direction: column;
    }
}
.cover-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(230, 212, 255, 0.95), rgba(255, 212, 245, 0.8));
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
    backdrop-filter: blur(0.5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}
.work-card:hover .cover-info-overlay {
    transform: translateY(-4px);
    background: linear-gradient(to top, rgba(204, 191, 255, 0.95), rgba(245, 182, 255, 0.8));
}
.cover-author {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #9e65c1;
}
.cover-organization {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.9;
    color: #8f61dd;
}
.truncated-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s;
}
.truncated-text:hover {
    color: #8a65cc;
}
.description-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: linear-gradient(135deg, #fefaff, #f5f0ff);
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(90, 58, 122, 0.3);
    border: 1px solid #e6d4ff;
    position: relative;
}
.modal-content h3 {
    color: #5a3a7a;
    margin-bottom: 15px;
    border-bottom: 2px solid #c792ff;
    padding-bottom: 10px;
}
.modal-content p {
    color: #333;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #b399ff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.modal-close:hover {
    color: #ff66b2;
}