<?xml version="1.0" encoding="utf-8"?>
<!-- 首页容器Fragment - 包含顶部Tab -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@drawable/subtle_gradient_bg">

    <!-- 顶部Tab（精选/分类） - 森林清新风格 -->
    <com.google.android.material.tabs.TabLayout
        android:id="@+id/top_tab"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/color_0"
        android:paddingStart="20dp"
        android:paddingEnd="20dp"
        android:paddingTop="12dp"
        android:paddingBottom="12dp"
        app:tabIndicator="@drawable/top_tab_indicator"
        app:tabIndicatorHeight="3dp"
        app:tabIndicatorGravity="bottom"
        app:tabMode="fixed"
        app:tabGravity="start"
        app:tabPaddingStart="24dp"
        app:tabPaddingEnd="24dp"
        app:tabTextColor="@color/sub_title_color"
        app:tabSelectedTextColor="@color/tech_blue"
        app:tabTextAppearance="@style/TabTextAppearance"/>

    <!-- 内容ViewPager -->
    <androidx.viewpager2.widget.ViewPager2
        android:id="@+id/top_viewpager"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</LinearLayout>

