        /* 核心容器样式 */
        .collapsible-text {
            width: 100%;
            margin: 20px auto;
            font-family: "Microsoft Yahei", sans-serif;
            line-height: 1.6;
            color: #333;
        }

        /* 内容容器 - 默认限制高度 */
        .text-content {
            max-height: calc(1.6em * 18); /* 3行高度 = 行高 × 行数 */
            overflow: hidden;
            position: relative;
            transition: max-height 0.3s ease;
        }

        /* 渐变遮罩效果 */
        .text-content::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3em;
            background: linear-gradient(to bottom, transparent, #fff);
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.3s ease;
        }

        /* 隐藏默认复选框 */
        .toggle-checkbox {
            display: none;
        }

        /* 展开状态：取消高度限制 */
        .toggle-checkbox:checked ~ .text-content {
            max-height: 10000000000000px; /* 足够大的值确保内容完全展开 */
        }

        /* 展开状态：隐藏渐变遮罩 */
        .toggle-checkbox:checked ~ .text-content::after {
            opacity: 0;
        }

        /* 按钮样式 */
        .toggle-button {
            display: block;
            margin-top: 10px;
            padding: 8px 16px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-align: center;
            transition: background-color 0.3s;
        }

        .toggle-button:hover {
            background-color: #0056b3;
        }

        /* 切换按钮文本 */
        .toggle-checkbox:not(:checked) ~ .toggle-button::before {
            content: "展开更多";
        }

        .toggle-checkbox:checked ~ .toggle-button::before {
            content: "收起";
        }