body::-webkit-scrollbar {
    display: none;
    /* 隐藏滚动条轨道和滑块 */
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    line-height: 1.6;
}

/* 认证模块样式 */
#auth {
    display: none;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 400px;
}

#auth input {
    display: block;
    margin: 10px auto;
    padding: 8px;
    width: 200px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
}

#auth input:focus {
    outline: none;
    border-color: #4096ff;
    box-shadow: 0 0 0 3px rgba(64, 150, 255, 0.1);
}

#auth button {
    padding: 8px 16px;
    margin: 10px 5px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #4096ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#auth button:hover {
    background: #69b1ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(64, 150, 255, 0.2);
}

/* 主内容区样式 */
#main {
    display: block;
}

.user-info-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4096ff 0%, #69b1ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(64, 150, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.user-info-bar:hover {
    width: 60px;
    border-radius: 25px;
    padding: 0 18px;
    box-shadow: 0 8px 30px rgba(64, 150, 255, 0.4);
    transform: translateY(-2px);
}

/* 修复用户图标居中 */
.user-info-bar::before {
    content: "👤";
    font-size: 20px;
    color: white;
    /* 关键修复：绝对定位固定在中心 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 移除宽高100% */
    width: auto;
    height: auto;
    /* 确保垂直对齐 */
    line-height: 1;
    pointer-events: none;
}

.user-info-bar:hover::before {
    display: none;
}

#userInfo {
    font-size: 12px;
    color: white;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 8px;
}

.user-info-bar:hover #userInfo,
.user-info-bar:hover .stats-info {
    opacity: 1;
}

.logout-btn {
    position: fixed;
    top: 150px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f56c6c 0%, #ff7875 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(245, 108, 108, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    width: 100px;
    border-radius: 25px;
    padding: 0 18px;
    box-shadow: 0 8px 30px rgba(245, 108, 108, 0.4);
    transform: translateY(-2px);
}

.logout-btn::before {
    content: "🚪";
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logout-btn:hover::before {
    display: none;
}

.logout-btn:hover::after {
    content: "登出";
    font-size: 14px;
    white-space: nowrap;
}

.search-section {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(82, 196, 26, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.search-section:hover {
    width: 320px;
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(82, 196, 26, 0.4);
    transform: translateY(-2px);
    gap: 10px;
}

/* 修复搜索图标居中 */
.search-section::before {
    content: "🔍";
    font-size: 20px;
    color: white;
    /* 关键修复：绝对定位固定在中心 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 移除宽高100%，避免拉伸影响 */
    width: auto;
    height: auto;
    /* 确保图标垂直对齐 */
    line-height: 1;
    /* 防止hover时闪烁 */
    pointer-events: none;
}

.search-section:hover::before {
    display: none;
}

.search-input {
    width: 100px;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-section:hover .search-input {
    opacity: 1;
    transform: translateX(0);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.search-btn,
.clear-btn {
    box-sizing: border-box;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    opacity: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-section:hover .search-btn,
.search-section:hover .clear-btn {
    opacity: 1;
    transform: translateY(0);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.clear-btn {
    background: #f5f5f5;
    color: #666;
}

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

/* 搜索结果提示样式 */
.search-result {
    position: fixed;
    top: 130px;
    right: 20px;
    display: none;
    padding: 6px 10px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* 按钮禁用状态 */
.btn:disabled {
    background: #8cc5ff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* 卡片悬停效果增强 */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式网格布局改进 */
@media (max-width: 480px) {
    #sourceHtml {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .card {
        padding: 12px;
        max-height: 240px;
    }

    .card .img {
        width: 140px;
        height: 100px;
    }

    .card .word {
        font-size: 20px;
    }

    .card .mean {
        font-size: 13px;
    }
}

/* 加载指示器样式 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #666;
    font-size: 16px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4096ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 使用说明样式 */
.usage-guide {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.usage-guide h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.usage-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-guide li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.usage-guide li:last-child {
    border-bottom: none;
}

.usage-guide strong {
    color: #4096ff;
}

.container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

#sourceHtml {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-height: 280px;
    cursor: pointer;
    overflow: hidden;
}

.card .img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 8px;
    display: block;
}

.card .word {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.card .phonetic {
    color: #666;
    font-style: italic;
    margin-bottom: 4px;
}

.card .mean {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.card .sound {
    display: none;
    /* 隐藏音频文件名 */
}

/* 高亮样式 - 跟读时当前卡片 */
.card.highlight {
    background-color: #e6f7ff;
    border: 2px solid #4096ff;
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(64, 150, 255, 0.2);
}

/* 控制器样式 */
.controller {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    /* 顶部圆角，底部平角 */
    padding: 15px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    /* 确保在内容上方 */
    max-width: 1200px;
    /* 与容器宽度一致 */
    margin: 0 auto;
    /* 居中 */
    overflow-x: auto;
    /* 横向滚动 */
    -webkit-overflow-scrolling: touch;
    /* 移动端顺滑滚动（iOS优化） */
}

.control-group {
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    white-space: nowrap;
    /* 强制子元素不换行（核心！） */
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #4096ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn:hover {
    background: #69b1ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(64, 150, 255, 0.2);
}

.btn:active {
    background: #3086e8;
    transform: translateY(0);
    box-shadow: none;
}

.btn:disabled {
    background: #8cc5ff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn.start {
    background: #52c41a;
}

.btn.start:hover {
    background: #73d13d;
}

.btn.start:active {
    background: #4cae4c;
}

.btn.pause {
    background: #faad14;
}

.btn.pause:hover {
    background: #ffc53d;
}

/* 输入框样式 */
.input {
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 80px;
}

.input:focus {
    outline: none;
    border-color: #4096ff;
    box-shadow: 0 0 0 3px rgba(64, 150, 255, 0.1);
}

.setting-label {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.print-page-indicator {
    display: none;
}

/* 弹出框样式 */
/* 弹出框居中核心样式 */
.detail-popup {
    position: fixed;
    /* 固定定位，脱离文档流 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    /* 默认隐藏，JS控制显示 */
    /* 用Flex实现子元素（弹出框内容）居中 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    /* 点击弹出框外部（遮罩区）关闭，需保留父容器全屏 */
    pointer-events: none;
}

/* 弹出框内容容器（实际显示的卡片） */
.detail-popup .popup-inner {
    position: absolute;
    width: 90%;
    /* 适配移动端，最大宽度限制 */
    max-width: 500px;
    /* 桌面端最大宽度，避免太宽 */
    max-height: 80vh;
    /* 移动端最大高度，避免超出屏幕 */
    overflow-y: auto;
    /* 内容过多时滚动 */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    animation: popup 0.3s ease-out;
    /* 允许点击弹出框内部元素（如关闭按钮） */
    pointer-events: auto;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-content {
    /* margin-bottom: 20px; */
}

.popup-section {
    margin-bottom: 18px;
}

.popup-section-title {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-section-title::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
}

.popup-section-content {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
}

.popup-close {
    position: absolute;
    /* top: 15px; */
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #95a5a6;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

/* 弹出框图片样式 */
.popup-img-group {
    margin-bottom: 15px;
    gap: 10px;
    display: flex;
    justify-content: center;
    /* 图片垂直排列，也可改 row 横向排列 */
}

/* 弹出框图片样式 */
.popup-img-group {
    margin-bottom: 15px;
    gap: 10px;
    display: flex;
    justify-content: center;
    /* 图片垂直排列，也可改 row 横向排列 */
}

.popup-img-container {
    /* width: 100%; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    /* 让图片圆角和容器对齐 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 主图样式 */
.popup-main-img {
    height: 200px;
    /* width: 200px; */
    /* 固定主图高度，避免拉伸 */
    object-fit: cover;
    /* 保持图片比例，裁剪多余部分 */
}

/* 变形图样式（可根据需求调整大小） */
.popup-deformation-img {
    width: 100%;
    max-height: 150px;
    /* height: 80px; */
    /* 变形图比主图矮一些，区分主次 */
    object-fit: cover;
}

/* 文字区域顶部间距（和图片区隔开） */
.popup-text-group {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    /* 加一条分割线，区分图文 */
}

.popup-save-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.save-tip {
    /* 固定定位：顶部居中 */
    position: fixed;
    top: 20px;
    /* 初始隐藏在顶部视口外 */
    left: 50%;
    transform: translateX(-50%);
    /* 水平居中 */
    z-index: 9999;
    /* 覆盖所有元素 */
    /* Element UI 风格样式 */
    padding: 12px 20px;
    border-radius: 4px;
    background: #f0f9eb;
    /* 成功消息底色 */
    color: #67c23a;
    /* 成功文字色 */
    font-size: 14px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    /* 淡阴影 */
    white-space: nowrap;
    /* 防止换行 */
    /* 滑入/滑出动画（300ms 平滑过渡） */
    transition: top 0.3s ease-out;
    pointer-events: none;
    /* 不影响点击 */
}

#save:disabled~.save-tip {
    top: 50px;
    /* 从顶部滑入，距离顶部20px */
}

#save:disabled~.save-tip:not(:empty) {
    top: 50px;
    /* 从顶部滑入到可见位置 */
}

.save-tip:empty {
    top: -50px !important;
    /* 无论按钮状态，空文本时回到隐藏位置 */
}

/* 标题样式 */
.popup-title-group {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

.popup-word-title {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.popup-accent-subtitle {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* 表格样式 */
.word-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.word-detail-table th {
    background: #f5f7fa;
    color: #333;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ebeef5;
    width: 90px;
}

.word-detail-table td {
    padding: 12px 15px;
    border: 1px solid #ebeef5;
    color: #666;
    vertical-align: middle;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .control-group {
        display: inline-block;
        gap: 10px;
        /* 缩小按钮间距 */
    }

    .container {
        padding: 15px;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .img {
        height: 150px;
    }

    .detail-popup {
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .user-info-bar {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .user-info-bar:hover {
        width: 120px;
    }

    .search-section {
        top: 65px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .search-section:hover {
        width: 200px;
    }

    .logout-btn {
        top: 120px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .logout-btn:hover {
        width: 85px;
    }

    .search-result {
        top: 120px;
        right: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .search-section {
        gap: 10px;
    }

    .search-input {
        width: 100%;
    }

    .search-btn,
    .clear-btn {
        width: 100%;
        padding: 14px;
    }

    #auth {
        margin: 10px;
        padding: 15px;
    }

    #auth input {
        box-sizing: border-box;
        width: 100%;
        margin: 8px 0;
    }

    #auth button {
        width: 100%;
        margin: 8px 0;
    }

    .logout-btn {
        position: static;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 打印样式 */
@media print {

    /* 横向打印设置 */
    @page {
        size: landscape;
        /* 横向 */
        margin: 0.5cm;
        /* 页边距，避免内容贴边 */
    }

    /* 打印时移除页面默认边距 */
    body,
    .container {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }

    .print-page-indicator {
        display: block;
        position: fixed;
        bottom: 0cm;
        right: 0cm;
        font-family: Arial, sans-serif;
        font-size: 14px;
        color: black;
        font-weight: bolder;
        border: 2px dashed #448f44;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        line-height: 30px;
        /* 与高度一致，实现垂直居中 */
        text-align: center;
        /* 实现水平居中 */
        z-index: 9999;
        /* 确保层级最高，不被其他元素遮挡 */
    }

    /* 打印时隐藏样式 */
    .not_display_on_print {
        display: none !important;
    }


    .card:hover {
        transform: none;
        box-shadow: none;
    }

    /* 打印时内容区取消底部留白 */
    #sourceHtml {
        margin-bottom: 0;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        /* 一行8个卡片 */
        gap: 10px;
        /* 卡片间距缩小，适合打印 */
        max-height: 100vh;
        /* 限制高度为一页 */
        overflow: hidden;
        /* 超出4行的内容不打印 */
    }

    /* 打印时卡片样式调整 */
    .card {
        box-shadow: none;
        /* 移除阴影，节省墨水 */
        border: 1px solid #ddd;
        /* 细边框，清晰分隔 */
        padding: 8px;
        /* 缩小内边距 */
        page-break-inside: avoid;
        /* 避免卡片被分页截断 */
    }

    /* 卡片内容尺寸适配打印 */
    .card .img {
        width: 110px;
        height: 75px;
        /* 缩小图片 */
        margin-bottom: 3px;
    }

    .card .word {
        border-bottom: #333 solid 1px;
        color: transparent !important;
        /* 强制隐藏文字 */
        position: relative !important;
        /* 确保伪元素相对此定位 */
        display: block !important;
        /* 占满一行 */
        height: 22px !important;
        /* 固定高度，确保下划线有空间 */
    }

    .card .phonetic {
        display: none;
        font-size: 12px;
        margin-bottom: 2px;
        white-space: nowrap;
        /* 禁止文本换行 */
        overflow: hidden;
        /* 隐藏超出部分 */
        text-overflow: ellipsis;
        /* 超出部分显示省略号（可选，增强体验） */
        width: 100%;
        /* 确保宽度适应卡片，避免提前截断 */
    }

    .card .mean {
        padding-top: 12px;
        font-size: 11px;
        line-height: 1.2;
        display: -webkit-box;
        /* 启用弹性盒模型 */
        -webkit-box-orient: vertical;
        /* 垂直排列 */
        -webkit-line-clamp: 3;
        /* 限制显示3行 */
        overflow: hidden;
        /* 隐藏超出部分 */
        text-overflow: ellipsis;
        /* 可选：超出部分显示省略号 */
        height: calc(11px * 1.2 * 3);
        /* 固定高度（字号×行高×行数），确保不塌陷 */
    }

    /* 确保只打印4行（8×4=32个），超出部分隐藏 */
    .card:nth-child(n+33) {
        display: none;
    }
}