.text {
    font-size: 1.1rem;
    color: #b0b0d0;
    padding: 2.5rem;
    background: linear-gradient(135deg,
            rgba(17, 17, 46, 0.7) 0%,
            rgba(10, 10, 26, 0.85) 100%);
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(113, 88, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(113, 88, 226, 0.3);
    z-index: 1;
}

.text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff4757, #00d2ff, #7158e2);
    opacity: 0.7;
    border-radius: 16px 0 0 16px;
    z-index: 2;
    transition: width 0.3s ease;
}

.text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(79, 109, 245, 0.1),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.text:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 210, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.5);
}

.text:hover::before {
    width: 6px;
    opacity: 0.9;
}

.text:hover::after {
    transform: translateX(100%);
}

.text p {
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.text p:last-child {
    margin-bottom: 0;
}

.text p::before {
    content: '»';
    position: absolute;
    left: -1.5em;
    color: #ff4757;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.text:hover p::before {
    transform: translateX(5px);
    opacity: 1;
}

/* 文本中的链接样式 */
.text a {
    color: #00d2ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.text a:hover {
    color: #ffffff;
    border-bottom-color: #ff4757;
}

.text a::after {
    content: ' ↗';
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text a:hover::after {
    opacity: 1;
}

/* 文本中的强调样式 */
.text strong {
    color: #ff6b81;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 129, 0.3);
    position: relative;
}

.text em {
    color: #00d2ff;
    font-style: italic;
}

/* 代码和内联代码 */
.text code {
    background: rgba(10, 10, 26, 0.8);
    color: #ff9aa3;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 列表样式 */
.text ul,
.text ol {
    margin: 1rem 0;
    padding-left: 2.5em;
    position: relative;
    z-index: 2;
}

.text li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5em;
}

.text ul li::before {
    content: '▸';
    position: absolute;
    left: -1.5em;
    color: #00d2ff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.text ol {
    counter-reset: item;
}

.text ol li::before {
    counter-increment: item;
    position: absolute;
    left: -2em;
    color: #ff4757;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    opacity: 0.8;
}

/* 引用样式 */
.text blockquote {
    border-left: 3px solid #7158e2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #b0b0d0;
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.text blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 3rem;
    color: #7158e2;
    opacity: 0.3;
    font-family: 'Orbitron', sans-serif;
}

/* 标题样式 */
.text h2,
.text h3,
.text h4 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(113, 88, 226, 0.3);
}

.text h2::after,
.text h3::after,
.text h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff4757, #00d2ff);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* 高亮文本 */
.text .highlight {
    background: linear-gradient(90deg,
            rgba(255, 71, 87, 0.2),
            rgba(0, 210, 255, 0.2));
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ff4757;
    animation: highlightPulse 3s infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 71, 87, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
    }
}

/* 文本分隔线 */
.text hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(113, 88, 226, 0.5),
            transparent);
    margin: 2rem 0;
    position: relative;
}

.text hr::before {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(17, 17, 46, 0.9);
    padding: 0 1rem;
    color: #00d2ff;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .text {
        font-size: 1rem;
        padding: 2rem;
        margin-bottom: 2rem;
        text-indent: 1.5em;
    }

    .text p {
        text-indent: 1.5em;
    }

    .text p::before {
        left: -1.2em;
    }

    .text ul,
    .text ol {
        padding-left: 2em;
    }

    .text::before {
        width: 3px;
    }

    .text:hover::before {
        width: 4px;
    }
}

@media (max-width: 480px) {
    .text {
        padding: 1.5rem;
        border-radius: 12px;
        text-indent: 1em;
    }

    .text p {
        text-indent: 1em;
    }

    .text p::before {
        display: none;
    }

    .text h2,
    .text h3,
    .text h4 {
        font-size: 1.2rem;
    }
}