/* 
 * 特色导航区域样式
 * 版本: 2.0.0
 */

.featured-nav-section {
    padding: 40px 0 30px;
    background-color: var(--light-bg);
    margin-bottom: 30px;
}

/* 特色导航块容器 */
.featured-nav-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 单个特色导航项 */
.featured-nav-item {
    flex: 0 0 calc(24% - 7.5px);
    width: calc(24% - 7.5px);
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 导航块待上线标签样式 */
.featured-nav-item .coming-soon,
.upload-tool-container .coming-soon {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 5px 12px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 10;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

.coming-soon-white {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.featured-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    height: 100%;
    text-align: center;
}

.featured-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.featured-icon {
    background-color: rgba(0, 123, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.featured-icon i {
    font-size: 2em;
    color: var(--primary-color);
}

.featured-content {
    flex-grow: 1;
    width: 100%;
}

.featured-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--dark-text);
}

.featured-content p {
    font-size: 0.85em;
    color: var(--light-text);
    margin: 0;
    line-height: 1.4;
}

/* 家庭教育导航块特殊样式 */
.family-education {
    background-color: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.family-education .featured-icon {
    background-color: rgba(0, 123, 255, 0.15);
}

.family-education .featured-icon i {
    color: var(--primary-color);
}

/* 教育工具导航块特殊样式 */
.education-tools {
    background-color: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.education-tools .featured-icon {
    background-color: rgba(76, 175, 80, 0.15);
}

.education-tools .featured-icon i {
    color: #4CAF50;
}

/* 考生助手导航块特殊样式 */
.exam-assistant {
    background-color: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.1);
}

.exam-assistant .featured-icon {
    background-color: rgba(255, 152, 0, 0.15);
}

.exam-assistant .featured-icon i {
    color: #FF9800;
}

/* 职场提效导航块特殊样式 */
.workplace-efficiency {
    background-color: rgba(156, 39, 176, 0.05);
    border: 1px solid rgba(156, 39, 176, 0.1);
}

.workplace-efficiency .featured-icon {
    background-color: rgba(156, 39, 176, 0.15);
}

.workplace-efficiency .featured-icon i {
    color: #9C27B0;
}

/* 深色模式下的特色导航区域 */
[data-theme="dark"] .featured-nav-section {
    background-color: var(--light-bg);
}

[data-theme="dark"] .featured-nav-item {
    background-color: var(--white-bg);
}

[data-theme="dark"] .family-education {
    background-color: rgba(58, 142, 255, 0.1);
}

[data-theme="dark"] .education-tools {
    background-color: rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .exam-assistant {
    background-color: rgba(255, 152, 0, 0.1);
}

[data-theme="dark"] .workplace-efficiency {
    background-color: rgba(156, 39, 176, 0.1);
}

/* 上传工具导航块 */
.upload-tool-container {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.upload-tool-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    background-color: var(--primary-hover);
}

.upload-tool-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
}

.upload-tool-content i {
    font-size: 1.6em;
    margin-right: 12px;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .featured-nav-container {
        gap: 8px;
        padding: 0 5px; /* 增加左右内边距，防止内容贴边 */
    }
    
    .featured-nav-item {
        flex: 0 0 calc(49% - 4px);
        width: calc(49% - 4px);
        min-height: 120px; /* 设置最小高度，确保内容不会溢出 */
    }
    
    .featured-content-wrapper {
        padding: 15px 12px; /* 调整内边距，确保内容不会超出边框 */
    }
    
    /* 小屏幕下隐藏介绍文字 */
    .featured-content p {
        display: none;
    }
    
    .featured-content h3 {
        font-size: 1.1em;
        line-height: 1.3;
        word-wrap: break-word; /* 确保长文本能够换行 */
    }
}

@media (max-width: 480px) {
    .featured-nav-container {
        gap: 8px;
        padding: 0 8px; /* 增加左右内边距 */
    }
    
    .featured-nav-item {
        flex: 0 0 calc(49% - 4px);
        width: calc(49% - 4px);
        min-height: 110px; /* 设置最小高度 */
    }
    
    /* 小屏幕下隐藏介绍文字 */
    .featured-content p {
        display: none;
    }

    .featured-content-wrapper {
        padding: 12px 10px; /* 调整内边距，确保内容不超出 */
    }

    .featured-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .featured-icon i {
        font-size: 1.5em;
    }

    .featured-content h3 {
        font-size: 1em;
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word; /* 确保长文本能够换行 */
    }

    .featured-content p {
        font-size: 0.8em;
        line-height: 1.3;
    }

    .upload-tool-content {
        padding: 12px 8px; /* 调整内边距 */
        font-size: 0.95em;
    }

    .upload-tool-content i {
        font-size: 1.3em;
        margin-right: 6px;
    }

    .featured-nav-item .coming-soon,
    .upload-tool-container .coming-soon {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .featured-content-wrapper {
        padding: 10px;
    }

    .featured-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }

    .featured-icon i {
        font-size: 1.4em;
    }

    .featured-content h3 {
        font-size: 1em;
        margin-bottom: 3px;
    }

    .featured-content p {
        font-size: 0.75em;
        line-height: 1.2;
    }

    .upload-tool-content {
        padding: 10px;
        font-size: 0.9em;
    }

    .upload-tool-content i {
        font-size: 1.3em;
        margin-right: 6px;
    }

    .featured-nav-item .coming-soon,
    .upload-tool-container .coming-soon {
        font-size: 0.7em;
        padding: 3px 8px;
    }
}
