/* 问题框样式 */
.intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.questions-box {
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.05), rgba(247, 125, 170, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.question-item {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(122, 162, 247, 0.1);
}

.question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #7aa2f7, #f77daa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.12);
    border-color: rgba(122, 162, 247, 0.2);
}

.question-item:hover::before {
    opacity: 1;
}

.question-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(122, 162, 247, 0.1);
    border-radius: 10px;
    margin-right: 1.2rem;
    transition: all 0.3s ease;
}

.question-icon {
    font-size: 1.5rem;
    color: #7aa2f7;
    transition: all 0.3s ease;
}

.question-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.question-item:hover .question-icon-wrap {
    background: rgba(247, 125, 170, 0.1);
    transform: rotate(-5deg);
}

.question-item:hover .question-icon {
    color: #f77daa;
    transform: scale(1.1);
}

.question-text {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.4;
}

.question-item:hover .question-text {
    color: var(--primary-color);
}

@keyframes floatQuestion {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.question-item:nth-child(1) { 
    animation: floatQuestion 3s ease-in-out infinite;
}

.question-item:nth-child(2) { 
    animation: floatQuestion 3s ease-in-out infinite 0.5s;
}

.question-item:nth-child(3) { 
    animation: floatQuestion 3s ease-in-out infinite 1s;
}

.questions-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.questions-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.questions-box:hover .particle {
    opacity: 0.3;
    animation: particleFloat 3s ease-in-out infinite;
}

.questions-particles .particle:nth-child(1) { top: 20%; left: 10%; }
.questions-particles .particle:nth-child(2) { top: 60%; right: 15%; animation-delay: 0.5s; }
.questions-particles .particle:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 1s; }
.questions-particles .particle:nth-child(4) { top: 40%; right: 25%; animation-delay: 1.5s; }
.questions-particles .particle:nth-child(5) { bottom: 30%; right: 10%; animation-delay: 2s; }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-8px) translateX(4px); opacity: 0.1; }
    100% { transform: translateY(0) translateX(0); opacity: 0.3; }
}

/* 书页翻动动画 */
@keyframes pageFlipping {
    0% { transform: scale(1); }
    25% { transform: scale(1.05) rotate(5deg); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.05) rotate(-5deg); }
    100% { transform: scale(1); }
}

/* 书本发光效果 */
@keyframes bookGlow {
    0% { text-shadow: 0 0 8px rgba(122, 162, 247, 0.4); }
    50% { text-shadow: 0 0 15px rgba(122, 162, 247, 0.7); }
    100% { text-shadow: 0 0 8px rgba(122, 162, 247, 0.4); }
}

/* 书本翻页动画效果 */
#story .animated-title .book-cover,
#story .animated-title .book-pages {
    display: inline-block;
    transition: all 0.5s ease;
    position: relative;
}

#story .animated-title .book-cover {
    color: #7aa2f7;
    transform-origin: left center;
    z-index: 2;
}

#story .animated-title .book-pages {
    color: #f77daa;
    margin-left: -14px; /* 负边距使两个图标重叠 */
    opacity: 0;
    transform: rotateY(-90deg);
    transform-origin: left center;
    z-index: 1;
}

#story .animated-title:hover .book-cover {
    transform: rotateY(-120deg);
    opacity: 0;
    color: #7aa2f7;
    text-shadow: 0 0 8px rgba(122, 162, 247, 0.4);
}

#story .animated-title:hover .book-pages {
    transform: rotateY(0);
    opacity: 1;
    animation: 
        pageFlipping 3s ease-in-out infinite,
        bookGlow 2s ease-in-out infinite;
}

#story .animated-title:hover {
    color: #7aa2f7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .questions-box {
        padding: 1.5rem 1rem;
    }
    
    .question-item {
        flex-direction: row;
        padding: 1rem;
    }
    
    .question-icon-wrap {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
}

/* 四方格布局 */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 15px;
    margin: 20px 0;
    max-width: 100%;
}

.story-grid .grid-item {
    margin: 0;
    height: 100%;
}

.story-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, auto);
    }
}

/* 改进的视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding-top: 56.25%; /* 16:9 比例 */
    box-shadow: 0 4px 16px rgba(122, 162, 247, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 8px 24px rgba(122, 162, 247, 0.2);
}

/* 视频封面样式 */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.video-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all 0.5s ease;
}

.video-cover:hover .video-preview-img {
    transform: scale(1.02);
    opacity: 1;
}

/* 播放按钮样式 */
.play-button {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.play-button i {
    font-size: 25px;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.video-cover:hover .play-button {
    transform: scale(1.1);
    background: rgba(247, 125, 170, 0.4);
    box-shadow: 0 0 20px rgba(247, 125, 170, 0.4);
}

/* 视频iframe容器 */
.video-frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02); /* 非常轻微的背景，避免完全透明时的闪烁 */
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: transparent;
}

/* 确保视频播放器不会出现边框和黑色背景 */
iframe {
    background-color: transparent !important;
    border: none !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 18px;
    }
}

/* 故事笔记样式 */
.story-note {
    font-style: italic;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.08), rgba(247, 125, 170, 0.05));
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(122, 162, 247, 0.06);
    transition: all 0.3s ease;
}

.story-note::before {
    content: '"';
    font-size: 3rem;
    color: rgba(122, 162, 247, 0.1);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: serif;
}

.story-note::after {
    content: '"';
    font-size: 2rem;
    color: rgba(247, 125, 170, 0.1);
    position: absolute;
    bottom: -2rem;
    right: 0.5rem;
    font-family: serif;
}

.story-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 162, 247, 0.1);
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.1), rgba(247, 125, 170, 0.07));
}

.story-note a {
    position: relative;
    color: var(--primary-color);
    text-decoration: none;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.story-note a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.story-note a:hover {
    color: var(--accent-color);
}

.story-note a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    .story-note {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .story-note::before,
    .story-note::after {
        font-size: 2rem;
    }
}

/* Logo 故事标题动画效果 */
.logo-story-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

/* Logo故事图标基础样式 */
.logo-story-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.15), rgba(247, 125, 170, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    animation: iconPulse 4s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(122, 162, 247, 0.2);
}

/* 主图标 */
.logo-story-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* 替代图标 */
.logo-story-icon .alt-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
    z-index: 3;
}

.logo-story-icon .alt-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(247, 125, 170, 0.3));
}

/* 悬停效果 - 仅在图标上悬停时触发 */
.logo-story-icon:hover {
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.2), rgba(247, 125, 170, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(247, 125, 170, 0.3);
}

.logo-story-icon:hover > i:first-child {
    opacity: 0;
    transform: scale(0);
}

.logo-story-icon:hover .alt-icon {
    opacity: 1;
    transform: scale(1);
    animation: iconBounce 1s ease-in-out;
}

/* 移除旧的header悬停选择器 */
.logo-story-header:hover .logo-story-icon i,
.logo-story-header:hover .logo-story-icon .alt-icon,
.logo-story-header:hover .logo-story-icon::before {
    /* 规则已被替换，这里删除旧的样式 */
}

.logo-story-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.logo-story-title::after {
    content: '关于 Logo 的故事';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform-origin: center;
}

.logo-story-header:hover .logo-story-title::after {
    opacity: 1;
    animation: titleShift 3s ease-in-out infinite;
}

.logo-story-decoration {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.deco-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.deco-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.deco-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: lineShine 3s ease-in-out infinite;
}

.logo-story-header:hover .deco-circle {
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Logo 动效关键帧动画 */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(247, 125, 170, 0.3); }
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes iconShine {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: scale(2); }
}

@keyframes lineShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes titleShift {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .logo-story-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-story-icon i {
        font-size: 1.8rem;
    }
    
    .logo-story-title {
        font-size: 1.8rem;
    }
    
    .deco-line {
        width: 80px;
    }
}

/* 梦开始的地方 - 标题动画效果 */
.story-begin-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.story-begin-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.2), rgba(100, 140, 230, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    animation: storyIconFloat 6s ease-in-out infinite alternate;
    box-shadow: 0 5px 20px rgba(122, 162, 247, 0.25);
}

/* 背景装饰效果 */
.story-begin-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(122, 162, 247, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 70% 70%, rgba(122, 162, 247, 0.3) 0%, transparent 15%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: storyBgPulse 4s ease-in-out infinite alternate;
}

/* 粒子光效 */
.story-begin-icon::after {
    content: '';
    position: absolute;
    inset: -20%;
    border-radius: 40%;
    background: conic-gradient(
        transparent 0deg,
        transparent 70deg,
        rgba(122, 162, 247, 0.2) 90deg,
        rgba(122, 162, 247, 0.1) 180deg,
        transparent 220deg,
        rgba(122, 162, 247, 0.1) 300deg,
        rgba(122, 162, 247, 0.2) 340deg,
        transparent 360deg
    );
    opacity: 0.7;
    animation: storyRotateConic 10s linear infinite;
}

/* 星星装饰 */
.story-begin-icon .story-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px rgba(122, 162, 247, 0.8);
}

.story-begin-icon .story-star:nth-child(1) {
    top: 25%;
    left: 20%;
    animation: storyStarTwinkle 3s ease-in-out infinite;
}

.story-begin-icon .story-star:nth-child(2) {
    top: 15%;
    right: 25%;
    animation: storyStarTwinkle 2.5s ease-in-out infinite 0.5s;
}

.story-begin-icon .story-star:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation: storyStarTwinkle 3.2s ease-in-out infinite 0.3s;
}

.story-begin-icon .story-star:nth-child(4) {
    bottom: 25%;
    right: 20%;
    animation: storyStarTwinkle 3.7s ease-in-out infinite 1s;
}

/* 故事开始图标悬停效果 - 仅悬停在图标上时触发 */
.story-begin-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 
        0 8px 30px rgba(122, 162, 247, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.3), rgba(100, 140, 230, 0.2));
}

.story-begin-icon:hover > i.fas.fa-book {
    opacity: 0;
    transform: scale(0);
}

.story-begin-icon:hover .book-open {
    opacity: 1;
    transform: scale(1);
}

.story-begin-icon:hover .book-open i {
    animation: pageFlipping 3s ease-in-out infinite, pinkBookGlow 2s ease-in-out infinite;
}

/* 添加粉色书本发光效果 */
@keyframes pinkBookGlow {
    0% { text-shadow: 0 0 8px rgba(247, 125, 170, 0.4); }
    50% { text-shadow: 0 0 15px rgba(247, 125, 170, 0.7); }
    100% { text-shadow: 0 0 8px rgba(247, 125, 170, 0.4); }
}

/* 增强动画关键帧 */
@keyframes storyIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes storyBgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes storyRotateConic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes storyStarTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes storyBookBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes storyPageTurn {
    0%, 45%, 100% { transform: rotateY(0); }
    50%, 95% { transform: rotateY(-15deg); }
}

@keyframes storyRipple {
    0% { opacity: 0.8; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* 线条流光效果 */
@keyframes storyLineShine {
    0% { left: -100%; }
    40%, 60% { left: 100%; }
    100% { left: 100%; }
}

.story-begin-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4d76e0, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(122, 162, 247, 0.1);
}

.story-begin-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4d76e0, var(--primary-color));
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.story-begin-header:hover .story-begin-title::before {
    width: 100%;
}

.story-begin-decoration {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.story-begin-decoration .deco-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4d76e0;
    transition: all 0.3s ease;
}

.story-begin-decoration .deco-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #4d76e0, var(--primary-color));
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.story-begin-decoration .deco-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: storyLineShine 4s ease-in-out infinite;
}

.story-begin-header:hover .story-begin-decoration .deco-circle {
    transform: scale(1.5) rotate(180deg);
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.6);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .story-begin-icon {
        width: 60px;
        height: 60px;
    }
    
    .story-begin-icon i {
        font-size: 1.8rem;
    }
    
    .story-begin-title {
        font-size: 1.8rem;
    }
    
    .story-begin-decoration .deco-line {
        width: 80px;
    }
}

/* 关于名字的由来 - 标题动画效果 */
.name-origin-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.name-origin-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 125, 170, 0.15), rgba(255, 150, 190, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    animation: nameIconRotate 8s linear infinite;
    box-shadow: 0 5px 20px rgba(247, 125, 170, 0.2);
}

.name-origin-icon::before, 
.name-origin-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(247, 125, 170, 0.4);
    border-right-color: rgba(247, 125, 170, 0.2);
    animation: nameRingRotate 4s linear infinite;
}

.name-origin-icon::after {
    border-top-color: transparent;
    border-left-color: rgba(247, 125, 170, 0.4);
    animation-duration: 6s;
    animation-direction: reverse;
}

.name-origin-header:hover .name-origin-icon {
    /* 已被新选择器替换，移除 */
}

.name-origin-header:hover .name-origin-icon::before,
.name-origin-header:hover .name-origin-icon::after {
    /* 已被新选择器替换，移除 */
}

.name-origin-header:hover .name-origin-icon > i {
    /* 已被新选择器替换，移除 */
}

.name-origin-header:hover .name-origin-icon .alt-icon {
    /* 已被新选择器替换，移除 */
}

.name-origin-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e56a9b, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.name-origin-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.5s ease;
}

.name-origin-header:hover .name-origin-title::after {
    width: 100%;
}

.name-origin-decoration {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    position: relative;
}

.name-origin-decoration .deco-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.name-origin-decoration .deco-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #e56a9b);
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.name-origin-decoration .deco-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: nameLineSlide 3s ease-in-out infinite;
    transform: translateX(-100%);
}

.name-origin-header:hover .name-origin-decoration .deco-circle {
    background: linear-gradient(135deg, var(--accent-color), #e56a9b);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(247, 125, 170, 0.6);
}

/* 名字由来 - 动画关键帧 */
@keyframes nameIconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nameRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nameLineSlide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .name-origin-icon {
        width: 60px;
        height: 60px;
    }
    
    .name-origin-icon i {
        font-size: 1.8rem;
    }
    
    .name-origin-title {
        font-size: 1.8rem;
    }
    
    .name-origin-decoration .deco-line {
        width: 80px;
    }
}

/* 名字由来图标悬停效果 - 仅悬停在图标上时触发 */
.name-origin-icon:hover {
    box-shadow: 0 8px 30px rgba(247, 125, 170, 0.4);
}

.name-origin-icon:hover::before,
.name-origin-icon:hover::after {
    animation-play-state: paused;
}

.name-origin-icon:hover > i {
    opacity: 0;
    transform: scale(0);
}

.name-origin-icon:hover .alt-icon {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

/* Logo故事图标悬停效果 - 仅悬停在图标上时触发 */
.logo-story-icon:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    animation: iconShine 1.5s ease-out forwards;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 4;
}

.logo-story-icon:hover > i.fas.fa-image {
    opacity: 0;
    transform: scale(0);
}

.logo-story-icon:hover .alt-icon {
    opacity: 1;
    transform: scale(1);
    animation: iconBounce 1s ease-in-out;
}

/* 删除旧的header悬停选择器 */
.story-begin-header:hover .story-begin-icon,
.name-origin-header:hover .name-origin-icon,
.logo-story-header:hover .logo-story-icon,
.story-begin-header:hover .story-begin-icon > i.fas.fa-book,
.story-begin-header:hover .story-begin-icon .book-open,
.story-begin-header:hover .story-begin-icon .book-open i,
.name-origin-header:hover .name-origin-icon > i,
.name-origin-header:hover .name-origin-icon .alt-icon,
.logo-story-header:hover .logo-story-icon > i,
.logo-story-header:hover .logo-story-icon .alt-icon,
.name-origin-header:hover .name-origin-icon::before,
.name-origin-header:hover .name-origin-icon::after,
.logo-story-header:hover .logo-story-icon::before {
    /* 已被新选择器替换，删除这些规则 */
    transition: none;
}

/* 图标主体样式 */
.story-begin-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 3;
    animation: storyBookBreathe 3s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900; /* 确保图标正确加载 */
}

/* 翻页效果 - 简化实现 */
.story-begin-icon .book-open {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.story-begin-icon .book-open i {
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(247, 125, 170, 0.3));
}

/* 名字由来图标基础样式 */
.name-origin-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.5s ease;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900; /* 确保图标正确加载 */
}

.name-origin-icon .alt-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.name-origin-icon .alt-icon i {
    font-size: 2.5rem;
    color: #f77daa;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 平滑过渡效果 */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 结语部分样式 */
.conclusion-story-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

/* 结语图标基础样式 */
.conclusion-story-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 125, 170, 0.15), rgba(122, 162, 247, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    animation: conclusionPulse 4s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(247, 125, 170, 0.2);
}

/* 主图标 */
.conclusion-story-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.5s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* 替代图标 */
.conclusion-story-icon .alt-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
    z-index: 3;
}

.conclusion-story-icon .alt-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(122, 162, 247, 0.3));
}

/* 悬停效果 - 仅在图标上悬停时触发 */
.conclusion-story-icon:hover {
    background: linear-gradient(135deg, rgba(247, 125, 170, 0.2), rgba(122, 162, 247, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(122, 162, 247, 0.3);
}

.conclusion-story-icon:hover > i:first-child {
    opacity: 0;
    transform: scale(0);
}

.conclusion-story-icon:hover .alt-icon {
    opacity: 1;
    transform: scale(1);
    animation: conclusionBounce 1s ease-in-out;
}

.conclusion-story-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.conclusion-story-title::after {
    content: '结语';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform-origin: center;
}

.conclusion-story-header:hover .conclusion-story-title::after {
    opacity: 1;
    animation: conclusionTitleShift 3s ease-in-out infinite;
}

.conclusion-story-decoration {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.conclusion-story-header .deco-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.conclusion-story-header .deco-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.conclusion-story-header .deco-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: conclusionLineShine 3s ease-in-out infinite;
}

.conclusion-story-header:hover .deco-circle {
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 结语动效关键帧动画 */
@keyframes conclusionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(122, 162, 247, 0.3); }
}

@keyframes conclusionBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes conclusionLineShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes conclusionTitleShift {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .conclusion-story-icon {
        width: 60px;
        height: 60px;
    }
    
    .conclusion-story-icon i {
        font-size: 1.8rem;
    }
    
    .conclusion-story-title {
        font-size: 1.8rem;
    }
}

.conclusion-story-icon::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(247, 125, 170, 0.3), transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    z-index: 1;
}

.conclusion-story-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(122, 162, 247, 0.5);
    transform: rotate(0deg);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.conclusion-story-icon:hover::before {
    opacity: 0.6;
    transform: scale(1);
    animation: conclusionGlow 2s ease-in-out infinite;
}

.conclusion-story-icon:hover::after {
    border-color: rgba(247, 125, 170, 0.8);
    animation: conclusionRotate 10s linear infinite;
}

.conclusion-story-header .conclusion-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.conclusion-story-header .conclusion-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.conclusion-story-header:hover .conclusion-particle {
    opacity: 0.5;
    animation: conclusionFloat 3s ease-in-out infinite;
}

.conclusion-story-header .conclusion-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0.2s;
}

.conclusion-story-header .conclusion-particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 0.7s;
}

.conclusion-story-header .conclusion-particle:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 1.2s;
}

.conclusion-story-header .conclusion-particle:nth-child(4) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.conclusion-story-header .conclusion-particle:nth-child(5) {
    bottom: 30%;
    right: 10%;
    animation-delay: 1s;
}

#conclusion p {
    position: relative;
    transition: all 0.3s ease;
    padding: 0 2px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#conclusion p:hover {
    background: linear-gradient(90deg, rgba(247, 125, 170, 0.05), rgba(122, 162, 247, 0.05));
    transform: translateX(5px);
}

@keyframes conclusionGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

@keyframes conclusionRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes conclusionFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(5px);
    }
}

#conclusion .emphasis-text {
    position: relative;
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0 1px;
}

#conclusion .emphasis-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

#conclusion .emphasis-text:hover {
    text-shadow: 0 2px 8px rgba(247, 125, 170, 0.3);
    transform: translateY(-1px);
}

#conclusion .emphasis-text:hover::after {
    transform: scaleX(1);
}

#conclusion .primary-text {
    color: var(--primary-color);
    font-weight: 600;
}

#conclusion .feature-box {
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(247, 125, 170, 0.1), transparent 80%);
    padding: 1rem;
    margin: 1.5rem 0;
    transform: translateZ(0);
    transition: all 0.3s ease;
}

#conclusion .feature-box:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.1), transparent 80%);
    transform: translateX(5px);
}

/* 为李笑来的引用添加的特殊样式 */
.quote-highlight {
    display: inline-block;
    position: relative;
    font-weight: 700;
    font-size: 1.2em;
    color: #f77daa;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.08) 0%, rgba(247, 125, 170, 0.08) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    transition: all 0.4s ease;
    width: 100%;
    line-height: 1.5;
}

.quote-highlight::before,
.quote-highlight::after {
    content: '"';
    font-size: 1.5em;
    font-family: 'Georgia', serif;
    color: rgba(247, 125, 170, 0.5);
    position: absolute;
    height: 30px;
    width: 30px;
}

.quote-highlight::before {
    top: -15px;
    left: 10px;
}

.quote-highlight::after {
    bottom: -25px;
    right: 10px;
}

.quote-highlight:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.12) 0%, rgba(247, 125, 170, 0.12) 100%);
}

.quote-highlight:hover::before,
.quote-highlight:hover::after {
    color: rgba(247, 125, 170, 0.8);
}

@media (max-width: 768px) {
    .quote-highlight {
        font-size: 1.1em;
        padding: 0.4rem 0.8rem;
    }
} 