/* ==================== 产品页面样式 ==================== */

/* 产品页面主容器 */
.product-main {
    padding: 40px 60px;
    overflow-y: auto;
    align-items: flex-start !important;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text_color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* 产品标题区域 */
.product-header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.product-title {
    font-size: 2.5rem;
    color: var(--text_color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text_secondary);
    transition: color 0.3s ease;
}

/* 产品内容区域 */
.product-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}

/* 功能特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 功能卡片 */
.feature-card {
    background: var(--header_bg);
    opacity: var(--header_opacity);
    border: 1px solid var(--border_color);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme_toggle_bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text_color);
    transition: color 0.3s ease;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--text_color);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text_secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* 当前产品页所属分组标题强调 */
.nav-group.current > .nav-group-title {
    opacity: 0.8;
}

/* 产品页面 footer 样式调整 */
.product-main #footer {
    position: relative;
    margin-top: auto;
    padding-top: 40px;
    width: 100%;
}

/* ==================== 响应式设计 ==================== */

@media screen and (max-width: 1024px) {
    .product-main {
        padding: 30px 40px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-subtitle {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .product-main {
        padding: 80px 20px 30px;
        min-height: calc(100vh - 120px);
    }

    .product-header {
        margin-bottom: 30px;
    }

    .product-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .back-link {
        position: absolute;
        top: 20px;
        left: 20px;
        margin-bottom: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .product-main #footer {
        padding-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .product-main {
        padding: 70px 15px 20px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-subtitle {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 18px;
    }
}

/* 横屏手机适配 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .product-main {
        padding: 20px 30px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    .back-link {
        position: static;
        margin-bottom: 15px;
    }
}
