/* 功能明细页专属样式 */

/* 页面横幅 */
.page-banner {
    background: url(../static/banner1.png) no-repeat;
    background-size: 100% auto;
    padding: 60px 20px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 功能导航区域 */
.function-nav {
    /* background: #e8f1ff; */
    padding: 40px 20px;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.function-nav .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧分类导航 */
.nav-sidebar {
    display: none;
}

.nav-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.category-icon {
    font-size: 20px;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* 右侧链接区域 */
.nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-group:last-child {
    border-bottom: none;
}

.nav-link-item {
    display: inline-block;
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link-item:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* 功能详情区域 */
.function-details {
    padding: 40px 20px;
    /* background: #fff; */
}

.function-details .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 功能卡片 */
.feature-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    scroll-margin-top: 200px; /* 用于锚点定位时的偏移 */
}

.card-header {
    background: linear-gradient(to right, #f8fbff, #fff);
    padding: 15px 30px;
    border-bottom: 2px solid var(--primary-light);
}

.card-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
    text-align: left;
}

.card-body {
    padding: 0;
}

/* 功能行 */
.feature-row {
    display: grid;
    grid-template-columns: 200px 1fr 80px;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background 0.3s;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row:hover {
    background: #f9fbff;
}

.feature-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 20px;
    text-align: left;
}

.feature-status {
    text-align: center;
    font-size: 24px;
    color: #238f1b;
    font-weight: bold;
}

/* 更多功能提示 */
.more-features {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f8fbff, #fff);
    border-radius: 8px;
    margin-top: 40px;
}

.more-features p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.more-features a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.more-features a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-banner {
        padding: 40px 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .function-nav {
        top: 60px;
        padding: 15px 10px;
    }
    
    .function-nav .container {
        flex-direction: column;
    }
    
    .nav-sidebar {
        width: 100%;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .nav-category {
        flex-shrink: 0;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .nav-group {
        width: 100%;
    }
    
    .nav-link-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .feature-name {
        font-size: 15px;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    .feature-desc {
        padding: 0;
        font-size: 13px;
    }
    
    .feature-status {
        display: none;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 180px 1fr 60px;
        padding: 15px 20px;
    }
    
    .feature-name {
        font-size: 15px;
    }
    
    .feature-desc {
        font-size: 13px;
        padding: 0 15px;
    }
}
