/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* Banner装饰元素 */
.decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-icon,
.decoration-text {
    position: absolute;
    opacity: 0.15;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.decoration-text {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* 铅笔 */
.pencil-1 {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    transform: rotate(-45deg);
    animation: float 5s ease-in-out infinite;
}

.pencil-2 {
    bottom: 15%;
    right: 8%;
    font-size: 2.5rem;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite 1s;
}

/* 橡皮擦 */
.eraser-1 {
    top: 25%;
    right: 10%;
    font-size: 2.5rem;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite 0.5s;
}

.eraser-2 {
    bottom: 30%;
    left: 12%;
    font-size: 2rem;
    transform: rotate(-20deg);
    animation: float 5.5s ease-in-out infinite 1.5s;
}

/* 书本 */
.book-1 {
    top: 40%;
    left: 8%;
    font-size: 2.8rem;
    transform: rotate(-10deg);
    animation: float 6.5s ease-in-out infinite 0.8s;
}

.book-2 {
    top: 15%;
    right: 15%;
    font-size: 2.3rem;
    transform: rotate(20deg);
    animation: float 5.8s ease-in-out infinite 2s;
}

/* 拼音 */
.pinyin-1 {
    top: 20%;
    left: 15%;
    animation: float 5.5s ease-in-out infinite 1.2s;
}

.pinyin-2 {
    bottom: 20%;
    right: 18%;
    animation: float 6.2s ease-in-out infinite 0.3s;
}

.pinyin-3 {
    top: 50%;
    right: 5%;
    animation: float 5.8s ease-in-out infinite 1.8s;
}

/* 数字 */
.number-1 {
    top: 35%;
    right: 20%;
    font-size: 1.8rem;
    animation: float 6s ease-in-out infinite 0.6s;
}

.number-2 {
    bottom: 25%;
    left: 18%;
    font-size: 1.8rem;
    animation: float 5.5s ease-in-out infinite 1.4s;
}

/* 字母 */
.letter-1 {
    top: 45%;
    right: 12%;
    font-size: 2.2rem;
    animation: float 6.3s ease-in-out infinite 0.9s;
}

.letter-2 {
    bottom: 35%;
    right: 25%;
    font-size: 2rem;
    animation: float 5.7s ease-in-out infinite 1.6s;
}

/* 星星 */
.star-1 {
    top: 12%;
    left: 25%;
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
}

.star-2 {
    top: 55%;
    left: 5%;
    font-size: 1.3rem;
    animation: twinkle 3.5s ease-in-out infinite 0.5s;
}

.star-3 {
    bottom: 18%;
    right: 15%;
    font-size: 1.4rem;
    animation: twinkle 3.2s ease-in-out infinite 1s;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* 响应式调整 - 移动端隐藏部分装饰元素 */
@media (max-width: 768px) {
    .decoration-icon,
    .decoration-text {
        font-size: 1.5rem !important;
    }
    
    .pencil-2,
    .eraser-2,
    .book-2,
    .pinyin-3,
    .number-2,
    .letter-2,
    .star-3 {
        display: none;
    }
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 图片容器 */
.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* 按钮动画 */
.feature-button {
    transition: all 0.3s ease;
}

.feature-button:hover {
    transform: scale(1.05);
}

/* 核心特色卡片 */
.core-feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out;
}

.core-feature-card:hover {
    transform: translateY(-10px);
}

.core-feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.core-feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.core-feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.core-feature-card .fa-print,
.core-feature-card .fa-sliders-h,
.core-feature-card .fa-mobile-alt {
    transition: transform 0.3s ease;
}

.core-feature-card:hover .fa-print,
.core-feature-card:hover .fa-sliders-h,
.core-feature-card:hover .fa-mobile-alt {
    transform: scale(1.1) rotate(5deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feature-image {
        height: 180px;
    }
    
    .core-feature-card {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeIn 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 使用步骤样式 */
.step-card {
    animation: fadeIn 0.8s ease-out;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-card:nth-child(1) {
    animation-delay: 0.2s;
}

.step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.step-card:nth-child(3) {
    animation-delay: 0.6s;
}

.step-icon {
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .step-card {
        margin-bottom: 2rem;
    }
}