* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #2D1B3A 0%, #4A2C5A 50%, #2D1B3A 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', 'Noto Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* 主容器 - 统一管理所有卡片 */
.main-container {
    max-width: 680px;
    width: 92%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-top: 2.7rem;
    padding-bottom: 2rem;
}

/* 顶部文字卡片样式 */
.text-card {
    border-radius: 32px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: visible;
    background: linear-gradient(105deg, 
        #9370DB 0%, 
        #A07ED9 12%,
        #B08FDB 28%,
        #C09FE0 44%,
        #D0B0E6 60%,
        #E0C8F0 76%,
        #F5EAFB 88%,
        #FFFFFF 100%);
}

.text-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.4);
}

/* 自定义图片容器 - 底部对齐 */
.text-card-custom-image {
    position: absolute;
    bottom: 0;
    right: 5px;
    height: 120%;
    pointer-events: none;
    z-index: 3;
}

.text-card-custom-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 文字内容区域 - 靠左对齐 */
.text-card-content {
    padding: 2rem 2.2rem;
    text-align: left;
    position: relative;
    z-index: 4;
}

/* 主标题文字 */
.text-card-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: break-word;
    font-family: 'Georgia', 'Times New Roman', 'PingFang SC', serif;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

/* 副标题文字 - 透明蒙版效果 */
.text-card-subtitle {
    color: #9370db;
    line-height: 1.5;
    font-size: 1.5rem;
    font-weight: 700;
    word-break: break-word;
    font-family: 'Georgia', 'Times New Roman', 'PingFang SC', serif;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    margin-top: 0.25rem;
    position: relative;
    z-index: 2;
}

/* 明信片列表容器 */
.postcard-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.postcard {
    border-radius: 32px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: visible;
}

.postcard.gradient-yellow-white {
    background: linear-gradient(105deg, 
        #FAFAD2 0%, 
        #FFF5CC 15%,
        #FFF0C4 30%,
        #FFEBB8 45%,
        #FFF0CC 60%,
        #FFF8E6 75%,
        #FFFFFF 90%,
        #FFFFFF 100%);
}

.postcard.gradient-purple-white {
    background: linear-gradient(105deg, 
        #9370DB 0%, 
        #A07ED9 12%,
        #B08FDB 28%,
        #C09FE0 44%,
        #D0B0E6 60%,
        #E0C8F0 76%,
        #F5EAFB 88%,
        #FFFFFF 100%);
}

.postcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.4);
}

.card-layout {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.avatar-section {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(145deg, #eef2f8, #e0e8f0);
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.postcard:hover .avatar {
    transform: scale(1.02);
}

.content-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.name-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2a3e;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: break-word;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.description {
    color: #2c3e4e;
    line-height: 1.45;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Georgia', 'Times New Roman', serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FF69B4;
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    width: auto;
    height: auto;
    line-height: 1.2;
}

.jump-btn:hover {
    background: #FF85C1;
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.corner-badge {
    position: absolute;
    top: -10px;
    right: -6px;
    z-index: 10;
    width: auto;
    height: auto;
    display: inline-block;
    transition: all 0.25s ease;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.badge-img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: all 0.25s ease;
}

.postcard:hover .corner-badge {
    transform: rotate(8deg) scale(1.05);
}

.postcard:hover .badge-img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-container {
        padding-top: 2.3rem;
        padding-bottom: 1.5rem;
    }
    .text-card-content {
        padding: 1.5rem 1.5rem;
    }
    .text-card-subtitle {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    .card-layout {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    .avatar-section {
        width: 120px;
        height: 120px;
    }
    .jump-btn {
        padding: 0.4rem 0.9rem;
        gap: 4px;
    }
    .badge-img {
        width: 50px;
        height: 50px;
    }
    .corner-badge {
        top: -8px;
        right: -5px;
    }
}

@media (max-width: 580px) {
    .main-container {
        padding-top: 2.3rem;
        padding-bottom: 1.2rem;
    }
    .text-card-content {
        padding: 1.3rem 1.2rem;
    }
    .text-card-subtitle {
        font-size: 1.2rem;
        padding: 0.45rem 0.9rem;
    }
    .card-layout {
        gap: 0.7rem;
        padding: 0.5rem;
    }
    .avatar-section {
        width: 90px;
        height: 90px;
    }
    .name-title {
        font-size: 1.5rem;
    }
    .description {
        font-size: 0.9rem;
    }
    .jump-btn {
        padding: 0.35rem 0.8rem;
        gap: 3px;
    }
    .badge-img {
        width: 42px;
        height: 42px;
    }
    .corner-badge {
        top: -6px;
        right: -4px;
    }
    .postcard {
        border-radius: 24px;
    }
}

@media (max-width: 420px) {
    .main-container {
        padding-top: 1.8rem;
        padding-bottom: 1rem;
    }
    .text-card-content {
        padding: 1.1rem 1rem;
    }
    .text-card-title {
        font-size: 3rem;
    }
    .text-card-subtitle {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    .card-layout {
        gap: 0.6rem;
        padding: 0.5rem;
    }
    .avatar-section {
        width: 90px;
        height: 90px;
    }
    .name-title {
        font-size: 1.5rem;
    }
    .description {
        font-size: 0.8rem;
    }
    .jump-btn {
        padding: 0.3rem 0.7rem;
    }
    .badge-img {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    .card-layout {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .avatar-section {
        width: 80px;
        height: 80px;
    }
    .name-title {
        font-size: 1.5rem;
    }
    .description {
        font-size: 0.9rem;
    }
    .jump-btn {
        padding: 0.25rem 0.6rem;
    }
    .badge-img {
        width: 34px;
        height: 34px;
    }
}
