:host {
    --page-padding: 16px;
    --primary-color: #b64d24;
    --card-border-radius: 12px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

// 头部导航样式
.header-container {
    padding: 8px var(--page-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;

    .menu-icon {
        font-size: 24px;
        color: #333;
        padding: 8px;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s;

        &:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
    }

    .nav-links {
        display: flex;
        gap: 32px;

        .nav-item {
            font-size: 15px;
            color: #666;
            padding: 6px 2px;
            cursor: pointer;
            position: relative;
            transition: color 0.3s;

            &[underline="true"] {
                color: var(--primary-color);
                font-weight: 500;

                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 3px;
                    background: var(--primary-color);
                    border-radius: 2px;
                }
            }
        }
    }

    .search-icon {
        font-size: 22px;
        color: #666;
        padding: 8px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;

        &:hover {
            color: var(--primary-color);
            background-color: rgba(182, 77, 36, 0.1);
        }
    }
}

// 分类导航样式
.category-nav {
    background: white;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 8px;

    ion-tab-bar {
        --background: transparent;
        --border-color: transparent;
        padding: 0 var(--page-padding);

        ion-tab-button {
            --color: #666;
            --color-selected: var(--primary-color);
            --padding-top: 8px;
            --padding-bottom: 8px;

            ion-label {
                font-size: 14px;
                font-weight: 500;
            }

            &.tab-selected::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 20px;
                height: 3px;
                background: var(--primary-color);
                border-radius: 1.5px;
            }
        }
    }
}

// 内容网格样式
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;

    .content-card {
        background: white;
        border-radius: var(--card-border-radius);
        box-shadow: var(--card-shadow);
        overflow: hidden;

        .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .card-content {
            padding: 12px;

            .title {
                font-size: 14px;
                color: #333;
                margin-bottom: 12px;
                line-height: 1.4;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .user-info {
                display: flex;
                align-items: center;
                justify-content: space-between;

                .user {
                    display: flex;
                    align-items: center;
                    gap: 8px;

                    .avatar {
                        width: 28px;
                        height: 28px;
                        border-radius: 50%;
                        object-fit: cover;
                    }

                    .info {
                        display: flex;
                        flex-direction: column;

                        .name {
                            font-size: 13px;
                            color: #333;
                            font-weight: 500;
                        }

                        .date {
                            font-size: 12px;
                            color: #999;
                        }
                    }
                }

                .likes {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    color: #666;
                    font-size: 13px;

                    ion-icon {
                        font-size: 16px;
                        color: #999;
                        transition: all 0.3s;
                        cursor: pointer;

                        &:hover {
                            color: #ff4b4b;
                            transform: scale(1.1);
                        }
                    }
                }
            }
        }
    }
}

// 侧边菜单样式
ion-menu {
    --width: 280px;
    --background: white;

    .menu-content {
        --background: white;

        .menu-header {
            padding: 24px 20px;
            background: linear-gradient(135deg, var(--primary-color), #ff6b4a);

            h2 {
                color: white;
                margin: 0;
                font-size: 20px;
                font-weight: 600;
            }
        }

        ion-list {
            padding: 12px 0;

            ion-item {
                --padding-start: 20px;
                --padding-end: 16px;
                --min-height: 50px;
                --background: transparent;
                --background-hover: rgba(182, 77, 36, 0.05);
                --ripple-color: rgba(182, 77, 36, 0.1);

                ion-icon {
                    color: #666;
                    font-size: 20px;
                    margin-right: 12px;
                }

                ion-label {
                    font-size: 15px;
                    font-weight: 500;
                    color: #333;
                }

                &:hover {
                    ion-icon {
                        color: var(--primary-color);
                    }

                    ion-label {
                        color: var(--primary-color);
                    }
                }
            }
        }
    }
}

// 修改菜单按钮样式
.menu-icon {
    font-size: 24px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;

    &:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}