<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
    android:id="@+id/main_layout"
    android:background="@color/theme_background"
    android:minHeight="500dp">

    <ImageView
        android:id="@+id/close_button"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="16dp"
        android:src="@mipmap/settings_close"
        android:padding="4dp"
        android:background="?attr/selectableItemBackground"
        android:clickable="true"
        android:focusable="true"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.constraintlayout.widget.Guideline
        android:id="@+id/guideline_20_percent"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintGuide_percent="0.12" />

    <!-- 顶部图标和名称区域 -->
    <LinearLayout
        android:id="@+id/iconContainer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="center"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/guideline_20_percent">

        <ImageView
            android:id="@+id/appIcon"
            android:layout_width="@dimen/logo_size"
            android:layout_height="@dimen/logo_size"
            android:scaleType="fitCenter"
            android:src="@mipmap/logo" />

        <TextView
            android:id="@+id/appNameText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:fontFamily="@font/alimama_shuheiti_"
            android:letterSpacing="0.05"
            android:text="@string/app_name"
            android:textColor="@color/title_color"
            android:textSize="@dimen/app_name_text_size" />

    </LinearLayout>

    <androidx.cardview.widget.CardView
        android:id="@+id/optionsContainer"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="32dp"
        app:cardBackgroundColor="@color/card_bg"
        app:cardCornerRadius="@dimen/card_corner_radius"
        app:cardElevation="@dimen/card_elevation"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/iconContainer"
        app:layout_constraintBottom_toBottomOf="parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="@dimen/card_padding">

            <!-- Rate Us 选项 -->
            <RelativeLayout
                android:id="@+id/rateUsLayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/option_item_height"
                android:background="?attr/selectableItemBackground"
                android:clickable="true"
                android:focusable="true"
                android:paddingHorizontal="@dimen/option_padding_horizontal"
                android:paddingVertical="@dimen/option_padding_vertical">

                <ImageView
                    android:id="@+id/rateUsIcon"
                    android:layout_width="@dimen/option_icon_size"
                    android:layout_height="@dimen/option_icon_size"
                    android:layout_centerVertical="true"
                    android:src="@mipmap/settings_rate" />

                <TextView
                    android:id="@+id/rateUsText"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/option_text_margin_start"
                    android:layout_toEndOf="@id/rateUsIcon"
                    android:text="@string/rate_us"
                    android:textColor="@color/card_text"
                    android:textSize="@dimen/option_text_size"
                    android:textStyle="bold" />

                <ImageView
                    android:id="@+id/rateUsArrow"
                    android:layout_width="@dimen/option_arrow_size"
                    android:layout_height="@dimen/option_arrow_size"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:src="@mipmap/settings_right"
                    android:tint="@color/card_icon_tint" />
            </RelativeLayout>

            <!-- 分割线 -->
            <View
                android:id="@+id/divider1"
                android:layout_width="match_parent"
                android:layout_height="@dimen/divider_height"
                android:layout_marginTop="@dimen/divider_margin_vertical"
                android:layout_marginBottom="@dimen/divider_margin_vertical"
                android:background="@color/card_divider" />

            <!-- Version 选项 -->
            <RelativeLayout
                android:id="@+id/versionLayout"
                android:layout_width="match_parent"
                android:layout_height="@dimen/option_item_height"
                android:paddingHorizontal="@dimen/option_padding_horizontal"
                android:paddingVertical="@dimen/option_padding_vertical">

                <ImageView
                    android:id="@+id/versionIcon"
                    android:layout_width="@dimen/option_icon_size"
                    android:layout_height="@dimen/option_icon_size"
                    android:layout_centerVertical="true"
                    android:padding="1dp"
                    android:src="@mipmap/settings_more" />

                <TextView
                    android:id="@+id/versionText"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/option_text_margin_start"
                    android:layout_toEndOf="@id/versionIcon"
                    android:text="@string/version"
                    android:textColor="@color/card_text"
                    android:textSize="@dimen/option_text_size"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/versionValue"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:textColor="@color/card_text"
                    android:textSize="@dimen/version_value_text_size" />
            </RelativeLayout>
        </LinearLayout>
    </androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>