/* Material Icons 图标样式 */

/* 全局图标优化 */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* 底部导航图标样式 */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.nav-icon .material-symbols-outlined {
    font-size: 28px;
}

/* 活跃状态 */
.nav-item.active .nav-icon .material-symbols-outlined {
    transform: scale(1.1);
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

/* 图标按钮 */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn .material-symbols-outlined {
    font-size: 24px;
}

/* 功能图标 */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-icon .material-symbols-outlined {
    font-size: 32px;
}

/* 图标渐变背景 */
.icon-gradient-orange {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    color: white;
}

.icon-gradient-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.icon-gradient-green {
    background: linear-gradient(135deg, #56d364 0%, #26d07c 100%);
    color: white;
}

.icon-gradient-blue {
    background: linear-gradient(135deg, #64B5F6 0%, #FFFFFF 100%);
    color: white;
}

.icon-gradient-sky {
    background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 100%);
    color: white;
}

.icon-gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.icon-gradient-purple {
    background: linear-gradient(135deg, #64B5F6 0%, #FFFFFF 100%);
    color: white;
}

/* 动画效果 */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.nav-item:active .nav-icon {
    animation: iconPulse 0.3s ease;
}

/* 菜单图标 */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.menu-icon .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

/* header滚动状态下的图标颜色 */
.header.scrolled .icon-btn .material-symbols-outlined {
    color: #333;
}
