/* 卡片基础样式 */
#cardView .card {
    width: 360px;
    height: 480px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-sizing: border-box;
    background: white;
    overflow: hidden;
}

/* 卡片容器样式 */
.card-container {
    position: relative;
    margin-bottom: 4rem;
    width: 360px;
}

/* 溢出提示样式 */
.overflow-tip {
    display: none;
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    color: var(--primary-color);
    font-size: 13px;
    text-align: center;
    padding: 4px 0;
}

/* 当内容溢出时显示提示 */
.card-container.overflow .overflow-tip {
    display: block;
}

/* 卡片内容布局样式 */
.card .content {
    padding: 20px;
}

.card h2 {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card .highlight {
    margin: 8px 0;
    line-height: 1.5;
}

.card p {
    margin: 6px 0;
    line-height: 1.6;
}

/* 卡片内容底部边距 */
.card .content p:last-child {
    margin-bottom: 16px;
}

/* 内容区域统一样式 */
#cardView .content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏Webkit浏览器的滚动条 */
#cardView .content::-webkit-scrollbar {
    display: none;
}

/* 卡片下载按钮 */
.external-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.external-btn:hover {
    background: #E62E50;
    transform: translateY(-1px);
}